|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+BJd":function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("6MrE"),E=y.n(L)},"+QRC":function(fe,z,y){"use strict";var D=y("E9nw"),N={"text/plain":"Text","text/html":"Url",default:"Text"},L="Copy to clipboard: #{key}, Enter";function E(o){var m=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,m)}function I(o,m){var f,s,t,l,a,r,u=!1;m||(m={}),f=m.debug||!1;try{t=D(),l=document.createRange(),a=document.getSelection(),r=document.createElement("span"),r.textContent=o,r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(n){if(n.stopPropagation(),m.format)if(n.preventDefault(),typeof n.clipboardData=="undefined"){f&&console.warn("unable to use e.clipboardData"),f&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=N[m.format]||N.default;window.clipboardData.setData(i,o)}else n.clipboardData.clearData(),n.clipboardData.setData(m.format,o);m.onCopy&&(n.preventDefault(),m.onCopy(n.clipboardData))}),document.body.appendChild(r),l.selectNodeContents(r),a.addRange(l);var e=document.execCommand("copy");if(!e)throw new Error("copy command was unsuccessful");u=!0}catch(n){f&&console.error("unable to copy using execCommand: ",n),f&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(m.format||"text",o),m.onCopy&&m.onCopy(window.clipboardData),u=!0}catch(i){f&&console.error("unable to copy using clipboardData: ",i),f&&console.error("falling back to prompt"),s=E("message"in m?m.message:L),window.prompt(s,o)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(l):a.removeAllRanges()),r&&document.body.removeChild(r),t()}return u}fe.exports=I},"+TT/":function(fe,z,y){var D=y("bYtY"),N=y("mFDi"),L=y("OELB"),E=L.parsePercent,I=y("7aKB"),o=D.each,m=["left","right","top","bottom","width","height"],f=[["width","left","right"],["height","top","bottom"]];function s(h,p,g,v,A){var x=0,b=0;v==null&&(v=Infinity),A==null&&(A=Infinity);var w=0;p.eachChild(function(S,T){var C=S.position,O=S.getBoundingRect(),_=p.childAt(T+1),M=_&&_.getBoundingRect(),k,R;if(h==="horizontal"){var B=O.width+(M?-M.x+O.x:0);k=x+B,k>v||S.newline?(x=0,k=B,b+=w+g,w=O.height):w=Math.max(w,O.height)}else{var P=O.height+(M?-M.y+O.y:0);R=b+P,R>A||S.newline?(x+=w+g,b=0,R=P,w=O.width):w=Math.max(w,O.width)}if(S.newline)return;C[0]=x,C[1]=b,h==="horizontal"?x=k+g:b=R+g})}var t=s,l=D.curry(s,"vertical"),a=D.curry(s,"horizontal");function r(h,p,g){var v=p.width,A=p.height,x=E(h.x,v),b=E(h.y,A),w=E(h.x2,v),S=E(h.y2,A);return(isNaN(x)||isNaN(parseFloat(h.x)))&&(x=0),(isNaN(w)||isNaN(parseFloat(h.x2)))&&(w=v),(isNaN(b)||isNaN(parseFloat(h.y)))&&(b=0),(isNaN(S)||isNaN(parseFloat(h.y2)))&&(S=A),g=I.normalizeCssArray(g||0),{width:Math.max(w-x-g[1]-g[3],0),height:Math.max(S-b-g[0]-g[2],0)}}function u(h,p,g){g=I.normalizeCssArray(g||0);var v=p.width,A=p.height,x=E(h.left,v),b=E(h.top,A),w=E(h.right,v),S=E(h.bottom,A),T=E(h.width,v),C=E(h.height,A),O=g[2]+g[0],_=g[1]+g[3],M=h.aspect;isNaN(T)&&(T=v-w-_-x),isNaN(C)&&(C=A-S-O-b),M!=null&&(isNaN(T)&&isNaN(C)&&(M>v/A?T=v*.8:C=A*.8),isNaN(T)&&(T=M*C),isNaN(C)&&(C=T/M)),isNaN(x)&&(x=v-w-T-_),isNaN(b)&&(b=A-S-C-O);switch(h.left||h.right){case"center":x=v/2-T/2-g[3];break;case"right":x=v-T-_;break}switch(h.top||h.bottom){case"middle":case"center":b=A/2-C/2-g[0];break;case"bottom":b=A-C-O;break}x=x||0,b=b||0,isNaN(T)&&(T=v-_-x-(w||0)),isNaN(C)&&(C=A-O-b-(S||0));var k=new N(x+g[3],b+g[0],T,C);return k.margin=g,k}function e(h,p,g,v,A){var x=!A||!A.hv||A.hv[0],b=!A||!A.hv||A.hv[1],w=A&&A.boundingMode||"all";if(!x&&!b)return;var S;if(w==="raw")S=h.type==="group"?new N(0,0,+p.width||0,+p.height||0):h.getBoundingRect();else if(S=h.getBoundingRect(),h.needLocalTransform()){var T=h.getLocalTransform();S=S.clone(),S.applyTransform(T)}p=u(D.defaults({width:S.width,height:S.height},p),g,v);var C=h.position,O=x?p.x-S.x:0,_=b?p.y-S.y:0;h.attr("position",w==="raw"?[O,_]:[C[0]+O,C[1]+_])}function n(h,p){return h[f[p][0]]!=null||h[f[p][1]]!=null&&h[f[p][2]]!=null}function i(h,p,g){!D.isObject(g)&&(g={});var v=g.ignoreSize;!D.isArray(v)&&(v=[v,v]);var A=b(f[0],0),x=b(f[1],1);T(f[0],h,A),T(f[1],h,x);function b(C,O){var _={},M=0,k={},R=0,B=2;if(o(C,function(j){k[j]=h[j]}),o(C,function(j){w(p,j)&&(_[j]=k[j]=p[j]),S(_,j)&&M++,S(k,j)&&R++}),v[O])return S(p,C[1])?k[C[2]]=null:S(p,C[2])&&(k[C[1]]=null),k;if(R===B||!M)return k;if(M>=B)return _;for(var P=0;P<C.length;P++){var U=C[P];if(!w(_,U)&&w(h,U)){_[U]=h[U];break}}return _}function w(C,O){return C.hasOwnProperty(O)}function S(C,O){return C[O]!=null&&C[O]!=="auto"}function T(C,O,_){o(C,function(M){O[M]=_[M]})}}function c(h){return d({},h)}function d(h,p){return p&&h&&o(m,function(g){p.hasOwnProperty(g)&&(h[g]=p[g])}),h}z.LOCATION_PARAMS=m,z.HV_NAMES=f,z.box=t,z.vbox=l,z.hbox=a,z.getAvailableSize=r,z.getLayoutRect=u,z.positionElement=e,z.sizeCalculable=n,z.mergeLayoutParam=i,z.getLayoutParams=c,z.copyLayoutParams=d},"+Zaj":function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("ugBc")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="CalendarOutlined";var f=E.forwardRef(m);z.default=f},"+d4F":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("y3Yb"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},"+eQT":function(fe,z,y){"use strict";var D=y("wd/R"),N=y.n(D),L=y("Kwbf"),E={getNow:function(){return N()()},getWeekDay:function(Lt){var cr=Lt.clone().locale("en_US");return cr.weekday()+cr.localeData().firstDayOfWeek()},getYear:function(Lt){return Lt.year()},getMonth:function(Lt){return Lt.month()},getDate:function(Lt){return Lt.date()},getHour:function(Lt){return Lt.hour()},getMinute:function(Lt){return Lt.minute()},getSecond:function(Lt){return Lt.second()},addYear:function(Lt,cr){var lr=Lt.clone();return lr.add(cr,"year")},addMonth:function(Lt,cr){var lr=Lt.clone();return lr.add(cr,"month")},addDate:function(Lt,cr){var lr=Lt.clone();return lr.add(cr,"day")},setYear:function(Lt,cr){var lr=Lt.clone();return lr.year(cr)},setMonth:function(Lt,cr){var lr=Lt.clone();return lr.month(cr)},setDate:function(Lt,cr){var lr=Lt.clone();return lr.date(cr)},setHour:function(Lt,cr){var lr=Lt.clone();return lr.hour(cr)},setMinute:function(Lt,cr){var lr=Lt.clone();return lr.minute(cr)},setSecond:function(Lt,cr){var lr=Lt.clone();return lr.second(cr)},isAfter:function(Lt,cr){return Lt.isAfter(cr)},isValidate:function(Lt){return Lt.isValid()},locale:{getWeekFirstDay:function(Lt){var cr=N()().locale(Lt);return cr.localeData().firstDayOfWeek()},getWeek:function(Lt,cr){var lr=cr.clone(),_r=lr.locale(Lt);return _r.week()},getShortWeekDays:function(Lt){var cr=N()().locale(Lt);return cr.localeData().weekdaysMin()},getShortMonths:function(Lt){var cr=N()().locale(Lt);return cr.localeData().monthsShort()},format:function(Lt,cr,lr){var _r=cr.clone(),Rr=_r.locale(Lt);return Rr.format(lr)},parse:function(Lt,cr,lr){for(var _r=[],Rr=0;Rr<lr.length;Rr+=1){var Wr=lr[Rr],on=cr;if(Wr.includes("wo")||Wr.includes("Wo")){Wr=Wr.replace(/wo/g,"w").replace(/Wo/g,"W");var En=Wr.match(/[-YyMmDdHhSsWwGg]+/g),An=on.match(/[-\d]+/g);En&&An?(Wr=En.join(""),on=An.join("")):_r.push(Wr.replace(/o/g,""))}var Rn=N()(on,Wr,Lt,!0);if(Rn.isValid())return Rn}for(var Un=0;Un<_r.length;Un+=1){var wn=N()(cr,_r[Un],Lt,!1);if(wn.isValid())return Object(L.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),wn}return null}}},I=E,o=y("pVnL"),m=y.n(o),f=y("q1tI"),s=y("2/Rp");function t(Ze){return f.createElement(s.a,m()({size:"small",type:"primary"},Ze))}var l=y("mr32");function a(Ze){return f.createElement(l.a,m()({color:"blue"},Ze))}var r=y("lSNA"),u=y.n(r),e=y("lwsE"),n=y.n(e),i=y("W8MJ"),c=y.n(i),d=y("7W2i"),h=y.n(d),p=y("LQ03"),g=y.n(p),v=y("TSYQ"),A=y.n(v),x=y("r/2G"),b=y.n(x),w=y("XzQk"),S=y.n(w),T=y("kbBi"),C=y.n(T),O=y("1OyB"),_=y("vuIU"),M=y("Ji7U"),k=y("LK+K"),R=y("rePB"),B=y("VTBJ"),P=y("ODXe"),U=y("6cGi"),j=y("U8pU"),H=y("4IlW"),W=f.createContext({}),G=W,V={visibility:"hidden"};function Z(Ze){var Lt=Ze.prefixCls,cr=Ze.prevIcon,lr=cr===void 0?"\u2039":cr,_r=Ze.nextIcon,Rr=_r===void 0?"\u203A":_r,Wr=Ze.superPrevIcon,on=Wr===void 0?"\xAB":Wr,En=Ze.superNextIcon,An=En===void 0?"\xBB":En,Rn=Ze.onSuperPrev,Un=Ze.onSuperNext,wn=Ze.onPrev,_n=Ze.onNext,Cn=Ze.children,Kn=f.useContext(G),Yn=Kn.hideNextBtn,ni=Kn.hidePrevBtn;return f.createElement("div",{className:Lt},Rn&&f.createElement("button",{type:"button",onClick:Rn,tabIndex:-1,className:"".concat(Lt,"-super-prev-btn"),style:ni?V:{}},on),wn&&f.createElement("button",{type:"button",onClick:wn,tabIndex:-1,className:"".concat(Lt,"-prev-btn"),style:ni?V:{}},lr),f.createElement("div",{className:"".concat(Lt,"-view")},Cn),_n&&f.createElement("button",{type:"button",onClick:_n,tabIndex:-1,className:"".concat(Lt,"-next-btn"),style:Yn?V:{}},Rr),Un&&f.createElement("button",{type:"button",onClick:Un,tabIndex:-1,className:"".concat(Lt,"-super-next-btn"),style:Yn?V:{}},An))}var Y=Z;function Q(Ze){var Lt=f.useContext(G),cr=Lt.hideHeader;if(cr)return null;var lr=Ze.prefixCls,_r=Ze.generateConfig,Rr=Ze.locale,Wr=Ze.value,on=Ze.format,En="".concat(lr,"-header");return f.createElement(Y,{prefixCls:En},Wr?_r.locale.format(Rr.locale,Wr,on):"\xA0")}var oe=Q,ue=y("YrtM"),Le=y("KQm4"),me=new Map;function Ie(Ze,Lt,cr){if(me.get(Ze)&&cancelAnimationFrame(me.get(Ze)),cr<=0){me.set(Ze,requestAnimationFrame(function(){Ze.scrollTop=Lt}));return}var lr=Lt-Ze.scrollTop,_r=lr/cr*10;me.set(Ze,requestAnimationFrame(function(){Ze.scrollTop+=_r,Ze.scrollTop!==Lt&&Ie(Ze,Lt,cr-10)}))}function X(Ze,Lt){var cr=Lt.onLeftRight,lr=Lt.onCtrlLeftRight,_r=Lt.onUpDown,Rr=Lt.onPageUpDown,Wr=Lt.onEnter,on=Ze.which,En=Ze.ctrlKey,An=Ze.metaKey;switch(on){case H.a.LEFT:if(En||An){if(lr)return lr(-1),!0}else if(cr)return cr(-1),!0;break;case H.a.RIGHT:if(En||An){if(lr)return lr(1),!0}else if(cr)return cr(1),!0;break;case H.a.UP:if(_r)return _r(-1),!0;break;case H.a.DOWN:if(_r)return _r(1),!0;break;case H.a.PAGE_UP:if(Rr)return Rr(-1),!0;break;case H.a.PAGE_DOWN:if(Rr)return Rr(1),!0;break;case H.a.ENTER:if(Wr)return Wr(),!0;break}return!1}function q(Ze,Lt,cr,lr){var _r=Ze;if(!_r)switch(Lt){case"time":_r=lr?"hh:mm:ss a":"HH:mm:ss";break;case"week":_r="gggg-wo";break;case"month":_r="YYYY-MM";break;case"quarter":_r="YYYY-[Q]Q";break;case"year":_r="YYYY";break;default:_r=cr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return _r}function We(Ze,Lt){var cr=Ze==="time"?8:10;return Math.max(cr,Lt.length)+2}var $=null,J=new Set;function le(Ze){return!$&&typeof window!="undefined"&&window.addEventListener&&($=function(cr){Object(Le.a)(J).forEach(function(lr){lr(cr)})},window.addEventListener("mousedown",$)),J.add(Ze),function(){J.delete(Ze),J.size===0&&(window.removeEventListener("mousedown",$),$=null)}}var de=function(Lt){return Lt==="month"||Lt==="date"?"year":Lt},Ne=function(Lt){return Lt==="date"?"month":Lt},we=function(Lt){return Lt==="month"||Lt==="date"?"quarter":Lt},De=function(Lt){return Lt==="date"?"week":Lt},Ee={year:de,month:Ne,quarter:we,week:De,time:null,date:null};function ce(Ze,Lt){return Ze.some(function(cr){return cr&&cr.contains(Lt)})}function ne(Ze){var Lt=Ze.prefixCls,cr=Ze.units,lr=Ze.onSelect,_r=Ze.value,Rr=Ze.active,Wr=Ze.hideDisabledOptions,on="".concat(Lt,"-cell"),En=f.useContext(G),An=En.open,Rn=f.useRef(null),Un=f.useRef(new Map);return f.useLayoutEffect(function(){var wn=Un.current.get(_r);wn&&An!==!1&&Ie(Rn.current,wn.offsetTop,120)},[_r]),f.useLayoutEffect(function(){if(An){var wn=Un.current.get(_r);wn&&Ie(Rn.current,wn.offsetTop,0)}},[An]),f.createElement("ul",{className:A()("".concat(Lt,"-column"),Object(R.a)({},"".concat(Lt,"-column-active"),Rr)),ref:Rn,style:{position:"relative"}},cr.map(function(wn){var _n;return Wr&&wn.disabled?null:f.createElement("li",{key:wn.value,ref:function(Kn){Un.current.set(wn.value,Kn)},className:A()(on,(_n={},Object(R.a)(_n,"".concat(on,"-disabled"),wn.disabled),Object(R.a)(_n,"".concat(on,"-selected"),_r===wn.value),_n)),onClick:function(){if(wn.disabled)return;lr(wn.value)}},f.createElement("div",{className:"".concat(on,"-inner")},wn.label))}))}var ee=ne;function Ae(Ze,Lt){for(var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",lr=String(Ze);lr.length<Lt;)lr="".concat(cr).concat(Ze);return lr}var Ve=function(){for(var Lt=arguments.length,cr=new Array(Lt),lr=0;lr<Lt;lr++)cr[lr]=arguments[lr];return cr};function Ke(Ze){return Ze==null?[]:Array.isArray(Ze)?Ze:[Ze]}function Oe(Ze){var Lt={};return Object.keys(Ze).forEach(function(cr){(cr.substr(0,5)==="data-"||cr.substr(0,5)==="aria-"||cr==="role"||cr==="name")&&cr.substr(0,7)!=="data-__"&&(Lt[cr]=Ze[cr])}),Lt}function it(Ze,Lt){return Ze?Ze[Lt]:null}function Fe(Ze,Lt,cr){var lr=[it(Ze,0),it(Ze,1)];return lr[cr]=typeof Lt=="function"?Lt(lr[cr]):Lt,!lr[0]&&!lr[1]?null:lr}function ft(Ze,Lt,cr,lr,_r){var Rr=Ze.setHour(Lt,cr);return Rr=Ze.setMinute(Rr,lr),Rr=Ze.setSecond(Rr,_r),Rr}function At(Ze,Lt,cr,lr,_r,Rr){var Wr=Math.floor(Ze/lr)*lr;if(Wr<Ze)return[Wr,60-_r,60-Rr];var on=Math.floor(Lt/_r)*_r;if(on<Lt)return[Wr,on,60-Rr];var En=Math.floor(cr/Rr)*Rr;return[Wr,on,En]}function bt(Ze,Lt){if(Ze.length!==Lt.length)return!0;for(var cr=0;cr<Ze.length;cr+=1)if(Ze[cr].disabled!==Lt[cr].disabled)return!0;return!1}function St(Ze,Lt,cr,lr){for(var _r=[],Rr=Ze;Rr<=Lt;Rr+=cr)_r.push({label:Ae(Rr,2),value:Rr,disabled:(lr||[]).includes(Rr)});return _r}function Et(Ze){var Lt=Ze.generateConfig,cr=Ze.prefixCls,lr=Ze.operationRef,_r=Ze.activeColumnIndex,Rr=Ze.value,Wr=Ze.showHour,on=Ze.showMinute,En=Ze.showSecond,An=Ze.use12Hours,Rn=Ze.hourStep,Un=Rn===void 0?1:Rn,wn=Ze.minuteStep,_n=wn===void 0?1:wn,Cn=Ze.secondStep,Kn=Cn===void 0?1:Cn,Yn=Ze.disabledHours,ni=Ze.disabledMinutes,yi=Ze.disabledSeconds,li=Ze.hideDisabledOptions,Oi=Ze.onSelect,ki=[],Si="".concat(cr,"-content"),mi="".concat(cr,"-time-panel"),Li,Wn=Rr?Lt.getHour(Rr):-1,Di=Rr?Lt.getMinute(Rr):-1,zi=Rr?Lt.getSecond(Rr):-1,yr=function(Xn,Jn,Ti,ta){var oa=Rr||Lt.getNow(),da=Math.max(0,Jn),ca=Math.max(0,Ti),ma=Math.max(0,ta);return oa=ft(Lt,oa,!An||!Xn?da:da+12,ca,ma),oa},Mr=St(0,23,Un,Yn&&Yn()),Qr=Object(ue.a)(function(){return Mr},Mr,bt);An&&(Li=Wn>=12,Wn%=12);var Ir=f.useMemo(function(){if(!An)return[!1,!1];var Fn=[!0,!0];return Qr.forEach(function(Xn){var Jn=Xn.disabled,Ti=Xn.value;if(Jn)return;Ti>=12?Fn[1]=!1:Fn[0]=!1}),Fn},[An,Qr]),Gt=Object(P.a)(Ir,2),Sr=Gt[0],Zt=Gt[1],jr=f.useMemo(function(){return An?Qr.filter(Li?function(Fn){return Fn.value>=12}:function(Fn){return Fn.value<12}).map(function(Fn){var Xn=Fn.value%12,Jn=Xn===0?"12":Ae(Xn,2);return Object(B.a)(Object(B.a)({},Fn),{},{label:Jn,value:Xn})}):Qr},[An,Qr]),Kr=St(0,59,_n,ni&&ni(Wn)),pn=St(0,59,Kn,yi&&yi(Wn,Di));lr.current={onUpDown:function(Xn){var Jn=ki[_r];if(Jn)for(var Ti=Jn.units.findIndex(function(ca){return ca.value===Jn.value}),ta=Jn.units.length,oa=1;oa<ta;oa+=1){var da=Jn.units[(Ti+Xn*oa+ta)%ta];if(da.disabled!==!0){Jn.onSelect(da.value);break}}}};function sn(Fn,Xn,Jn,Ti,ta){Fn!==!1&&ki.push({node:f.cloneElement(Xn,{prefixCls:mi,value:Jn,active:_r===ki.length,onSelect:ta,units:Ti,hideDisabledOptions:li}),onSelect:ta,value:Jn,units:Ti})}sn(Wr,f.createElement(ee,{key:"hour"}),Wn,jr,function(Fn){Oi(yr(Li,Fn,Di,zi),"mouse")}),sn(on,f.createElement(ee,{key:"minute"}),Di,Kr,function(Fn){Oi(yr(Li,Wn,Fn,zi),"mouse")}),sn(En,f.createElement(ee,{key:"second"}),zi,pn,function(Fn){Oi(yr(Li,Wn,Di,Fn),"mouse")});var yn=-1;return typeof Li=="boolean"&&(yn=Li?1:0),sn(An===!0,f.createElement(ee,{key:"12hours"}),yn,[{label:"AM",value:0,disabled:Sr},{label:"PM",value:1,disabled:Zt}],function(Fn){Oi(yr(!!Fn,Wn,Di,zi),"mouse")}),f.createElement("div",{className:Si},ki.map(function(Fn){var Xn=Fn.node;return Xn}))}var je=Et,pe=function(Lt){return Lt.filter(function(cr){return cr!==!1}).length};function ie(Ze){var Lt=Ze.generateConfig,cr=Ze.format,lr=cr===void 0?"HH:mm:ss":cr,_r=Ze.prefixCls,Rr=Ze.active,Wr=Ze.operationRef,on=Ze.showHour,En=Ze.showMinute,An=Ze.showSecond,Rn=Ze.use12Hours,Un=Rn===void 0?!1:Rn,wn=Ze.onSelect,_n=Ze.value,Cn="".concat(_r,"-time-panel"),Kn=f.useRef(),Yn=f.useState(-1),ni=Object(P.a)(Yn,2),yi=ni[0],li=ni[1],Oi=pe([on,En,An,Un]);return Wr.current={onKeyDown:function(Si){return X(Si,{onLeftRight:function(Li){li((yi+Li+Oi)%Oi)},onUpDown:function(Li){yi===-1?li(0):Kn.current&&Kn.current.onUpDown(Li)},onEnter:function(){wn(_n||Lt.getNow(),"key"),li(-1)}})},onBlur:function(){li(-1)}},f.createElement("div",{className:A()(Cn,Object(R.a)({},"".concat(Cn,"-active"),Rr))},f.createElement(oe,Object.assign({},Ze,{format:lr,prefixCls:_r})),f.createElement(je,Object.assign({},Ze,{prefixCls:_r,activeColumnIndex:yi,operationRef:Kn})))}var st=ie,Qe=7;function ve(Ze,Lt){return!Ze&&!Lt?!0:!Ze||!Lt?!1:void 0}function Bt(Ze,Lt,cr){var lr=ve(Lt,cr);if(typeof lr=="boolean")return lr;var _r=Math.floor(Ze.getYear(Lt)/10),Rr=Math.floor(Ze.getYear(cr)/10);return _r===Rr}function qt(Ze,Lt,cr){var lr=ve(Lt,cr);return typeof lr=="boolean"?lr:Ze.getYear(Lt)===Ze.getYear(cr)}function ct(Ze,Lt){var cr=Math.floor(Ze.getMonth(Lt)/3);return cr+1}function Wt(Ze,Lt,cr){var lr=ve(Lt,cr);return typeof lr=="boolean"?lr:qt(Ze,Lt,cr)&&ct(Ze,Lt)===ct(Ze,cr)}function or(Ze,Lt,cr){var lr=ve(Lt,cr);return typeof lr=="boolean"?lr:qt(Ze,Lt,cr)&&Ze.getMonth(Lt)===Ze.getMonth(cr)}function Fr(Ze,Lt,cr){var lr=ve(Lt,cr);return typeof lr=="boolean"?lr:Ze.getYear(Lt)===Ze.getYear(cr)&&Ze.getMonth(Lt)===Ze.getMonth(cr)&&Ze.getDate(Lt)===Ze.getDate(cr)}function er(Ze,Lt,cr){var lr=ve(Lt,cr);return typeof lr=="boolean"?lr:Ze.getHour(Lt)===Ze.getHour(cr)&&Ze.getMinute(Lt)===Ze.getMinute(cr)&&Ze.getSecond(Lt)===Ze.getSecond(cr)}function nr(Ze,Lt,cr,lr){var _r=ve(cr,lr);return typeof _r=="boolean"?_r:Ze.locale.getWeek(Lt,cr)===Ze.locale.getWeek(Lt,lr)}function Ot(Ze,Lt,cr){return Fr(Ze,Lt,cr)&&er(Ze,Lt,cr)}function lt(Ze,Lt,cr,lr){return!Lt||!cr||!lr?!1:!Fr(Ze,Lt,lr)&&!Fr(Ze,cr,lr)&&Ze.isAfter(lr,Lt)&&Ze.isAfter(cr,lr)}function qe(Ze,Lt,cr){var lr=Lt.locale.getWeekFirstDay(Ze),_r=Lt.setDate(cr,1),Rr=Lt.getWeekDay(_r),Wr=Lt.addDate(_r,lr-Rr);return Lt.getMonth(Wr)===Lt.getMonth(cr)&&Lt.getDate(Wr)>1&&(Wr=Lt.addDate(Wr,-7)),Wr}function tr(Ze,Lt,cr){var lr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Lt){case"year":return cr.addYear(Ze,lr*10);case"quarter":case"month":return cr.addYear(Ze,lr);default:return cr.addMonth(Ze,lr)}}var xr=f.createContext({}),Ar=xr;function fr(Ze){var Lt=Ze.cellPrefixCls,cr=Ze.generateConfig,lr=Ze.rangedValue,_r=Ze.hoverRangedValue,Rr=Ze.isInView,Wr=Ze.isSameCell,on=Ze.offsetCell,En=Ze.today,An=Ze.value;function Rn(Un){var wn,_n=on(Un,-1),Cn=on(Un,1),Kn=it(lr,0),Yn=it(lr,1),ni=it(_r,0),yi=it(_r,1),li=lt(cr,ni,yi,Un);function Oi(Di){return Wr(Kn,Di)}function ki(Di){return Wr(Yn,Di)}var Si=Wr(ni,Un),mi=Wr(yi,Un),Li=(li||mi)&&(!Rr(_n)||ki(_n)),Wn=(li||Si)&&(!Rr(Cn)||Oi(Cn));return wn={},Object(R.a)(wn,"".concat(Lt,"-in-view"),Rr(Un)),Object(R.a)(wn,"".concat(Lt,"-in-range"),lt(cr,Kn,Yn,Un)),Object(R.a)(wn,"".concat(Lt,"-range-start"),Oi(Un)),Object(R.a)(wn,"".concat(Lt,"-range-end"),ki(Un)),Object(R.a)(wn,"".concat(Lt,"-range-start-single"),Oi(Un)&&!Yn),Object(R.a)(wn,"".concat(Lt,"-range-end-single"),ki(Un)&&!Kn),Object(R.a)(wn,"".concat(Lt,"-range-start-near-hover"),Oi(Un)&&(Wr(_n,ni)||lt(cr,ni,yi,_n))),Object(R.a)(wn,"".concat(Lt,"-range-end-near-hover"),ki(Un)&&(Wr(Cn,yi)||lt(cr,ni,yi,Cn))),Object(R.a)(wn,"".concat(Lt,"-range-hover"),li),Object(R.a)(wn,"".concat(Lt,"-range-hover-start"),Si),Object(R.a)(wn,"".concat(Lt,"-range-hover-end"),mi),Object(R.a)(wn,"".concat(Lt,"-range-hover-edge-start"),Li),Object(R.a)(wn,"".concat(Lt,"-range-hover-edge-end"),Wn),Object(R.a)(wn,"".concat(Lt,"-range-hover-edge-start-near-range"),Li&&Wr(_n,Yn)),Object(R.a)(wn,"".concat(Lt,"-range-hover-edge-end-near-range"),Wn&&Wr(Cn,Kn)),Object(R.a)(wn,"".concat(Lt,"-today"),Wr(En,Un)),Object(R.a)(wn,"".concat(Lt,"-selected"),Wr(An,Un)),wn}return Rn}function vn(Ze){for(var Lt=Ze.prefixCls,cr=Ze.disabledDate,lr=Ze.onSelect,_r=Ze.rowNum,Rr=Ze.colNum,Wr=Ze.prefixColumn,on=Ze.rowClassName,En=Ze.baseDate,An=Ze.getCellClassName,Rn=Ze.getCellText,Un=Ze.getCellNode,wn=Ze.getCellDate,_n=Ze.titleCell,Cn=Ze.headerCells,Kn=f.useContext(G),Yn=Kn.onDateMouseEnter,ni=Kn.onDateMouseLeave,yi="".concat(Lt,"-cell"),li=[],Oi=0;Oi<_r;Oi+=1){for(var ki=[],Si=void 0,mi=function(Di){var zi=Oi*Rr+Di,yr=wn(En,zi),Mr=cr&&cr(yr);Di===0&&(Si=yr,Wr&&ki.push(Wr(Si))),ki.push(f.createElement("td",{key:Di,title:_n&&_n(yr),className:A()(yi,Object(B.a)(Object(R.a)({},"".concat(yi,"-disabled"),Mr),An(yr))),onClick:function(){Mr||lr(yr)},onMouseEnter:function(){!Mr&&Yn&&Yn(yr)},onMouseLeave:function(){!Mr&&ni&&ni(yr)}},Un?Un(yr):f.createElement("div",{className:"".concat(yi,"-inner")},Rn(yr))))},Li=0;Li<Rr;Li+=1)mi(Li);li.push(f.createElement("tr",{key:Oi,className:on&&on(Si)},ki))}return f.createElement("div",{className:"".concat(Lt,"-body")},f.createElement("table",{className:"".concat(Lt,"-content")},Cn&&f.createElement("thead",null,f.createElement("tr",null,Cn)),f.createElement("tbody",null,li)))}function $r(Ze){var Lt=Ze.prefixCls,cr=Ze.generateConfig,lr=Ze.prefixColumn,_r=Ze.locale,Rr=Ze.rowCount,Wr=Ze.viewDate,on=Ze.value,En=Ze.dateRender,An=f.useContext(Ar),Rn=An.rangedValue,Un=An.hoverRangedValue,wn=qe(_r.locale,cr,Wr),_n="".concat(Lt,"-cell"),Cn=cr.locale.getWeekFirstDay(_r.locale),Kn=cr.getNow(),Yn=[],ni=_r.shortWeekDays||(cr.locale.getShortWeekDays?cr.locale.getShortWeekDays(_r.locale):[]);lr&&Yn.push(f.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var yi=0;yi<Qe;yi+=1)Yn.push(f.createElement("th",{key:yi},ni[(yi+Cn)%Qe]));var li=fr({cellPrefixCls:_n,today:Kn,value:on,generateConfig:cr,rangedValue:lr?null:Rn,hoverRangedValue:lr?null:Un,isSameCell:function(Si,mi){return Fr(cr,Si,mi)},isInView:function(Si){return or(cr,Si,Wr)},offsetCell:function(Si,mi){return cr.addDate(Si,mi)}}),Oi=En?function(ki){return En(ki,Kn)}:void 0;return f.createElement(vn,Object.assign({},Ze,{rowNum:Rr,colNum:Qe,baseDate:wn,getCellNode:Oi,getCellText:cr.getDate,getCellClassName:li,getCellDate:cr.addDate,titleCell:function(Si){return cr.locale.format(_r.locale,Si,"YYYY-MM-DD")},headerCells:Yn}))}var Ln=$r;function tt(Ze){var Lt=Ze.prefixCls,cr=Ze.generateConfig,lr=Ze.locale,_r=Ze.viewDate,Rr=Ze.onNextMonth,Wr=Ze.onPrevMonth,on=Ze.onNextYear,En=Ze.onPrevYear,An=Ze.onYearClick,Rn=Ze.onMonthClick,Un=f.useContext(G),wn=Un.hideHeader;if(wn)return null;var _n="".concat(Lt,"-header"),Cn=lr.shortMonths||(cr.locale.getShortMonths?cr.locale.getShortMonths(lr.locale):[]),Kn=cr.getMonth(_r),Yn=f.createElement("button",{type:"button",key:"year",onClick:An,tabIndex:-1,className:"".concat(Lt,"-year-btn")},cr.locale.format(lr.locale,_r,lr.yearFormat)),ni=f.createElement("button",{type:"button",key:"month",onClick:Rn,tabIndex:-1,className:"".concat(Lt,"-month-btn")},lr.monthFormat?cr.locale.format(lr.locale,_r,lr.monthFormat):Cn[Kn]),yi=lr.monthBeforeYear?[ni,Yn]:[Yn,ni];return f.createElement(Y,Object.assign({},Ze,{prefixCls:_n,onSuperPrev:En,onPrev:Wr,onNext:Rr,onSuperNext:on}),yi)}var nt=tt,Te=6;function Me(Ze){var Lt=Ze.prefixCls,cr=Ze.panelName,lr=cr===void 0?"date":cr,_r=Ze.keyboardConfig,Rr=Ze.active,Wr=Ze.operationRef,on=Ze.generateConfig,En=Ze.value,An=Ze.viewDate,Rn=Ze.onViewDateChange,Un=Ze.onPanelChange,wn=Ze.onSelect,_n="".concat(Lt,"-").concat(lr,"-panel");Wr.current={onKeyDown:function(ni){return X(ni,Object(B.a)({onLeftRight:function(li){wn(on.addDate(En||An,li),"key")},onCtrlLeftRight:function(li){wn(on.addYear(En||An,li),"key")},onUpDown:function(li){wn(on.addDate(En||An,li*Qe),"key")},onPageUpDown:function(li){wn(on.addMonth(En||An,li),"key")}},_r))}};var Cn=function(ni){var yi=on.addYear(An,ni);Rn(yi),Un(null,yi)},Kn=function(ni){var yi=on.addMonth(An,ni);Rn(yi),Un(null,yi)};return f.createElement("div",{className:A()(_n,Object(R.a)({},"".concat(_n,"-active"),Rr))},f.createElement(nt,Object.assign({},Ze,{prefixCls:Lt,value:En,viewDate:An,onPrevYear:function(){Cn(-1)},onNextYear:function(){Cn(1)},onPrevMonth:function(){Kn(-1)},onNextMonth:function(){Kn(1)},onMonthClick:function(){Un("month",An)},onYearClick:function(){Un("year",An)}})),f.createElement(Ln,Object.assign({},Ze,{onSelect:function(ni){return wn(ni,"mouse")},prefixCls:Lt,value:En,viewDate:An,rowCount:Te})))}var Xe=Me;function at(Ze,Lt,cr){if(!cr)return Lt;var lr=Lt;return lr=Ze.setHour(lr,Ze.getHour(cr)),lr=Ze.setMinute(lr,Ze.getMinute(cr)),lr=Ze.setSecond(lr,Ze.getSecond(cr)),lr}var zt=Ve("date","time");function kt(Ze){var Lt=Ze.prefixCls,cr=Ze.operationRef,lr=Ze.generateConfig,_r=Ze.value,Rr=Ze.defaultValue,Wr=Ze.disabledTime,on=Ze.showTime,En=Ze.onSelect,An="".concat(Lt,"-datetime-panel"),Rn=f.useState(null),Un=Object(P.a)(Rn,2),wn=Un[0],_n=Un[1],Cn=f.useRef({}),Kn=f.useRef({}),Yn=Object(j.a)(on)==="object"?Object(B.a)({},on):{};function ni(ki){var Si=zt.indexOf(wn)+ki,mi=zt[Si]||null;return mi}var yi=function(Si){Kn.current.onBlur&&Kn.current.onBlur(Si),_n(null)};cr.current={onKeyDown:function(Si){if(Si.which===H.a.TAB){var mi=ni(Si.shiftKey?-1:1);return _n(mi),mi&&Si.preventDefault(),!0}if(wn){var Li=wn==="date"?Cn:Kn;return Li.current&&Li.current.onKeyDown&&Li.current.onKeyDown(Si),!0}return[H.a.LEFT,H.a.RIGHT,H.a.UP,H.a.DOWN].includes(Si.which)?(_n("date"),!0):!1},onBlur:yi,onClose:yi};var li=function(Si,mi){var Li=Si;mi==="date"&&!_r&&Yn.defaultValue?(Li=lr.setHour(Li,lr.getHour(Yn.defaultValue)),Li=lr.setMinute(Li,lr.getMinute(Yn.defaultValue)),Li=lr.setSecond(Li,lr.getSecond(Yn.defaultValue))):mi==="time"&&!_r&&Rr&&(Li=lr.setYear(Li,lr.getYear(Rr)),Li=lr.setMonth(Li,lr.getMonth(Rr)),Li=lr.setDate(Li,lr.getDate(Rr))),En&&En(Li,"mouse")},Oi=Wr?Wr(_r||null):{};return f.createElement("div",{className:A()(An,Object(R.a)({},"".concat(An,"-active"),wn))},f.createElement(Xe,Object.assign({},Ze,{operationRef:Cn,active:wn==="date",onSelect:function(Si){li(at(lr,Si,on&&Object(j.a)(on)==="object"?on.defaultValue:null),"date")}})),f.createElement(st,Object.assign({},Ze,{format:void 0},Yn,Oi,{defaultValue:void 0,operationRef:Kn,active:wn==="time",onSelect:function(Si){li(Si,"time")}})))}var Xt=kt;function Dr(Ze){var Lt=Ze.prefixCls,cr=Ze.generateConfig,lr=Ze.locale,_r=Ze.value,Rr="".concat(Lt,"-cell"),Wr=function(Rn){return f.createElement("td",{key:"week",className:A()(Rr,"".concat(Rr,"-week"))},cr.locale.getWeek(lr.locale,Rn))},on="".concat(Lt,"-week-panel-row"),En=function(Rn){return A()(on,Object(R.a)({},"".concat(on,"-selected"),nr(cr,lr.locale,_r,Rn)))};return f.createElement(Xe,Object.assign({},Ze,{panelName:"week",prefixColumn:Wr,rowClassName:En,keyboardConfig:{onLeftRight:null}}))}var Pr=Dr;function cn(Ze){var Lt=Ze.prefixCls,cr=Ze.generateConfig,lr=Ze.locale,_r=Ze.viewDate,Rr=Ze.onNextYear,Wr=Ze.onPrevYear,on=Ze.onYearClick,En=f.useContext(G),An=En.hideHeader;if(An)return null;var Rn="".concat(Lt,"-header");return f.createElement(Y,Object.assign({},Ze,{prefixCls:Rn,onSuperPrev:Wr,onSuperNext:Rr}),f.createElement("button",{type:"button",onClick:on,className:"".concat(Lt,"-year-btn")},cr.locale.format(lr.locale,_r,lr.yearFormat)))}var jt=cn,gt=3,dt=4;function Qt(Ze){var Lt=Ze.prefixCls,cr=Ze.locale,lr=Ze.value,_r=Ze.viewDate,Rr=Ze.generateConfig,Wr=Ze.monthCellRender,on=f.useContext(Ar),En=on.rangedValue,An=on.hoverRangedValue,Rn="".concat(Lt,"-cell"),Un=fr({cellPrefixCls:Rn,value:lr,generateConfig:Rr,rangedValue:En,hoverRangedValue:An,isSameCell:function(Yn,ni){return or(Rr,Yn,ni)},isInView:function(){return!0},offsetCell:function(Yn,ni){return Rr.addMonth(Yn,ni)}}),wn=cr.shortMonths||(Rr.locale.getShortMonths?Rr.locale.getShortMonths(cr.locale):[]),_n=Rr.setMonth(_r,0),Cn=Wr?function(Kn){return Wr(Kn,cr)}:void 0;return f.createElement(vn,Object.assign({},Ze,{rowNum:dt,colNum:gt,baseDate:_n,getCellNode:Cn,getCellText:function(Yn){return cr.monthFormat?Rr.locale.format(cr.locale,Yn,cr.monthFormat):wn[Rr.getMonth(Yn)]},getCellClassName:Un,getCellDate:Rr.addMonth,titleCell:function(Yn){return Rr.locale.format(cr.locale,Yn,"YYYY-MM")}}))}var Jt=Qt;function xt(Ze){var Lt=Ze.prefixCls,cr=Ze.operationRef,lr=Ze.onViewDateChange,_r=Ze.generateConfig,Rr=Ze.value,Wr=Ze.viewDate,on=Ze.onPanelChange,En=Ze.onSelect,An="".concat(Lt,"-month-panel");cr.current={onKeyDown:function(wn){return X(wn,{onLeftRight:function(Cn){En(_r.addMonth(Rr||Wr,Cn),"key")},onCtrlLeftRight:function(Cn){En(_r.addYear(Rr||Wr,Cn),"key")},onUpDown:function(Cn){En(_r.addMonth(Rr||Wr,Cn*gt),"key")},onEnter:function(){on("date",Rr||Wr)}})}};var Rn=function(wn){var _n=_r.addYear(Wr,wn);lr(_n),on(null,_n)};return f.createElement("div",{className:An},f.createElement(jt,Object.assign({},Ze,{prefixCls:Lt,onPrevYear:function(){Rn(-1)},onNextYear:function(){Rn(1)},onYearClick:function(){on("year",Wr)}})),f.createElement(Jt,Object.assign({},Ze,{prefixCls:Lt,onSelect:function(wn){En(wn,"mouse"),on("date",wn)}})))}var Pt=xt;function yt(Ze){var Lt=Ze.prefixCls,cr=Ze.generateConfig,lr=Ze.locale,_r=Ze.viewDate,Rr=Ze.onNextYear,Wr=Ze.onPrevYear,on=Ze.onYearClick,En=f.useContext(G),An=En.hideHeader;if(An)return null;var Rn="".concat(Lt,"-header");return f.createElement(Y,Object.assign({},Ze,{prefixCls:Rn,onSuperPrev:Wr,onSuperNext:Rr}),f.createElement("button",{type:"button",onClick:on,className:"".concat(Lt,"-year-btn")},cr.locale.format(lr.locale,_r,lr.yearFormat)))}var Ut=yt,pr=4,sr=1;function ir(Ze){var Lt=Ze.prefixCls,cr=Ze.locale,lr=Ze.value,_r=Ze.viewDate,Rr=Ze.generateConfig,Wr=f.useContext(Ar),on=Wr.rangedValue,En=Wr.hoverRangedValue,An="".concat(Lt,"-cell"),Rn=fr({cellPrefixCls:An,value:lr,generateConfig:Rr,rangedValue:on,hoverRangedValue:En,isSameCell:function(_n,Cn){return Wt(Rr,_n,Cn)},isInView:function(){return!0},offsetCell:function(_n,Cn){return Rr.addMonth(_n,Cn*3)}}),Un=Rr.setDate(Rr.setMonth(_r,0),1);return f.createElement(vn,Object.assign({},Ze,{rowNum:sr,colNum:pr,baseDate:Un,getCellText:function(_n){return Rr.locale.format(cr.locale,_n,cr.quarterFormat||"[Q]Q")},getCellClassName:Rn,getCellDate:function(_n,Cn){return Rr.addMonth(_n,Cn*3)},titleCell:function(_n){return Rr.locale.format(cr.locale,_n,"YYYY-[Q]Q")}}))}var Yr=ir;function Jr(Ze){var Lt=Ze.prefixCls,cr=Ze.operationRef,lr=Ze.onViewDateChange,_r=Ze.generateConfig,Rr=Ze.value,Wr=Ze.viewDate,on=Ze.onPanelChange,En=Ze.onSelect,An="".concat(Lt,"-quarter-panel");cr.current={onKeyDown:function(wn){return X(wn,{onLeftRight:function(Cn){En(_r.addMonth(Rr||Wr,Cn*3),"key")},onCtrlLeftRight:function(Cn){En(_r.addYear(Rr||Wr,Cn),"key")},onUpDown:function(Cn){En(_r.addYear(Rr||Wr,Cn),"key")}})}};var Rn=function(wn){var _n=_r.addYear(Wr,wn);lr(_n),on(null,_n)};return f.createElement("div",{className:An},f.createElement(Ut,Object.assign({},Ze,{prefixCls:Lt,onPrevYear:function(){Rn(-1)},onNextYear:function(){Rn(1)},onYearClick:function(){on("year",Wr)}})),f.createElement(Yr,Object.assign({},Ze,{prefixCls:Lt,onSelect:function(wn){En(wn,"mouse")}})))}var In=Jr;function Nn(Ze){var Lt=Ze.prefixCls,cr=Ze.generateConfig,lr=Ze.viewDate,_r=Ze.onPrevDecade,Rr=Ze.onNextDecade,Wr=Ze.onDecadeClick,on=f.useContext(G),En=on.hideHeader;if(En)return null;var An="".concat(Lt,"-header"),Rn=cr.getYear(lr),Un=Math.floor(Rn/_e)*_e,wn=Un+_e-1;return f.createElement(Y,Object.assign({},Ze,{prefixCls:An,onSuperPrev:_r,onSuperNext:Rr}),f.createElement("button",{type:"button",onClick:Wr,className:"".concat(Lt,"-decade-btn")},Un,"-",wn))}var zn=Nn,ei=3,Ai=4;function Pi(Ze){var Lt=Ze.prefixCls,cr=Ze.value,lr=Ze.viewDate,_r=Ze.locale,Rr=Ze.generateConfig,Wr=f.useContext(Ar),on=Wr.rangedValue,En=Wr.hoverRangedValue,An="".concat(Lt,"-cell"),Rn=Rr.getYear(lr),Un=Math.floor(Rn/_e)*_e,wn=Un+_e-1,_n=Rr.setYear(lr,Un-Math.ceil((ei*Ai-_e)/2)),Cn=function(ni){var yi=Rr.getYear(ni);return Un<=yi&&yi<=wn},Kn=fr({cellPrefixCls:An,value:cr,generateConfig:Rr,rangedValue:on,hoverRangedValue:En,isSameCell:function(ni,yi){return qt(Rr,ni,yi)},isInView:Cn,offsetCell:function(ni,yi){return Rr.addYear(ni,yi)}});return f.createElement(vn,Object.assign({},Ze,{rowNum:Ai,colNum:ei,baseDate:_n,getCellText:Rr.getYear,getCellClassName:Kn,getCellDate:Rr.addYear,titleCell:function(ni){return Rr.locale.format(_r.locale,ni,"YYYY")}}))}var $e=Pi,_e=10;function Be(Ze){var Lt=Ze.prefixCls,cr=Ze.operationRef,lr=Ze.onViewDateChange,_r=Ze.generateConfig,Rr=Ze.value,Wr=Ze.viewDate,on=Ze.sourceMode,En=Ze.onSelect,An=Ze.onPanelChange,Rn="".concat(Lt,"-year-panel");cr.current={onKeyDown:function(_n){return X(_n,{onLeftRight:function(Kn){En(_r.addYear(Rr||Wr,Kn),"key")},onCtrlLeftRight:function(Kn){En(_r.addYear(Rr||Wr,Kn*_e),"key")},onUpDown:function(Kn){En(_r.addYear(Rr||Wr,Kn*ei),"key")},onEnter:function(){An(on==="date"?"date":"month",Rr||Wr)}})}};var Un=function(_n){var Cn=_r.addYear(Wr,_n*10);lr(Cn),An(null,Cn)};return f.createElement("div",{className:Rn},f.createElement(zn,Object.assign({},Ze,{prefixCls:Lt,onPrevDecade:function(){Un(-1)},onNextDecade:function(){Un(1)},onDecadeClick:function(){An("decade",Wr)}})),f.createElement($e,Object.assign({},Ze,{prefixCls:Lt,onSelect:function(_n){An(on==="date"?"date":"month",_n),En(_n,"mouse")}})))}var He=Be;function Je(Ze){var Lt=Ze.prefixCls,cr=Ze.generateConfig,lr=Ze.viewDate,_r=Ze.onPrevDecades,Rr=Ze.onNextDecades,Wr=f.useContext(G),on=Wr.hideHeader;if(on)return null;var En="".concat(Lt,"-header"),An=cr.getYear(lr),Rn=Math.floor(An/hr)*hr,Un=Rn+hr-1;return f.createElement(Y,Object.assign({},Ze,{prefixCls:En,onSuperPrev:_r,onSuperNext:Rr}),Rn,"-",Un)}var Ye=Je,et=3,wt=4;function ut(Ze){var Lt=wr-1,cr=Ze.prefixCls,lr=Ze.viewDate,_r=Ze.generateConfig,Rr=Ze.disabledDate,Wr="".concat(cr,"-cell"),on=_r.getYear(lr),En=Math.floor(on/wr)*wr,An=Math.floor(on/hr)*hr,Rn=An+hr-1,Un=_r.setYear(lr,An-Math.ceil((et*wt*wr-hr)/2)),wn=function(Cn){var Kn,Yn=Rr&&Rr(Cn),ni=_r.getYear(Cn),yi=ni+Lt;return Kn={},Object(R.a)(Kn,"".concat(Wr,"-disabled"),Yn),Object(R.a)(Kn,"".concat(Wr,"-in-view"),An<=ni&&yi<=Rn),Object(R.a)(Kn,"".concat(Wr,"-selected"),ni===En),Kn};return f.createElement(vn,Object.assign({},Ze,{rowNum:wt,colNum:et,baseDate:Un,getCellText:function(Cn){var Kn=_r.getYear(Cn);return"".concat(Kn,"-").concat(Kn+Lt)},getCellClassName:wn,getCellDate:function(Cn,Kn){return _r.addYear(Cn,Kn*wr)}}))}var Ft=ut,wr=10,hr=wr*10;function Nr(Ze){var Lt=Ze.prefixCls,cr=Ze.onViewDateChange,lr=Ze.generateConfig,_r=Ze.viewDate,Rr=Ze.operationRef,Wr=Ze.onSelect,on=Ze.onPanelChange,En="".concat(Lt,"-decade-panel");Rr.current={onKeyDown:function(wn){return X(wn,{onLeftRight:function(Cn){Wr(lr.addYear(_r,Cn*wr),"key")},onCtrlLeftRight:function(Cn){Wr(lr.addYear(_r,Cn*hr),"key")},onUpDown:function(Cn){Wr(lr.addYear(_r,Cn*wr*et),"key")},onEnter:function(){on("year",_r)}})}};var An=function(wn){var _n=lr.addYear(_r,wn*hr);cr(_n),on(null,_n)},Rn=function(wn){Wr(wn,"mouse"),on("year",wn)};return f.createElement("div",{className:En},f.createElement(Ye,Object.assign({},Ze,{prefixCls:Lt,onPrevDecades:function(){An(-1)},onNextDecades:function(){An(1)}})),f.createElement(Ft,Object.assign({},Ze,{prefixCls:Lt,onSelect:Rn})))}var Kt=Nr;function un(Ze,Lt,cr){return cr?f.createElement("div",{className:"".concat(Ze,"-footer-extra")},cr(Lt)):null}function ar(Ze){var Lt=Ze.prefixCls,cr=Ze.rangeList,lr=cr===void 0?[]:cr,_r=Ze.components,Rr=_r===void 0?{}:_r,Wr=Ze.needConfirmButton,on=Ze.onNow,En=Ze.onOk,An=Ze.okDisabled,Rn=Ze.showNow,Un=Ze.locale,wn,_n;if(lr.length){var Cn=Rr.rangeItem||"span";wn=f.createElement(f.Fragment,null,lr.map(function(Yn){var ni=Yn.label,yi=Yn.onClick,li=Yn.onMouseEnter,Oi=Yn.onMouseLeave;return f.createElement("li",{key:ni,className:"".concat(Lt,"-preset")},f.createElement(Cn,{onClick:yi,onMouseEnter:li,onMouseLeave:Oi},ni))}))}if(Wr){var Kn=Rr.button||"button";on&&!wn&&Rn!==!1&&(wn=f.createElement("li",{className:"".concat(Lt,"-now")},f.createElement("a",{className:"".concat(Lt,"-now-btn"),onClick:on},Un.now))),_n=Wr&&f.createElement("li",{className:"".concat(Lt,"-ok")},f.createElement(Kn,{disabled:An,onClick:En},Un.ok))}return!wn&&!_n?null:f.createElement("ul",{className:"".concat(Lt,"-ranges")},wn,_n)}function Gr(Ze){var Lt,cr=Ze.prefixCls,lr=cr===void 0?"rc-picker":cr,_r=Ze.className,Rr=Ze.style,Wr=Ze.locale,on=Ze.generateConfig,En=Ze.value,An=Ze.defaultValue,Rn=Ze.pickerValue,Un=Ze.defaultPickerValue,wn=Ze.disabledDate,_n=Ze.mode,Cn=Ze.picker,Kn=Cn===void 0?"date":Cn,Yn=Ze.tabIndex,ni=Yn===void 0?0:Yn,yi=Ze.showNow,li=Ze.showTime,Oi=Ze.showToday,ki=Ze.renderExtraFooter,Si=Ze.hideHeader,mi=Ze.onSelect,Li=Ze.onChange,Wn=Ze.onPanelChange,Di=Ze.onMouseDown,zi=Ze.onPickerValueChange,yr=Ze.onOk,Mr=Ze.components,Qr=Ze.direction,Ir=Ze.hourStep,Gt=Ir===void 0?1:Ir,Sr=Ze.minuteStep,Zt=Sr===void 0?1:Sr,jr=Ze.secondStep,Kr=jr===void 0?1:jr,pn=Kn==="date"&&!!li||Kn==="time",sn=24%Gt===0,yn=60%Zt===0,Fn=60%Kr===0,Xn=f.useContext(G),Jn=Xn.operationRef,Ti=Xn.panelRef,ta=Xn.onSelect,oa=Xn.hideRanges,da=Xn.defaultOpenValue,ca=f.useContext(Ar),ma=ca.inRange,Ui=ca.panelPosition,Ni=ca.rangedValue,ra=ca.hoverRangedValue,qi=f.useRef({}),Aa=f.useRef(!0),Oa=Object(U.a)(null,{value:En,defaultValue:An,postState:function(Bi){return!Bi&&da&&Kn==="time"?da:Bi}}),Zi=Object(P.a)(Oa,2),Gi=Zi[0],La=Zi[1],va=Object(U.a)(null,{value:Rn,defaultValue:Un||Gi,postState:function(Bi){return Bi||on.getNow()}}),Ci=Object(P.a)(va,2),Sa=Ci[0],Da=Ci[1],Na=function(Bi){Da(Bi),zi&&zi(Bi)},Ua=function(Bi){var Ma=Ee[Kn];return Ma?Ma(Bi):Bi},Pa=Object(U.a)(function(){return Kn==="time"?"time":Ua("date")},{value:_n}),za=Object(P.a)(Pa,2),xa=za[0],ja=za[1];f.useEffect(function(){ja(Kn)},[Kn]);var io=f.useState(function(){return xa}),ia=Object(P.a)(io,2),lo=ia[0],Xa=ia[1],Ta=function(Bi,Ma){var Do=Ua(Bi||xa);Xa(xa),ja(Do),Wn&&(xa!==Do||Ot(on,Sa,Sa))&&Wn(Ma,Do)},Qa=function(Bi,Ma){var Do=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(xa===Kn||Do)&&(La(Bi),mi&&mi(Bi),ta&&ta(Bi,Ma),Li&&!Ot(on,Bi,Gi)&&Li(Bi))},Ra=function(Bi){return qi.current&&qi.current.onKeyDown?([H.a.LEFT,H.a.RIGHT,H.a.UP,H.a.DOWN,H.a.PAGE_UP,H.a.PAGE_DOWN,H.a.ENTER].includes(Bi.which)&&Bi.preventDefault(),qi.current.onKeyDown(Bi)):(Object(L.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},_a=function(Bi){qi.current&&qi.current.onBlur&&qi.current.onBlur(Bi)};Jn&&Ui!=="right"&&(Jn.current={onKeyDown:Ra,onClose:function(){qi.current&&qi.current.onClose&&qi.current.onClose()}}),f.useEffect(function(){En&&!Aa.current&&Da(En)},[En]),f.useEffect(function(){Aa.current=!1},[]);var yo,ao=Object(B.a)(Object(B.a)({},Ze),{},{operationRef:qi,prefixCls:lr,viewDate:Sa,value:Gi,onViewDateChange:Na,sourceMode:lo,onPanelChange:Ta,disabledDate:xa!=="decade"?wn:void 0});delete ao.onChange,delete ao.onSelect;switch(xa){case"decade":yo=f.createElement(Kt,Object.assign({},ao,{onSelect:function(Bi,Ma){Na(Bi),Qa(Bi,Ma)}}));break;case"year":yo=f.createElement(He,Object.assign({},ao,{onSelect:function(Bi,Ma){Na(Bi),Qa(Bi,Ma)}}));break;case"month":yo=f.createElement(Pt,Object.assign({},ao,{onSelect:function(Bi,Ma){Na(Bi),Qa(Bi,Ma)}}));break;case"quarter":yo=f.createElement(In,Object.assign({},ao,{onSelect:function(Bi,Ma){Na(Bi),Qa(Bi,Ma)}}));break;case"week":yo=f.createElement(Pr,Object.assign({},ao,{onSelect:function(Bi,Ma){Na(Bi),Qa(Bi,Ma)}}));break;case"time":delete ao.showTime,yo=f.createElement(st,Object.assign({},ao,Object(j.a)(li)==="object"?li:null,{onSelect:function(Bi,Ma){Na(Bi),Qa(Bi,Ma)}}));break;default:li?yo=f.createElement(Xt,Object.assign({},ao,{onSelect:function(Bi,Ma){Na(Bi),Qa(Bi,Ma)}})):yo=f.createElement(Xe,Object.assign({},ao,{onSelect:function(Bi,Ma){Na(Bi),Qa(Bi,Ma)}}))}var bo,co,uo=function(){var Bi=on.getNow(),Ma=At(on.getHour(Bi),on.getMinute(Bi),on.getSecond(Bi),sn?Gt:1,yn?Zt:1,Fn?Kr:1),Do=ft(on,Bi,Ma[0],Ma[1],Ma[2]);Qa(Do,"submit")};oa||(bo=un(lr,xa,ki),co=ar({prefixCls:lr,components:Mr,needConfirmButton:pn,okDisabled:!Gi||wn&&wn(Gi),locale:Wr,showNow:yi,onNow:pn&&uo,onOk:function(){Gi&&(Qa(Gi,"submit",!0),yr&&yr(Gi))}}));var Ya;if(Oi&&xa==="date"&&Kn==="date"&&!li){var eo=on.getNow(),wa="".concat(lr,"-today-btn"),ro=wn&&wn(eo);Ya=f.createElement("a",{className:A()(wa,ro&&"".concat(wa,"-disabled")),"aria-disabled":ro,onClick:function(){ro||Qa(eo,"mouse",!0)}},Wr.today)}return f.createElement(G.Provider,{value:Object(B.a)(Object(B.a)({},Xn),{},{hideHeader:"hideHeader"in Ze?Si:Xn.hideHeader,hidePrevBtn:ma&&Ui==="right",hideNextBtn:ma&&Ui==="left"})},f.createElement("div",{tabIndex:ni,className:A()("".concat(lr,"-panel"),_r,(Lt={},Object(R.a)(Lt,"".concat(lr,"-panel-has-range"),Ni&&Ni[0]&&Ni[1]),Object(R.a)(Lt,"".concat(lr,"-panel-has-range-hover"),ra&&ra[0]&&ra[1]),Object(R.a)(Lt,"".concat(lr,"-panel-rtl"),Qr==="rtl"),Lt)),style:Rr,onKeyDown:Ra,onBlur:_a,onMouseDown:Di,ref:Ti},yo,bo||co||Ya?f.createElement("div",{className:"".concat(lr,"-footer")},bo,co,Ya):null))}var Br=Gr,gr=y("uciX"),Sn={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 Pn(Ze){var Lt,cr=Ze.prefixCls,lr=Ze.popupElement,_r=Ze.popupStyle,Rr=Ze.visible,Wr=Ze.dropdownClassName,on=Ze.dropdownAlign,En=Ze.transitionName,An=Ze.getPopupContainer,Rn=Ze.children,Un=Ze.range,wn=Ze.popupPlacement,_n=Ze.direction,Cn="".concat(cr,"-dropdown"),Kn=function(){return wn!==void 0?wn:_n==="rtl"?"bottomRight":"bottomLeft"};return f.createElement(gr.a,{showAction:[],hideAction:[],popupPlacement:Kn(),builtinPlacements:Sn,prefixCls:Cn,popupTransitionName:En,popup:lr,popupAlign:on,popupVisible:Rr,popupClassName:A()(Wr,(Lt={},Object(R.a)(Lt,"".concat(Cn,"-range"),Un),Object(R.a)(Lt,"".concat(Cn,"-rtl"),_n==="rtl"),Lt)),popupStyle:_r,getPopupContainer:An},Rn)}var ii=Pn;function oi(Ze){var Lt=Ze.open,cr=Ze.value,lr=Ze.isClickOutside,_r=Ze.triggerOpen,Rr=Ze.forwardKeyDown,Wr=Ze.blurToCancel,on=Ze.onSubmit,En=Ze.onCancel,An=Ze.onFocus,Rn=Ze.onBlur,Un=Object(f.useState)(!1),wn=Object(P.a)(Un,2),_n=wn[0],Cn=wn[1],Kn=Object(f.useState)(!1),Yn=Object(P.a)(Kn,2),ni=Yn[0],yi=Yn[1],li=Object(f.useRef)(!1),Oi=Object(f.useRef)(!1),ki={onMouseDown:function(){Cn(!0),_r(!0)},onKeyDown:function(mi){switch(mi.which){case H.a.ENTER:{Lt?on()!==!1&&Cn(!0):_r(!0),mi.preventDefault();return}case H.a.TAB:{_n&&Lt&&!mi.shiftKey?(Cn(!1),mi.preventDefault()):!_n&&Lt&&(!Rr(mi)&&mi.shiftKey&&(Cn(!0),mi.preventDefault()));return}case H.a.ESC:{Cn(!0),En();return}}!Lt&&![H.a.SHIFT].includes(mi.which)?_r(!0):_n||Rr(mi)},onFocus:function(mi){Cn(!0),yi(!0),An&&An(mi)},onBlur:function(mi){if(li.current||!lr(document.activeElement)){li.current=!1;return}Wr?setTimeout(function(){lr(document.activeElement)&&En()},0):Lt&&(_r(!1),Oi.current&&on()),yi(!1),Rn&&Rn(mi)}};return Object(f.useEffect)(function(){Oi.current=!1},[Lt]),Object(f.useEffect)(function(){Oi.current=!0},[cr]),Object(f.useEffect)(function(){return le(function(Si){var mi=Si.target;Lt&&(lr(mi)?ni||_r(!1):(li.current=!0,requestAnimationFrame(function(){li.current=!1})))})}),[ki,{focused:ni,typing:_n}]}function ti(Ze){var Lt=Ze.valueTexts,cr=Ze.onTextChange,lr=f.useState(""),_r=Object(P.a)(lr,2),Rr=_r[0],Wr=_r[1],on=f.useRef([]);on.current=Lt;function En(Rn){Wr(Rn),cr(Rn)}function An(){Wr(on.current[0])}return f.useEffect(function(){Lt.every(function(Rn){return Rn!==Rr})&&An()},[Lt.join("||")]),[Rr,En,An]}var bi=y("Gytx"),kn=y.n(bi);function Ii(Ze,Lt){var cr=Lt.formatList,lr=Lt.generateConfig,_r=Lt.locale;return Object(ue.a)(function(){if(!Ze)return[[""],""];for(var Rr="",Wr=[],on=0;on<cr.length;on+=1){var En=cr[on],An=lr.locale.format(_r.locale,Ze,En);Wr.push(An),on===0&&(Rr=An)}return[Wr,Rr]},[Ze,cr],function(Rr,Wr){return Rr[0]!==Wr[0]||!kn()(Rr[1],Wr[1])})}function gn(Ze,Lt){var cr=Lt.formatList,lr=Lt.generateConfig,_r=Lt.locale,Rr=Object(f.useState)(null),Wr=Object(P.a)(Rr,2),on=Wr[0],En=Wr[1],An=Object(f.useRef)(null);function Rn(Yn){var ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(An.current),ni){En(Yn);return}An.current=requestAnimationFrame(function(){En(Yn)})}var Un=Ii(on,{formatList:cr,generateConfig:lr,locale:_r}),wn=Object(P.a)(Un,2),_n=wn[1];function Cn(Yn){Rn(Yn)}function Kn(){var Yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Rn(null,Yn)}return Object(f.useEffect)(function(){Kn(!0)},[Ze]),Object(f.useEffect)(function(){return function(){return cancelAnimationFrame(An.current)}},[]),[_n,Cn,Kn]}function Vr(Ze){var Lt,cr=Ze.prefixCls,lr=cr===void 0?"rc-picker":cr,_r=Ze.id,Rr=Ze.tabIndex,Wr=Ze.style,on=Ze.className,En=Ze.dropdownClassName,An=Ze.dropdownAlign,Rn=Ze.popupStyle,Un=Ze.transitionName,wn=Ze.generateConfig,_n=Ze.locale,Cn=Ze.inputReadOnly,Kn=Ze.allowClear,Yn=Ze.autoFocus,ni=Ze.showTime,yi=Ze.picker,li=yi===void 0?"date":yi,Oi=Ze.format,ki=Ze.use12Hours,Si=Ze.value,mi=Ze.defaultValue,Li=Ze.open,Wn=Ze.defaultOpen,Di=Ze.defaultOpenValue,zi=Ze.suffixIcon,yr=Ze.clearIcon,Mr=Ze.disabled,Qr=Ze.disabledDate,Ir=Ze.placeholder,Gt=Ze.getPopupContainer,Sr=Ze.pickerRef,Zt=Ze.panelRender,jr=Ze.onChange,Kr=Ze.onOpenChange,pn=Ze.onFocus,sn=Ze.onBlur,yn=Ze.onMouseDown,Fn=Ze.onMouseUp,Xn=Ze.onMouseEnter,Jn=Ze.onMouseLeave,Ti=Ze.onContextMenu,ta=Ze.onClick,oa=Ze.direction,da=Ze.autoComplete,ca=da===void 0?"off":da,ma=f.useRef(null),Ui=li==="date"&&!!ni||li==="time",Ni=Ke(q(Oi,li,ni,ki)),ra=f.useRef(null),qi=f.useRef(null),Aa=Object(U.a)(null,{value:Si,defaultValue:mi}),Oa=Object(P.a)(Aa,2),Zi=Oa[0],Gi=Oa[1],La=f.useState(Zi),va=Object(P.a)(La,2),Ci=va[0],Sa=va[1],Da=f.useRef(null),Na=Object(U.a)(!1,{value:Li,defaultValue:Wn,postState:function(Ka){return Mr?!1:Ka},onChange:function(Ka){Kr&&Kr(Ka),!Ka&&Da.current&&Da.current.onClose&&Da.current.onClose()}}),Ua=Object(P.a)(Na,2),Pa=Ua[0],za=Ua[1],xa=Ii(Ci,{formatList:Ni,generateConfig:wn,locale:_n}),ja=Object(P.a)(xa,2),io=ja[0],ia=ja[1],lo=ti({valueTexts:io,onTextChange:function(Ka){var Xo=wn.locale.parse(_n.locale,Ka,Ni);Xo&&(!Qr||!Qr(Xo))&&Sa(Xo)}}),Xa=Object(P.a)(lo,3),Ta=Xa[0],Qa=Xa[1],Ra=Xa[2],_a=function(Ka){Sa(Ka),Gi(Ka),jr&&!Ot(wn,Zi,Ka)&&jr(Ka,Ka?wn.locale.format(_n.locale,Ka,Ni[0]):"")},yo=function(Ka){if(Mr&&Ka)return;za(Ka)},ao=function(Ka){return Pa&&Da.current&&Da.current.onKeyDown?Da.current.onKeyDown(Ka):(Object(L.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},bo=function(){Fn&&Fn.apply(void 0,arguments),ma.current&&(ma.current.focus(),yo(!0))},co=oi({blurToCancel:Ui,open:Pa,value:Ta,triggerOpen:yo,forwardKeyDown:ao,isClickOutside:function(Ka){return!ce([ra.current,qi.current],Ka)},onSubmit:function(){return Qr&&Qr(Ci)?!1:(_a(Ci),yo(!1),Ra(),!0)},onCancel:function(){yo(!1),Sa(Zi),Ra()},onFocus:pn,onBlur:sn}),uo=Object(P.a)(co,2),Ya=uo[0],eo=uo[1],wa=eo.focused,ro=eo.typing;f.useEffect(function(){Pa||(Sa(Zi),!io.length||io[0]===""?Qa(""):ia!==Ta&&Ra())},[Pa,io]),f.useEffect(function(){Pa||Ra()},[li]),f.useEffect(function(){Sa(Zi)},[Zi]),Sr&&(Sr.current={focus:function(){ma.current&&ma.current.focus()},blur:function(){ma.current&&ma.current.blur()}});var fo=Object(B.a)(Object(B.a)({},Ze),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Bi=f.createElement(Br,Object.assign({},fo,{generateConfig:wn,className:A()(Object(R.a)({},"".concat(lr,"-panel-focused"),!ro)),value:Ci,locale:_n,tabIndex:-1,onChange:Sa,direction:oa}));Zt&&(Bi=Zt(Bi));var Ma=f.createElement("div",{className:"".concat(lr,"-panel-container"),onMouseDown:function(Ka){Ka.preventDefault()}},Bi),Do;zi&&(Do=f.createElement("span",{className:"".concat(lr,"-suffix")},zi));var jo;Kn&&Zi&&!Mr&&(jo=f.createElement("span",{onMouseDown:function(Ka){Ka.preventDefault(),Ka.stopPropagation()},onMouseUp:function(Ka){Ka.preventDefault(),Ka.stopPropagation(),_a(null),yo(!1)},className:"".concat(lr,"-clear")},yr||f.createElement("span",{className:"".concat(lr,"-clear-btn")})));var Vo=function(Ka,Xo){(Xo==="submit"||Xo!=="key"&&!Ui)&&(_a(Ka),yo(!1))},Go=oa==="rtl"?"bottomRight":"bottomLeft",wo=gn(Ta,{formatList:Ni,generateConfig:wn,locale:_n}),Ia=Object(P.a)(wo,3),Po=Ia[0],ds=Ia[1],ho=Ia[2];return f.createElement(G.Provider,{value:{operationRef:Da,hideHeader:li==="time",panelRef:ra,onSelect:Vo,open:Pa,defaultOpenValue:Di,onDateMouseEnter:ds,onDateMouseLeave:ho}},f.createElement(ii,{visible:Pa,popupElement:Ma,popupStyle:Rn,prefixCls:lr,dropdownClassName:En,dropdownAlign:An,getPopupContainer:Gt,transitionName:Un,popupPlacement:Go,direction:oa},f.createElement("div",{className:A()(lr,on,(Lt={},Object(R.a)(Lt,"".concat(lr,"-disabled"),Mr),Object(R.a)(Lt,"".concat(lr,"-focused"),wa),Object(R.a)(Lt,"".concat(lr,"-rtl"),oa==="rtl"),Lt)),style:Wr,onMouseDown:yn,onMouseUp:bo,onMouseEnter:Xn,onMouseLeave:Jn,onContextMenu:Ti,onClick:ta},f.createElement("div",{className:A()("".concat(lr,"-input"),Object(R.a)({},"".concat(lr,"-input-placeholder"),!!Po)),ref:qi},f.createElement("input",Object.assign({id:_r,tabIndex:Rr,disabled:Mr,readOnly:Cn||!ro,value:Po||Ta,onChange:function(Ka){Qa(Ka.target.value)},autoFocus:Yn,placeholder:Ir,ref:ma,title:Ta},Ya,{size:We(li,Ni[0])},Oe(Ze),{autoComplete:ca})),Do,jo))))}var xn=function(Ze){Object(M.a)(cr,Ze);var Lt=Object(k.a)(cr);function cr(){var lr;return Object(O.a)(this,cr),lr=Lt.apply(this,arguments),lr.pickerRef=f.createRef(),lr.focus=function(){lr.pickerRef.current&&lr.pickerRef.current.focus()},lr.blur=function(){lr.pickerRef.current&&lr.pickerRef.current.blur()},lr}return Object(_.a)(cr,[{key:"render",value:function(){return f.createElement(Vr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),cr}(f.Component),tn=xn;function ui(Ze,Lt,cr){var lr=Ze.picker,_r=Ze.locale,Rr=Ze.selectedValue,Wr=Ze.disabledDate,on=Ze.disabled,En=Ze.generateConfig,An=it(Rr,0),Rn=it(Rr,1);function Un(Yn){var ni=En.getYear(Yn),yi=En.locale.getWeek(_r.locale,Yn);return ni*100+yi}function wn(Yn){var ni=En.getYear(Yn),yi=En.getMonth(Yn);return ni*100+yi}function _n(Yn){var ni=En.getYear(Yn),yi=ct(En,Yn);return ni*10+yi}var Cn=f.useCallback(function(Yn){if(Wr&&Wr(Yn))return!0;if(on[1]&&Rn)return!Fr(En,Yn,Rn)&&En.isAfter(Yn,Rn);if(Lt&&Rn)switch(lr){case"quarter":return _n(Yn)>_n(Rn);case"month":return wn(Yn)>wn(Rn);case"week":return Un(Yn)>Un(Rn);default:return!Fr(En,Yn,Rn)&&En.isAfter(Yn,Rn)}return!1},[Wr,on[1],Rn,Lt]),Kn=f.useCallback(function(Yn){if(Wr&&Wr(Yn))return!0;if(on[0]&&An)return!Fr(En,Yn,Rn)&&En.isAfter(An,Yn);if(cr&&An)switch(lr){case"quarter":return _n(Yn)<_n(An);case"month":return wn(Yn)<wn(An);case"week":return Un(Yn)<Un(An);default:return!Fr(En,Yn,An)&&En.isAfter(An,Yn)}return!1},[Wr,on[0],An,cr]);return[Cn,Kn]}function qn(Ze,Lt,cr,lr){var _r=tr(Ze,cr,lr,1);function Rr(Wr){return Wr(Ze,Lt)?"same":Wr(_r,Lt)?"closing":"far"}switch(cr){case"year":return Rr(function(Wr,on){return Bt(lr,Wr,on)});case"quarter":case"month":return Rr(function(Wr,on){return qt(lr,Wr,on)});default:return Rr(function(Wr,on){return or(lr,Wr,on)})}}function wi(Ze,Lt,cr,lr){var _r=it(Ze,0),Rr=it(Ze,1);if(Lt===0)return _r;if(_r&&Rr){var Wr=qn(_r,Rr,cr,lr);switch(Wr){case"same":return _r;case"closing":return _r;default:return tr(Rr,cr,lr,-1)}}return _r}function Qn(Ze){var Lt=Ze.values,cr=Ze.picker,lr=Ze.defaultDates,_r=Ze.generateConfig,Rr=f.useState(function(){return[it(lr,0),it(lr,1)]}),Wr=Object(P.a)(Rr,2),on=Wr[0],En=Wr[1],An=f.useState(null),Rn=Object(P.a)(An,2),Un=Rn[0],wn=Rn[1],_n=it(Lt,0),Cn=it(Lt,1);function Kn(ni){return on[ni]?on[ni]:it(Un,ni)||wi(Lt,ni,cr,_r)||_n||Cn||_r.getNow()}function Yn(ni,yi){if(ni){var li=Fe(Un,ni,yi);En(Fe(on,null,yi)||[null,null]);var Oi=(yi+1)%2;it(Lt,Oi)||(li=Fe(li,ni,Oi)),wn(li)}else(_n||Cn)&&wn(null)}return[Kn,Yn]}function Hi(Ze,Lt){return Ze&&Ze[0]&&Ze[1]&&Lt.isAfter(Ze[0],Ze[1])?[Ze[1],Ze[0]]:Ze}function ri(Ze,Lt,cr,lr){return Ze||lr&&lr[Lt]?!0:!!cr[(Lt+1)%2]}function Mi(Ze){var Lt,cr,lr,_r=Ze.prefixCls,Rr=_r===void 0?"rc-picker":_r,Wr=Ze.id,on=Ze.style,En=Ze.className,An=Ze.popupStyle,Rn=Ze.dropdownClassName,Un=Ze.transitionName,wn=Ze.dropdownAlign,_n=Ze.getPopupContainer,Cn=Ze.generateConfig,Kn=Ze.locale,Yn=Ze.placeholder,ni=Ze.autoFocus,yi=Ze.disabled,li=Ze.format,Oi=Ze.picker,ki=Oi===void 0?"date":Oi,Si=Ze.showTime,mi=Ze.use12Hours,Li=Ze.separator,Wn=Li===void 0?"~":Li,Di=Ze.value,zi=Ze.defaultValue,yr=Ze.defaultPickerValue,Mr=Ze.open,Qr=Ze.defaultOpen,Ir=Ze.disabledDate,Gt=Ze.disabledTime,Sr=Ze.dateRender,Zt=Ze.panelRender,jr=Ze.ranges,Kr=Ze.allowEmpty,pn=Ze.allowClear,sn=Ze.suffixIcon,yn=Ze.clearIcon,Fn=Ze.pickerRef,Xn=Ze.inputReadOnly,Jn=Ze.mode,Ti=Ze.renderExtraFooter,ta=Ze.onChange,oa=Ze.onOpenChange,da=Ze.onPanelChange,ca=Ze.onCalendarChange,ma=Ze.onFocus,Ui=Ze.onBlur,Ni=Ze.onOk,ra=Ze.components,qi=Ze.order,Aa=Ze.direction,Oa=Ze.activePickerIndex,Zi=Ze.autoComplete,Gi=Zi===void 0?"off":Zi,La=ki==="date"&&!!Si||ki==="time",va=Object(f.useRef)({}),Ci=Object(f.useRef)(null),Sa=Object(f.useRef)(null),Da=Object(f.useRef)(null),Na=Object(f.useRef)(null),Ua=Object(f.useRef)(null),Pa=Object(f.useRef)(null),za=Object(f.useRef)(null),xa=Ke(q(li,ki,Si,mi)),ja=Object(U.a)(0,{value:Oa}),io=Object(P.a)(ja,2),ia=io[0],lo=io[1],Xa=Object(f.useRef)(null),Ta=f.useMemo(function(){return Array.isArray(yi)?yi:[yi||!1,yi||!1]},[yi]),Qa=Object(U.a)(null,{value:Di,defaultValue:zi,postState:function(ga){return ki==="time"&&!qi?ga:Hi(ga,Cn)}}),Ra=Object(P.a)(Qa,2),_a=Ra[0],yo=Ra[1],ao=Qn({values:_a,picker:ki,defaultDates:yr,generateConfig:Cn}),bo=Object(P.a)(ao,2),co=bo[0],uo=bo[1],Ya=Object(U.a)(_a,{postState:function(ga){var Wa=ga;if(Ta[0]&&Ta[1])return Wa;for(var oo=0;oo<2;oo+=1)Ta[oo]&&!it(Wa,oo)&&!it(Kr,oo)&&(Wa=Fe(Wa,Cn.getNow(),oo));return Wa}}),eo=Object(P.a)(Ya,2),wa=eo[0],ro=eo[1],fo=Object(U.a)([ki,ki],{value:Jn}),Bi=Object(P.a)(fo,2),Ma=Bi[0],Do=Bi[1];Object(f.useEffect)(function(){Do([ki,ki])},[ki]);var jo=function(ga,Wa){Do(ga),da&&da(Wa,ga)},Vo=ui({picker:ki,selectedValue:wa,locale:Kn,disabled:Ta,disabledDate:Ir,generateConfig:Cn},va.current[1],va.current[0]),Go=Object(P.a)(Vo,2),wo=Go[0],Ia=Go[1],Po=Object(U.a)(!1,{value:Mr,defaultValue:Qr,postState:function(ga){return Ta[ia]?!1:ga},onChange:function(ga){oa&&oa(ga),!ga&&Xa.current&&Xa.current.onClose&&Xa.current.onClose()}}),ds=Object(P.a)(Po,2),ho=ds[0],Oo=ds[1],Ka=ho&&ia===0,Xo=ho&&ia===1,nl=Object(f.useState)(0),Cs=Object(P.a)(nl,2),_s=Cs[0],xs=Cs[1];Object(f.useEffect)(function(){!ho&&Ci.current&&xs(Ci.current.offsetWidth)},[ho]);var ps=f.useRef();function Os(Ga,ga){if(Ga)clearTimeout(ps.current),va.current[ga]=!0,lo(ga),Oo(Ga),ho||uo(null,ga);else if(ia===ga){Oo(Ga);var Wa=va.current;ps.current=setTimeout(function(){Wa===va.current&&(va.current={})})}}function Ho(Ga){Os(!0,Ga),setTimeout(function(){var ga=[Pa,za][Ga];ga.current&&ga.current.focus()},0)}function mo(Ga,ga){var Wa=Ga,oo=it(Wa,0),Jo=it(Wa,1);oo&&Jo&&Cn.isAfter(oo,Jo)&&(ki==="week"&&!nr(Cn,Kn.locale,oo,Jo)||ki==="quarter"&&!Wt(Cn,oo,Jo)||ki!=="week"&&ki!=="quarter"&&ki!=="time"&&!Fr(Cn,oo,Jo)?(ga===0?(Wa=[oo,null],Jo=null):(oo=null,Wa=[null,Jo]),va.current=Object(R.a)({},ga,!0)):(ki!=="time"||qi!==!1)&&(Wa=Hi(Wa,Cn))),ro(Wa);var Hs=Wa&&Wa[0]?Cn.locale.format(Kn.locale,Wa[0],xa[0]):"",bs=Wa&&Wa[1]?Cn.locale.format(Kn.locale,Wa[1],xa[0]):"";if(ca){var ws={range:ga===0?"start":"end"};ca(Wa,[Hs,bs],ws)}var Uo=ri(oo,0,Ta,Kr),Io=ri(Jo,1,Ta,Kr),Zo=Wa===null||Uo&&Io;Zo&&(yo(Wa),ta&&(!Ot(Cn,it(_a,0),oo)||!Ot(Cn,it(_a,1),Jo))&&ta(Wa,[Hs,bs]));var xo=null;ga===0&&!Ta[1]?xo=1:ga===1&&!Ta[0]&&(xo=0),xo!==null&&xo!==ia&&(!va.current[xo]||!it(Wa,xo))&&it(Wa,ga)?Ho(xo):Os(!1,ga)}var es=function(ga){return ho&&Xa.current&&Xa.current.onKeyDown?Xa.current.onKeyDown(ga):(Object(L.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ko={formatList:xa,generateConfig:Cn,locale:Kn},Bo=Ii(it(wa,0),Ko),zr=Object(P.a)(Bo,2),Yo=zr[0],il=zr[1],Ks=Ii(it(wa,1),Ko),Ps=Object(P.a)(Ks,2),no=Ps[0],vo=Ps[1],Fo=function(ga,Wa){var oo=Cn.locale.parse(Kn.locale,ga,xa),Jo=Wa===0?wo:Ia;oo&&!Jo(oo)&&(ro(Fe(wa,oo,Wa)),uo(oo,Wa))},ns=ti({valueTexts:Yo,onTextChange:function(ga){return Fo(ga,0)}}),ys=Object(P.a)(ns,3),ms=ys[0],Is=ys[1],ol=ys[2],Ls=ti({valueTexts:no,onTextChange:function(ga){return Fo(ga,1)}}),Xs=Object(P.a)(Ls,3),Bs=Xs[0],gs=Xs[1],Ns=Xs[2],Tt=Object(f.useState)(null),Rt=Object(P.a)(Tt,2),rn=Rt[0],On=Rt[1],vt=Object(f.useState)(null),se=Object(P.a)(vt,2),ye=se[0],Se=se[1],Ue=gn(ms,{formatList:xa,generateConfig:Cn,locale:Kn}),ht=Object(P.a)(Ue,3),Nt=ht[0],br=ht[1],Or=ht[2],Zr=gn(Bs,{formatList:xa,generateConfig:Cn,locale:Kn}),Tn=Object(P.a)(Zr,3),Hn=Tn[0],si=Tn[1],xi=Tn[2],Ri=function(ga){Se(Fe(wa,ga,ia)),ia===0?br(ga):si(ga)},sa=function(){Se(Fe(wa,null,ia)),ia===0?Or():xi()},ya=function(ga,Wa){return{blurToCancel:La,forwardKeyDown:es,onBlur:Ui,isClickOutside:function(Jo){return!ce([Sa.current,Da.current,Na.current],Jo)},onFocus:function(Jo){lo(ga),ma&&ma(Jo)},triggerOpen:function(Jo){Os(Jo,ga)},onSubmit:function(){mo(wa,ga),Wa()},onCancel:function(){Os(!1,ga),ro(_a),Wa()}}},Ja=oi(Object(B.a)(Object(B.a)({},ya(0,ol)),{},{open:Ka,value:ms})),$a=Object(P.a)(Ja,2),to=$a[0],_o=$a[1],To=_o.focused,Ro=_o.typing,go=oi(Object(B.a)(Object(B.a)({},ya(1,Ns)),{},{open:Xo,value:Bs})),So=Object(P.a)(go,2),is=So[0],ts=So[1],Co=ts.focused,Yi=ts.typing,Ds=function(ga){!ho&&!Pa.current.contains(ga.target)&&!za.current.contains(ga.target)&&(Ta[0]?Ta[1]||Ho(1):Ho(0))},Es=function(ga){ho&&(To||Co)&&!Pa.current.contains(ga.target)&&!za.current.contains(ga.target)&&ga.preventDefault()},as=_a&&_a[0]?Cn.locale.format(Kn.locale,_a[0],"YYYYMMDDHHmmss"):"",Qo=_a&&_a[1]?Cn.locale.format(Kn.locale,_a[1],"YYYYMMDDHHmmss"):"";Object(f.useEffect)(function(){ho||(ro(_a),!Yo.length||Yo[0]===""?Is(""):il!==ms&&ol(),!no.length||no[0]===""?gs(""):vo!==Bs&&Ns())},[ho,Yo,no]),Object(f.useEffect)(function(){ro(_a)},[as,Qo]),Fn&&(Fn.current={focus:function(){Pa.current&&Pa.current.focus()},blur:function(){Pa.current&&Pa.current.blur(),za.current&&za.current.blur()}});var hs=Object.keys(jr||{}),vl=hs.map(function(Ga){var ga=jr[Ga],Wa=typeof ga=="function"?ga():ga;return{label:Ga,onClick:function(){mo(Wa,null),Os(!1,ia)},onMouseEnter:function(){On(Wa)},onMouseLeave:function(){On(null)}}});function sl(){var Ga=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ga=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wa=null;ho&&ye&&ye[0]&&ye[1]&&Cn.isAfter(ye[1],ye[0])&&(Wa=ye);var oo=Si;if(Si&&Object(j.a)(Si)==="object"&&Si.defaultValue){var Jo=Si.defaultValue;oo=Object(B.a)(Object(B.a)({},Si),{},{defaultValue:it(Jo,ia)||void 0})}var Hs=null;return Sr&&(Hs=function(ws,Uo){return Sr(ws,Uo,{range:ia?"end":"start"})}),f.createElement(Ar.Provider,{value:{inRange:!0,panelPosition:Ga,rangedValue:rn||wa,hoverRangedValue:Wa}},f.createElement(Br,Object.assign({},Ze,ga,{dateRender:Hs,showTime:oo,mode:Ma[ia],generateConfig:Cn,style:void 0,direction:Aa,disabledDate:ia===0?wo:Ia,disabledTime:function(ws){return Gt?Gt(ws,ia===0?"start":"end"):!1},className:A()(Object(R.a)({},"".concat(Rr,"-panel-focused"),ia===0?!Ro:!Yi)),value:it(wa,ia),locale:Kn,tabIndex:-1,onPanelChange:function(ws,Uo){jo(Fe(Ma,Uo,ia),Fe(wa,ws,ia));var Io=ws;Ga==="right"&&Ma[ia]===Uo&&(Io=tr(Io,Uo,Cn,-1)),uo(Io,ia)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var fs=0,Lo=0;ia&&Da.current&&Ua.current&&Sa.current&&(fs=Da.current.offsetWidth+Ua.current.offsetWidth,Sa.current.offsetWidth&&fs>Sa.current.offsetWidth&&(Lo=fs));var ls=Aa==="rtl"?{right:fs}:{left:fs};function Zs(){var Ga,ga=un(Rr,Ma[ia],Ti),Wa=ar({prefixCls:Rr,components:ra,needConfirmButton:La,okDisabled:!it(wa,ia)||Ir&&Ir(wa[ia]),locale:Kn,rangeList:vl,onOk:function(){it(wa,ia)&&(mo(wa,ia),Ni&&Ni(wa))}});if(ki!=="time"&&!Si){var oo=co(ia),Jo=tr(oo,ki,Cn),Hs=Ma[ia],bs=Hs===ki,ws=sl(bs?"left":!1,{pickerValue:oo,onPickerValueChange:function(xo){uo(xo,ia)}}),Uo=sl("right",{pickerValue:Jo,onPickerValueChange:function(xo){uo(tr(xo,ki,Cn,-1),ia)}});Aa==="rtl"?Ga=f.createElement(f.Fragment,null,Uo,bs&&ws):Ga=f.createElement(f.Fragment,null,ws,bs&&Uo)}else Ga=sl();var Io=f.createElement(f.Fragment,null,f.createElement("div",{className:"".concat(Rr,"-panels")},Ga),(ga||Wa)&&f.createElement("div",{className:"".concat(Rr,"-footer")},ga,Wa));return Zt&&(Io=Zt(Io)),f.createElement("div",{className:"".concat(Rr,"-panel-container"),style:{marginLeft:Lo},ref:Sa,onMouseDown:function(xo){xo.preventDefault()}},Io)}var vs=f.createElement("div",{className:A()("".concat(Rr,"-range-wrapper"),"".concat(Rr,"-").concat(ki,"-range-wrapper")),style:{minWidth:_s}},f.createElement("div",{className:"".concat(Rr,"-range-arrow"),style:ls}),Zs()),Fs;sn&&(Fs=f.createElement("span",{className:"".concat(Rr,"-suffix")},sn));var Us;pn&&(it(_a,0)&&!Ta[0]||it(_a,1)&&!Ta[1])&&(Us=f.createElement("span",{onMouseDown:function(ga){ga.preventDefault(),ga.stopPropagation()},onMouseUp:function(ga){ga.preventDefault(),ga.stopPropagation();var Wa=_a;Ta[0]||(Wa=Fe(Wa,null,0)),Ta[1]||(Wa=Fe(Wa,null,1)),mo(Wa,null),Os(!1,ia)},className:"".concat(Rr,"-clear")},yn||f.createElement("span",{className:"".concat(Rr,"-clear-btn")})));var Rs={size:We(ki,xa[0])},al=0,$s=0;Da.current&&Na.current&&Ua.current&&(ia===0?$s=Da.current.offsetWidth:(al=fs,$s=Na.current.offsetWidth));var Ys=Aa==="rtl"?{right:al}:{left:al},js=function(ga,Wa){var oo=Fe(wa,ga,ia);Wa==="submit"||Wa!=="key"&&!La?(mo(oo,ia),ia===0?Or():xi()):ro(oo)};return f.createElement(G.Provider,{value:{operationRef:Xa,hideHeader:ki==="time",onDateMouseEnter:Ri,onDateMouseLeave:sa,hideRanges:!0,onSelect:js,open:ho}},f.createElement(ii,{visible:ho,popupElement:vs,popupStyle:An,prefixCls:Rr,dropdownClassName:Rn,dropdownAlign:wn,getPopupContainer:_n,transitionName:Un,range:!0,direction:Aa},f.createElement("div",Object.assign({ref:Ci,className:A()(Rr,"".concat(Rr,"-range"),En,(Lt={},Object(R.a)(Lt,"".concat(Rr,"-disabled"),Ta[0]&&Ta[1]),Object(R.a)(Lt,"".concat(Rr,"-focused"),ia===0?To:Co),Object(R.a)(Lt,"".concat(Rr,"-rtl"),Aa==="rtl"),Lt)),style:on,onClick:Ds,onMouseDown:Es},Oe(Ze)),f.createElement("div",{className:A()("".concat(Rr,"-input"),(cr={},Object(R.a)(cr,"".concat(Rr,"-input-active"),ia===0),Object(R.a)(cr,"".concat(Rr,"-input-placeholder"),!!Nt),cr)),ref:Da},f.createElement("input",Object.assign({id:Wr,disabled:Ta[0],readOnly:Xn||!Ro,value:Nt||ms,onChange:function(ga){Is(ga.target.value)},autoFocus:ni,placeholder:it(Yn,0)||"",ref:Pa},to,Rs,{autoComplete:Gi}))),f.createElement("div",{className:"".concat(Rr,"-range-separator"),ref:Ua},Wn),f.createElement("div",{className:A()("".concat(Rr,"-input"),(lr={},Object(R.a)(lr,"".concat(Rr,"-input-active"),ia===1),Object(R.a)(lr,"".concat(Rr,"-input-placeholder"),!!Hn),lr)),ref:Na},f.createElement("input",Object.assign({disabled:Ta[1],readOnly:Xn||!Yi,value:Hn||Bs,onChange:function(ga){gs(ga.target.value)},placeholder:it(Yn,1)||"",ref:za},is,Rs,{autoComplete:Gi}))),f.createElement("div",{className:"".concat(Rr,"-active-bar"),style:Object(B.a)(Object(B.a)({},Ys),{},{width:$s,position:"absolute"})}),Fs,Us)))}var dn=function(Ze){Object(M.a)(cr,Ze);var Lt=Object(k.a)(cr);function cr(){var lr;return Object(O.a)(this,cr),lr=Lt.apply(this,arguments),lr.pickerRef=f.createRef(),lr.focus=function(){lr.pickerRef.current&&lr.pickerRef.current.focus()},lr.blur=function(){lr.pickerRef.current&&lr.pickerRef.current.blur()},lr}return Object(_.a)(cr,[{key:"render",value:function(){return f.createElement(Mi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),cr}(f.Component),Ur=dn,bn=tn,Mn=y("61s2");function Gn(Ze,Lt,cr){return cr!==void 0?cr:Ze==="year"&&Lt.lang.yearPlaceholder?Lt.lang.yearPlaceholder:Ze==="quarter"&&Lt.lang.quarterPlaceholder?Lt.lang.quarterPlaceholder:Ze==="month"&&Lt.lang.monthPlaceholder?Lt.lang.monthPlaceholder:Ze==="week"&&Lt.lang.weekPlaceholder?Lt.lang.weekPlaceholder:Ze==="time"&&Lt.timePickerLocale.placeholder?Lt.timePickerLocale.placeholder:Lt.lang.placeholder}function $n(Ze,Lt,cr){return cr!==void 0?cr:Ze==="year"&&Lt.lang.yearPlaceholder?Lt.lang.rangeYearPlaceholder:Ze==="month"&&Lt.lang.monthPlaceholder?Lt.lang.rangeMonthPlaceholder:Ze==="week"&&Lt.lang.weekPlaceholder?Lt.lang.rangeWeekPlaceholder:Ze==="time"&&Lt.timePickerLocale.placeholder?Lt.timePickerLocale.rangePlaceholder:Lt.lang.rangePlaceholder}var hi=y("uaoM"),fi=y("H84U"),gi=y("YMnH"),Wi=y("3Nzz"),na=function(Ze,Lt){var cr={};for(var lr in Ze)Object.prototype.hasOwnProperty.call(Ze,lr)&&Lt.indexOf(lr)<0&&(cr[lr]=Ze[lr]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _r=0,lr=Object.getOwnPropertySymbols(Ze);_r<lr.length;_r++)Lt.indexOf(lr[_r])<0&&Object.prototype.propertyIsEnumerable.call(Ze,lr[_r])&&(cr[lr[_r]]=Ze[lr[_r]]);return cr};function $i(Ze){function Lt(En,An){var Rn=function(Un){h()(_n,Un);var wn=g()(_n);function _n(Cn){var Kn;return n()(this,_n),Kn=wn.call(this,Cn),Kn.pickerRef=f.createRef(),Kn.focus=function(){Kn.pickerRef.current&&Kn.pickerRef.current.focus()},Kn.blur=function(){Kn.pickerRef.current&&Kn.pickerRef.current.blur()},Kn.getDefaultLocale=function(){var Yn=Kn.props.locale,ni=m()(m()({},Mn.a),Yn);return ni.lang=m()(m()({},ni.lang),(Yn||{}).lang),ni},Kn.renderPicker=function(Yn){var ni=Kn.context,yi=ni.getPrefixCls,li=ni.direction,Oi=ni.getPopupContainer,ki=Kn.props,Si=ki.prefixCls,mi=ki.getPopupContainer,Li=ki.className,Wn=ki.size,Di=ki.bordered,zi=Di===void 0?!0:Di,yr=ki.placeholder,Mr=na(ki,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Qr=Kn.props,Ir=Qr.format,Gt=Qr.showTime,Sr=yi("picker",Si),Zt={showToday:!0},jr={};En&&(jr.picker=En);var Kr=En||Kn.props.picker;return jr=m()(m()(m()({},jr),Gt?ea(m()({format:Ir,picker:Kr},Gt)):{}),Kr==="time"?ea(m()(m()({format:Ir},Kn.props),{picker:Kr})):{}),f.createElement(Wi.b.Consumer,null,function(pn){var sn,yn=Wn||pn;return f.createElement(bn,m()({ref:Kn.pickerRef,placeholder:Gn(Kr,Yn,yr),suffixIcon:Kr==="time"?f.createElement(S.a,null):f.createElement(b.a,null),clearIcon:f.createElement(C.a,null),allowClear:!0,transitionName:"slide-up"},Zt,Mr,jr,{locale:Yn.lang,className:A()(Li,(sn={},u()(sn,"".concat(Sr,"-").concat(yn),yn),u()(sn,"".concat(Sr,"-borderless"),!zi),sn)),prefixCls:Sr,getPopupContainer:mi||Oi,generateConfig:Ze,prevIcon:f.createElement("span",{className:"".concat(Sr,"-prev-icon")}),nextIcon:f.createElement("span",{className:"".concat(Sr,"-next-icon")}),superPrevIcon:f.createElement("span",{className:"".concat(Sr,"-super-prev-icon")}),superNextIcon:f.createElement("span",{className:"".concat(Sr,"-super-next-icon")}),components:Ji,direction:li}))})},Object(hi.a)(En!=="quarter",An,"DatePicker.".concat(An," is legacy usage. Please use DatePicker[picker='").concat(En,"'] directly.")),Kn}return c()(_n,[{key:"render",value:function(){return f.createElement(gi.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),_n}(f.Component);return Rn.contextType=fi.b,An&&(Rn.displayName=An),Rn}var cr=Lt(),lr=Lt("week","WeekPicker"),_r=Lt("month","MonthPicker"),Rr=Lt("year","YearPicker"),Wr=Lt("time","TimePicker"),on=Lt("quarter","QuarterPicker");return{DatePicker:cr,WeekPicker:lr,MonthPicker:_r,YearPicker:Rr,TimePicker:Wr,QuarterPicker:on}}var Ha=y("8ISB"),pi=y.n(Ha),ln=function(Ze,Lt){var cr={};for(var lr in Ze)Object.prototype.hasOwnProperty.call(Ze,lr)&&Lt.indexOf(lr)<0&&(cr[lr]=Ze[lr]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _r=0,lr=Object.getOwnPropertySymbols(Ze);_r<lr.length;_r++)Lt.indexOf(lr[_r])<0&&Object.prototype.propertyIsEnumerable.call(Ze,lr[_r])&&(cr[lr[_r]]=Ze[lr[_r]]);return cr};function _i(Ze){var Lt=function(cr){h()(_r,cr);var lr=g()(_r);function _r(){var Rr;return n()(this,_r),Rr=lr.apply(this,arguments),Rr.pickerRef=f.createRef(),Rr.focus=function(){Rr.pickerRef.current&&Rr.pickerRef.current.focus()},Rr.blur=function(){Rr.pickerRef.current&&Rr.pickerRef.current.blur()},Rr.getDefaultLocale=function(){var Wr=Rr.props.locale,on=m()(m()({},Mn.a),Wr);return on.lang=m()(m()({},on.lang),(Wr||{}).lang),on},Rr.renderPicker=function(Wr){var on=Rr.context,En=on.getPrefixCls,An=on.direction,Rn=on.getPopupContainer,Un=Rr.props,wn=Un.prefixCls,_n=Un.getPopupContainer,Cn=Un.className,Kn=Un.size,Yn=Un.bordered,ni=Yn===void 0?!0:Yn,yi=Un.placeholder,li=ln(Un,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Oi=Rr.props,ki=Oi.format,Si=Oi.showTime,mi=Oi.picker,Li=En("picker",wn),Wn={};return Wn=m()(m()(m()({},Wn),Si?ea(m()({format:ki,picker:mi},Si)):{}),mi==="time"?ea(m()(m()({format:ki},Rr.props),{picker:mi})):{}),f.createElement(Wi.b.Consumer,null,function(Di){var zi,yr=Kn||Di;return f.createElement(Ur,m()({separator:f.createElement("span",{"aria-label":"to",className:"".concat(Li,"-separator")},f.createElement(pi.a,null)),ref:Rr.pickerRef,placeholder:$n(mi,Wr,yi),suffixIcon:mi==="time"?f.createElement(S.a,null):f.createElement(b.a,null),clearIcon:f.createElement(C.a,null),allowClear:!0,transitionName:"slide-up"},li,Wn,{className:A()(Cn,(zi={},u()(zi,"".concat(Li,"-").concat(yr),yr),u()(zi,"".concat(Li,"-borderless"),!ni),zi)),locale:Wr.lang,prefixCls:Li,getPopupContainer:_n||Rn,generateConfig:Ze,prevIcon:f.createElement("span",{className:"".concat(Li,"-prev-icon")}),nextIcon:f.createElement("span",{className:"".concat(Li,"-next-icon")}),superPrevIcon:f.createElement("span",{className:"".concat(Li,"-super-prev-icon")}),superNextIcon:f.createElement("span",{className:"".concat(Li,"-super-next-icon")}),components:Ji,direction:An}))})},Rr}return c()(_r,[{key:"render",value:function(){return f.createElement(gi.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),_r}(f.Component);return Lt.contextType=fi.b,Lt}var Ji={button:t,rangeItem:a};function Fi(Ze){return Ze?Array.isArray(Ze)?Ze:[Ze]:[]}function ea(Ze){var Lt=Ze.format,cr=Ze.picker,lr=Ze.showHour,_r=Ze.showMinute,Rr=Ze.showSecond,Wr=Ze.use12Hours,on=Fi(Lt)[0],En=m()({},Ze);return on&&(!on.includes("s")&&Rr===void 0&&(En.showSecond=!1),!on.includes("m")&&_r===void 0&&(En.showMinute=!1),!on.includes("H")&&!on.includes("h")&&lr===void 0&&(En.showHour=!1),(on.includes("a")||on.includes("A"))&&Wr===void 0&&(En.use12Hours=!0)),cr==="time"?En:{showTime:En}}function Vt(Ze){var Lt=$i(Ze),cr=Lt.DatePicker,lr=Lt.WeekPicker,_r=Lt.MonthPicker,Rr=Lt.YearPicker,Wr=Lt.TimePicker,on=Lt.QuarterPicker,En=_i(Ze),An=cr;return An.WeekPicker=lr,An.MonthPicker=_r,An.YearPicker=Rr,An.RangePicker=En,An.TimePicker=Wr,An.QuarterPicker=on,An}var Xr=Vt,nn=Xr(I),fn=z.a=nn},"+lIL":function(fe,z,y){var D=y("ProS");y("/ry/"),y("3OrL");var N=y("L5E0"),L=y("7Phj");D.registerVisual(N),D.registerLayout(L)},"+nKL":function(fe,z,y){"use strict";var D=y("q1tI"),N=y("TSYQ"),L=y.n(N),E=y("wx14"),I=y("Zm9Q"),o=y("Kwbf"),m=y("VTBJ"),f=y("c+Xe"),s=y("m+aA"),t=y("bdgK"),l=new Map;function a(tt){tt.forEach(function(nt){var Te,Me=nt.target;(Te=l.get(Me))===null||Te===void 0||Te.forEach(function(Xe){return Xe(Me)})})}var r=new t.default(a),u=null,e=null;function n(tt,nt){l.has(tt)||(l.set(tt,new Set),r.observe(tt)),l.get(tt).add(nt)}function i(tt,nt){l.has(tt)&&(l.get(tt).delete(nt),l.get(tt).size||(r.unobserve(tt),l.delete(tt)))}var c=y("1OyB"),d=y("vuIU"),h=y("Ji7U"),p=y("LK+K"),g=function(tt){Object(h.a)(Te,tt);var nt=Object(p.a)(Te);function Te(){return Object(c.a)(this,Te),nt.apply(this,arguments)}return Object(d.a)(Te,[{key:"render",value:function(){return this.props.children}}]),Te}(D.Component),v=D.createContext(null);function A(tt){var nt=tt.children,Te=tt.onBatchResize,Me=D.useRef(0),Xe=D.useRef([]),at=D.useContext(v),zt=D.useCallback(function(kt,Xt,Dr){Me.current+=1;var Pr=Me.current;Xe.current.push({size:kt,element:Xt,data:Dr}),Promise.resolve().then(function(){Pr===Me.current&&(Te==null||Te(Xe.current),Xe.current=[])}),at==null||at(kt,Xt,Dr)},[Te,at]);return D.createElement(v.Provider,{value:zt},nt)}function x(tt){var nt=tt.children,Te=tt.disabled,Me=D.useRef(null),Xe=D.useRef(null),at=D.useContext(v),zt=D.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),kt=D.isValidElement(nt)&&Object(f.c)(nt),Xt=kt?nt.ref:null,Dr=D.useMemo(function(){return Object(f.a)(Xt,Me)},[Xt,Me]),Pr=D.useRef(tt);Pr.current=tt;var cn=D.useCallback(function(jt){var gt=Pr.current,dt=gt.onResize,Qt=gt.data,Jt=jt.getBoundingClientRect(),xt=Jt.width,Pt=Jt.height,yt=jt.offsetWidth,Ut=jt.offsetHeight,pr=Math.floor(xt),sr=Math.floor(Pt);if(zt.current.width!==pr||zt.current.height!==sr||zt.current.offsetWidth!==yt||zt.current.offsetHeight!==Ut){var ir={width:pr,height:sr,offsetWidth:yt,offsetHeight:Ut};zt.current=ir;var Yr=yt===Math.round(xt)?xt:yt,Jr=Ut===Math.round(Pt)?Pt:Ut,In=Object(m.a)(Object(m.a)({},ir),{},{offsetWidth:Yr,offsetHeight:Jr});at==null||at(In,jt,Qt),dt&&Promise.resolve().then(function(){dt(In,jt)})}},[]);return D.useEffect(function(){var jt=Object(s.a)(Me.current)||Object(s.a)(Xe.current);return jt&&!Te&&n(jt,cn),function(){return i(jt,cn)}},[Me.current,Te]),D.createElement(g,{ref:Xe},kt?D.cloneElement(nt,{ref:Dr}):nt)}var b="rc-observer-key";function w(tt){var nt=tt.children,Te=Object(I.a)(nt);return Te.map(function(Me,Xe){var at=(Me==null?void 0:Me.key)||"".concat(b,"-").concat(Xe);return D.createElement(x,Object(E.a)({},tt,{key:at}),Me)})}w.Collection=A;var S=w;function T(tt,nt){var Te=Object.keys(tt);if(Object.getOwnPropertySymbols){var Me=Object.getOwnPropertySymbols(tt);nt&&(Me=Me.filter(function(Xe){return Object.getOwnPropertyDescriptor(tt,Xe).enumerable})),Te.push.apply(Te,Me)}return Te}function C(tt){for(var nt=1;nt<arguments.length;nt++){var Te=arguments[nt]!=null?arguments[nt]:{};nt%2?T(Object(Te),!0).forEach(function(Me){O(tt,Me,Te[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(Te)):T(Object(Te)).forEach(function(Me){Object.defineProperty(tt,Me,Object.getOwnPropertyDescriptor(Te,Me))})}return tt}function O(tt,nt,Te){return nt in tt?Object.defineProperty(tt,nt,{value:Te,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=Te,tt}var _=D.forwardRef(function(tt,nt){var Te=tt.height,Me=tt.offset,Xe=tt.children,at=tt.prefixCls,zt=tt.onInnerResize,kt={},Xt={display:"flex",flexDirection:"column"};return Me!==void 0&&(kt={height:Te,position:"relative",overflow:"hidden"},Xt=C(C({},Xt),{},{transform:"translateY(".concat(Me,"px)"),position:"absolute",left:0,right:0,top:0})),D.createElement("div",{style:kt},D.createElement(S,{onResize:function(Pr){var cn=Pr.offsetHeight;cn&&zt&&zt()}},D.createElement("div",{style:Xt,className:L()(O({},"".concat(at,"-holder-inner"),at)),ref:nt},Xe)))});_.displayName="Filler";var M=_,k=y("wgJM");function R(tt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R=function(Te){return typeof Te}:R=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},R(tt)}function B(tt,nt,Te){return nt in tt?Object.defineProperty(tt,nt,{value:Te,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=Te,tt}function P(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function U(tt,nt){for(var Te=0;Te<nt.length;Te++){var Me=nt[Te];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(tt,Me.key,Me)}}function j(tt,nt,Te){return nt&&U(tt.prototype,nt),Te&&U(tt,Te),tt}function H(tt,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function");tt.prototype=Object.create(nt&&nt.prototype,{constructor:{value:tt,writable:!0,configurable:!0}}),nt&&W(tt,nt)}function W(tt,nt){return W=Object.setPrototypeOf||function(Me,Xe){return Me.__proto__=Xe,Me},W(tt,nt)}function G(tt){var nt=Y();return function(){var Me=Q(tt),Xe;if(nt){var at=Q(this).constructor;Xe=Reflect.construct(Me,arguments,at)}else Xe=Me.apply(this,arguments);return V(this,Xe)}}function V(tt,nt){if(nt&&(R(nt)==="object"||typeof nt=="function"))return nt;if(nt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z(tt)}function Z(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}function Y(){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(tt){return!1}}function Q(tt){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(Te){return Te.__proto__||Object.getPrototypeOf(Te)},Q(tt)}var oe=20;function ue(tt){return"touches"in tt?tt.touches[0].pageY:tt.pageY}var Le=function(tt){H(Te,tt);var nt=G(Te);function Te(){var Me;P(this,Te);for(var Xe=arguments.length,at=new Array(Xe),zt=0;zt<Xe;zt++)at[zt]=arguments[zt];return Me=nt.call.apply(nt,[this].concat(at)),Me.moveRaf=null,Me.scrollbarRef=D.createRef(),Me.thumbRef=D.createRef(),Me.visibleTimeout=null,Me.state={dragging:!1,pageY:null,startTop:null,visible:!1},Me.delayHidden=function(){clearTimeout(Me.visibleTimeout),Me.setState({visible:!0}),Me.visibleTimeout=setTimeout(function(){Me.setState({visible:!1})},2e3)},Me.onScrollbarTouchStart=function(kt){kt.preventDefault()},Me.onContainerMouseDown=function(kt){kt.stopPropagation(),kt.preventDefault()},Me.patchEvents=function(){window.addEventListener("mousemove",Me.onMouseMove),window.addEventListener("mouseup",Me.onMouseUp),Me.thumbRef.current.addEventListener("touchmove",Me.onMouseMove),Me.thumbRef.current.addEventListener("touchend",Me.onMouseUp)},Me.removeEvents=function(){window.removeEventListener("mousemove",Me.onMouseMove),window.removeEventListener("mouseup",Me.onMouseUp),Me.scrollbarRef.current.removeEventListener("touchstart",Me.onScrollbarTouchStart),Me.thumbRef.current.removeEventListener("touchstart",Me.onMouseDown),Me.thumbRef.current.removeEventListener("touchmove",Me.onMouseMove),Me.thumbRef.current.removeEventListener("touchend",Me.onMouseUp),k.a.cancel(Me.moveRaf)},Me.onMouseDown=function(kt){var Xt=Me.props.onStartMove;Me.setState({dragging:!0,pageY:ue(kt),startTop:Me.getTop()}),Xt(),Me.patchEvents(),kt.stopPropagation(),kt.preventDefault()},Me.onMouseMove=function(kt){var Xt=Me.state,Dr=Xt.dragging,Pr=Xt.pageY,cn=Xt.startTop,jt=Me.props.onScroll;if(k.a.cancel(Me.moveRaf),Dr){var gt=ue(kt)-Pr,dt=cn+gt,Qt=Me.getEnableScrollRange(),Jt=Me.getEnableHeightRange(),xt=Jt?dt/Jt:0,Pt=Math.ceil(xt*Qt);Me.moveRaf=Object(k.a)(function(){jt(Pt)})}},Me.onMouseUp=function(){var kt=Me.props.onStopMove;Me.setState({dragging:!1}),kt(),Me.removeEvents()},Me.getSpinHeight=function(){var kt=Me.props,Xt=kt.height,Dr=kt.count,Pr=Xt/Dr*10;return Pr=Math.max(Pr,oe),Pr=Math.min(Pr,Xt/2),Math.floor(Pr)},Me.getEnableScrollRange=function(){var kt=Me.props,Xt=kt.scrollHeight,Dr=kt.height;return Xt-Dr||0},Me.getEnableHeightRange=function(){var kt=Me.props.height,Xt=Me.getSpinHeight();return kt-Xt||0},Me.getTop=function(){var kt=Me.props.scrollTop,Xt=Me.getEnableScrollRange(),Dr=Me.getEnableHeightRange();if(kt===0||Xt===0)return 0;var Pr=kt/Xt;return Pr*Dr},Me.showScroll=function(){var kt=Me.props,Xt=kt.height,Dr=kt.scrollHeight;return Dr>Xt},Me}return j(Te,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(Xe){Xe.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var Xe=this.state,at=Xe.dragging,zt=Xe.visible,kt=this.props.prefixCls,Xt=this.getSpinHeight(),Dr=this.getTop(),Pr=this.showScroll(),cn=Pr&&zt;return D.createElement("div",{ref:this.scrollbarRef,className:L()("".concat(kt,"-scrollbar"),B({},"".concat(kt,"-scrollbar-show"),Pr)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:cn?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},D.createElement("div",{ref:this.thumbRef,className:L()("".concat(kt,"-scrollbar-thumb"),B({},"".concat(kt,"-scrollbar-thumb-moving"),at)),style:{width:"100%",height:Xt,top:Dr,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),Te}(D.Component);function me(tt){var nt=tt.children,Te=tt.setRef,Me=D.useCallback(function(Xe){Te(Xe)},[]);return D.cloneElement(nt,{ref:Me})}function Ie(tt,nt,Te,Me,Xe,at){var zt=at.getKey;return tt.slice(nt,Te+1).map(function(kt,Xt){var Dr=nt+Xt,Pr=Xe(kt,Dr,{}),cn=zt(kt);return D.createElement(me,{key:cn,setRef:function(gt){return Me(kt,gt)}},Pr)})}function X(tt,nt){if(!(tt instanceof nt))throw new TypeError("Cannot call a class as a function")}function q(tt,nt){for(var Te=0;Te<nt.length;Te++){var Me=nt[Te];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(tt,Me.key,Me)}}function We(tt,nt,Te){return nt&&q(tt.prototype,nt),Te&&q(tt,Te),tt}var $=function(){function tt(){X(this,tt),this.maps=void 0,this.maps=Object.create(null)}return We(tt,[{key:"set",value:function(Te,Me){this.maps[Te]=Me}},{key:"get",value:function(Te){return this.maps[Te]}}]),tt}(),J=$;function le(tt,nt){return Ee(tt)||De(tt,nt)||Ne(tt,nt)||de()}function de(){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 Ne(tt,nt){if(!tt)return;if(typeof tt=="string")return we(tt,nt);var Te=Object.prototype.toString.call(tt).slice(8,-1);if(Te==="Object"&&tt.constructor&&(Te=tt.constructor.name),Te==="Map"||Te==="Set")return Array.from(tt);if(Te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Te))return we(tt,nt)}function we(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var Te=0,Me=new Array(nt);Te<nt;Te++)Me[Te]=tt[Te];return Me}function De(tt,nt){var Te=tt==null?null:typeof Symbol!="undefined"&&tt[Symbol.iterator]||tt["@@iterator"];if(Te==null)return;var Me=[],Xe=!0,at=!1,zt,kt;try{for(Te=Te.call(tt);!(Xe=(zt=Te.next()).done)&&!(Me.push(zt.value),nt&&Me.length===nt);Xe=!0);}catch(Xt){at=!0,kt=Xt}finally{try{!Xe&&Te.return!=null&&Te.return()}finally{if(at)throw kt}}return Me}function Ee(tt){if(Array.isArray(tt))return tt}function ce(tt,nt,Te){var Me=D.useState(0),Xe=le(Me,2),at=Xe[0],zt=Xe[1],kt=Object(D.useRef)(new Map),Xt=Object(D.useRef)(new J),Dr=Object(D.useRef)(0);function Pr(){Dr.current+=1;var jt=Dr.current;Promise.resolve().then(function(){if(jt!==Dr.current)return;kt.current.forEach(function(gt,dt){if(gt&>.offsetParent){var Qt=Object(s.a)(gt),Jt=Qt.offsetHeight;Xt.current.get(dt)!==Jt&&Xt.current.set(dt,Qt.offsetHeight)}}),zt(function(gt){return gt+1})})}function cn(jt,gt){var dt=tt(jt),Qt=kt.current.get(dt);gt?(kt.current.set(dt,gt),Pr()):kt.current.delete(dt),!Qt!==!gt&&(gt?nt==null||nt(jt):Te==null||Te(jt))}return[cn,Pr,Xt.current,at]}function ne(tt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ne=function(Te){return typeof Te}:ne=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},ne(tt)}function ee(tt,nt,Te,Me,Xe,at,zt,kt){var Xt=D.useRef();return function(Dr){if(Dr==null){kt();return}if(k.a.cancel(Xt.current),typeof Dr=="number")zt(Dr);else if(Dr&&ne(Dr)==="object"){var Pr,cn=Dr.align;"index"in Dr?Pr=Dr.index:Pr=nt.findIndex(function(Qt){return Xe(Qt)===Dr.key});var jt=Dr.offset,gt=jt===void 0?0:jt,dt=function Qt(Jt,xt){if(Jt<0||!tt.current)return;var Pt=tt.current.clientHeight,yt=!1,Ut=xt;if(Pt){for(var pr=xt||cn,sr=0,ir=0,Yr=0,Jr=Math.min(nt.length,Pr),In=0;In<=Jr;In+=1){var Nn=Xe(nt[In]);ir=sr;var zn=Te.get(Nn);Yr=ir+(zn===void 0?Me:zn),sr=Yr,In===Pr&&zn===void 0&&(yt=!0)}var ei=null;switch(pr){case"top":ei=ir-gt;break;case"bottom":ei=Yr-Pt+gt;break;default:{var Ai=tt.current.scrollTop,Pi=Ai+Pt;ir<Ai?Ut="top":Yr>Pi&&(Ut="bottom")}}ei!==null&&ei!==tt.current.scrollTop&&zt(ei)}Xt.current=Object(k.a)(function(){yt&&at(),Qt(Jt-1,Ut)})};dt(3)}}}function Ae(tt,nt,Te,Me){var Xe=Te-tt,at=nt-Te,zt=Math.min(Xe,at)*2;if(Me<=zt){var kt=Math.floor(Me/2);return Me%2?Te+kt+1:Te-kt}return Xe>at?Te-(Me-at):Te+(Me-Xe)}function Ve(tt,nt,Te){var Me=tt.length,Xe=nt.length,at,zt;if(Me===0&&Xe===0)return null;Me<Xe?(at=tt,zt=nt):(at=nt,zt=tt);var kt={__EMPTY_ITEM__:!0};function Xt(dt){return dt!==void 0?Te(dt):kt}for(var Dr=null,Pr=Math.abs(Me-Xe)!==1,cn=0;cn<zt.length;cn+=1){var jt=Xt(at[cn]),gt=Xt(zt[cn]);if(jt!==gt){Dr=cn,Pr=Pr||jt!==Xt(zt[cn+1]);break}}return Dr===null?null:{index:Dr,multiple:Pr}}function Ke(tt,nt){return At(tt)||ft(tt,nt)||it(tt,nt)||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 it(tt,nt){if(!tt)return;if(typeof tt=="string")return Fe(tt,nt);var Te=Object.prototype.toString.call(tt).slice(8,-1);if(Te==="Object"&&tt.constructor&&(Te=tt.constructor.name),Te==="Map"||Te==="Set")return Array.from(tt);if(Te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Te))return Fe(tt,nt)}function Fe(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var Te=0,Me=new Array(nt);Te<nt;Te++)Me[Te]=tt[Te];return Me}function ft(tt,nt){var Te=tt==null?null:typeof Symbol!="undefined"&&tt[Symbol.iterator]||tt["@@iterator"];if(Te==null)return;var Me=[],Xe=!0,at=!1,zt,kt;try{for(Te=Te.call(tt);!(Xe=(zt=Te.next()).done)&&!(Me.push(zt.value),nt&&Me.length===nt);Xe=!0);}catch(Xt){at=!0,kt=Xt}finally{try{!Xe&&Te.return!=null&&Te.return()}finally{if(at)throw kt}}return Me}function At(tt){if(Array.isArray(tt))return tt}function bt(tt,nt,Te){var Me=D.useState(tt),Xe=Ke(Me,2),at=Xe[0],zt=Xe[1],kt=D.useState(null),Xt=Ke(kt,2),Dr=Xt[0],Pr=Xt[1];return D.useEffect(function(){var cn=Ve(at||[],tt||[],nt);(cn==null?void 0:cn.index)!==void 0&&(Te==null||Te(cn.index),Pr(tt[cn.index])),zt(tt)},[tt]),[Dr]}function St(tt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?St=function(Te){return typeof Te}:St=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},St(tt)}var Et=(typeof navigator=="undefined"?"undefined":St(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),je=Et,pe=function(tt,nt){var Te=Object(D.useRef)(!1),Me=Object(D.useRef)(null);function Xe(){clearTimeout(Me.current),Te.current=!0,Me.current=setTimeout(function(){Te.current=!1},50)}var at=Object(D.useRef)({top:tt,bottom:nt});return at.current.top=tt,at.current.bottom=nt,function(zt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=zt<0&&at.current.top||zt>0&&at.current.bottom;return kt&&Xt?(clearTimeout(Me.current),Te.current=!1):(!Xt||Te.current)&&Xe(),!Te.current&&Xt}};function ie(tt,nt,Te,Me){var Xe=Object(D.useRef)(0),at=Object(D.useRef)(null),zt=Object(D.useRef)(null),kt=Object(D.useRef)(!1),Xt=pe(nt,Te);function Dr(cn){if(!tt)return;k.a.cancel(at.current);var jt=cn.deltaY;if(Xe.current+=jt,zt.current=jt,Xt(jt))return;je||cn.preventDefault(),at.current=Object(k.a)(function(){var gt=kt.current?10:1;Me(Xe.current*gt),Xe.current=0})}function Pr(cn){if(!tt)return;kt.current=cn.detail===zt.current}return[Dr,Pr]}var st=14/15;function Qe(tt,nt,Te){var Me=Object(D.useRef)(!1),Xe=Object(D.useRef)(0),at=Object(D.useRef)(null),zt=Object(D.useRef)(null),kt,Xt=function(jt){if(Me.current){var gt=Math.ceil(jt.touches[0].pageY),dt=Xe.current-gt;Xe.current=gt,Te(dt)&&jt.preventDefault(),clearInterval(zt.current),zt.current=setInterval(function(){dt*=st,(!Te(dt,!0)||Math.abs(dt)<=.1)&&clearInterval(zt.current)},16)}},Dr=function(){Me.current=!1,kt()},Pr=function(jt){kt(),jt.touches.length===1&&!Me.current&&(Me.current=!0,Xe.current=Math.ceil(jt.touches[0].pageY),at.current=jt.target,at.current.addEventListener("touchmove",Xt),at.current.addEventListener("touchend",Dr))};kt=function(){at.current&&(at.current.removeEventListener("touchmove",Xt),at.current.removeEventListener("touchend",Dr))},D.useLayoutEffect(function(){return tt&&nt.current.addEventListener("touchstart",Pr),function(){nt.current.removeEventListener("touchstart",Pr),kt(),clearInterval(zt.current)}},[tt])}var ve=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function Bt(){return Bt=Object.assign||function(tt){for(var nt=1;nt<arguments.length;nt++){var Te=arguments[nt];for(var Me in Te)Object.prototype.hasOwnProperty.call(Te,Me)&&(tt[Me]=Te[Me])}return tt},Bt.apply(this,arguments)}function qt(tt,nt){var Te=Object.keys(tt);if(Object.getOwnPropertySymbols){var Me=Object.getOwnPropertySymbols(tt);nt&&(Me=Me.filter(function(Xe){return Object.getOwnPropertyDescriptor(tt,Xe).enumerable})),Te.push.apply(Te,Me)}return Te}function ct(tt){for(var nt=1;nt<arguments.length;nt++){var Te=arguments[nt]!=null?arguments[nt]:{};nt%2?qt(Object(Te),!0).forEach(function(Me){Wt(tt,Me,Te[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(Te)):qt(Object(Te)).forEach(function(Me){Object.defineProperty(tt,Me,Object.getOwnPropertyDescriptor(Te,Me))})}return tt}function Wt(tt,nt,Te){return nt in tt?Object.defineProperty(tt,nt,{value:Te,enumerable:!0,configurable:!0,writable:!0}):tt[nt]=Te,tt}function or(tt,nt){return lt(tt)||Ot(tt,nt)||er(tt,nt)||Fr()}function Fr(){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 er(tt,nt){if(!tt)return;if(typeof tt=="string")return nr(tt,nt);var Te=Object.prototype.toString.call(tt).slice(8,-1);if(Te==="Object"&&tt.constructor&&(Te=tt.constructor.name),Te==="Map"||Te==="Set")return Array.from(tt);if(Te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Te))return nr(tt,nt)}function nr(tt,nt){(nt==null||nt>tt.length)&&(nt=tt.length);for(var Te=0,Me=new Array(nt);Te<nt;Te++)Me[Te]=tt[Te];return Me}function Ot(tt,nt){var Te=tt==null?null:typeof Symbol!="undefined"&&tt[Symbol.iterator]||tt["@@iterator"];if(Te==null)return;var Me=[],Xe=!0,at=!1,zt,kt;try{for(Te=Te.call(tt);!(Xe=(zt=Te.next()).done)&&!(Me.push(zt.value),nt&&Me.length===nt);Xe=!0);}catch(Xt){at=!0,kt=Xt}finally{try{!Xe&&Te.return!=null&&Te.return()}finally{if(at)throw kt}}return Me}function lt(tt){if(Array.isArray(tt))return tt}function qe(tt,nt){if(tt==null)return{};var Te=tr(tt,nt),Me,Xe;if(Object.getOwnPropertySymbols){var at=Object.getOwnPropertySymbols(tt);for(Xe=0;Xe<at.length;Xe++){if(Me=at[Xe],nt.indexOf(Me)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(tt,Me))continue;Te[Me]=tt[Me]}}return Te}function tr(tt,nt){if(tt==null)return{};var Te={},Me=Object.keys(tt),Xe,at;for(at=0;at<Me.length;at++){if(Xe=Me[at],nt.indexOf(Xe)>=0)continue;Te[Xe]=tt[Xe]}return Te}var xr=[],Ar={overflowY:"auto",overflowAnchor:"none"};function fr(tt,nt){var Te=tt.prefixCls,Me=Te===void 0?"rc-virtual-list":Te,Xe=tt.className,at=tt.height,zt=tt.itemHeight,kt=tt.fullHeight,Xt=kt===void 0?!0:kt,Dr=tt.style,Pr=tt.data,cn=tt.children,jt=tt.itemKey,gt=tt.virtual,dt=tt.component,Qt=dt===void 0?"div":dt,Jt=tt.onScroll,xt=tt.onVisibleChange,Pt=qe(tt,ve),yt=!!(gt!==!1&&at&&zt),Ut=yt&&Pr&&zt*Pr.length>at,pr=Object(D.useState)(0),sr=or(pr,2),ir=sr[0],Yr=sr[1],Jr=Object(D.useState)(!1),In=or(Jr,2),Nn=In[0],zn=In[1],ei=L()(Me,Xe),Ai=Pr||xr,Pi=Object(D.useRef)(),$e=Object(D.useRef)(),_e=Object(D.useRef)(),Be=D.useCallback(function(ri){return typeof jt=="function"?jt(ri):ri==null?void 0:ri[jt]},[jt]),He={getKey:Be};function Je(ri){Yr(function(Mi){var dn;typeof ri=="function"?dn=ri(Mi):dn=ri;var Ur=ti(dn);return Pi.current.scrollTop=Ur,Ur})}var Ye=Object(D.useRef)({start:0,end:Ai.length}),et=Object(D.useRef)(),wt=bt(Ai,Be),ut=or(wt,1),Ft=ut[0];et.current=Ft;var wr=ce(Be,null,null),hr=or(wr,4),Nr=hr[0],Kt=hr[1],un=hr[2],ar=hr[3],Gr=D.useMemo(function(){if(!yt)return{scrollHeight:void 0,start:0,end:Ai.length-1,offset:void 0};if(!Ut){var ri;return{scrollHeight:((ri=$e.current)===null||ri===void 0?void 0:ri.offsetHeight)||0,start:0,end:Ai.length-1,offset:void 0}}for(var Mi=0,dn,Ur,bn,Mn=Ai.length,Gn=0;Gn<Mn;Gn+=1){var $n=Ai[Gn],hi=Be($n),fi=un.get(hi),gi=Mi+(fi===void 0?zt:fi);gi>=ir&&dn===void 0&&(dn=Gn,Ur=Mi),gi>ir+at&&bn===void 0&&(bn=Gn),Mi=gi}return dn===void 0&&(dn=0,Ur=0),bn===void 0&&(bn=Ai.length-1),bn=Math.min(bn+1,Ai.length),{scrollHeight:Mi,start:dn,end:bn,offset:Ur}},[Ut,yt,ir,Ai,ar,at]),Br=Gr.scrollHeight,gr=Gr.start,Sn=Gr.end,Pn=Gr.offset;Ye.current.start=gr,Ye.current.end=Sn;var ii=Br-at,oi=Object(D.useRef)(ii);oi.current=ii;function ti(ri){var Mi=ri;return Number.isNaN(oi.current)||(Mi=Math.min(Mi,oi.current)),Mi=Math.max(Mi,0),Mi}var bi=ir<=0,kn=ir>=ii,Ii=pe(bi,kn);function gn(ri){var Mi=ri;Je(Mi)}function Vr(ri){var Mi=ri.currentTarget.scrollTop;Mi!==ir&&Je(Mi),Jt==null||Jt(ri)}var xn=ie(yt,bi,kn,function(ri){Je(function(Mi){var dn=Mi+ri;return dn})}),tn=or(xn,2),ui=tn[0],qn=tn[1];Qe(yt,Pi,function(ri,Mi){return Ii(ri,Mi)?!1:(ui({preventDefault:function(){},deltaY:ri}),!0)}),Object(D.useLayoutEffect)(function(){function ri(Mi){yt&&Mi.preventDefault()}return Pi.current.addEventListener("wheel",ui),Pi.current.addEventListener("DOMMouseScroll",qn),Pi.current.addEventListener("MozMousePixelScroll",ri),function(){Pi.current.removeEventListener("wheel",ui),Pi.current.removeEventListener("DOMMouseScroll",qn),Pi.current.removeEventListener("MozMousePixelScroll",ri)}},[yt]);var wi=ee(Pi,Ai,un,zt,Be,Kt,Je,function(){var ri;(ri=_e.current)===null||ri===void 0||ri.delayHidden()});D.useImperativeHandle(nt,function(){return{scrollTo:wi}}),Object(D.useLayoutEffect)(function(){if(xt){var ri=Ai.slice(gr,Sn+1);xt(ri,Ai)}},[gr,Sn,Ai]);var Qn=Ie(Ai,gr,Sn,Nr,cn,He),Hi=null;return at&&(Hi=ct(Wt({},Xt?"height":"maxHeight",at),Ar),yt&&(Hi.overflowY="hidden",Nn&&(Hi.pointerEvents="none"))),D.createElement("div",Bt({style:ct(ct({},Dr),{},{position:"relative"}),className:ei},Pt),D.createElement(Qt,{className:"".concat(Me,"-holder"),style:Hi,ref:Pi,onScroll:Vr},D.createElement(M,{prefixCls:Me,height:Br,offset:Pn,onInnerResize:Kt,ref:$e},Qn)),yt&&D.createElement(Le,{ref:_e,prefixCls:Me,scrollTop:ir,height:at,scrollHeight:Br,count:Ai.length,onScroll:gn,onStartMove:function(){zn(!0)},onStopMove:function(){zn(!1)}}))}var vn=D.forwardRef(fr);vn.displayName="List";var $r=vn,Ln=z.a=$r},"+rIm":function(fe,z,y){var D=y("bYtY"),N=D.retrieve,L=D.defaults,E=D.extend,I=D.each,o=y("7aKB"),m=y("IwbS"),f=y("Qxkt"),s=y("OELB"),t=s.isRadianAroundZero,l=s.remRadian,a=y("oVpE"),r=a.createSymbol,u=y("Fofx"),e=y("QBsz"),n=e.applyTransform,i=y("aX7z"),c=i.shouldShowAllLabels,d=Math.PI,h=function(R,B){this.opt=B,this.axisModel=R,L(B,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new m.Group;var P=new m.Group({position:B.position.slice(),rotation:B.rotation});P.updateTransform(),this._transform=P.transform,this._dumbGroup=P};h.prototype={constructor:h,hasBuilder:function(R){return!!p[R]},add:function(R){p[R].call(this)},getGroup:function(){return this.group}};var p={axisLine:function(){var R=this.opt,B=this.axisModel;if(!B.get("axisLine.show"))return;var P=this.axisModel.axis.getExtent(),U=this._transform,j=[P[0],0],H=[P[1],0];U&&(n(j,j,U),n(H,H,U));var W=E({lineCap:"round"},B.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new m.Line({anid:"line",subPixelOptimize:!0,shape:{x1:j[0],y1:j[1],x2:H[0],y2:H[1]},style:W,strokeContainThreshold:R.strokeContainThreshold||5,silent:!0,z2:1}));var G=B.get("axisLine.symbol"),V=B.get("axisLine.symbolSize"),Z=B.get("axisLine.symbolOffset")||0;if(typeof Z=="number"&&(Z=[Z,Z]),G!=null){typeof G=="string"&&(G=[G,G]),(typeof V=="string"||typeof V=="number")&&(V=[V,V]);var Y=V[0],Q=V[1];I([{rotate:R.rotation+Math.PI/2,offset:Z[0],r:0},{rotate:R.rotation-Math.PI/2,offset:Z[1],r:Math.sqrt((j[0]-H[0])*(j[0]-H[0])+(j[1]-H[1])*(j[1]-H[1]))}],function(oe,ue){if(G[ue]!=="none"&&G[ue]!=null){var Le=r(G[ue],-Y/2,-Q/2,Y,Q,W.stroke,!0),me=oe.r+oe.offset,Ie=[j[0]+me*Math.cos(R.rotation),j[1]-me*Math.sin(R.rotation)];Le.attr({rotation:oe.rotate,position:Ie,silent:!0,z2:11}),this.group.add(Le)}},this)}},axisTickLabel:function(){var R=this.axisModel,B=this.opt,P=O(this,R,B),U=M(this,R,B);b(R,U,P),_(this,R,B)},axisName:function(){var R=this.opt,B=this.axisModel,P=N(R.axisName,B.get("name"));if(!P)return;var U=B.get("nameLocation"),j=R.nameDirection,H=B.getModel("nameTextStyle"),W=B.get("nameGap")||0,G=this.axisModel.axis.getExtent(),V=G[0]>G[1]?-1:1,Z=[U==="start"?G[0]-V*W:U==="end"?G[1]+V*W:(G[0]+G[1])/2,T(U)?R.labelOffset+j*W:0],Y,Q=B.get("nameRotate");Q!=null&&(Q=Q*d/180);var oe;T(U)?Y=v(R.rotation,Q!=null?Q:R.rotation,j):(Y=A(R,U,Q||0,G),oe=R.axisNameAvailableWidth,oe!=null&&(oe=Math.abs(oe/Math.sin(Y.rotation)),!isFinite(oe)&&(oe=null)));var ue=H.getFont(),Le=B.get("nameTruncate",!0)||{},me=Le.ellipsis,Ie=N(R.nameTruncateMaxWidth,Le.maxWidth,oe),X=me!=null&&Ie!=null?o.truncateText(P,Ie,ue,me,{minChar:2,placeholder:Le.placeholder}):P,q=B.get("tooltip",!0),We=B.mainType,$={componentType:We,name:P,$vars:["name"]};$[We+"Index"]=B.componentIndex;var J=new m.Text({anid:"name",__fullText:P,__truncatedText:X,position:Z,rotation:Y.rotation,silent:x(B),z2:1,tooltip:q&&q.show?E({content:P,formatter:function(){return P},formatterParams:$},q):null});m.setTextStyle(J.style,H,{text:X,textFont:ue,textFill:H.getTextColor()||B.get("axisLine.lineStyle.color"),textAlign:H.get("align")||Y.textAlign,textVerticalAlign:H.get("verticalAlign")||Y.textVerticalAlign}),B.get("triggerEvent")&&(J.eventData=g(B),J.eventData.targetType="axisName",J.eventData.name=P),this._dumbGroup.add(J),J.updateTransform(),this.group.add(J),J.decomposeTransform()}},g=h.makeAxisEventDataBase=function(R){var B={componentType:R.mainType,componentIndex:R.componentIndex};return B[R.mainType+"Index"]=R.componentIndex,B},v=h.innerTextLayout=function(R,B,P){var U=l(B-R),j,H;return t(U)?(H=P>0?"top":"bottom",j="center"):t(U-d)?(H=P>0?"bottom":"top",j="center"):(H="middle",U>0&&U<d?j=P>0?"right":"left":j=P>0?"left":"right"),{rotation:U,textAlign:j,textVerticalAlign:H}};function A(R,B,P,U){var j=l(P-R.rotation),H,W,G=U[0]>U[1],V=B==="start"&&!G||B!=="start"&&G;return t(j-d/2)?(W=V?"bottom":"top",H="center"):t(j-d*1.5)?(W=V?"top":"bottom",H="center"):(W="middle",j<d*1.5&&j>d/2?H=V?"left":"right":H=V?"right":"left"),{rotation:j,textAlign:H,textVerticalAlign:W}}var x=h.isLabelSilent=function(R){var B=R.get("tooltip");return R.get("silent")||!(R.get("triggerEvent")||B&&B.show)};function b(R,B,P){if(c(R.axis))return;var U=R.get("axisLabel.showMinLabel"),j=R.get("axisLabel.showMaxLabel");B=B||[],P=P||[];var H=B[0],W=B[1],G=B[B.length-1],V=B[B.length-2],Z=P[0],Y=P[1],Q=P[P.length-1],oe=P[P.length-2];U===!1?(w(H),w(Z)):S(H,W)&&(U?(w(W),w(Y)):(w(H),w(Z))),j===!1?(w(G),w(Q)):S(V,G)&&(j?(w(V),w(oe)):(w(G),w(Q)))}function w(R){R&&(R.ignore=!0)}function S(R,B,P){var U=R&&R.getBoundingRect().clone(),j=B&&B.getBoundingRect().clone();if(!U||!j)return;var H=u.identity([]);return u.rotate(H,H,-R.rotation),U.applyTransform(u.mul([],H,R.getLocalTransform())),j.applyTransform(u.mul([],H,B.getLocalTransform())),U.intersect(j)}function T(R){return R==="middle"||R==="center"}function C(R,B,P,U,j){for(var H=[],W=[],G=[],V=0;V<R.length;V++){var Z=R[V].coord;W[0]=Z,W[1]=0,G[0]=Z,G[1]=P,B&&(n(W,W,B),n(G,G,B));var Y=new m.Line({anid:j+"_"+R[V].tickValue,subPixelOptimize:!0,shape:{x1:W[0],y1:W[1],x2:G[0],y2:G[1]},style:U,z2:2,silent:!0});H.push(Y)}return H}function O(R,B,P){var U=B.axis,j=B.getModel("axisTick");if(!j.get("show")||U.scale.isBlank())return;for(var H=j.getModel("lineStyle"),W=P.tickDirection*j.get("length"),G=U.getTicksCoords(),V=C(G,R._transform,W,L(H.getLineStyle(),{stroke:B.get("axisLine.lineStyle.color")}),"ticks"),Z=0;Z<V.length;Z++)R.group.add(V[Z]);return V}function _(R,B,P){var U=B.axis,j=B.getModel("minorTick");if(!j.get("show")||U.scale.isBlank())return;var H=U.getMinorTicksCoords();if(!H.length)return;for(var W=j.getModel("lineStyle"),G=P.tickDirection*j.get("length"),V=L(W.getLineStyle(),L(B.getModel("axisTick").getLineStyle(),{stroke:B.get("axisLine.lineStyle.color")})),Z=0;Z<H.length;Z++)for(var Y=C(H[Z],R._transform,G,V,"minorticks_"+Z),Q=0;Q<Y.length;Q++)R.group.add(Y[Q])}function M(R,B,P){var U=B.axis,j=N(P.axisLabelShow,B.get("axisLabel.show"));if(!j||U.scale.isBlank())return;var H=B.getModel("axisLabel"),W=H.get("margin"),G=U.getViewLabels(),V=(N(P.labelRotate,H.get("rotate"))||0)*d/180,Z=v(P.rotation,V,P.labelDirection),Y=B.getCategories&&B.getCategories(!0),Q=[],oe=x(B),ue=B.get("triggerEvent");return I(G,function(Le,me){var Ie=Le.tickValue,X=Le.formattedLabel,q=Le.rawLabel,We=H;Y&&Y[Ie]&&Y[Ie].textStyle&&(We=new f(Y[Ie].textStyle,H,B.ecModel));var $=We.getTextColor()||B.get("axisLine.lineStyle.color"),J=U.dataToCoord(Ie),le=[J,P.labelOffset+P.labelDirection*W],de=new m.Text({anid:"label_"+Ie,position:le,rotation:Z.rotation,silent:oe,z2:10});m.setTextStyle(de.style,We,{text:X,textAlign:We.getShallow("align",!0)||Z.textAlign,textVerticalAlign:We.getShallow("verticalAlign",!0)||We.getShallow("baseline",!0)||Z.textVerticalAlign,textFill:typeof $=="function"?$(U.type==="category"?q:U.type==="value"?Ie+"":Ie,me):$}),ue&&(de.eventData=g(B),de.eventData.targetType="axisLabel",de.eventData.value=q),R._dumbGroup.add(de),de.updateTransform(),Q.push(de),R.group.add(de),de.decomposeTransform()}),Q}var k=h;fe.exports=k},"+wW9":function(fe,z,y){var D=y("bYtY"),N=D.each,L=D.isArray,E=D.isObject,I=y("JuEJ"),o=y("4NO4"),m=o.normalizeToArray;function f(u,e){e=e.split(",");for(var n=u,i=0;i<e.length&&!(n=n&&n[e[i]],n==null);i++);return n}function s(u,e,n,i){e=e.split(",");for(var c=u,d,h=0;h<e.length-1;h++)d=e[h],c[d]==null&&(c[d]={}),c=c[d];(i||c[e[h]]==null)&&(c[e[h]]=n)}function t(u){N(l,function(e){e[0]in u&&!(e[1]in u)&&(u[e[1]]=u[e[0]])})}var l=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],a=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function r(u,e){I(u,e),u.series=m(u.series),N(u.series,function(n){if(!E(n))return;var i=n.type;if(i==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(i==="pie"||i==="gauge")n.clockWise!=null&&(n.clockwise=n.clockWise);else if(i==="gauge"){var c=f(n,"pointer.color");c!=null&&s(n,"itemStyle.color",c)}t(n)}),u.dataRange&&(u.visualMap=u.dataRange),N(a,function(n){var i=u[n];i&&(L(i)||(i=[i]),N(i,function(c){t(c)}))})}fe.exports=r},"/IIm":function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("H6uX"),I=y("IwbS"),o=y("pP6R"),m=y("gPAo"),f=L.curry,s=L.each,t=L.map,l=Math.min,a=Math.max,r=Math.pow,u=1e4,e=6,n=6,i="globalPan",c={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},d={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},h={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},p=0;function g(ce){E.call(this),this._zr=ce,this.group=new I.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+p++,this._handlers={},s(le,function(ne,ee){this._handlers[ee]=L.bind(ne,this)},this)}g.prototype={constructor:g,enableBrush:function(ce){return this._brushType&&A(this),ce.brushType&&v(this,ce),this},setPanels:function(ce){if(ce&&ce.length){var ne=this._panels={};L.each(ce,function(ee){ne[ee.panelId]=L.clone(ee)})}else this._panels=null;return this},mount:function(ce){ce=ce||{},this._enableGlobalPan=ce.enableGlobalPan;var ne=this.group;return this._zr.add(ne),ne.attr({position:ce.position||[0,0],rotation:ce.rotation||0,scale:ce.scale||[1,1]}),this._transform=ne.getLocalTransform(),this},eachCover:function(ce,ne){s(this._covers,ce,ne)},updateCovers:function(ce){ce=L.map(ce,function(At){return L.merge(L.clone(h),At,!0)});var ne="\0-brush-index-",ee=this._covers,Ae=this._covers=[],Ve=this,Ke=this._creatingCover;return new m(ee,ce,it,Oe).add(Fe).update(Fe).remove(ft).execute(),this;function Oe(At,bt){return(At.id!=null?At.id:ne+bt)+"-"+At.brushType}function it(At,bt){return Oe(At.__brushOption,bt)}function Fe(At,bt){var St=ce[At];if(bt!=null&&ee[bt]===Ke)Ae[At]=ee[bt];else{var Et=Ae[At]=bt!=null?(ee[bt].__brushOption=St,ee[bt]):S(Ve,w(Ve,St));O(Ve,Et)}}function ft(At){ee[At]!==Ke&&Ve.group.remove(ee[At])}},unmount:function(){return this.enableBrush(!1),R(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},L.mixin(g,E);function v(ce,ne){var ee=ce._zr;ce._enableGlobalPan||o.take(ee,i,ce._uid),x(ee,ce._handlers),ce._brushType=ne.brushType,ce._brushOption=L.merge(L.clone(h),ne,!0)}function A(ce){var ne=ce._zr;o.release(ne,i,ce._uid),b(ne,ce._handlers),ce._brushType=ce._brushOption=null}function x(ce,ne){s(ne,function(ee,Ae){ce.on(Ae,ee)})}function b(ce,ne){s(ne,function(ee,Ae){ce.off(Ae,ee)})}function w(ce,ne){var ee=we[ne.brushType].createCover(ce,ne);return ee.__brushOption=ne,C(ee,ne),ce.group.add(ee),ee}function S(ce,ne){var ee=_(ne);return ee.endCreating&&(ee.endCreating(ce,ne),C(ne,ne.__brushOption)),ne}function T(ce,ne){var ee=ne.__brushOption;_(ne).updateCoverShape(ce,ne,ee.range,ee)}function C(ce,ne){var ee=ne.z;ee==null&&(ee=u),ce.traverse(function(Ae){Ae.z=ee,Ae.z2=ee})}function O(ce,ne){_(ne).updateCommon(ce,ne),T(ce,ne)}function _(ce){return we[ce.__brushOption.brushType]}function M(ce,ne,ee){var Ae=ce._panels;if(!Ae)return!0;var Ve,Ke=ce._transform;return s(Ae,function(Oe){Oe.isTargetByCursor(ne,ee,Ke)&&(Ve=Oe)}),Ve}function k(ce,ne){var ee=ce._panels;if(!ee)return!0;var Ae=ne.__brushOption.panelId;return Ae!=null?ee[Ae]:!0}function R(ce){var ne=ce._covers,ee=ne.length;return s(ne,function(Ae){ce.group.remove(Ae)},ce),ne.length=0,!!ee}function B(ce,ne){var ee=t(ce._covers,function(Ae){var Ve=Ae.__brushOption,Ke=L.clone(Ve.range);return{brushType:Ve.brushType,panelId:Ve.panelId,range:Ke}});ce.trigger("brush",ee,{isEnd:!!ne.isEnd,removeOnClick:!!ne.removeOnClick})}function P(ce){var ne=ce._track;if(!ne.length)return!1;var ee=ne[ne.length-1],Ae=ne[0],Ve=ee[0]-Ae[0],Ke=ee[1]-Ae[1],Oe=r(Ve*Ve+Ke*Ke,.5);return Oe>e}function U(ce){var ne=ce.length-1;return ne<0&&(ne=0),[ce[0],ce[ne]]}function j(ce,ne,ee,Ae){var Ve=new I.Group;return Ve.add(new I.Rect({name:"main",style:V(ee),silent:!0,draggable:!0,cursor:"move",drift:f(ce,ne,Ve,"nswe"),ondragend:f(B,ne,{isEnd:!0})})),s(Ae,function(Ke){Ve.add(new I.Rect({name:Ke,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:f(ce,ne,Ve,Ke),ondragend:f(B,ne,{isEnd:!0})}))}),Ve}function H(ce,ne,ee,Ae){var Ve=Ae.brushStyle.lineWidth||0,Ke=a(Ve,n),Oe=ee[0][0],it=ee[1][0],Fe=Oe-Ve/2,ft=it-Ve/2,At=ee[0][1],bt=ee[1][1],St=At-Ke+Ve/2,Et=bt-Ke+Ve/2,je=At-Oe,pe=bt-it,ie=je+Ve,st=pe+Ve;G(ce,ne,"main",Oe,it,je,pe),Ae.transformable&&(G(ce,ne,"w",Fe,ft,Ke,st),G(ce,ne,"e",St,ft,Ke,st),G(ce,ne,"n",Fe,ft,ie,Ke),G(ce,ne,"s",Fe,Et,ie,Ke),G(ce,ne,"nw",Fe,ft,Ke,Ke),G(ce,ne,"ne",St,ft,Ke,Ke),G(ce,ne,"sw",Fe,Et,Ke,Ke),G(ce,ne,"se",St,Et,Ke,Ke))}function W(ce,ne){var ee=ne.__brushOption,Ae=ee.transformable,Ve=ne.childAt(0);Ve.useStyle(V(ee)),Ve.attr({silent:!Ae,cursor:Ae?"move":"default"}),s(["w","e","n","s","se","sw","ne","nw"],function(Ke){var Oe=ne.childOfName(Ke),it=Q(ce,Ke);Oe&&Oe.attr({silent:!Ae,invisible:!Ae,cursor:Ae?d[it]+"-resize":null})})}function G(ce,ne,ee,Ae,Ve,Ke,Oe){var it=ne.childOfName(ee);it&&it.setShape(Ie(me(ce,ne,[[Ae,Ve],[Ae+Ke,Ve+Oe]])))}function V(ce){return L.defaults({strokeNoScale:!0},ce.brushStyle)}function Z(ce,ne,ee,Ae){var Ve=[l(ce,ee),l(ne,Ae)],Ke=[a(ce,ee),a(ne,Ae)];return[[Ve[0],Ke[0]],[Ve[1],Ke[1]]]}function Y(ce){return I.getTransform(ce.group)}function Q(ce,ne){if(ne.length>1){ne=ne.split("");var ee=[Q(ce,ne[0]),Q(ce,ne[1])];return(ee[0]==="e"||ee[0]==="w")&&ee.reverse(),ee.join("")}else{var Ae={w:"left",e:"right",n:"top",s:"bottom"},Ve={left:"w",right:"e",top:"n",bottom:"s"},ee=I.transformDirection(Ae[ne],Y(ce));return Ve[ee]}}function oe(ce,ne,ee,Ae,Ve,Ke,Oe,it){var Fe=Ae.__brushOption,ft=ce(Fe.range),At=Le(ee,Ke,Oe);s(Ve.split(""),function(bt){var St=c[bt];ft[St[0]][St[1]]+=At[St[0]]}),Fe.range=ne(Z(ft[0][0],ft[1][0],ft[0][1],ft[1][1])),O(ee,Ae),B(ee,{isEnd:!1})}function ue(ce,ne,ee,Ae,Ve){var Ke=ne.__brushOption.range,Oe=Le(ce,ee,Ae);s(Ke,function(it){it[0]+=Oe[0],it[1]+=Oe[1]}),O(ce,ne),B(ce,{isEnd:!1})}function Le(ce,ne,ee){var Ae=ce.group,Ve=Ae.transformCoordToLocal(ne,ee),Ke=Ae.transformCoordToLocal(0,0);return[Ve[0]-Ke[0],Ve[1]-Ke[1]]}function me(ce,ne,ee){var Ae=k(ce,ne);return Ae&&Ae!==!0?Ae.clipPath(ee,ce._transform):L.clone(ee)}function Ie(ce){var ne=l(ce[0][0],ce[1][0]),ee=l(ce[0][1],ce[1][1]),Ae=a(ce[0][0],ce[1][0]),Ve=a(ce[0][1],ce[1][1]);return{x:ne,y:ee,width:Ae-ne,height:Ve-ee}}function X(ce,ne,ee){if(!ce._brushType||Ne(ce,ne))return;var Ae=ce._zr,Ve=ce._covers,Ke=M(ce,ne,ee);if(!ce._dragging)for(var Oe=0;Oe<Ve.length;Oe++){var it=Ve[Oe].__brushOption;if(Ke&&(Ke===!0||it.panelId===Ke.panelId)&&we[it.brushType].contain(Ve[Oe],ee[0],ee[1]))return}Ke&&Ae.setCursorStyle("crosshair")}function q(ce){var ne=ce.event;ne.preventDefault&&ne.preventDefault()}function We(ce,ne,ee){return ce.childOfName("main").contain(ne,ee)}function $(ce,ne,ee,Ae){var Ve=ce._creatingCover,Ke=ce._creatingPanel,Oe=ce._brushOption,it;if(ce._track.push(ee.slice()),P(ce)||Ve){if(Ke&&!Ve){Oe.brushMode==="single"&&R(ce);var Fe=L.clone(Oe);Fe.brushType=J(Fe.brushType,Ke),Fe.panelId=Ke===!0?null:Ke.panelId,Ve=ce._creatingCover=w(ce,Fe),ce._covers.push(Ve)}if(Ve){var ft=we[J(ce._brushType,Ke)],At=Ve.__brushOption;At.range=ft.getCreatingRange(me(ce,Ve,ce._track)),Ae&&(S(ce,Ve),ft.updateCommon(ce,Ve)),T(ce,Ve),it={isEnd:Ae}}}else Ae&&Oe.brushMode==="single"&&Oe.removeOnClick&&(M(ce,ne,ee)&&R(ce)&&(it={isEnd:Ae,removeOnClick:!0}));return it}function J(ce,ne){return ce==="auto"?ne.defaultBrushType:ce}var le={mousedown:function(ce){if(this._dragging)de(this,ce);else if(!ce.target||!ce.target.draggable){q(ce);var ne=this.group.transformCoordToLocal(ce.offsetX,ce.offsetY);this._creatingCover=null;var ee=this._creatingPanel=M(this,ce,ne);ee&&(this._dragging=!0,this._track=[ne.slice()])}},mousemove:function(ce){var ne=ce.offsetX,ee=ce.offsetY,Ae=this.group.transformCoordToLocal(ne,ee);if(X(this,ce,Ae),this._dragging){q(ce);var Ve=$(this,ce,Ae,!1);Ve&&B(this,Ve)}},mouseup:function(ce){de(this,ce)}};function de(ce,ne){if(ce._dragging){q(ne);var ee=ne.offsetX,Ae=ne.offsetY,Ve=ce.group.transformCoordToLocal(ee,Ae),Ke=$(ce,ne,Ve,!0);ce._dragging=!1,ce._track=[],ce._creatingCover=null,Ke&&B(ce,Ke)}}function Ne(ce,ne,ee){var Ae=ce._zr;return ne<0||ne>Ae.getWidth()||ee<0||ee>Ae.getHeight()}var we={lineX:De(0),lineY:De(1),rect:{createCover:function(ce,ne){return j(f(oe,function(ee){return ee},function(ee){return ee}),ce,ne,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(ce){var ne=U(ce);return Z(ne[1][0],ne[1][1],ne[0][0],ne[0][1])},updateCoverShape:function(ce,ne,ee,Ae){H(ce,ne,ee,Ae)},updateCommon:W,contain:We},polygon:{createCover:function(ce,ne){var ee=new I.Group;return ee.add(new I.Polyline({name:"main",style:V(ne),silent:!0})),ee},getCreatingRange:function(ce){return ce},endCreating:function(ce,ne){ne.remove(ne.childAt(0)),ne.add(new I.Polygon({name:"main",draggable:!0,drift:f(ue,ce,ne),ondragend:f(B,ce,{isEnd:!0})}))},updateCoverShape:function(ce,ne,ee,Ae){ne.childAt(0).setShape({points:me(ce,ne,ee)})},updateCommon:W,contain:We}};function De(ce){return{createCover:function(ne,ee){return j(f(oe,function(Ae){var Ve=[Ae,[0,100]];return ce&&Ve.reverse(),Ve},function(Ae){return Ae[ce]}),ne,ee,[["w","e"],["n","s"]][ce])},getCreatingRange:function(ne){var ee=U(ne),Ae=l(ee[0][ce],ee[1][ce]),Ve=a(ee[0][ce],ee[1][ce]);return[Ae,Ve]},updateCoverShape:function(ne,ee,Ae,Ve){var Ke,Oe=k(ne,ee);if(Oe!==!0&&Oe.getLinearBrushOtherExtent)Ke=Oe.getLinearBrushOtherExtent(ce,ne._transform);else{var it=ne._zr;Ke=[0,[it.getWidth(),it.getHeight()][1-ce]]}var Fe=[Ae,Ke];ce&&Fe.reverse(),H(ne,ee,Fe,Ve)},updateCommon:W,contain:We}}var Ee=g;fe.exports=Ee},"/MfK":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="DeleteOutlined";var m=z.a=N.forwardRef(o)},"/POA":function(fe,z,y){!function(D,N){if(!0)fe.exports=N();else var L,E}(window,function(){return function(D){var N={};function L(E){if(N[E])return N[E].exports;var I=N[E]={i:E,l:!1,exports:{}};return D[E].call(I.exports,I,I.exports,L),I.l=!0,I.exports}return L.m=D,L.c=N,L.d=function(E,I,o){L.o(E,I)||Object.defineProperty(E,I,{enumerable:!0,get:o})},L.r=function(E){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},L.t=function(E,I){if(1&I&&(E=L(E)),8&I)return E;if(4&I&&typeof E=="object"&&E&&E.__esModule)return E;var o=Object.create(null);if(L.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:E}),2&I&&typeof E!="string")for(var m in E)L.d(o,m,function(f){return E[f]}.bind(null,m));return o},L.n=function(E){var I=E&&E.__esModule?function(){return E.default}:function(){return E};return L.d(I,"a",I),I},L.o=function(E,I){return Object.prototype.hasOwnProperty.call(E,I)},L.p="",L(L.s=34)}([function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.forwardEvent=N.EventEmitter=void 0;var E=function(){function I(){this._listeners=[],this._disposed=!1}return Object.defineProperty(I.prototype,"event",{get:function(){var m=this;return this._event||(this._event=function(f){return m._listeners.push(f),{dispose:function(){if(!m._disposed){for(var t=0;t<m._listeners.length;t++)if(m._listeners[t]===f)return void m._listeners.splice(t,1)}}}}),this._event},enumerable:!1,configurable:!0}),I.prototype.fire=function(o,m){for(var f=[],s=0;s<this._listeners.length;s++)f.push(this._listeners[s]);for(s=0;s<f.length;s++)f[s].call(void 0,o,m)},I.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},I}();N.EventEmitter=E,N.forwardEvent=function(I,o){return I(function(m){return o.fire(m)})}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.IUnicodeService=N.IOptionsService=N.ILogService=N.IInstantiationService=N.IDirtyRowService=N.ICharsetService=N.ICoreService=N.ICoreMouseService=N.IBufferService=void 0;var E=L(14);N.IBufferService=E.createDecorator("BufferService"),N.ICoreMouseService=E.createDecorator("CoreMouseService"),N.ICoreService=E.createDecorator("CoreService"),N.ICharsetService=E.createDecorator("CharsetService"),N.IDirtyRowService=E.createDecorator("DirtyRowService"),N.IInstantiationService=E.createDecorator("InstantiationService"),N.ILogService=E.createDecorator("LogService"),N.IOptionsService=E.createDecorator("OptionsService"),N.IUnicodeService=E.createDecorator("UnicodeService")},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.getDisposeArrayDisposable=N.disposeArray=N.Disposable=void 0;var E=function(){function o(){this._disposables=[],this._isDisposed=!1}return o.prototype.dispose=function(){this._isDisposed=!0;for(var m=0,f=this._disposables;m<f.length;m++)f[m].dispose();this._disposables.length=0},o.prototype.register=function(m){return this._disposables.push(m),m},o.prototype.unregister=function(m){var f=this._disposables.indexOf(m);f!==-1&&this._disposables.splice(f,1)},o}();function I(o){for(var m=0,f=o;m<f.length;m++)f[m].dispose();o.length=0}N.Disposable=E,N.disposeArray=I,N.getDisposeArrayDisposable=function(o){return{dispose:function(){return I(o)}}}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.WHITESPACE_CELL_CODE=N.WHITESPACE_CELL_WIDTH=N.WHITESPACE_CELL_CHAR=N.NULL_CELL_CODE=N.NULL_CELL_WIDTH=N.NULL_CELL_CHAR=N.CHAR_DATA_CODE_INDEX=N.CHAR_DATA_WIDTH_INDEX=N.CHAR_DATA_CHAR_INDEX=N.CHAR_DATA_ATTR_INDEX=N.DEFAULT_ATTR=N.DEFAULT_COLOR=void 0,N.DEFAULT_COLOR=256,N.DEFAULT_ATTR=256|N.DEFAULT_COLOR<<9,N.CHAR_DATA_ATTR_INDEX=0,N.CHAR_DATA_CHAR_INDEX=1,N.CHAR_DATA_WIDTH_INDEX=2,N.CHAR_DATA_CODE_INDEX=3,N.NULL_CELL_CHAR="",N.NULL_CELL_WIDTH=1,N.NULL_CELL_CODE=0,N.WHITESPACE_CELL_CHAR=" ",N.WHITESPACE_CELL_WIDTH=1,N.WHITESPACE_CELL_CODE=32},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(l,a){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var e in u)u.hasOwnProperty(e)&&(r[e]=u[e])})(l,a)},function(t,l){function a(){this.constructor=t}E(t,l),t.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)});Object.defineProperty(N,"__esModule",{value:!0}),N.CellData=void 0;var o=L(8),m=L(3),f=L(6),s=function(t){function l(){var a=t!==null&&t.apply(this,arguments)||this;return a.content=0,a.fg=0,a.bg=0,a.extended=new f.ExtendedAttrs,a.combinedData="",a}return I(l,t),l.fromCharData=function(a){var r=new l;return r.setFromCharData(a),r},l.prototype.isCombined=function(){return 2097152&this.content},l.prototype.getWidth=function(){return this.content>>22},l.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?o.stringFromCodePoint(2097151&this.content):""},l.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},l.prototype.setFromCharData=function(a){this.fg=a[m.CHAR_DATA_ATTR_INDEX],this.bg=0;var r=!1;if(a[m.CHAR_DATA_CHAR_INDEX].length>2)r=!0;else if(a[m.CHAR_DATA_CHAR_INDEX].length===2){var u=a[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=u&&u<=56319){var e=a[m.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=e&&e<=57343?this.content=1024*(u-55296)+e-56320+65536|a[m.CHAR_DATA_WIDTH_INDEX]<<22:r=!0}else r=!0}else this.content=a[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|a[m.CHAR_DATA_WIDTH_INDEX]<<22;r&&(this.combinedData=a[m.CHAR_DATA_CHAR_INDEX],this.content=2097152|a[m.CHAR_DATA_WIDTH_INDEX]<<22)},l.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},l}(f.AttributeData);N.CellData=s},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.ISoundService=N.ISelectionService=N.IRenderService=N.IMouseService=N.ICoreBrowserService=N.ICharSizeService=void 0;var E=L(14);N.ICharSizeService=E.createDecorator("CharSizeService"),N.ICoreBrowserService=E.createDecorator("CoreBrowserService"),N.IMouseService=E.createDecorator("MouseService"),N.IRenderService=E.createDecorator("RenderService"),N.ISelectionService=E.createDecorator("SelectionService"),N.ISoundService=E.createDecorator("SoundService")},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.ExtendedAttrs=N.AttributeData=void 0;var E=function(){function o(){this.fg=0,this.bg=0,this.extended=new I}return o.toColorRGB=function(m){return[m>>>16&255,m>>>8&255,255&m]},o.fromColorRGB=function(m){return(255&m[0])<<16|(255&m[1])<<8|255&m[2]},o.prototype.clone=function(){var m=new o;return m.fg=this.fg,m.bg=this.bg,m.extended=this.extended.clone(),m},o.prototype.isInverse=function(){return 67108864&this.fg},o.prototype.isBold=function(){return 134217728&this.fg},o.prototype.isUnderline=function(){return 268435456&this.fg},o.prototype.isBlink=function(){return 536870912&this.fg},o.prototype.isInvisible=function(){return 1073741824&this.fg},o.prototype.isItalic=function(){return 67108864&this.bg},o.prototype.isDim=function(){return 134217728&this.bg},o.prototype.getFgColorMode=function(){return 50331648&this.fg},o.prototype.getBgColorMode=function(){return 50331648&this.bg},o.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},o.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},o.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},o.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},o.prototype.isFgDefault=function(){return(50331648&this.fg)==0},o.prototype.isBgDefault=function(){return(50331648&this.bg)==0},o.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},o.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},o.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},o.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},o.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},o.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()},o.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},o.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},o.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},o.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},o.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},o}();N.AttributeData=E;var I=function(){function o(m,f){m===void 0&&(m=0),f===void 0&&(f=-1),this.underlineStyle=m,this.underlineColor=f}return o.prototype.clone=function(){return new o(this.underlineStyle,this.underlineColor)},o.prototype.isEmpty=function(){return this.underlineStyle===0},o}();N.ExtendedAttrs=I},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.addDisposableDomListener=void 0,N.addDisposableDomListener=function(E,I,o,m){E.addEventListener(I,o,m);var f=!1;return{dispose:function(){f||(f=!0,E.removeEventListener(I,o,m))}}}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.Utf8ToUtf32=N.StringToUtf32=N.utf32ToString=N.stringFromCodePoint=void 0,N.stringFromCodePoint=function(o){return o>65535?(o-=65536,String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):String.fromCharCode(o)},N.utf32ToString=function(o,m,f){m===void 0&&(m=0),f===void 0&&(f=o.length);for(var s="",t=m;t<f;++t){var l=o[t];l>65535?(l-=65536,s+=String.fromCharCode(55296+(l>>10))+String.fromCharCode(l%1024+56320)):s+=String.fromCharCode(l)}return s};var E=function(){function o(){this._interim=0}return o.prototype.clear=function(){this._interim=0},o.prototype.decode=function(m,f){var s=m.length;if(!s)return 0;var t=0,l=0;this._interim&&(56320<=(u=m.charCodeAt(l++))&&u<=57343?f[t++]=1024*(this._interim-55296)+u-56320+65536:(f[t++]=this._interim,f[t++]=u),this._interim=0);for(var a=l;a<s;++a){var r=m.charCodeAt(a);if(55296<=r&&r<=56319){if(++a>=s)return this._interim=r,t;var u;56320<=(u=m.charCodeAt(a))&&u<=57343?f[t++]=1024*(r-55296)+u-56320+65536:(f[t++]=r,f[t++]=u)}else f[t++]=r}return t},o}();N.StringToUtf32=E;var I=function(){function o(){this.interim=new Uint8Array(3)}return o.prototype.clear=function(){this.interim.fill(0)},o.prototype.decode=function(m,f){var s=m.length;if(!s)return 0;var t,l,a,r,u=0,e=0,n=0;if(this.interim[0]){var i=!1,c=this.interim[0];c&=(224&c)==192?31:(240&c)==224?15:7;for(var d=0,h=void 0;(h=63&this.interim[++d])&&d<4;)c<<=6,c|=h;for(var p=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,g=p-d;n<g;){if(n>=s)return 0;if((192&(h=m[n++]))!=128){n--,i=!0;break}this.interim[d++]=h,c<<=6,c|=63&h}i||(p===2?c<128?n--:f[u++]=c:p===3?c<2048||c>=55296&&c<=57343||(f[u++]=c):c<65536||c>1114111||(f[u++]=c)),this.interim.fill(0)}for(var v=s-4,A=n;A<s;){for(;!(!(A<v)||128&(t=m[A])||128&(l=m[A+1])||128&(a=m[A+2])||128&(r=m[A+3]));)f[u++]=t,f[u++]=l,f[u++]=a,f[u++]=r,A+=4;if((t=m[A++])<128)f[u++]=t;else if((224&t)==192){if(A>=s)return this.interim[0]=t,u;if((192&(l=m[A++]))!=128){A--;continue}if((e=(31&t)<<6|63&l)<128){A--;continue}f[u++]=e}else if((240&t)==224){if(A>=s)return this.interim[0]=t,u;if((192&(l=m[A++]))!=128){A--;continue}if(A>=s)return this.interim[0]=t,this.interim[1]=l,u;if((192&(a=m[A++]))!=128){A--;continue}if((e=(15&t)<<12|(63&l)<<6|63&a)<2048||e>=55296&&e<=57343)continue;f[u++]=e}else if((248&t)==240){if(A>=s)return this.interim[0]=t,u;if((192&(l=m[A++]))!=128){A--;continue}if(A>=s)return this.interim[0]=t,this.interim[1]=l,u;if((192&(a=m[A++]))!=128){A--;continue}if(A>=s)return this.interim[0]=t,this.interim[1]=l,this.interim[2]=a,u;if((192&(r=m[A++]))!=128){A--;continue}if((e=(7&t)<<18|(63&l)<<12|(63&a)<<6|63&r)<65536||e>1114111)continue;f[u++]=e}}return u},o}();N.Utf8ToUtf32=I},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.CHAR_ATLAS_CELL_SPACING=N.DIM_OPACITY=N.INVERTED_DEFAULT_COLOR=void 0,N.INVERTED_DEFAULT_COLOR=257,N.DIM_OPACITY=.5,N.CHAR_ATLAS_CELL_SPACING=1},function(D,N,L){"use strict";var E,I,o,m;function f(t){var l=t.toString(16);return l.length<2?"0"+l:l}function s(t,l){return t<l?(l+.05)/(t+.05):(t+.05)/(l+.05)}Object.defineProperty(N,"__esModule",{value:!0}),N.contrastRatio=N.toPaddedHex=N.rgba=N.rgb=N.css=N.color=N.channels=void 0,function(t){t.toCss=function(l,a,r,u){return u!==void 0?"#"+f(l)+f(a)+f(r)+f(u):"#"+f(l)+f(a)+f(r)},t.toRgba=function(l,a,r,u){return u===void 0&&(u=255),(l<<24|a<<16|r<<8|u)>>>0}}(E=N.channels||(N.channels={})),(I=N.color||(N.color={})).blend=function(t,l){var a=(255&l.rgba)/255;if(a===1)return{css:l.css,rgba:l.rgba};var r=l.rgba>>24&255,u=l.rgba>>16&255,e=l.rgba>>8&255,n=t.rgba>>24&255,i=t.rgba>>16&255,c=t.rgba>>8&255,d=n+Math.round((r-n)*a),h=i+Math.round((u-i)*a),p=c+Math.round((e-c)*a);return{css:E.toCss(d,h,p),rgba:E.toRgba(d,h,p)}},I.isOpaque=function(t){return(255&t.rgba)==255},I.ensureContrastRatio=function(t,l,a){var r=m.ensureContrastRatio(t.rgba,l.rgba,a);if(r)return m.toColor(r>>24&255,r>>16&255,r>>8&255)},I.opaque=function(t){var l=(255|t.rgba)>>>0,a=m.toChannels(l),r=a[0],u=a[1],e=a[2];return{css:E.toCss(r,u,e),rgba:l}},I.opacity=function(t,l){var a=Math.round(255*l),r=m.toChannels(t.rgba),u=r[0],e=r[1],n=r[2];return{css:E.toCss(u,e,n,a),rgba:E.toRgba(u,e,n,a)}},(N.css||(N.css={})).toColor=function(t){switch(t.length){case 7:return{css:t,rgba:(parseInt(t.slice(1),16)<<8|255)>>>0};case 9:return{css:t,rgba:parseInt(t.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(t){function l(a,r,u){var e=a/255,n=r/255,i=u/255;return .2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))}t.relativeLuminance=function(a){return l(a>>16&255,a>>8&255,255&a)},t.relativeLuminance2=l}(o=N.rgb||(N.rgb={})),function(t){function l(r,u,e){for(var n=r>>24&255,i=r>>16&255,c=r>>8&255,d=u>>24&255,h=u>>16&255,p=u>>8&255,g=s(o.relativeLuminance2(d,p,h),o.relativeLuminance2(n,i,c));g<e&&(d>0||h>0||p>0);)d-=Math.max(0,Math.ceil(.1*d)),h-=Math.max(0,Math.ceil(.1*h)),p-=Math.max(0,Math.ceil(.1*p)),g=s(o.relativeLuminance2(d,p,h),o.relativeLuminance2(n,i,c));return(d<<24|h<<16|p<<8|255)>>>0}function a(r,u,e){for(var n=r>>24&255,i=r>>16&255,c=r>>8&255,d=u>>24&255,h=u>>16&255,p=u>>8&255,g=s(o.relativeLuminance2(d,p,h),o.relativeLuminance2(n,i,c));g<e&&(d<255||h<255||p<255);)d=Math.min(255,d+Math.ceil(.1*(255-d))),h=Math.min(255,h+Math.ceil(.1*(255-h))),p=Math.min(255,p+Math.ceil(.1*(255-p))),g=s(o.relativeLuminance2(d,p,h),o.relativeLuminance2(n,i,c));return(d<<24|h<<16|p<<8|255)>>>0}t.ensureContrastRatio=function(r,u,e){var n=o.relativeLuminance(r>>8),i=o.relativeLuminance(u>>8);if(s(n,i)<e)return i<n?l(r,u,e):a(r,u,e)},t.reduceLuminance=l,t.increaseLuminance=a,t.toChannels=function(r){return[r>>24&255,r>>16&255,r>>8&255,255&r]},t.toColor=function(r,u,e){return{css:E.toCss(r,u,e),rgba:E.toRgba(r,u,e)}}}(m=N.rgba||(N.rgba={})),N.toPaddedHex=f,N.contrastRatio=s},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.isLinux=N.isWindows=N.isIphone=N.isIpad=N.isMac=N.isSafari=N.isFirefox=void 0;var E=typeof navigator=="undefined",I=E?"node":navigator.userAgent,o=E?"node":navigator.platform;function m(f,s){return f.indexOf(s)>=0}N.isFirefox=!!~I.indexOf("Firefox"),N.isSafari=/^((?!chrome|android).)*safari/i.test(I),N.isMac=m(["Macintosh","MacIntel","MacPPC","Mac68K"],o),N.isIpad=o==="iPad",N.isIphone=o==="iPhone",N.isWindows=m(["Windows","Win16","Win32","WinCE"],o),N.isLinux=o.indexOf("Linux")>=0},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.C1=N.C0=void 0,function(E){E.NUL="\0",E.SOH="",E.STX="",E.ETX="",E.EOT="",E.ENQ="",E.ACK="",E.BEL="\x07",E.BS="\b",E.HT=" ",E.LF=`
|
|
|
`,E.VT="\v",E.FF="\f",E.CR="\r",E.SO="",E.SI="",E.DLE="",E.DC1="",E.DC2="",E.DC3="",E.DC4="",E.NAK="",E.SYN="",E.ETB="",E.CAN="",E.EM="",E.SUB="",E.ESC="",E.FS="",E.GS="",E.RS="",E.US="",E.SP=" ",E.DEL="\x7F"}(N.C0||(N.C0={})),function(E){E.PAD="\x80",E.HOP="\x81",E.BPH="\x82",E.NBH="\x83",E.IND="\x84",E.NEL="\x85",E.SSA="\x86",E.ESA="\x87",E.HTS="\x88",E.HTJ="\x89",E.VTS="\x8A",E.PLD="\x8B",E.PLU="\x8C",E.RI="\x8D",E.SS2="\x8E",E.SS3="\x8F",E.DCS="\x90",E.PU1="\x91",E.PU2="\x92",E.STS="\x93",E.CCH="\x94",E.MW="\x95",E.SPA="\x96",E.EPA="\x97",E.SOS="\x98",E.SGCI="\x99",E.SCI="\x9A",E.CSI="\x9B",E.ST="\x9C",E.OSC="\x9D",E.PM="\x9E",E.APC="\x9F"}(N.C1||(N.C1={}))},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.BaseRenderLayer=void 0;var E=L(3),I=L(9),o=L(25),m=L(6),f=L(28),s=L(10),t=L(17),l=function(){function a(r,u,e,n,i,c,d,h){this._container=r,this._alpha=n,this._colors=i,this._rendererId=c,this._bufferService=d,this._optionsService=h,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-"+u+"-layer"),this._canvas.style.zIndex=e.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return a.prototype.dispose=function(){var r;t.removeElementFromParent(this._canvas),(r=this._charAtlas)===null||r===void 0||r.dispose()},a.prototype._initCanvas=function(){this._ctx=f.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},a.prototype.onOptionsChanged=function(){},a.prototype.onBlur=function(){},a.prototype.onFocus=function(){},a.prototype.onCursorMove=function(){},a.prototype.onGridChanged=function(r,u){},a.prototype.onSelectionChanged=function(r,u,e){e===void 0&&(e=!1)},a.prototype.setColors=function(r){this._refreshCharAtlas(r)},a.prototype._setTransparency=function(r){if(r!==this._alpha){var u=this._canvas;this._alpha=r,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,u),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},a.prototype._refreshCharAtlas=function(r){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=o.acquireCharAtlas(this._optionsService.options,this._rendererId,r,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},a.prototype.resize=function(r){this._scaledCellWidth=r.scaledCellWidth,this._scaledCellHeight=r.scaledCellHeight,this._scaledCharWidth=r.scaledCharWidth,this._scaledCharHeight=r.scaledCharHeight,this._scaledCharLeft=r.scaledCharLeft,this._scaledCharTop=r.scaledCharTop,this._canvas.width=r.scaledCanvasWidth,this._canvas.height=r.scaledCanvasHeight,this._canvas.style.width=r.canvasWidth+"px",this._canvas.style.height=r.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},a.prototype._fillCells=function(r,u,e,n){this._ctx.fillRect(r*this._scaledCellWidth,u*this._scaledCellHeight,e*this._scaledCellWidth,n*this._scaledCellHeight)},a.prototype._fillBottomLineAtCells=function(r,u,e){e===void 0&&(e=1),this._ctx.fillRect(r*this._scaledCellWidth,(u+1)*this._scaledCellHeight-window.devicePixelRatio-1,e*this._scaledCellWidth,window.devicePixelRatio)},a.prototype._fillLeftLineAtCell=function(r,u,e){this._ctx.fillRect(r*this._scaledCellWidth,u*this._scaledCellHeight,window.devicePixelRatio*e,this._scaledCellHeight)},a.prototype._strokeRectAtCell=function(r,u,e,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(r*this._scaledCellWidth+window.devicePixelRatio/2,u*this._scaledCellHeight+window.devicePixelRatio/2,e*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},a.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))},a.prototype._clearCells=function(r,u,e,n){this._alpha?this._ctx.clearRect(r*this._scaledCellWidth,u*this._scaledCellHeight,e*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(r*this._scaledCellWidth,u*this._scaledCellHeight,e*this._scaledCellWidth,n*this._scaledCellHeight))},a.prototype._fillCharTrueColor=function(r,u,e){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(e),this._ctx.fillText(r.getChars(),u*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},a.prototype._drawChars=function(r,u,e){var n,i,c=this._getContrastColor(r);c||r.isFgRGB()||r.isBgRGB()?this._drawUncachedChars(r,u,e,c):(r.isInverse()?(n=r.isBgDefault()?I.INVERTED_DEFAULT_COLOR:r.getBgColor(),i=r.isFgDefault()?I.INVERTED_DEFAULT_COLOR:r.getFgColor()):(i=r.isBgDefault()?E.DEFAULT_COLOR:r.getBgColor(),n=r.isFgDefault()?E.DEFAULT_COLOR:r.getFgColor()),n+=this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&n<8?8:0,this._currentGlyphIdentifier.chars=r.getChars()||E.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=r.getCode()||E.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=i,this._currentGlyphIdentifier.fg=n,this._currentGlyphIdentifier.bold=!!r.isBold(),this._currentGlyphIdentifier.dim=!!r.isDim(),this._currentGlyphIdentifier.italic=!!r.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,u*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(r,u,e))},a.prototype._drawUncachedChars=function(r,u,e,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!r.isBold(),!!r.isItalic()),this._ctx.textBaseline="middle",r.isInverse())if(n)this._ctx.fillStyle=n.css;else if(r.isBgDefault())this._ctx.fillStyle=s.color.opaque(this._colors.background).css;else if(r.isBgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(r.getBgColor()).join(",")+")";else{var i=r.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&i<8&&(i+=8),this._ctx.fillStyle=this._colors.ansi[i].css}else if(n)this._ctx.fillStyle=n.css;else if(r.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(r.isFgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(r.getFgColor()).join(",")+")";else{var c=r.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&r.isBold()&&c<8&&(c+=8),this._ctx.fillStyle=this._colors.ansi[c].css}this._clipRow(e),r.isDim()&&(this._ctx.globalAlpha=I.DIM_OPACITY),this._ctx.fillText(r.getChars(),u*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},a.prototype._clipRow=function(r){this._ctx.beginPath(),this._ctx.rect(0,r*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},a.prototype._getFont=function(r,u){return(u?"italic":"")+" "+(r?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},a.prototype._getContrastColor=function(r){if(this._optionsService.options.minimumContrastRatio!==1){var u=this._colors.contrastCache.getColor(r.bg,r.fg);if(u!==void 0)return u||void 0;var e=r.getFgColor(),n=r.getFgColorMode(),i=r.getBgColor(),c=r.getBgColorMode(),d=!!r.isInverse(),h=!!r.isInverse();if(d){var p=e;e=i,i=p;var g=n;n=c,c=g}var v=this._resolveBackgroundRgba(c,i,d),A=this._resolveForegroundRgba(n,e,d,h),x=s.rgba.ensureContrastRatio(v,A,this._optionsService.options.minimumContrastRatio);if(x){var b={css:s.channels.toCss(x>>24&255,x>>16&255,x>>8&255),rgba:x};return this._colors.contrastCache.setColor(r.bg,r.fg,b),b}this._colors.contrastCache.setColor(r.bg,r.fg,null)}},a.prototype._resolveBackgroundRgba=function(r,u,e){switch(r){case 16777216:case 33554432:return this._colors.ansi[u].rgba;case 50331648:return u<<8;case 0:default:return e?this._colors.foreground.rgba:this._colors.background.rgba}},a.prototype._resolveForegroundRgba=function(r,u,e,n){switch(r){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&n&&u<8&&(u+=8),this._colors.ansi[u].rgba;case 50331648:return u<<8;case 0:default:return e?this._colors.background.rgba:this._colors.foreground.rgba}},a}();N.BaseRenderLayer=l},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.createDecorator=N.getServiceDependencies=N.serviceRegistry=void 0;function E(I,o,m){o.di$target===o?o.di$dependencies.push({id:I,index:m}):(o.di$dependencies=[{id:I,index:m}],o.di$target=o)}N.serviceRegistry=new Map,N.getServiceDependencies=function(I){return I.di$dependencies||[]},N.createDecorator=function(I){if(N.serviceRegistry.has(I))return N.serviceRegistry.get(I);var o=function m(f,s,t){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");E(m,f,t)};return o.toString=function(){return I},N.serviceRegistry.set(I,o),o}},function(D,N,L){"use strict";function E(I,o,m,f){if(m===void 0&&(m=0),f===void 0&&(f=I.length),m>=I.length)return I;m=(I.length+m)%I.length,f=f>=I.length?I.length:(I.length+f)%I.length;for(var s=m;s<f;++s)I[s]=o;return I}Object.defineProperty(N,"__esModule",{value:!0}),N.concat=N.fillFallback=N.fill=void 0,N.fill=function(I,o,m,f){return I.fill?I.fill(o,m,f):E(I,o,m,f)},N.fillFallback=E,N.concat=function(I,o){var m=new I.constructor(I.length+o.length);return m.set(I),m.set(o,I.length),m}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.BufferLine=N.DEFAULT_ATTR_DATA=void 0;var E=L(8),I=L(3),o=L(4),m=L(6);N.DEFAULT_ATTR_DATA=Object.freeze(new m.AttributeData);var f=function(){function s(t,l,a){a===void 0&&(a=!1),this.isWrapped=a,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*t);for(var r=l||o.CellData.fromCharData([0,I.NULL_CELL_CHAR,I.NULL_CELL_WIDTH,I.NULL_CELL_CODE]),u=0;u<t;++u)this.setCell(u,r);this.length=t}return s.prototype.get=function(t){var l=this._data[3*t+0],a=2097151&l;return[this._data[3*t+1],2097152&l?this._combined[t]:a?E.stringFromCodePoint(a):"",l>>22,2097152&l?this._combined[t].charCodeAt(this._combined[t].length-1):a]},s.prototype.set=function(t,l){this._data[3*t+1]=l[I.CHAR_DATA_ATTR_INDEX],l[I.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[t]=l[1],this._data[3*t+0]=2097152|t|l[I.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*t+0]=l[I.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|l[I.CHAR_DATA_WIDTH_INDEX]<<22},s.prototype.getWidth=function(t){return this._data[3*t+0]>>22},s.prototype.hasWidth=function(t){return 12582912&this._data[3*t+0]},s.prototype.getFg=function(t){return this._data[3*t+1]},s.prototype.getBg=function(t){return this._data[3*t+2]},s.prototype.hasContent=function(t){return 4194303&this._data[3*t+0]},s.prototype.getCodePoint=function(t){var l=this._data[3*t+0];return 2097152&l?this._combined[t].charCodeAt(this._combined[t].length-1):2097151&l},s.prototype.isCombined=function(t){return 2097152&this._data[3*t+0]},s.prototype.getString=function(t){var l=this._data[3*t+0];return 2097152&l?this._combined[t]:2097151&l?E.stringFromCodePoint(2097151&l):""},s.prototype.loadCell=function(t,l){var a=3*t;return l.content=this._data[a+0],l.fg=this._data[a+1],l.bg=this._data[a+2],2097152&l.content&&(l.combinedData=this._combined[t]),268435456&l.bg&&(l.extended=this._extendedAttrs[t]),l},s.prototype.setCell=function(t,l){2097152&l.content&&(this._combined[t]=l.combinedData),268435456&l.bg&&(this._extendedAttrs[t]=l.extended),this._data[3*t+0]=l.content,this._data[3*t+1]=l.fg,this._data[3*t+2]=l.bg},s.prototype.setCellFromCodePoint=function(t,l,a,r,u,e){268435456&u&&(this._extendedAttrs[t]=e),this._data[3*t+0]=l|a<<22,this._data[3*t+1]=r,this._data[3*t+2]=u},s.prototype.addCodepointToCell=function(t,l){var a=this._data[3*t+0];2097152&a?this._combined[t]+=E.stringFromCodePoint(l):(2097151&a?(this._combined[t]=E.stringFromCodePoint(2097151&a)+E.stringFromCodePoint(l),a&=-2097152,a|=2097152):a=l|1<<22,this._data[3*t+0]=a)},s.prototype.insertCells=function(t,l,a,r){if((t%=this.length)&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new m.ExtendedAttrs),l<this.length-t){for(var u=new o.CellData,e=this.length-t-l-1;e>=0;--e)this.setCell(t+l+e,this.loadCell(t+e,u));for(e=0;e<l;++e)this.setCell(t+e,a)}else for(e=t;e<this.length;++e)this.setCell(e,a);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new m.ExtendedAttrs)},s.prototype.deleteCells=function(t,l,a,r){if(t%=this.length,l<this.length-t){for(var u=new o.CellData,e=0;e<this.length-t-l;++e)this.setCell(t+e,this.loadCell(t+l+e,u));for(e=this.length-l;e<this.length;++e)this.setCell(e,a)}else for(e=t;e<this.length;++e)this.setCell(e,a);t&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new m.ExtendedAttrs),this.getWidth(t)!==0||this.hasContent(t)||this.setCellFromCodePoint(t,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new m.ExtendedAttrs)},s.prototype.replaceCells=function(t,l,a,r){for(t&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t-1,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new m.ExtendedAttrs),l<this.length&&this.getWidth(l-1)===2&&this.setCellFromCodePoint(l,0,1,(r==null?void 0:r.fg)||0,(r==null?void 0:r.bg)||0,(r==null?void 0:r.extended)||new m.ExtendedAttrs);t<l&&t<this.length;)this.setCell(t++,a)},s.prototype.resize=function(t,l){if(t!==this.length){if(t>this.length){var a=new Uint32Array(3*t);this.length&&(3*t<this._data.length?a.set(this._data.subarray(0,3*t)):a.set(this._data)),this._data=a;for(var r=this.length;r<t;++r)this.setCell(r,l)}else if(t){(a=new Uint32Array(3*t)).set(this._data.subarray(0,3*t)),this._data=a;var u=Object.keys(this._combined);for(r=0;r<u.length;r++){var e=parseInt(u[r],10);e>=t&&delete this._combined[e]}}else this._data=new Uint32Array(0),this._combined={};this.length=t}},s.prototype.fill=function(t){this._combined={},this._extendedAttrs={};for(var l=0;l<this.length;++l)this.setCell(l,t)},s.prototype.copyFrom=function(t){for(var l in this.length!==t.length?this._data=new Uint32Array(t._data):this._data.set(t._data),this.length=t.length,this._combined={},t._combined)this._combined[l]=t._combined[l];for(var l in this._extendedAttrs={},t._extendedAttrs)this._extendedAttrs[l]=t._extendedAttrs[l];this.isWrapped=t.isWrapped},s.prototype.clone=function(){var t=new s(0);for(var l in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[l]=this._combined[l];for(var l in this._extendedAttrs)t._extendedAttrs[l]=this._extendedAttrs[l];return t.isWrapped=this.isWrapped,t},s.prototype.getTrimmedLength=function(){for(var t=this.length-1;t>=0;--t)if(4194303&this._data[3*t+0])return t+(this._data[3*t+0]>>22);return 0},s.prototype.copyCellsFrom=function(t,l,a,r,u){var e=t._data;if(u)for(var n=r-1;n>=0;n--)for(var i=0;i<3;i++)this._data[3*(a+n)+i]=e[3*(l+n)+i];else for(n=0;n<r;n++)for(i=0;i<3;i++)this._data[3*(a+n)+i]=e[3*(l+n)+i];var c=Object.keys(t._combined);for(i=0;i<c.length;i++){var d=parseInt(c[i],10);d>=l&&(this._combined[d-l+a]=t._combined[d])}},s.prototype.translateToString=function(t,l,a){t===void 0&&(t=!1),l===void 0&&(l=0),a===void 0&&(a=this.length),t&&(a=Math.min(a,this.getTrimmedLength()));for(var r="";l<a;){var u=this._data[3*l+0],e=2097151&u;r+=2097152&u?this._combined[l]:e?E.stringFromCodePoint(e):I.WHITESPACE_CELL_CHAR,l+=u>>22||1}return r},s}();N.BufferLine=f},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.removeElementFromParent=void 0,N.removeElementFromParent=function(){for(var E,I=[],o=0;o<arguments.length;o++)I[o]=arguments[o];for(var m=0,f=I;m<f.length;m++){var s=f[m];(E=s==null?void 0:s.parentElement)===null||E===void 0||E.removeChild(s)}}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.tooMuchOutput=N.promptLabel=void 0,N.promptLabel="Terminal input",N.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(x,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var T in S)S.hasOwnProperty(T)&&(w[T]=S[T])})(x,b)},function(A,x){function b(){this.constructor=A}E(A,x),A.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(N,"__esModule",{value:!0}),N.InputHandler=N.WindowsOptionsReportType=void 0;var o,m=L(12),f=L(20),s=L(39),t=L(2),l=L(15),a=L(8),r=L(16),u=L(0),e=L(3),n=L(4),i=L(6),c=L(22),d=L(24),h={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function p(A,x){if(A>24)return x.setWinLines||!1;switch(A){case 1:return!!x.restoreWin;case 2:return!!x.minimizeWin;case 3:return!!x.setWinPosition;case 4:return!!x.setWinSizePixels;case 5:return!!x.raiseWin;case 6:return!!x.lowerWin;case 7:return!!x.refreshWin;case 8:return!!x.setWinSizeChars;case 9:return!!x.maximizeWin;case 10:return!!x.fullscreenWin;case 11:return!!x.getWinState;case 13:return!!x.getWinPosition;case 14:return!!x.getWinSizePixels;case 15:return!!x.getScreenSizePixels;case 16:return!!x.getCellSizePixels;case 18:return!!x.getWinSizeChars;case 19:return!!x.getScreenSizeChars;case 20:return!!x.getIconTitle;case 21:return!!x.getWinTitle;case 22:return!!x.pushTitle;case 23:return!!x.popTitle;case 24:return!!x.setWinLines}return!1}!function(A){A[A.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",A[A.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(o=N.WindowsOptionsReportType||(N.WindowsOptionsReportType={}));var g=function(){function A(x,b,w,S){this._bufferService=x,this._coreService=b,this._logService=w,this._optionsService=S,this._data=new Uint32Array(0)}return A.prototype.hook=function(x){this._data=new Uint32Array(0)},A.prototype.put=function(x,b,w){this._data=l.concat(this._data,x.subarray(b,w))},A.prototype.unhook=function(x){if(x){var b=a.utf32ToString(this._data);switch(this._data=new Uint32Array(0),b){case'"q':return this._coreService.triggerDataEvent(m.C0.ESC+'P1$r0"q'+m.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(m.C0.ESC+'P1$r61;1"p'+m.C0.ESC+"\\");case"r":var w=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(m.C0.ESC+"P1$r"+w+m.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(m.C0.ESC+"P1$r0m"+m.C0.ESC+"\\");case" q":var S={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return S-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(m.C0.ESC+"P1$r"+S+" q"+m.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",b),this._coreService.triggerDataEvent(m.C0.ESC+"P0$r"+m.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},A}(),v=function(A){function x(b,w,S,T,C,O,_,M,k){k===void 0&&(k=new s.EscapeSequenceParser);var R=A.call(this)||this;R._bufferService=b,R._charsetService=w,R._coreService=S,R._dirtyRowService=T,R._logService=C,R._optionsService=O,R._coreMouseService=_,R._unicodeService=M,R._parser=k,R._parseBuffer=new Uint32Array(4096),R._stringDecoder=new a.StringToUtf32,R._utf8Decoder=new a.Utf8ToUtf32,R._workCell=new n.CellData,R._windowTitle="",R._iconName="",R._windowTitleStack=[],R._iconNameStack=[],R._curAttrData=r.DEFAULT_ATTR_DATA.clone(),R._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone(),R._onRequestBell=new u.EventEmitter,R._onRequestRefreshRows=new u.EventEmitter,R._onRequestReset=new u.EventEmitter,R._onRequestScroll=new u.EventEmitter,R._onRequestSyncScrollBar=new u.EventEmitter,R._onRequestWindowsOptionsReport=new u.EventEmitter,R._onA11yChar=new u.EventEmitter,R._onA11yTab=new u.EventEmitter,R._onCursorMove=new u.EventEmitter,R._onLineFeed=new u.EventEmitter,R._onScroll=new u.EventEmitter,R._onTitleChange=new u.EventEmitter,R.register(R._parser),R._parser.setCsiHandlerFallback(function(j,H){R._logService.debug("Unknown CSI code: ",{identifier:R._parser.identToString(j),params:H.toArray()})}),R._parser.setEscHandlerFallback(function(j){R._logService.debug("Unknown ESC code: ",{identifier:R._parser.identToString(j)})}),R._parser.setExecuteHandlerFallback(function(j){R._logService.debug("Unknown EXECUTE code: ",{code:j})}),R._parser.setOscHandlerFallback(function(j,H,W){R._logService.debug("Unknown OSC code: ",{identifier:j,action:H,data:W})}),R._parser.setDcsHandlerFallback(function(j,H,W){H==="HOOK"&&(W=W.toArray()),R._logService.debug("Unknown DCS code: ",{identifier:R._parser.identToString(j),action:H,payload:W})}),R._parser.setPrintHandler(function(j,H,W){return R.print(j,H,W)}),R._parser.setCsiHandler({final:"@"},function(j){return R.insertChars(j)}),R._parser.setCsiHandler({intermediates:" ",final:"@"},function(j){return R.scrollLeft(j)}),R._parser.setCsiHandler({final:"A"},function(j){return R.cursorUp(j)}),R._parser.setCsiHandler({intermediates:" ",final:"A"},function(j){return R.scrollRight(j)}),R._parser.setCsiHandler({final:"B"},function(j){return R.cursorDown(j)}),R._parser.setCsiHandler({final:"C"},function(j){return R.cursorForward(j)}),R._parser.setCsiHandler({final:"D"},function(j){return R.cursorBackward(j)}),R._parser.setCsiHandler({final:"E"},function(j){return R.cursorNextLine(j)}),R._parser.setCsiHandler({final:"F"},function(j){return R.cursorPrecedingLine(j)}),R._parser.setCsiHandler({final:"G"},function(j){return R.cursorCharAbsolute(j)}),R._parser.setCsiHandler({final:"H"},function(j){return R.cursorPosition(j)}),R._parser.setCsiHandler({final:"I"},function(j){return R.cursorForwardTab(j)}),R._parser.setCsiHandler({final:"J"},function(j){return R.eraseInDisplay(j)}),R._parser.setCsiHandler({prefix:"?",final:"J"},function(j){return R.eraseInDisplay(j)}),R._parser.setCsiHandler({final:"K"},function(j){return R.eraseInLine(j)}),R._parser.setCsiHandler({prefix:"?",final:"K"},function(j){return R.eraseInLine(j)}),R._parser.setCsiHandler({final:"L"},function(j){return R.insertLines(j)}),R._parser.setCsiHandler({final:"M"},function(j){return R.deleteLines(j)}),R._parser.setCsiHandler({final:"P"},function(j){return R.deleteChars(j)}),R._parser.setCsiHandler({final:"S"},function(j){return R.scrollUp(j)}),R._parser.setCsiHandler({final:"T"},function(j){return R.scrollDown(j)}),R._parser.setCsiHandler({final:"X"},function(j){return R.eraseChars(j)}),R._parser.setCsiHandler({final:"Z"},function(j){return R.cursorBackwardTab(j)}),R._parser.setCsiHandler({final:"`"},function(j){return R.charPosAbsolute(j)}),R._parser.setCsiHandler({final:"a"},function(j){return R.hPositionRelative(j)}),R._parser.setCsiHandler({final:"b"},function(j){return R.repeatPrecedingCharacter(j)}),R._parser.setCsiHandler({final:"c"},function(j){return R.sendDeviceAttributesPrimary(j)}),R._parser.setCsiHandler({prefix:">",final:"c"},function(j){return R.sendDeviceAttributesSecondary(j)}),R._parser.setCsiHandler({final:"d"},function(j){return R.linePosAbsolute(j)}),R._parser.setCsiHandler({final:"e"},function(j){return R.vPositionRelative(j)}),R._parser.setCsiHandler({final:"f"},function(j){return R.hVPosition(j)}),R._parser.setCsiHandler({final:"g"},function(j){return R.tabClear(j)}),R._parser.setCsiHandler({final:"h"},function(j){return R.setMode(j)}),R._parser.setCsiHandler({prefix:"?",final:"h"},function(j){return R.setModePrivate(j)}),R._parser.setCsiHandler({final:"l"},function(j){return R.resetMode(j)}),R._parser.setCsiHandler({prefix:"?",final:"l"},function(j){return R.resetModePrivate(j)}),R._parser.setCsiHandler({final:"m"},function(j){return R.charAttributes(j)}),R._parser.setCsiHandler({final:"n"},function(j){return R.deviceStatus(j)}),R._parser.setCsiHandler({prefix:"?",final:"n"},function(j){return R.deviceStatusPrivate(j)}),R._parser.setCsiHandler({intermediates:"!",final:"p"},function(j){return R.softReset(j)}),R._parser.setCsiHandler({intermediates:" ",final:"q"},function(j){return R.setCursorStyle(j)}),R._parser.setCsiHandler({final:"r"},function(j){return R.setScrollRegion(j)}),R._parser.setCsiHandler({final:"s"},function(j){return R.saveCursor(j)}),R._parser.setCsiHandler({final:"t"},function(j){return R.windowOptions(j)}),R._parser.setCsiHandler({final:"u"},function(j){return R.restoreCursor(j)}),R._parser.setCsiHandler({intermediates:"'",final:"}"},function(j){return R.insertColumns(j)}),R._parser.setCsiHandler({intermediates:"'",final:"~"},function(j){return R.deleteColumns(j)}),R._parser.setExecuteHandler(m.C0.BEL,function(){return R.bell()}),R._parser.setExecuteHandler(m.C0.LF,function(){return R.lineFeed()}),R._parser.setExecuteHandler(m.C0.VT,function(){return R.lineFeed()}),R._parser.setExecuteHandler(m.C0.FF,function(){return R.lineFeed()}),R._parser.setExecuteHandler(m.C0.CR,function(){return R.carriageReturn()}),R._parser.setExecuteHandler(m.C0.BS,function(){return R.backspace()}),R._parser.setExecuteHandler(m.C0.HT,function(){return R.tab()}),R._parser.setExecuteHandler(m.C0.SO,function(){return R.shiftOut()}),R._parser.setExecuteHandler(m.C0.SI,function(){return R.shiftIn()}),R._parser.setExecuteHandler(m.C1.IND,function(){return R.index()}),R._parser.setExecuteHandler(m.C1.NEL,function(){return R.nextLine()}),R._parser.setExecuteHandler(m.C1.HTS,function(){return R.tabSet()}),R._parser.setOscHandler(0,new c.OscHandler(function(j){R.setTitle(j),R.setIconName(j)})),R._parser.setOscHandler(1,new c.OscHandler(function(j){return R.setIconName(j)})),R._parser.setOscHandler(2,new c.OscHandler(function(j){return R.setTitle(j)})),R._parser.setEscHandler({final:"7"},function(){return R.saveCursor()}),R._parser.setEscHandler({final:"8"},function(){return R.restoreCursor()}),R._parser.setEscHandler({final:"D"},function(){return R.index()}),R._parser.setEscHandler({final:"E"},function(){return R.nextLine()}),R._parser.setEscHandler({final:"H"},function(){return R.tabSet()}),R._parser.setEscHandler({final:"M"},function(){return R.reverseIndex()}),R._parser.setEscHandler({final:"="},function(){return R.keypadApplicationMode()}),R._parser.setEscHandler({final:">"},function(){return R.keypadNumericMode()}),R._parser.setEscHandler({final:"c"},function(){return R.fullReset()}),R._parser.setEscHandler({final:"n"},function(){return R.setgLevel(2)}),R._parser.setEscHandler({final:"o"},function(){return R.setgLevel(3)}),R._parser.setEscHandler({final:"|"},function(){return R.setgLevel(3)}),R._parser.setEscHandler({final:"}"},function(){return R.setgLevel(2)}),R._parser.setEscHandler({final:"~"},function(){return R.setgLevel(1)}),R._parser.setEscHandler({intermediates:"%",final:"@"},function(){return R.selectDefaultCharset()}),R._parser.setEscHandler({intermediates:"%",final:"G"},function(){return R.selectDefaultCharset()});var B=function(H){P._parser.setEscHandler({intermediates:"(",final:H},function(){return R.selectCharset("("+H)}),P._parser.setEscHandler({intermediates:")",final:H},function(){return R.selectCharset(")"+H)}),P._parser.setEscHandler({intermediates:"*",final:H},function(){return R.selectCharset("*"+H)}),P._parser.setEscHandler({intermediates:"+",final:H},function(){return R.selectCharset("+"+H)}),P._parser.setEscHandler({intermediates:"-",final:H},function(){return R.selectCharset("-"+H)}),P._parser.setEscHandler({intermediates:".",final:H},function(){return R.selectCharset("."+H)}),P._parser.setEscHandler({intermediates:"/",final:H},function(){return R.selectCharset("/"+H)})},P=this;for(var U in f.CHARSETS)B(U);return R._parser.setEscHandler({intermediates:"#",final:"8"},function(){return R.screenAlignmentPattern()}),R._parser.setErrorHandler(function(j){return R._logService.error("Parsing error: ",j),j}),R._parser.setDcsHandler({intermediates:"$",final:"q"},new g(R._bufferService,R._coreService,R._logService,R._optionsService)),R}return I(x,A),Object.defineProperty(x.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){A.prototype.dispose.call(this)},x.prototype.parse=function(b){var w=this._bufferService.buffer,S=w.x,T=w.y;if(this._logService.debug("parsing data",b),this._parseBuffer.length<b.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(b.length,131072))),this._dirtyRowService.clearRange(),b.length>131072)for(var C=0;C<b.length;C+=131072){var O=C+131072<b.length?C+131072:b.length,_=typeof b=="string"?this._stringDecoder.decode(b.substring(C,O),this._parseBuffer):this._utf8Decoder.decode(b.subarray(C,O),this._parseBuffer);this._parser.parse(this._parseBuffer,_)}else _=typeof b=="string"?this._stringDecoder.decode(b,this._parseBuffer):this._utf8Decoder.decode(b,this._parseBuffer),this._parser.parse(this._parseBuffer,_);(w=this._bufferService.buffer).x===S&&w.y===T||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},x.prototype.print=function(b,w,S){var T,C,O=this._bufferService.buffer,_=this._charsetService.charset,M=this._optionsService.options.screenReaderMode,k=this._bufferService.cols,R=this._coreService.decPrivateModes.wraparound,B=this._coreService.modes.insertMode,P=this._curAttrData,U=O.lines.get(O.ybase+O.y);this._dirtyRowService.markDirty(O.y),O.x&&S-w>0&&U.getWidth(O.x-1)===2&&U.setCellFromCodePoint(O.x-1,0,1,P.fg,P.bg,P.extended);for(var j=w;j<S;++j){if(T=b[j],C=this._unicodeService.wcwidth(T),T<127&&_){var H=_[String.fromCharCode(T)];H&&(T=H.charCodeAt(0))}if(M&&this._onA11yChar.fire(a.stringFromCodePoint(T)),C||!O.x){if(O.x+C-1>=k){if(R){for(;O.x<k;)U.setCellFromCodePoint(O.x++,0,1,P.fg,P.bg,P.extended);O.x=0,O.y++,O.y===O.scrollBottom+1?(O.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(O.y>=this._bufferService.rows&&(O.y=this._bufferService.rows-1),O.lines.get(O.ybase+O.y).isWrapped=!0),U=O.lines.get(O.ybase+O.y)}else if(O.x=k-1,C===2)continue}if(B&&(U.insertCells(O.x,C,O.getNullCell(P),P),U.getWidth(k-1)===2&&U.setCellFromCodePoint(k-1,e.NULL_CELL_CODE,e.NULL_CELL_WIDTH,P.fg,P.bg,P.extended)),U.setCellFromCodePoint(O.x++,T,C,P.fg,P.bg,P.extended),C>0)for(;--C;)U.setCellFromCodePoint(O.x++,0,0,P.fg,P.bg,P.extended)}else U.getWidth(O.x-1)?U.addCodepointToCell(O.x-1,T):U.addCodepointToCell(O.x-2,T)}S-w>0&&(U.loadCell(O.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),O.x<k&&S-w>0&&U.getWidth(O.x)===0&&!U.hasContent(O.x)&&U.setCellFromCodePoint(O.x,0,1,P.fg,P.bg,P.extended),this._dirtyRowService.markDirty(O.y)},x.prototype.addCsiHandler=function(b,w){var S=this;return b.final!=="t"||b.prefix||b.intermediates?this._parser.addCsiHandler(b,w):this._parser.addCsiHandler(b,function(T){return!p(T.params[0],S._optionsService.options.windowOptions)||w(T)})},x.prototype.addDcsHandler=function(b,w){return this._parser.addDcsHandler(b,new d.DcsHandler(w))},x.prototype.addEscHandler=function(b,w){return this._parser.addEscHandler(b,w)},x.prototype.addOscHandler=function(b,w){return this._parser.addOscHandler(b,new c.OscHandler(w))},x.prototype.bell=function(){this._onRequestBell.fire()},x.prototype.lineFeed=function(){var b=this._bufferService.buffer;this._dirtyRowService.markDirty(b.y),this._optionsService.options.convertEol&&(b.x=0),b.y++,b.y===b.scrollBottom+1?(b.y--,this._onRequestScroll.fire(this._eraseAttrData())):b.y>=this._bufferService.rows&&(b.y=this._bufferService.rows-1),b.x>=this._bufferService.cols&&b.x--,this._dirtyRowService.markDirty(b.y),this._onLineFeed.fire()},x.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},x.prototype.backspace=function(){var b,w=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(w.x>0&&w.x--);if(this._restrictCursor(this._bufferService.cols),w.x>0)w.x--;else if(w.x===0&&w.y>w.scrollTop&&w.y<=w.scrollBottom&&((b=w.lines.get(w.ybase+w.y))===null||b===void 0?void 0:b.isWrapped)){w.lines.get(w.ybase+w.y).isWrapped=!1,w.y--,w.x=this._bufferService.cols-1;var S=w.lines.get(w.ybase+w.y);S.hasWidth(w.x)&&!S.hasContent(w.x)&&w.x--}this._restrictCursor()},x.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var b=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-b)}},x.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},x.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},x.prototype._restrictCursor=function(b){b===void 0&&(b=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(b,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)},x.prototype._setCursor=function(b,w){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=b,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+w):(this._bufferService.buffer.x=b,this._bufferService.buffer.y=w),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},x.prototype._moveCursor=function(b,w){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+b,this._bufferService.buffer.y+w)},x.prototype.cursorUp=function(b){var w=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;w>=0?this._moveCursor(0,-Math.min(w,b.params[0]||1)):this._moveCursor(0,-(b.params[0]||1))},x.prototype.cursorDown=function(b){var w=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;w>=0?this._moveCursor(0,Math.min(w,b.params[0]||1)):this._moveCursor(0,b.params[0]||1)},x.prototype.cursorForward=function(b){this._moveCursor(b.params[0]||1,0)},x.prototype.cursorBackward=function(b){this._moveCursor(-(b.params[0]||1),0)},x.prototype.cursorNextLine=function(b){this.cursorDown(b),this._bufferService.buffer.x=0},x.prototype.cursorPrecedingLine=function(b){this.cursorUp(b),this._bufferService.buffer.x=0},x.prototype.cursorCharAbsolute=function(b){this._setCursor((b.params[0]||1)-1,this._bufferService.buffer.y)},x.prototype.cursorPosition=function(b){this._setCursor(b.length>=2?(b.params[1]||1)-1:0,(b.params[0]||1)-1)},x.prototype.charPosAbsolute=function(b){this._setCursor((b.params[0]||1)-1,this._bufferService.buffer.y)},x.prototype.hPositionRelative=function(b){this._moveCursor(b.params[0]||1,0)},x.prototype.linePosAbsolute=function(b){this._setCursor(this._bufferService.buffer.x,(b.params[0]||1)-1)},x.prototype.vPositionRelative=function(b){this._moveCursor(0,b.params[0]||1)},x.prototype.hVPosition=function(b){this.cursorPosition(b)},x.prototype.tabClear=function(b){var w=b.params[0];w===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:w===3&&(this._bufferService.buffer.tabs={})},x.prototype.cursorForwardTab=function(b){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=b.params[0]||1;w--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},x.prototype.cursorBackwardTab=function(b){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=b.params[0]||1,S=this._bufferService.buffer;w--;)S.x=S.prevStop()},x.prototype._eraseInBufferLine=function(b,w,S,T){T===void 0&&(T=!1);var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+b);C.replaceCells(w,S,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),T&&(C.isWrapped=!1)},x.prototype._resetBufferLine=function(b){var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+b);w.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),w.isWrapped=!1},x.prototype.eraseInDisplay=function(b){var w;switch(this._restrictCursor(),b.params[0]){case 0:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);w<this._bufferService.rows;w++)this._resetBufferLine(w);this._dirtyRowService.markDirty(w);break;case 1:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(w+1).isWrapped=!1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 2:for(w=this._bufferService.rows,this._dirtyRowService.markDirty(w-1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 3:var S=this._bufferService.buffer.lines.length-this._bufferService.rows;S>0&&(this._bufferService.buffer.lines.trimStart(S),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-S,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-S,0),this._onScroll.fire(0))}},x.prototype.eraseInLine=function(b){switch(this._restrictCursor(),b.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)},x.prototype.insertLines=function(b){this._restrictCursor();var w=b.params[0]||1,S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var T=S.ybase+S.y,C=this._bufferService.rows-1-S.scrollBottom,O=this._bufferService.rows-1+S.ybase-C+1;w--;)S.lines.splice(O-1,1),S.lines.splice(T,0,S.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(S.y,S.scrollBottom),S.x=0}},x.prototype.deleteLines=function(b){this._restrictCursor();var w=b.params[0]||1,S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){var T,C=S.ybase+S.y;for(T=this._bufferService.rows-1-S.scrollBottom,T=this._bufferService.rows-1+S.ybase-T;w--;)S.lines.splice(C,1),S.lines.splice(T,0,S.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(S.y,S.scrollBottom),S.x=0}},x.prototype.insertChars=function(b){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.insertCells(this._bufferService.buffer.x,b.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},x.prototype.deleteChars=function(b){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.deleteCells(this._bufferService.buffer.x,b.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},x.prototype.scrollUp=function(b){for(var w=b.params[0]||1,S=this._bufferService.buffer;w--;)S.lines.splice(S.ybase+S.scrollTop,1),S.lines.splice(S.ybase+S.scrollBottom,0,S.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)},x.prototype.scrollDown=function(b){for(var w=b.params[0]||1,S=this._bufferService.buffer;w--;)S.lines.splice(S.ybase+S.scrollBottom,1),S.lines.splice(S.ybase+S.scrollTop,0,S.getBlankLine(r.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)},x.prototype.scrollLeft=function(b){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var S=b.params[0]||1,T=w.scrollTop;T<=w.scrollBottom;++T){var C=w.lines.get(w.ybase+T);C.deleteCells(0,S,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),C.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},x.prototype.scrollRight=function(b){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var S=b.params[0]||1,T=w.scrollTop;T<=w.scrollBottom;++T){var C=w.lines.get(w.ybase+T);C.insertCells(0,S,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),C.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},x.prototype.insertColumns=function(b){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var S=b.params[0]||1,T=w.scrollTop;T<=w.scrollBottom;++T){var C=this._bufferService.buffer.lines.get(w.ybase+T);C.insertCells(w.x,S,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),C.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},x.prototype.deleteColumns=function(b){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var S=b.params[0]||1,T=w.scrollTop;T<=w.scrollBottom;++T){var C=w.lines.get(w.ybase+T);C.deleteCells(w.x,S,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),C.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},x.prototype.eraseChars=function(b){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(b.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},x.prototype.repeatPrecedingCharacter=function(b){if(this._parser.precedingCodepoint){for(var w=b.params[0]||1,S=new Uint32Array(w),T=0;T<w;++T)S[T]=this._parser.precedingCodepoint;this.print(S,0,S.length)}},x.prototype.sendDeviceAttributesPrimary=function(b){b.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(m.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(m.C0.ESC+"[?6c"))},x.prototype.sendDeviceAttributesSecondary=function(b){b.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(m.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(m.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(b.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(m.C0.ESC+"[>83;40003;0c"))},x.prototype._is=function(b){return(this._optionsService.options.termName+"").indexOf(b)===0},x.prototype.setMode=function(b){for(var w=0;w<b.length;w++)switch(b.params[w]){case 4:this._coreService.modes.insertMode=!0}},x.prototype.setModePrivate=function(b){for(var w=0;w<b.length;w++)switch(b.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,f.DEFAULT_CHARSET),this._charsetService.setgCharset(1,f.DEFAULT_CHARSET),this._charsetService.setgCharset(2,f.DEFAULT_CHARSET),this._charsetService.setgCharset(3,f.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}},x.prototype.resetMode=function(b){for(var w=0;w<b.length;w++)switch(b.params[w]){case 4:this._coreService.modes.insertMode=!1}},x.prototype.resetModePrivate=function(b){for(var w=0;w<b.length;w++)switch(b.params[w]){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(),b.params[w]===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}},x.prototype._updateAttrColor=function(b,w,S,T,C){return w===2?(b|=50331648,b&=-16777216,b|=i.AttributeData.fromColorRGB([S,T,C])):w===5&&(b&=-50331904,b|=33554432|255&S),b},x.prototype._extractColor=function(b,w,S){var T=[0,0,-1,0,0,0],C=0,O=0;do{if(T[O+C]=b.params[w+O],b.hasSubParams(w+O)){var _=b.getSubParams(w+O),M=0;do T[1]===5&&(C=1),T[O+M+1+C]=_[M];while(++M<_.length&&M+O+1+C<T.length);break}if(T[1]===5&&O+C>=2||T[1]===2&&O+C>=5)break;T[1]&&(C=1)}while(++O+w<b.length&&O+C<T.length);for(M=2;M<T.length;++M)T[M]===-1&&(T[M]=0);switch(T[0]){case 38:S.fg=this._updateAttrColor(S.fg,T[1],T[3],T[4],T[5]);break;case 48:S.bg=this._updateAttrColor(S.bg,T[1],T[3],T[4],T[5]);break;case 58:S.extended=S.extended.clone(),S.extended.underlineColor=this._updateAttrColor(S.extended.underlineColor,T[1],T[3],T[4],T[5])}return O},x.prototype._processUnderline=function(b,w){w.extended=w.extended.clone(),(!~b||b>5)&&(b=1),w.extended.underlineStyle=b,w.fg|=268435456,b===0&&(w.fg&=-268435457),w.updateExtended()},x.prototype.charAttributes=function(b){if(b.length===1&&b.params[0]===0)return this._curAttrData.fg=r.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=r.DEFAULT_ATTR_DATA.bg);for(var w,S=b.length,T=this._curAttrData,C=0;C<S;C++)(w=b.params[C])>=30&&w<=37?(T.fg&=-50331904,T.fg|=16777216|w-30):w>=40&&w<=47?(T.bg&=-50331904,T.bg|=16777216|w-40):w>=90&&w<=97?(T.fg&=-50331904,T.fg|=16777224|w-90):w>=100&&w<=107?(T.bg&=-50331904,T.bg|=16777224|w-100):w===0?(T.fg=r.DEFAULT_ATTR_DATA.fg,T.bg=r.DEFAULT_ATTR_DATA.bg):w===1?T.fg|=134217728:w===3?T.bg|=67108864:w===4?(T.fg|=268435456,this._processUnderline(b.hasSubParams(C)?b.getSubParams(C)[0]:1,T)):w===5?T.fg|=536870912:w===7?T.fg|=67108864:w===8?T.fg|=1073741824:w===2?T.bg|=134217728:w===21?this._processUnderline(2,T):w===22?(T.fg&=-134217729,T.bg&=-134217729):w===23?T.bg&=-67108865:w===24?T.fg&=-268435457:w===25?T.fg&=-536870913:w===27?T.fg&=-67108865:w===28?T.fg&=-1073741825:w===39?(T.fg&=-67108864,T.fg|=16777215&r.DEFAULT_ATTR_DATA.fg):w===49?(T.bg&=-67108864,T.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):w===38||w===48||w===58?C+=this._extractColor(b,C,T):w===59?(T.extended=T.extended.clone(),T.extended.underlineColor=-1,T.updateExtended()):w===100?(T.fg&=-67108864,T.fg|=16777215&r.DEFAULT_ATTR_DATA.fg,T.bg&=-67108864,T.bg|=16777215&r.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",w)},x.prototype.deviceStatus=function(b){switch(b.params[0]){case 5:this._coreService.triggerDataEvent(m.C0.ESC+"[0n");break;case 6:var w=this._bufferService.buffer.y+1,S=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(m.C0.ESC+"["+w+";"+S+"R")}},x.prototype.deviceStatusPrivate=function(b){switch(b.params[0]){case 6:var w=this._bufferService.buffer.y+1,S=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(m.C0.ESC+"[?"+w+";"+S+"R")}},x.prototype.softReset=function(b){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=r.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},x.prototype.setCursorStyle=function(b){var w=b.params[0]||1;switch(w){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 S=w%2==1;this._optionsService.options.cursorBlink=S},x.prototype.setScrollRegion=function(b){var w,S=b.params[0]||1;(b.length<2||(w=b.params[1])>this._bufferService.rows||w===0)&&(w=this._bufferService.rows),w>S&&(this._bufferService.buffer.scrollTop=S-1,this._bufferService.buffer.scrollBottom=w-1,this._setCursor(0,0))},x.prototype.windowOptions=function(b){if(p(b.params[0],this._optionsService.options.windowOptions)){var w=b.length>1?b.params[1]:0;switch(b.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(o.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(o.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(m.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},x.prototype.saveCursor=function(b){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},x.prototype.restoreCursor=function(b){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()},x.prototype.setTitle=function(b){this._windowTitle=b,this._onTitleChange.fire(b)},x.prototype.setIconName=function(b){this._iconName=b},x.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},x.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},x.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},x.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,f.DEFAULT_CHARSET)},x.prototype.selectCharset=function(b){b.length===2?b[0]!=="/"&&this._charsetService.setgCharset(h[b[0]],f.CHARSETS[b[1]]||f.DEFAULT_CHARSET):this.selectDefaultCharset()},x.prototype.index=function(){this._restrictCursor();var b=this._bufferService.buffer;this._bufferService.buffer.y++,b.y===b.scrollBottom+1?(b.y--,this._onRequestScroll.fire(this._eraseAttrData())):b.y>=this._bufferService.rows&&(b.y=this._bufferService.rows-1),this._restrictCursor()},x.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},x.prototype.reverseIndex=function(){this._restrictCursor();var b=this._bufferService.buffer;if(b.y===b.scrollTop){var w=b.scrollBottom-b.scrollTop;b.lines.shiftElements(b.ybase+b.y,w,1),b.lines.set(b.ybase+b.y,b.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}else b.y--,this._restrictCursor()},x.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},x.prototype.reset=function(){this._curAttrData=r.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=r.DEFAULT_ATTR_DATA.clone()},x.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},x.prototype.setgLevel=function(b){this._charsetService.setgLevel(b)},x.prototype.screenAlignmentPattern=function(){var b=new n.CellData;b.content=1<<22|"E".charCodeAt(0),b.fg=this._curAttrData.fg,b.bg=this._curAttrData.bg;var w=this._bufferService.buffer;this._setCursor(0,0);for(var S=0;S<this._bufferService.rows;++S){var T=w.ybase+w.y+S,C=w.lines.get(T);C&&(C.fill(b),C.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},x}(t.Disposable);N.InputHandler=v},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.DEFAULT_CHARSET=N.CHARSETS=void 0,N.CHARSETS={},N.DEFAULT_CHARSET=N.CHARSETS.B,N.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"},N.CHARSETS.A={"#":"\xA3"},N.CHARSETS.B=void 0,N.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},N.CHARSETS.C=N.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},N.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},N.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},N.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},N.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},N.CHARSETS.E=N.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},N.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},N.CHARSETS.H=N.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},N.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.Params=void 0;var E=function(){function I(o,m){if(o===void 0&&(o=32),m===void 0&&(m=32),this.maxLength=o,this.maxSubParamsLength=m,m>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(o),this.length=0,this._subParams=new Int32Array(m),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(o),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return I.fromArray=function(o){var m=new I;if(!o.length)return m;for(var f=o[0]instanceof Array?1:0;f<o.length;++f){var s=o[f];if(s instanceof Array)for(var t=0;t<s.length;++t)m.addSubParam(s[t]);else m.addParam(s)}return m},I.prototype.clone=function(){var o=new I(this.maxLength,this.maxSubParamsLength);return o.params.set(this.params),o.length=this.length,o._subParams.set(this._subParams),o._subParamsLength=this._subParamsLength,o._subParamsIdx.set(this._subParamsIdx),o._rejectDigits=this._rejectDigits,o._rejectSubDigits=this._rejectSubDigits,o._digitIsSub=this._digitIsSub,o},I.prototype.toArray=function(){for(var o=[],m=0;m<this.length;++m){o.push(this.params[m]);var f=this._subParamsIdx[m]>>8,s=255&this._subParamsIdx[m];s-f>0&&o.push(Array.prototype.slice.call(this._subParams,f,s))}return o},I.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},I.prototype.addParam=function(o){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(o<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=o>2147483647?2147483647:o}},I.prototype.addSubParam=function(o){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(o<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=o>2147483647?2147483647:o,this._subParamsIdx[this.length-1]++}},I.prototype.hasSubParams=function(o){return(255&this._subParamsIdx[o])-(this._subParamsIdx[o]>>8)>0},I.prototype.getSubParams=function(o){var m=this._subParamsIdx[o]>>8,f=255&this._subParamsIdx[o];return f-m>0?this._subParams.subarray(m,f):null},I.prototype.getSubParamsAll=function(){for(var o={},m=0;m<this.length;++m){var f=this._subParamsIdx[m]>>8,s=255&this._subParamsIdx[m];s-f>0&&(o[m]=this._subParams.slice(f,s))}return o},I.prototype.addDigit=function(o){var m;if(!(this._rejectDigits||!(m=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var f=this._digitIsSub?this._subParams:this.params,s=f[m-1];f[m-1]=~s?Math.min(10*s+o,2147483647):o}},I}();N.Params=E},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.OscHandler=N.OscParser=void 0;var E=L(23),I=L(8),o=function(){function f(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return f.prototype.addHandler=function(s,t){this._handlers[s]===void 0&&(this._handlers[s]=[]);var l=this._handlers[s];return l.push(t),{dispose:function(){var r=l.indexOf(t);r!==-1&&l.splice(r,1)}}},f.prototype.setHandler=function(s,t){this._handlers[s]=[t]},f.prototype.clearHandler=function(s){this._handlers[s]&&delete this._handlers[s]},f.prototype.setHandlerFallback=function(s){this._handlerFb=s},f.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},f.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},f.prototype._start=function(){var s=this._handlers[this._id];if(s)for(var t=s.length-1;t>=0;t--)s[t].start();else this._handlerFb(this._id,"START")},f.prototype._put=function(s,t,l){var a=this._handlers[this._id];if(a)for(var r=a.length-1;r>=0;r--)a[r].put(s,t,l);else this._handlerFb(this._id,"PUT",I.utf32ToString(s,t,l))},f.prototype._end=function(s){var t=this._handlers[this._id];if(t){for(var l=t.length-1;l>=0&&t[l].end(s)===!1;l--);for(l--;l>=0;l--)t[l].end(!1)}else this._handlerFb(this._id,"END",s)},f.prototype.start=function(){this.reset(),this._id=-1,this._state=1},f.prototype.put=function(s,t,l){if(this._state!==3){if(this._state===1)for(;t<l;){var a=s[t++];if(a===59){this._state=2,this._start();break}if(a<48||57<a)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+a-48}this._state===2&&l-t>0&&this._put(s,t,l)}},f.prototype.end=function(s){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(s)),this._id=-1,this._state=0)},f}();N.OscParser=o;var m=function(){function f(s){this._handler=s,this._data="",this._hitLimit=!1}return f.prototype.start=function(){this._data="",this._hitLimit=!1},f.prototype.put=function(s,t,l){this._hitLimit||(this._data+=I.utf32ToString(s,t,l),this._data.length>E.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},f.prototype.end=function(s){var t;return this._hitLimit?t=!1:s&&(t=this._handler(this._data)),this._data="",this._hitLimit=!1,t},f}();N.OscHandler=m},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.PAYLOAD_LIMIT=void 0,N.PAYLOAD_LIMIT=1e7},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.DcsHandler=N.DcsParser=void 0;var E=L(8),I=L(21),o=L(23),m=[],f=function(){function t(){this._handlers=Object.create(null),this._active=m,this._ident=0,this._handlerFb=function(){}}return t.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},t.prototype.addHandler=function(l,a){this._handlers[l]===void 0&&(this._handlers[l]=[]);var r=this._handlers[l];return r.push(a),{dispose:function(){var e=r.indexOf(a);e!==-1&&r.splice(e,1)}}},t.prototype.setHandler=function(l,a){this._handlers[l]=[a]},t.prototype.clearHandler=function(l){this._handlers[l]&&delete this._handlers[l]},t.prototype.setHandlerFallback=function(l){this._handlerFb=l},t.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=m,this._ident=0},t.prototype.hook=function(l,a){if(this.reset(),this._ident=l,this._active=this._handlers[l]||m,this._active.length)for(var r=this._active.length-1;r>=0;r--)this._active[r].hook(a);else this._handlerFb(this._ident,"HOOK",a)},t.prototype.put=function(l,a,r){if(this._active.length)for(var u=this._active.length-1;u>=0;u--)this._active[u].put(l,a,r);else this._handlerFb(this._ident,"PUT",E.utf32ToString(l,a,r))},t.prototype.unhook=function(l){if(this._active.length){for(var a=this._active.length-1;a>=0&&this._active[a].unhook(l)===!1;a--);for(a--;a>=0;a--)this._active[a].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",l);this._active=m,this._ident=0},t}();N.DcsParser=f;var s=function(){function t(l){this._handler=l,this._data="",this._hitLimit=!1}return t.prototype.hook=function(l){this._params=l.clone(),this._data="",this._hitLimit=!1},t.prototype.put=function(l,a,r){this._hitLimit||(this._data+=E.utf32ToString(l,a,r),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},t.prototype.unhook=function(l){var a;return this._hitLimit?a=!1:l&&(a=this._handler(this._data,this._params||new I.Params)),this._params=void 0,this._data="",this._hitLimit=!1,a},t}();N.DcsHandler=s},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.removeTerminalFromCache=N.acquireCharAtlas=void 0;var E=L(26),I=L(43),o=[];N.acquireCharAtlas=function(m,f,s,t,l){for(var a=E.generateConfig(t,l,m,s),r=0;r<o.length;r++){var u=(e=o[r]).ownedBy.indexOf(f);if(u>=0){if(E.configEquals(e.config,a))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),o.splice(r,1)):e.ownedBy.splice(u,1);break}}for(r=0;r<o.length;r++){var e=o[r];if(E.configEquals(e.config,a))return e.ownedBy.push(f),e.atlas}var n={atlas:new I.DynamicCharAtlas(document,a),config:a,ownedBy:[f]};return o.push(n),n.atlas},N.removeTerminalFromCache=function(m){for(var f=0;f<o.length;f++){var s=o[f].ownedBy.indexOf(m);if(s!==-1){o[f].ownedBy.length===1?(o[f].atlas.dispose(),o.splice(f,1)):o[f].ownedBy.splice(s,1);break}}}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.is256Color=N.configEquals=N.generateConfig=void 0;var E=L(3);N.generateConfig=function(I,o,m,f){var s={foreground:f.foreground,background:f.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:f.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:I,scaledCharHeight:o,fontFamily:m.fontFamily,fontSize:m.fontSize,fontWeight:m.fontWeight,fontWeightBold:m.fontWeightBold,allowTransparency:m.allowTransparency,colors:s}},N.configEquals=function(I,o){for(var m=0;m<I.colors.ansi.length;m++)if(I.colors.ansi[m].rgba!==o.colors.ansi[m].rgba)return!1;return I.devicePixelRatio===o.devicePixelRatio&&I.fontFamily===o.fontFamily&&I.fontSize===o.fontSize&&I.fontWeight===o.fontWeight&&I.fontWeightBold===o.fontWeightBold&&I.allowTransparency===o.allowTransparency&&I.scaledCharWidth===o.scaledCharWidth&&I.scaledCharHeight===o.scaledCharHeight&&I.colors.foreground===o.colors.foreground&&I.colors.background===o.colors.background},N.is256Color=function(I){return I<E.DEFAULT_COLOR}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.ColorManager=N.DEFAULT_ANSI_COLORS=void 0;var E=L(10),I=L(45),o=E.css.toColor("#ffffff"),m=E.css.toColor("#000000"),f=E.css.toColor("#ffffff"),s=E.css.toColor("#000000"),t={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};N.DEFAULT_ANSI_COLORS=function(){for(var a=[E.css.toColor("#2e3436"),E.css.toColor("#cc0000"),E.css.toColor("#4e9a06"),E.css.toColor("#c4a000"),E.css.toColor("#3465a4"),E.css.toColor("#75507b"),E.css.toColor("#06989a"),E.css.toColor("#d3d7cf"),E.css.toColor("#555753"),E.css.toColor("#ef2929"),E.css.toColor("#8ae234"),E.css.toColor("#fce94f"),E.css.toColor("#729fcf"),E.css.toColor("#ad7fa8"),E.css.toColor("#34e2e2"),E.css.toColor("#eeeeec")],r=[0,95,135,175,215,255],u=0;u<216;u++){var e=r[u/36%6|0],n=r[u/6%6|0],i=r[u%6];a.push({css:E.channels.toCss(e,n,i),rgba:E.channels.toRgba(e,n,i)})}for(u=0;u<24;u++){var c=8+10*u;a.push({css:E.channels.toCss(c,c,c),rgba:E.channels.toRgba(c,c,c)})}return a}();var l=function(){function a(r,u){this.allowTransparency=u;var e=r.createElement("canvas");e.width=1,e.height=1;var n=e.getContext("2d");if(!n)throw new Error("Could not get rendering context");this._ctx=n,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new I.ColorContrastCache,this.colors={foreground:o,background:m,cursor:f,cursorAccent:s,selectionTransparent:t,selectionOpaque:E.color.blend(m,t),ansi:N.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return a.prototype.onOptionsChange=function(r){r==="minimumContrastRatio"&&this._contrastCache.clear()},a.prototype.setTheme=function(r){(r===void 0&&(r={}),this.colors.foreground=this._parseColor(r.foreground,o),this.colors.background=this._parseColor(r.background,m),this.colors.cursor=this._parseColor(r.cursor,f,!0),this.colors.cursorAccent=this._parseColor(r.cursorAccent,s,!0),this.colors.selectionTransparent=this._parseColor(r.selection,t,!0),this.colors.selectionOpaque=E.color.blend(this.colors.background,this.colors.selectionTransparent),E.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=E.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(r.black,N.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(r.red,N.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(r.green,N.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(r.yellow,N.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(r.blue,N.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(r.magenta,N.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(r.cyan,N.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(r.white,N.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(r.brightBlack,N.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(r.brightRed,N.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(r.brightGreen,N.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(r.brightYellow,N.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(r.brightBlue,N.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(r.brightMagenta,N.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(r.brightCyan,N.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(r.brightWhite,N.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},a.prototype._parseColor=function(r,u,e){if(e===void 0&&(e=this.allowTransparency),r===void 0)return u;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=r,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+r+" is invalid using fallback "+u.css),u;this._ctx.fillRect(0,0,1,1);var n=this._ctx.getImageData(0,0,1,1).data;if(n[3]!==255){if(!e)return console.warn("Color: "+r+" is using transparency, but allowTransparency is false. Using fallback "+u.css+"."),u;var i=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(v){return Number(v)}),c=i[0],d=i[1],h=i[2],p=i[3],g=Math.round(255*p);return{rgba:E.channels.toRgba(c,d,h,g),css:r}}return{css:this._ctx.fillStyle,rgba:E.channels.toRgba(n[0],n[1],n[2],n[3])}},a}();N.ColorManager=l},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.throwIfFalsy=void 0,N.throwIfFalsy=function(E){if(!E)throw new Error("value must not be falsy");return E}},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(a,r){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,e){u.__proto__=e}||function(u,e){for(var n in e)e.hasOwnProperty(n)&&(u[n]=e[n])})(a,r)},function(l,a){function r(){this.constructor=l}E(l,a),l.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)});Object.defineProperty(N,"__esModule",{value:!0}),N.CharacterJoinerRegistry=N.JoinedCellData=void 0;var o=L(6),m=L(3),f=L(4),s=function(l){function a(r,u,e){var n=l.call(this)||this;return n.content=0,n.combinedData="",n.fg=r.fg,n.bg=r.bg,n.combinedData=u,n._width=e,n}return I(a,l),a.prototype.isCombined=function(){return 2097152},a.prototype.getWidth=function(){return this._width},a.prototype.getChars=function(){return this.combinedData},a.prototype.getCode=function(){return 2097151},a.prototype.setFromCharData=function(r){throw new Error("not implemented")},a.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},a}(o.AttributeData);N.JoinedCellData=s;var t=function(){function l(a){this._bufferService=a,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new f.CellData}return l.prototype.registerCharacterJoiner=function(a){var r={id:this._nextCharacterJoinerId++,handler:a};return this._characterJoiners.push(r),r.id},l.prototype.deregisterCharacterJoiner=function(a){for(var r=0;r<this._characterJoiners.length;r++)if(this._characterJoiners[r].id===a)return this._characterJoiners.splice(r,1),!0;return!1},l.prototype.getJoinedCharacters=function(a){if(this._characterJoiners.length===0)return[];var r=this._bufferService.buffer.lines.get(a);if(!r||r.length===0)return[];for(var u=[],e=r.translateToString(!0),n=0,i=0,c=0,d=r.getFg(0),h=r.getBg(0),p=0;p<r.getTrimmedLength();p++)if(r.loadCell(p,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==d||this._workCell.bg!==h){if(p-n>1)for(var g=this._getJoinedRanges(e,c,i,r,n),v=0;v<g.length;v++)u.push(g[v]);n=p,c=i,d=this._workCell.fg,h=this._workCell.bg}i+=this._workCell.getChars().length||m.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-n>1)for(g=this._getJoinedRanges(e,c,i,r,n),v=0;v<g.length;v++)u.push(g[v]);return u},l.prototype._getJoinedRanges=function(a,r,u,e,n){for(var i=a.substring(r,u),c=this._characterJoiners[0].handler(i),d=1;d<this._characterJoiners.length;d++)for(var h=this._characterJoiners[d].handler(i),p=0;p<h.length;p++)l._mergeRanges(c,h[p]);return this._stringRangesToCellRanges(c,e,n),c},l.prototype._stringRangesToCellRanges=function(a,r,u){var e=0,n=!1,i=0,c=a[e];if(c){for(var d=u;d<this._bufferService.cols;d++){var h=r.getWidth(d),p=r.getString(d).length||m.WHITESPACE_CELL_CHAR.length;if(h!==0){if(!n&&c[0]<=i&&(c[0]=d,n=!0),c[1]<=i){if(c[1]=d,!(c=a[++e]))break;c[0]<=i?(c[0]=d,n=!0):n=!1}i+=p}}c&&(c[1]=this._bufferService.cols)}},l._mergeRanges=function(a,r){for(var u=!1,e=0;e<a.length;e++){var n=a[e];if(u){if(r[1]<=n[0])return a[e-1][1]=r[1],a;if(r[1]<=n[1])return a[e-1][1]=Math.max(r[1],n[1]),a.splice(e,1),a;a.splice(e,1),e--}else{if(r[1]<=n[0])return a.splice(e,0,r),a;if(r[1]<=n[1])return n[0]=Math.min(r[0],n[0]),a;r[0]<n[1]&&(n[0]=Math.min(r[0],n[0]),u=!0)}}return u?a[a.length-1][1]=r[1]:a.push(r),a},l}();N.CharacterJoinerRegistry=t},function(D,N,L){"use strict";function E(I,o){var m=o.getBoundingClientRect();return[I.clientX-m.left,I.clientY-m.top]}Object.defineProperty(N,"__esModule",{value:!0}),N.getRawByteCoords=N.getCoords=N.getCoordsRelativeToElement=void 0,N.getCoordsRelativeToElement=E,N.getCoords=function(I,o,m,f,s,t,l,a){if(s){var r=E(I,o);if(r)return r[0]=Math.ceil((r[0]+(a?t/2:0))/t),r[1]=Math.ceil(r[1]/l),r[0]=Math.min(Math.max(r[0],1),m+(a?1:0)),r[1]=Math.min(Math.max(r[1],1),f),r}},N.getRawByteCoords=function(I){if(I)return{x:I[0]+32,y:I[1]+32}}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.RenderDebouncer=void 0;var E=function(){function I(o){this._renderCallback=o}return I.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},I.prototype.refresh=function(o,m,f){var s=this;this._rowCount=f,o=o!==void 0?o:0,m=m!==void 0?m:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,m):m,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return s._innerRefresh()}))},I.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var o=Math.max(this._rowStart,0),m=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(o,m)}},I}();N.RenderDebouncer=E},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(f,s){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,l){t.__proto__=l}||function(t,l){for(var a in l)l.hasOwnProperty(a)&&(t[a]=l[a])})(f,s)},function(m,f){function s(){this.constructor=m}E(m,f),m.prototype=f===null?Object.create(f):(s.prototype=f.prototype,new s)});Object.defineProperty(N,"__esModule",{value:!0}),N.ScreenDprMonitor=void 0;var o=function(m){function f(){var s=m!==null&&m.apply(this,arguments)||this;return s._currentDevicePixelRatio=window.devicePixelRatio,s}return I(f,m),f.prototype.setListener=function(s){var t=this;this._listener&&this.clearListener(),this._listener=s,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},f.prototype.dispose=function(){m.prototype.dispose.call(this),this.clearListener()},f.prototype._updateDpr=function(){var s;this._outerListener&&((s=this._resolutionMediaMatchList)===null||s===void 0||s.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},f.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)},f}(L(2).Disposable);N.ScreenDprMonitor=o},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.clone=void 0,N.clone=function E(I,o){if(o===void 0&&(o=5),typeof I!="object")return I;var m=Array.isArray(I)?[]:{};for(var f in I)m[f]=o<=1?I[f]:I[f]?E(I[f],o-1):I[f];return m}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.Terminal=void 0;var E=L(4),I=L(35),o=L(18),m=L(0),f=L(83),s=function(){function e(n){this._core=new I.Terminal(n),this._addonManager=new f.AddonManager}return e.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(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new r(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new u(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._checkProposedApi(),new l(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(n,i){this._verifyIntegers(n,i),this._core.resize(n,i)},e.prototype.open=function(n){this._core.open(n)},e.prototype.attachCustomKeyEventHandler=function(n){this._core.attachCustomKeyEventHandler(n)},e.prototype.registerLinkMatcher=function(n,i,c){return this._checkProposedApi(),this._core.registerLinkMatcher(n,i,c)},e.prototype.deregisterLinkMatcher=function(n){this._checkProposedApi(),this._core.deregisterLinkMatcher(n)},e.prototype.registerLinkProvider=function(n){return this._checkProposedApi(),this._core.registerLinkProvider(n)},e.prototype.registerCharacterJoiner=function(n){return this._checkProposedApi(),this._core.registerCharacterJoiner(n)},e.prototype.deregisterCharacterJoiner=function(n){this._checkProposedApi(),this._core.deregisterCharacterJoiner(n)},e.prototype.registerMarker=function(n){return this._checkProposedApi(),this._verifyIntegers(n),this._core.addMarker(n)},e.prototype.addMarker=function(n){return this.registerMarker(n)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(n,i,c){this._verifyIntegers(n,i,c),this._core.select(n,i,c)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(n,i){this._verifyIntegers(n,i),this._core.selectLines(n,i)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(n){this._verifyIntegers(n),this._core.scrollLines(n)},e.prototype.scrollPages=function(n){this._verifyIntegers(n),this._core.scrollPages(n)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(n){this._verifyIntegers(n),this._core.scrollToLine(n)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(n,i){this._core.write(n,i)},e.prototype.writeUtf8=function(n,i){this._core.write(n,i)},e.prototype.writeln=function(n,i){this._core.write(n),this._core.write(`\r
|
|
|
`,i)},e.prototype.paste=function(n){this._core.paste(n)},e.prototype.getOption=function(n){return this._core.optionsService.getOption(n)},e.prototype.setOption=function(n,i){this._core.optionsService.setOption(n,i)},e.prototype.refresh=function(n,i){this._verifyIntegers(n,i),this._core.refresh(n,i)},e.prototype.reset=function(){this._core.reset()},e.prototype.loadAddon=function(n){return this._addonManager.loadAddon(this,n)},Object.defineProperty(e,"strings",{get:function(){return o},enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var c=0,d=n;c<d.length;c++){var h=d[c];if(h===1/0||isNaN(h)||h%1!=0)throw new Error("This API only accepts integers")}},e}();N.Terminal=s;var t=function(){function e(n,i){this._buffer=n,this.type=i}return e.prototype.init=function(n){return this._buffer=n,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(n){var i=this._buffer.lines.get(n);if(i)return new a(i)},e.prototype.getNullCell=function(){return new E.CellData},e}(),l=function(){function e(n){var i=this;this._buffers=n,this._onBufferChange=new m.EventEmitter,this._normal=new t(this._buffers.normal,"normal"),this._alternate=new t(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return i._onBufferChange.fire(i.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.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(e.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),e}(),a=function(){function e(n){this._line=n}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(n,i){if(!(n<0||n>=this._line.length))return i?(this._line.loadCell(n,i),i):this._line.loadCell(n,new E.CellData)},e.prototype.translateToString=function(n,i,c){return this._line.translateToString(n,i,c)},e}(),r=function(){function e(n){this._core=n}return e.prototype.registerCsiHandler=function(n,i){return this._core.addCsiHandler(n,function(c){return i(c.toArray())})},e.prototype.addCsiHandler=function(n,i){return this.registerCsiHandler(n,i)},e.prototype.registerDcsHandler=function(n,i){return this._core.addDcsHandler(n,function(c,d){return i(c,d.toArray())})},e.prototype.addDcsHandler=function(n,i){return this.registerDcsHandler(n,i)},e.prototype.registerEscHandler=function(n,i){return this._core.addEscHandler(n,i)},e.prototype.addEscHandler=function(n,i){return this.registerEscHandler(n,i)},e.prototype.registerOscHandler=function(n,i){return this._core.addOscHandler(n,i)},e.prototype.addOscHandler=function(n,i){return this.registerOscHandler(n,i)},e}(),u=function(){function e(n){this._core=n}return e.prototype.register=function(n){this._core.unicodeService.register(n)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(i){this._core.unicodeService.activeVersion=i},enumerable:!1,configurable:!0}),e}()},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(R,B){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,U){P.__proto__=U}||function(P,U){for(var j in U)U.hasOwnProperty(j)&&(P[j]=U[j])})(R,B)},function(k,R){function B(){this.constructor=k}E(k,R),k.prototype=R===null?Object.create(R):(B.prototype=R.prototype,new B)});Object.defineProperty(N,"__esModule",{value:!0}),N.Terminal=void 0;var o=L(36),m=L(37),f=L(38),s=L(12),t=L(19),l=L(40),a=L(50),r=L(51),u=L(11),e=L(7),n=L(18),i=L(54),c=L(55),d=L(56),h=L(57),p=L(59),g=L(0),v=L(16),A=L(27),x=L(60),b=L(5),w=L(61),S=L(62),T=L(63),C=L(64),O=L(65),_=typeof window!="undefined"?window.document:null,M=function(k){function R(B){B===void 0&&(B={});var P=k.call(this,B)||this;return P.browser=u,P._keyDownHandled=!1,P._onCursorMove=new g.EventEmitter,P._onKey=new g.EventEmitter,P._onRender=new g.EventEmitter,P._onSelectionChange=new g.EventEmitter,P._onTitleChange=new g.EventEmitter,P._onFocus=new g.EventEmitter,P._onBlur=new g.EventEmitter,P._onA11yCharEmitter=new g.EventEmitter,P._onA11yTabEmitter=new g.EventEmitter,P._setup(),P.linkifier=P._instantiationService.createInstance(a.Linkifier),P.linkifier2=P.register(P._instantiationService.createInstance(T.Linkifier2)),P.register(P._inputHandler.onRequestBell(function(){return P.bell()})),P.register(P._inputHandler.onRequestRefreshRows(function(U,j){return P.refresh(U,j)})),P.register(P._inputHandler.onRequestReset(function(){return P.reset()})),P.register(P._inputHandler.onRequestScroll(function(U,j){return P.scroll(U,j||void 0)})),P.register(P._inputHandler.onRequestWindowsOptionsReport(function(U){return P._reportWindowsOptions(U)})),P.register(g.forwardEvent(P._inputHandler.onCursorMove,P._onCursorMove)),P.register(g.forwardEvent(P._inputHandler.onTitleChange,P._onTitleChange)),P.register(g.forwardEvent(P._inputHandler.onA11yChar,P._onA11yCharEmitter)),P.register(g.forwardEvent(P._inputHandler.onA11yTab,P._onA11yTabEmitter)),P.register(P._bufferService.onResize(function(U){return P._afterResize(U.cols,U.rows)})),P}return I(R,k),Object.defineProperty(R.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),R.prototype.dispose=function(){var B,P,U;this._isDisposed||(k.prototype.dispose.call(this),(B=this._renderService)===null||B===void 0||B.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(U=(P=this.element)===null||P===void 0?void 0:P.parentNode)===null||U===void 0||U.removeChild(this.element))},R.prototype._setup=function(){k.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(R.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),R.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},R.prototype._updateOptions=function(B){var P,U,j,H;switch(k.prototype._updateOptions.call(this,B),B){case"fontFamily":case"fontSize":(P=this._renderService)===null||P===void 0||P.clear(),(U=this._charSizeService)===null||U===void 0||U.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 d.AccessibilityManager(this,this._renderService)):((H=this._accessibilityManager)===null||H===void 0||H.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},R.prototype._onTextAreaFocus=function(B){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(s.C0.ESC+"[I"),this.updateCursorStyle(B),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},R.prototype.blur=function(){var B;return(B=this.textarea)===null||B===void 0?void 0:B.blur()},R.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(s.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},R.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var B=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),P=this._bufferService.buffer.y*B,U=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=U+"px",this.textarea.style.top=P+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=B+"px",this.textarea.style.lineHeight=B+"px",this.textarea.style.zIndex="-5"}},R.prototype._initGlobal=function(){var B=this;this._bindKeys(),this.register(e.addDisposableDomListener(this.element,"copy",function(U){B.hasSelection()&&f.copyHandler(U,B._selectionService)}));var P=function(j){return f.handlePasteEvent(j,B.textarea,B._coreService)};this.register(e.addDisposableDomListener(this.textarea,"paste",P)),this.register(e.addDisposableDomListener(this.element,"paste",P)),u.isFirefox?this.register(e.addDisposableDomListener(this.element,"mousedown",function(U){U.button===2&&f.rightClickHandler(U,B.textarea,B.screenElement,B._selectionService,B.options.rightClickSelectsWord)})):this.register(e.addDisposableDomListener(this.element,"contextmenu",function(U){f.rightClickHandler(U,B.textarea,B.screenElement,B._selectionService,B.options.rightClickSelectsWord)})),u.isLinux&&this.register(e.addDisposableDomListener(this.element,"auxclick",function(U){U.button===1&&f.moveTextAreaUnderMouseCursor(U,B.textarea,B.screenElement)}))},R.prototype._bindKeys=function(){var B=this;this.register(e.addDisposableDomListener(this.textarea,"keyup",function(P){return B._keyUp(P)},!0)),this.register(e.addDisposableDomListener(this.textarea,"keydown",function(P){return B._keyDown(P)},!0)),this.register(e.addDisposableDomListener(this.textarea,"keypress",function(P){return B._keyPress(P)},!0)),this.register(e.addDisposableDomListener(this.textarea,"compositionstart",function(){return B._compositionHelper.compositionstart()})),this.register(e.addDisposableDomListener(this.textarea,"compositionupdate",function(P){return B._compositionHelper.compositionupdate(P)})),this.register(e.addDisposableDomListener(this.textarea,"compositionend",function(){return B._compositionHelper.compositionend()})),this.register(this.onRender(function(){return B._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(P){return B._queueLinkification(P.start,P.end)}))},R.prototype.open=function(B){var P=this;if(!B)throw new Error("Terminal requires a parent element.");_.body.contains(B)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=B.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"),B.appendChild(this.element);var U=_.createDocumentFragment();this._viewportElement=_.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),U.appendChild(this._viewportElement),this._viewportScrollArea=_.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=_.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=_.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),U.appendChild(this.screenElement),this.textarea=_.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",n.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(e.addDisposableDomListener(this.textarea,"focus",function(W){return P._onTextAreaFocus(W)})),this.register(e.addDisposableDomListener(this.textarea,"blur",function(){return P._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var j=this._instantiationService.createInstance(C.CoreBrowserService,this.textarea);this._instantiationService.setService(b.ICoreBrowserService,j),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(b.ICharSizeService,this._charSizeService),this._compositionView=_.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(o.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(U),this._theme=this.options.theme||this._theme,this._colorManager=new A.ColorManager(_,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(W){return P._colorManager.onOptionsChange(W)})),this._colorManager.setTheme(this._theme);var H=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(x.RenderService,H,this.rows,this.screenElement)),this._instantiationService.setService(b.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(W){return P._onRender.fire(W)})),this.onResize(function(W){return P._renderService.resize(W.cols,W.rows)}),this._soundService=this._instantiationService.createInstance(i.SoundService),this._instantiationService.setService(b.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(S.MouseService),this._instantiationService.setService(b.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(m.Viewport,function(W,G){return P.scrollLines(W,G)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return P.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){P._renderService.onCursorMove(),P._syncTextArea()})),this.register(this.onResize(function(){return P._renderService.onResize(P.cols,P.rows)})),this.register(this.onBlur(function(){return P._renderService.onBlur()})),this.register(this.onFocus(function(){return P._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return P.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(r.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(b.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(W){return P.scrollLines(W.amount,W.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return P._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(W){return P._renderService.onSelectionChanged(W.start,W.end,W.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(W){P.textarea.value=W,P.textarea.focus(),P.textarea.select()})),this.register(this.onScroll(function(){P.viewport.syncScrollArea(),P._selectionService.refresh()})),this.register(e.addDisposableDomListener(this._viewportElement,"scroll",function(){return P._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(c.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return P._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(e.addDisposableDomListener(this.element,"mousedown",function(W){return P._selectionService.onMouseDown(W)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new d.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},R.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(l.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(h.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},R.prototype._setTheme=function(B){var P,U,j;this._theme=B,(P=this._colorManager)===null||P===void 0||P.setTheme(B),(U=this._renderService)===null||U===void 0||U.setColors(this._colorManager.colors),(j=this.viewport)===null||j===void 0||j.onThemeChange(this._colorManager.colors)},R.prototype.bindMouse=function(){var B=this,P=this,U=this.element;function j(Y){var Q,oe,ue=P._mouseService.getRawByteCoords(Y,P.screenElement,P.cols,P.rows);if(!ue)return!1;switch(Y.overrideType||Y.type){case"mousemove":oe=32,Y.buttons===void 0?(Q=3,Y.button!==void 0&&(Q=Y.button<3?Y.button:3)):Q=1&Y.buttons?0:4&Y.buttons?1:2&Y.buttons?2:3;break;case"mouseup":oe=0,Q=Y.button<3?Y.button:3;break;case"mousedown":oe=1,Q=Y.button<3?Y.button:3;break;case"wheel":Y.deltaY!==0&&(oe=Y.deltaY<0?0:1),Q=4;break;default:return!1}return!(oe===void 0||Q===void 0||Q>4)&&P._coreMouseService.triggerMouseEvent({col:ue.x-33,row:ue.y-33,button:Q,action:oe,ctrl:Y.ctrlKey,alt:Y.altKey,shift:Y.shiftKey})}var H={mouseup:null,wheel:null,mousedrag:null,mousemove:null},W=function(Q){return j(Q),Q.buttons||(B._document.removeEventListener("mouseup",H.mouseup),H.mousedrag&&B._document.removeEventListener("mousemove",H.mousedrag)),B.cancel(Q)},G=function(Q){return j(Q),Q.preventDefault(),B.cancel(Q)},V=function(Q){Q.buttons&&j(Q)},Z=function(Q){Q.buttons||j(Q)};this.register(this._coreMouseService.onProtocolChange(function(Y){Y?(B.optionsService.options.logLevel==="debug"&&B._logService.debug("Binding to mouse events:",B._coreMouseService.explainEvents(Y)),B.element.classList.add("enable-mouse-events"),B._selectionService.disable()):(B._logService.debug("Unbinding from mouse events."),B.element.classList.remove("enable-mouse-events"),B._selectionService.enable()),8&Y?H.mousemove||(U.addEventListener("mousemove",Z),H.mousemove=Z):(U.removeEventListener("mousemove",H.mousemove),H.mousemove=null),16&Y?H.wheel||(U.addEventListener("wheel",G,{passive:!1}),H.wheel=G):(U.removeEventListener("wheel",H.wheel),H.wheel=null),2&Y?H.mouseup||(H.mouseup=W):(B._document.removeEventListener("mouseup",H.mouseup),H.mouseup=null),4&Y?H.mousedrag||(H.mousedrag=V):(B._document.removeEventListener("mousemove",H.mousedrag),H.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(e.addDisposableDomListener(U,"mousedown",function(Y){if(Y.preventDefault(),B.focus(),B._coreMouseService.areMouseEventsActive&&!B._selectionService.shouldForceSelection(Y))return j(Y),H.mouseup&&B._document.addEventListener("mouseup",H.mouseup),H.mousedrag&&B._document.addEventListener("mousemove",H.mousedrag),B.cancel(Y)})),this.register(e.addDisposableDomListener(U,"wheel",function(Y){if(!H.wheel){if(!B.buffer.hasScrollback){var Q=B.viewport.getLinesScrolled(Y);if(Q===0)return;for(var oe=s.C0.ESC+(B._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Y.deltaY<0?"A":"B"),ue="",Le=0;Le<Math.abs(Q);Le++)ue+=oe;B._coreService.triggerDataEvent(ue,!0)}}},{passive:!0})),this.register(e.addDisposableDomListener(U,"wheel",function(Y){if(!H.wheel)return B.viewport.onWheel(Y)?void 0:B.cancel(Y)},{passive:!1})),this.register(e.addDisposableDomListener(U,"touchstart",function(Y){if(!B._coreMouseService.areMouseEventsActive)return B.viewport.onTouchStart(Y),B.cancel(Y)},{passive:!0})),this.register(e.addDisposableDomListener(U,"touchmove",function(Y){if(!B._coreMouseService.areMouseEventsActive)return B.viewport.onTouchMove(Y)?void 0:B.cancel(Y)},{passive:!1}))},R.prototype.refresh=function(B,P){var U;(U=this._renderService)===null||U===void 0||U.refreshRows(B,P)},R.prototype._queueLinkification=function(B,P){var U;(U=this.linkifier)===null||U===void 0||U.linkifyRows(B,P)},R.prototype.updateCursorStyle=function(B){this._selectionService&&this._selectionService.shouldColumnSelect(B)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},R.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},R.prototype.scrollLines=function(B,P){k.prototype.scrollLines.call(this,B,P),this.refresh(0,this.rows-1)},R.prototype.paste=function(B){f.paste(B,this.textarea,this._coreService)},R.prototype.attachCustomKeyEventHandler=function(B){this._customKeyEventHandler=B},R.prototype.registerLinkMatcher=function(B,P,U){var j=this.linkifier.registerLinkMatcher(B,P,U);return this.refresh(0,this.rows-1),j},R.prototype.deregisterLinkMatcher=function(B){this.linkifier.deregisterLinkMatcher(B)&&this.refresh(0,this.rows-1)},R.prototype.registerLinkProvider=function(B){return this.linkifier2.registerLinkProvider(B)},R.prototype.registerCharacterJoiner=function(B){var P=this._renderService.registerCharacterJoiner(B);return this.refresh(0,this.rows-1),P},R.prototype.deregisterCharacterJoiner=function(B){this._renderService.deregisterCharacterJoiner(B)&&this.refresh(0,this.rows-1)},Object.defineProperty(R.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),R.prototype.addMarker=function(B){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+B)},R.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},R.prototype.select=function(B,P,U){this._selectionService.setSelection(B,P,U)},R.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},R.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]}},R.prototype.clearSelection=function(){var B;(B=this._selectionService)===null||B===void 0||B.clearSelection()},R.prototype.selectAll=function(){var B;(B=this._selectionService)===null||B===void 0||B.selectAll()},R.prototype.selectLines=function(B,P){var U;(U=this._selectionService)===null||U===void 0||U.selectLines(B,P)},R.prototype._keyDown=function(B){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1)return!1;if(!this._compositionHelper.keydown(B))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var P=p.evaluateKeyboardEvent(B,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(B),P.type===3||P.type===2){var U=this.rows-1;return this.scrollLines(P.type===2?-U:U),this.cancel(B,!0)}return P.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,B)||(P.cancel&&this.cancel(B,!0),!P.key||(P.key!==s.C0.ETX&&P.key!==s.C0.CR||(this.textarea.value=""),this._onKey.fire({key:P.key,domEvent:B}),this._showCursor(),this._coreService.triggerDataEvent(P.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(B,!0)))},R.prototype._isThirdLevelShift=function(B,P){var U=B.isMac&&!this.options.macOptionIsMeta&&P.altKey&&!P.ctrlKey&&!P.metaKey||B.isWindows&&P.altKey&&P.ctrlKey&&!P.metaKey;return P.type==="keypress"?U:U&&(!P.keyCode||P.keyCode>47)},R.prototype._keyUp=function(B){this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1||(function(P){return P.keyCode===16||P.keyCode===17||P.keyCode===18}(B)||this.focus(),this.updateCursorStyle(B))},R.prototype._keyPress=function(B){var P;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1)return!1;if(this.cancel(B),B.charCode)P=B.charCode;else if(B.which===null||B.which===void 0)P=B.keyCode;else{if(B.which===0||B.charCode===0)return!1;P=B.which}return!(!P||(B.altKey||B.ctrlKey||B.metaKey)&&!this._isThirdLevelShift(this.browser,B))&&(P=String.fromCharCode(P),this._onKey.fire({key:P,domEvent:B}),this._showCursor(),this._coreService.triggerDataEvent(P,!0),!0)},R.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},R.prototype.resize=function(B,P){B!==this.cols||P!==this.rows?k.prototype.resize.call(this,B,P):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},R.prototype._afterResize=function(B,P){var U,j;(U=this._charSizeService)===null||U===void 0||U.measure(),(j=this.viewport)===null||j===void 0||j.syncScrollArea(!0)},R.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 B=1;B<this.rows;B++)this.buffer.lines.push(this.buffer.getBlankLine(v.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},R.prototype.reset=function(){var B,P;this.options.rows=this.rows,this.options.cols=this.cols;var U=this._customKeyEventHandler;this._setup(),k.prototype.reset.call(this),(B=this._selectionService)===null||B===void 0||B.reset(),this._customKeyEventHandler=U,this.refresh(0,this.rows-1),(P=this.viewport)===null||P===void 0||P.syncScrollArea()},R.prototype._reportWindowsOptions=function(B){if(this._renderService)switch(B){case t.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var P=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),U=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(s.C0.ESC+"[4;"+U+";"+P+"t");break;case t.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var j=this._renderService.dimensions.scaledCellWidth.toFixed(0),H=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(s.C0.ESC+"[6;"+H+";"+j+"t")}},R.prototype.cancel=function(B,P){if(this.options.cancelEvents||P)return B.preventDefault(),B.stopPropagation(),!1},R.prototype._visualBell=function(){return!1},R.prototype._soundBell=function(){return this.options.bellStyle==="sound"},R}(O.CoreTerminal);N.Terminal=M},function(D,N,L){"use strict";var E=this&&this.__decorate||function(s,t,l,a){var r,u=arguments.length,e=u<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,l):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(s,t,l,a);else for(var n=s.length-1;n>=0;n--)(r=s[n])&&(e=(u<3?r(e):u>3?r(t,l,e):r(t,l))||e);return u>3&&e&&Object.defineProperty(t,l,e),e},I=this&&this.__param||function(s,t){return function(l,a){t(l,a,s)}};Object.defineProperty(N,"__esModule",{value:!0}),N.CompositionHelper=void 0;var o=L(5),m=L(1),f=function(){function s(t,l,a,r,u,e){this._textarea=t,this._compositionView=l,this._bufferService=a,this._optionsService=r,this._charSizeService=u,this._coreService=e,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(s.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),s.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},s.prototype.compositionupdate=function(t){var l=this;this._compositionView.textContent=t.data,this.updateCompositionElements(),setTimeout(function(){l._compositionPosition.end=l._textarea.value.length},0)},s.prototype.compositionend=function(){this._finalizeComposition(!0)},s.prototype.keydown=function(t){if(this._isComposing||this._isSendingComposition){if(t.keyCode===229)return!1;if(t.keyCode===16||t.keyCode===17||t.keyCode===18)return!1;this._finalizeComposition(!1)}return t.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},s.prototype._finalizeComposition=function(t){var l=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,t){var a={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(l._isSendingComposition){l._isSendingComposition=!1;var u=void 0;u=l._isComposing?l._textarea.value.substring(a.start,a.end):l._textarea.value.substring(a.start),l._coreService.triggerDataEvent(u,!0)}},0)}else{this._isSendingComposition=!1;var r=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(r,!0)}},s.prototype._handleAnyTextareaChanges=function(){var t=this,l=this._textarea.value;setTimeout(function(){if(!t._isComposing){var a=t._textarea.value.replace(l,"");a.length>0&&t._coreService.triggerDataEvent(a,!0)}},0)},s.prototype.updateCompositionElements=function(t){var l=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var a=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),r=this._bufferService.buffer.y*a,u=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=u+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=a+"px",this._compositionView.style.lineHeight=a+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var e=this._compositionView.getBoundingClientRect();this._textarea.style.left=u+"px",this._textarea.style.top=r+"px",this._textarea.style.width=e.width+"px",this._textarea.style.height=e.height+"px",this._textarea.style.lineHeight=e.height+"px"}t||setTimeout(function(){return l.updateCompositionElements(!0)},0)}},s=E([I(2,m.IBufferService),I(3,m.IOptionsService),I(4,o.ICharSizeService),I(5,m.ICoreService)],s)}();N.CompositionHelper=f},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(u,e){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])})(u,e)},function(r,u){function e(){this.constructor=r}E(r,u),r.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)}),o=this&&this.__decorate||function(r,u,e,n){var i,c=arguments.length,d=c<3?u:n===null?n=Object.getOwnPropertyDescriptor(u,e):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,u,e,n);else for(var h=r.length-1;h>=0;h--)(i=r[h])&&(d=(c<3?i(d):c>3?i(u,e,d):i(u,e))||d);return c>3&&d&&Object.defineProperty(u,e,d),d},m=this&&this.__param||function(r,u){return function(e,n){u(e,n,r)}};Object.defineProperty(N,"__esModule",{value:!0}),N.Viewport=void 0;var f=L(2),s=L(7),t=L(5),l=L(1),a=function(r){function u(e,n,i,c,d,h,p){var g=r.call(this)||this;return g._scrollLines=e,g._viewportElement=n,g._scrollArea=i,g._bufferService=c,g._optionsService=d,g._charSizeService=h,g._renderService=p,g.scrollBarWidth=0,g._currentRowHeight=0,g._lastRecordedBufferLength=0,g._lastRecordedViewportHeight=0,g._lastRecordedBufferHeight=0,g._lastTouchY=0,g._lastScrollTop=0,g._wheelPartialScroll=0,g._refreshAnimationFrame=null,g._ignoreNextScrollEvent=!1,g.scrollBarWidth=g._viewportElement.offsetWidth-g._scrollArea.offsetWidth||15,g.register(s.addDisposableDomListener(g._viewportElement,"scroll",g._onScroll.bind(g))),setTimeout(function(){return g.syncScrollArea()},0),g}return I(u,r),u.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},u.prototype._refresh=function(e){var n=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return n._innerRefresh()}))},u.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var n=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==n&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=n),this._refreshAnimationFrame=null},u.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var n=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===n&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)}else this._refresh(e)},u.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var n=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(n,!0)}},u.prototype._bubbleScroll=function(e,n){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(n<0&&this._viewportElement.scrollTop!==0||n>0&&i<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},u.prototype.onWheel=function(e){var n=this._getPixelsScrolled(e);return n!==0&&(this._viewportElement.scrollTop+=n,this._bubbleScroll(e,n))},u.prototype._getPixelsScrolled=function(e){if(e.deltaY===0)return 0;var n=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?n*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=this._currentRowHeight*this._bufferService.rows),n},u.prototype.getLinesScrolled=function(e){if(e.deltaY===0)return 0;var n=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(n/=this._currentRowHeight+0,this._wheelPartialScroll+=n,n=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=this._bufferService.rows),n},u.prototype._applyScrollModifier=function(e,n){var i=this._optionsService.options.fastScrollModifier;return i==="alt"&&n.altKey||i==="ctrl"&&n.ctrlKey||i==="shift"&&n.shiftKey?e*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:e*this._optionsService.options.scrollSensitivity},u.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},u.prototype.onTouchMove=function(e){var n=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,n!==0&&(this._viewportElement.scrollTop+=n,this._bubbleScroll(e,n))},u=o([m(3,l.IBufferService),m(4,l.IOptionsService),m(5,t.ICharSizeService),m(6,t.IRenderService)],u)}(f.Disposable);N.Viewport=a},function(D,N,L){"use strict";function E(f){return f.replace(/\r?\n/g,"\r")}function I(f,s){return s?"[200~"+f+"[201~":f}function o(f,s,t){f=I(f=E(f),t.decPrivateModes.bracketedPasteMode),t.triggerDataEvent(f,!0),s.value=""}function m(f,s,t){var l=t.getBoundingClientRect(),a=f.clientX-l.left-10,r=f.clientY-l.top-10;s.style.width="20px",s.style.height="20px",s.style.left=a+"px",s.style.top=r+"px",s.style.zIndex="1000",s.focus()}Object.defineProperty(N,"__esModule",{value:!0}),N.rightClickHandler=N.moveTextAreaUnderMouseCursor=N.paste=N.handlePasteEvent=N.copyHandler=N.bracketTextForPaste=N.prepareTextForTerminal=void 0,N.prepareTextForTerminal=E,N.bracketTextForPaste=I,N.copyHandler=function(f,s){f.clipboardData&&f.clipboardData.setData("text/plain",s.selectionText),f.preventDefault()},N.handlePasteEvent=function(f,s,t){f.stopPropagation(),f.clipboardData&&o(f.clipboardData.getData("text/plain"),s,t)},N.paste=o,N.moveTextAreaUnderMouseCursor=m,N.rightClickHandler=function(f,s,t,l,a){m(f,s,t),a&&!l.isClickInSelection(f)&&l.selectWordAtCursor(f),s.value=l.selectionText,s.select()}},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(u,e){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])})(u,e)},function(r,u){function e(){this.constructor=r}E(r,u),r.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)});Object.defineProperty(N,"__esModule",{value:!0}),N.EscapeSequenceParser=N.VT500_TRANSITION_TABLE=N.TransitionTable=void 0;var o=L(2),m=L(15),f=L(21),s=L(22),t=L(24),l=function(){function r(u){this.table=new Uint8Array(u)}return r.prototype.setDefault=function(u,e){m.fill(this.table,u<<4|e)},r.prototype.add=function(u,e,n,i){this.table[e<<8|u]=n<<4|i},r.prototype.addMany=function(u,e,n,i){for(var c=0;c<u.length;c++)this.table[e<<8|u[c]]=n<<4|i},r}();N.TransitionTable=l,N.VT500_TRANSITION_TABLE=function(){var r=new l(4095),u=Array.apply(null,Array(256)).map(function(h,p){return p}),e=function(p,g){return u.slice(p,g)},n=e(32,127),i=e(0,24);i.push(25),i.push.apply(i,e(28,32));var c,d=e(0,14);for(c in r.setDefault(1,0),r.addMany(n,0,2,0),d)r.addMany([24,26,153,154],c,3,0),r.addMany(e(128,144),c,3,0),r.addMany(e(144,152),c,3,0),r.add(156,c,0,0),r.add(27,c,11,1),r.add(157,c,4,8),r.addMany([152,158,159],c,0,7),r.add(155,c,11,3),r.add(144,c,11,9);return r.addMany(i,0,3,0),r.addMany(i,1,3,1),r.add(127,1,0,1),r.addMany(i,8,0,8),r.addMany(i,3,3,3),r.add(127,3,0,3),r.addMany(i,4,3,4),r.add(127,4,0,4),r.addMany(i,6,3,6),r.addMany(i,5,3,5),r.add(127,5,0,5),r.addMany(i,2,3,2),r.add(127,2,0,2),r.add(93,1,4,8),r.addMany(n,8,5,8),r.add(127,8,5,8),r.addMany([156,27,24,26,7],8,6,0),r.addMany(e(28,32),8,0,8),r.addMany([88,94,95],1,0,7),r.addMany(n,7,0,7),r.addMany(i,7,0,7),r.add(156,7,0,0),r.add(127,7,0,7),r.add(91,1,11,3),r.addMany(e(64,127),3,7,0),r.addMany(e(48,60),3,8,4),r.addMany([60,61,62,63],3,9,4),r.addMany(e(48,60),4,8,4),r.addMany(e(64,127),4,7,0),r.addMany([60,61,62,63],4,0,6),r.addMany(e(32,64),6,0,6),r.add(127,6,0,6),r.addMany(e(64,127),6,0,0),r.addMany(e(32,48),3,9,5),r.addMany(e(32,48),5,9,5),r.addMany(e(48,64),5,0,6),r.addMany(e(64,127),5,7,0),r.addMany(e(32,48),4,9,5),r.addMany(e(32,48),1,9,2),r.addMany(e(32,48),2,9,2),r.addMany(e(48,127),2,10,0),r.addMany(e(48,80),1,10,0),r.addMany(e(81,88),1,10,0),r.addMany([89,90,92],1,10,0),r.addMany(e(96,127),1,10,0),r.add(80,1,11,9),r.addMany(i,9,0,9),r.add(127,9,0,9),r.addMany(e(28,32),9,0,9),r.addMany(e(32,48),9,9,12),r.addMany(e(48,60),9,8,10),r.addMany([60,61,62,63],9,9,10),r.addMany(i,11,0,11),r.addMany(e(32,128),11,0,11),r.addMany(e(28,32),11,0,11),r.addMany(i,10,0,10),r.add(127,10,0,10),r.addMany(e(28,32),10,0,10),r.addMany(e(48,60),10,8,10),r.addMany([60,61,62,63],10,0,11),r.addMany(e(32,48),10,9,12),r.addMany(i,12,0,12),r.add(127,12,0,12),r.addMany(e(28,32),12,0,12),r.addMany(e(32,48),12,9,12),r.addMany(e(48,64),12,0,11),r.addMany(e(64,127),12,12,13),r.addMany(e(64,127),10,12,13),r.addMany(e(64,127),9,12,13),r.addMany(i,13,13,13),r.addMany(n,13,13,13),r.add(127,13,0,13),r.addMany([27,156,24,26],13,14,0),r.add(160,0,2,0),r.add(160,8,5,8),r.add(160,6,0,6),r.add(160,11,0,11),r.add(160,13,13,13),r}();var a=function(r){function u(e){e===void 0&&(e=N.VT500_TRANSITION_TABLE);var n=r.call(this)||this;return n._transitions=e,n.initialState=0,n.currentState=n.initialState,n._params=new f.Params,n._params.addParam(0),n._collect=0,n.precedingCodepoint=0,n._printHandlerFb=function(i,c,d){},n._executeHandlerFb=function(i){},n._csiHandlerFb=function(i,c){},n._escHandlerFb=function(i){},n._errorHandlerFb=function(i){return i},n._printHandler=n._printHandlerFb,n._executeHandlers=Object.create(null),n._csiHandlers=Object.create(null),n._escHandlers=Object.create(null),n._oscParser=new s.OscParser,n._dcsParser=new t.DcsParser,n._errorHandler=n._errorHandlerFb,n.setEscHandler({final:"\\"},function(){}),n}return I(u,r),u.prototype._identifier=function(e,n){n===void 0&&(n=[64,126]);var i=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((i=e.prefix.charCodeAt(0))&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var c=0;c<e.intermediates.length;++c){var d=e.intermediates.charCodeAt(c);if(32>d||d>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=d}}if(e.final.length!==1)throw new Error("final must be a single byte");var h=e.final.charCodeAt(0);if(n[0]>h||h>n[1])throw new Error("final must be in range "+n[0]+" .. "+n[1]);return i<<=8,i|=h},u.prototype.identToString=function(e){for(var n=[];e;)n.push(String.fromCharCode(255&e)),e>>=8;return n.reverse().join("")},u.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},u.prototype.setPrintHandler=function(e){this._printHandler=e},u.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},u.prototype.addEscHandler=function(e,n){var i=this._identifier(e,[48,126]);this._escHandlers[i]===void 0&&(this._escHandlers[i]=[]);var c=this._escHandlers[i];return c.push(n),{dispose:function(){var h=c.indexOf(n);h!==-1&&c.splice(h,1)}}},u.prototype.setEscHandler=function(e,n){this._escHandlers[this._identifier(e,[48,126])]=[n]},u.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},u.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},u.prototype.setExecuteHandler=function(e,n){this._executeHandlers[e.charCodeAt(0)]=n},u.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},u.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},u.prototype.addCsiHandler=function(e,n){var i=this._identifier(e);this._csiHandlers[i]===void 0&&(this._csiHandlers[i]=[]);var c=this._csiHandlers[i];return c.push(n),{dispose:function(){var h=c.indexOf(n);h!==-1&&c.splice(h,1)}}},u.prototype.setCsiHandler=function(e,n){this._csiHandlers[this._identifier(e)]=[n]},u.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},u.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},u.prototype.addDcsHandler=function(e,n){return this._dcsParser.addHandler(this._identifier(e),n)},u.prototype.setDcsHandler=function(e,n){this._dcsParser.setHandler(this._identifier(e),n)},u.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},u.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},u.prototype.addOscHandler=function(e,n){return this._oscParser.addHandler(e,n)},u.prototype.setOscHandler=function(e,n){this._oscParser.setHandler(e,n)},u.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},u.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},u.prototype.setErrorHandler=function(e){this._errorHandler=e},u.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},u.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},u.prototype.parse=function(e,n){for(var i=0,c=0,d=this.currentState,h=this._oscParser,p=this._dcsParser,g=this._collect,v=this._params,A=this._transitions.table,x=0;x<n;++x){switch((c=A[d<<8|((i=e[x])<160?i:160)])>>4){case 2:for(var b=x+1;;++b){if(b>=n||(i=e[b])<32||i>126&&i<160){this._printHandler(e,x,b),x=b-1;break}if(++b>=n||(i=e[b])<32||i>126&&i<160){this._printHandler(e,x,b),x=b-1;break}if(++b>=n||(i=e[b])<32||i>126&&i<160){this._printHandler(e,x,b),x=b-1;break}if(++b>=n||(i=e[b])<32||i>126&&i<160){this._printHandler(e,x,b),x=b-1;break}}break;case 3:this._executeHandlers[i]?this._executeHandlers[i]():this._executeHandlerFb(i),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:x,code:i,currentState:d,collect:g,params:v,abort:!1}).abort)return;break;case 7:for(var w=this._csiHandlers[g<<8|i],S=w?w.length-1:-1;S>=0&&w[S](v)===!1;S--);S<0&&this._csiHandlerFb(g<<8|i,v),this.precedingCodepoint=0;break;case 8:do switch(i){case 59:v.addParam(0);break;case 58:v.addSubParam(-1);break;default:v.addDigit(i-48)}while(++x<n&&(i=e[x])>47&&i<60);x--;break;case 9:g<<=8,g|=i;break;case 10:for(var T=this._escHandlers[g<<8|i],C=T?T.length-1:-1;C>=0&&T[C]()===!1;C--);C<0&&this._escHandlerFb(g<<8|i),this.precedingCodepoint=0;break;case 11:v.reset(),v.addParam(0),g=0;break;case 12:p.hook(g<<8|i,v);break;case 13:for(var O=x+1;;++O)if(O>=n||(i=e[O])===24||i===26||i===27||i>127&&i<160){p.put(e,x,O),x=O-1;break}break;case 14:p.unhook(i!==24&&i!==26),i===27&&(c|=1),v.reset(),v.addParam(0),g=0,this.precedingCodepoint=0;break;case 4:h.start();break;case 5:for(var _=x+1;;_++)if(_>=n||(i=e[_])<32||i>127&&i<=159){h.put(e,x,_),x=_-1;break}break;case 6:h.end(i!==24&&i!==26),i===27&&(c|=1),v.reset(),v.addParam(0),g=0,this.precedingCodepoint=0}d=15&c}this._collect=g,this.currentState=d},u}(o.Disposable);N.EscapeSequenceParser=a},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(p,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var x in A)A.hasOwnProperty(x)&&(v[x]=A[x])})(p,g)},function(h,p){function g(){this.constructor=h}E(h,p),h.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),o=this&&this.__decorate||function(h,p,g,v){var A,x=arguments.length,b=x<3?p:v===null?v=Object.getOwnPropertyDescriptor(p,g):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(h,p,g,v);else for(var w=h.length-1;w>=0;w--)(A=h[w])&&(b=(x<3?A(b):x>3?A(p,g,b):A(p,g))||b);return x>3&&b&&Object.defineProperty(p,g,b),b},m=this&&this.__param||function(h,p){return function(g,v){p(g,v,h)}};Object.defineProperty(N,"__esModule",{value:!0}),N.Renderer=void 0;var f=L(41),s=L(47),t=L(48),l=L(49),a=L(29),r=L(2),u=L(5),e=L(1),n=L(25),i=L(0),c=1,d=function(h){function p(g,v,A,x,b,w,S,T,C){var O=h.call(this)||this;O._colors=g,O._screenElement=v,O._bufferService=b,O._charSizeService=w,O._optionsService=S,O._id=c++,O._onRequestRedraw=new i.EventEmitter;var _=O._optionsService.options.allowTransparency;return O._characterJoinerRegistry=new a.CharacterJoinerRegistry(O._bufferService),O._renderLayers=[new f.TextRenderLayer(O._screenElement,0,O._colors,O._characterJoinerRegistry,_,O._id,O._bufferService,S),new s.SelectionRenderLayer(O._screenElement,1,O._colors,O._id,O._bufferService,S),new l.LinkRenderLayer(O._screenElement,2,O._colors,O._id,A,x,O._bufferService,S),new t.CursorRenderLayer(O._screenElement,3,O._colors,O._id,O._onRequestRedraw,O._bufferService,S,T,C)],O.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},O._devicePixelRatio=window.devicePixelRatio,O._updateDimensions(),O.onOptionsChanged(),O}return I(p,h),Object.defineProperty(p.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),p.prototype.dispose=function(){for(var g=0,v=this._renderLayers;g<v.length;g++)v[g].dispose();h.prototype.dispose.call(this),n.removeTerminalFromCache(this._id)},p.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},p.prototype.setColors=function(g){this._colors=g;for(var v=0,A=this._renderLayers;v<A.length;v++){var x=A[v];x.setColors(this._colors),x.reset()}},p.prototype.onResize=function(g,v){this._updateDimensions();for(var A=0,x=this._renderLayers;A<x.length;A++)x[A].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},p.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},p.prototype.onBlur=function(){this._runOperation(function(g){return g.onBlur()})},p.prototype.onFocus=function(){this._runOperation(function(g){return g.onFocus()})},p.prototype.onSelectionChanged=function(g,v,A){A===void 0&&(A=!1),this._runOperation(function(x){return x.onSelectionChanged(g,v,A)})},p.prototype.onCursorMove=function(){this._runOperation(function(g){return g.onCursorMove()})},p.prototype.onOptionsChanged=function(){this._runOperation(function(g){return g.onOptionsChanged()})},p.prototype.clear=function(){this._runOperation(function(g){return g.reset()})},p.prototype._runOperation=function(g){for(var v=0,A=this._renderLayers;v<A.length;v++)g(A[v])},p.prototype.renderRows=function(g,v){for(var A=0,x=this._renderLayers;A<x.length;A++)x[A].onGridChanged(g,v)},p.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)},p.prototype.registerCharacterJoiner=function(g){return this._characterJoinerRegistry.registerCharacterJoiner(g)},p.prototype.deregisterCharacterJoiner=function(g){return this._characterJoinerRegistry.deregisterCharacterJoiner(g)},p=o([m(4,e.IBufferService),m(5,u.ICharSizeService),m(6,e.IOptionsService),m(7,e.ICoreService),m(8,u.ICoreBrowserService)],p)}(r.Disposable);N.Renderer=d},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(u,e){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])})(u,e)},function(r,u){function e(){this.constructor=r}E(r,u),r.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)});Object.defineProperty(N,"__esModule",{value:!0}),N.TextRenderLayer=void 0;var o=L(42),m=L(13),f=L(6),s=L(3),t=L(29),l=L(4),a=function(r){function u(e,n,i,c,d,h,p,g){var v=r.call(this,e,"text",n,d,i,h,p,g)||this;return v._characterWidth=0,v._characterFont="",v._characterOverlapCache={},v._workCell=new l.CellData,v._state=new o.GridCache,v._characterJoinerRegistry=c,v}return I(u,r),u.prototype.resize=function(e){r.prototype.resize.call(this,e);var n=this._getFont(!1,!1);this._characterWidth===e.scaledCharWidth&&this._characterFont===n||(this._characterWidth=e.scaledCharWidth,this._characterFont=n,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},u.prototype.reset=function(){this._state.clear(),this._clearAll()},u.prototype._forEachCell=function(e,n,i,c){for(var d=e;d<=n;d++)for(var h=d+this._bufferService.buffer.ydisp,p=this._bufferService.buffer.lines.get(h),g=i?i.getJoinedCharacters(h):[],v=0;v<this._bufferService.cols;v++){p.loadCell(v,this._workCell);var A=this._workCell,x=!1,b=v;if(A.getWidth()!==0){if(g.length>0&&v===g[0][0]){x=!0;var w=g.shift();A=new t.JoinedCellData(this._workCell,p.translateToString(!0,w[0],w[1]),w[1]-w[0]),b=w[1]-1}!x&&this._isOverlapping(A)&&b<p.length-1&&p.getCodePoint(b+1)===s.NULL_CELL_CODE&&(A.content&=-12582913,A.content|=2<<22),c(A,v,d),v=b}}},u.prototype._drawBackground=function(e,n){var i=this,c=this._ctx,d=this._bufferService.cols,h=0,p=0,g=null;c.save(),this._forEachCell(e,n,null,function(v,A,x){var b=null;v.isInverse()?b=v.isFgDefault()?i._colors.foreground.css:v.isFgRGB()?"rgb("+f.AttributeData.toColorRGB(v.getFgColor()).join(",")+")":i._colors.ansi[v.getFgColor()].css:v.isBgRGB()?b="rgb("+f.AttributeData.toColorRGB(v.getBgColor()).join(",")+")":v.isBgPalette()&&(b=i._colors.ansi[v.getBgColor()].css),g===null&&(h=A,p=x),x!==p?(c.fillStyle=g||"",i._fillCells(h,p,d-h,1),h=A,p=x):g!==b&&(c.fillStyle=g||"",i._fillCells(h,p,A-h,1),h=A,p=x),g=b}),g!==null&&(c.fillStyle=g,this._fillCells(h,p,d-h,1)),c.restore()},u.prototype._drawForeground=function(e,n){var i=this;this._forEachCell(e,n,this._characterJoinerRegistry,function(c,d,h){if(!c.isInvisible()&&(i._drawChars(c,d,h),c.isUnderline())){if(i._ctx.save(),c.isInverse())if(c.isBgDefault())i._ctx.fillStyle=i._colors.background.css;else if(c.isBgRGB())i._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(c.getBgColor()).join(",")+")";else{var p=c.getBgColor();i._optionsService.options.drawBoldTextInBrightColors&&c.isBold()&&p<8&&(p+=8),i._ctx.fillStyle=i._colors.ansi[p].css}else if(c.isFgDefault())i._ctx.fillStyle=i._colors.foreground.css;else if(c.isFgRGB())i._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(c.getFgColor()).join(",")+")";else{var g=c.getFgColor();i._optionsService.options.drawBoldTextInBrightColors&&c.isBold()&&g<8&&(g+=8),i._ctx.fillStyle=i._colors.ansi[g].css}i._fillBottomLineAtCells(d,h,c.getWidth()),i._ctx.restore()}})},u.prototype.onGridChanged=function(e,n){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,n-e+1),this._drawBackground(e,n),this._drawForeground(e,n))},u.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},u.prototype._isOverlapping=function(e){if(e.getWidth()!==1)return!1;if(e.getCode()<256)return!1;var n=e.getChars();if(this._characterOverlapCache.hasOwnProperty(n))return this._characterOverlapCache[n];this._ctx.save(),this._ctx.font=this._characterFont;var i=Math.floor(this._ctx.measureText(n).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[n]=i,i},u}(m.BaseRenderLayer);N.TextRenderLayer=a},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.GridCache=void 0;var E=function(){function I(){this.cache=[]}return I.prototype.resize=function(o,m){for(var f=0;f<o;f++){this.cache.length<=f&&this.cache.push([]);for(var s=this.cache[f].length;s<m;s++)this.cache[f].push(void 0);this.cache[f].length=m}this.cache.length=o},I.prototype.clear=function(){for(var o=0;o<this.cache.length;o++)for(var m=0;m<this.cache[o].length;m++)this.cache[o][m]=void 0},I}();N.GridCache=E},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(c,d){return(E=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])})(c,d)},function(i,c){function d(){this.constructor=i}E(i,c),i.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)});Object.defineProperty(N,"__esModule",{value:!0}),N.NoneCharAtlas=N.DynamicCharAtlas=N.getGlyphCacheKey=void 0;var o=L(9),m=L(44),f=L(27),s=L(46),t=L(11),l=L(28),a=L(10),r={css:"rgba(0, 0, 0, 0)",rgba:0};function u(i){return i.code<<21|i.bg<<12|i.fg<<3|(i.bold?0:4)+(i.dim?0:2)+(i.italic?0:1)}N.getGlyphCacheKey=u;var e=function(i){function c(d,h){var p=i.call(this)||this;p._config=h,p._drawToCacheCount=0,p._glyphsWaitingOnBitmap=[],p._bitmapCommitTimeout=null,p._bitmap=null,p._cacheCanvas=d.createElement("canvas"),p._cacheCanvas.width=1024,p._cacheCanvas.height=1024,p._cacheCtx=l.throwIfFalsy(p._cacheCanvas.getContext("2d",{alpha:!0}));var g=d.createElement("canvas");g.width=p._config.scaledCharWidth,g.height=p._config.scaledCharHeight,p._tmpCtx=l.throwIfFalsy(g.getContext("2d",{alpha:p._config.allowTransparency})),p._width=Math.floor(1024/p._config.scaledCharWidth),p._height=Math.floor(1024/p._config.scaledCharHeight);var v=p._width*p._height;return p._cacheMap=new s.LRUMap(v),p._cacheMap.prealloc(v),p}return I(c,i),c.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},c.prototype.beginFrame=function(){this._drawToCacheCount=0},c.prototype.draw=function(d,h,p,g){if(h.code===32)return!0;if(!this._canCache(h))return!1;var v=u(h),A=this._cacheMap.get(v);if(A!=null)return this._drawFromCache(d,A,p,g),!0;if(this._drawToCacheCount<100){var x=void 0;x=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var b=this._drawToCache(h,x);return this._cacheMap.set(v,b),this._drawFromCache(d,b,p,g),!0}return!1},c.prototype._canCache=function(d){return d.code<256},c.prototype._toCoordinateX=function(d){return d%this._width*this._config.scaledCharWidth},c.prototype._toCoordinateY=function(d){return Math.floor(d/this._width)*this._config.scaledCharHeight},c.prototype._drawFromCache=function(d,h,p,g){if(!h.isEmpty){var v=this._toCoordinateX(h.index),A=this._toCoordinateY(h.index);d.drawImage(h.inBitmap?this._bitmap:this._cacheCanvas,v,A,this._config.scaledCharWidth,this._config.scaledCharHeight,p,g,this._config.scaledCharWidth,this._config.scaledCharHeight)}},c.prototype._getColorFromAnsiIndex=function(d){return d<this._config.colors.ansi.length?this._config.colors.ansi[d]:f.DEFAULT_ANSI_COLORS[d]},c.prototype._getBackgroundColor=function(d){return this._config.allowTransparency?r:d.bg===o.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:d.bg<256?this._getColorFromAnsiIndex(d.bg):this._config.colors.background},c.prototype._getForegroundColor=function(d){return d.fg===o.INVERTED_DEFAULT_COLOR?a.color.opaque(this._config.colors.background):d.fg<256?this._getColorFromAnsiIndex(d.fg):this._config.colors.foreground},c.prototype._drawToCache=function(d,h){this._drawToCacheCount++,this._tmpCtx.save();var p=this._getBackgroundColor(d);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=p.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var g=d.bold?this._config.fontWeightBold:this._config.fontWeight,v=d.italic?"italic":"";this._tmpCtx.font=v+" "+g+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(d).css,d.dim&&(this._tmpCtx.globalAlpha=o.DIM_OPACITY),this._tmpCtx.fillText(d.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var A=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),x=!1;this._config.allowTransparency||(x=function(T,C){for(var O=!0,_=C.rgba>>>24,M=C.rgba>>>16&255,k=C.rgba>>>8&255,R=0;R<T.data.length;R+=4)T.data[R]===_&&T.data[R+1]===M&&T.data[R+2]===k?T.data[R+3]=0:O=!1;return O}(A,p));var b=this._toCoordinateX(h),w=this._toCoordinateY(h);this._cacheCtx.putImageData(A,b,w);var S={index:h,isEmpty:x,inBitmap:!1};return this._addGlyphToBitmap(S),S},c.prototype._addGlyphToBitmap=function(d){var h=this;!("createImageBitmap"in window)||t.isFirefox||t.isSafari||(this._glyphsWaitingOnBitmap.push(d),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return h._generateBitmap()},100)))},c.prototype._generateBitmap=function(){var d=this,h=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(p){d._bitmap=p;for(var g=0;g<h.length;g++)h[g].inBitmap=!0}),this._bitmapCommitTimeout=null},c}(m.BaseCharAtlas);N.DynamicCharAtlas=e;var n=function(i){function c(d,h){return i.call(this)||this}return I(c,i),c.prototype.draw=function(d,h,p,g){return!1},c}(m.BaseCharAtlas);N.NoneCharAtlas=n},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.BaseCharAtlas=void 0;var E=function(){function I(){this._didWarmUp=!1}return I.prototype.dispose=function(){},I.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},I.prototype._doWarmUp=function(){},I.prototype.beginFrame=function(){},I}();N.BaseCharAtlas=E},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.ColorContrastCache=void 0;var E=function(){function I(){this._color={},this._rgba={}}return I.prototype.clear=function(){this._color={},this._rgba={}},I.prototype.setCss=function(o,m,f){this._rgba[o]||(this._rgba[o]={}),this._rgba[o][m]=f},I.prototype.getCss=function(o,m){return this._rgba[o]?this._rgba[o][m]:void 0},I.prototype.setColor=function(o,m,f){this._color[o]||(this._color[o]={}),this._color[o][m]=f},I.prototype.getColor=function(o,m){return this._color[o]?this._color[o][m]:void 0},I}();N.ColorContrastCache=E},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.LRUMap=void 0;var E=function(){function I(o){this.capacity=o,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return I.prototype._unlinkNode=function(o){var m=o.prev,f=o.next;o===this._head&&(this._head=f),o===this._tail&&(this._tail=m),m!==null&&(m.next=f),f!==null&&(f.prev=m)},I.prototype._appendNode=function(o){var m=this._tail;m!==null&&(m.next=o),o.prev=m,o.next=null,this._tail=o,this._head===null&&(this._head=o)},I.prototype.prealloc=function(o){for(var m=this._nodePool,f=0;f<o;f++)m.push({prev:null,next:null,key:null,value:null})},I.prototype.get=function(o){var m=this._map[o];return m!==void 0?(this._unlinkNode(m),this._appendNode(m),m.value):null},I.prototype.peekValue=function(o){var m=this._map[o];return m!==void 0?m.value:null},I.prototype.peek=function(){var o=this._head;return o===null?null:o.value},I.prototype.set=function(o,m){var f=this._map[o];if(f!==void 0)f=this._map[o],this._unlinkNode(f),f.value=m;else if(this.size>=this.capacity)f=this._head,this._unlinkNode(f),delete this._map[f.key],f.key=o,f.value=m,this._map[o]=f;else{var s=this._nodePool;s.length>0?((f=s.pop()).key=o,f.value=m):f={prev:null,next:null,key:o,value:m},this._map[o]=f,this.size++}this._appendNode(f)},I}();N.LRUMap=E},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(f,s){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,l){t.__proto__=l}||function(t,l){for(var a in l)l.hasOwnProperty(a)&&(t[a]=l[a])})(f,s)},function(m,f){function s(){this.constructor=m}E(m,f),m.prototype=f===null?Object.create(f):(s.prototype=f.prototype,new s)});Object.defineProperty(N,"__esModule",{value:!0}),N.SelectionRenderLayer=void 0;var o=function(m){function f(s,t,l,a,r,u){var e=m.call(this,s,"selection",t,!0,l,a,r,u)||this;return e._clearState(),e}return I(f,m),f.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},f.prototype.resize=function(s){m.prototype.resize.call(this,s),this._clearState()},f.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},f.prototype.onSelectionChanged=function(s,t,l){if(this._didStateChange(s,t,l,this._bufferService.buffer.ydisp))if(this._clearAll(),s&&t){var a=s[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,u=Math.max(a,0),e=Math.min(r,this._bufferService.rows-1);if(!(u>=this._bufferService.rows||e<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,l){var n=s[0],i=t[0]-n,c=e-u+1;this._fillCells(n,u,i,c)}else{n=a===u?s[0]:0;var d=u===e?t[0]:this._bufferService.cols;this._fillCells(n,u,d-n,1);var h=Math.max(e-u-1,0);if(this._fillCells(0,u+1,this._bufferService.cols,h),u!==e){var p=r===e?t[0]:this._bufferService.cols;this._fillCells(0,e,p,1)}}this._state.start=[s[0],s[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=l,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},f.prototype._didStateChange=function(s,t,l,a){return!this._areCoordinatesEqual(s,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||l!==this._state.columnSelectMode||a!==this._state.ydisp},f.prototype._areCoordinatesEqual=function(s,t){return!(!s||!t)&&s[0]===t[0]&&s[1]===t[1]},f}(L(13).BaseRenderLayer);N.SelectionRenderLayer=o},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(l,a){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var e in u)u.hasOwnProperty(e)&&(r[e]=u[e])})(l,a)},function(t,l){function a(){this.constructor=t}E(t,l),t.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)});Object.defineProperty(N,"__esModule",{value:!0}),N.CursorRenderLayer=void 0;var o=L(13),m=L(4),f=function(t){function l(a,r,u,e,n,i,c,d,h){var p=t.call(this,a,"cursor",r,!0,u,e,i,c)||this;return p._onRequestRedraw=n,p._coreService=d,p._coreBrowserService=h,p._cell=new m.CellData,p._state={x:0,y:0,isFocused:!1,style:"",width:0},p._cursorRenderers={bar:p._renderBarCursor.bind(p),block:p._renderBlockCursor.bind(p),underline:p._renderUnderlineCursor.bind(p)},p}return I(l,t),l.prototype.resize=function(a){t.prototype.resize.call(this,a),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},l.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},l.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},l.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},l.prototype.onOptionsChanged=function(){var a,r=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new s(this._coreBrowserService.isFocused,function(){r._render(!0)})):((a=this._cursorBlinkStateManager)===null||a===void 0||a.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},l.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},l.prototype.onGridChanged=function(a,r){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},l.prototype._render=function(a){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var r=this._bufferService.buffer.ybase+this._bufferService.buffer.y,u=r-this._bufferService.buffer.ydisp;if(u<0||u>=this._bufferService.rows)this._clearCursor();else{var e=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(r).loadCell(e,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var n=this._optionsService.options.cursorStyle;return n&&n!=="block"?this._cursorRenderers[n](e,u,this._cell):this._renderBlurCursor(e,u,this._cell),this._ctx.restore(),this._state.x=e,this._state.y=u,this._state.isFocused=!1,this._state.style=n,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e&&this._state.y===u&&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"](e,u,this._cell),this._ctx.restore(),this._state.x=e,this._state.y=u,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},l.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})},l.prototype._renderBarCursor=function(a,r,u){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(a,r,this._optionsService.options.cursorWidth),this._ctx.restore()},l.prototype._renderBlockCursor=function(a,r,u){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(a,r,u.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(u,a,r),this._ctx.restore()},l.prototype._renderUnderlineCursor=function(a,r,u){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(a,r),this._ctx.restore()},l.prototype._renderBlurCursor=function(a,r,u){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(a,r,u.getWidth(),1),this._ctx.restore()},l}(o.BaseRenderLayer);N.CursorRenderLayer=f;var s=function(){function t(l,a){this._renderCallback=a,this.isCursorVisible=!0,l&&this._restartInterval()}return Object.defineProperty(t.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),t.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)},t.prototype.restartBlinkAnimation=function(){var l=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){l._renderCallback(),l._animationFrame=void 0})))},t.prototype._restartInterval=function(l){var a=this;l===void 0&&(l=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(a._animationTimeRestarted){var r=600-(Date.now()-a._animationTimeRestarted);if(a._animationTimeRestarted=void 0,r>0)return void a._restartInterval(r)}a.isCursorVisible=!1,a._animationFrame=window.requestAnimationFrame(function(){a._renderCallback(),a._animationFrame=void 0}),a._blinkInterval=window.setInterval(function(){if(a._animationTimeRestarted){var u=600-(Date.now()-a._animationTimeRestarted);return a._animationTimeRestarted=void 0,void a._restartInterval(u)}a.isCursorVisible=!a.isCursorVisible,a._animationFrame=window.requestAnimationFrame(function(){a._renderCallback(),a._animationFrame=void 0})},600)},l)},t.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)},t.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},t}()},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(l,a){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var e in u)u.hasOwnProperty(e)&&(r[e]=u[e])})(l,a)},function(t,l){function a(){this.constructor=t}E(t,l),t.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)});Object.defineProperty(N,"__esModule",{value:!0}),N.LinkRenderLayer=void 0;var o=L(13),m=L(9),f=L(26),s=function(t){function l(a,r,u,e,n,i,c,d){var h=t.call(this,a,"link",r,!0,u,e,c,d)||this;return n.onShowLinkUnderline(function(p){return h._onShowLinkUnderline(p)}),n.onHideLinkUnderline(function(p){return h._onHideLinkUnderline(p)}),i.onShowLinkUnderline(function(p){return h._onShowLinkUnderline(p)}),i.onHideLinkUnderline(function(p){return h._onHideLinkUnderline(p)}),h}return I(l,t),l.prototype.resize=function(a){t.prototype.resize.call(this,a),this._state=void 0},l.prototype.reset=function(){this._clearCurrentLink()},l.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var a=this._state.y2-this._state.y1-1;a>0&&this._clearCells(0,this._state.y1+1,this._state.cols,a),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},l.prototype._onShowLinkUnderline=function(a){if(a.fg===m.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:a.fg&&f.is256Color(a.fg)?this._ctx.fillStyle=this._colors.ansi[a.fg].css:this._ctx.fillStyle=this._colors.foreground.css,a.y1===a.y2)this._fillBottomLineAtCells(a.x1,a.y1,a.x2-a.x1);else{this._fillBottomLineAtCells(a.x1,a.y1,a.cols-a.x1);for(var r=a.y1+1;r<a.y2;r++)this._fillBottomLineAtCells(0,r,a.cols);this._fillBottomLineAtCells(0,a.y2,a.x2)}this._state=a},l.prototype._onHideLinkUnderline=function(a){this._clearCurrentLink()},l}(o.BaseRenderLayer);N.LinkRenderLayer=s},function(D,N,L){"use strict";var E=this&&this.__decorate||function(t,l,a,r){var u,e=arguments.length,n=e<3?l:r===null?r=Object.getOwnPropertyDescriptor(l,a):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,l,a,r);else for(var i=t.length-1;i>=0;i--)(u=t[i])&&(n=(e<3?u(n):e>3?u(l,a,n):u(l,a))||n);return e>3&&n&&Object.defineProperty(l,a,n),n},I=this&&this.__param||function(t,l){return function(a,r){l(a,r,t)}};Object.defineProperty(N,"__esModule",{value:!0}),N.MouseZone=N.Linkifier=void 0;var o=L(0),m=L(1),f=function(){function t(l,a,r){this._bufferService=l,this._logService=a,this._unicodeService=r,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new o.EventEmitter,this._onHideLinkUnderline=new o.EventEmitter,this._onLinkTooltip=new o.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),t.prototype.attachToDom=function(l,a){this._element=l,this._mouseZoneManager=a},t.prototype.linkifyRows=function(l,a){var r=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=l,this._rowsToLinkify.end=a):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,l),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,a)),this._mouseZoneManager.clearAll(l,a),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return r._linkifyRows()},t._timeBeforeLatency))},t.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var l=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var a=l.ydisp+this._rowsToLinkify.start;if(!(a>=l.lines.length)){for(var r=l.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,u=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,a,r,u,u);e.hasNext();)for(var n=e.next(),i=0;i<this._linkMatchers.length;i++)this._doLinkifyRow(n.range.first,n.content,this._linkMatchers[i]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},t.prototype.registerLinkMatcher=function(l,a,r){if(r===void 0&&(r={}),!a)throw new Error("handler must be defined");var u={id:this._nextLinkMatcherId++,regex:l,handler:a,matchIndex:r.matchIndex,validationCallback:r.validationCallback,hoverTooltipCallback:r.tooltipCallback,hoverLeaveCallback:r.leaveCallback,willLinkActivate:r.willLinkActivate,priority:r.priority||0};return this._addLinkMatcherToList(u),u.id},t.prototype._addLinkMatcherToList=function(l){if(this._linkMatchers.length!==0){for(var a=this._linkMatchers.length-1;a>=0;a--)if(l.priority<=this._linkMatchers[a].priority)return void this._linkMatchers.splice(a+1,0,l);this._linkMatchers.splice(0,0,l)}else this._linkMatchers.push(l)},t.prototype.deregisterLinkMatcher=function(l){for(var a=0;a<this._linkMatchers.length;a++)if(this._linkMatchers[a].id===l)return this._linkMatchers.splice(a,1),!0;return!1},t.prototype._doLinkifyRow=function(l,a,r){for(var u,e=this,n=new RegExp(r.regex.source,(r.regex.flags||"")+"g"),i=-1,c=function(){var p=u[typeof r.matchIndex!="number"?0:r.matchIndex];if(!p)return d._logService.debug("match found without corresponding matchIndex",u,r),"break";if(i=a.indexOf(p,i+1),n.lastIndex=i+p.length,i<0)return"break";var g=d._bufferService.buffer.stringIndexToBufferIndex(l,i);if(g[0]<0)return"break";var v=d._bufferService.buffer.lines.get(g[0]);if(!v)return"break";var A=v.getFg(g[1]),x=A?A>>9&511:void 0;r.validationCallback?r.validationCallback(p,function(b){e._rowsTimeoutId||b&&e._addLink(g[1],g[0]-e._bufferService.buffer.ydisp,p,r,x)}):d._addLink(g[1],g[0]-d._bufferService.buffer.ydisp,p,r,x)},d=this;(u=n.exec(a))!==null&&!(c()==="break"););},t.prototype._addLink=function(l,a,r,u,e){var n=this;if(this._mouseZoneManager&&this._element){var i=this._unicodeService.getStringCellWidth(r),c=l%this._bufferService.cols,d=a+Math.floor(l/this._bufferService.cols),h=(c+i)%this._bufferService.cols,p=d+Math.floor((c+i)/this._bufferService.cols);h===0&&(h=this._bufferService.cols,p--),this._mouseZoneManager.add(new s(c+1,d+1,h+1,p+1,function(g){if(u.handler)return u.handler(g,r);var v=window.open();v?(v.opener=null,v.location.href=r):console.warn("Opening link blocked as opener could not be cleared")},function(){n._onShowLinkUnderline.fire(n._createLinkHoverEvent(c,d,h,p,e)),n._element.classList.add("xterm-cursor-pointer")},function(g){n._onLinkTooltip.fire(n._createLinkHoverEvent(c,d,h,p,e)),u.hoverTooltipCallback&&u.hoverTooltipCallback(g,r,{start:{x:c,y:d},end:{x:h,y:p}})},function(){n._onHideLinkUnderline.fire(n._createLinkHoverEvent(c,d,h,p,e)),n._element.classList.remove("xterm-cursor-pointer"),u.hoverLeaveCallback&&u.hoverLeaveCallback()},function(g){return!u.willLinkActivate||u.willLinkActivate(g,r)}))}},t.prototype._createLinkHoverEvent=function(l,a,r,u,e){return{x1:l,y1:a,x2:r,y2:u,cols:this._bufferService.cols,fg:e}},t._timeBeforeLatency=200,t=E([I(0,m.IBufferService),I(1,m.ILogService),I(2,m.IUnicodeService)],t)}();N.Linkifier=f;var s=function(l,a,r,u,e,n,i,c,d){this.x1=l,this.y1=a,this.x2=r,this.y2=u,this.clickCallback=e,this.hoverCallback=n,this.tooltipCallback=i,this.leaveCallback=c,this.willLinkActivate=d};N.MouseZone=s},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(p,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var x in A)A.hasOwnProperty(x)&&(v[x]=A[x])})(p,g)},function(h,p){function g(){this.constructor=h}E(h,p),h.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}),o=this&&this.__decorate||function(h,p,g,v){var A,x=arguments.length,b=x<3?p:v===null?v=Object.getOwnPropertyDescriptor(p,g):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(h,p,g,v);else for(var w=h.length-1;w>=0;w--)(A=h[w])&&(b=(x<3?A(b):x>3?A(p,g,b):A(p,g))||b);return x>3&&b&&Object.defineProperty(p,g,b),b},m=this&&this.__param||function(h,p){return function(g,v){p(g,v,h)}};Object.defineProperty(N,"__esModule",{value:!0}),N.SelectionService=void 0;var f=L(11),s=L(52),t=L(4),l=L(0),a=L(5),r=L(1),u=L(30),e=L(53),n=L(2),i=String.fromCharCode(160),c=new RegExp(i,"g"),d=function(h){function p(g,v,A,x,b,w,S){var T=h.call(this)||this;return T._element=g,T._screenElement=v,T._bufferService=A,T._coreService=x,T._mouseService=b,T._optionsService=w,T._renderService=S,T._dragScrollAmount=0,T._enabled=!0,T._workCell=new t.CellData,T._mouseDownTimeStamp=0,T._onLinuxMouseSelection=T.register(new l.EventEmitter),T._onRedrawRequest=T.register(new l.EventEmitter),T._onSelectionChange=T.register(new l.EventEmitter),T._onRequestScrollLines=T.register(new l.EventEmitter),T._mouseMoveListener=function(C){return T._onMouseMove(C)},T._mouseUpListener=function(C){return T._onMouseUp(C)},T._coreService.onUserInput(function(){T.hasSelection&&T.clearSelection()}),T._trimListener=T._bufferService.buffer.lines.onTrim(function(C){return T._onTrim(C)}),T.register(T._bufferService.buffers.onBufferActivate(function(C){return T._onBufferActivate(C)})),T.enable(),T._model=new s.SelectionModel(T._bufferService),T._activeSelectionMode=0,T}return I(p,h),Object.defineProperty(p.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),p.prototype.dispose=function(){this._removeMouseDownListeners()},p.prototype.reset=function(){this.clearSelection()},p.prototype.disable=function(){this.clearSelection(),this._enabled=!1},p.prototype.enable=function(){this._enabled=!0},Object.defineProperty(p.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"hasSelection",{get:function(){var v=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;return!(!v||!A)&&(v[0]!==A[0]||v[1]!==A[1])},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"selectionText",{get:function(){var v=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;if(!v||!A)return"";var x=this._bufferService.buffer,b=[];if(this._activeSelectionMode===3){if(v[0]===A[0])return"";for(var w=v[1];w<=A[1];w++){var S=x.translateBufferLineToString(w,!0,v[0],A[0]);b.push(S)}}else{var T=v[1]===A[1]?A[0]:void 0;for(b.push(x.translateBufferLineToString(v[1],!0,v[0],T)),w=v[1]+1;w<=A[1]-1;w++){var C=x.lines.get(w);S=x.translateBufferLineToString(w,!0),C&&C.isWrapped?b[b.length-1]+=S:b.push(S)}v[1]!==A[1]&&(C=x.lines.get(A[1]),S=x.translateBufferLineToString(A[1],!0,0,A[0]),C&&C.isWrapped?b[b.length-1]+=S:b.push(S))}return b.map(function(O){return O.replace(c," ")}).join(f.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),p.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},p.prototype.refresh=function(g){var v=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return v._refresh()})),f.isLinux&&g)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},p.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},p.prototype.isClickInSelection=function(g){var v=this._getMouseBufferCoords(g),A=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;return!!(A&&x&&v)&&this._areCoordsInSelection(v,A,x)},p.prototype._areCoordsInSelection=function(g,v,A){return g[1]>v[1]&&g[1]<A[1]||v[1]===A[1]&&g[1]===v[1]&&g[0]>=v[0]&&g[0]<A[0]||v[1]<A[1]&&g[1]===A[1]&&g[0]<A[0]||v[1]<A[1]&&g[1]===v[1]&&g[0]>=v[0]},p.prototype.selectWordAtCursor=function(g){var v=this._getMouseBufferCoords(g);v&&(this._selectWordAt(v,!1),this._model.selectionEnd=void 0,this.refresh(!0))},p.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},p.prototype.selectLines=function(g,v){this._model.clearSelection(),g=Math.max(g,0),v=Math.min(v,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,g],this._model.selectionEnd=[this._bufferService.cols,v],this.refresh(),this._onSelectionChange.fire()},p.prototype._onTrim=function(g){this._model.onTrim(g)&&this.refresh()},p.prototype._getMouseBufferCoords=function(g){var v=this._mouseService.getCoords(g,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(v)return v[0]--,v[1]--,v[1]+=this._bufferService.buffer.ydisp,v},p.prototype._getMouseEventScrollAmount=function(g){var v=u.getCoordsRelativeToElement(g,this._screenElement)[1],A=this._renderService.dimensions.canvasHeight;return v>=0&&v<=A?0:(v>A&&(v-=A),v=Math.min(Math.max(v,-50),50),(v/=50)/Math.abs(v)+Math.round(14*v))},p.prototype.shouldForceSelection=function(g){return f.isMac?g.altKey&&this._optionsService.options.macOptionClickForcesSelection:g.shiftKey},p.prototype.onMouseDown=function(g){if(this._mouseDownTimeStamp=g.timeStamp,(g.button!==2||!this.hasSelection)&&g.button===0){if(!this._enabled){if(!this.shouldForceSelection(g))return;g.stopPropagation()}g.preventDefault(),this._dragScrollAmount=0,this._enabled&&g.shiftKey?this._onIncrementalClick(g):g.detail===1?this._onSingleClick(g):g.detail===2?this._onDoubleClick(g):g.detail===3&&this._onTripleClick(g),this._addMouseDownListeners(),this.refresh(!0)}},p.prototype._addMouseDownListeners=function(){var g=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return g._dragScroll()},50)},p.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},p.prototype._onIncrementalClick=function(g){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(g))},p.prototype._onSingleClick=function(g){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(g)?3:0,this._model.selectionStart=this._getMouseBufferCoords(g),this._model.selectionStart){this._model.selectionEnd=void 0;var v=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);v&&v.length!==this._model.selectionStart[0]&&v.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},p.prototype._onDoubleClick=function(g){var v=this._getMouseBufferCoords(g);v&&(this._activeSelectionMode=1,this._selectWordAt(v,!0))},p.prototype._onTripleClick=function(g){var v=this._getMouseBufferCoords(g);v&&(this._activeSelectionMode=2,this._selectLineAt(v[1]))},p.prototype.shouldColumnSelect=function(g){return g.altKey&&!(f.isMac&&this._optionsService.options.macOptionClickForcesSelection)},p.prototype._onMouseMove=function(g){if(g.stopImmediatePropagation(),this._model.selectionStart){var v=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(g),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(g),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var A=this._bufferService.buffer;if(this._model.selectionEnd[1]<A.lines.length){var x=A.lines.get(this._model.selectionEnd[1]);x&&x.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}v&&v[0]===this._model.selectionEnd[0]&&v[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},p.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var g=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(g.ydisp+this._bufferService.rows,g.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=g.ydisp),this.refresh()}},p.prototype._onMouseUp=function(g){var v=g.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&v<500&&g.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var A=this._mouseService.getCoords(g,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(A&&A[0]!==void 0&&A[1]!==void 0){var x=e.moveToCellSequence(A[0]-1,A[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(x,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},p.prototype._onBufferActivate=function(g){var v=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=g.activeBuffer.lines.onTrim(function(A){return v._onTrim(A)})},p.prototype._convertViewportColToCharacterIndex=function(g,v){for(var A=v[0],x=0;v[0]>=x;x++){var b=g.loadCell(x,this._workCell).getChars().length;this._workCell.getWidth()===0?A--:b>1&&v[0]!==x&&(A+=b-1)}return A},p.prototype.setSelection=function(g,v,A){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[g,v],this._model.selectionStartLength=A,this.refresh()},p.prototype._getWordAt=function(g,v,A,x){if(A===void 0&&(A=!0),x===void 0&&(x=!0),!(g[0]>=this._bufferService.cols)){var b=this._bufferService.buffer,w=b.lines.get(g[1]);if(w){var S=b.translateBufferLineToString(g[1],!1),T=this._convertViewportColToCharacterIndex(w,g),C=T,O=g[0]-T,_=0,M=0,k=0,R=0;if(S.charAt(T)===" "){for(;T>0&&S.charAt(T-1)===" ";)T--;for(;C<S.length&&S.charAt(C+1)===" ";)C++}else{var B=g[0],P=g[0];w.getWidth(B)===0&&(_++,B--),w.getWidth(P)===2&&(M++,P++);var U=w.getString(P).length;for(U>1&&(R+=U-1,C+=U-1);B>0&&T>0&&!this._isCharWordSeparator(w.loadCell(B-1,this._workCell));){w.loadCell(B-1,this._workCell);var j=this._workCell.getChars().length;this._workCell.getWidth()===0?(_++,B--):j>1&&(k+=j-1,T-=j-1),T--,B--}for(;P<w.length&&C+1<S.length&&!this._isCharWordSeparator(w.loadCell(P+1,this._workCell));){w.loadCell(P+1,this._workCell);var H=this._workCell.getChars().length;this._workCell.getWidth()===2?(M++,P++):H>1&&(R+=H-1,C+=H-1),C++,P++}}C++;var W=T+O-_+k,G=Math.min(this._bufferService.cols,C-T+_+M-k-R);if(v||S.slice(T,C).trim()!==""){if(A&&W===0&&w.getCodePoint(0)!==32){var V=b.lines.get(g[1]-1);if(V&&w.isWrapped&&V.getCodePoint(this._bufferService.cols-1)!==32){var Z=this._getWordAt([this._bufferService.cols-1,g[1]-1],!1,!0,!1);if(Z){var Y=this._bufferService.cols-Z.start;W-=Y,G+=Y}}}if(x&&W+G===this._bufferService.cols&&w.getCodePoint(this._bufferService.cols-1)!==32){var Q=b.lines.get(g[1]+1);if(Q&&Q.isWrapped&&Q.getCodePoint(0)!==32){var oe=this._getWordAt([0,g[1]+1],!1,!1,!0);oe&&(G+=oe.length)}}return{start:W,length:G}}}}},p.prototype._selectWordAt=function(g,v){var A=this._getWordAt(g,v);if(A){for(;A.start<0;)A.start+=this._bufferService.cols,g[1]--;this._model.selectionStart=[A.start,g[1]],this._model.selectionStartLength=A.length}},p.prototype._selectToWordAt=function(g){var v=this._getWordAt(g,!0);if(v){for(var A=g[1];v.start<0;)v.start+=this._bufferService.cols,A--;if(!this._model.areSelectionValuesReversed())for(;v.start+v.length>this._bufferService.cols;)v.length-=this._bufferService.cols,A++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?v.start:v.start+v.length,A]}},p.prototype._isCharWordSeparator=function(g){return g.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(g.getChars())>=0},p.prototype._selectLineAt=function(g){var v=this._bufferService.buffer.getWrappedRangeForLine(g);this._model.selectionStart=[0,v.first],this._model.selectionEnd=[this._bufferService.cols,v.last],this._model.selectionStartLength=0},p=o([m(2,r.IBufferService),m(3,r.ICoreService),m(4,a.IMouseService),m(5,r.IOptionsService),m(6,a.IRenderService)],p)}(n.Disposable);N.SelectionService=d},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.SelectionModel=void 0;var E=function(){function I(o){this._bufferService=o,this.isSelectAllActive=!1,this.selectionStartLength=0}return I.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(I.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(I.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 m=this.selectionStart[0]+this.selectionStartLength;return m>this._bufferService.cols?[m%this._bufferService.cols,this.selectionStart[1]+Math.floor(m/this._bufferService.cols)]:[m,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}),I.prototype.areSelectionValuesReversed=function(){var o=this.selectionStart,m=this.selectionEnd;return!(!o||!m)&&(o[1]>m[1]||o[1]===m[1]&&o[0]>m[0])},I.prototype.onTrim=function(o){return this.selectionStart&&(this.selectionStart[1]-=o),this.selectionEnd&&(this.selectionEnd[1]-=o),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},I}();N.SelectionModel=E},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.moveToCellSequence=void 0;var E=L(12);function I(l,a,r,u){var e=l-o(r,l),n=a-o(r,a);return t(Math.abs(e-n)-function(i,c,d){for(var h=0,p=i-o(d,i),g=c-o(d,c),v=0;v<Math.abs(p-g);v++){var A=m(i,c)==="A"?-1:1,x=d.buffer.lines.get(p+A*v);x&&x.isWrapped&&h++}return h}(l,a,r),s(m(l,a),u))}function o(l,a){for(var r=0,u=l.buffer.lines.get(a),e=u&&u.isWrapped;e&&a>=0&&a<l.rows;)r++,e=(u=l.buffer.lines.get(--a))&&u.isWrapped;return r}function m(l,a){return l>a?"A":"B"}function f(l,a,r,u,e,n){for(var i=l,c=a,d="";i!==r||c!==u;)i+=e?1:-1,e&&i>n.cols-1?(d+=n.buffer.translateBufferLineToString(c,!1,l,i),i=0,l=0,c++):!e&&i<0&&(d+=n.buffer.translateBufferLineToString(c,!1,0,l+1),l=i=n.cols-1,c--);return d+n.buffer.translateBufferLineToString(c,!1,l,i)}function s(l,a){var r=a?"O":"[";return E.C0.ESC+r+l}function t(l,a){l=Math.floor(l);for(var r="",u=0;u<l;u++)r+=a;return r}N.moveToCellSequence=function(l,a,r,u){var e,n=r.buffer.x,i=r.buffer.y;if(!r.buffer.hasScrollback)return function(d,h,p,g,v,A){return I(h,g,v,A).length===0?"":t(f(d,h,d,h-o(v,h),!1,v).length,s("D",A))}(n,i,0,a,r,u)+I(i,a,r,u)+function(d,h,p,g,v,A){var x;x=I(h,g,v,A).length>0?g-o(v,g):h;var b=g,w=function(S,T,C,O,_,M){var k;return k=I(C,O,_,M).length>0?O-o(_,O):T,S<C&&k<=O||S>=C&&k<O?"C":"D"}(d,h,p,g,v,A);return t(f(d,x,p,b,w==="C",v).length,s(w,A))}(n,i,l,a,r,u);if(i===a)return e=n>l?"D":"C",t(Math.abs(n-l),s(e,u));e=i>a?"D":"C";var c=Math.abs(i-a);return t(function(d,h){return h.cols-d}(i>a?l:n,r)+(c-1)*r.cols+1+((i>a?n:l)-1),s(e,u))}},function(D,N,L){"use strict";var E=this&&this.__decorate||function(f,s,t,l){var a,r=arguments.length,u=r<3?s:l===null?l=Object.getOwnPropertyDescriptor(s,t):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(f,s,t,l);else for(var e=f.length-1;e>=0;e--)(a=f[e])&&(u=(r<3?a(u):r>3?a(s,t,u):a(s,t))||u);return r>3&&u&&Object.defineProperty(s,t,u),u},I=this&&this.__param||function(f,s){return function(t,l){s(t,l,f)}};Object.defineProperty(N,"__esModule",{value:!0}),N.SoundService=void 0;var o=L(1),m=function(){function f(s){this._optionsService=s}return Object.defineProperty(f,"audioContext",{get:function(){if(!f._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;f._audioContext=new t}return f._audioContext},enumerable:!1,configurable:!0}),f.prototype.playBellSound=function(){var s=f.audioContext;if(s){var t=s.createBufferSource();s.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(l){t.buffer=l,t.connect(s.destination),t.start(0)})}},f.prototype._base64ToArrayBuffer=function(s){for(var t=window.atob(s),l=t.length,a=new Uint8Array(l),r=0;r<l;r++)a[r]=t.charCodeAt(r);return a.buffer},f.prototype._removeMimeType=function(s){return s.split(",")[1]},f=E([I(0,o.IOptionsService)],f)}();N.SoundService=m},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(u,e){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])})(u,e)},function(r,u){function e(){this.constructor=r}E(r,u),r.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)}),o=this&&this.__decorate||function(r,u,e,n){var i,c=arguments.length,d=c<3?u:n===null?n=Object.getOwnPropertyDescriptor(u,e):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,u,e,n);else for(var h=r.length-1;h>=0;h--)(i=r[h])&&(d=(c<3?i(d):c>3?i(u,e,d):i(u,e))||d);return c>3&&d&&Object.defineProperty(u,e,d),d},m=this&&this.__param||function(r,u){return function(e,n){u(e,n,r)}};Object.defineProperty(N,"__esModule",{value:!0}),N.MouseZoneManager=void 0;var f=L(2),s=L(7),t=L(5),l=L(1),a=function(r){function u(e,n,i,c,d,h){var p=r.call(this)||this;return p._element=e,p._screenElement=n,p._bufferService=i,p._mouseService=c,p._selectionService=d,p._optionsService=h,p._zones=[],p._areZonesActive=!1,p._lastHoverCoords=[void 0,void 0],p._initialSelectionLength=0,p.register(s.addDisposableDomListener(p._element,"mousedown",function(g){return p._onMouseDown(g)})),p._mouseMoveListener=function(g){return p._onMouseMove(g)},p._mouseLeaveListener=function(g){return p._onMouseLeave(g)},p._clickListener=function(g){return p._onClick(g)},p}return I(u,r),u.prototype.dispose=function(){r.prototype.dispose.call(this),this._deactivate()},u.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},u.prototype.clearAll=function(e,n){if(this._zones.length!==0){e&&n||(e=0,n=this._bufferService.rows-1);for(var i=0;i<this._zones.length;i++){var c=this._zones[i];(c.y1>e&&c.y1<=n+1||c.y2>e&&c.y2<=n+1||c.y1<e&&c.y2>n+1)&&(this._currentZone&&this._currentZone===c&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(i--,1))}this._zones.length===0&&this._deactivate()}},u.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))},u.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))},u.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},u.prototype._onHover=function(e){var n=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&(this._currentZone=i,i.hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return n._onTooltip(e)},this._optionsService.options.linkTooltipHoverDuration)))},u.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var n=this._findZoneEventAt(e);n&&n.tooltipCallback&&n.tooltipCallback(e)},u.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var n=this._findZoneEventAt(e);(n==null?void 0:n.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},u.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},u.prototype._onClick=function(e){var n=this._findZoneEventAt(e),i=this._getSelectionLength();n&&i===this._initialSelectionLength&&(n.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},u.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},u.prototype._findZoneEventAt=function(e){var n=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(n)for(var i=n[0],c=n[1],d=0;d<this._zones.length;d++){var h=this._zones[d];if(h.y1===h.y2){if(c===h.y1&&i>=h.x1&&i<h.x2)return h}else if(c===h.y1&&i>=h.x1||c===h.y2&&i<h.x2||c>h.y1&&c<h.y2)return h}},u=o([m(2,l.IBufferService),m(3,t.IMouseService),m(4,t.ISelectionService),m(5,l.IOptionsService)],u)}(f.Disposable);N.MouseZoneManager=a},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(e,n){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,c){i.__proto__=c}||function(i,c){for(var d in c)c.hasOwnProperty(d)&&(i[d]=c[d])})(e,n)},function(u,e){function n(){this.constructor=u}E(u,e),u.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(N,"__esModule",{value:!0}),N.AccessibilityManager=void 0;var o=L(18),m=L(11),f=L(31),s=L(7),t=L(2),l=L(32),a=L(17),r=function(u){function e(n,i){var c=u.call(this)||this;c._terminal=n,c._renderService=i,c._liveRegionLineCount=0,c._charsToConsume=[],c._charsToAnnounce="",c._accessibilityTreeRoot=document.createElement("div"),c._accessibilityTreeRoot.classList.add("xterm-accessibility"),c._rowContainer=document.createElement("div"),c._rowContainer.classList.add("xterm-accessibility-tree"),c._rowContainer.setAttribute("role","list"),c._rowElements=[];for(var d=0;d<c._terminal.rows;d++)c._rowElements[d]=c._createAccessibilityTreeNode(),c._rowContainer.appendChild(c._rowElements[d]);if(c._topBoundaryFocusListener=function(h){return c._onBoundaryFocus(h,0)},c._bottomBoundaryFocusListener=function(h){return c._onBoundaryFocus(h,1)},c._rowElements[0].addEventListener("focus",c._topBoundaryFocusListener),c._rowElements[c._rowElements.length-1].addEventListener("focus",c._bottomBoundaryFocusListener),c._refreshRowsDimensions(),c._accessibilityTreeRoot.appendChild(c._rowContainer),c._renderRowsDebouncer=new f.RenderDebouncer(c._renderRows.bind(c)),c._refreshRows(),c._liveRegion=document.createElement("div"),c._liveRegion.classList.add("live-region"),c._liveRegion.setAttribute("aria-live","assertive"),c._accessibilityTreeRoot.appendChild(c._liveRegion),!c._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return c._terminal.element.insertAdjacentElement("afterbegin",c._accessibilityTreeRoot),c.register(c._renderRowsDebouncer),c.register(c._terminal.onResize(function(h){return c._onResize(h.rows)})),c.register(c._terminal.onRender(function(h){return c._refreshRows(h.start,h.end)})),c.register(c._terminal.onScroll(function(){return c._refreshRows()})),c.register(c._terminal.onA11yChar(function(h){return c._onChar(h)})),c.register(c._terminal.onLineFeed(function(){return c._onChar(`
|
|
|
`)})),c.register(c._terminal.onA11yTab(function(h){return c._onTab(h)})),c.register(c._terminal.onKey(function(h){return c._onKey(h.key)})),c.register(c._terminal.onBlur(function(){return c._clearLiveRegion()})),c.register(c._renderService.onDimensionsChange(function(){return c._refreshRowsDimensions()})),c._screenDprMonitor=new l.ScreenDprMonitor,c.register(c._screenDprMonitor),c._screenDprMonitor.setListener(function(){return c._refreshRowsDimensions()}),c.register(s.addDisposableDomListener(window,"resize",function(){return c._refreshRowsDimensions()})),c}return I(e,u),e.prototype.dispose=function(){u.prototype.dispose.call(this),a.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},e.prototype._onBoundaryFocus=function(n,i){var c=n.target,d=this._rowElements[i===0?1:this._rowElements.length-2];if(c.getAttribute("aria-posinset")!==(i===0?"1":""+this._terminal.buffer.lines.length)&&n.relatedTarget===d){var h,p;if(i===0?(h=c,p=this._rowElements.pop(),this._rowContainer.removeChild(p)):(h=this._rowElements.shift(),p=c,this._rowContainer.removeChild(h)),h.removeEventListener("focus",this._topBoundaryFocusListener),p.removeEventListener("focus",this._bottomBoundaryFocusListener),i===0){var g=this._createAccessibilityTreeNode();this._rowElements.unshift(g),this._rowContainer.insertAdjacentElement("afterbegin",g)}else g=this._createAccessibilityTreeNode(),this._rowElements.push(g),this._rowContainer.appendChild(g);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(i===0?-1:1),this._rowElements[i===0?1:this._rowElements.length-2].focus(),n.preventDefault(),n.stopImmediatePropagation()}},e.prototype._onResize=function(n){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var i=this._rowContainer.children.length;i<this._terminal.rows;i++)this._rowElements[i]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[i]);for(;this._rowElements.length>n;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var n=document.createElement("div");return n.setAttribute("role","listitem"),n.tabIndex=-1,this._refreshRowDimensions(n),n},e.prototype._onTab=function(n){for(var i=0;i<n;i++)this._onChar(" ")},e.prototype._onChar=function(n){var i=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==n&&(this._charsToAnnounce+=n):this._charsToAnnounce+=n,n===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=o.tooMuchOutput)),m.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){i._accessibilityTreeRoot.appendChild(i._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,m.isMac&&a.removeElementFromParent(this._liveRegion)},e.prototype._onKey=function(n){this._clearLiveRegion(),this._charsToConsume.push(n)},e.prototype._refreshRows=function(n,i){this._renderRowsDebouncer.refresh(n,i,this._terminal.rows)},e.prototype._renderRows=function(n,i){for(var c=this._terminal.buffer,d=c.lines.length.toString(),h=n;h<=i;h++){var p=c.translateBufferLineToString(c.ydisp+h,!0),g=(c.ydisp+h+1).toString(),v=this._rowElements[h];v&&(p.length===0?v.innerHTML=" ":v.textContent=p,v.setAttribute("aria-posinset",g),v.setAttribute("aria-setsize",d))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var n=0;n<this._terminal.rows;n++)this._refreshRowDimensions(this._rowElements[n])}},e.prototype._refreshRowDimensions=function(n){n.style.height=this._renderService.dimensions.actualCellHeight+"px"},e.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},e}(t.Disposable);N.AccessibilityManager=r},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(d,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var v in g)g.hasOwnProperty(v)&&(p[v]=g[v])})(d,h)},function(c,d){function h(){this.constructor=c}E(c,d),c.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}),o=this&&this.__decorate||function(c,d,h,p){var g,v=arguments.length,A=v<3?d:p===null?p=Object.getOwnPropertyDescriptor(d,h):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(c,d,h,p);else for(var x=c.length-1;x>=0;x--)(g=c[x])&&(A=(v<3?g(A):v>3?g(d,h,A):g(d,h))||A);return v>3&&A&&Object.defineProperty(d,h,A),A},m=this&&this.__param||function(c,d){return function(h,p){d(h,p,c)}};Object.defineProperty(N,"__esModule",{value:!0}),N.DomRenderer=void 0;var f=L(58),s=L(9),t=L(2),l=L(5),a=L(1),r=L(0),u=L(10),e=L(17),n=1,i=function(c){function d(h,p,g,v,A,x,b,w,S){var T=c.call(this)||this;return T._colors=h,T._element=p,T._screenElement=g,T._viewportElement=v,T._linkifier=A,T._linkifier2=x,T._charSizeService=b,T._optionsService=w,T._bufferService=S,T._terminalClass=n++,T._rowElements=[],T._rowContainer=document.createElement("div"),T._rowContainer.classList.add("xterm-rows"),T._rowContainer.style.lineHeight="normal",T._rowContainer.setAttribute("aria-hidden","true"),T._refreshRowElements(T._bufferService.cols,T._bufferService.rows),T._selectionContainer=document.createElement("div"),T._selectionContainer.classList.add("xterm-selection"),T._selectionContainer.setAttribute("aria-hidden","true"),T.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},T._updateDimensions(),T._injectCss(),T._rowFactory=new f.DomRendererRowFactory(document,T._optionsService,T._colors),T._element.classList.add("xterm-dom-renderer-owner-"+T._terminalClass),T._screenElement.appendChild(T._rowContainer),T._screenElement.appendChild(T._selectionContainer),T._linkifier.onShowLinkUnderline(function(C){return T._onLinkHover(C)}),T._linkifier.onHideLinkUnderline(function(C){return T._onLinkLeave(C)}),T._linkifier2.onShowLinkUnderline(function(C){return T._onLinkHover(C)}),T._linkifier2.onHideLinkUnderline(function(C){return T._onLinkLeave(C)}),T}return I(d,c),Object.defineProperty(d.prototype,"onRequestRedraw",{get:function(){return new r.EventEmitter().event},enumerable:!1,configurable:!0}),d.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),e.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),c.prototype.dispose.call(this)},d.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 h=0,p=this._rowElements;h<p.length;h++){var g=p[h];g.style.width=this.dimensions.canvasWidth+"px",g.style.height=this.dimensions.actualCellHeight+"px",g.style.lineHeight=this.dimensions.actualCellHeight+"px",g.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var v=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=v,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},d.prototype.setColors=function(h){this._colors=h,this._injectCss()},d.prototype._injectCss=function(){var h=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var p=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";p+=this._terminalSelector+" span:not(."+f.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+f.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+f.ITALIC_CLASS+" { font-style: italic;}",p+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",p+="@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+"; }}",p+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+f.CURSOR_CLASS+"."+f.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+f.CURSOR_CLASS+"."+f.CURSOR_BLINK_CLASS+":not(."+f.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+f.CURSOR_CLASS+"."+f.CURSOR_BLINK_CLASS+"."+f.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+f.CURSOR_CLASS+"."+f.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+f.CURSOR_CLASS+"."+f.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+f.CURSOR_CLASS+"."+f.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",p+=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(g,v){p+=h._terminalSelector+" .xterm-fg-"+v+" { color: "+g.css+"; }"+h._terminalSelector+" .xterm-bg-"+v+" { background-color: "+g.css+"; }"}),p+=this._terminalSelector+" .xterm-fg-"+s.INVERTED_DEFAULT_COLOR+" { color: "+u.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+s.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=p},d.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},d.prototype._refreshRowElements=function(h,p){for(var g=this._rowElements.length;g<=p;g++){var v=document.createElement("div");this._rowContainer.appendChild(v),this._rowElements.push(v)}for(;this._rowElements.length>p;)this._rowContainer.removeChild(this._rowElements.pop())},d.prototype.onResize=function(h,p){this._refreshRowElements(h,p),this._updateDimensions()},d.prototype.onCharSizeChanged=function(){this._updateDimensions()},d.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},d.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},d.prototype.onSelectionChanged=function(h,p,g){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(h&&p){var v=h[1]-this._bufferService.buffer.ydisp,A=p[1]-this._bufferService.buffer.ydisp,x=Math.max(v,0),b=Math.min(A,this._bufferService.rows-1);if(!(x>=this._bufferService.rows||b<0)){var w=document.createDocumentFragment();if(g)w.appendChild(this._createSelectionElement(x,h[0],p[0],b-x+1));else{var S=v===x?h[0]:0,T=x===b?p[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(x,S,T));var C=b-x-1;if(w.appendChild(this._createSelectionElement(x+1,0,this._bufferService.cols,C)),x!==b){var O=A===b?p[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(b,0,O))}}this._selectionContainer.appendChild(w)}}},d.prototype._createSelectionElement=function(h,p,g,v){v===void 0&&(v=1);var A=document.createElement("div");return A.style.height=v*this.dimensions.actualCellHeight+"px",A.style.top=h*this.dimensions.actualCellHeight+"px",A.style.left=p*this.dimensions.actualCellWidth+"px",A.style.width=this.dimensions.actualCellWidth*(g-p)+"px",A},d.prototype.onCursorMove=function(){},d.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},d.prototype.clear=function(){for(var h=0,p=this._rowElements;h<p.length;h++)p[h].innerHTML=""},d.prototype.renderRows=function(h,p){for(var g=this._bufferService.buffer.ybase+this._bufferService.buffer.y,v=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),A=this._optionsService.options.cursorBlink,x=h;x<=p;x++){var b=this._rowElements[x];b.innerHTML="";var w=x+this._bufferService.buffer.ydisp,S=this._bufferService.buffer.lines.get(w),T=this._optionsService.options.cursorStyle;b.appendChild(this._rowFactory.createRow(S,w===g,T,v,A,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(d.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),d.prototype.registerCharacterJoiner=function(h){return-1},d.prototype.deregisterCharacterJoiner=function(h){return!1},d.prototype._onLinkHover=function(h){this._setCellUnderline(h.x1,h.x2,h.y1,h.y2,h.cols,!0)},d.prototype._onLinkLeave=function(h){this._setCellUnderline(h.x1,h.x2,h.y1,h.y2,h.cols,!1)},d.prototype._setCellUnderline=function(h,p,g,v,A,x){for(;h!==p||g!==v;){var b=this._rowElements[g];if(!b)return;var w=b.children[h];w&&(w.style.textDecoration=x?"underline":"none"),++h>=A&&(h=0,g++)}},d=o([m(6,l.ICharSizeService),m(7,a.IOptionsService),m(8,a.IBufferService)],d)}(t.Disposable);N.DomRenderer=i},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.DomRendererRowFactory=N.CURSOR_STYLE_UNDERLINE_CLASS=N.CURSOR_STYLE_BAR_CLASS=N.CURSOR_STYLE_BLOCK_CLASS=N.CURSOR_BLINK_CLASS=N.CURSOR_CLASS=N.UNDERLINE_CLASS=N.ITALIC_CLASS=N.DIM_CLASS=N.BOLD_CLASS=void 0;var E=L(9),I=L(3),o=L(4),m=L(10);N.BOLD_CLASS="xterm-bold",N.DIM_CLASS="xterm-dim",N.ITALIC_CLASS="xterm-italic",N.UNDERLINE_CLASS="xterm-underline",N.CURSOR_CLASS="xterm-cursor",N.CURSOR_BLINK_CLASS="xterm-cursor-blink",N.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",N.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",N.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var f=function(){function t(l,a,r){this._document=l,this._optionsService=a,this._colors=r,this._workCell=new o.CellData}return t.prototype.setColors=function(l){this._colors=l},t.prototype.createRow=function(l,a,r,u,e,n,i){for(var c=this._document.createDocumentFragment(),d=0,h=Math.min(l.length,i)-1;h>=0;h--)if(l.loadCell(h,this._workCell).getCode()!==I.NULL_CELL_CODE||a&&h===u){d=h+1;break}for(h=0;h<d;h++){l.loadCell(h,this._workCell);var p=this._workCell.getWidth();if(p!==0){var g=this._document.createElement("span");if(p>1&&(g.style.width=n*p+"px"),a&&h===u)switch(g.classList.add(N.CURSOR_CLASS),e&&g.classList.add(N.CURSOR_BLINK_CLASS),r){case"bar":g.classList.add(N.CURSOR_STYLE_BAR_CLASS);break;case"underline":g.classList.add(N.CURSOR_STYLE_UNDERLINE_CLASS);break;default:g.classList.add(N.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&g.classList.add(N.BOLD_CLASS),this._workCell.isItalic()&&g.classList.add(N.ITALIC_CLASS),this._workCell.isDim()&&g.classList.add(N.DIM_CLASS),this._workCell.isUnderline()&&g.classList.add(N.UNDERLINE_CLASS),this._workCell.isInvisible()?g.textContent=I.WHITESPACE_CELL_CHAR:g.textContent=this._workCell.getChars()||I.WHITESPACE_CELL_CHAR;var v=this._workCell.getFgColor(),A=this._workCell.getFgColorMode(),x=this._workCell.getBgColor(),b=this._workCell.getBgColorMode(),w=!!this._workCell.isInverse();if(w){var S=v;v=x,x=S;var T=A;A=b,b=T}switch(A){case 16777216:case 33554432:this._workCell.isBold()&&v<8&&this._optionsService.options.drawBoldTextInBrightColors&&(v+=8),this._applyMinimumContrast(g,this._colors.background,this._colors.ansi[v])||g.classList.add("xterm-fg-"+v);break;case 50331648:var C=m.rgba.toColor(v>>16&255,v>>8&255,255&v);this._applyMinimumContrast(g,this._colors.background,C)||this._addStyle(g,"color:#"+s(v.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(g,this._colors.background,this._colors.foreground)||w&&g.classList.add("xterm-fg-"+E.INVERTED_DEFAULT_COLOR)}switch(b){case 16777216:case 33554432:g.classList.add("xterm-bg-"+x);break;case 50331648:this._addStyle(g,"background-color:#"+s(x.toString(16),"0",6));break;case 0:default:w&&g.classList.add("xterm-bg-"+E.INVERTED_DEFAULT_COLOR)}c.appendChild(g)}}return c},t.prototype._applyMinimumContrast=function(l,a,r){if(this._optionsService.options.minimumContrastRatio===1)return!1;var u=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return u===void 0&&(u=m.color.ensureContrastRatio(a,r,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,u!=null?u:null)),!!u&&(this._addStyle(l,"color:"+u.css),!0)},t.prototype._addStyle=function(l,a){l.setAttribute("style",""+(l.getAttribute("style")||"")+a+";")},t}();function s(t,l,a){for(;t.length<a;)t=l+t;return t}N.DomRendererRowFactory=f},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.evaluateKeyboardEvent=void 0;var E=L(12),I={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:["'",'"']};N.evaluateKeyboardEvent=function(o,m,f,s){var t={type:0,cancel:!1,key:void 0},l=(o.shiftKey?1:0)|(o.altKey?2:0)|(o.ctrlKey?4:0)|(o.metaKey?8:0);switch(o.keyCode){case 0:o.key==="UIKeyInputUpArrow"?t.key=m?E.C0.ESC+"OA":E.C0.ESC+"[A":o.key==="UIKeyInputLeftArrow"?t.key=m?E.C0.ESC+"OD":E.C0.ESC+"[D":o.key==="UIKeyInputRightArrow"?t.key=m?E.C0.ESC+"OC":E.C0.ESC+"[C":o.key==="UIKeyInputDownArrow"&&(t.key=m?E.C0.ESC+"OB":E.C0.ESC+"[B");break;case 8:if(o.shiftKey){t.key=E.C0.BS;break}if(o.altKey){t.key=E.C0.ESC+E.C0.DEL;break}t.key=E.C0.DEL;break;case 9:if(o.shiftKey){t.key=E.C0.ESC+"[Z";break}t.key=E.C0.HT,t.cancel=!0;break;case 13:t.key=o.altKey?E.C0.ESC+E.C0.CR:E.C0.CR,t.cancel=!0;break;case 27:t.key=E.C0.ESC,o.altKey&&(t.key=E.C0.ESC+E.C0.ESC),t.cancel=!0;break;case 37:if(o.metaKey)break;l?(t.key=E.C0.ESC+"[1;"+(l+1)+"D",t.key===E.C0.ESC+"[1;3D"&&(t.key=E.C0.ESC+(f?"b":"[1;5D"))):t.key=m?E.C0.ESC+"OD":E.C0.ESC+"[D";break;case 39:if(o.metaKey)break;l?(t.key=E.C0.ESC+"[1;"+(l+1)+"C",t.key===E.C0.ESC+"[1;3C"&&(t.key=E.C0.ESC+(f?"f":"[1;5C"))):t.key=m?E.C0.ESC+"OC":E.C0.ESC+"[C";break;case 38:if(o.metaKey)break;l?(t.key=E.C0.ESC+"[1;"+(l+1)+"A",f||t.key!==E.C0.ESC+"[1;3A"||(t.key=E.C0.ESC+"[1;5A")):t.key=m?E.C0.ESC+"OA":E.C0.ESC+"[A";break;case 40:if(o.metaKey)break;l?(t.key=E.C0.ESC+"[1;"+(l+1)+"B",f||t.key!==E.C0.ESC+"[1;3B"||(t.key=E.C0.ESC+"[1;5B")):t.key=m?E.C0.ESC+"OB":E.C0.ESC+"[B";break;case 45:o.shiftKey||o.ctrlKey||(t.key=E.C0.ESC+"[2~");break;case 46:t.key=l?E.C0.ESC+"[3;"+(l+1)+"~":E.C0.ESC+"[3~";break;case 36:t.key=l?E.C0.ESC+"[1;"+(l+1)+"H":m?E.C0.ESC+"OH":E.C0.ESC+"[H";break;case 35:t.key=l?E.C0.ESC+"[1;"+(l+1)+"F":m?E.C0.ESC+"OF":E.C0.ESC+"[F";break;case 33:o.shiftKey?t.type=2:t.key=E.C0.ESC+"[5~";break;case 34:o.shiftKey?t.type=3:t.key=E.C0.ESC+"[6~";break;case 112:t.key=l?E.C0.ESC+"[1;"+(l+1)+"P":E.C0.ESC+"OP";break;case 113:t.key=l?E.C0.ESC+"[1;"+(l+1)+"Q":E.C0.ESC+"OQ";break;case 114:t.key=l?E.C0.ESC+"[1;"+(l+1)+"R":E.C0.ESC+"OR";break;case 115:t.key=l?E.C0.ESC+"[1;"+(l+1)+"S":E.C0.ESC+"OS";break;case 116:t.key=l?E.C0.ESC+"[15;"+(l+1)+"~":E.C0.ESC+"[15~";break;case 117:t.key=l?E.C0.ESC+"[17;"+(l+1)+"~":E.C0.ESC+"[17~";break;case 118:t.key=l?E.C0.ESC+"[18;"+(l+1)+"~":E.C0.ESC+"[18~";break;case 119:t.key=l?E.C0.ESC+"[19;"+(l+1)+"~":E.C0.ESC+"[19~";break;case 120:t.key=l?E.C0.ESC+"[20;"+(l+1)+"~":E.C0.ESC+"[20~";break;case 121:t.key=l?E.C0.ESC+"[21;"+(l+1)+"~":E.C0.ESC+"[21~";break;case 122:t.key=l?E.C0.ESC+"[23;"+(l+1)+"~":E.C0.ESC+"[23~";break;case 123:t.key=l?E.C0.ESC+"[24;"+(l+1)+"~":E.C0.ESC+"[24~";break;default:if(!o.ctrlKey||o.shiftKey||o.altKey||o.metaKey)if(f&&!s||!o.altKey||o.metaKey)f&&!o.altKey&&!o.ctrlKey&&o.metaKey?o.keyCode===65&&(t.type=1):o.key&&!o.ctrlKey&&!o.altKey&&!o.metaKey&&o.keyCode>=48&&o.key.length===1?t.key=o.key:o.key&&o.ctrlKey&&o.key==="_"&&(t.key=E.C0.US);else{var a=I[o.keyCode],r=a&&a[o.shiftKey?1:0];if(r)t.key=E.C0.ESC+r;else if(o.keyCode>=65&&o.keyCode<=90){var u=o.ctrlKey?o.keyCode-64:o.keyCode+32;t.key=E.C0.ESC+String.fromCharCode(u)}}else o.keyCode>=65&&o.keyCode<=90?t.key=String.fromCharCode(o.keyCode-64):o.keyCode===32?t.key=E.C0.NUL:o.keyCode>=51&&o.keyCode<=55?t.key=String.fromCharCode(o.keyCode-51+27):o.keyCode===56?t.key=E.C0.DEL:o.keyCode===219?t.key=E.C0.ESC:o.keyCode===220?t.key=E.C0.FS:o.keyCode===221&&(t.key=E.C0.GS)}return t}},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(i,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var p in h)h.hasOwnProperty(p)&&(d[p]=h[p])})(i,c)},function(n,i){function c(){this.constructor=n}E(n,i),n.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}),o=this&&this.__decorate||function(n,i,c,d){var h,p=arguments.length,g=p<3?i:d===null?d=Object.getOwnPropertyDescriptor(i,c):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(n,i,c,d);else for(var v=n.length-1;v>=0;v--)(h=n[v])&&(g=(p<3?h(g):p>3?h(i,c,g):h(i,c))||g);return p>3&&g&&Object.defineProperty(i,c,g),g},m=this&&this.__param||function(n,i){return function(c,d){i(c,d,n)}};Object.defineProperty(N,"__esModule",{value:!0}),N.RenderService=void 0;var f=L(31),s=L(0),t=L(2),l=L(32),a=L(7),r=L(1),u=L(5),e=function(n){function i(c,d,h,p,g,v){var A=n.call(this)||this;if(A._renderer=c,A._rowCount=d,A._isPaused=!1,A._needsFullRefresh=!1,A._isNextRenderRedrawOnly=!0,A._needsSelectionRefresh=!1,A._canvasWidth=0,A._canvasHeight=0,A._selectionState={start:void 0,end:void 0,columnSelectMode:!1},A._onDimensionsChange=new s.EventEmitter,A._onRender=new s.EventEmitter,A._onRefreshRequest=new s.EventEmitter,A.register({dispose:function(){return A._renderer.dispose()}}),A._renderDebouncer=new f.RenderDebouncer(function(b,w){return A._renderRows(b,w)}),A.register(A._renderDebouncer),A._screenDprMonitor=new l.ScreenDprMonitor,A._screenDprMonitor.setListener(function(){return A.onDevicePixelRatioChange()}),A.register(A._screenDprMonitor),A.register(v.onResize(function(b){return A._fullRefresh()})),A.register(p.onOptionChange(function(){return A._renderer.onOptionsChanged()})),A.register(g.onCharSizeChange(function(){return A.onCharSizeChanged()})),A._renderer.onRequestRedraw(function(b){return A.refreshRows(b.start,b.end,!0)}),A.register(a.addDisposableDomListener(window,"resize",function(){return A.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var x=new IntersectionObserver(function(b){return A._onIntersectionChange(b[b.length-1])},{threshold:0});x.observe(h),A.register({dispose:function(){return x.disconnect()}})}return A}return I(i,n),Object.defineProperty(i.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),i.prototype._onIntersectionChange=function(c){this._isPaused=c.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},i.prototype.refreshRows=function(c,d,h){h===void 0&&(h=!1),this._isPaused?this._needsFullRefresh=!0:(h||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(c,d,this._rowCount))},i.prototype._renderRows=function(c,d){this._renderer.renderRows(c,d),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:c,end:d}),this._isNextRenderRedrawOnly=!0},i.prototype.resize=function(c,d){this._rowCount=d,this._fireOnCanvasResize()},i.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},i.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},i.prototype.dispose=function(){n.prototype.dispose.call(this)},i.prototype.setRenderer=function(c){var d=this;this._renderer.dispose(),this._renderer=c,this._renderer.onRequestRedraw(function(h){return d.refreshRows(h.start,h.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},i.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},i.prototype.setColors=function(c){this._renderer.setColors(c),this._fullRefresh()},i.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},i.prototype.onResize=function(c,d){this._renderer.onResize(c,d),this._fullRefresh()},i.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},i.prototype.onBlur=function(){this._renderer.onBlur()},i.prototype.onFocus=function(){this._renderer.onFocus()},i.prototype.onSelectionChanged=function(c,d,h){this._selectionState.start=c,this._selectionState.end=d,this._selectionState.columnSelectMode=h,this._renderer.onSelectionChanged(c,d,h)},i.prototype.onCursorMove=function(){this._renderer.onCursorMove()},i.prototype.clear=function(){this._renderer.clear()},i.prototype.registerCharacterJoiner=function(c){return this._renderer.registerCharacterJoiner(c)},i.prototype.deregisterCharacterJoiner=function(c){return this._renderer.deregisterCharacterJoiner(c)},i=o([m(3,r.IOptionsService),m(4,u.ICharSizeService),m(5,r.IBufferService)],i)}(t.Disposable);N.RenderService=e},function(D,N,L){"use strict";var E=this&&this.__decorate||function(t,l,a,r){var u,e=arguments.length,n=e<3?l:r===null?r=Object.getOwnPropertyDescriptor(l,a):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,l,a,r);else for(var i=t.length-1;i>=0;i--)(u=t[i])&&(n=(e<3?u(n):e>3?u(l,a,n):u(l,a))||n);return e>3&&n&&Object.defineProperty(l,a,n),n},I=this&&this.__param||function(t,l){return function(a,r){l(a,r,t)}};Object.defineProperty(N,"__esModule",{value:!0}),N.CharSizeService=void 0;var o=L(1),m=L(0),f=function(){function t(l,a,r){this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=new m.EventEmitter,this._measureStrategy=new s(l,a,this._optionsService)}return Object.defineProperty(t.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),t.prototype.measure=function(){var l=this._measureStrategy.measure();l.width===this.width&&l.height===this.height||(this.width=l.width,this.height=l.height,this._onCharSizeChange.fire())},t=E([I(2,o.IOptionsService)],t)}();N.CharSizeService=f;var s=function(){function t(l,a,r){this._document=l,this._parentElement=a,this._optionsService=r,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 t.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var l=this._measureElement.getBoundingClientRect();return l.width!==0&&l.height!==0&&(this._result.width=l.width,this._result.height=Math.ceil(l.height)),this._result},t}()},function(D,N,L){"use strict";var E=this&&this.__decorate||function(s,t,l,a){var r,u=arguments.length,e=u<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,l):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(s,t,l,a);else for(var n=s.length-1;n>=0;n--)(r=s[n])&&(e=(u<3?r(e):u>3?r(t,l,e):r(t,l))||e);return u>3&&e&&Object.defineProperty(t,l,e),e},I=this&&this.__param||function(s,t){return function(l,a){t(l,a,s)}};Object.defineProperty(N,"__esModule",{value:!0}),N.MouseService=void 0;var o=L(5),m=L(30),f=function(){function s(t,l){this._renderService=t,this._charSizeService=l}return s.prototype.getCoords=function(t,l,a,r,u){return m.getCoords(t,l,a,r,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,u)},s.prototype.getRawByteCoords=function(t,l,a,r){var u=this.getCoords(t,l,a,r);return m.getRawByteCoords(u)},s=E([I(0,o.IRenderService),I(1,o.ICharSizeService)],s)}();N.MouseService=f},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(u,e){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])})(u,e)},function(r,u){function e(){this.constructor=r}E(r,u),r.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)}),o=this&&this.__decorate||function(r,u,e,n){var i,c=arguments.length,d=c<3?u:n===null?n=Object.getOwnPropertyDescriptor(u,e):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,u,e,n);else for(var h=r.length-1;h>=0;h--)(i=r[h])&&(d=(c<3?i(d):c>3?i(u,e,d):i(u,e))||d);return c>3&&d&&Object.defineProperty(u,e,d),d},m=this&&this.__param||function(r,u){return function(e,n){u(e,n,r)}};Object.defineProperty(N,"__esModule",{value:!0}),N.Linkifier2=void 0;var f=L(1),s=L(0),t=L(2),l=L(7),a=function(r){function u(e){var n=r.call(this)||this;return n._bufferService=e,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new s.EventEmitter),n._onHideLinkUnderline=n.register(new s.EventEmitter),n.register(t.getDisposeArrayDisposable(n._linkCacheDisposables)),n}return I(u,r),Object.defineProperty(u.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),u.prototype.registerLinkProvider=function(e){var n=this;return this._linkProviders.push(e),{dispose:function(){var c=n._linkProviders.indexOf(e);c!==-1&&n._linkProviders.splice(c,1)}}},u.prototype.attachToDom=function(e,n,i){var c=this;this._element=e,this._mouseService=n,this._renderService=i,this.register(l.addDisposableDomListener(this._element,"mouseleave",function(){c._isMouseOut=!0,c._clearCurrentLink()})),this.register(l.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(l.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},u.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var n=this._positionFromMouseEvent(e,this._element,this._mouseService);if(n){this._isMouseOut=!1;for(var i=e.composedPath(),c=0;c<i.length;c++){var d=i[c];if(d.classList.contains("xterm"))break;if(d.classList.contains("xterm-hover"))return}this._lastBufferCell&&n.x===this._lastBufferCell.x&&n.y===this._lastBufferCell.y||(this._onHover(n),this._lastBufferCell=n)}}},u.prototype._onHover=function(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))},u.prototype._askForLink=function(e,n){var i=this;this._activeProviderReplies&&n||(this._activeProviderReplies=new Map,this._activeLine=e.y);var c=!1;this._linkProviders.forEach(function(d,h){var p;n?((p=i._activeProviderReplies)===null||p===void 0?void 0:p.get(h))&&(c=i._checkLinkProviderResult(h,e,c)):d.provideLinks(e.y,function(g){var v,A;if(!i._isMouseOut){var x=g==null?void 0:g.map(function(b){return{link:b}});(v=i._activeProviderReplies)===null||v===void 0||v.set(h,x),c=i._checkLinkProviderResult(h,e,c),((A=i._activeProviderReplies)===null||A===void 0?void 0:A.size)===i._linkProviders.length&&i._removeIntersectingLinks(e.y,i._activeProviderReplies)}})})},u.prototype._removeIntersectingLinks=function(e,n){for(var i=new Set,c=0;c<n.size;c++){var d=n.get(c);if(d)for(var h=0;h<d.length;h++)for(var p=d[h],g=p.link.range.start.y<e?0:p.link.range.start.x,v=p.link.range.end.y>e?this._bufferService.cols:p.link.range.end.x,A=g;A<=v;A++){if(i.has(A)){d.splice(h--,1);break}i.add(A)}}},u.prototype._checkLinkProviderResult=function(e,n,i){var c,d=this;if(!this._activeProviderReplies)return i;for(var h=this._activeProviderReplies.get(e),p=!1,g=0;g<e;g++)this._activeProviderReplies.has(g)&&!this._activeProviderReplies.get(g)||(p=!0);if(!p&&h){var v=h.find(function(x){return d._linkAtPosition(x.link,n)});v&&(i=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!i)for(g=0;g<this._activeProviderReplies.size;g++){var A=(c=this._activeProviderReplies.get(g))===null||c===void 0?void 0:c.find(function(x){return d._linkAtPosition(x.link,n)});if(A){i=!0,this._handleNewLink(A);break}}return i},u.prototype._onClick=function(e){if(this._element&&this._mouseService&&this._currentLink){var n=this._positionFromMouseEvent(e,this._element,this._mouseService);n&&this._linkAtPosition(this._currentLink.link,n)&&this._currentLink.link.activate(e,this._currentLink.link.text)}},u.prototype._clearCurrentLink=function(e,n){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!n||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=n)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,t.disposeArray(this._linkCacheDisposables))},u.prototype._handleNewLink=function(e){var n=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var i=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);i&&this._linkAtPosition(e.link,i)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var d,h;return(h=(d=n._currentLink)===null||d===void 0?void 0:d.state)===null||h===void 0?void 0:h.decorations.pointerCursor},set:function(d){var h,p;((h=n._currentLink)===null||h===void 0?void 0:h.state)&&n._currentLink.state.decorations.pointerCursor!==d&&(n._currentLink.state.decorations.pointerCursor=d,n._currentLink.state.isHovered&&((p=n._element)===null||p===void 0||p.classList.toggle("xterm-cursor-pointer",d)))}},underline:{get:function(){var d,h;return(h=(d=n._currentLink)===null||d===void 0?void 0:d.state)===null||h===void 0?void 0:h.decorations.underline},set:function(d){var h,p,g;((h=n._currentLink)===null||h===void 0?void 0:h.state)&&((g=(p=n._currentLink)===null||p===void 0?void 0:p.state)===null||g===void 0?void 0:g.decorations.underline)!==d&&(n._currentLink.state.decorations.underline=d,n._currentLink.state.isHovered&&n._fireUnderlineEvent(e.link,d))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(c){var d=c.start===0?0:c.start+1+n._bufferService.buffer.ydisp;n._clearCurrentLink(d,c.end+1+n._bufferService.buffer.ydisp)})))}},u.prototype._linkHover=function(e,n,i){var c;((c=this._currentLink)===null||c===void 0?void 0:c.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),n.hover&&n.hover(i,n.text)},u.prototype._fireUnderlineEvent=function(e,n){var i=e.range,c=this._bufferService.buffer.ydisp,d=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-c-1,i.end.x,i.end.y-c-1,void 0);(n?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(d)},u.prototype._linkLeave=function(e,n,i){var c;((c=this._currentLink)===null||c===void 0?void 0:c.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),n.leave&&n.leave(i,n.text)},u.prototype._linkAtPosition=function(e,n){var i=e.range.start.y===e.range.end.y,c=e.range.start.y<n.y,d=e.range.end.y>n.y;return(i&&e.range.start.x<=n.x&&e.range.end.x>=n.x||c&&e.range.end.x>=n.x||d&&e.range.start.x<=n.x||c&&d)&&e.range.start.y<=n.y&&e.range.end.y>=n.y},u.prototype._positionFromMouseEvent=function(e,n,i){var c=i.getCoords(e,n,this._bufferService.cols,this._bufferService.rows);if(c)return{x:c[0],y:c[1]+this._bufferService.buffer.ydisp}},u.prototype._createLinkUnderlineEvent=function(e,n,i,c,d){return{x1:e,y1:n,x2:i,y2:c,cols:this._bufferService.cols,fg:d}},u=o([m(0,f.IBufferService)],u)}(t.Disposable);N.Linkifier2=a},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.CoreBrowserService=void 0;var E=function(){function I(o){this._textarea=o}return Object.defineProperty(I.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),I}();N.CoreBrowserService=E},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(v,A){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var w in b)b.hasOwnProperty(w)&&(x[w]=b[w])})(v,A)},function(g,v){function A(){this.constructor=g}E(g,v),g.prototype=v===null?Object.create(v):(A.prototype=v.prototype,new A)});Object.defineProperty(N,"__esModule",{value:!0}),N.CoreTerminal=void 0;var o=L(2),m=L(1),f=L(66),s=L(67),t=L(68),l=L(74),a=L(75),r=L(0),u=L(76),e=L(77),n=L(78),i=L(80),c=L(81),d=L(19),h=L(82),p=function(g){function v(A){var x=g.call(this)||this;return x._onBinary=new r.EventEmitter,x._onData=new r.EventEmitter,x._onLineFeed=new r.EventEmitter,x._onResize=new r.EventEmitter,x._onScroll=new r.EventEmitter,x._instantiationService=new f.InstantiationService,x.optionsService=new l.OptionsService(A),x._instantiationService.setService(m.IOptionsService,x.optionsService),x._bufferService=x.register(x._instantiationService.createInstance(t.BufferService)),x._instantiationService.setService(m.IBufferService,x._bufferService),x._logService=x._instantiationService.createInstance(s.LogService),x._instantiationService.setService(m.ILogService,x._logService),x._coreService=x.register(x._instantiationService.createInstance(a.CoreService,function(){return x.scrollToBottom()})),x._instantiationService.setService(m.ICoreService,x._coreService),x._coreMouseService=x._instantiationService.createInstance(u.CoreMouseService),x._instantiationService.setService(m.ICoreMouseService,x._coreMouseService),x._dirtyRowService=x._instantiationService.createInstance(e.DirtyRowService),x._instantiationService.setService(m.IDirtyRowService,x._dirtyRowService),x.unicodeService=x._instantiationService.createInstance(n.UnicodeService),x._instantiationService.setService(m.IUnicodeService,x.unicodeService),x._charsetService=x._instantiationService.createInstance(i.CharsetService),x._instantiationService.setService(m.ICharsetService,x._charsetService),x._inputHandler=new d.InputHandler(x._bufferService,x._charsetService,x._coreService,x._dirtyRowService,x._logService,x.optionsService,x._coreMouseService,x.unicodeService),x.register(r.forwardEvent(x._inputHandler.onLineFeed,x._onLineFeed)),x.register(x._inputHandler),x.register(r.forwardEvent(x._bufferService.onResize,x._onResize)),x.register(r.forwardEvent(x._coreService.onData,x._onData)),x.register(r.forwardEvent(x._coreService.onBinary,x._onBinary)),x.register(x.optionsService.onOptionChange(function(b){return x._updateOptions(b)})),x._writeBuffer=new h.WriteBuffer(function(b){return x._inputHandler.parse(b)}),x}return I(v,g),Object.defineProperty(v.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),v.prototype.dispose=function(){var A;this._isDisposed||(g.prototype.dispose.call(this),(A=this._windowsMode)===null||A===void 0||A.dispose(),this._windowsMode=void 0)},v.prototype.write=function(A,x){this._writeBuffer.write(A,x)},v.prototype.writeSync=function(A){this._writeBuffer.writeSync(A)},v.prototype.resize=function(A,x){isNaN(A)||isNaN(x)||(A=Math.max(A,t.MINIMUM_COLS),x=Math.max(x,t.MINIMUM_ROWS),this._bufferService.resize(A,x))},v.prototype.scroll=function(A,x){x===void 0&&(x=!1);var b,w=this._bufferService.buffer;(b=this._cachedBlankLine)&&b.length===this.cols&&b.getFg(0)===A.fg&&b.getBg(0)===A.bg||(b=w.getBlankLine(A,x),this._cachedBlankLine=b),b.isWrapped=x;var S=w.ybase+w.scrollTop,T=w.ybase+w.scrollBottom;if(w.scrollTop===0){var C=w.lines.isFull;T===w.lines.length-1?C?w.lines.recycle().copyFrom(b):w.lines.push(b.clone()):w.lines.splice(T+1,0,b.clone()),C?this._bufferService.isUserScrolling&&(w.ydisp=Math.max(w.ydisp-1,0)):(w.ybase++,this._bufferService.isUserScrolling||w.ydisp++)}else{var O=T-S+1;w.lines.shiftElements(S+1,O-1,-1),w.lines.set(T,b.clone())}this._bufferService.isUserScrolling||(w.ydisp=w.ybase),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom),this._onScroll.fire(w.ydisp)},v.prototype.scrollLines=function(A,x){var b=this._bufferService.buffer;if(A<0){if(b.ydisp===0)return;this._bufferService.isUserScrolling=!0}else A+b.ydisp>=b.ybase&&(this._bufferService.isUserScrolling=!1);var w=b.ydisp;b.ydisp=Math.max(Math.min(b.ydisp+A,b.ybase),0),w!==b.ydisp&&(x||this._onScroll.fire(b.ydisp))},v.prototype.scrollPages=function(A){this.scrollLines(A*(this.rows-1))},v.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},v.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},v.prototype.scrollToLine=function(A){var x=A-this._bufferService.buffer.ydisp;x!==0&&this.scrollLines(x)},v.prototype.addEscHandler=function(A,x){return this._inputHandler.addEscHandler(A,x)},v.prototype.addDcsHandler=function(A,x){return this._inputHandler.addDcsHandler(A,x)},v.prototype.addCsiHandler=function(A,x){return this._inputHandler.addCsiHandler(A,x)},v.prototype.addOscHandler=function(A,x){return this._inputHandler.addOscHandler(A,x)},v.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},v.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},v.prototype._updateOptions=function(A){var x;switch(A){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((x=this._windowsMode)===null||x===void 0||x.dispose(),this._windowsMode=void 0)}},v.prototype._enableWindowsMode=function(){var A=this;if(!this._windowsMode){var x=[];x.push(this.onLineFeed(c.updateWindowsModeWrappedState.bind(null,this._bufferService))),x.push(this.addCsiHandler({final:"H"},function(){return c.updateWindowsModeWrappedState(A._bufferService),!1})),this._windowsMode={dispose:function(){for(var w=0,S=x;w<S.length;w++)S[w].dispose()}}}},v}(o.Disposable);N.CoreTerminal=p},function(D,N,L){"use strict";var E=this&&this.__spreadArrays||function(){for(var s=0,t=0,l=arguments.length;t<l;t++)s+=arguments[t].length;var a=Array(s),r=0;for(t=0;t<l;t++)for(var u=arguments[t],e=0,n=u.length;e<n;e++,r++)a[r]=u[e];return a};Object.defineProperty(N,"__esModule",{value:!0}),N.InstantiationService=N.ServiceCollection=void 0;var I=L(1),o=L(14),m=function(){function s(){for(var t=[],l=0;l<arguments.length;l++)t[l]=arguments[l];this._entries=new Map;for(var a=0,r=t;a<r.length;a++){var u=r[a],e=u[0],n=u[1];this.set(e,n)}}return s.prototype.set=function(t,l){var a=this._entries.get(t);return this._entries.set(t,l),a},s.prototype.forEach=function(t){this._entries.forEach(function(l,a){return t(a,l)})},s.prototype.has=function(t){return this._entries.has(t)},s.prototype.get=function(t){return this._entries.get(t)},s}();N.ServiceCollection=m;var f=function(){function s(){this._services=new m,this._services.set(I.IInstantiationService,this)}return s.prototype.setService=function(t,l){this._services.set(t,l)},s.prototype.getService=function(t){return this._services.get(t)},s.prototype.createInstance=function(t){for(var l=[],a=1;a<arguments.length;a++)l[a-1]=arguments[a];for(var r=o.getServiceDependencies(t).sort(function(h,p){return h.index-p.index}),u=[],e=0,n=r;e<n.length;e++){var i=n[e],c=this._services.get(i.id);if(!c)throw new Error("[createInstance] "+t.name+" depends on UNKNOWN service "+i.id+".");u.push(c)}var d=r.length>0?r[0].index:l.length;if(l.length!==d)throw new Error("[createInstance] First service dependency of "+t.name+" at position "+(d+1)+" conflicts with "+l.length+" static arguments");return new(t.bind.apply(t,E([void 0],E(l,u))))},s}();N.InstantiationService=f},function(D,N,L){"use strict";var E=this&&this.__decorate||function(l,a,r,u){var e,n=arguments.length,i=n<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,r):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(l,a,r,u);else for(var c=l.length-1;c>=0;c--)(e=l[c])&&(i=(n<3?e(i):n>3?e(a,r,i):e(a,r))||i);return n>3&&i&&Object.defineProperty(a,r,i),i},I=this&&this.__param||function(l,a){return function(r,u){a(r,u,l)}},o=this&&this.__spreadArrays||function(){for(var l=0,a=0,r=arguments.length;a<r;a++)l+=arguments[a].length;var u=Array(l),e=0;for(a=0;a<r;a++)for(var n=arguments[a],i=0,c=n.length;i<c;i++,e++)u[e]=n[i];return u};Object.defineProperty(N,"__esModule",{value:!0}),N.LogService=N.LogLevel=void 0;var m,f=L(1);!function(l){l[l.DEBUG=0]="DEBUG",l[l.INFO=1]="INFO",l[l.WARN=2]="WARN",l[l.ERROR=3]="ERROR",l[l.OFF=4]="OFF"}(m=N.LogLevel||(N.LogLevel={}));var s={debug:m.DEBUG,info:m.INFO,warn:m.WARN,error:m.ERROR,off:m.OFF},t=function(){function l(a){var r=this;this._optionsService=a,this._updateLogLevel(),this._optionsService.onOptionChange(function(u){u==="logLevel"&&r._updateLogLevel()})}return l.prototype._updateLogLevel=function(){this._logLevel=s[this._optionsService.options.logLevel]},l.prototype._evalLazyOptionalParams=function(a){for(var r=0;r<a.length;r++)typeof a[r]=="function"&&(a[r]=a[r]())},l.prototype._log=function(a,r,u){this._evalLazyOptionalParams(u),a.call.apply(a,o([console,"xterm.js: "+r],u))},l.prototype.debug=function(a){for(var r=[],u=1;u<arguments.length;u++)r[u-1]=arguments[u];this._logLevel<=m.DEBUG&&this._log(console.log,a,r)},l.prototype.info=function(a){for(var r=[],u=1;u<arguments.length;u++)r[u-1]=arguments[u];this._logLevel<=m.INFO&&this._log(console.info,a,r)},l.prototype.warn=function(a){for(var r=[],u=1;u<arguments.length;u++)r[u-1]=arguments[u];this._logLevel<=m.WARN&&this._log(console.warn,a,r)},l.prototype.error=function(a){for(var r=[],u=1;u<arguments.length;u++)r[u-1]=arguments[u];this._logLevel<=m.ERROR&&this._log(console.error,a,r)},l=E([I(0,f.IOptionsService)],l)}();N.LogService=t},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(u,e){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])})(u,e)},function(r,u){function e(){this.constructor=r}E(r,u),r.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)}),o=this&&this.__decorate||function(r,u,e,n){var i,c=arguments.length,d=c<3?u:n===null?n=Object.getOwnPropertyDescriptor(u,e):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,u,e,n);else for(var h=r.length-1;h>=0;h--)(i=r[h])&&(d=(c<3?i(d):c>3?i(u,e,d):i(u,e))||d);return c>3&&d&&Object.defineProperty(u,e,d),d},m=this&&this.__param||function(r,u){return function(e,n){u(e,n,r)}};Object.defineProperty(N,"__esModule",{value:!0}),N.BufferService=N.MINIMUM_ROWS=N.MINIMUM_COLS=void 0;var f=L(1),s=L(69),t=L(0),l=L(2);N.MINIMUM_COLS=2,N.MINIMUM_ROWS=1;var a=function(r){function u(e){var n=r.call(this)||this;return n._optionsService=e,n.isUserScrolling=!1,n._onResize=new t.EventEmitter,n.cols=Math.max(e.options.cols,N.MINIMUM_COLS),n.rows=Math.max(e.options.rows,N.MINIMUM_ROWS),n.buffers=new s.BufferSet(e,n),n}return I(u,r),Object.defineProperty(u.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),u.prototype.dispose=function(){r.prototype.dispose.call(this),this.buffers.dispose()},u.prototype.resize=function(e,n){this.cols=e,this.rows=n,this.buffers.resize(e,n),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:n})},u.prototype.reset=function(){this.buffers.dispose(),this.buffers=new s.BufferSet(this._optionsService,this),this.isUserScrolling=!1},u=o([m(0,f.IOptionsService)],u)}(l.Disposable);N.BufferService=a},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(t,l){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var u in r)r.hasOwnProperty(u)&&(a[u]=r[u])})(t,l)},function(s,t){function l(){this.constructor=s}E(s,t),s.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)});Object.defineProperty(N,"__esModule",{value:!0}),N.BufferSet=void 0;var o=L(70),m=L(0),f=function(s){function t(l,a){var r=s.call(this)||this;return r._onBufferActivate=r.register(new m.EventEmitter),r._normal=new o.Buffer(!0,l,a),r._normal.fillViewportRows(),r._alt=new o.Buffer(!1,l,a),r._activeBuffer=r._normal,r.setupTabStops(),r}return I(t,s),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),t.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}))},t.prototype.activateAltBuffer=function(l){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(l),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}))},t.prototype.resize=function(l,a){this._normal.resize(l,a),this._alt.resize(l,a)},t.prototype.setupTabStops=function(l){this._normal.setupTabStops(l),this._alt.setupTabStops(l)},t}(L(2).Disposable);N.BufferSet=f},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.BufferStringIterator=N.Buffer=N.MAX_BUFFER_SIZE=void 0;var E=L(71),I=L(16),o=L(4),m=L(3),f=L(72),s=L(73),t=L(20),l=L(6);N.MAX_BUFFER_SIZE=4294967295;var a=function(){function u(e,n,i){this._hasScrollback=e,this._optionsService=n,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=I.DEFAULT_ATTR_DATA.clone(),this.savedCharset=t.DEFAULT_CHARSET,this.markers=[],this._nullCell=o.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]),this._whitespaceCell=o.CellData.fromCharData([0,m.WHITESPACE_CELL_CHAR,m.WHITESPACE_CELL_WIDTH,m.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return u.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new l.ExtendedAttrs),this._nullCell},u.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new l.ExtendedAttrs),this._whitespaceCell},u.prototype.getBlankLine=function(e,n){return new I.BufferLine(this._bufferService.cols,this.getNullCell(e),n)},Object.defineProperty(u.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isCursorInViewport",{get:function(){var n=this.ybase+this.y-this.ydisp;return n>=0&&n<this._rows},enumerable:!1,configurable:!0}),u.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var n=e+this._optionsService.options.scrollback;return n>N.MAX_BUFFER_SIZE?N.MAX_BUFFER_SIZE:n},u.prototype.fillViewportRows=function(e){if(this.lines.length===0){e===void 0&&(e=I.DEFAULT_ATTR_DATA);for(var n=this._rows;n--;)this.lines.push(this.getBlankLine(e))}},u.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},u.prototype.resize=function(e,n){var i=this.getNullCell(I.DEFAULT_ATTR_DATA),c=this._getCorrectBufferLength(n);if(c>this.lines.maxLength&&(this.lines.maxLength=c),this.lines.length>0){if(this._cols<e)for(var d=0;d<this.lines.length;d++)this.lines.get(d).resize(e,i);var h=0;if(this._rows<n)for(var p=this._rows;p<n;p++)this.lines.length<n+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new I.BufferLine(e,i)):this.ybase>0&&this.lines.length<=this.ybase+this.y+h+1?(this.ybase--,h++,this.ydisp>0&&this.ydisp--):this.lines.push(new I.BufferLine(e,i)));else for(p=this._rows;p>n;p--)this.lines.length>n+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(c<this.lines.maxLength){var g=this.lines.length-c;g>0&&(this.lines.trimStart(g),this.ybase=Math.max(this.ybase-g,0),this.ydisp=Math.max(this.ydisp-g,0),this.savedY=Math.max(this.savedY-g,0)),this.lines.maxLength=c}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,n-1),h&&(this.y+=h),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=n-1,this._isReflowEnabled&&(this._reflow(e,n),this._cols>e))for(d=0;d<this.lines.length;d++)this.lines.get(d).resize(e,i);this._cols=e,this._rows=n},Object.defineProperty(u.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),u.prototype._reflow=function(e,n){this._cols!==e&&(e>this._cols?this._reflowLarger(e,n):this._reflowSmaller(e,n))},u.prototype._reflowLarger=function(e,n){var i=f.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(I.DEFAULT_ATTR_DATA));if(i.length>0){var c=f.reflowLargerCreateNewLayout(this.lines,i);f.reflowLargerApplyNewLayout(this.lines,c.layout),this._reflowLargerAdjustViewport(e,n,c.countRemoved)}},u.prototype._reflowLargerAdjustViewport=function(e,n,i){for(var c=this.getNullCell(I.DEFAULT_ATTR_DATA),d=i;d-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<n&&this.lines.push(new I.BufferLine(e,c))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-i,0)},u.prototype._reflowSmaller=function(e,n){for(var i=this.getNullCell(I.DEFAULT_ATTR_DATA),c=[],d=0,h=this.lines.length-1;h>=0;h--){var p=this.lines.get(h);if(!(!p||!p.isWrapped&&p.getTrimmedLength()<=e)){for(var g=[p];p.isWrapped&&h>0;)p=this.lines.get(--h),g.unshift(p);var v=this.ybase+this.y;if(!(v>=h&&v<h+g.length)){var A=g[g.length-1].getTrimmedLength(),x=f.reflowSmallerGetNewLineLengths(g,this._cols,e),b=x.length-g.length,w=void 0;w=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+b):Math.max(0,this.lines.length-this.lines.maxLength+b);for(var S=[],T=0;T<b;T++){var C=this.getBlankLine(I.DEFAULT_ATTR_DATA,!0);S.push(C)}S.length>0&&(c.push({start:h+g.length+d,newLines:S}),d+=S.length),g.push.apply(g,S);var O=x.length-1,_=x[O];_===0&&(_=x[--O]);for(var M=g.length-b-1,k=A;M>=0;){var R=Math.min(k,_);if(g[O].copyCellsFrom(g[M],k-R,_-R,R,!0),(_-=R)===0&&(_=x[--O]),(k-=R)===0){M--;var B=Math.max(M,0);k=f.getWrappedLineTrimmedLength(g,B,this._cols)}}for(T=0;T<g.length;T++)x[T]<e&&g[T].setCell(x[T],i);for(var P=b-w;P-- >0;)this.ybase===0?this.y<n-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+d)-n&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+b,this.ybase+n-1)}}}if(c.length>0){var U=[],j=[];for(T=0;T<this.lines.length;T++)j.push(this.lines.get(T));var H=this.lines.length,W=H-1,G=0,V=c[G];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+d);var Z=0;for(T=Math.min(this.lines.maxLength-1,H+d-1);T>=0;T--)if(V&&V.start>W+Z){for(var Y=V.newLines.length-1;Y>=0;Y--)this.lines.set(T--,V.newLines[Y]);T++,U.push({index:W+1,amount:V.newLines.length}),Z+=V.newLines.length,V=c[++G]}else this.lines.set(T,j[W--]);var Q=0;for(T=U.length-1;T>=0;T--)U[T].index+=Q,this.lines.onInsertEmitter.fire(U[T]),Q+=U[T].amount;var oe=Math.max(0,H+d-this.lines.maxLength);oe>0&&this.lines.onTrimEmitter.fire(oe)}},u.prototype.stringIndexToBufferIndex=function(e,n,i){for(i===void 0&&(i=!1);n;){var c=this.lines.get(e);if(!c)return[-1,-1];for(var d=i?c.getTrimmedLength():c.length,h=0;h<d;++h)if(c.get(h)[m.CHAR_DATA_WIDTH_INDEX]&&(n-=c.get(h)[m.CHAR_DATA_CHAR_INDEX].length||1),n<0)return[e,h];e++}return[e,0]},u.prototype.translateBufferLineToString=function(e,n,i,c){i===void 0&&(i=0);var d=this.lines.get(e);return d?d.translateToString(n,i,c):""},u.prototype.getWrappedRangeForLine=function(e){for(var n=e,i=e;n>0&&this.lines.get(n).isWrapped;)n--;for(;i+1<this.lines.length&&this.lines.get(i+1).isWrapped;)i++;return{first:n,last:i}},u.prototype.setupTabStops=function(e){for(e!=null?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.options.tabStopWidth)this.tabs[e]=!0},u.prototype.prevStop=function(e){for(e==null&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e},u.prototype.nextStop=function(e){for(e==null&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},u.prototype.addMarker=function(e){var n=this,i=new s.Marker(e);return this.markers.push(i),i.register(this.lines.onTrim(function(c){i.line-=c,i.line<0&&i.dispose()})),i.register(this.lines.onInsert(function(c){i.line>=c.index&&(i.line+=c.amount)})),i.register(this.lines.onDelete(function(c){i.line>=c.index&&i.line<c.index+c.amount&&i.dispose(),i.line>c.index&&(i.line-=c.amount)})),i.register(i.onDispose(function(){return n._removeMarker(i)})),i},u.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},u.prototype.iterator=function(e,n,i,c,d){return new r(this,e,n,i,c,d)},u}();N.Buffer=a;var r=function(){function u(e,n,i,c,d,h){i===void 0&&(i=0),c===void 0&&(c=e.lines.length),d===void 0&&(d=0),h===void 0&&(h=0),this._buffer=e,this._trimRight=n,this._startIndex=i,this._endIndex=c,this._startOverscan=d,this._endOverscan=h,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return u.prototype.hasNext=function(){return this._current<this._endIndex},u.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var n="",i=e.first;i<=e.last;++i)n+=this._buffer.translateBufferLineToString(i,this._trimRight);return this._current=e.last+1,{range:e,content:n}},u}();N.BufferStringIterator=r},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.CircularList=void 0;var E=L(0),I=function(){function o(m){this._maxLength=m,this.onDeleteEmitter=new E.EventEmitter,this.onInsertEmitter=new E.EventEmitter,this.onTrimEmitter=new E.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(o.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"maxLength",{get:function(){return this._maxLength},set:function(f){if(this._maxLength!==f){for(var s=new Array(f),t=0;t<Math.min(f,this.length);t++)s[t]=this._array[this._getCyclicIndex(t)];this._array=s,this._maxLength=f,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"length",{get:function(){return this._length},set:function(f){if(f>this._length)for(var s=this._length;s<f;s++)this._array[s]=void 0;this._length=f},enumerable:!1,configurable:!0}),o.prototype.get=function(m){return this._array[this._getCyclicIndex(m)]},o.prototype.set=function(m,f){this._array[this._getCyclicIndex(m)]=f},o.prototype.push=function(m){this._array[this._getCyclicIndex(this._length)]=m,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},o.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(o.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),o.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},o.prototype.splice=function(m,f){for(var s=[],t=2;t<arguments.length;t++)s[t-2]=arguments[t];if(f){for(var l=m;l<this._length-f;l++)this._array[this._getCyclicIndex(l)]=this._array[this._getCyclicIndex(l+f)];this._length-=f}for(l=this._length-1;l>=m;l--)this._array[this._getCyclicIndex(l+s.length)]=this._array[this._getCyclicIndex(l)];for(l=0;l<s.length;l++)this._array[this._getCyclicIndex(m+l)]=s[l];if(this._length+s.length>this._maxLength){var a=this._length+s.length-this._maxLength;this._startIndex+=a,this._length=this._maxLength,this.onTrimEmitter.fire(a)}else this._length+=s.length},o.prototype.trimStart=function(m){m>this._length&&(m=this._length),this._startIndex+=m,this._length-=m,this.onTrimEmitter.fire(m)},o.prototype.shiftElements=function(m,f,s){if(!(f<=0)){if(m<0||m>=this._length)throw new Error("start argument out of range");if(m+s<0)throw new Error("Cannot shift elements in list beyond index 0");if(s>0){for(var t=f-1;t>=0;t--)this.set(m+t+s,this.get(m+t));var l=m+f+s-this._length;if(l>0)for(this._length+=l;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(t=0;t<f;t++)this.set(m+t+s,this.get(m+t))}},o.prototype._getCyclicIndex=function(m){return(this._startIndex+m)%this._maxLength},o}();N.CircularList=I},function(D,N,L){"use strict";function E(I,o,m){if(o===I.length-1)return I[o].getTrimmedLength();var f=!I[o].hasContent(m-1)&&I[o].getWidth(m-1)===1,s=I[o+1].getWidth(0)===2;return f&&s?m-1:m}Object.defineProperty(N,"__esModule",{value:!0}),N.getWrappedLineTrimmedLength=N.reflowSmallerGetNewLineLengths=N.reflowLargerApplyNewLayout=N.reflowLargerCreateNewLayout=N.reflowLargerGetLinesToRemove=void 0,N.reflowLargerGetLinesToRemove=function(I,o,m,f,s){for(var t=[],l=0;l<I.length-1;l++){var a=l,r=I.get(++a);if(r.isWrapped){for(var u=[I.get(l)];a<I.length&&r.isWrapped;)u.push(r),r=I.get(++a);if(f>=l&&f<a)l+=u.length-1;else{for(var e=0,n=E(u,e,o),i=1,c=0;i<u.length;){var d=E(u,i,o),h=d-c,p=m-n,g=Math.min(h,p);u[e].copyCellsFrom(u[i],c,n,g,!1),(n+=g)===m&&(e++,n=0),(c+=g)===d&&(i++,c=0),n===0&&e!==0&&u[e-1].getWidth(m-1)===2&&(u[e].copyCellsFrom(u[e-1],m-1,n++,1,!1),u[e-1].setCell(m-1,s))}u[e].replaceCells(n,m,s);for(var v=0,A=u.length-1;A>0&&(A>e||u[A].getTrimmedLength()===0);A--)v++;v>0&&(t.push(l+u.length-v),t.push(v)),l+=u.length-1}}}return t},N.reflowLargerCreateNewLayout=function(I,o){for(var m=[],f=0,s=o[f],t=0,l=0;l<I.length;l++)if(s===l){var a=o[++f];I.onDeleteEmitter.fire({index:l-t,amount:a}),l+=a-1,t+=a,s=o[++f]}else m.push(l);return{layout:m,countRemoved:t}},N.reflowLargerApplyNewLayout=function(I,o){for(var m=[],f=0;f<o.length;f++)m.push(I.get(o[f]));for(f=0;f<m.length;f++)I.set(f,m[f]);I.length=o.length},N.reflowSmallerGetNewLineLengths=function(I,o,m){for(var f=[],s=I.map(function(n,i){return E(I,i,o)}).reduce(function(n,i){return n+i}),t=0,l=0,a=0;a<s;){if(s-a<m){f.push(s-a);break}t+=m;var r=E(I,l,o);t>r&&(t-=r,l++);var u=I[l].getWidth(t-1)===2;u&&t--;var e=u?m-1:m;f.push(e),a+=e}return f},N.getWrappedLineTrimmedLength=E},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(s,t){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,a){l.__proto__=a}||function(l,a){for(var r in a)a.hasOwnProperty(r)&&(l[r]=a[r])})(s,t)},function(f,s){function t(){this.constructor=f}E(f,s),f.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)});Object.defineProperty(N,"__esModule",{value:!0}),N.Marker=void 0;var o=L(0),m=function(f){function s(t){var l=f.call(this)||this;return l.line=t,l._id=s._nextId++,l.isDisposed=!1,l._onDispose=new o.EventEmitter,l}return I(s,f),Object.defineProperty(s.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),s.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},s._nextId=1,s}(L(2).Disposable);N.Marker=m},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.OptionsService=N.DEFAULT_OPTIONS=N.DEFAULT_BELL_SOUND=void 0;var E=L(0),I=L(11),o=L(33);N.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",N.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:N.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:I.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var m=["cols","rows"],f=function(){function s(t){this._onOptionChange=new E.EventEmitter,this.options=o.clone(N.DEFAULT_OPTIONS);for(var l=0,a=Object.keys(t);l<a.length;l++){var r=a[l];if(r in this.options){var u=t[r];this.options[r]=u}}}return Object.defineProperty(s.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),s.prototype.setOption=function(t,l){if(!(t in N.DEFAULT_OPTIONS))throw new Error('No option with key "'+t+'"');if(m.indexOf(t)!==-1)throw new Error('Option "'+t+'" can only be set in the constructor');this.options[t]!==l&&(l=this._sanitizeAndValidateOption(t,l),this.options[t]!==l&&(this.options[t]=l,this._onOptionChange.fire(t)))},s.prototype._sanitizeAndValidateOption=function(t,l){switch(t){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":l||(l=N.DEFAULT_OPTIONS[t]);break;case"cursorWidth":l=Math.floor(l);case"lineHeight":case"tabStopWidth":if(l<1)throw new Error(t+" cannot be less than 1, value: "+l);break;case"minimumContrastRatio":l=Math.max(1,Math.min(21,Math.round(10*l)/10));break;case"scrollback":if((l=Math.min(l,4294967295))<0)throw new Error(t+" cannot be less than 0, value: "+l);break;case"fastScrollSensitivity":case"scrollSensitivity":if(l<=0)throw new Error(t+" cannot be less than or equal to 0, value: "+l)}return l},s.prototype.getOption=function(t){if(!(t in N.DEFAULT_OPTIONS))throw new Error('No option with key "'+t+'"');return this.options[t]},s}();N.OptionsService=f},function(D,N,L){"use strict";var E,I=this&&this.__extends||(E=function(n,i){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var h in d)d.hasOwnProperty(h)&&(c[h]=d[h])})(n,i)},function(e,n){function i(){this.constructor=e}E(e,n),e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}),o=this&&this.__decorate||function(e,n,i,c){var d,h=arguments.length,p=h<3?n:c===null?c=Object.getOwnPropertyDescriptor(n,i):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,n,i,c);else for(var g=e.length-1;g>=0;g--)(d=e[g])&&(p=(h<3?d(p):h>3?d(n,i,p):d(n,i))||p);return h>3&&p&&Object.defineProperty(n,i,p),p},m=this&&this.__param||function(e,n){return function(i,c){n(i,c,e)}};Object.defineProperty(N,"__esModule",{value:!0}),N.CoreService=void 0;var f=L(1),s=L(0),t=L(33),l=L(2),a=Object.freeze({insertMode:!1}),r=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),u=function(e){function n(i,c,d,h){var p=e.call(this)||this;return p._bufferService=c,p._logService=d,p._optionsService=h,p.isCursorInitialized=!1,p.isCursorHidden=!1,p._onData=p.register(new s.EventEmitter),p._onUserInput=p.register(new s.EventEmitter),p._onBinary=p.register(new s.EventEmitter),p._scrollToBottom=i,p.register({dispose:function(){return p._scrollToBottom=void 0}}),p.modes=t.clone(a),p.decPrivateModes=t.clone(r),p}return I(n,e),Object.defineProperty(n.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),n.prototype.reset=function(){this.modes=t.clone(a),this.decPrivateModes=t.clone(r)},n.prototype.triggerDataEvent=function(i,c){if(c===void 0&&(c=!1),!this._optionsService.options.disableStdin){var d=this._bufferService.buffer;d.ybase!==d.ydisp&&this._scrollToBottom(),c&&this._onUserInput.fire(),this._logService.debug('sending data "'+i+'"',function(){return i.split("").map(function(h){return h.charCodeAt(0)})}),this._onData.fire(i)}},n.prototype.triggerBinaryEvent=function(i){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+i+'"',function(){return i.split("").map(function(c){return c.charCodeAt(0)})}),this._onBinary.fire(i))},n=o([m(1,f.IBufferService),m(2,f.ILogService),m(3,f.IOptionsService)],n)}(l.Disposable);N.CoreService=u},function(D,N,L){"use strict";var E=this&&this.__decorate||function(r,u,e,n){var i,c=arguments.length,d=c<3?u:n===null?n=Object.getOwnPropertyDescriptor(u,e):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,u,e,n);else for(var h=r.length-1;h>=0;h--)(i=r[h])&&(d=(c<3?i(d):c>3?i(u,e,d):i(u,e))||d);return c>3&&d&&Object.defineProperty(u,e,d),d},I=this&&this.__param||function(r,u){return function(e,n){u(e,n,r)}};Object.defineProperty(N,"__esModule",{value:!0}),N.CoreMouseService=void 0;var o=L(1),m=L(0),f={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(u){return u.button!==4&&u.action===1&&(u.ctrl=!1,u.alt=!1,u.shift=!1,!0)}},VT200:{events:19,restrict:function(u){return u.action!==32}},DRAG:{events:23,restrict:function(u){return u.action!==32||u.button!==3}},ANY:{events:31,restrict:function(u){return!0}}};function s(r,u){var e=(r.ctrl?16:0)|(r.shift?4:0)|(r.alt?8:0);return r.button===4?(e|=64,e|=r.action):(e|=3&r.button,4&r.button&&(e|=64),8&r.button&&(e|=128),r.action===32?e|=32:r.action!==0||u||(e|=3)),e}var t=String.fromCharCode,l={DEFAULT:function(u){var e=[s(u,!1)+32,u.col+32,u.row+32];return e[0]>255||e[1]>255||e[2]>255?"":"[M"+t(e[0])+t(e[1])+t(e[2])},SGR:function(u){var e=u.action===0&&u.button!==4?"m":"M";return"[<"+s(u,!0)+";"+u.col+";"+u.row+e}},a=function(){function r(u,e){this._bufferService=u,this._coreService=e,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new m.EventEmitter,this._lastEvent=null;for(var n=0,i=Object.keys(f);n<i.length;n++){var c=i[n];this.addProtocol(c,f[c])}for(var d=0,h=Object.keys(l);d<h.length;d++){var p=h[d];this.addEncoding(p,l[p])}this.reset()}return r.prototype.addProtocol=function(u,e){this._protocols[u]=e},r.prototype.addEncoding=function(u,e){this._encodings[u]=e},Object.defineProperty(r.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!1,configurable:!0}),r.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(r.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),r.prototype.triggerMouseEvent=function(u){if(u.col<0||u.col>=this._bufferService.cols||u.row<0||u.row>=this._bufferService.rows)return!1;if(u.button===4&&u.action===32)return!1;if(u.button===3&&u.action!==32)return!1;if(u.button!==4&&(u.action===2||u.action===3))return!1;if(u.col++,u.row++,u.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,u))return!1;if(!this._protocols[this._activeProtocol].restrict(u))return!1;var e=this._encodings[this._activeEncoding](u);return e&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(e):this._coreService.triggerDataEvent(e,!0)),this._lastEvent=u,!0},r.prototype.explainEvents=function(u){return{down:!!(1&u),up:!!(2&u),drag:!!(4&u),move:!!(8&u),wheel:!!(16&u)}},r.prototype._compareEvents=function(u,e){return u.col===e.col&&u.row===e.row&&u.button===e.button&&u.action===e.action&&u.ctrl===e.ctrl&&u.alt===e.alt&&u.shift===e.shift},r=E([I(0,o.IBufferService),I(1,o.ICoreService)],r)}();N.CoreMouseService=a},function(D,N,L){"use strict";var E=this&&this.__decorate||function(f,s,t,l){var a,r=arguments.length,u=r<3?s:l===null?l=Object.getOwnPropertyDescriptor(s,t):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(f,s,t,l);else for(var e=f.length-1;e>=0;e--)(a=f[e])&&(u=(r<3?a(u):r>3?a(s,t,u):a(s,t))||u);return r>3&&u&&Object.defineProperty(s,t,u),u},I=this&&this.__param||function(f,s){return function(t,l){s(t,l,f)}};Object.defineProperty(N,"__esModule",{value:!0}),N.DirtyRowService=void 0;var o=L(1),m=function(){function f(s){this._bufferService=s,this.clearRange()}return Object.defineProperty(f.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),f.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},f.prototype.markDirty=function(s){s<this._start?this._start=s:s>this._end&&(this._end=s)},f.prototype.markRangeDirty=function(s,t){if(s>t){var l=s;s=t,t=l}s<this._start&&(this._start=s),t>this._end&&(this._end=t)},f.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},f=E([I(0,o.IBufferService)],f)}();N.DirtyRowService=m},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.UnicodeService=void 0;var E=L(0),I=L(79),o=function(){function m(){this._providers=Object.create(null),this._active="",this._onChange=new E.EventEmitter;var f=new I.UnicodeV6;this.register(f),this._active=f.version,this._activeProvider=f}return Object.defineProperty(m.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"activeVersion",{get:function(){return this._active},set:function(s){if(!this._providers[s])throw new Error('unknown Unicode version "'+s+'"');this._active=s,this._activeProvider=this._providers[s],this._onChange.fire(s)},enumerable:!1,configurable:!0}),m.prototype.register=function(f){this._providers[f.version]=f},m.prototype.wcwidth=function(f){return this._activeProvider.wcwidth(f)},m.prototype.getStringCellWidth=function(f){for(var s=0,t=f.length,l=0;l<t;++l){var a=f.charCodeAt(l);if(55296<=a&&a<=56319){if(++l>=t)return s+this.wcwidth(a);var r=f.charCodeAt(l);56320<=r&&r<=57343?a=1024*(a-55296)+r-56320+65536:s+=this.wcwidth(r)}s+=this.wcwidth(a)}return s},m}();N.UnicodeService=o},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.UnicodeV6=void 0;var E,I=L(15),o=[[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]],m=[[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]],f=function(){function s(){if(this.version="6",!E){E=new Uint8Array(65536),I.fill(E,1),E[0]=0,I.fill(E,0,1,32),I.fill(E,0,127,160),I.fill(E,2,4352,4448),E[9001]=2,E[9002]=2,I.fill(E,2,11904,42192),E[12351]=1,I.fill(E,2,44032,55204),I.fill(E,2,63744,64256),I.fill(E,2,65040,65050),I.fill(E,2,65072,65136),I.fill(E,2,65280,65377),I.fill(E,2,65504,65511);for(var t=0;t<o.length;++t)I.fill(E,0,o[t][0],o[t][1]+1)}}return s.prototype.wcwidth=function(t){return t<32?0:t<127?1:t<65536?E[t]:function(l,a){var r,u=0,e=a.length-1;if(l<a[0][0]||l>a[e][1])return!1;for(;e>=u;)if(l>a[r=u+e>>1][1])u=r+1;else{if(!(l<a[r][0]))return!0;e=r-1}return!1}(t,m)?0:t>=131072&&t<=196605||t>=196608&&t<=262141?2:1},s}();N.UnicodeV6=f},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.CharsetService=void 0;var E=function(){function I(){this.glevel=0,this._charsets=[]}return I.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},I.prototype.setgLevel=function(o){this.glevel=o,this.charset=this._charsets[o]},I.prototype.setgCharset=function(o,m){this._charsets[o]=m,this.glevel===o&&(this.charset=m)},I}();N.CharsetService=E},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.updateWindowsModeWrappedState=void 0;var E=L(3);N.updateWindowsModeWrappedState=function(I){var o=I.buffer.lines.get(I.buffer.ybase+I.buffer.y-1),m=o==null?void 0:o.get(I.cols-1),f=I.buffer.lines.get(I.buffer.ybase+I.buffer.y);f&&m&&(f.isWrapped=m[E.CHAR_DATA_CODE_INDEX]!==E.NULL_CELL_CODE&&m[E.CHAR_DATA_CODE_INDEX]!==E.WHITESPACE_CELL_CODE)}},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.WriteBuffer=void 0;var E=function(){function I(o){this._action=o,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return I.prototype.writeSync=function(o){if(this._writeBuffer.length){for(var m=this._bufferOffset;m<this._writeBuffer.length;++m){var f=this._writeBuffer[m],s=this._callbacks[m];this._action(f),s&&s()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(o)},I.prototype.write=function(o,m){var f=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 f._innerWrite()})),this._pendingData+=o.length,this._writeBuffer.push(o),this._callbacks.push(m)},I.prototype._innerWrite=function(){for(var o=this,m=Date.now();this._writeBuffer.length>this._bufferOffset;){var f=this._writeBuffer[this._bufferOffset],s=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(f),this._pendingData-=f.length,s&&s(),Date.now()-m>=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 o._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},I}();N.WriteBuffer=E},function(D,N,L){"use strict";Object.defineProperty(N,"__esModule",{value:!0}),N.AddonManager=void 0;var E=function(){function I(){this._addons=[]}return I.prototype.dispose=function(){for(var o=this._addons.length-1;o>=0;o--)this._addons[o].instance.dispose()},I.prototype.loadAddon=function(o,m){var f=this,s={instance:m,dispose:m.dispose,isDisposed:!1};this._addons.push(s),m.dispose=function(){return f._wrappedAddonDispose(s)},m.activate(o)},I.prototype._wrappedAddonDispose=function(o){if(!o.isDisposed){for(var m=-1,f=0;f<this._addons.length;f++)if(this._addons[f]===o){m=f;break}if(m===-1)throw new Error("Could not dispose an addon that has not been loaded");o.isDisposed=!0,o.dispose.apply(o.instance),this._addons.splice(m,1)}},I}();N.AddonManager=E}])})},"/SeX":function(fe,z,y){var D=y("knOB"),N=y("qZFw"),L=function(I){this.name=I||"",this.cx=0,this.cy=0,this._radiusAxis=new D,this._angleAxis=new N,this._radiusAxis.polar=this._angleAxis.polar=this};L.prototype={type:"polar",axisPointerEnabled:!0,constructor:L,dimensions:["radius","angle"],model:null,containPoint:function(I){var o=this.pointToCoord(I);return this._radiusAxis.contain(o[0])&&this._angleAxis.contain(o[1])},containData:function(I){return this._radiusAxis.containData(I[0])&&this._angleAxis.containData(I[1])},getAxis:function(I){return this["_"+I+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(I){var o=[],m=this._angleAxis,f=this._radiusAxis;return m.scale.type===I&&o.push(m),f.scale.type===I&&o.push(f),o},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(I){var o=this._angleAxis;return I===o?this._radiusAxis:o},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(I){var o=I!=null&&I!=="auto"?this.getAxis(I):this.getBaseAxis();return{baseAxes:[o],otherAxes:[this.getOtherAxis(o)]}},dataToPoint:function(I,o){return this.coordToPoint([this._radiusAxis.dataToRadius(I[0],o),this._angleAxis.dataToAngle(I[1],o)])},pointToData:function(I,o){var m=this.pointToCoord(I);return[this._radiusAxis.radiusToData(m[0],o),this._angleAxis.angleToData(m[1],o)]},pointToCoord:function(I){var o=I[0]-this.cx,m=I[1]-this.cy,f=this.getAngleAxis(),s=f.getExtent(),t=Math.min(s[0],s[1]),l=Math.max(s[0],s[1]);f.inverse?t=l-360:l=t+360;var a=Math.sqrt(o*o+m*m);o/=a,m/=a;for(var r=Math.atan2(-m,o)/Math.PI*180,u=r<t?1:-1;r<t||r>l;)r+=u*360;return[a,r]},coordToPoint:function(I){var o=I[0],m=I[1]/180*Math.PI,f=Math.cos(m)*o+this.cx,s=-Math.sin(m)*o+this.cy;return[f,s]},getArea:function(){var I=this.getAngleAxis(),o=this.getRadiusAxis(),m=o.getExtent().slice();m[0]>m[1]&&m.reverse();var f=I.getExtent(),s=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:m[0],r:m[1],startAngle:-f[0]*s,endAngle:-f[1]*s,clockwise:I.inverse,contain:function(t,l){var a=t-this.cx,r=l-this.cy,u=a*a+r*r,e=this.r,n=this.r0;return u<=e*e&&u>=n*n}}}};var E=L;fe.exports=E},"/WM3":function(fe,z,y){var D=y("QuXc"),N=y("bYtY"),L=N.isFunction,E={createOnAllSeries:!0,performRawSeries:!0,reset:function(I,o){var m=I.getData(),f=(I.visualColorAccessPath||"itemStyle.color").split("."),s=I.get(f),t=L(s)&&!(s instanceof D)?s:null;(!s||t)&&(s=I.getColorFromPalette(I.name,null,o.getSeriesCount())),m.setVisual("color",s);var l=(I.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),a=I.get(l);if(m.setVisual("borderColor",a),!o.isSeriesFiltered(I)){t&&m.each(function(u){m.setItemVisual(u,"color",t(I.getDataParams(u)))});var r=function(u,e){var n=u.getItemModel(e),i=n.get(f,!0),c=n.get(l,!0);i!=null&&u.setItemVisual(e,"color",i),c!=null&&u.setItemVisual(e,"borderColor",c)};return{dataEach:m.hasItemOption?r:null}}}};fe.exports=E},"/d5a":function(fe,z){var y={average:function(L){for(var E=0,I=0,o=0;o<L.length;o++)isNaN(L[o])||(E+=L[o],I++);return I===0?NaN:E/I},sum:function(L){for(var E=0,I=0;I<L.length;I++)E+=L[I]||0;return E},max:function(L){for(var E=-Infinity,I=0;I<L.length;I++)L[I]>E&&(E=L[I]);return isFinite(E)?E:NaN},min:function(L){for(var E=Infinity,I=0;I<L.length;I++)L[I]<E&&(E=L[I]);return isFinite(E)?E:NaN},nearest:function(L){return L[0]}},D=function(L,E){return Math.round(L.length/2)};function N(L){return{seriesType:L,modifyOutputEnd:!0,reset:function(E,I,o){var m=E.getData(),f=E.get("sampling"),s=E.coordinateSystem;if(s.type==="cartesian2d"&&f){var t=s.getBaseAxis(),l=s.getOtherAxis(t),a=t.getExtent(),r=a[1]-a[0],u=Math.round(m.count()/r);if(u>1){var e;typeof f=="string"?e=y[f]:typeof f=="function"&&(e=f),e&&E.setData(m.downSample(m.mapDimension(l.dim),1/u,e,D))}}}}}fe.exports=N},"/ezw":function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("cDf5"),o=y.n(I),m=y("q1tI"),f=y("TSYQ"),s=y.n(f),t=function(P){var U=P.prefixCls,j=P.className,H=P.width,W=P.style;return m.createElement("h3",{className:s()(U,j),style:E()({width:H},W)})},l=t,a=y("RIqP"),r=y.n(a),u=function(P){var U=function(Y){var Q=P.width,oe=P.rows,ue=oe===void 0?2:oe;return Array.isArray(Q)?Q[Y]:ue-1===Y?Q:void 0},j=P.prefixCls,H=P.className,W=P.style,G=P.rows,V=r()(Array(G)).map(function(Z,Y){return m.createElement("li",{key:Y,style:{width:U(Y)}})});return m.createElement("ul",{className:s()(j,H),style:W},V)},e=u,n=y("H84U"),i=function(P){var U,j,H=P.prefixCls,W=P.className,G=P.style,V=P.size,Z=P.shape,Y=s()((U={},N()(U,"".concat(H,"-lg"),V==="large"),N()(U,"".concat(H,"-sm"),V==="small"),U)),Q=s()((j={},N()(j,"".concat(H,"-circle"),Z==="circle"),N()(j,"".concat(H,"-square"),Z==="square"),N()(j,"".concat(H,"-round"),Z==="round"),j)),oe=typeof V=="number"?{width:V,height:V,lineHeight:"".concat(V,"px")}:{};return m.createElement("span",{className:s()(H,W,Y,Q),style:E()(E()({},oe),G)})},c=i,d=y("BGR+"),h=function(P){var U=function(H){var W=H.getPrefixCls,G=P.prefixCls,V=P.className,Z=P.active,Y=W("skeleton",G),Q=Object(d.default)(P,["prefixCls"]),oe=s()(Y,V,"".concat(Y,"-element"),N()({},"".concat(Y,"-active"),Z));return m.createElement("div",{className:oe},m.createElement(c,E()({prefixCls:"".concat(Y,"-avatar")},Q)))};return m.createElement(n.a,null,U)};h.defaultProps={size:"default",shape:"circle"};var p=h,g=function(P){var U=function(H){var W=H.getPrefixCls,G=P.prefixCls,V=P.className,Z=P.active,Y=W("skeleton",G),Q=Object(d.default)(P,["prefixCls"]),oe=s()(Y,V,"".concat(Y,"-element"),N()({},"".concat(Y,"-active"),Z));return m.createElement("div",{className:oe},m.createElement(c,E()({prefixCls:"".concat(Y,"-button")},Q)))};return m.createElement(n.a,null,U)};g.defaultProps={size:"default"};var v=g,A=function(P){var U=function(H){var W=H.getPrefixCls,G=P.prefixCls,V=P.className,Z=P.active,Y=W("skeleton",G),Q=Object(d.default)(P,["prefixCls"]),oe=s()(Y,V,"".concat(Y,"-element"),N()({},"".concat(Y,"-active"),Z));return m.createElement("div",{className:oe},m.createElement(c,E()({prefixCls:"".concat(Y,"-input")},Q)))};return m.createElement(n.a,null,U)};A.defaultProps={size:"default"};var x=A,b="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",w=function(P){var U=function(H){var W=H.getPrefixCls,G=P.prefixCls,V=P.className,Z=P.style,Y=W("skeleton",G),Q=s()(Y,V,"".concat(Y,"-element"));return m.createElement("div",{className:Q},m.createElement("div",{className:s()("".concat(Y,"-image"),V),style:Z},m.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(Y,"-image-svg")},m.createElement("path",{d:b,className:"".concat(Y,"-image-path")}))))};return m.createElement(n.a,null,U)},S=w;function T(B){return B&&o()(B)==="object"?B:{}}function C(B,P){return B&&!P?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function O(B,P){return!B&&P?{width:"38%"}:B&&P?{width:"50%"}:{}}function _(B,P){var U={};return(!B||!P)&&(U.width="61%"),!B&&P?U.rows=3:U.rows=2,U}var M=function(P){var U=function(H){var W=H.getPrefixCls,G=H.direction,V=P.prefixCls,Z=P.loading,Y=P.className,Q=P.children,oe=P.avatar,ue=P.title,Le=P.paragraph,me=P.active,Ie=P.round,X=W("skeleton",V);if(Z||!("loading"in P)){var q,We=!!oe,$=!!ue,J=!!Le,le;if(We){var de=E()(E()({prefixCls:"".concat(X,"-avatar")},C($,J)),T(oe));le=m.createElement("div",{className:"".concat(X,"-header")},m.createElement(c,de))}var Ne;if($||J){var we;if($){var De=E()(E()({prefixCls:"".concat(X,"-title")},O(We,J)),T(ue));we=m.createElement(l,De)}var Ee;if(J){var ce=E()(E()({prefixCls:"".concat(X,"-paragraph")},_(We,$)),T(Le));Ee=m.createElement(e,ce)}Ne=m.createElement("div",{className:"".concat(X,"-content")},we,Ee)}var ne=s()(X,Y,(q={},N()(q,"".concat(X,"-with-avatar"),We),N()(q,"".concat(X,"-active"),me),N()(q,"".concat(X,"-rtl"),G==="rtl"),N()(q,"".concat(X,"-round"),Ie),q));return m.createElement("div",{className:ne},le,Ne)}return Q};return m.createElement(n.a,null,U)};M.defaultProps={avatar:!1,title:!0,paragraph:!0},M.Button=v,M.Avatar=p,M.Input=x,M.Image=S;var k=M,R=z.a=k},"/iHx":function(fe,z,y){var D=y("6GrX"),N=y("IwbS"),L=["textStyle","color"],E={getTextColor:function(I){var o=this.ecModel;return this.getShallow("color")||(!I&&o?o.get(L):null)},getFont:function(){return N.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(I){return D.getBoundingRect(I,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};fe.exports=E},"/ry/":function(fe,z,y){var D=y("bYtY"),N=y("T4UG"),L=y("5GhG"),E=L.seriesModelMixin,I=N.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}});D.mixin(I,E,!0);var o=I;fe.exports=o},"/stD":function(fe,z,y){var D=y("bYtY"),N=y("IUWy"),L=y("Kagy"),E=L.toolbox.brush;function I(f,s,t){this.model=f,this.ecModel=s,this.api=t,this._brushType,this._brushMode}I.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:D.clone(E.title)};var o=I.prototype;o.render=o.updateView=function(f,s,t){var l,a,r;s.eachComponent({mainType:"brush"},function(u){l=u.brushType,a=u.brushOption.brushMode||"single",r|=u.areas.length}),this._brushType=l,this._brushMode=a,D.each(f.get("type",!0),function(u){f.setIconStatus(u,(u==="keep"?a==="multiple":u==="clear"?r:u===l)?"emphasis":"normal")})},o.getIcons=function(){var f=this.model,s=f.get("icon",!0),t={};return D.each(f.get("type",!0),function(l){s[l]&&(t[l]=s[l])}),t},o.onclick=function(f,s,t){var l=this._brushType,a=this._brushMode;t==="clear"?(s.dispatchAction({type:"axisAreaSelect",intervals:[]}),s.dispatchAction({type:"brush",command:"clear",areas:[]})):s.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:t==="keep"?l:l===t?!1:t,brushMode:t==="keep"?a==="multiple"?"single":"multiple":a}})},N.register("brush",I);var m=I;fe.exports=m},"/wGt":function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("lwsE"),o=y.n(I),m=y("W8MJ"),f=y.n(m),s=y("PJYZ"),t=y.n(s),l=y("7W2i"),a=y.n(l),r=y("LQ03"),u=y.n(r),e=y("q1tI"),n=y("Ff2n"),i=y("1OyB"),c=y("vuIU"),d=y("Ji7U"),h=y("md7G"),p=y("foSv"),g=y("1W/9"),v=y("rePB"),A=y("JX7q"),x=y("TSYQ"),b=y.n(x),w=y("qx4F"),S=y("4IlW");function T(we){return Array.isArray(we)?we:[we]}var C={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},O=Object.keys(C).filter(function(we){if(typeof document=="undefined")return!1;var De=document.getElementsByTagName("html")[0];return we in(De?De.style:{})})[0],_=C[O];function M(we,De,Ee,ce){we.addEventListener?we.addEventListener(De,Ee,ce):we.attachEvent&&we.attachEvent("on".concat(De),Ee)}function k(we,De,Ee,ce){we.removeEventListener?we.removeEventListener(De,Ee,ce):we.attachEvent&&we.detachEvent("on".concat(De),Ee)}function R(we,De){var Ee=typeof we=="function"?we(De):we;return Array.isArray(Ee)?Ee.length===2?Ee:[Ee[0],Ee[1]]:[Ee]}var B=function(De){return!isNaN(parseFloat(De))&&isFinite(De)},P=!(typeof window!="undefined"&&window.document&&window.document.createElement),U=function we(De,Ee,ce,ne){if(!Ee||Ee===document||Ee instanceof Document)return!1;if(Ee===De.parentNode)return!0;var ee=Math.max(Math.abs(ce),Math.abs(ne))===Math.abs(ne),Ae=Math.max(Math.abs(ce),Math.abs(ne))===Math.abs(ce),Ve=Ee.scrollHeight-Ee.clientHeight,Ke=Ee.scrollWidth-Ee.clientWidth,Oe=document.defaultView.getComputedStyle(Ee),it=Oe.overflowY==="auto"||Oe.overflowY==="scroll",Fe=Oe.overflowX==="auto"||Oe.overflowX==="scroll",ft=Ve&&it,At=Ke&&Fe;return ee&&(!ft||ft&&(Ee.scrollTop>=Ve&&ne<0||Ee.scrollTop<=0&&ne>0))||Ae&&(!At||At&&(Ee.scrollLeft>=Ke&&ce<0||Ee.scrollLeft<=0&&ce>0))?we(De,Ee.parentNode,ce,ne):!1};function j(we){var De=H();return function(){var ce=Object(p.a)(we),ne;if(De){var ee=Object(p.a)(this).constructor;ne=Reflect.construct(ce,arguments,ee)}else ne=ce.apply(this,arguments);return Object(h.a)(this,ne)}}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(we){return!1}}var W={},G=function(we){Object(d.a)(Ee,we);var De=j(Ee);function Ee(ce){var ne;return Object(i.a)(this,Ee),ne=De.call(this,ce),ne.domFocus=function(){ne.dom&&ne.dom.focus()},ne.removeStartHandler=function(ee){if(ee.touches.length>1)return;ne.startPos={x:ee.touches[0].clientX,y:ee.touches[0].clientY}},ne.removeMoveHandler=function(ee){if(ee.changedTouches.length>1)return;var Ae=ee.currentTarget,Ve=ee.changedTouches[0].clientX-ne.startPos.x,Ke=ee.changedTouches[0].clientY-ne.startPos.y;(Ae===ne.maskDom||Ae===ne.handlerDom||Ae===ne.contentDom&&U(Ae,ee.target,Ve,Ke))&&ee.cancelable&&ee.preventDefault()},ne.transitionEnd=function(ee){var Ae=ee.target;k(Ae,_,ne.transitionEnd),Ae.style.transition=""},ne.onKeyDown=function(ee){if(ee.keyCode===S.a.ESC){var Ae=ne.props.onClose;ee.stopPropagation(),Ae&&Ae(ee)}},ne.onWrapperTransitionEnd=function(ee){var Ae=ne.props,Ve=Ae.open,Ke=Ae.afterVisibleChange;ee.target===ne.contentWrapper&&ee.propertyName.match(/transform$/)&&(ne.dom.style.transition="",!Ve&&ne.getCurrentDrawerSome()&&(document.body.style.overflowX="",ne.maskDom&&(ne.maskDom.style.left="",ne.maskDom.style.width="")),Ke&&Ke(!!Ve))},ne.openLevelTransition=function(){var ee=ne.props,Ae=ee.open,Ve=ee.width,Ke=ee.height,Oe=ne.getHorizontalBoolAndPlacementName(),it=Oe.isHorizontal,Fe=Oe.placementName,ft=ne.contentDom?ne.contentDom.getBoundingClientRect()[it?"width":"height"]:0,At=(it?Ve:Ke)||ft;ne.setLevelAndScrolling(Ae,Fe,At)},ne.setLevelTransform=function(ee,Ae,Ve,Ke){var Oe=ne.props,it=Oe.placement,Fe=Oe.levelMove,ft=Oe.duration,At=Oe.ease,bt=Oe.showMask;ne.levelDom.forEach(function(St){St.style.transition="transform ".concat(ft," ").concat(At),M(St,_,ne.transitionEnd);var Et=ee?Ve:0;if(Fe){var je=R(Fe,{target:St,open:ee});Et=ee?je[0]:je[1]||0}var pe=typeof Et=="number"?"".concat(Et,"px"):Et,ie=it==="left"||it==="top"?pe:"-".concat(pe);ie=bt&&it==="right"&&Ke?"calc(".concat(ie," + ").concat(Ke,"px)"):ie,St.style.transform=Et?"".concat(Ae,"(").concat(ie,")"):""})},ne.setLevelAndScrolling=function(ee,Ae,Ve){var Ke=ne.props.onChange;if(!P){var Oe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(!0):0;ne.setLevelTransform(ee,Ae,Ve,Oe),ne.toggleScrollingToDrawerAndBody(Oe)}Ke&&Ke(ee)},ne.toggleScrollingToDrawerAndBody=function(ee){var Ae=ne.props,Ve=Ae.getOpenCount,Ke=Ae.getContainer,Oe=Ae.showMask,it=Ae.open,Fe=Ke&&Ke(),ft=Ve&&Ve();if(Fe&&Fe.parentNode===document.body&&Oe){var At=["touchstart"],bt=[document.body,ne.maskDom,ne.handlerDom,ne.contentDom];it&&document.body.style.overflow!=="hidden"?(ee&&ne.addScrollingEffect(ee),ft===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",bt.forEach(function(St,Et){if(!St)return;M(St,At[Et]||"touchmove",Et?ne.removeMoveHandler:ne.removeStartHandler,ne.passive)})):ne.getCurrentDrawerSome()&&(ft||(document.body.style.overflow=""),document.body.style.touchAction="",ee&&ne.remScrollingEffect(ee),bt.forEach(function(St,Et){if(!St)return;k(St,At[Et]||"touchmove",Et?ne.removeMoveHandler:ne.removeStartHandler,ne.passive)}))}},ne.addScrollingEffect=function(ee){var Ae=ne.props,Ve=Ae.placement,Ke=Ae.duration,Oe=Ae.ease,it=Ae.getOpenCount,Fe=Ae.switchScrollingEffect,ft=it&&it();ft===1&&Fe();var At="width ".concat(Ke," ").concat(Oe),bt="transform ".concat(Ke," ").concat(Oe);ne.dom.style.transition="none";switch(Ve){case"right":ne.dom.style.transform="translateX(-".concat(ee,"px)");break;case"top":case"bottom":ne.dom.style.width="calc(100% - ".concat(ee,"px)"),ne.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(ne.timeout),ne.timeout=setTimeout(function(){ne.dom&&(ne.dom.style.transition="".concat(bt,",").concat(At),ne.dom.style.width="",ne.dom.style.transform="")})},ne.remScrollingEffect=function(ee){var Ae=ne.props,Ve=Ae.placement,Ke=Ae.duration,Oe=Ae.ease,it=Ae.getOpenCount,Fe=Ae.switchScrollingEffect,ft=it&&it();ft||Fe(!0),O&&(document.body.style.overflowX="hidden"),ne.dom.style.transition="none";var At,bt="width ".concat(Ke," ").concat(Oe),St="transform ".concat(Ke," ").concat(Oe);switch(Ve){case"left":{ne.dom.style.width="100%",bt="width 0s ".concat(Oe," ").concat(Ke);break}case"right":{ne.dom.style.transform="translateX(".concat(ee,"px)"),ne.dom.style.width="100%",bt="width 0s ".concat(Oe," ").concat(Ke),ne.maskDom&&(ne.maskDom.style.left="-".concat(ee,"px"),ne.maskDom.style.width="calc(100% + ".concat(ee,"px)"));break}case"top":case"bottom":{ne.dom.style.width="calc(100% + ".concat(ee,"px)"),ne.dom.style.height="100%",ne.dom.style.transform="translateZ(0)",At="height 0s ".concat(Oe," ").concat(Ke);break}default:break}clearTimeout(ne.timeout),ne.timeout=setTimeout(function(){ne.dom&&(ne.dom.style.transition="".concat(St,",").concat(At?"".concat(At,","):"").concat(bt),ne.dom.style.transform="",ne.dom.style.width="",ne.dom.style.height="")})},ne.getCurrentDrawerSome=function(){return!Object.keys(W).some(function(ee){return W[ee]})},ne.getLevelDom=function(ee){var Ae=ee.level,Ve=ee.getContainer;if(P)return;var Ke=Ve&&Ve(),Oe=Ke?Ke.parentNode:null;if(ne.levelDom=[],Ae==="all"){var it=Oe?Array.prototype.slice.call(Oe.children):[];it.forEach(function(Fe){Fe.nodeName!=="SCRIPT"&&Fe.nodeName!=="STYLE"&&Fe.nodeName!=="LINK"&&Fe!==Ke&&ne.levelDom.push(Fe)})}else Ae&&T(Ae).forEach(function(Fe){document.querySelectorAll(Fe).forEach(function(ft){ne.levelDom.push(ft)})})},ne.getHorizontalBoolAndPlacementName=function(){var ee=ne.props.placement,Ae=ee==="left"||ee==="right",Ve="translate".concat(Ae?"X":"Y");return{isHorizontal:Ae,placementName:Ve}},ne.state={_self:Object(A.a)(ne)},ne}return Object(c.a)(Ee,[{key:"componentDidMount",value:function(){var ne=this;if(!P){var ee=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ee=!0,null}}))}catch(it){}this.passive=ee?{passive:!1}:!1}var Ae=this.props,Ve=Ae.open,Ke=Ae.getContainer,Oe=Ke&&Ke();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),Ve&&(Oe&&Oe.parentNode===document.body&&(W[this.drawerId]=Ve),this.openLevelTransition(),this.forceUpdate(function(){ne.domFocus()}))}},{key:"componentDidUpdate",value:function(ne){var ee=this.props,Ae=ee.open,Ve=ee.getContainer,Ke=Ve&&Ve();Ae!==ne.open&&(Ae&&this.domFocus(),Ke&&Ke.parentNode===document.body&&(W[this.drawerId]=!!Ae),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var ne=this.props,ee=ne.getOpenCount,Ae=ne.open,Ve=ne.switchScrollingEffect,Ke=typeof ee=="function"&&ee();delete W[this.drawerId],Ae&&(this.setLevelTransform(!1),document.body.style.touchAction=""),Ke||(document.body.style.overflow="",Ve(!0))}},{key:"render",value:function(){var ne,ee=this,Ae=this.props,Ve=Ae.className,Ke=Ae.children,Oe=Ae.style,it=Ae.width,Fe=Ae.height,ft=Ae.defaultOpen,At=Ae.open,bt=Ae.prefixCls,St=Ae.placement,Et=Ae.level,je=Ae.levelMove,pe=Ae.ease,ie=Ae.duration,st=Ae.getContainer,Qe=Ae.handler,ve=Ae.onChange,Bt=Ae.afterVisibleChange,qt=Ae.showMask,ct=Ae.maskClosable,Wt=Ae.maskStyle,or=Ae.onClose,Fr=Ae.onHandleClick,er=Ae.keyboard,nr=Ae.getOpenCount,Ot=Ae.switchScrollingEffect,lt=Object(n.a)(Ae,["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"]),qe=this.dom?At:!1,tr=b()(bt,(ne={},Object(v.a)(ne,"".concat(bt,"-").concat(St),!0),Object(v.a)(ne,"".concat(bt,"-open"),qe),Object(v.a)(ne,Ve||"",!!Ve),Object(v.a)(ne,"no-mask",!qt),ne)),xr=this.getHorizontalBoolAndPlacementName(),Ar=xr.placementName,fr=St==="left"||St==="top"?"-100%":"100%",vn=qe?"":"".concat(Ar,"(").concat(fr,")"),$r=Qe&&e.cloneElement(Qe,{onClick:function(tt){Qe.props.onClick&&Qe.props.onClick(),Fr&&Fr(tt)},ref:function(tt){ee.handlerDom=tt}});return e.createElement("div",Object.assign({},lt,{tabIndex:-1,className:tr,style:Oe,ref:function(tt){ee.dom=tt},onKeyDown:qe&&er?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),qt&&e.createElement("div",{className:"".concat(bt,"-mask"),onClick:ct?or:void 0,style:Wt,ref:function(tt){ee.maskDom=tt}}),e.createElement("div",{className:"".concat(bt,"-content-wrapper"),style:{transform:vn,msTransform:vn,width:B(it)?"".concat(it,"px"):it,height:B(Fe)?"".concat(Fe,"px"):Fe},ref:function(tt){ee.contentWrapper=tt}},e.createElement("div",{className:"".concat(bt,"-content"),ref:function(tt){ee.contentDom=tt},onTouchStart:qe&&qt?this.removeStartHandler:void 0,onTouchMove:qe&&qt?this.removeMoveHandler:void 0},Ke),$r))}}],[{key:"getDerivedStateFromProps",value:function(ne,ee){var Ae=ee.prevProps,Ve=ee._self,Ke={prevProps:ne};if(Ae!==void 0){var Oe=ne.placement,it=ne.level;Oe!==Ae.placement&&(Ve.contentDom=null),it!==Ae.level&&Ve.getLevelDom(ne)}return Ke}}]),Ee}(e.Component);G.defaultProps={switchScrollingEffect:function(){}};var V=G;function Z(we){var De=Y();return function(){var ce=Object(p.a)(we),ne;if(De){var ee=Object(p.a)(this).constructor;ne=Reflect.construct(ce,arguments,ee)}else ne=ce.apply(this,arguments);return Object(h.a)(this,ne)}}function Y(){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(we){return!1}}var Q=function(we){Object(d.a)(Ee,we);var De=Z(Ee);function Ee(ce){var ne;Object(i.a)(this,Ee),ne=De.call(this,ce),ne.onHandleClick=function(Ae){var Ve=ne.props,Ke=Ve.onHandleClick,Oe=Ve.open;if(Ke&&Ke(Ae),typeof Oe=="undefined"){var it=ne.state.open;ne.setState({open:!it})}},ne.onClose=function(Ae){var Ve=ne.props,Ke=Ve.onClose,Oe=Ve.open;Ke&&Ke(Ae),typeof Oe=="undefined"&&ne.setState({open:!1})};var ee=typeof ce.open!="undefined"?ce.open:!!ce.defaultOpen;return ne.state={open:ee},"onMaskClick"in ce&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),ne}return Object(c.a)(Ee,[{key:"render",value:function(){var ne=this,ee=this.props,Ae=ee.defaultOpen,Ve=ee.getContainer,Ke=ee.wrapperClassName,Oe=ee.forceRender,it=ee.handler,Fe=Object(n.a)(ee,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),ft=this.state.open;if(!Ve)return e.createElement("div",{className:Ke,ref:function(St){ne.dom=St}},e.createElement(V,Object.assign({},Fe,{open:ft,handler:it,getContainer:function(){return ne.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var At=!!it||Oe;return e.createElement(g.a,{visible:ft,forceRender:At,getContainer:Ve,wrapperClassName:Ke},function(bt){var St=bt.visible,Et=bt.afterClose,je=Object(n.a)(bt,["visible","afterClose"]);return e.createElement(V,Object.assign({},Fe,je,{open:St!==void 0?St:ft,afterVisibleChange:Et!==void 0?Et:Fe.afterVisibleChange,handler:it,onClose:ne.onClose,onHandleClick:ne.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(ne,ee){var Ae=ee.prevProps,Ve={prevProps:ne};return typeof Ae!="undefined"&&ne.open!==Ae.open&&(Ve.open=ne.open),Ve}}]),Ee}(e.Component);Q.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:e.createElement("div",{className:"drawer-handle"},e.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var oe=Q,ue=oe,Le=y("V/uB"),me=y.n(Le),Ie=y("BGR+"),X=y("H84U"),q=y("CWQg"),We=function(we,De){var Ee={};for(var ce in we)Object.prototype.hasOwnProperty.call(we,ce)&&De.indexOf(ce)<0&&(Ee[ce]=we[ce]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,ce=Object.getOwnPropertySymbols(we);ne<ce.length;ne++)De.indexOf(ce[ne])<0&&Object.prototype.propertyIsEnumerable.call(we,ce[ne])&&(Ee[ce[ne]]=we[ce[ne]]);return Ee},$=e.createContext(null),J=Object(q.a)("top","right","bottom","left"),le={distance:180},de=function(we){a()(Ee,we);var De=u()(Ee);function Ee(){var ce;return o()(this,Ee),ce=De.apply(this,arguments),ce.state={push:!1},ce.push=function(){ce.props.push&&ce.setState({push:!0})},ce.pull=function(){ce.props.push&&ce.setState({push:!1})},ce.onDestroyTransitionEnd=function(){var ne=ce.getDestroyOnClose();if(!ne)return;ce.props.visible||(ce.destroyClose=!0,ce.forceUpdate())},ce.getDestroyOnClose=function(){return ce.props.destroyOnClose&&!ce.props.visible},ce.getPushDistance=function(){var ne=ce.props.push,ee;return typeof ne=="boolean"?ee=ne?le.distance:0:ee=ne.distance,parseFloat(String(ee||0))},ce.getPushTransform=function(ne){var ee=ce.getPushDistance();if(ne==="left"||ne==="right")return"translateX(".concat(ne==="left"?ee:-ee,"px)");if(ne==="top"||ne==="bottom")return"translateY(".concat(ne==="top"?ee:-ee,"px)")},ce.getRcDrawerStyle=function(){var ne=ce.props,ee=ne.zIndex,Ae=ne.placement,Ve=ne.mask,Ke=ne.style,Oe=ce.state.push,it=Ve?{}:ce.getOffsetStyle();return E()(E()({zIndex:ee,transform:Oe?ce.getPushTransform(Ae):void 0},it),Ke)},ce.renderBody=function(){var ne=ce.props,ee=ne.bodyStyle,Ae=ne.drawerStyle,Ve=ne.prefixCls,Ke=ne.visible;if(ce.destroyClose&&!Ke)return null;ce.destroyClose=!1;var Oe={},it=ce.getDestroyOnClose();return it&&(Oe.opacity=0,Oe.transition="opacity .3s"),e.createElement("div",{className:"".concat(Ve,"-wrapper-body"),style:E()(E()({},Oe),Ae),onTransitionEnd:ce.onDestroyTransitionEnd},ce.renderHeader(),e.createElement("div",{className:"".concat(Ve,"-body"),style:ee},ce.props.children),ce.renderFooter())},ce.renderProvider=function(ne){return ce.parentDrawer=ne,e.createElement(X.a,null,function(ee){var Ae=ee.getPopupContainer,Ve=ee.getPrefixCls,Ke=ce.props,Oe=Ke.prefixCls,it=Ke.placement,Fe=Ke.className,ft=Ke.mask,At=Ke.direction,bt=Ke.visible,St=We(Ke,["prefixCls","placement","className","mask","direction","visible"]),Et=Ve("select",Oe),je=b()(Fe,N()({"no-mask":!ft},"".concat(Et,"-rtl"),At==="rtl")),pe=ft?ce.getOffsetStyle():{};return e.createElement($.Provider,{value:t()(ce)},e.createElement(ue,E()({handler:!1},Object(Ie.default)(St,["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:St.getContainer===void 0&&Ae?function(){return Ae(document.body)}:St.getContainer},pe,{prefixCls:Et,open:bt,showMask:ft,placement:it,style:ce.getRcDrawerStyle(),className:je}),ce.renderBody()))})},ce}return f()(Ee,[{key:"componentDidMount",value:function(){var ne=this.props.visible;ne&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(ne){var ee=this.props.visible;ne.visible!==ee&&this.parentDrawer&&(ee?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var ne=this.props,ee=ne.placement,Ae=ne.width,Ve=ne.height,Ke=ne.visible,Oe=ne.mask;if(!Ke&&!Oe)return{};var it={};return ee==="left"||ee==="right"?it.width=Ae:it.height=Ve,it}},{key:"renderHeader",value:function(){var ne=this.props,ee=ne.title,Ae=ne.prefixCls,Ve=ne.closable,Ke=ne.headerStyle;if(!ee&&!Ve)return null;var Oe=ee?"".concat(Ae,"-header"):"".concat(Ae,"-header-no-title");return e.createElement("div",{className:Oe,style:Ke},ee&&e.createElement("div",{className:"".concat(Ae,"-title")},ee),Ve&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var ne=this.props,ee=ne.footer,Ae=ne.footerStyle,Ve=ne.prefixCls;if(!ee)return null;var Ke="".concat(Ve,"-footer");return e.createElement("div",{className:Ke,style:Ae},ee)}},{key:"renderCloseIcon",value:function(){var ne=this.props,ee=ne.closable,Ae=ne.closeIcon,Ve=Ae===void 0?e.createElement(me.a,null):Ae,Ke=ne.prefixCls,Oe=ne.onClose;return ee&&e.createElement("button",{onClick:Oe,"aria-label":"Close",className:"".concat(Ke,"-close"),style:{"--scroll-bar":"".concat(Object(w.a)(),"px")}},Ve)}},{key:"render",value:function(){return e.createElement($.Consumer,null,this.renderProvider)}}]),Ee}(e.Component);de.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:le};var Ne=z.a=Object(X.c)({prefixCls:"drawer"})(de)},"/y7N":function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L=y("6GrX"),E=y("7aKB"),I=y("Fofx"),o=y("aX7z"),m=y("+rIm");function f(i){var c=i.get("type"),d=i.getModel(c+"Style"),h;return c==="line"?(h=d.getLineStyle(),h.fill=null):c==="shadow"&&(h=d.getAreaStyle(),h.stroke=null),h}function s(i,c,d,h,p){var g=d.get("value"),v=l(g,c.axis,c.ecModel,d.get("seriesDataIndices"),{precision:d.get("label.precision"),formatter:d.get("label.formatter")}),A=d.getModel("label"),x=E.normalizeCssArray(A.get("padding")||0),b=A.getFont(),w=L.getBoundingRect(v,b),S=p.position,T=w.width+x[1]+x[3],C=w.height+x[0]+x[2],O=p.align;O==="right"&&(S[0]-=T),O==="center"&&(S[0]-=T/2);var _=p.verticalAlign;_==="bottom"&&(S[1]-=C),_==="middle"&&(S[1]-=C/2),t(S,T,C,h);var M=A.get("backgroundColor");(!M||M==="auto")&&(M=c.get("axisLine.lineStyle.color")),i.label={shape:{x:0,y:0,width:T,height:C,r:A.get("borderRadius")},position:S.slice(),style:{text:v,textFont:b,textFill:A.getTextColor(),textPosition:"inside",textPadding:x,fill:M,stroke:A.get("borderColor")||"transparent",lineWidth:A.get("borderWidth")||0,shadowBlur:A.get("shadowBlur"),shadowColor:A.get("shadowColor"),shadowOffsetX:A.get("shadowOffsetX"),shadowOffsetY:A.get("shadowOffsetY")},z2:10}}function t(i,c,d,h){var p=h.getWidth(),g=h.getHeight();i[0]=Math.min(i[0]+c,p)-c,i[1]=Math.min(i[1]+d,g)-d,i[0]=Math.max(i[0],0),i[1]=Math.max(i[1],0)}function l(i,c,d,h,p){i=c.scale.parse(i);var g=c.scale.getLabel(i,{precision:p.precision}),v=p.formatter;if(v){var A={value:o.getAxisRawValue(c,i),axisDimension:c.dim,axisIndex:c.index,seriesData:[]};D.each(h,function(x){var b=d.getSeriesByIndex(x.seriesIndex),w=x.dataIndexInside,S=b&&b.getDataParams(w);S&&A.seriesData.push(S)}),D.isString(v)?g=v.replace("{value}",g):D.isFunction(v)&&(g=v(A))}return g}function a(i,c,d){var h=I.create();return I.rotate(h,h,d.rotation),I.translate(h,h,d.position),N.applyTransform([i.dataToCoord(c),(d.labelOffset||0)+(d.labelDirection||1)*(d.labelMargin||0)],h)}function r(i,c,d,h,p,g){var v=m.innerTextLayout(d.rotation,0,d.labelDirection);d.labelMargin=p.get("label.margin"),s(c,h,p,g,{position:a(h.axis,i,d),align:v.textAlign,verticalAlign:v.textVerticalAlign})}function u(i,c,d){return d=d||0,{x1:i[d],y1:i[1-d],x2:c[d],y2:c[1-d]}}function e(i,c,d){return d=d||0,{x:i[d],y:i[1-d],width:c[d],height:c[1-d]}}function n(i,c,d,h,p,g){return{cx:i,cy:c,r0:d,r:h,startAngle:p,endAngle:g,clockwise:!0}}z.buildElStyle=f,z.buildLabelElOption=s,z.getValueLabel=l,z.getTransformedPosition=a,z.buildCartesianSingleLabelElOption=r,z.makeLineShape=u,z.makeRectShape=e,z.makeSectorShape=n},"/zsF":function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("bE4E"),E=y.n(L)},"0/Rx":function(fe,z){function y(D){return{seriesType:D,reset:function(N,L){var E=L.findComponents({mainType:"legend"});if(!E||!E.length)return;var I=N.getData();I.filterSelf(function(o){for(var m=I.getName(o),f=0;f<E.length;f++)if(!E[f].isSelected(m))return!1;return!0})}}}fe.exports=y},"01d+":function(fe,z,y){var D=y("bYtY"),N=D.each,L=y("HF/U"),E=L.simpleLayout,I=L.simpleLayoutEdge;function o(m,f){m.eachSeriesByType("graph",function(s){var t=s.get("layout"),l=s.coordinateSystem;if(l&&l.type!=="view"){var a=s.getData(),r=[];N(l.dimensions,function(d){r=r.concat(a.mapDimension(d,!0))});for(var u=0;u<a.count();u++){for(var e=[],n=!1,i=0;i<r.length;i++){var c=a.get(r[i],u);isNaN(c)||(n=!0),e.push(c)}n?a.setItemLayout(u,l.dataToPoint(e)):a.setItemLayout(u,[NaN,NaN])}I(a.graph)}else(!t||t==="none")&&E(s)})}fe.exports=o},"06DH":function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("Kagy"),E=y("IUWy"),I=L.toolbox.magicType,o="__ec_magicType_stack__";function m(a){this.model=a}m.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:N.clone(I.title),option:{},seriesIndex:{}};var f=m.prototype;f.getIcons=function(){var a=this.model,r=a.get("icon"),u={};return N.each(a.get("type"),function(e){r[e]&&(u[e]=r[e])}),u};var s={line:function(a,r,u,e){if(a==="bar")return N.merge({id:r,type:"line",data:u.get("data"),stack:u.get("stack"),markPoint:u.get("markPoint"),markLine:u.get("markLine")},e.get("option.line")||{},!0)},bar:function(a,r,u,e){if(a==="line")return N.merge({id:r,type:"bar",data:u.get("data"),stack:u.get("stack"),markPoint:u.get("markPoint"),markLine:u.get("markLine")},e.get("option.bar")||{},!0)},stack:function(a,r,u,e){var n=u.get("stack")===o;if(a==="line"||a==="bar")return e.setIconStatus("stack",n?"normal":"emphasis"),N.merge({id:r,stack:n?"":o},e.get("option.stack")||{},!0)}},t=[["line","bar"],["stack"]];f.onclick=function(a,r,u){var e=this.model,n=e.get("seriesIndex."+u);if(!s[u])return;var i={series:[]},c=function(p){var g=p.subType,v=p.id,A=s[u](g,v,p,e);A&&(N.defaults(A,p.option),i.series.push(A));var x=p.coordinateSystem;if(x&&x.type==="cartesian2d"&&(u==="line"||u==="bar")){var b=x.getAxesByScale("ordinal")[0];if(b){var w=b.dim,S=w+"Axis",T=a.queryComponents({mainType:S,index:p.get(name+"Index"),id:p.get(name+"Id")})[0],C=T.componentIndex;i[S]=i[S]||[];for(var O=0;O<=C;O++)i[S][C]=i[S][C]||{};i[S][C].boundaryGap=u==="bar"}}};N.each(t,function(p){N.indexOf(p,u)>=0&&N.each(p,function(g){e.setIconStatus(g,"normal")})}),e.setIconStatus(u,"emphasis"),a.eachComponent({mainType:"series",query:n==null?null:{seriesIndex:n}},c);var d;if(u==="stack"){var h=i.series&&i.series[0]&&i.series[0].stack===o;d=h?N.merge({stack:I.title.tiled},I.title):N.clone(I.title)}r.dispatchAction({type:"changeMagicType",currentType:u,newOption:i,newTitle:d,featureName:"magicType"})},D.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,r){r.mergeOption(a.newOption)}),E.register("magicType",m);var l=m;fe.exports=l},"06Qe":function(fe,z,y){var D=y("ItGF"),N="urn:schemas-microsoft-com:vml",L=typeof window=="undefined"?null:window,E=!1,I=L&&L.document;function o(s){return m(s)}var m;if(I&&!D.canvasSupported)try{!I.namespaces.zrvml&&I.namespaces.add("zrvml",N),m=function(t){return I.createElement("<zrvml:"+t+' class="zrvml">')}}catch(s){m=function(l){return I.createElement("<"+l+' xmlns="'+N+'" class="zrvml">')}}function f(){if(E||!I)return;E=!0;var s=I.styleSheets;s.length<31?I.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):s[0].addRule(".zrvml","behavior:url(#default#VML)")}z.doc=I,z.createNode=o,z.initVML=f},"09Wf":function(fe,z,y){"use strict";y.d(z,"b",function(){return N}),y.d(z,"a",function(){return L});var D=y("CWQg"),N=Object(D.a)("success","processing","error","default","warning"),L=Object(D.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(fe,z,y){var D=y("T4UG"),N=y("I3/A"),L=y("7aKB"),E=L.encodeHTML,I=y("Qxkt"),o=y("Tghj"),m=o.__DEV__,f=D.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(t,l){for(var a=t.edges||t.links,r=t.data||t.nodes,u=t.levels,e=this.levelModels={},n=0;n<u.length;n++)u[n].depth!=null&&u[n].depth>=0&&(e[u[n].depth]=new I(u[n],this,l));if(r&&a){var i=N(r,a,this,!0,c);return i.data}function c(d,h){d.wrapMethod("getItemModel",function(p,g){return p.customizeGetParent(function(v){var A=this.parentModel,x=A.getData().getItemLayout(g).depth,b=A.levelModels[x];return b||this.parentModel}),p}),h.wrapMethod("getItemModel",function(p,g){return p.customizeGetParent(function(v){var A=this.parentModel,x=A.getGraph().getEdgeByIndex(g),b=x.node1.getLayout().depth,w=A.levelModels[b];return w||this.parentModel}),p})}},setNodePosition:function(t,l){var a=this.option.data[t];a.localX=l[0],a.localY=l[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,l,a){if(a==="edge"){var r=this.getDataParams(t,a),u=r.data,e=u.source+" -- "+u.target;return r.value&&(e+=" : "+r.value),E(e)}else if(a==="node"){var n=this.getGraph().getNodeByIndex(t),i=n.getLayout().value,c=this.getDataParams(t,a).data.name;if(i)var e=c+" : "+i;return E(e)}return f.superCall(this,"formatTooltip",t,l)},optionUpdated:function(){var t=this.option;t.focusNodeAdjacency===!0&&(t.focusNodeAdjacency="allEdges")},getDataParams:function(t,l){var a=f.superCall(this,"getDataParams",t,l);if(a.value==null&&l==="node"){var r=this.getGraph().getNodeByIndex(t),u=r.getLayout().value;a.value=u}return a},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}}),s=f;fe.exports=s},"0HBW":function(fe,z,y){var D=y("ProS"),N=y("bYtY");y("Hxpc"),y("7uqq"),y("dmGj"),y("SehX");function L(E,I){I.update="updateView",D.registerAction(I,function(o,m){var f={};return m.eachComponent({mainType:"geo",query:o},function(s){s[E](o.name);var t=s.coordinateSystem;N.each(t.regions,function(l){f[l.name]=s.isSelected(l.name)||!1})}),{selected:f,name:o.name}})}L("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),L("select",{type:"geoSelect",event:"geoselected"}),L("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(fe,z,y){var D=y("bYtY"),N=y("+TT/"),L=y("OELB"),E=y("IDmD"),I=864e5;function o(s,t,l){this._model=s}o.prototype={constructor:o,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(s){s=L.parseDate(s);var t=s.getFullYear(),l=s.getMonth()+1;l=l<10?"0"+l:l;var a=s.getDate();a=a<10?"0"+a:a;var r=s.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:t,m:l,d:a,day:r,time:s.getTime(),formatedDate:t+"-"+l+"-"+a,date:s}},getNextNDay:function(s,t){return t=t||0,t===0?this.getDateInfo(s):(s=new Date(this.getDateInfo(s).time),s.setDate(s.getDate()+t),this.getDateInfo(s))},update:function(s,t){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 l=this._rangeInfo.weeks||1,a=["width","height"],r=this._model.get("cellSize").slice(),u=this._model.getBoxLayoutParams(),e=this._orient==="horizontal"?[l,7]:[7,l];D.each([0,1],function(d){c(r,d)&&(u[a[d]]=r[d]*e[d])});var n={width:t.getWidth(),height:t.getHeight()},i=this._rect=N.getLayoutRect(u,n);D.each([0,1],function(d){c(r,d)||(r[d]=i[a[d]]/e[d])});function c(d,h){return d[h]!=null&&d[h]!=="auto"}this._sw=r[0],this._sh=r[1]},dataToPoint:function(s,t){D.isArray(s)&&(s=s[0]),t==null&&(t=!0);var l=this.getDateInfo(s),a=this._rangeInfo,r=l.formatedDate;if(t&&!(l.time>=a.start.time&&l.time<a.end.time+I))return[NaN,NaN];var u=l.day,e=this._getRangeInfo([a.start.time,r]).nthWeek;return this._orient==="vertical"?[this._rect.x+u*this._sw+this._sw/2,this._rect.y+e*this._sh+this._sh/2]:[this._rect.x+e*this._sw+this._sw/2,this._rect.y+u*this._sh+this._sh/2]},pointToData:function(s){var t=this.pointToDate(s);return t&&t.time},dataToRect:function(s,t){var l=this.dataToPoint(s,t);return{contentShape:{x:l[0]-(this._sw-this._lineWidth)/2,y:l[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:l,tl:[l[0]-this._sw/2,l[1]-this._sh/2],tr:[l[0]+this._sw/2,l[1]-this._sh/2],br:[l[0]+this._sw/2,l[1]+this._sh/2],bl:[l[0]-this._sw/2,l[1]+this._sh/2]}},pointToDate:function(s){var t=Math.floor((s[0]-this._rect.x)/this._sw)+1,l=Math.floor((s[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(l,t-1,a):this._getDateByWeeksAndDay(t,l-1,a)},convertToPixel:D.curry(m,"dataToPoint"),convertFromPixel:D.curry(m,"pointToData"),_initRangeOption:function(){var s=this._model.get("range"),t=s;if(D.isArray(t)&&t.length===1&&(t=t[0]),/^\d{4}$/.test(t)&&(s=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var l=this.getDateInfo(t),a=l.date;a.setMonth(a.getMonth()+1);var r=this.getNextNDay(a,-1);s=[l.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(s=[t,t]);var u=this._getRangeInfo(s);return u.start.time>u.end.time&&s.reverse(),s},_getRangeInfo:function(s){s=[this.getDateInfo(s[0]),this.getDateInfo(s[1])];var t;s[0].time>s[1].time&&(t=!0,s.reverse());var l=Math.floor(s[1].time/I)-Math.floor(s[0].time/I)+1,a=new Date(s[0].time),r=a.getDate(),u=s[1].date.getDate();a.setDate(r+l-1);var e=a.getDate();if(e!==u)for(var n=a.getTime()-s[1].time>0?1:-1;(e=a.getDate())!==u&&(a.getTime()-s[1].time)*n>0;)l-=n,a.setDate(e-n);var i=Math.floor((l+s[0].day+6)/7),c=t?-i+1:i-1;return t&&s.reverse(),{range:[s[0].formatedDate,s[1].formatedDate],start:s[0],end:s[1],allDay:l,weeks:i,nthWeek:c,fweek:s[0].day,lweek:s[1].day}},_getDateByWeeksAndDay:function(s,t,l){var a=this._getRangeInfo(l);if(s>a.weeks||s===0&&t<a.fweek||s===a.weeks&&t>a.lweek)return!1;var r=(s-1)*7-a.fweek+t,u=new Date(a.start.time);return u.setDate(a.start.d+r),this.getDateInfo(u)}},o.dimensions=o.prototype.dimensions,o.getDimensionsInfo=o.prototype.getDimensionsInfo,o.create=function(s,t){var l=[];return s.eachComponent("calendar",function(a){var r=new o(a,s,t);l.push(r),a.coordinateSystem=r}),s.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=l[a.get("calendarIndex")||0])}),l};function m(s,t,l,a){var r=l.calendarModel,u=l.seriesModel,e=r?r.coordinateSystem:u?u.coordinateSystem:null;return e===this?e[s](a):null}E.register("calendar",o);var f=o;fe.exports=f},"0JQy":function(fe,z){var y="\\ud800-\\udfff",D="\\u0300-\\u036f",N="\\ufe20-\\ufe2f",L="\\u20d0-\\u20ff",E=D+N+L,I="\\ufe0e\\ufe0f",o="["+y+"]",m="["+E+"]",f="\\ud83c[\\udffb-\\udfff]",s="(?:"+m+"|"+f+")",t="[^"+y+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",r="\\u200d",u=s+"?",e="["+I+"]?",n="(?:"+r+"(?:"+[t,l,a].join("|")+")"+e+u+")*",i=e+u+n,c="(?:"+[t+m+"?",m,l,a,o].join("|")+")",d=RegExp(f+"(?="+f+")|"+c+i,"g");function h(p){return p.match(d)||[]}fe.exports=h},"0NbB":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="CaretDownOutlined";var m=z.a=N.forwardRef(o)},"0V0F":function(fe,z,y){var D=y("bYtY"),N=D.createHashMap,L=D.each;function E(o){var m=N();o.eachSeries(function(f){var s=f.get("stack");if(s){var t=m.get(s)||m.set(s,[]),l=f.getData(),a={stackResultDimension:l.getCalculationInfo("stackResultDimension"),stackedOverDimension:l.getCalculationInfo("stackedOverDimension"),stackedDimension:l.getCalculationInfo("stackedDimension"),stackedByDimension:l.getCalculationInfo("stackedByDimension"),isStackedByIndex:l.getCalculationInfo("isStackedByIndex"),data:l,seriesModel:f};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;t.length&&l.setCalculationInfo("stackedOnSeries",t[t.length-1].seriesModel),t.push(a)}}),m.each(I)}function I(o){L(o,function(m,f){var s=[],t=[NaN,NaN],l=[m.stackResultDimension,m.stackedOverDimension],a=m.data,r=m.isStackedByIndex,u=a.map(l,function(e,n,i){var c=a.get(m.stackedDimension,i);if(isNaN(c))return t;var d,h;r?h=a.getRawIndex(i):d=a.get(m.stackedByDimension,i);for(var p=NaN,g=f-1;g>=0;g--){var v=o[g];if(r||(h=v.data.rawIndexOf(v.stackedByDimension,d)),h>=0){var A=v.data.getByRawIndex(v.stackResultDimension,h);if(c>=0&&A>0||c<=0&&A<0){c+=A,p=A;break}}}return s[0]=c,s[1]=p,s});a.hostModel.setData(u),m.data=u})}fe.exports=E},"0XgM":function(fe,z,y){},"0fbx":function(fe,z,y){},"0o9m":function(fe,z,y){var D=y("ProS");y("hNWo"),y("RlCK"),y("XpcN");var N=y("kDyi"),L=y("bLfw");D.registerProcessor(D.PRIORITY.PROCESSOR.SERIES_FILTER,N),L.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(fe,z,y){var D=y("ProS");D.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),D.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(fe,z){var y=arguments[3],D=arguments[4],N=arguments[5],L=JSON.stringify;fe.exports=function(E,I){for(var o,m=Object.keys(N),f=0,s=m.length;f<s;f++){var t=m[f],l=N[t].exports;if(l===E||l&&l.default===E){o=t;break}}if(!o){o=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var a={},f=0,s=m.length;f<s;f++){var t=m[f];a[t]=t}D[o]=["function(require,module,exports){"+E+"(self); }",a]}var r=Math.floor(Math.pow(16,8)*Math.random()).toString(16),u={};u[o]=o,D[r]=["function(require,module,exports){var f = require("+L(o)+");(f.default ? f.default : f)(self);}",u];var e={};n(r);function n(g){e[g]=!0;for(var v in D[g][1]){var A=D[g][1][v];e[A]||n(A)}}var i="("+y+")({"+Object.keys(e).map(function(g){return L(g)+":["+D[g][0]+","+L(D[g][1])+"]"}).join(",")+"},{},["+L(r)+"])",c=window.URL||window.webkitURL||window.mozURL||window.msURL,d=new Blob([i],{type:"text/javascript"});if(I&&I.bare)return d;var h=c.createObjectURL(d),p=new Worker(h);return p.objectURL=h,p}},"0s+r":function(fe,z,y){var D=y("bYtY"),N=y("QBsz"),L=y("y23F"),E=y("H6uX"),I=y("YH21"),o=y("C0SR"),m="silent";function f(n,i,c){return{type:n,event:c,target:i.target,topTarget:i.topTarget,cancelBubble:!1,offsetX:c.zrX,offsetY:c.zrY,gestureEvent:c.gestureEvent,pinchX:c.pinchX,pinchY:c.pinchY,pinchScale:c.pinchScale,wheelDelta:c.zrDelta,zrByTouch:c.zrByTouch,which:c.which,stop:s}}function s(){I.stop(this.event)}function t(){}t.prototype.dispose=function(){};var l=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],a=function(i,c,d,h){E.call(this),this.storage=i,this.painter=c,this.painterRoot=h,d=d||new t,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,L.call(this),this.setHandlerProxy(d)};a.prototype={constructor:a,setHandlerProxy:function(i){this.proxy&&this.proxy.dispose(),i&&(D.each(l,function(c){i.on&&i.on(c,this[c],this)},this),i.handler=this),this.proxy=i},mousemove:function(i){var c=i.zrX,d=i.zrY,h=u(this,c,d),p=this._hovered,g=p.target;g&&!g.__zr&&(p=this.findHover(p.x,p.y),g=p.target);var v=this._hovered=h?{x:c,y:d}:this.findHover(c,d),A=v.target,x=this.proxy;x.setCursor&&x.setCursor(A?A.cursor:"default"),g&&A!==g&&this.dispatchToElement(p,"mouseout",i),this.dispatchToElement(v,"mousemove",i),A&&A!==g&&this.dispatchToElement(v,"mouseover",i)},mouseout:function(i){var c=i.zrEventControl,d=i.zrIsToLocalDOM;c!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",i),c!=="no_globalout"&&(!d&&this.trigger("globalout",{type:"globalout",event:i}))},resize:function(i){this._hovered={}},dispatch:function(i,c){var d=this[i];d&&d.call(this,c)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(i){var c=this.proxy;c.setCursor&&c.setCursor(i)},dispatchToElement:function(i,c,d){i=i||{};var h=i.target;if(h&&h.silent)return;for(var p="on"+c,g=f(c,i,d);h&&!(h[p]&&(g.cancelBubble=h[p].call(h,g)),h.trigger(c,g),h=h.parent,g.cancelBubble););g.cancelBubble||(this.trigger(c,g),this.painter&&this.painter.eachOtherLayer(function(v){typeof v[p]=="function"&&v[p].call(v,g),v.trigger&&v.trigger(c,g)}))},findHover:function(i,c,d){for(var h=this.storage.getDisplayList(),p={x:i,y:c},g=h.length-1;g>=0;g--){var v;if(h[g]!==d&&!h[g].ignore&&(v=r(h[g],i,c))&&(!p.topTarget&&(p.topTarget=h[g]),v!==m)){p.target=h[g];break}}return p},processGesture:function(i,c){this._gestureMgr||(this._gestureMgr=new o);var d=this._gestureMgr;c==="start"&&d.clear();var h=d.recognize(i,this.findHover(i.zrX,i.zrY,null).target,this.proxy.dom);if(c==="end"&&d.clear(),h){var p=h.type;i.gestureEvent=p,this.dispatchToElement({target:h.target},p,h.event)}}},D.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){a.prototype[n]=function(i){var c=i.zrX,d=i.zrY,h=u(this,c,d),p,g;if((n!=="mouseup"||!h)&&(p=this.findHover(c,d),g=p.target),n==="mousedown")this._downEl=g,this._downPoint=[i.zrX,i.zrY],this._upEl=g;else if(n==="mouseup")this._upEl=g;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||N.dist(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(p,n,i)}});function r(n,i,c){if(n[n.rectHover?"rectContain":"contain"](i,c)){for(var d=n,h;d;){if(d.clipPath&&!d.clipPath.contain(i,c))return!1;d.silent&&(h=!0),d=d.parent}return h?m:!0}return!1}function u(n,i,c){var d=n.painter;return i<0||i>d.getWidth()||c<0||c>d.getHeight()}D.mixin(a,E),D.mixin(a,L);var e=a;fe.exports=e},"10cm":function(fe,z,y){var D=y("ProS"),N=y("2B6p"),L=N.updateCenterAndZoom;y("0qV/");var E={type:"graphRoam",event:"graphRoam",update:"none"};D.registerAction(E,function(I,o){o.eachComponent({mainType:"series",query:I},function(m){var f=m.coordinateSystem,s=L(f,I);m.setCenter&&m.setCenter(s.center),m.setZoom&&m.setZoom(s.zoom)})})},"15/o":function(fe,z,y){},"19Vz":function(fe,z,y){(function(D){D(y("VrN/"))})(function(D){D.defineOption("placeholder","",function(f,s,t){var l=t&&t!=D.Init;if(s&&!l)f.on("blur",I),f.on("change",o),f.on("swapDoc",o),D.on(f.getInputField(),"compositionupdate",f.state.placeholderCompose=function(){E(f)}),o(f);else if(!s&&l){f.off("blur",I),f.off("change",o),f.off("swapDoc",o),D.off(f.getInputField(),"compositionupdate",f.state.placeholderCompose),N(f);var a=f.getWrapperElement();a.className=a.className.replace(" CodeMirror-empty","")}s&&!f.hasFocus()&&I(f)});function N(f){f.state.placeholder&&(f.state.placeholder.parentNode.removeChild(f.state.placeholder),f.state.placeholder=null)}function L(f){N(f);var s=f.state.placeholder=document.createElement("pre");s.style.cssText="height: 0; overflow: visible",s.style.direction=f.getOption("direction"),s.className="CodeMirror-placeholder CodeMirror-line-like";var t=f.getOption("placeholder");typeof t=="string"&&(t=document.createTextNode(t)),s.appendChild(t),f.display.lineSpace.insertBefore(s,f.display.lineSpace.firstChild)}function E(f){setTimeout(function(){var s=!1,t=f.getInputField();t.nodeName=="TEXTAREA"?s=!t.value:f.lineCount()==1&&(s=!/[^\u200b]/.test(t.querySelector(".CodeMirror-line").textContent)),s?L(f):N(f)},20)}function I(f){m(f)&&L(f)}function o(f){var s=f.getWrapperElement(),t=m(f);s.className=s.className.replace(" CodeMirror-empty","")+(t?" CodeMirror-empty":""),t?L(f):N(f)}function m(f){return f.lineCount()===1&&f.getLine(0)===""}})},"1Jh7":function(fe,z,y){var D=y("y+Vt"),N=y("T6xi"),L=D.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(I,o){N.buildPath(I,o,!1)}});fe.exports=L},"1LEl":function(fe,z,y){var D=y("ProS"),N=y("F9bG"),L=D.extendComponentView({type:"axisPointer",render:function(I,o,m){var f=o.getComponent("tooltip"),s=I.get("triggerOn")||f&&f.get("triggerOn")||"mousemove|click";N.register("axisPointer",m,function(t,l,a){s!=="none"&&(t==="leave"||s.indexOf(t)>=0)&&a({type:"updateAxisPointer",currTrigger:t,x:l&&l.offsetX,y:l&&l.offsetY})})},remove:function(I,o){N.unregister(o.getZr(),"axisPointer"),L.superApply(this._model,"remove",arguments)},dispose:function(I,o){N.unregister("axisPointer",o),L.superApply(this._model,"dispose",arguments)}}),E=L;fe.exports=E},"1MYJ":function(fe,z,y){var D=y("y+Vt"),N=D.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var E=this.__dirtyPath,I=this.shape.paths,o=0;o<I.length;o++)E=E||I[o].__dirtyPath;this.__dirtyPath=E,this.__dirty=this.__dirty||E},beforeBrush:function(){this._updatePathDirty();for(var E=this.shape.paths||[],I=this.getGlobalScale(),o=0;o<E.length;o++)E[o].path||E[o].createPathProxy(),E[o].path.setScale(I[0],I[1],E[o].segmentIgnoreThreshold)},buildPath:function(E,I){for(var o=I.paths||[],m=0;m<o.length;m++)o[m].buildPath(E,o[m].shape,!0)},afterBrush:function(){for(var E=this.shape.paths||[],I=0;I<E.length;I++)E[I].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),D.prototype.getBoundingRect.call(this)}});fe.exports=N},"1NG9":function(fe,z,y){var D=y("y+Vt"),N=y("QBsz"),L=y("iXp4"),E=N.min,I=N.max,o=N.scaleAndAdd,m=N.copy,f=[],s=[],t=[];function l(c){return isNaN(c[0])||isNaN(c[1])}function a(c,d,h,p,g,v,A,x,b,w,S){return w==="none"||!w?u.apply(this,arguments):r.apply(this,arguments)}function r(c,d,h,p,g,v,A,x,b,w,S){for(var T=0,C=h,O=0;O<p;O++){var _=d[C];if(C>=g||C<0)break;if(l(_)){if(S){C+=v;continue}break}if(C===h)c[v>0?"moveTo":"lineTo"](_[0],_[1]);else if(b>0){var M=d[T],k=w==="y"?1:0,R=(_[k]-M[k])*b;m(s,M),s[k]=M[k]+R,m(t,_),t[k]=_[k]-R,c.bezierCurveTo(s[0],s[1],t[0],t[1],_[0],_[1])}else c.lineTo(_[0],_[1]);T=C,C+=v}return O}function u(c,d,h,p,g,v,A,x,b,w,S){for(var T=0,C=h,O=0;O<p;O++){var _=d[C];if(C>=g||C<0)break;if(l(_)){if(S){C+=v;continue}break}if(C===h)c[v>0?"moveTo":"lineTo"](_[0],_[1]),m(s,_);else if(b>0){var M=C+v,k=d[M];if(S)for(;k&&l(d[M]);)M+=v,k=d[M];var R=.5,B=d[T],k=d[M];if(!k||l(k))m(t,_);else{l(k)&&!S&&(k=_),N.sub(f,k,B);var P,U;if(w==="x"||w==="y"){var j=w==="x"?0:1;P=Math.abs(_[j]-B[j]),U=Math.abs(_[j]-k[j])}else P=N.dist(_,B),U=N.dist(_,k);R=U/(U+P),o(t,_,f,-b*(1-R))}E(s,s,x),I(s,s,A),E(t,t,x),I(t,t,A),c.bezierCurveTo(s[0],s[1],t[0],t[1],_[0],_[1]),o(s,_,f,b*R)}else c.lineTo(_[0],_[1]);T=C,C+=v}return O}function e(c,d){var h=[Infinity,Infinity],p=[-Infinity,-Infinity];if(d)for(var g=0;g<c.length;g++){var v=c[g];v[0]<h[0]&&(h[0]=v[0]),v[1]<h[1]&&(h[1]=v[1]),v[0]>p[0]&&(p[0]=v[0]),v[1]>p[1]&&(p[1]=v[1])}return{min:d?h:p,max:d?p:h}}var n=D.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:L(D.prototype.brush),buildPath:function(c,d){var h=d.points,p=0,g=h.length,v=e(h,d.smoothConstraint);if(d.connectNulls){for(;g>0&&l(h[g-1]);g--);for(;p<g&&l(h[p]);p++);}for(;p<g;)p+=a(c,h,p,g,g,1,v.min,v.max,d.smooth,d.smoothMonotone,d.connectNulls)+1}}),i=D.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:L(D.prototype.brush),buildPath:function(c,d){var h=d.points,p=d.stackedOnPoints,g=0,v=h.length,A=d.smoothMonotone,x=e(h,d.smoothConstraint),b=e(p,d.smoothConstraint);if(d.connectNulls){for(;v>0&&l(h[v-1]);v--);for(;g<v&&l(h[g]);g++);}for(;g<v;){var w=a(c,h,g,v,v,1,x.min,x.max,d.smooth,A,d.connectNulls);a(c,p,g+w-1,w,v,-1,b.min,b.max,d.stackedOnSmooth,A,d.connectNulls),g+=w+1,c.closePath()}}});z.Polyline=n,z.Polygon=i},"1RvN":function(fe,z){var y=function(){this.head=null,this.tail=null,this._len=0},D=y.prototype;D.insert=function(o){var m=new N(o);return this.insertEntry(m),m},D.insertEntry=function(o){this.head?(this.tail.next=o,o.prev=this.tail,o.next=null,this.tail=o):this.head=this.tail=o,this._len++},D.remove=function(o){var m=o.prev,f=o.next;m?m.next=f:this.head=f,f?f.prev=m:this.tail=m,o.next=o.prev=null,this._len--},D.len=function(){return this._len},D.clear=function(){this.head=this.tail=null,this._len=0};var N=function(m){this.value=m,this.next,this.prev},L=function(m){this._list=new y,this._map={},this._maxSize=m||10,this._lastRemovedEntry=null},E=L.prototype;E.put=function(o,m){var f=this._list,s=this._map,t=null;if(s[o]==null){var l=f.len(),a=this._lastRemovedEntry;if(l>=this._maxSize&&l>0){var r=f.head;f.remove(r),delete s[r.key],t=r.value,this._lastRemovedEntry=r}a?a.value=m:a=new N(m),a.key=o,f.insertEntry(a),s[o]=a}return t},E.get=function(o){var m=this._map[o],f=this._list;if(m!=null)return m!==f.tail&&(f.remove(m),f.insertEntry(m)),m.value},E.clear=function(){this._list.clear(),this._map={}};var I=L;fe.exports=I},"1bdT":function(fe,z,y){var D=y("3gBT"),N=y("H6uX"),L=y("DN4a"),E=y("vWvF"),I=y("bYtY"),o=function(s){L.call(this,s),N.call(this,s),E.call(this,s),this.id=s.id||D()};o.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(s,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":s=0;break}var l=this.transform;l||(l=this.transform=[1,0,0,1,0,0]),l[4]+=s,l[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(s,t){},attrKV:function(s,t){if(s==="position"||s==="scale"||s==="origin"){if(t){var l=this[s];l||(l=this[s]=[]),l[0]=t[0],l[1]=t[1]}}else this[s]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(s,t){if(typeof s=="string")this.attrKV(s,t);else if(I.isObject(s))for(var l in s)s.hasOwnProperty(l)&&this.attrKV(l,s[l]);return this.dirty(!1),this},setClipPath:function(s){var t=this.__zr;t&&s.addSelfToZr(t),this.clipPath&&this.clipPath!==s&&this.removeClipPath(),this.clipPath=s,s.__zr=t,s.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var s=this.clipPath;s&&(s.__zr&&s.removeSelfFromZr(s.__zr),s.__zr=null,s.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(s){this.__zr=s;var t=this.animators;if(t)for(var l=0;l<t.length;l++)s.animation.addAnimator(t[l]);this.clipPath&&this.clipPath.addSelfToZr(s)},removeSelfFromZr:function(s){this.__zr=null;var t=this.animators;if(t)for(var l=0;l<t.length;l++)s.animation.removeAnimator(t[l]);this.clipPath&&this.clipPath.removeSelfFromZr(s)}},I.mixin(o,E),I.mixin(o,L),I.mixin(o,N);var m=o;fe.exports=m},"1dTM":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=y("GQ8N"),N=w(y("Lo0S")),L=y("VSMT"),E=y("GdRQ"),I=y("SZEN"),o=y("vewr"),m=x(y("YJ9k")),f=x(y("MZdM")),s=x(y("ItS6")),t=x(y("whVF")),l=x(y("Fv0C")),a=x(y("LCi9")),r=x(y("rwxt")),u=x(y("Mmt2")),e=x(y("iUHT")),n=x(y("mHUz")),i=x(y("P2ho")),c=y("NBmB");y("mdZa");var d=x(y("34/K")),h=x(y("hXwI")),p=x(y("SgaC")),g=x(y("3690")),v=x(y("8K/p")),A=x(y("xO64"));function x(Ne){return Ne&&Ne.__esModule?Ne:{default:Ne}}function b(){if(typeof WeakMap!="function")return null;var Ne=new WeakMap;return b=function(){return Ne},Ne}function w(Ne){if(Ne&&Ne.__esModule)return Ne;if(Ne===null||S(Ne)!=="object"&&typeof Ne!="function")return{default:Ne};var we=b();if(we&&we.has(Ne))return we.get(Ne);var De={},Ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in Ne)if(Object.prototype.hasOwnProperty.call(Ne,ce)){var ne=Ee?Object.getOwnPropertyDescriptor(Ne,ce):null;ne&&(ne.get||ne.set)?Object.defineProperty(De,ce,ne):De[ce]=Ne[ce]}return De.default=Ne,we&&we.set(Ne,De),De}function S(Ne){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(De){return typeof De}:S=function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},S(Ne)}function T(Ne,we){if(!(Ne instanceof we))throw new TypeError("Cannot call a class as a function")}function C(Ne,we){for(var De=0;De<we.length;De++){var Ee=we[De];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(Ne,Ee.key,Ee)}}function O(Ne,we,De){return we&&C(Ne.prototype,we),De&&C(Ne,De),Ne}function _(Ne,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");Ne.prototype=Object.create(we&&we.prototype,{constructor:{value:Ne,writable:!0,configurable:!0}}),we&&M(Ne,we)}function M(Ne,we){return M=Object.setPrototypeOf||function(Ee,ce){return Ee.__proto__=ce,Ee},M(Ne,we)}function k(Ne){var we=P();return function(){var Ee=U(Ne),ce;if(we){var ne=U(this).constructor;ce=Reflect.construct(Ee,arguments,ne)}else ce=Ee.apply(this,arguments);return R(this,ce)}}function R(Ne,we){return we&&(S(we)==="object"||typeof we=="function")?we:B(Ne)}function B(Ne){if(Ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ne}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(Ne){return!1}}function U(Ne){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(De){return De.__proto__||Object.getPrototypeOf(De)},U(Ne)}var j=3,H="rgb(40, 40, 40)",W=17,G=50,V=19,Z=75,Y=50,Q=1e3,oe=50,ue=1,Le=1<<1,me=1<<2,Ie=1<<3,X=1<<4,q=1<<24,We=1<<25,$=1<<26,J=1<<27,le=1<<28,de=function(Ne){_(De,Ne);var we=k(De);function De(Ee,ce,ne){var ee;if(T(this,De),!Ee)throw new Error("Must specify target");if(!ce)throw new Error("Must specify URL");ee=we.call(this),ee._target=Ee,ee._url=ce,ne=ne||{},ee._rfbCredentials=ne.credentials||{},ee._shared="shared"in ne?!!ne.shared:!0,ee._repeaterID=ne.repeaterID||"",ee._wsProtocols=ne.wsProtocols||[],ee._rfbConnectionState="",ee._rfbInitState="",ee._rfbAuthScheme=-1,ee._rfbCleanDisconnect=!0,ee._rfbVersion=0,ee._rfbMaxVersion=3.8,ee._rfbTightVNC=!1,ee._rfbVeNCryptState=0,ee._rfbXvpVer=0,ee._fbWidth=0,ee._fbHeight=0,ee._fbName="",ee._capabilities={power:!1},ee._supportsFence=!1,ee._supportsContinuousUpdates=!1,ee._enabledContinuousUpdates=!1,ee._supportsSetDesktopSize=!1,ee._screenID=0,ee._screenFlags=0,ee._qemuExtKeyEventSupported=!1,ee._clipboardText=null,ee._clipboardServerCapabilitiesActions={},ee._clipboardServerCapabilitiesFormats={},ee._sock=null,ee._display=null,ee._flushing=!1,ee._keyboard=null,ee._gestures=null,ee._disconnTimer=null,ee._resizeTimeout=null,ee._mouseMoveTimer=null,ee._decoders={},ee._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},ee._mousePos={},ee._mouseButtonMask=0,ee._mouseLastMoveTime=0,ee._viewportDragging=!1,ee._viewportDragPos={},ee._viewportHasMoved=!1,ee._accumulatedWheelDeltaX=0,ee._accumulatedWheelDeltaY=0,ee._gestureLastTapTime=null,ee._gestureFirstDoubleTapEv=null,ee._gestureLastMagnitudeX=0,ee._gestureLastMagnitudeY=0,ee._eventHandlers={focusCanvas:ee._focusCanvas.bind(B(ee)),windowResize:ee._windowResize.bind(B(ee)),handleMouse:ee._handleMouse.bind(B(ee)),handleWheel:ee._handleWheel.bind(B(ee)),handleGesture:ee._handleGesture.bind(B(ee))},N.Debug(">> RFB.constructor"),ee._screen=document.createElement("div"),ee._screen.style.display="flex",ee._screen.style.width="100%",ee._screen.style.height="100%",ee._screen.style.overflow="auto",ee._screen.style.background=H,ee._canvas=document.createElement("canvas"),ee._canvas.style.margin="auto",ee._canvas.style.outline="none",ee._canvas.style.flexShrink="0",ee._canvas.width=0,ee._canvas.height=0,ee._canvas.tabIndex=-1,ee._screen.appendChild(ee._canvas),ee._cursor=new r.default,ee._cursorImage=De.cursors.none,ee._decoders[c.encodings.encodingRaw]=new d.default,ee._decoders[c.encodings.encodingCopyRect]=new h.default,ee._decoders[c.encodings.encodingRRE]=new p.default,ee._decoders[c.encodings.encodingHextile]=new g.default,ee._decoders[c.encodings.encodingTight]=new v.default,ee._decoders[c.encodings.encodingTightPNG]=new A.default;try{ee._display=new f.default(ee._canvas)}catch(Ae){throw N.Error("Display exception: "+Ae),Ae}return ee._display.onflush=ee._onFlush.bind(B(ee)),ee._keyboard=new l.default(ee._canvas),ee._keyboard.onkeyevent=ee._handleKeyEvent.bind(B(ee)),ee._gestures=new a.default,ee._sock=new u.default,ee._sock.on("message",function(){ee._handleMessage()}),ee._sock.on("open",function(){ee._rfbConnectionState==="connecting"&&ee._rfbInitState===""?(ee._rfbInitState="ProtocolVersion",N.Debug("Starting VNC handshake")):ee._fail("Unexpected server connection while "+ee._rfbConnectionState)}),ee._sock.on("close",function(Ae){N.Debug("WebSocket on-close event");var Ve="";Ae.code&&(Ve="(code: "+Ae.code,Ae.reason&&(Ve+=", reason: "+Ae.reason),Ve+=")");switch(ee._rfbConnectionState){case"connecting":ee._fail("Connection closed "+Ve);break;case"connected":ee._updateConnectionState("disconnecting"),ee._updateConnectionState("disconnected");break;case"disconnecting":ee._updateConnectionState("disconnected");break;case"disconnected":ee._fail("Unexpected server disconnect when already disconnected "+Ve);break;default:ee._fail("Unexpected server disconnect before connecting "+Ve);break}ee._sock.off("close")}),ee._sock.on("error",function(Ae){return N.Warn("WebSocket on-error event")}),setTimeout(ee._updateConnectionState.bind(B(ee),"connecting")),N.Debug("<< RFB.constructor"),ee.dragViewport=!1,ee.focusOnClick=!0,ee._viewOnly=!1,ee._clipViewport=!1,ee._scaleViewport=!1,ee._resizeSession=!1,ee._showDotCursor=!1,ne.showDotCursor!==void 0&&(N.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),ee._showDotCursor=ne.showDotCursor),ee._qualityLevel=6,ee._compressionLevel=2,ee}return O(De,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(ce){this._rfbCredentials=ce,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;N.Info("Sending Ctrl-Alt-Del"),this.sendKey(n.default.XK_Control_L,"ControlLeft",!0),this.sendKey(n.default.XK_Alt_L,"AltLeft",!0),this.sendKey(n.default.XK_Delete,"Delete",!0),this.sendKey(n.default.XK_Delete,"Delete",!1),this.sendKey(n.default.XK_Alt_L,"AltLeft",!1),this.sendKey(n.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(ce,ne,ee){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(ee===void 0){this.sendKey(ce,ne,!0),this.sendKey(ce,ne,!1);return}var Ae=i.default[ne];if(this._qemuExtKeyEventSupported&&Ae)ce=ce||0,N.Info("Sending key ("+(ee?"down":"up")+"): keysym "+ce+", scancode "+Ae),De.messages.QEMUExtendedKeyEvent(this._sock,ce,ee,Ae);else{if(!ce)return;N.Info("Sending keysym ("+(ee?"down":"up")+"): "+ce),De.messages.keyEvent(this._sock,ce,ee?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(ce){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[ue]&&this._clipboardServerCapabilitiesActions[J])this._clipboardText=ce,De.messages.extendedClipboardNotify(this._sock,[ue]);else{for(var ne=new Uint8Array(ce.length),ee=0;ee<ce.length;ee++)ne[ee]=ce.charCodeAt(ee);De.messages.clientCutText(this._sock,ne)}}},{key:"_connect",value:function(){N.Debug(">> RFB.connect"),N.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(ce){ce.name==="SyntaxError"?this._fail("Invalid host or port ("+ce+")"):this._fail("Error when opening socket ("+ce+")")}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),N.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){N.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(ce){if(!(ce.name==="NotFoundError"))throw ce}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),N.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(ce){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(ce){this._fbName=ce,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(ce){var ne=this;window.requestAnimationFrame(function(){ne._updateClip(),ne._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var ce=this._display.clipViewport,ne=this._clipViewport;if(this._scaleViewport&&(ne=!1),ce!==ne&&(this._display.clipViewport=ne),ne){var ee=this._screenSize();this._display.viewportChangeSize(ee.w,ee.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var ce=this._screenSize();this._display.autoscale(ce.w,ce.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var ce=this._screenSize();De.messages.setDesktopSize(this._sock,Math.floor(ce.w),Math.floor(ce.h),this._screenID,this._screenFlags),N.Debug("Requested new desktop size: "+ce.w+"x"+ce.h)}},{key:"_screenSize",value:function(){var ce=this._screen.getBoundingClientRect();return{w:ce.width,h:ce.height}}},{key:"_fixScrollbars",value:function(){var ce=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=ce}},{key:"_updateConnectionState",value:function(ce){var ne=this,ee=this._rfbConnectionState;if(ce===ee){N.Debug("Already in state '"+ce+"', ignoring");return}if(ee==="disconnected"){N.Error("Tried changing state of a disconnected RFB object");return}switch(ce){case"connected":if(ee!=="connecting"){N.Error("Bad transition to connected state, previous connection state: "+ee);return}break;case"disconnected":if(ee!=="disconnecting"){N.Error("Bad transition to disconnected state, previous connection state: "+ee);return}break;case"connecting":if(ee!==""){N.Error("Bad transition to connecting state, previous connection state: "+ee);return}break;case"disconnecting":if(ee!=="connected"&&ee!=="connecting"){N.Error("Bad transition to disconnecting state, previous connection state: "+ee);return}break;default:N.Error("Unknown connection state: "+ce);return}this._rfbConnectionState=ce,N.Debug("New state '"+ce+"', was '"+ee+"'."),this._disconnTimer&&ce!=="disconnecting"&&(N.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(ce){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){N.Error("Disconnection timed out."),ne._updateConnectionState("disconnected")},j*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(ce){switch(this._rfbConnectionState){case"disconnecting":N.Error("Failed when disconnecting: "+ce);break;case"connected":N.Error("Failed while connected: "+ce);break;case"connecting":N.Error("Failed when connecting: "+ce);break;default:N.Error("RFB failure: "+ce);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(ce,ne){this._capabilities[ce]=ne,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){N.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":N.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(ce,ne,ee){this.sendKey(ce,ne,ee)}},{key:"_handleMouse",value:function(ce){if(ce.type==="click"&&ce.target!==this._canvas)return;if(ce.stopPropagation(),ce.preventDefault(),ce.type==="click"||ce.type==="contextmenu")return;var ne=(0,I.clientToElement)(ce.clientX,ce.clientY,this._canvas);switch(ce.type){case"mousedown":(0,o.setCapture)(this._canvas),this._handleMouseButton(ne.x,ne.y,!0,1<<ce.button);break;case"mouseup":this._handleMouseButton(ne.x,ne.y,!1,1<<ce.button);break;case"mousemove":this._handleMouseMove(ne.x,ne.y);break}}},{key:"_handleMouseButton",value:function(ce,ne,ee,Ae){if(this.dragViewport)if(ee&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:ce,y:ne},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(ce,ne,Ae)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(ce,ne,this._mouseButtonMask)),ee?this._mouseButtonMask|=Ae:this._mouseButtonMask&=~Ae,this._sendMouse(ce,ne,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(ce,ne){var ee=this;if(this._viewportDragging){var Ae=this._viewportDragPos.x-ce,Ve=this._viewportDragPos.y-ne;(this._viewportHasMoved||Math.abs(Ae)>E.dragThreshold||Math.abs(Ve)>E.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:ce,y:ne},this._display.viewportChangePos(Ae,Ve));return}if(this._mousePos={x:ce,y:ne},this._mouseMoveTimer==null){var Ke=Date.now()-this._mouseLastMoveTime;Ke>W?(this._sendMouse(ce,ne,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){ee._handleDelayedMouseMove()},W-Ke)}}},{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(ce,ne,ee){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;De.messages.pointerEvent(this._sock,this._display.absX(ce),this._display.absY(ne),ee)}},{key:"_handleWheel",value:function(ce){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;ce.stopPropagation(),ce.preventDefault();var ne=(0,I.clientToElement)(ce.clientX,ce.clientY,this._canvas),ee=ce.deltaX,Ae=ce.deltaY;ce.deltaMode!==0&&(ee*=V,Ae*=V),this._accumulatedWheelDeltaX+=ee,this._accumulatedWheelDeltaY+=Ae,Math.abs(this._accumulatedWheelDeltaX)>=G&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(ne.x,ne.y,!0,1<<5),this._handleMouseButton(ne.x,ne.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(ne.x,ne.y,!0,1<<6),this._handleMouseButton(ne.x,ne.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=G&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(ne.x,ne.y,!0,1<<3),this._handleMouseButton(ne.x,ne.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(ne.x,ne.y,!0,1<<4),this._handleMouseButton(ne.x,ne.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(ce,ne,ee){this._handleMouseMove(ne,ee),this._cursor.move(ce.detail.clientX,ce.detail.clientY)}},{key:"_handleTapEvent",value:function(ce,ne){var ee=(0,I.clientToElement)(ce.detail.clientX,ce.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<Q&&this._gestureFirstDoubleTapEv.detail.type===ce.detail.type){var Ae=this._gestureFirstDoubleTapEv.detail.clientX-ce.detail.clientX,Ve=this._gestureFirstDoubleTapEv.detail.clientY-ce.detail.clientY,Ke=Math.hypot(Ae,Ve);Ke<oe?ee=(0,I.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=ce}else this._gestureFirstDoubleTapEv=ce;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,ee.x,ee.y),this._handleMouseButton(ee.x,ee.y,!0,ne),this._handleMouseButton(ee.x,ee.y,!1,ne)}},{key:"_handleGesture",value:function(ce){var ne,ee=(0,I.clientToElement)(ce.detail.clientX,ce.detail.clientY,this._canvas);switch(ce.type){case"gesturestart":switch(ce.detail.type){case"onetap":this._handleTapEvent(ce,1);break;case"twotap":this._handleTapEvent(ce,4);break;case"threetap":this._handleTapEvent(ce,2);break;case"drag":this._fakeMouseMove(ce,ee.x,ee.y),this._handleMouseButton(ee.x,ee.y,!0,1);break;case"longpress":this._fakeMouseMove(ce,ee.x,ee.y),this._handleMouseButton(ee.x,ee.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=ce.detail.magnitudeX,this._gestureLastMagnitudeY=ce.detail.magnitudeY,this._fakeMouseMove(ce,ee.x,ee.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(ce.detail.magnitudeX,ce.detail.magnitudeY),this._fakeMouseMove(ce,ee.x,ee.y);break}break;case"gesturemove":switch(ce.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(ce,ee.x,ee.y);break;case"twodrag":for(this._fakeMouseMove(ce,ee.x,ee.y);ce.detail.magnitudeY-this._gestureLastMagnitudeY>Y;)this._handleMouseButton(ee.x,ee.y,!0,8),this._handleMouseButton(ee.x,ee.y,!1,8),this._gestureLastMagnitudeY+=Y;for(;ce.detail.magnitudeY-this._gestureLastMagnitudeY<-Y;)this._handleMouseButton(ee.x,ee.y,!0,16),this._handleMouseButton(ee.x,ee.y,!1,16),this._gestureLastMagnitudeY-=Y;for(;ce.detail.magnitudeX-this._gestureLastMagnitudeX>Y;)this._handleMouseButton(ee.x,ee.y,!0,32),this._handleMouseButton(ee.x,ee.y,!1,32),this._gestureLastMagnitudeX+=Y;for(;ce.detail.magnitudeX-this._gestureLastMagnitudeX<-Y;)this._handleMouseButton(ee.x,ee.y,!0,64),this._handleMouseButton(ee.x,ee.y,!1,64),this._gestureLastMagnitudeX-=Y;break;case"pinch":if(this._fakeMouseMove(ce,ee.x,ee.y),ne=Math.hypot(ce.detail.magnitudeX,ce.detail.magnitudeY),Math.abs(ne-this._gestureLastMagnitudeX)>Z){for(this._handleKeyEvent(n.default.XK_Control_L,"ControlLeft",!0);ne-this._gestureLastMagnitudeX>Z;)this._handleMouseButton(ee.x,ee.y,!0,8),this._handleMouseButton(ee.x,ee.y,!1,8),this._gestureLastMagnitudeX+=Z;for(;ne-this._gestureLastMagnitudeX<-Z;)this._handleMouseButton(ee.x,ee.y,!0,16),this._handleMouseButton(ee.x,ee.y,!1,16),this._gestureLastMagnitudeX-=Z}this._handleKeyEvent(n.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(ce.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(ce,ee.x,ee.y),this._handleMouseButton(ee.x,ee.y,!1,1);break;case"longpress":this._fakeMouseMove(ce,ee.x,ee.y),this._handleMouseButton(ee.x,ee.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var ce=this._sock.rQshiftStr(12).substr(4,7);N.Info("Server ProtocolVersion: "+ce);var ne=0;switch(ce){case"000.000":ne=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 "+ce)}if(ne){for(var ee="ID:"+this._repeaterID;ee.length<250;)ee+="\0";return this._sock.sendString(ee),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Ae="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Ae+`
|
|
|
`),N.Debug("Sent ProtocolVersion: "+Ae),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function ce(Ae,Ve){for(var Ke=0;Ke<Ve.length;Ke++)if(Ve[Ke]===Ae)return!0;return!1}if(this._rfbVersion>=3.7){var ne=this._sock.rQshift8();if(this._sock.rQwait("security type",ne,1))return!1;if(ne===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var ee=this._sock.rQshiftBytes(ne);if(N.Debug("Server security types: "+ee),ce(1,ee))this._rfbAuthScheme=1;else if(ce(22,ee))this._rfbAuthScheme=22;else if(ce(16,ee))this._rfbAuthScheme=16;else if(ce(2,ee))this._rfbAuthScheme=2;else if(ce(19,ee))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+ee+")");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",N.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var ce=this._sock.rQshift32(),ne="";if(ce>0){if(this._sock.rQwait("reason",ce,4))return!1;ne=this._sock.rQshiftStr(ce)}return ne!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:ne}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+ne+")")):(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 ce=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(ce),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var ce=this._sock.rQshift8(),ne=this._sock.rQshift8();if(!(ce==0&&ne==2))return this._fail("Unsupported VeNCrypt version "+ce+"."+ne);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var ee=this._sock.rQshift8();if(ee!=0)return this._fail("VeNCrypt failure "+ee);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Ae=this._sock.rQshift8();if(Ae<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Ae,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var Ve=[],Ke=0;Ke<this._rfbVeNCryptSubtypesLength;Ke++)Ve.push(this._sock.rQshift32());if(Ve.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 Oe=(0,L.encodeUTF8)(this._rfbCredentials.username),it=(0,L.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Oe.length]),this._sock.send([0,0,0,it.length]),this._sock.sendString(Oe),this._sock.sendString(it),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 ce=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),ne=De.genDES(this._rfbCredentials.password,ce);return this._sock.send(ne),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(ce){for(var ne={0:{vendor:"TGHT",signature:"NOTUNNEL"}},ee={},Ae=0;Ae<ce;Ae++){var Ve=this._sock.rQshift32(),Ke=this._sock.rQshiftStr(4),Oe=this._sock.rQshiftStr(8);ee[Ve]={vendor:Ke,signature:Oe}}return N.Debug("Server Tight tunnel types: "+ee),ee[1]&&ee[1].vendor==="SICR"&&ee[1].signature==="SCHANNEL"&&(N.Debug("Detected Siemens server. Assuming NOTUNNEL support."),ee[0]={vendor:"TGHT",signature:"NOTUNNEL"}),ee[0]?ee[0].vendor!=ne[0].vendor||ee[0].signature!=ne[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(N.Debug("Selected tunnel type: "+ne[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 ce=this._sock.rQshift32();if(ce>0&&this._sock.rQwait("tunnel capabilities",16*ce,4))return!1;if(this._rfbTightVNC=!0,ce>0)return this._negotiateTightTunnels(ce),!1}if(this._sock.rQwait("sub auth count",4))return!1;var ne=this._sock.rQshift32();if(ne===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*ne,4))return!1;for(var ee={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Ae=[],Ve=0;Ve<ne;Ve++){this._sock.rQshift32();var Ke=this._sock.rQshiftStr(12);Ae.push(Ke)}N.Debug("Server Tight authentication types: "+Ae);for(var Oe in ee)if(Ae.indexOf(Oe)!=-1){this._sock.send([0,0,0,ee[Oe]]),N.Debug("Selected authentication type: "+Oe);switch(Oe){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: "+Oe+")")}}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 ce=this._sock.rQshift32();return ce===0?(this._rfbInitState="ClientInitialisation",N.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=ce,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:ce}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var ce=this._sock.rQshift16(),ne=this._sock.rQshift16(),ee=this._sock.rQshift8(),Ae=this._sock.rQshift8(),Ve=this._sock.rQshift8(),Ke=this._sock.rQshift8(),Oe=this._sock.rQshift16(),it=this._sock.rQshift16(),Fe=this._sock.rQshift16(),ft=this._sock.rQshift8(),At=this._sock.rQshift8(),bt=this._sock.rQshift8();this._sock.rQskipBytes(3);var St=this._sock.rQshift32();if(this._sock.rQwait("server init name",St,24))return!1;var Et=this._sock.rQshiftStr(St);if(Et=(0,L.decodeUTF8)(Et,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+St))return!1;var je=this._sock.rQshift16(),pe=this._sock.rQshift16(),ie=this._sock.rQshift16();this._sock.rQskipBytes(2);var st=(je+pe+ie)*16;if(this._sock.rQwait("TightVNC extended server init header",st,32+St))return!1;this._sock.rQskipBytes(16*je),this._sock.rQskipBytes(16*pe),this._sock.rQskipBytes(16*ie)}return N.Info("Screen: "+ce+"x"+ne+", bpp: "+ee+", depth: "+Ae+", bigEndian: "+Ve+", trueColor: "+Ke+", redMax: "+Oe+", greenMax: "+it+", blueMax: "+Fe+", redShift: "+ft+", greenShift: "+At+", blueShift: "+bt),this._setDesktopName(Et),this._resize(ce,ne),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(N.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),De.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),De.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var ce=[];ce.push(c.encodings.encodingCopyRect),this._fbDepth==24&&(ce.push(c.encodings.encodingTight),ce.push(c.encodings.encodingTightPNG),ce.push(c.encodings.encodingHextile),ce.push(c.encodings.encodingRRE)),ce.push(c.encodings.encodingRaw),ce.push(c.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),ce.push(c.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),ce.push(c.encodings.pseudoEncodingDesktopSize),ce.push(c.encodings.pseudoEncodingLastRect),ce.push(c.encodings.pseudoEncodingQEMUExtendedKeyEvent),ce.push(c.encodings.pseudoEncodingExtendedDesktopSize),ce.push(c.encodings.pseudoEncodingXvp),ce.push(c.encodings.pseudoEncodingFence),ce.push(c.encodings.pseudoEncodingContinuousUpdates),ce.push(c.encodings.pseudoEncodingDesktopName),ce.push(c.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(ce.push(c.encodings.pseudoEncodingVMwareCursor),ce.push(c.encodings.pseudoEncodingCursor)),De.messages.clientEncodings(this._sock,ce)}},{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 N.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(N.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var ce=this._sock.rQshift32();if(ce=(0,D.toSigned32bit)(ce),this._sock.rQwait("ServerCutText content",Math.abs(ce),8))return!1;if(ce>=0){var ne=this._sock.rQshiftStr(ce);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:ne}}))}else{ce=Math.abs(ce);var ee=this._sock.rQshift32(),Ae=ee&65535,Ve=ee&4278190080,Ke=!!(Ve&q);if(Ke){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Oe=0;Oe<=15;Oe++){var it=1<<Oe;Ae&it&&(this._clipboardServerCapabilitiesFormats[it]=!0,this._sock.rQshift32())}for(var Fe=24;Fe<=31;Fe++){var ft=1<<Fe;this._clipboardServerCapabilitiesActions[ft]=!!(Ve&ft)}var At=[q,We,$,J,le];De.messages.extendedClipboardCaps(this._sock,At,{extendedClipboardFormatText:0})}else if(Ve===We){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[le]&&(Ae&ue&&De.messages.extendedClipboardProvide(this._sock,[ue],[this._clipboardText]))}else if(Ve===$){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[J]&&(this._clipboardText!=null?De.messages.extendedClipboardNotify(this._sock,[ue]):De.messages.extendedClipboardNotify(this._sock,[]))}else if(Ve===J){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[We]&&(Ae&ue&&De.messages.extendedClipboardRequest(this._sock,[ue]))}else if(Ve===le){if(this._viewOnly)return!0;if(!(Ae&ue))return!0;this._clipboardText=null;var bt=this._sock.rQshiftBytes(ce-4),St=new s.default,Et=null;St.setInput(bt);for(var je=0;je<=15;je++){var pe=1<<je;if(Ae&pe){var ie=0,st=St.inflate(4);ie|=st[0]<<24,ie|=st[1]<<16,ie|=st[2]<<8,ie|=st[3];var Qe=St.inflate(ie);pe===ue&&(Et=Qe)}}if(St.setInput(null),Et!==null){for(var ve="",Bt=0;Bt<Et.length;Bt++)ve+=String.fromCharCode(Et[Bt]);Et=ve,Et=(0,L.decodeUTF8)(Et),Et.length>0&&Et.charAt(Et.length-1)==="\0"&&(Et=Et.slice(0,-1)),Et=Et.replace(`\r
|
|
|
`,`
|
|
|
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Et}}))}}else return this._fail("Unexpected action in extended clipboard message: "+Ve)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var ce=this._sock.rQshift32(),ne=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",ne,9))return!1;ne>64&&(N.Warn("Bad payload length ("+ne+") in fence response"),ne=64);var ee=this._sock.rQshiftStr(ne);return this._supportsFence=!0,ce&1<<31?(ce&=1<<0|1<<1,De.messages.clientFence(this._sock,ce,ee),!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 ce=this._sock.rQshift8(),ne=this._sock.rQshift8();switch(ne){case 0:N.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=ce,N.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+ne+")");break}return!0}},{key:"_normalMsg",value:function(){var ce;this._FBU.rects>0?ce=0:ce=this._sock.rQshift8();var ne,ee;switch(ce){case 0:return ee=this._framebufferUpdate(),ee&&!this._enabledContinuousUpdates&&De.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),ee;case 1:return this._handleSetColourMapMsg();case 2:return N.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return ne=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,ne&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),N.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+ce+")"),N.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 ce=this._sock.rQshiftBytes(12);this._FBU.x=(ce[0]<<8)+ce[1],this._FBU.y=(ce[2]<<8)+ce[3],this._FBU.width=(ce[4]<<8)+ce[5],this._FBU.height=(ce[6]<<8)+ce[7],this._FBU.encoding=parseInt((ce[8]<<24)+(ce[9]<<16)+(ce[10]<<8)+ce[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 c.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case c.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case c.encodings.pseudoEncodingCursor:return this._handleCursor();case c.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var ce=document.createEvent("keyboardEvent");ce.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(ne){}return!0;case c.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case c.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case c.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var ce=this._FBU.x,ne=this._FBU.y,ee=this._FBU.width,Ae=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var Ve=this._sock.rQshift8();this._sock.rQshift8();var Ke,Oe=4;if(Ve==0){var it=4294967040|0;if(Ke=new Array(ee*Ae*Oe),this._sock.rQwait("VMware cursor classic encoding",ee*Ae*Oe*2,2))return!1;for(var Fe=new Array(ee*Ae),ft=0;ft<ee*Ae;ft++)Fe[ft]=this._sock.rQshift32();for(var At=new Array(ee*Ae),bt=0;bt<ee*Ae;bt++)At[bt]=this._sock.rQshift32();for(var St=0;St<ee*Ae;St++)if(Fe[St]==0){var Et=At[St],je=Et>>8&255,pe=Et>>16&255,ie=Et>>24&255;Ke[St*Oe]=je,Ke[St*Oe+1]=pe,Ke[St*Oe+2]=ie,Ke[St*Oe+3]=255}else(Fe[St]&it)==it?At[St]==0?(Ke[St*Oe]=0,Ke[St*Oe+1]=0,Ke[St*Oe+2]=0,Ke[St*Oe+3]=0):((At[St]&it)==it,Ke[St*Oe]=0,Ke[St*Oe+1]=0,Ke[St*Oe+2]=0,Ke[St*Oe+3]=255):(Ke[St*Oe]=0,Ke[St*Oe+1]=0,Ke[St*Oe+2]=0,Ke[St*Oe+3]=255)}else if(Ve==1){if(this._sock.rQwait("VMware cursor alpha encoding",ee*Ae*4,2))return!1;Ke=new Array(ee*Ae*Oe);for(var st=0;st<ee*Ae;st++){var Qe=this._sock.rQshift32();Ke[st*4]=Qe>>24&255,Ke[st*4+1]=Qe>>16&255,Ke[st*4+2]=Qe>>8&255,Ke[st*4+3]=Qe&255}}else return N.Warn("The given cursor type is not supported: "+Ve+" given."),!1;return this._updateCursor(Ke,ce,ne,ee,Ae),!0}},{key:"_handleCursor",value:function(){var ce=this._FBU.x,ne=this._FBU.y,ee=this._FBU.width,Ae=this._FBU.height,Ve=ee*Ae*4,Ke=Math.ceil(ee/8)*Ae,Oe=Ve+Ke;if(this._sock.rQwait("cursor encoding",Oe))return!1;for(var it=this._sock.rQshiftBytes(Ve),Fe=this._sock.rQshiftBytes(Ke),ft=new Uint8Array(ee*Ae*4),At=0,bt=0;bt<Ae;bt++)for(var St=0;St<ee;St++){var Et=bt*Math.ceil(ee/8)+Math.floor(St/8),je=Fe[Et]<<St%8&128?255:0;ft[At]=it[At+2],ft[At+1]=it[At+1],ft[At+2]=it[At],ft[At+3]=je,At+=4}return this._updateCursor(ft,ce,ne,ee,Ae),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var ce=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",ce,4))return!1;var ne=this._sock.rQshiftStr(ce);return ne=(0,L.decodeUTF8)(ne,!0),this._setDesktopName(ne),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var ce=this._sock.rQpeek8(),ne=4+ce*16;if(this._sock.rQwait("ExtendedDesktopSize",ne))return!1;var ee=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,ee&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var Ae=0;Ae<ce;Ae+=1)Ae===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 Ve="";switch(this._FBU.y){case 1:Ve="Resize is administratively prohibited";break;case 2:Ve="Out of resources";break;case 3:Ve="Invalid screen layout";break;default:Ve="Unknown reason";break}N.Warn("Server did not accept the resize request: "+Ve)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var ce=this._decoders[this._FBU.encoding];if(!ce)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return ce.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(ne){return this._fail("Error decoding rect: "+ne),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;De.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(ce,ne){this._fbWidth=ce,this._fbHeight=ne,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(ce,ne){if(this._rfbXvpVer<ce)return;N.Info("Sending XVP operation "+ne+" (version "+ce+")"),De.messages.xvpOp(this._sock,ce,ne)}},{key:"_updateCursor",value:function(ce,ne,ee,Ae,Ve){this._cursorImage={rgbaPixels:ce,hotx:ne,hoty:ee,w:Ae,h:Ve},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var ce=3;ce<this._cursorImage.rgbaPixels.length;ce+=4)if(this._cursorImage.rgbaPixels[ce])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var ce=this._shouldShowDotCursor()?De.cursors.dot:this._cursorImage;this._cursor.change(ce.rgbaPixels,ce.hotx,ce.hoty,ce.w,ce.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(ce){this._viewOnly=ce,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(ce?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(ce){N.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(ce){this._clipViewport=ce,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(ce){this._scaleViewport=ce,ce&&this._clipViewport&&this._updateClip(),this._updateScale(),!ce&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(ce){this._resizeSession=ce,ce&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(ce){this._showDotCursor=ce,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(ce){this._screen.style.background=ce}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(ce){if(!Number.isInteger(ce)||ce<0||ce>9){N.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===ce)return;this._qualityLevel=ce,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(ce){if(!Number.isInteger(ce)||ce<0||ce>9){N.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===ce)return;this._compressionLevel=ce,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(ce,ne){var ee=ce.split("").map(function(Ae){return Ae.charCodeAt(0)});return new e.default(ee).encrypt(ne)}}]),De}(m.default);z.default=de,de.messages={keyEvent:function(we,De,Ee){var ce=we._sQ,ne=we._sQlen;ce[ne]=4,ce[ne+1]=Ee,ce[ne+2]=0,ce[ne+3]=0,ce[ne+4]=De>>24,ce[ne+5]=De>>16,ce[ne+6]=De>>8,ce[ne+7]=De,we._sQlen+=8,we.flush()},QEMUExtendedKeyEvent:function(we,De,Ee,ce){function ne(Ke){var Oe=ce>>8,it=ce&255;return Oe===224&&it<127?it|128:Ke}var ee=we._sQ,Ae=we._sQlen;ee[Ae]=255,ee[Ae+1]=0,ee[Ae+2]=Ee>>8,ee[Ae+3]=Ee,ee[Ae+4]=De>>24,ee[Ae+5]=De>>16,ee[Ae+6]=De>>8,ee[Ae+7]=De;var Ve=ne(ce);ee[Ae+8]=Ve>>24,ee[Ae+9]=Ve>>16,ee[Ae+10]=Ve>>8,ee[Ae+11]=Ve,we._sQlen+=12,we.flush()},pointerEvent:function(we,De,Ee,ce){var ne=we._sQ,ee=we._sQlen;ne[ee]=5,ne[ee+1]=ce,ne[ee+2]=De>>8,ne[ee+3]=De,ne[ee+4]=Ee>>8,ne[ee+5]=Ee,we._sQlen+=6,we.flush()},_buildExtendedClipboardFlags:function(we,De){for(var Ee=new Uint8Array(4),ce=0,ne=0,ee=0;ee<we.length;ee++)ne|=we[ee];for(var Ae=0;Ae<De.length;Ae++)ce|=De[Ae];return Ee[0]=ne>>24,Ee[1]=0,Ee[2]=0,Ee[3]=ce,Ee},extendedClipboardProvide:function(we,De,Ee){for(var ce=new t.default,ne=[],ee=0;ee<De.length;ee++){if(De[ee]!=ue)throw new Error("Unsupported extended clipboard format for Provide message.");Ee[ee]=Ee[ee].replace(/\r\n|\r|\n/gm,`\r
|
|
|
`);var Ae=(0,L.encodeUTF8)(Ee[ee]+"\0");ne.push(Ae.length>>24&255,Ae.length>>16&255,Ae.length>>8&255,Ae.length&255);for(var Ve=0;Ve<Ae.length;Ve++)ne.push(Ae.charCodeAt(Ve))}var Ke=ce.deflate(new Uint8Array(ne)),Oe=new Uint8Array(4+Ke.length);Oe.set(de.messages._buildExtendedClipboardFlags([le],De)),Oe.set(Ke,4),de.messages.clientCutText(we,Oe,!0)},extendedClipboardNotify:function(we,De){var Ee=de.messages._buildExtendedClipboardFlags([J],De);de.messages.clientCutText(we,Ee,!0)},extendedClipboardRequest:function(we,De){var Ee=de.messages._buildExtendedClipboardFlags([We],De);de.messages.clientCutText(we,Ee,!0)},extendedClipboardCaps:function(we,De,Ee){var ce=Object.keys(Ee),ne=new Uint8Array(4+4*ce.length);ce.map(function(Ve){return parseInt(Ve)}),ce.sort(function(Ve,Ke){return Ve-Ke}),ne.set(de.messages._buildExtendedClipboardFlags(De,[]));for(var ee=4,Ae=0;Ae<ce.length;Ae++)ne[ee]=Ee[ce[Ae]]>>24,ne[ee+1]=Ee[ce[Ae]]>>16,ne[ee+2]=Ee[ce[Ae]]>>8,ne[ee+3]=Ee[ce[Ae]]>>0,ee+=4,ne[3]|=1<<ce[Ae];de.messages.clientCutText(we,ne,!0)},clientCutText:function(we,De){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ce=we._sQ,ne=we._sQlen;ce[ne]=6,ce[ne+1]=0,ce[ne+2]=0,ce[ne+3]=0;var ee;Ee?ee=(0,D.toUnsigned32bit)(-De.length):ee=De.length,ce[ne+4]=ee>>24,ce[ne+5]=ee>>16,ce[ne+6]=ee>>8,ce[ne+7]=ee,we._sQlen+=8;for(var Ae=0,Ve=De.length;Ve>0;){for(var Ke=Math.min(Ve,we._sQbufferSize-we._sQlen),Oe=0;Oe<Ke;Oe++)ce[we._sQlen+Oe]=De[Ae+Oe];we._sQlen+=Ke,we.flush(),Ve-=Ke,Ae+=Ke}},setDesktopSize:function(we,De,Ee,ce,ne){var ee=we._sQ,Ae=we._sQlen;ee[Ae]=251,ee[Ae+1]=0,ee[Ae+2]=De>>8,ee[Ae+3]=De,ee[Ae+4]=Ee>>8,ee[Ae+5]=Ee,ee[Ae+6]=1,ee[Ae+7]=0,ee[Ae+8]=ce>>24,ee[Ae+9]=ce>>16,ee[Ae+10]=ce>>8,ee[Ae+11]=ce,ee[Ae+12]=0,ee[Ae+13]=0,ee[Ae+14]=0,ee[Ae+15]=0,ee[Ae+16]=De>>8,ee[Ae+17]=De,ee[Ae+18]=Ee>>8,ee[Ae+19]=Ee,ee[Ae+20]=ne>>24,ee[Ae+21]=ne>>16,ee[Ae+22]=ne>>8,ee[Ae+23]=ne,we._sQlen+=24,we.flush()},clientFence:function(we,De,Ee){var ce=we._sQ,ne=we._sQlen;ce[ne]=248,ce[ne+1]=0,ce[ne+2]=0,ce[ne+3]=0,ce[ne+4]=De>>24,ce[ne+5]=De>>16,ce[ne+6]=De>>8,ce[ne+7]=De;var ee=Ee.length;ce[ne+8]=ee;for(var Ae=0;Ae<ee;Ae++)ce[ne+9+Ae]=Ee.charCodeAt(Ae);we._sQlen+=9+ee,we.flush()},enableContinuousUpdates:function(we,De,Ee,ce,ne,ee){var Ae=we._sQ,Ve=we._sQlen;Ae[Ve]=150,Ae[Ve+1]=De,Ae[Ve+2]=Ee>>8,Ae[Ve+3]=Ee,Ae[Ve+4]=ce>>8,Ae[Ve+5]=ce,Ae[Ve+6]=ne>>8,Ae[Ve+7]=ne,Ae[Ve+8]=ee>>8,Ae[Ve+9]=ee,we._sQlen+=10,we.flush()},pixelFormat:function(we,De,Ee){var ce=we._sQ,ne=we._sQlen,ee;De>16?ee=32:De>8?ee=16:ee=8;var Ae=Math.floor(De/3);ce[ne]=0,ce[ne+1]=0,ce[ne+2]=0,ce[ne+3]=0,ce[ne+4]=ee,ce[ne+5]=De,ce[ne+6]=0,ce[ne+7]=Ee?1:0,ce[ne+8]=0,ce[ne+9]=(1<<Ae)-1,ce[ne+10]=0,ce[ne+11]=(1<<Ae)-1,ce[ne+12]=0,ce[ne+13]=(1<<Ae)-1,ce[ne+14]=Ae*2,ce[ne+15]=Ae*1,ce[ne+16]=Ae*0,ce[ne+17]=0,ce[ne+18]=0,ce[ne+19]=0,we._sQlen+=20,we.flush()},clientEncodings:function(we,De){var Ee=we._sQ,ce=we._sQlen;Ee[ce]=2,Ee[ce+1]=0,Ee[ce+2]=De.length>>8,Ee[ce+3]=De.length;for(var ne=ce+4,ee=0;ee<De.length;ee++){var Ae=De[ee];Ee[ne]=Ae>>24,Ee[ne+1]=Ae>>16,Ee[ne+2]=Ae>>8,Ee[ne+3]=Ae,ne+=4}we._sQlen+=ne-ce,we.flush()},fbUpdateRequest:function(we,De,Ee,ce,ne,ee){var Ae=we._sQ,Ve=we._sQlen;typeof Ee=="undefined"&&(Ee=0),typeof ce=="undefined"&&(ce=0),Ae[Ve]=3,Ae[Ve+1]=De?1:0,Ae[Ve+2]=Ee>>8&255,Ae[Ve+3]=Ee&255,Ae[Ve+4]=ce>>8&255,Ae[Ve+5]=ce&255,Ae[Ve+6]=ne>>8&255,Ae[Ve+7]=ne&255,Ae[Ve+8]=ee>>8&255,Ae[Ve+9]=ee&255,we._sQlen+=10,we.flush()},xvpOp:function(we,De,Ee){var ce=we._sQ,ne=we._sQlen;ce[ne]=250,ce[ne+1]=0,ce[ne+2]=De,ce[ne+3]=Ee,we._sQlen+=4,we.flush()}},de.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(fe,z,y){(function(D){D(y("VrN/"))})(function(D){"use strict";var N={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},L={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};D.defineMode("xml",function(E,I){var o=E.indentUnit,m={},f=I.htmlMode?N:L;for(var s in f)m[s]=f[s];for(var s in I)m[s]=I[s];var t,l;function a(T,C){function O(k){return C.tokenize=k,k(T,C)}var _=T.next();if(_=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?O(e("atom","]]>")):null:T.match("--")?O(e("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),O(n(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),C.tokenize=e("meta","?>"),"meta"):(t=T.eat("/")?"closeTag":"openTag",C.tokenize=r,"tag bracket");if(_=="&"){var M;return T.eat("#")?T.eat("x")?M=T.eatWhile(/[a-fA-F\d]/)&&T.eat(";"):M=T.eatWhile(/[\d]/)&&T.eat(";"):M=T.eatWhile(/[\w\.\-:]/)&&T.eat(";"),M?"atom":"error"}else return T.eatWhile(/[^&<]/),null}a.isInText=!0;function r(T,C){var O=T.next();if(O==">"||O=="/"&&T.eat(">"))return C.tokenize=a,t=O==">"?"endTag":"selfcloseTag","tag bracket";if(O=="=")return t="equals",null;if(O=="<"){C.tokenize=a,C.state=h,C.tagName=C.tagStart=null;var _=C.tokenize(T,C);return _?_+" tag error":"tag error"}else return/[\'\"]/.test(O)?(C.tokenize=u(O),C.stringStartCol=T.column(),C.tokenize(T,C)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(T){var C=function(_,M){for(;!_.eol();)if(_.next()==T){M.tokenize=r;break}return"string"};return C.isInAttribute=!0,C}function e(T,C){return function(O,_){for(;!O.eol();){if(O.match(C)){_.tokenize=a;break}O.next()}return T}}function n(T){return function(C,O){for(var _;(_=C.next())!=null;){if(_=="<")return O.tokenize=n(T+1),O.tokenize(C,O);if(_==">")if(T==1){O.tokenize=a;break}else return O.tokenize=n(T-1),O.tokenize(C,O)}return"meta"}}function i(T,C,O){this.prev=T.context,this.tagName=C,this.indent=T.indented,this.startOfLine=O,(m.doNotIndent.hasOwnProperty(C)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function c(T){T.context&&(T.context=T.context.prev)}function d(T,C){for(var O;;){if(!T.context)return;if(O=T.context.tagName,!m.contextGrabbers.hasOwnProperty(O)||!m.contextGrabbers[O].hasOwnProperty(C))return;c(T)}}function h(T,C,O){return T=="openTag"?(O.tagStart=C.column(),p):T=="closeTag"?g:h}function p(T,C,O){return T=="word"?(O.tagName=C.current(),l="tag",x):m.allowMissingTagName&&T=="endTag"?(l="tag bracket",x(T,C,O)):(l="error",p)}function g(T,C,O){if(T=="word"){var _=C.current();return O.context&&O.context.tagName!=_&&m.implicitlyClosed.hasOwnProperty(O.context.tagName)&&c(O),O.context&&O.context.tagName==_||m.matchClosing===!1?(l="tag",v):(l="tag error",A)}else return m.allowMissingTagName&&T=="endTag"?(l="tag bracket",v(T,C,O)):(l="error",A)}function v(T,C,O){return T!="endTag"?(l="error",v):(c(O),h)}function A(T,C,O){return l="error",v(T,C,O)}function x(T,C,O){if(T=="word")return l="attribute",b;if(T=="endTag"||T=="selfcloseTag"){var _=O.tagName,M=O.tagStart;return O.tagName=O.tagStart=null,T=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(_)?d(O,_):(d(O,_),O.context=new i(O,_,M==O.indented)),h}return l="error",x}function b(T,C,O){return T=="equals"?w:(m.allowMissing||(l="error"),x(T,C,O))}function w(T,C,O){return T=="string"?S:T=="word"&&m.allowUnquoted?(l="string",x):(l="error",x(T,C,O))}function S(T,C,O){return T=="string"?S:x(T,C,O)}return{startState:function(C){var O={tokenize:a,state:h,indented:C||0,tagName:null,tagStart:null,context:null};return C!=null&&(O.baseIndent=C),O},token:function(C,O){if(!O.tagName&&C.sol()&&(O.indented=C.indentation()),C.eatSpace())return null;t=null;var _=O.tokenize(C,O);return(_||t)&&_!="comment"&&(l=null,O.state=O.state(t||_,C,O),l&&(_=l=="error"?_+" error":l)),_},indent:function(C,O,_){var M=C.context;if(C.tokenize.isInAttribute)return C.tagStart==C.indented?C.stringStartCol+1:C.indented+o;if(M&&M.noIndent)return D.Pass;if(C.tokenize!=r&&C.tokenize!=a)return _?_.match(/^(\s*)/)[0].length:0;if(C.tagName)return m.multilineTagIndentPastTag!==!1?C.tagStart+C.tagName.length+2:C.tagStart+o*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(O))return 0;var k=O&&/^<(\/)?([\w_:\.-]*)/.exec(O);if(k&&k[1])for(;M;)if(M.tagName==k[2]){M=M.prev;break}else if(m.implicitlyClosed.hasOwnProperty(M.tagName))M=M.prev;else break;else if(k)for(;M;){var R=m.contextGrabbers[M.tagName];if(R&&R.hasOwnProperty(k[2]))M=M.prev;else break}for(;M&&M.prev&&!M.startOfLine;)M=M.prev;return M?M.indent+o:C.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(C){C.state==w&&(C.state=x)},xmlCurrentTag:function(C){return C.tagName?{name:C.tagName,close:C.type=="closeTag"}:null},xmlCurrentContext:function(C){for(var O=[],_=C.context;_;_=_.prev)_.tagName&&O.push(_.tagName);return O.reverse()}}}),D.defineMIME("text/xml","xml"),D.defineMIME("application/xml","xml"),D.mimeModes.hasOwnProperty("text/html")||D.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1n7x":function(fe,z,y){(function(D,N){/*!
|
|
|
* html2pdf.js v0.10.1
|
|
|
* Copyright (c) 2021 Erik Koopmans
|
|
|
* Released under the MIT License.
|
|
|
*/(function(E,I){fe.exports=I(y("dtIV"),y("wOnQ"))})(self,function(L,E){return function(){var I={"./src/plugin/hyperlinks.js":function(t,l,a){"use strict";a.r(l);var r=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),u=a.n(r),e=a("./node_modules/core-js/modules/es.string.link.js"),n=a.n(e),i=a("./src/worker.js"),c=a("./src/utils.js"),d=[],h={toContainer:i.default.prototype.toContainer,toPdf:i.default.prototype.toPdf};i.default.prototype.toContainer=function(){return h.toContainer.call(this).then(function(){if(this.opt.enableLinks){var v=this.prop.container,A=v.querySelectorAll("a"),x=(0,c.unitConvert)(v.getBoundingClientRect(),this.prop.pageSize.k);d=[],Array.prototype.forEach.call(A,function(b){for(var w=b.getClientRects(),S=0;S<w.length;S++){var T=(0,c.unitConvert)(w[S],this.prop.pageSize.k);T.left-=x.left,T.top-=x.top;var C=Math.floor(T.top/this.prop.pageSize.inner.height)+1,O=this.opt.margin[0]+T.top%this.prop.pageSize.inner.height,_=this.opt.margin[1]+T.left;d.push({page:C,top:O,left:_,clientRect:T,link:b})}},this)}})},i.default.prototype.toPdf=function(){return h.toPdf.call(this).then(function(){if(this.opt.enableLinks){d.forEach(function(A){this.prop.pdf.setPage(A.page),this.prop.pdf.link(A.left,A.top,A.clientRect.width,A.clientRect.height,{url:A.link.href})},this);var v=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(v)}})}},"./src/plugin/jspdf-plugin.js":function(t,l,a){"use strict";a.r(l);var r=a("./node_modules/core-js/modules/es.symbol.js"),u=a.n(r),e=a("./node_modules/core-js/modules/es.symbol.description.js"),n=a.n(e),i=a("./node_modules/core-js/modules/es.object.to-string.js"),c=a.n(i),d=a("./node_modules/core-js/modules/es.symbol.iterator.js"),h=a.n(d),p=a("./node_modules/core-js/modules/es.array.iterator.js"),g=a.n(p),v=a("./node_modules/core-js/modules/es.string.iterator.js"),A=a.n(v),x=a("./node_modules/core-js/modules/web.dom-collections.iterator.js"),b=a.n(x),w=a("jspdf"),S=a.n(w);function T(C){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(_){return typeof _}:T=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},T(C)}w.jsPDF.getPageSize=function(C,O,_){if(T(C)==="object"){var M=C;C=M.orientation,O=M.unit||O,_=M.format||_}O=O||"mm",_=_||"a4",C=(""+(C||"P")).toLowerCase();var k=(""+_).toLowerCase(),R={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(O){case"pt":var B=1;break;case"mm":var B=72/25.4;break;case"cm":var B=72/2.54;break;case"in":var B=72;break;case"px":var B=72/96;break;case"pc":var B=12;break;case"em":var B=12;break;case"ex":var B=6;break;default:throw"Invalid unit: "+O}if(R.hasOwnProperty(k))var P=R[k][1]/B,U=R[k][0]/B;else try{var P=_[1],U=_[0]}catch(W){throw new Error("Invalid format: "+_)}if(C==="p"||C==="portrait"){if(C="p",U>P){var j=U;U=P,P=j}}else if(C==="l"||C==="landscape"){if(C="l",P>U){var j=U;U=P,P=j}}else throw"Invalid orientation: "+C;var H={width:U,height:P,unit:O,k:B};return H},l.default=w.jsPDF},"./src/plugin/pagebreaks.js":function(t,l,a){"use strict";a.r(l);var r=a("./node_modules/core-js/modules/es.array.concat.js"),u=a.n(r),e=a("./node_modules/core-js/modules/es.array.slice.js"),n=a.n(e),i=a("./node_modules/core-js/modules/es.array.join.js"),c=a.n(i),d=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),h=a.n(d),p=a("./node_modules/core-js/modules/es.object.keys.js"),g=a.n(p),v=a("./src/worker.js"),A=a("./src/utils.js"),x={toContainer:v.default.prototype.toContainer};v.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},v.default.prototype.toContainer=function(){return x.toContainer.call(this).then(function(){var S=this.prop.container,T=this.prop.pageSize.inner.px.height,C=[].concat(this.opt.pagebreak.mode),O={avoidAll:C.indexOf("avoid-all")!==-1,css:C.indexOf("css")!==-1,legacy:C.indexOf("legacy")!==-1},_={},M=this;["before","after","avoid"].forEach(function(B){var P=O.avoidAll&&B==="avoid";_[B]=P?[]:[].concat(M.opt.pagebreak[B]||[]),_[B].length>0&&(_[B]=Array.prototype.slice.call(S.querySelectorAll(_[B].join(", "))))});var k=S.querySelectorAll(".html2pdf__page-break");k=Array.prototype.slice.call(k);var R=S.querySelectorAll("*");Array.prototype.forEach.call(R,function(P){var U={before:!1,after:O.legacy&&k.indexOf(P)!==-1,avoid:O.avoidAll};if(O.css){var j=window.getComputedStyle(P),H=["always","page","left","right"],W=["avoid","avoid-page"];U={before:U.before||H.indexOf(j.breakBefore||j.pageBreakBefore)!==-1,after:U.after||H.indexOf(j.breakAfter||j.pageBreakAfter)!==-1,avoid:U.avoid||W.indexOf(j.breakInside||j.pageBreakInside)!==-1}}Object.keys(U).forEach(function(oe){U[oe]=U[oe]||_[oe].indexOf(P)!==-1});var G=P.getBoundingClientRect();if(U.avoid&&!U.before){var V=Math.floor(G.top/T),Z=Math.floor(G.bottom/T),Y=Math.abs(G.bottom-G.top)/T;Z!==V&&Y<=1&&(U.before=!0)}if(U.before){var Q=(0,A.createElement)("div",{style:{display:"block",height:T-G.top%T+"px"}});P.parentNode.insertBefore(Q,P)}if(U.after){var Q=(0,A.createElement)("div",{style:{display:"block",height:T-G.bottom%T+"px"}});P.parentNode.insertBefore(Q,P.nextSibling)}})})}},"./src/utils.js":function(t,l,a){"use strict";a.r(l),a.d(l,{objType:function(){return C},createElement:function(){return O},cloneNode:function(){return _},unitConvert:function(){return M},toPx:function(){return k}});var r=a("./node_modules/core-js/modules/es.number.constructor.js"),u=a.n(r),e=a("./node_modules/core-js/modules/es.symbol.js"),n=a.n(e),i=a("./node_modules/core-js/modules/es.symbol.description.js"),c=a.n(i),d=a("./node_modules/core-js/modules/es.object.to-string.js"),h=a.n(d),p=a("./node_modules/core-js/modules/es.symbol.iterator.js"),g=a.n(p),v=a("./node_modules/core-js/modules/es.array.iterator.js"),A=a.n(v),x=a("./node_modules/core-js/modules/es.string.iterator.js"),b=a.n(x),w=a("./node_modules/core-js/modules/web.dom-collections.iterator.js"),S=a.n(w);function T(R){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(P){return typeof P}:T=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},T(R)}var C=function(B){var P=T(B);return P==="undefined"?"undefined":P==="string"||B instanceof String?"string":P==="number"||B instanceof Number?"number":P==="function"||B instanceof Function?"function":!!B&&B.constructor===Array?"array":B&&B.nodeType===1?"element":P==="object"?"object":"unknown"},O=function(B,P){var U=document.createElement(B);if(P.className&&(U.className=P.className),P.innerHTML){U.innerHTML=P.innerHTML;for(var j=U.getElementsByTagName("script"),H=j.length;H-- >0;null)j[H].parentNode.removeChild(j[H])}for(var W in P.style)U.style[W]=P.style[W];return U},_=function R(B,P){for(var U=B.nodeType===3?document.createTextNode(B.nodeValue):B.cloneNode(!1),j=B.firstChild;j;j=j.nextSibling)(P===!0||j.nodeType!==1||j.nodeName!=="SCRIPT")&&U.appendChild(R(j,P));return B.nodeType===1&&(B.nodeName==="CANVAS"?(U.width=B.width,U.height=B.height,U.getContext("2d").drawImage(B,0,0)):(B.nodeName==="TEXTAREA"||B.nodeName==="SELECT")&&(U.value=B.value),U.addEventListener("load",function(){U.scrollTop=B.scrollTop,U.scrollLeft=B.scrollLeft},!0)),U},M=function(B,P){if(C(B)==="number")return B*72/96/P;var U={};for(var j in B)U[j]=B[j]*72/96/P;return U},k=function(B,P){return Math.floor(B*P/72*96)}},"./src/worker.js":function(t,l,a){"use strict";a.r(l);var r=a("./node_modules/core-js/modules/es.object.assign.js"),u=a.n(r),e=a("./node_modules/core-js/modules/es.array.map.js"),n=a.n(e),i=a("./node_modules/core-js/modules/es.object.keys.js"),c=a.n(i),d=a("./node_modules/core-js/modules/es.array.concat.js"),h=a.n(d),p=a("./node_modules/core-js/modules/es.object.to-string.js"),g=a.n(p),v=a("./node_modules/core-js/modules/es.regexp.to-string.js"),A=a.n(v),x=a("./node_modules/core-js/modules/es.function.name.js"),b=a.n(x),w=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),S=a.n(w),T=a("jspdf"),C=a.n(T),O=a("html2canvas"),_=a.n(O),M=a("./src/utils.js"),k=a("./node_modules/es6-promise/dist/es6-promise.js"),R=a.n(k),B=R().Promise,P=function U(j){var H=Object.assign(U.convert(B.resolve()),JSON.parse(JSON.stringify(U.template))),W=U.convert(B.resolve(),H);return W=W.setProgress(1,U,1,[U]),W=W.set(j),W};P.prototype=Object.create(B.prototype),P.prototype.constructor=P,P.convert=function(j,H){return j.__proto__=H||P.prototype,j},P.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:{}}},P.prototype.from=function(j,H){function W(G){switch((0,M.objType)(G)){case"string":return"string";case"element":return G.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){H=H||W(j);switch(H){case"string":return this.set({src:(0,M.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.")}})},P.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.")}},P.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 W={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},G={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};W.opacity=0;var V=(0,M.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,M.createElement)("div",{className:"html2pdf__overlay",style:W}),this.prop.container=(0,M.createElement)("div",{className:"html2pdf__container",style:G}),this.prop.container.appendChild(V),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},P.prototype.toCanvas=function(){var j=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(j).then(function(){var W=Object.assign({},this.opt.html2canvas);return delete W.onrendered,O(this.prop.container,W)}).then(function(W){var G=this.opt.html2canvas.onrendered||function(){};G(W),this.prop.canvas=W,document.body.removeChild(this.prop.overlay)})},P.prototype.toImg=function(){var j=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(j).then(function(){var W=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=W})},P.prototype.toPdf=function(){var j=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(j).then(function(){var W=this.prop.canvas,G=this.opt,V=W.height,Z=Math.floor(W.width*this.prop.pageSize.inner.ratio),Y=Math.ceil(V/Z),Q=this.prop.pageSize.inner.height,oe=document.createElement("canvas"),ue=oe.getContext("2d");oe.width=W.width,oe.height=Z,this.prop.pdf=this.prop.pdf||new T.jsPDF(G.jsPDF);for(var Le=0;Le<Y;Le++){Le===Y-1&&V%Z!==0&&(oe.height=V%Z,Q=oe.height*this.prop.pageSize.inner.width/oe.width);var me=oe.width,Ie=oe.height;ue.fillStyle="white",ue.fillRect(0,0,me,Ie),ue.drawImage(W,0,Le*Z,me,Ie,0,0,me,Ie),Le&&this.prop.pdf.addPage();var X=oe.toDataURL("image/"+G.image.type,G.image.quality);this.prop.pdf.addImage(X,G.image.type,G.margin[1],G.margin[0],this.prop.pageSize.inner.width,Q)}})},P.prototype.output=function(j,H,W){return W=W||"pdf",W.toLowerCase()==="img"||W.toLowerCase()==="image"?this.outputImg(j,H):this.outputPdf(j,H)},P.prototype.outputPdf=function(j,H){var W=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(W).then(function(){return this.prop.pdf.output(j,H)})},P.prototype.outputImg=function(j,H){var W=[function(){return this.prop.img||this.toImg()}];return this.thenList(W).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.'}})},P.prototype.save=function(j){var H=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(H).set(j?{filename:j}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},P.prototype.set=function(j){if((0,M.objType)(j)!=="object")return this;var H=Object.keys(j||{}).map(function(W){switch(W){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 W in P.template.prop?function(){this.prop[W]=j[W]}:function(){this.opt[W]=j[W]}}},this);return this.then(function(){return this.thenList(H)})},P.prototype.get=function(j,H){return this.then(function(){var G=j in P.template.prop?this.prop[j]:this.opt[j];return H?H(G):G})},P.prototype.setMargin=function(j){return this.then(function(){switch((0,M.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)},P.prototype.setPageSize=function(j){return this.then(function(){j=j||T.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,M.toPx)(j.inner.width,j.k),height:(0,M.toPx)(j.inner.height,j.k)},j.inner.ratio=j.inner.height/j.inner.width),this.prop.pageSize=j})},P.prototype.setProgress=function(j,H,W,G){return j!=null&&(this.progress.val=j),H!=null&&(this.progress.state=H),W!=null&&(this.progress.n=W),G!=null&&(this.progress.stack=G),this.progress.ratio=this.progress.val/this.progress.state,this},P.prototype.updateProgress=function(j,H,W,G){return this.setProgress(j?this.progress.val+j:null,H||null,W?this.progress.n+W:null,G?this.progress.stack.concat(G):null)},P.prototype.then=function(j,H){var W=this;return this.thenCore(j,H,function(V,Z){return W.updateProgress(null,null,1,[V]),B.prototype.then.call(this,function(Q){return W.updateProgress(null,V),Q}).then(V,Z).then(function(Q){return W.updateProgress(1),Q})})},P.prototype.thenCore=function(j,H,W){W=W||B.prototype.then;var G=this;j&&(j=j.bind(G)),H&&(H=H.bind(G));var V=B.toString().indexOf("[native code]")!==-1&&B.name==="Promise",Z=V?G:P.convert(Object.assign({},G),B.prototype),Y=W.call(Z,j,H);return P.convert(Y,G.__proto__)},P.prototype.thenExternal=function(j,H){return B.prototype.then.call(this,j,H)},P.prototype.thenList=function(j){var H=this;return j.forEach(function(G){H=H.thenCore(G)}),H},P.prototype.catch=function(U){U&&(U=U.bind(this));var j=B.prototype.catch.call(this,U);return P.convert(j,this)},P.prototype.catchExternal=function(j){return B.prototype.catch.call(this,j)},P.prototype.error=function(j){return this.then(function(){throw new Error(j)})},P.prototype.using=P.prototype.set,P.prototype.saveAs=P.prototype.save,P.prototype.export=P.prototype.output,P.prototype.run=P.prototype.then,l.default=P},"./node_modules/core-js/internals/a-function.js":function(t){t.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},"./node_modules/core-js/internals/a-possible-prototype.js":function(t,l,a){var r=a("./node_modules/core-js/internals/is-object.js");t.exports=function(u){if(!r(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},"./node_modules/core-js/internals/add-to-unscopables.js":function(t,l,a){var r=a("./node_modules/core-js/internals/well-known-symbol.js"),u=a("./node_modules/core-js/internals/object-create.js"),e=a("./node_modules/core-js/internals/object-define-property.js"),n=r("unscopables"),i=Array.prototype;i[n]==null&&e.f(i,n,{configurable:!0,value:u(null)}),t.exports=function(c){i[n][c]=!0}},"./node_modules/core-js/internals/an-object.js":function(t,l,a){var r=a("./node_modules/core-js/internals/is-object.js");t.exports=function(u){if(!r(u))throw TypeError(String(u)+" is not an object");return u}},"./node_modules/core-js/internals/array-for-each.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/array-iteration.js").forEach,u=a("./node_modules/core-js/internals/array-method-is-strict.js"),e=u("forEach");t.exports=e?[].forEach:function(i){return r(this,i,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(t,l,a){var r=a("./node_modules/core-js/internals/to-indexed-object.js"),u=a("./node_modules/core-js/internals/to-length.js"),e=a("./node_modules/core-js/internals/to-absolute-index.js"),n=function(c){return function(d,h,p){var g=r(d),v=u(g.length),A=e(p,v),x;if(c&&h!=h){for(;v>A;)if(x=g[A++],x!=x)return!0}else for(;v>A;A++)if((c||A in g)&&g[A]===h)return c||A||0;return!c&&-1}};t.exports={includes:n(!0),indexOf:n(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(t,l,a){var r=a("./node_modules/core-js/internals/function-bind-context.js"),u=a("./node_modules/core-js/internals/indexed-object.js"),e=a("./node_modules/core-js/internals/to-object.js"),n=a("./node_modules/core-js/internals/to-length.js"),i=a("./node_modules/core-js/internals/array-species-create.js"),c=[].push,d=function(p){var g=p==1,v=p==2,A=p==3,x=p==4,b=p==6,w=p==7,S=p==5||b;return function(T,C,O,_){for(var M=e(T),k=u(M),R=r(C,O,3),B=n(k.length),P=0,U=_||i,j=g?U(T,B):v||w?U(T,0):void 0,H,W;B>P;P++)if((S||P in k)&&(H=k[P],W=R(H,P,M),p))if(g)j[P]=W;else if(W)switch(p){case 3:return!0;case 5:return H;case 6:return P;case 2:c.call(j,H)}else switch(p){case 4:return!1;case 7:c.call(j,H)}return b?-1:A||x?x:j}};t.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(t,l,a){var r=a("./node_modules/core-js/internals/fails.js"),u=a("./node_modules/core-js/internals/well-known-symbol.js"),e=a("./node_modules/core-js/internals/engine-v8-version.js"),n=u("species");t.exports=function(i){return e>=51||!r(function(){var c=[],d=c.constructor={};return d[n]=function(){return{foo:1}},c[i](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/fails.js");t.exports=function(u,e){var n=[][u];return!!n&&r(function(){n.call(null,e||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(t,l,a){var r=a("./node_modules/core-js/internals/is-object.js"),u=a("./node_modules/core-js/internals/is-array.js"),e=a("./node_modules/core-js/internals/well-known-symbol.js"),n=e("species");t.exports=function(i){var c;return u(i)&&(c=i.constructor,typeof c=="function"&&(c===Array||u(c.prototype))?c=void 0:r(c)&&(c=c[n],c===null&&(c=void 0))),c===void 0?Array:c}},"./node_modules/core-js/internals/array-species-create.js":function(t,l,a){var r=a("./node_modules/core-js/internals/array-species-constructor.js");t.exports=function(u,e){return new(r(u))(e===0?0:e)}},"./node_modules/core-js/internals/classof-raw.js":function(t){var l={}.toString;t.exports=function(a){return l.call(a).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(t,l,a){var r=a("./node_modules/core-js/internals/to-string-tag-support.js"),u=a("./node_modules/core-js/internals/classof-raw.js"),e=a("./node_modules/core-js/internals/well-known-symbol.js"),n=e("toStringTag"),i=u(function(){return arguments}())=="Arguments",c=function(h,p){try{return h[p]}catch(g){}};t.exports=r?u:function(d){var h,p,g;return d===void 0?"Undefined":d===null?"Null":typeof(p=c(h=Object(d),n))=="string"?p:i?u(h):(g=u(h))=="Object"&&typeof h.callee=="function"?"Arguments":g}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(t,l,a){var r=a("./node_modules/core-js/internals/has.js"),u=a("./node_modules/core-js/internals/own-keys.js"),e=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),n=a("./node_modules/core-js/internals/object-define-property.js");t.exports=function(i,c){for(var d=u(c),h=n.f,p=e.f,g=0;g<d.length;g++){var v=d[g];r(i,v)||h(i,v,p(c,v))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(t,l,a){var r=a("./node_modules/core-js/internals/fails.js");t.exports=!r(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},"./node_modules/core-js/internals/create-html.js":function(t,l,a){var r=a("./node_modules/core-js/internals/require-object-coercible.js"),u=a("./node_modules/core-js/internals/to-string.js"),e=/"/g;t.exports=function(n,i,c,d){var h=u(r(n)),p="<"+i;return c!==""&&(p+=" "+c+'="'+u(d).replace(e,""")+'"'),p+">"+h+"</"+i+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,u=a("./node_modules/core-js/internals/object-create.js"),e=a("./node_modules/core-js/internals/create-property-descriptor.js"),n=a("./node_modules/core-js/internals/set-to-string-tag.js"),i=a("./node_modules/core-js/internals/iterators.js"),c=function(){return this};t.exports=function(d,h,p){var g=h+" Iterator";return d.prototype=u(r,{next:e(1,p)}),n(d,g,!1,!0),i[g]=c,d}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(t,l,a){var r=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/object-define-property.js"),e=a("./node_modules/core-js/internals/create-property-descriptor.js");t.exports=r?function(n,i,c){return u.f(n,i,e(1,c))}:function(n,i,c){return n[i]=c,n}},"./node_modules/core-js/internals/create-property-descriptor.js":function(t){t.exports=function(l,a){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:a}}},"./node_modules/core-js/internals/create-property.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/to-property-key.js"),u=a("./node_modules/core-js/internals/object-define-property.js"),e=a("./node_modules/core-js/internals/create-property-descriptor.js");t.exports=function(n,i,c){var d=r(i);d in n?u.f(n,d,e(0,c)):n[d]=c}},"./node_modules/core-js/internals/define-iterator.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/create-iterator-constructor.js"),e=a("./node_modules/core-js/internals/object-get-prototype-of.js"),n=a("./node_modules/core-js/internals/object-set-prototype-of.js"),i=a("./node_modules/core-js/internals/set-to-string-tag.js"),c=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),d=a("./node_modules/core-js/internals/redefine.js"),h=a("./node_modules/core-js/internals/well-known-symbol.js"),p=a("./node_modules/core-js/internals/is-pure.js"),g=a("./node_modules/core-js/internals/iterators.js"),v=a("./node_modules/core-js/internals/iterators-core.js"),A=v.IteratorPrototype,x=v.BUGGY_SAFARI_ITERATORS,b=h("iterator"),w="keys",S="values",T="entries",C=function(){return this};t.exports=function(O,_,M,k,R,B,P){u(M,_,k);var U=function(Le){if(Le===R&&V)return V;if(!x&&Le in W)return W[Le];switch(Le){case w:return function(){return new M(this,Le)};case S:return function(){return new M(this,Le)};case T:return function(){return new M(this,Le)}}return function(){return new M(this)}},j=_+" Iterator",H=!1,W=O.prototype,G=W[b]||W["@@iterator"]||R&&W[R],V=!x&&G||U(R),Z=_=="Array"&&W.entries||G,Y,Q,oe;if(Z&&(Y=e(Z.call(new O)),A!==Object.prototype&&Y.next&&(!p&&e(Y)!==A&&(n?n(Y,A):typeof Y[b]!="function"&&c(Y,b,C)),i(Y,j,!0,!0),p&&(g[j]=C))),R==S&&G&&G.name!==S&&(H=!0,V=function(){return G.call(this)}),(!p||P)&&W[b]!==V&&c(W,b,V),g[_]=V,R)if(Q={values:U(S),keys:B?V:U(w),entries:U(T)},P)for(oe in Q)(x||H||!(oe in W))&&d(W,oe,Q[oe]);else r({target:_,proto:!0,forced:x||H},Q);return Q}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(t,l,a){var r=a("./node_modules/core-js/internals/path.js"),u=a("./node_modules/core-js/internals/has.js"),e=a("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),n=a("./node_modules/core-js/internals/object-define-property.js").f;t.exports=function(i){var c=r.Symbol||(r.Symbol={});u(c,i)||n(c,i,{value:e.f(i)})}},"./node_modules/core-js/internals/descriptors.js":function(t,l,a){var r=a("./node_modules/core-js/internals/fails.js");t.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/is-object.js"),e=r.document,n=u(e)&&u(e.createElement);t.exports=function(i){return n?e.createElement(i):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(t){t.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(t,l,a){var r=a("./node_modules/core-js/internals/get-built-in.js");t.exports=r("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/engine-user-agent.js"),e=r.process,n=r.Deno,i=e&&e.versions||n&&n.version,c=i&&i.v8,d,h;c?(d=c.split("."),h=d[0]<4?1:d[0]+d[1]):u&&(d=u.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=u.match(/Chrome\/(\d+)/),d&&(h=d[1]))),t.exports=h&&+h},"./node_modules/core-js/internals/enum-bug-keys.js":function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,e=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),n=a("./node_modules/core-js/internals/redefine.js"),i=a("./node_modules/core-js/internals/set-global.js"),c=a("./node_modules/core-js/internals/copy-constructor-properties.js"),d=a("./node_modules/core-js/internals/is-forced.js");t.exports=function(h,p){var g=h.target,v=h.global,A=h.stat,x,b,w,S,T,C;if(v?b=r:A?b=r[g]||i(g,{}):b=(r[g]||{}).prototype,b)for(w in p){if(T=p[w],h.noTargetGet?(C=u(b,w),S=C&&C.value):S=b[w],x=d(v?w:g+(A?".":"#")+w,h.forced),!x&&S!==void 0){if(typeof T===typeof S)continue;c(T,S)}(h.sham||S&&S.sham)&&e(T,"sham",!0),n(b,w,T,h)}}},"./node_modules/core-js/internals/fails.js":function(t){t.exports=function(l){try{return!!l()}catch(a){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(t,l,a){var r=a("./node_modules/core-js/internals/a-function.js");t.exports=function(u,e,n){if(r(u),e===void 0)return u;switch(n){case 0:return function(){return u.call(e)};case 1:return function(i){return u.call(e,i)};case 2:return function(i,c){return u.call(e,i,c)};case 3:return function(i,c,d){return u.call(e,i,c,d)}}return function(){return u.apply(e,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=function(n){return typeof n=="function"?n:void 0};t.exports=function(e,n){return arguments.length<2?u(r[e]):r[e]&&r[e][n]}},"./node_modules/core-js/internals/global.js":function(t){var l=function(r){return r&&r.Math==Math&&r};t.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof D=="object"&&D)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(t,l,a){var r=a("./node_modules/core-js/internals/to-object.js"),u={}.hasOwnProperty;t.exports=Object.hasOwn||function(n,i){return u.call(r(n),i)}},"./node_modules/core-js/internals/hidden-keys.js":function(t){t.exports={}},"./node_modules/core-js/internals/html.js":function(t,l,a){var r=a("./node_modules/core-js/internals/get-built-in.js");t.exports=r("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(t,l,a){var r=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/fails.js"),e=a("./node_modules/core-js/internals/document-create-element.js");t.exports=!r&&!u(function(){return Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(t,l,a){var r=a("./node_modules/core-js/internals/fails.js"),u=a("./node_modules/core-js/internals/classof-raw.js"),e="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(n){return u(n)=="String"?e.call(n,""):Object(n)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(t,l,a){var r=a("./node_modules/core-js/internals/is-object.js"),u=a("./node_modules/core-js/internals/object-set-prototype-of.js");t.exports=function(e,n,i){var c,d;return u&&typeof(c=n.constructor)=="function"&&c!==i&&r(d=c.prototype)&&d!==i.prototype&&u(e,d),e}},"./node_modules/core-js/internals/inspect-source.js":function(t,l,a){var r=a("./node_modules/core-js/internals/shared-store.js"),u=Function.toString;typeof r.inspectSource!="function"&&(r.inspectSource=function(e){return u.call(e)}),t.exports=r.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(t,l,a){var r=a("./node_modules/core-js/internals/native-weak-map.js"),u=a("./node_modules/core-js/internals/global.js"),e=a("./node_modules/core-js/internals/is-object.js"),n=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),i=a("./node_modules/core-js/internals/has.js"),c=a("./node_modules/core-js/internals/shared-store.js"),d=a("./node_modules/core-js/internals/shared-key.js"),h=a("./node_modules/core-js/internals/hidden-keys.js"),p="Object already initialized",g=u.WeakMap,v,A,x,b=function(k){return x(k)?A(k):v(k,{})},w=function(k){return function(R){var B;if(!e(R)||(B=A(R)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return B}};if(r||c.state){var S=c.state||(c.state=new g),T=S.get,C=S.has,O=S.set;v=function(k,R){if(C.call(S,k))throw new TypeError(p);return R.facade=k,O.call(S,k,R),R},A=function(k){return T.call(S,k)||{}},x=function(k){return C.call(S,k)}}else{var _=d("state");h[_]=!0,v=function(k,R){if(i(k,_))throw new TypeError(p);return R.facade=k,n(k,_,R),R},A=function(k){return i(k,_)?k[_]:{}},x=function(k){return i(k,_)}}t.exports={set:v,get:A,has:x,enforce:b,getterFor:w}},"./node_modules/core-js/internals/is-array.js":function(t,l,a){var r=a("./node_modules/core-js/internals/classof-raw.js");t.exports=Array.isArray||function(e){return r(e)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(t,l,a){var r=a("./node_modules/core-js/internals/fails.js"),u=/#|\.prototype\./,e=function(p,g){var v=i[n(p)];return v==d?!0:v==c?!1:typeof g=="function"?r(g):!!g},n=e.normalize=function(h){return String(h).replace(u,".").toLowerCase()},i=e.data={},c=e.NATIVE="N",d=e.POLYFILL="P";t.exports=e},"./node_modules/core-js/internals/is-object.js":function(t){t.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},"./node_modules/core-js/internals/is-pure.js":function(t){t.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(t,l,a){var r=a("./node_modules/core-js/internals/get-built-in.js"),u=a("./node_modules/core-js/internals/use-symbol-as-uid.js");t.exports=u?function(e){return typeof e=="symbol"}:function(e){var n=r("Symbol");return typeof n=="function"&&Object(e)instanceof n}},"./node_modules/core-js/internals/iterators-core.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/fails.js"),u=a("./node_modules/core-js/internals/object-get-prototype-of.js"),e=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),n=a("./node_modules/core-js/internals/has.js"),i=a("./node_modules/core-js/internals/well-known-symbol.js"),c=a("./node_modules/core-js/internals/is-pure.js"),d=i("iterator"),h=!1,p=function(){return this},g,v,A;[].keys&&(A=[].keys(),"next"in A?(v=u(u(A)),v!==Object.prototype&&(g=v)):h=!0);var x=g==null||r(function(){var b={};return g[d].call(b)!==b});x&&(g={}),(!c||x)&&!n(g,d)&&e(g,d,p),t.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:h}},"./node_modules/core-js/internals/iterators.js":function(t){t.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(t,l,a){var r=a("./node_modules/core-js/internals/engine-v8-version.js"),u=a("./node_modules/core-js/internals/fails.js");t.exports=!!Object.getOwnPropertySymbols&&!u(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},"./node_modules/core-js/internals/native-weak-map.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/inspect-source.js"),e=r.WeakMap;t.exports=typeof e=="function"&&/native code/.test(u(e))},"./node_modules/core-js/internals/object-assign.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/fails.js"),e=a("./node_modules/core-js/internals/object-keys.js"),n=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),i=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),c=a("./node_modules/core-js/internals/to-object.js"),d=a("./node_modules/core-js/internals/indexed-object.js"),h=Object.assign,p=Object.defineProperty;t.exports=!h||u(function(){if(r&&h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},v={},A=Symbol(),x="abcdefghijklmnopqrst";return g[A]=7,x.split("").forEach(function(b){v[b]=b}),h({},g)[A]!=7||e(h({},v)).join("")!=x})?function(v,A){for(var x=c(v),b=arguments.length,w=1,S=n.f,T=i.f;b>w;)for(var C=d(arguments[w++]),O=S?e(C).concat(S(C)):e(C),_=O.length,M=0,k;_>M;)k=O[M++],(!r||T.call(C,k))&&(x[k]=C[k]);return x}:h},"./node_modules/core-js/internals/object-create.js":function(t,l,a){var r=a("./node_modules/core-js/internals/an-object.js"),u=a("./node_modules/core-js/internals/object-define-properties.js"),e=a("./node_modules/core-js/internals/enum-bug-keys.js"),n=a("./node_modules/core-js/internals/hidden-keys.js"),i=a("./node_modules/core-js/internals/html.js"),c=a("./node_modules/core-js/internals/document-create-element.js"),d=a("./node_modules/core-js/internals/shared-key.js"),h=">",p="<",g="prototype",v="script",A=d("IE_PROTO"),x=function(){},b=function(_){return p+v+h+_+p+"/"+v+h},w=function(_){_.write(b("")),_.close();var M=_.parentWindow.Object;return _=null,M},S=function(){var _=c("iframe"),M="java"+v+":",k;if(_.style)return _.style.display="none",i.appendChild(_),_.src=String(M),k=_.contentWindow.document,k.open(),k.write(b("document.F=Object")),k.close(),k.F},T,C=function(){try{T=new ActiveXObject("htmlfile")}catch(M){}C=document.domain&&T?w(T):S()||w(T);for(var _=e.length;_--;)delete C[g][e[_]];return C()};n[A]=!0,t.exports=Object.create||function(_,M){var k;return _!==null?(x[g]=r(_),k=new x,x[g]=null,k[A]=_):k=C(),M===void 0?k:u(k,M)}},"./node_modules/core-js/internals/object-define-properties.js":function(t,l,a){var r=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/object-define-property.js"),e=a("./node_modules/core-js/internals/an-object.js"),n=a("./node_modules/core-js/internals/object-keys.js");t.exports=r?Object.defineProperties:function(c,d){e(c);for(var h=n(d),p=h.length,g=0,v;p>g;)u.f(c,v=h[g++],d[v]);return c}},"./node_modules/core-js/internals/object-define-property.js":function(t,l,a){var r=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/ie8-dom-define.js"),e=a("./node_modules/core-js/internals/an-object.js"),n=a("./node_modules/core-js/internals/to-property-key.js"),i=Object.defineProperty;l.f=r?i:function(d,h,p){if(e(d),h=n(h),e(p),u)try{return i(d,h,p)}catch(g){}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(d[h]=p.value),d}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(t,l,a){var r=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),e=a("./node_modules/core-js/internals/create-property-descriptor.js"),n=a("./node_modules/core-js/internals/to-indexed-object.js"),i=a("./node_modules/core-js/internals/to-property-key.js"),c=a("./node_modules/core-js/internals/has.js"),d=a("./node_modules/core-js/internals/ie8-dom-define.js"),h=Object.getOwnPropertyDescriptor;l.f=r?h:function(g,v){if(g=n(g),v=i(v),d)try{return h(g,v)}catch(A){}if(c(g,v))return e(!u.f.call(g,v),g[v])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(t,l,a){var r=a("./node_modules/core-js/internals/to-indexed-object.js"),u=a("./node_modules/core-js/internals/object-get-own-property-names.js").f,e={}.toString,n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i=function(d){try{return u(d)}catch(h){return n.slice()}};t.exports.f=function(d){return n&&e.call(d)=="[object Window]"?i(d):u(r(d))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(t,l,a){var r=a("./node_modules/core-js/internals/object-keys-internal.js"),u=a("./node_modules/core-js/internals/enum-bug-keys.js"),e=u.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(i){return r(i,e)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(t,l){l.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(t,l,a){var r=a("./node_modules/core-js/internals/has.js"),u=a("./node_modules/core-js/internals/to-object.js"),e=a("./node_modules/core-js/internals/shared-key.js"),n=a("./node_modules/core-js/internals/correct-prototype-getter.js"),i=e("IE_PROTO"),c=Object.prototype;t.exports=n?Object.getPrototypeOf:function(d){return d=u(d),r(d,i)?d[i]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?c:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(t,l,a){var r=a("./node_modules/core-js/internals/has.js"),u=a("./node_modules/core-js/internals/to-indexed-object.js"),e=a("./node_modules/core-js/internals/array-includes.js").indexOf,n=a("./node_modules/core-js/internals/hidden-keys.js");t.exports=function(i,c){var d=u(i),h=0,p=[],g;for(g in d)!r(n,g)&&r(d,g)&&p.push(g);for(;c.length>h;)r(d,g=c[h++])&&(~e(p,g)||p.push(g));return p}},"./node_modules/core-js/internals/object-keys.js":function(t,l,a){var r=a("./node_modules/core-js/internals/object-keys-internal.js"),u=a("./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(n){return r(n,u)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(t,l){"use strict";var a={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,u=r&&!a.call({1:2},1);l.f=u?function(n){var i=r(this,n);return!!i&&i.enumerable}:a},"./node_modules/core-js/internals/object-set-prototype-of.js":function(t,l,a){var r=a("./node_modules/core-js/internals/an-object.js"),u=a("./node_modules/core-js/internals/a-possible-prototype.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,n={},i;try{i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,i.call(n,[]),e=n instanceof Array}catch(c){}return function(d,h){return r(d),u(h),e?i.call(d,h):d.__proto__=h,d}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/to-string-tag-support.js"),u=a("./node_modules/core-js/internals/classof.js");t.exports=r?{}.toString:function(){return"[object "+u(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(t,l,a){var r=a("./node_modules/core-js/internals/is-object.js");t.exports=function(u,e){var n,i;if(e==="string"&&typeof(n=u.toString)=="function"&&!r(i=n.call(u)))return i;if(typeof(n=u.valueOf)=="function"&&!r(i=n.call(u)))return i;if(e!=="string"&&typeof(n=u.toString)=="function"&&!r(i=n.call(u)))return i;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(t,l,a){var r=a("./node_modules/core-js/internals/get-built-in.js"),u=a("./node_modules/core-js/internals/object-get-own-property-names.js"),e=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),n=a("./node_modules/core-js/internals/an-object.js");t.exports=r("Reflect","ownKeys")||function(c){var d=u.f(n(c)),h=e.f;return h?d.concat(h(c)):d}},"./node_modules/core-js/internals/path.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js");t.exports=r},"./node_modules/core-js/internals/redefine.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),e=a("./node_modules/core-js/internals/has.js"),n=a("./node_modules/core-js/internals/set-global.js"),i=a("./node_modules/core-js/internals/inspect-source.js"),c=a("./node_modules/core-js/internals/internal-state.js"),d=c.get,h=c.enforce,p=String(String).split("String");(t.exports=function(g,v,A,x){var b=x?!!x.unsafe:!1,w=x?!!x.enumerable:!1,S=x?!!x.noTargetGet:!1,T;if(typeof A=="function"&&(typeof v=="string"&&!e(A,"name")&&u(A,"name",v),T=h(A),T.source||(T.source=p.join(typeof v=="string"?v:""))),g===r){w?g[v]=A:n(v,A);return}else b?!S&&g[v]&&(w=!0):delete g[v];w?g[v]=A:u(g,v,A)})(Function.prototype,"toString",function(){return typeof this=="function"&&d(this).source||i(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/an-object.js");t.exports=function(){var u=r(this),e="";return u.global&&(e+="g"),u.ignoreCase&&(e+="i"),u.multiline&&(e+="m"),u.dotAll&&(e+="s"),u.unicode&&(e+="u"),u.sticky&&(e+="y"),e}},"./node_modules/core-js/internals/require-object-coercible.js":function(t){t.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},"./node_modules/core-js/internals/set-global.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js");t.exports=function(u,e){try{Object.defineProperty(r,u,{value:e,configurable:!0,writable:!0})}catch(n){r[u]=e}return e}},"./node_modules/core-js/internals/set-to-string-tag.js":function(t,l,a){var r=a("./node_modules/core-js/internals/object-define-property.js").f,u=a("./node_modules/core-js/internals/has.js"),e=a("./node_modules/core-js/internals/well-known-symbol.js"),n=e("toStringTag");t.exports=function(i,c,d){i&&!u(i=d?i:i.prototype,n)&&r(i,n,{configurable:!0,value:c})}},"./node_modules/core-js/internals/shared-key.js":function(t,l,a){var r=a("./node_modules/core-js/internals/shared.js"),u=a("./node_modules/core-js/internals/uid.js"),e=r("keys");t.exports=function(n){return e[n]||(e[n]=u(n))}},"./node_modules/core-js/internals/shared-store.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/set-global.js"),e="__core-js_shared__",n=r[e]||u(e,{});t.exports=n},"./node_modules/core-js/internals/shared.js":function(t,l,a){var r=a("./node_modules/core-js/internals/is-pure.js"),u=a("./node_modules/core-js/internals/shared-store.js");(t.exports=function(e,n){return u[e]||(u[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(t,l,a){var r=a("./node_modules/core-js/internals/fails.js");t.exports=function(u){return r(function(){var e=""[u]('"');return e!==e.toLowerCase()||e.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(t,l,a){var r=a("./node_modules/core-js/internals/to-integer.js"),u=a("./node_modules/core-js/internals/to-string.js"),e=a("./node_modules/core-js/internals/require-object-coercible.js"),n=function(c){return function(d,h){var p=u(e(d)),g=r(h),v=p.length,A,x;return g<0||g>=v?c?"":void 0:(A=p.charCodeAt(g),A<55296||A>56319||g+1===v||(x=p.charCodeAt(g+1))<56320||x>57343?c?p.charAt(g):A:c?p.slice(g,g+2):(A-55296<<10)+(x-56320)+65536)}};t.exports={codeAt:n(!1),charAt:n(!0)}},"./node_modules/core-js/internals/string-trim.js":function(t,l,a){var r=a("./node_modules/core-js/internals/require-object-coercible.js"),u=a("./node_modules/core-js/internals/to-string.js"),e=a("./node_modules/core-js/internals/whitespaces.js"),n="["+e+"]",i=RegExp("^"+n+n+"*"),c=RegExp(n+n+"*$"),d=function(p){return function(g){var v=u(r(g));return p&1&&(v=v.replace(i,"")),p&2&&(v=v.replace(c,"")),v}};t.exports={start:d(1),end:d(2),trim:d(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(t,l,a){var r=a("./node_modules/core-js/internals/to-integer.js"),u=Math.max,e=Math.min;t.exports=function(n,i){var c=r(n);return c<0?u(c+i,0):e(c,i)}},"./node_modules/core-js/internals/to-indexed-object.js":function(t,l,a){var r=a("./node_modules/core-js/internals/indexed-object.js"),u=a("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(e){return r(u(e))}},"./node_modules/core-js/internals/to-integer.js":function(t){var l=Math.ceil,a=Math.floor;t.exports=function(r){return isNaN(r=+r)?0:(r>0?a:l)(r)}},"./node_modules/core-js/internals/to-length.js":function(t,l,a){var r=a("./node_modules/core-js/internals/to-integer.js"),u=Math.min;t.exports=function(e){return e>0?u(r(e),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(t,l,a){var r=a("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(u){return Object(r(u))}},"./node_modules/core-js/internals/to-primitive.js":function(t,l,a){var r=a("./node_modules/core-js/internals/is-object.js"),u=a("./node_modules/core-js/internals/is-symbol.js"),e=a("./node_modules/core-js/internals/ordinary-to-primitive.js"),n=a("./node_modules/core-js/internals/well-known-symbol.js"),i=n("toPrimitive");t.exports=function(c,d){if(!r(c)||u(c))return c;var h=c[i],p;if(h!==void 0){if(d===void 0&&(d="default"),p=h.call(c,d),!r(p)||u(p))return p;throw TypeError("Can't convert object to primitive value")}return d===void 0&&(d="number"),e(c,d)}},"./node_modules/core-js/internals/to-property-key.js":function(t,l,a){var r=a("./node_modules/core-js/internals/to-primitive.js"),u=a("./node_modules/core-js/internals/is-symbol.js");t.exports=function(e){var n=r(e,"string");return u(n)?n:String(n)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(t,l,a){var r=a("./node_modules/core-js/internals/well-known-symbol.js"),u=r("toStringTag"),e={};e[u]="z",t.exports=String(e)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(t,l,a){var r=a("./node_modules/core-js/internals/is-symbol.js");t.exports=function(u){if(r(u))throw TypeError("Cannot convert a Symbol value to a string");return String(u)}},"./node_modules/core-js/internals/uid.js":function(t){var l=0,a=Math.random();t.exports=function(r){return"Symbol("+String(r===void 0?"":r)+")_"+(++l+a).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(t,l,a){var r=a("./node_modules/core-js/internals/native-symbol.js");t.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(t,l,a){var r=a("./node_modules/core-js/internals/well-known-symbol.js");l.f=r},"./node_modules/core-js/internals/well-known-symbol.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/shared.js"),e=a("./node_modules/core-js/internals/has.js"),n=a("./node_modules/core-js/internals/uid.js"),i=a("./node_modules/core-js/internals/native-symbol.js"),c=a("./node_modules/core-js/internals/use-symbol-as-uid.js"),d=u("wks"),h=r.Symbol,p=c?h:h&&h.withoutSetter||n;t.exports=function(g){return(!e(d,g)||!(i||typeof d[g]=="string"))&&(i&&e(h,g)?d[g]=h[g]:d[g]=p("Symbol."+g)),d[g]}},"./node_modules/core-js/internals/whitespaces.js":function(t){t.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(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/fails.js"),e=a("./node_modules/core-js/internals/is-array.js"),n=a("./node_modules/core-js/internals/is-object.js"),i=a("./node_modules/core-js/internals/to-object.js"),c=a("./node_modules/core-js/internals/to-length.js"),d=a("./node_modules/core-js/internals/create-property.js"),h=a("./node_modules/core-js/internals/array-species-create.js"),p=a("./node_modules/core-js/internals/array-method-has-species-support.js"),g=a("./node_modules/core-js/internals/well-known-symbol.js"),v=a("./node_modules/core-js/internals/engine-v8-version.js"),A=g("isConcatSpreadable"),x=9007199254740991,b="Maximum allowed index exceeded",w=v>=51||!u(function(){var O=[];return O[A]=!1,O.concat()[0]!==O}),S=p("concat"),T=function(_){if(!n(_))return!1;var M=_[A];return M!==void 0?!!M:e(_)},C=!w||!S;r({target:"Array",proto:!0,forced:C},{concat:function(_){var M=i(this),k=h(M,0),R=0,B,P,U,j,H;for(B=-1,U=arguments.length;B<U;B++)if(H=B===-1?M:arguments[B],T(H)){if(j=c(H.length),R+j>x)throw TypeError(b);for(P=0;P<j;P++,R++)P in H&&d(k,R,H[P])}else{if(R>=x)throw TypeError(b);d(k,R++,H)}return k.length=R,k}})},"./node_modules/core-js/modules/es.array.iterator.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/to-indexed-object.js"),u=a("./node_modules/core-js/internals/add-to-unscopables.js"),e=a("./node_modules/core-js/internals/iterators.js"),n=a("./node_modules/core-js/internals/internal-state.js"),i=a("./node_modules/core-js/internals/define-iterator.js"),c="Array Iterator",d=n.set,h=n.getterFor(c);t.exports=i(Array,"Array",function(p,g){d(this,{type:c,target:r(p),index:0,kind:g})},function(){var p=h(this),g=p.target,v=p.kind,A=p.index++;return!g||A>=g.length?(p.target=void 0,{value:void 0,done:!0}):v=="keys"?{value:A,done:!1}:v=="values"?{value:g[A],done:!1}:{value:[A,g[A]],done:!1}},"values"),e.Arguments=e.Array,u("keys"),u("values"),u("entries")},"./node_modules/core-js/modules/es.array.join.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/indexed-object.js"),e=a("./node_modules/core-js/internals/to-indexed-object.js"),n=a("./node_modules/core-js/internals/array-method-is-strict.js"),i=[].join,c=u!=Object,d=n("join",",");r({target:"Array",proto:!0,forced:c||!d},{join:function(p){return i.call(e(this),p===void 0?",":p)}})},"./node_modules/core-js/modules/es.array.map.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/array-iteration.js").map,e=a("./node_modules/core-js/internals/array-method-has-species-support.js"),n=e("map");r({target:"Array",proto:!0,forced:!n},{map:function(c){return u(this,c,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/is-object.js"),e=a("./node_modules/core-js/internals/is-array.js"),n=a("./node_modules/core-js/internals/to-absolute-index.js"),i=a("./node_modules/core-js/internals/to-length.js"),c=a("./node_modules/core-js/internals/to-indexed-object.js"),d=a("./node_modules/core-js/internals/create-property.js"),h=a("./node_modules/core-js/internals/well-known-symbol.js"),p=a("./node_modules/core-js/internals/array-method-has-species-support.js"),g=p("slice"),v=h("species"),A=[].slice,x=Math.max;r({target:"Array",proto:!0,forced:!g},{slice:function(w,S){var T=c(this),C=i(T.length),O=n(w,C),_=n(S===void 0?C:S,C),M,k,R;if(e(T)&&(M=T.constructor,typeof M=="function"&&(M===Array||e(M.prototype))?M=void 0:u(M)&&(M=M[v],M===null&&(M=void 0)),M===Array||M===void 0))return A.call(T,O,_);for(k=new(M===void 0?Array:M)(x(_-O,0)),R=0;O<_;O++,R++)O in T&&d(k,R,T[O]);return k.length=R,k}})},"./node_modules/core-js/modules/es.function.name.js":function(t,l,a){var r=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/object-define-property.js").f,e=Function.prototype,n=e.toString,i=/^\s*function ([^ (]*)/,c="name";r&&!(c in e)&&u(e,c,{configurable:!0,get:function(){try{return n.call(this).match(i)[1]}catch(h){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/global.js"),e=a("./node_modules/core-js/internals/is-forced.js"),n=a("./node_modules/core-js/internals/redefine.js"),i=a("./node_modules/core-js/internals/has.js"),c=a("./node_modules/core-js/internals/classof-raw.js"),d=a("./node_modules/core-js/internals/inherit-if-required.js"),h=a("./node_modules/core-js/internals/is-symbol.js"),p=a("./node_modules/core-js/internals/to-primitive.js"),g=a("./node_modules/core-js/internals/fails.js"),v=a("./node_modules/core-js/internals/object-create.js"),A=a("./node_modules/core-js/internals/object-get-own-property-names.js").f,x=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,b=a("./node_modules/core-js/internals/object-define-property.js").f,w=a("./node_modules/core-js/internals/string-trim.js").trim,S="Number",T=u[S],C=T.prototype,O=c(v(C))==S,_=function(U){if(h(U))throw TypeError("Cannot convert a Symbol value to a number");var j=p(U,"number"),H,W,G,V,Z,Y,Q,oe;if(typeof j=="string"&&j.length>2){if(j=w(j),H=j.charCodeAt(0),H===43||H===45){if(W=j.charCodeAt(2),W===88||W===120)return NaN}else if(H===48){switch(j.charCodeAt(1)){case 66:case 98:G=2,V=49;break;case 79:case 111:G=8,V=55;break;default:return+j}for(Z=j.slice(2),Y=Z.length,Q=0;Q<Y;Q++)if(oe=Z.charCodeAt(Q),oe<48||oe>V)return NaN;return parseInt(Z,G)}}return+j};if(e(S,!T(" 0o1")||!T("0b1")||T("+0x1"))){for(var M=function(U){var j=arguments.length<1?0:U,H=this;return H instanceof M&&(O?g(function(){C.valueOf.call(H)}):c(H)!=S)?d(new T(_(j)),H,M):_(j)},k=r?A(T):"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(","),R=0,B;k.length>R;R++)i(T,B=k[R])&&!i(M,B)&&b(M,B,x(T,B));M.prototype=C,C.constructor=M,n(u,S,M)}},"./node_modules/core-js/modules/es.object.assign.js":function(t,l,a){var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/object-assign.js");r({target:"Object",stat:!0,forced:Object.assign!==u},{assign:u})},"./node_modules/core-js/modules/es.object.keys.js":function(t,l,a){var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/to-object.js"),e=a("./node_modules/core-js/internals/object-keys.js"),n=a("./node_modules/core-js/internals/fails.js"),i=n(function(){e(1)});r({target:"Object",stat:!0,forced:i},{keys:function(d){return e(u(d))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(t,l,a){var r=a("./node_modules/core-js/internals/to-string-tag-support.js"),u=a("./node_modules/core-js/internals/redefine.js"),e=a("./node_modules/core-js/internals/object-to-string.js");r||u(Object.prototype,"toString",e,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/redefine.js"),u=a("./node_modules/core-js/internals/an-object.js"),e=a("./node_modules/core-js/internals/to-string.js"),n=a("./node_modules/core-js/internals/fails.js"),i=a("./node_modules/core-js/internals/regexp-flags.js"),c="toString",d=RegExp.prototype,h=d[c],p=n(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),g=h.name!=c;(p||g)&&r(RegExp.prototype,c,function(){var A=u(this),x=e(A.source),b=A.flags,w=e(b===void 0&&A instanceof RegExp&&!("flags"in d)?i.call(A):b);return"/"+x+"/"+w},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/string-multibyte.js").charAt,u=a("./node_modules/core-js/internals/to-string.js"),e=a("./node_modules/core-js/internals/internal-state.js"),n=a("./node_modules/core-js/internals/define-iterator.js"),i="String Iterator",c=e.set,d=e.getterFor(i);n(String,"String",function(h){c(this,{type:i,string:u(h),index:0})},function(){var p=d(this),g=p.string,v=p.index,A;return v>=g.length?{value:void 0,done:!0}:(A=r(g,v),p.index+=A.length,{value:A,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/create-html.js"),e=a("./node_modules/core-js/internals/string-html-forced.js");r({target:"String",proto:!0,forced:e("link")},{link:function(i){return u(this,"a","href",i)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/descriptors.js"),e=a("./node_modules/core-js/internals/global.js"),n=a("./node_modules/core-js/internals/has.js"),i=a("./node_modules/core-js/internals/is-object.js"),c=a("./node_modules/core-js/internals/object-define-property.js").f,d=a("./node_modules/core-js/internals/copy-constructor-properties.js"),h=e.Symbol;if(u&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var p={},g=function(){var S=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),T=this instanceof g?new h(S):S===void 0?h():h(S);return S===""&&(p[T]=!0),T};d(g,h);var v=g.prototype=h.prototype;v.constructor=g;var A=v.toString,x=String(h("test"))=="Symbol(test)",b=/^Symbol\((.*)\)[^)]+$/;c(v,"description",{configurable:!0,get:function(){var S=i(this)?this.valueOf():this,T=A.call(S);if(n(p,S))return"";var C=x?T.slice(7,-1):T.replace(b,"$1");return C===""?void 0:C}}),r({global:!0,forced:!0},{Symbol:g})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(t,l,a){var r=a("./node_modules/core-js/internals/define-well-known-symbol.js");r("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(t,l,a){"use strict";var r=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/global.js"),e=a("./node_modules/core-js/internals/get-built-in.js"),n=a("./node_modules/core-js/internals/is-pure.js"),i=a("./node_modules/core-js/internals/descriptors.js"),c=a("./node_modules/core-js/internals/native-symbol.js"),d=a("./node_modules/core-js/internals/fails.js"),h=a("./node_modules/core-js/internals/has.js"),p=a("./node_modules/core-js/internals/is-array.js"),g=a("./node_modules/core-js/internals/is-object.js"),v=a("./node_modules/core-js/internals/is-symbol.js"),A=a("./node_modules/core-js/internals/an-object.js"),x=a("./node_modules/core-js/internals/to-object.js"),b=a("./node_modules/core-js/internals/to-indexed-object.js"),w=a("./node_modules/core-js/internals/to-property-key.js"),S=a("./node_modules/core-js/internals/to-string.js"),T=a("./node_modules/core-js/internals/create-property-descriptor.js"),C=a("./node_modules/core-js/internals/object-create.js"),O=a("./node_modules/core-js/internals/object-keys.js"),_=a("./node_modules/core-js/internals/object-get-own-property-names.js"),M=a("./node_modules/core-js/internals/object-get-own-property-names-external.js"),k=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),R=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),B=a("./node_modules/core-js/internals/object-define-property.js"),P=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),U=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),j=a("./node_modules/core-js/internals/redefine.js"),H=a("./node_modules/core-js/internals/shared.js"),W=a("./node_modules/core-js/internals/shared-key.js"),G=a("./node_modules/core-js/internals/hidden-keys.js"),V=a("./node_modules/core-js/internals/uid.js"),Z=a("./node_modules/core-js/internals/well-known-symbol.js"),Y=a("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Q=a("./node_modules/core-js/internals/define-well-known-symbol.js"),oe=a("./node_modules/core-js/internals/set-to-string-tag.js"),ue=a("./node_modules/core-js/internals/internal-state.js"),Le=a("./node_modules/core-js/internals/array-iteration.js").forEach,me=W("hidden"),Ie="Symbol",X="prototype",q=Z("toPrimitive"),We=ue.set,$=ue.getterFor(Ie),J=Object[X],le=u.Symbol,de=e("JSON","stringify"),Ne=R.f,we=B.f,De=M.f,Ee=P.f,ce=H("symbols"),ne=H("op-symbols"),ee=H("string-to-symbol-registry"),Ae=H("symbol-to-string-registry"),Ve=H("wks"),Ke=u.QObject,Oe=!Ke||!Ke[X]||!Ke[X].findChild,it=i&&d(function(){return C(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a!=7})?function(st,Qe,ve){var Bt=Ne(J,Qe);Bt&&delete J[Qe],we(st,Qe,ve),Bt&&st!==J&&we(J,Qe,Bt)}:we,Fe=function(Qe,ve){var Bt=ce[Qe]=C(le[X]);return We(Bt,{type:Ie,tag:Qe,description:ve}),i||(Bt.description=ve),Bt},ft=function(Qe,ve,Bt){Qe===J&&ft(ne,ve,Bt),A(Qe);var qt=w(ve);return A(Bt),h(ce,qt)?(Bt.enumerable?(h(Qe,me)&&Qe[me][qt]&&(Qe[me][qt]=!1),Bt=C(Bt,{enumerable:T(0,!1)})):(h(Qe,me)||we(Qe,me,T(1,{})),Qe[me][qt]=!0),it(Qe,qt,Bt)):we(Qe,qt,Bt)},At=function(Qe,ve){A(Qe);var Bt=b(ve),qt=O(Bt).concat(pe(Bt));return Le(qt,function(ct){(!i||St.call(Bt,ct))&&ft(Qe,ct,Bt[ct])}),Qe},bt=function(Qe,ve){return ve===void 0?C(Qe):At(C(Qe),ve)},St=function(Qe){var ve=w(Qe),Bt=Ee.call(this,ve);return this===J&&h(ce,ve)&&!h(ne,ve)?!1:Bt||!h(this,ve)||!h(ce,ve)||h(this,me)&&this[me][ve]?Bt:!0},Et=function(Qe,ve){var Bt=b(Qe),qt=w(ve);if(Bt===J&&h(ce,qt)&&!h(ne,qt))return;var ct=Ne(Bt,qt);return ct&&h(ce,qt)&&!(h(Bt,me)&&Bt[me][qt])&&(ct.enumerable=!0),ct},je=function(Qe){var ve=De(b(Qe)),Bt=[];return Le(ve,function(qt){!h(ce,qt)&&!h(G,qt)&&Bt.push(qt)}),Bt},pe=function(Qe){var ve=Qe===J,Bt=De(ve?ne:b(Qe)),qt=[];return Le(Bt,function(ct){h(ce,ct)&&(!ve||h(J,ct))&&qt.push(ce[ct])}),qt};if(c||(le=function(){if(this instanceof le)throw TypeError("Symbol is not a constructor");var Qe=!arguments.length||arguments[0]===void 0?void 0:S(arguments[0]),ve=V(Qe),Bt=function qt(ct){this===J&&qt.call(ne,ct),h(this,me)&&h(this[me],ve)&&(this[me][ve]=!1),it(this,ve,T(1,ct))};return i&&Oe&&it(J,ve,{configurable:!0,set:Bt}),Fe(ve,Qe)},j(le[X],"toString",function(){return $(this).tag}),j(le,"withoutSetter",function(st){return Fe(V(st),st)}),P.f=St,B.f=ft,R.f=Et,_.f=M.f=je,k.f=pe,Y.f=function(st){return Fe(Z(st),st)},i&&(we(le[X],"description",{configurable:!0,get:function(){return $(this).description}}),n||j(J,"propertyIsEnumerable",St,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:le}),Le(O(Ve),function(st){Q(st)}),r({target:Ie,stat:!0,forced:!c},{for:function(Qe){var ve=S(Qe);if(h(ee,ve))return ee[ve];var Bt=le(ve);return ee[ve]=Bt,Ae[Bt]=ve,Bt},keyFor:function(Qe){if(!v(Qe))throw TypeError(Qe+" is not a symbol");if(h(Ae,Qe))return Ae[Qe]},useSetter:function(){Oe=!0},useSimple:function(){Oe=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!i},{create:bt,defineProperty:ft,defineProperties:At,getOwnPropertyDescriptor:Et}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:je,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:d(function(){k.f(1)})},{getOwnPropertySymbols:function(Qe){return k.f(x(Qe))}}),de){var ie=!c||d(function(){var st=le();return de([st])!="[null]"||de({a:st})!="{}"||de(Object(st))!="{}"});r({target:"JSON",stat:!0,forced:ie},{stringify:function(Qe,ve,Bt){for(var qt=[Qe],ct=1,Wt;arguments.length>ct;)qt.push(arguments[ct++]);return Wt=ve,!g(ve)&&Qe===void 0||v(Qe)?void 0:(p(ve)||(ve=function(Fr,er){if(typeof Wt=="function"&&(er=Wt.call(this,Fr,er)),!v(er))return er}),qt[1]=ve,de.apply(null,qt))}})}le[X][q]||U(le[X],q,le[X].valueOf),oe(le,Ie),G[me]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/dom-iterables.js"),e=a("./node_modules/core-js/internals/array-for-each.js"),n=a("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var i in u){var c=r[i],d=c&&c.prototype;if(d&&d.forEach!==e)try{n(d,"forEach",e)}catch(h){d.forEach=e}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(t,l,a){var r=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/dom-iterables.js"),e=a("./node_modules/core-js/modules/es.array.iterator.js"),n=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),i=a("./node_modules/core-js/internals/well-known-symbol.js"),c=i("iterator"),d=i("toStringTag"),h=e.values;for(var p in u){var g=r[p],v=g&&g.prototype;if(v){if(v[c]!==h)try{n(v,c,h)}catch(x){v[c]=h}if(v[d]||n(v,d,p),u[p]){for(var A in e)if(v[A]!==e[A])try{n(v,A,e[A])}catch(x){v[A]=e[A]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(t){/*!
|
|
|
* @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(l,a){t.exports=a()})(this,function(){"use strict";function l(Ke){var Oe=typeof Ke;return Ke!==null&&(Oe==="object"||Oe==="function")}function a(Ke){return typeof Ke=="function"}var r=void 0;Array.isArray?r=Array.isArray:r=function(Oe){return Object.prototype.toString.call(Oe)==="[object Array]"};var u=r,e=0,n=void 0,i=void 0,c=function(Oe,it){O[e]=Oe,O[e+1]=it,e+=2,e===2&&(i?i(_):k())};function d(Ke){i=Ke}function h(Ke){c=Ke}var p=typeof window!="undefined"?window:void 0,g=p||{},v=g.MutationObserver||g.WebKitMutationObserver,A=typeof self=="undefined"&&typeof N!="undefined"&&{}.toString.call(N)==="[object process]",x=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function b(){return function(){return N.nextTick(_)}}function w(){return typeof n!="undefined"?function(){n(_)}:C()}function S(){var Ke=0,Oe=new v(_),it=document.createTextNode("");return Oe.observe(it,{characterData:!0}),function(){it.data=Ke=++Ke%2}}function T(){var Ke=new MessageChannel;return Ke.port1.onmessage=_,function(){return Ke.port2.postMessage(0)}}function C(){var Ke=setTimeout;return function(){return Ke(_,1)}}var O=new Array(1e3);function _(){for(var Ke=0;Ke<e;Ke+=2){var Oe=O[Ke],it=O[Ke+1];Oe(it),O[Ke]=void 0,O[Ke+1]=void 0}e=0}function M(){try{var Ke=Function("return this")().require("vertx");return n=Ke.runOnLoop||Ke.runOnContext,w()}catch(Oe){return C()}}var k=void 0;A?k=b():v?k=S():x?k=T():p===void 0&&!0?k=M():k=C();function R(Ke,Oe){var it=this,Fe=new this.constructor(U);Fe[P]===void 0&&de(Fe);var ft=it._state;if(ft){var At=arguments[ft-1];c(function(){return We(ft,Fe,At,it._result)})}else X(it,Fe,Ke,Oe);return Fe}function B(Ke){var Oe=this;if(Ke&&typeof Ke=="object"&&Ke.constructor===Oe)return Ke;var it=new Oe(U);return ue(it,Ke),it}var P=Math.random().toString(36).substring(2);function U(){}var j=void 0,H=1,W=2;function G(){return new TypeError("You cannot resolve a promise with itself")}function V(){return new TypeError("A promises callback cannot return that same promise.")}function Z(Ke,Oe,it,Fe){try{Ke.call(Oe,it,Fe)}catch(ft){return ft}}function Y(Ke,Oe,it){c(function(Fe){var ft=!1,At=Z(it,Oe,function(bt){if(ft)return;ft=!0,Oe!==bt?ue(Fe,bt):me(Fe,bt)},function(bt){if(ft)return;ft=!0,Ie(Fe,bt)},"Settle: "+(Fe._label||" unknown promise"));!ft&&At&&(ft=!0,Ie(Fe,At))},Ke)}function Q(Ke,Oe){Oe._state===H?me(Ke,Oe._result):Oe._state===W?Ie(Ke,Oe._result):X(Oe,void 0,function(it){return ue(Ke,it)},function(it){return Ie(Ke,it)})}function oe(Ke,Oe,it){Oe.constructor===Ke.constructor&&it===R&&Oe.constructor.resolve===B?Q(Ke,Oe):it===void 0?me(Ke,Oe):a(it)?Y(Ke,Oe,it):me(Ke,Oe)}function ue(Ke,Oe){if(Ke===Oe)Ie(Ke,G());else if(l(Oe)){var it=void 0;try{it=Oe.then}catch(Fe){Ie(Ke,Fe);return}oe(Ke,Oe,it)}else me(Ke,Oe)}function Le(Ke){Ke._onerror&&Ke._onerror(Ke._result),q(Ke)}function me(Ke,Oe){if(Ke._state!==j)return;Ke._result=Oe,Ke._state=H,Ke._subscribers.length!==0&&c(q,Ke)}function Ie(Ke,Oe){if(Ke._state!==j)return;Ke._state=W,Ke._result=Oe,c(Le,Ke)}function X(Ke,Oe,it,Fe){var ft=Ke._subscribers,At=ft.length;Ke._onerror=null,ft[At]=Oe,ft[At+H]=it,ft[At+W]=Fe,At===0&&Ke._state&&c(q,Ke)}function q(Ke){var Oe=Ke._subscribers,it=Ke._state;if(Oe.length===0)return;for(var Fe=void 0,ft=void 0,At=Ke._result,bt=0;bt<Oe.length;bt+=3)Fe=Oe[bt],ft=Oe[bt+it],Fe?We(it,Fe,ft,At):ft(At);Ke._subscribers.length=0}function We(Ke,Oe,it,Fe){var ft=a(it),At=void 0,bt=void 0,St=!0;if(ft){try{At=it(Fe)}catch(Et){St=!1,bt=Et}if(Oe===At){Ie(Oe,V());return}}else At=Fe;Oe._state!==j||(ft&&St?ue(Oe,At):St===!1?Ie(Oe,bt):Ke===H?me(Oe,At):Ke===W&&Ie(Oe,At))}function $(Ke,Oe){try{Oe(function(Fe){ue(Ke,Fe)},function(Fe){Ie(Ke,Fe)})}catch(it){Ie(Ke,it)}}var J=0;function le(){return J++}function de(Ke){Ke[P]=J++,Ke._state=void 0,Ke._result=void 0,Ke._subscribers=[]}function Ne(){return new Error("Array Methods must be provided an Array")}var we=function(){function Ke(Oe,it){this._instanceConstructor=Oe,this.promise=new Oe(U),this.promise[P]||de(this.promise),u(it)?(this.length=it.length,this._remaining=it.length,this._result=new Array(this.length),this.length===0?me(this.promise,this._result):(this.length=this.length||0,this._enumerate(it),this._remaining===0&&me(this.promise,this._result))):Ie(this.promise,Ne())}return Ke.prototype._enumerate=function(it){for(var Fe=0;this._state===j&&Fe<it.length;Fe++)this._eachEntry(it[Fe],Fe)},Ke.prototype._eachEntry=function(it,Fe){var ft=this._instanceConstructor,At=ft.resolve;if(At===B){var bt=void 0,St=void 0,Et=!1;try{bt=it.then}catch(pe){Et=!0,St=pe}if(bt===R&&it._state!==j)this._settledAt(it._state,Fe,it._result);else if(typeof bt!="function")this._remaining--,this._result[Fe]=it;else if(ft===Ae){var je=new ft(U);Et?Ie(je,St):oe(je,it,bt),this._willSettleAt(je,Fe)}else this._willSettleAt(new ft(function(pe){return pe(it)}),Fe)}else this._willSettleAt(At(it),Fe)},Ke.prototype._settledAt=function(it,Fe,ft){var At=this.promise;At._state===j&&(this._remaining--,it===W?Ie(At,ft):this._result[Fe]=ft),this._remaining===0&&me(At,this._result)},Ke.prototype._willSettleAt=function(it,Fe){var ft=this;X(it,void 0,function(At){return ft._settledAt(H,Fe,At)},function(At){return ft._settledAt(W,Fe,At)})},Ke}();function De(Ke){return new we(this,Ke).promise}function Ee(Ke){var Oe=this;return u(Ke)?new Oe(function(it,Fe){for(var ft=Ke.length,At=0;At<ft;At++)Oe.resolve(Ke[At]).then(it,Fe)}):new Oe(function(it,Fe){return Fe(new TypeError("You must pass an array to race."))})}function ce(Ke){var Oe=this,it=new Oe(U);return Ie(it,Ke),it}function ne(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ee(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Ae=function(){function Ke(Oe){this[P]=le(),this._result=this._state=void 0,this._subscribers=[],U!==Oe&&(typeof Oe!="function"&&ne(),this instanceof Ke?$(this,Oe):ee())}return Ke.prototype.catch=function(it){return this.then(null,it)},Ke.prototype.finally=function(it){var Fe=this,ft=Fe.constructor;return a(it)?Fe.then(function(At){return ft.resolve(it()).then(function(){return At})},function(At){return ft.resolve(it()).then(function(){throw At})}):Fe.then(it,it)},Ke}();Ae.prototype.then=R,Ae.all=De,Ae.race=Ee,Ae.resolve=B,Ae.reject=ce,Ae._setScheduler=d,Ae._setAsap=h,Ae._asap=c;function Ve(){var Ke=void 0;if(typeof D!="undefined")Ke=D;else if(typeof self!="undefined")Ke=self;else try{Ke=Function("return this")()}catch(Fe){throw new Error("polyfill failed because global object is unavailable in this environment")}var Oe=Ke.Promise;if(Oe){var it=null;try{it=Object.prototype.toString.call(Oe.resolve())}catch(Fe){}if(it==="[object Promise]"&&!Oe.cast)return}Ke.Promise=Ae}return Ae.polyfill=Ve,Ae.Promise=Ae,Ae})},html2canvas:function(t){"use strict";t.exports=E},jspdf:function(t){"use strict";t.exports=L}},o={};function m(s){var t=o[s];if(t!==void 0)return t.exports;var l=o[s]={exports:{}};return I[s].call(l.exports,l,l.exports,m),l.exports}!function(){m.n=function(s){var t=s&&s.__esModule?function(){return s.default}:function(){return s};return m.d(t,{a:t}),t}}(),!function(){m.d=function(s,t){for(var l in t)m.o(t,l)&&!m.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:t[l]})}}(),!function(){m.o=function(s,t){return Object.prototype.hasOwnProperty.call(s,t)}}(),!function(){m.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var f={};return!function(){"use strict";/*!**********************!*\
|
|
|
!*** ./src/index.js ***!
|
|
|
\**********************/m.r(f);var s=m("./src/worker.js"),t=m("./src/plugin/jspdf-plugin.js"),l=m("./src/plugin/pagebreaks.js"),a=m("./src/plugin/hyperlinks.js"),r=function u(e,n){var i=new u.Worker(n);return e?i.from(e).save():i};r.Worker=s.default,f.default=r}(),f=f.default,f}()})}).call(this,y("yLpj"),y("Q2Ig"))},"1q3G":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=D;function D(){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(fe,z,y){var D=y("MBQ8"),N=D.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(E){return E.stack=null,N.superApply(this,"getInitialData",arguments)}}),L=N;fe.exports=L},"1u/T":function(fe,z,y){var D=y("ProS"),N={type:"selectDataRange",event:"dataRangeSelected",update:"update"};D.registerAction(N,function(L,E){E.eachComponent({mainType:"visualMap",query:L},function(I){I.setSelected(L.selected)})})},"1uat":function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("MlIO"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.Hasher,I=N.x64,o=I.Word,m=I.WordArray,f=N.algo;function s(){return o.create.apply(o,arguments)}var t=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];(function(){for(var r=0;r<80;r++)l[r]=s()})();var a=f.SHA512=E.extend({_doReset:function(){this._hash=new m.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(u,e){for(var n=this._hash.words,i=n[0],c=n[1],d=n[2],h=n[3],p=n[4],g=n[5],v=n[6],A=n[7],x=i.high,b=i.low,w=c.high,S=c.low,T=d.high,C=d.low,O=h.high,_=h.low,M=p.high,k=p.low,R=g.high,B=g.low,P=v.high,U=v.low,j=A.high,H=A.low,W=x,G=b,V=w,Z=S,Y=T,Q=C,oe=O,ue=_,Le=M,me=k,Ie=R,X=B,q=P,We=U,$=j,J=H,le=0;le<80;le++){var de,Ne,we=l[le];if(le<16)Ne=we.high=u[e+le*2]|0,de=we.low=u[e+le*2+1]|0;else{var De=l[le-15],Ee=De.high,ce=De.low,ne=(Ee>>>1|ce<<31)^(Ee>>>8|ce<<24)^Ee>>>7,ee=(ce>>>1|Ee<<31)^(ce>>>8|Ee<<24)^(ce>>>7|Ee<<25),Ae=l[le-2],Ve=Ae.high,Ke=Ae.low,Oe=(Ve>>>19|Ke<<13)^(Ve<<3|Ke>>>29)^Ve>>>6,it=(Ke>>>19|Ve<<13)^(Ke<<3|Ve>>>29)^(Ke>>>6|Ve<<26),Fe=l[le-7],ft=Fe.high,At=Fe.low,bt=l[le-16],St=bt.high,Et=bt.low;de=ee+At,Ne=ne+ft+(de>>>0<ee>>>0?1:0),de=de+it,Ne=Ne+Oe+(de>>>0<it>>>0?1:0),de=de+Et,Ne=Ne+St+(de>>>0<Et>>>0?1:0),we.high=Ne,we.low=de}var je=Le&Ie^~Le&q,pe=me&X^~me&We,ie=W&V^W&Y^V&Y,st=G&Z^G&Q^Z&Q,Qe=(W>>>28|G<<4)^(W<<30|G>>>2)^(W<<25|G>>>7),ve=(G>>>28|W<<4)^(G<<30|W>>>2)^(G<<25|W>>>7),Bt=(Le>>>14|me<<18)^(Le>>>18|me<<14)^(Le<<23|me>>>9),qt=(me>>>14|Le<<18)^(me>>>18|Le<<14)^(me<<23|Le>>>9),ct=t[le],Wt=ct.high,or=ct.low,Fr=J+qt,er=$+Bt+(Fr>>>0<J>>>0?1:0),Fr=Fr+pe,er=er+je+(Fr>>>0<pe>>>0?1:0),Fr=Fr+or,er=er+Wt+(Fr>>>0<or>>>0?1:0),Fr=Fr+de,er=er+Ne+(Fr>>>0<de>>>0?1:0),nr=ve+st,Ot=Qe+ie+(nr>>>0<ve>>>0?1:0);$=q,J=We,q=Ie,We=X,Ie=Le,X=me,me=ue+Fr|0,Le=oe+er+(me>>>0<ue>>>0?1:0)|0,oe=Y,ue=Q,Y=V,Q=Z,V=W,Z=G,G=Fr+nr|0,W=er+Ot+(G>>>0<Fr>>>0?1:0)|0}b=i.low=b+G,i.high=x+W+(b>>>0<G>>>0?1:0),S=c.low=S+Z,c.high=w+V+(S>>>0<Z>>>0?1:0),C=d.low=C+Q,d.high=T+Y+(C>>>0<Q>>>0?1:0),_=h.low=_+ue,h.high=O+oe+(_>>>0<ue>>>0?1:0),k=p.low=k+me,p.high=M+Le+(k>>>0<me>>>0?1:0),B=g.low=B+X,g.high=R+Ie+(B>>>0<X>>>0?1:0),U=v.low=U+We,v.high=P+q+(U>>>0<We>>>0?1:0),H=A.low=H+J,A.high=j+$+(H>>>0<J>>>0?1:0)},_doFinalize:function(){var u=this._data,e=u.words,n=this._nDataBytes*8,i=u.sigBytes*8;e[i>>>5]|=128<<24-i%32,e[(i+128>>>10<<5)+30]=Math.floor(n/4294967296),e[(i+128>>>10<<5)+31]=n,u.sigBytes=e.length*4,this._process();var c=this._hash.toX32();return c},clone:function(){var u=E.clone.call(this);return u._hash=this._hash.clone(),u},blockSize:1024/32});N.SHA512=E._createHelper(a),N.HmacSHA512=E._createHmacHelper(a)}(),D.SHA512})},"1vzs":function(fe,z,y){"use strict";y.d(z,"a",function(){return e});var D=y("q1tI"),N=y.n(D),L=y("HQEm"),E=y.n(L),I=y("gZBC"),o=y.n(I),m=y("NAnI"),f=y.n(m),s=y("V/uB"),t=y.n(s),l=y("kbBi"),a=y.n(l),r=y("w6Tc"),u=y.n(r);function e(n){var i=n.suffixIcon,c=n.clearIcon,d=n.menuItemSelectedIcon,h=n.removeIcon,p=n.loading,g=n.multiple,v=n.prefixCls,A=c;c||(A=D.createElement(a.a,null));var x=null;if(i!==void 0)x=i;else if(p)x=D.createElement(o.a,{spin:!0});else{var b="".concat(v,"-suffix");x=function(C){var O=C.open,_=C.showSearch;return O&&_?D.createElement(u.a,{className:b}):D.createElement(E.a,{className:b})}}var w=null;d!==void 0?w=d:g?w=D.createElement(f.a,null):w=null;var S=null;return h!==void 0?S=h:S=D.createElement(t.a,null),{clearIcon:A,suffixIcon:x,itemIcon:w,removeIcon:S}}},"1xaR":function(fe,z,y){var D=y("ProS"),N=y("bYtY");y("qgGe"),y("NA0q"),y("RPvy");var L=y("mOdp"),E=y("y3NT"),I=y("0/Rx");D.registerVisual(N.curry(L,"sunburst")),D.registerLayout(N.curry(E,"sunburst")),D.registerProcessor(N.curry(I,"sunburst"))},"24YM":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.SensorTabIndex=z.SensorClassName=z.SizeSensorId=void 0;var D="size-sensor-id";z.SizeSensorId=D;var N="size-sensor-object";z.SensorClassName=N;var L="-1";z.SensorTabIndex=L},"2548":function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("6GrX"),E=y("IUWy"),I=y("IwbS"),o=y("Qxkt"),m=y("gPAo"),f=y("eRkO"),s=D.extendComponentView({type:"toolbox",render:function(l,a,r,u){var e=this.group;if(e.removeAll(),!l.get("show"))return;var n=+l.get("itemSize"),i=l.get("feature")||{},c=this._features||(this._features={}),d=[];N.each(i,function(g,v){d.push(v)}),new m(this._featureNames||[],d).add(h).update(h).remove(N.curry(h,null)).execute(),this._featureNames=d;function h(g,v){var A=d[g],x=d[v],b=i[A],w=new o(b,l,l.ecModel),S;if(u&&u.newTitle!=null&&u.featureName===A&&(b.title=u.newTitle),A&&!x){if(t(A))S={model:w,onclick:w.option.onclick,featureName:A};else{var T=E.get(A);if(!T)return;S=new T(w,a,r)}c[A]=S}else{if(S=c[x],!S)return;S.model=w,S.ecModel=a,S.api=r}if(!A&&x){S.dispose&&S.dispose(a,r);return}if(!w.get("show")||S.unusable){S.remove&&S.remove(a,r);return}p(w,S,A),w.setIconStatus=function(C,O){var _=this.option,M=this.iconPaths;_.iconStatus=_.iconStatus||{},_.iconStatus[C]=O,M[C]&&M[C].trigger(O)},S.render&&S.render(w,a,r,u)}function p(g,v,A){var x=g.getModel("iconStyle"),b=g.getModel("emphasis.iconStyle"),w=v.getIcons?v.getIcons():g.get("icon"),S=g.get("title")||{};if(typeof w=="string"){var T=w,C=S;w={},S={},w[A]=T,S[A]=C}var O=g.iconPaths={};N.each(w,function(_,M){var k=I.createIcon(_,{},{x:-n/2,y:-n/2,width:n,height:n});k.setStyle(x.getItemStyle()),k.hoverStyle=b.getItemStyle(),k.setStyle({text:S[M],textAlign:b.get("textAlign"),textBorderRadius:b.get("textBorderRadius"),textPadding:b.get("textPadding"),textFill:null});var R=l.getModel("tooltip");R&&R.get("show")&&k.attr("tooltip",N.extend({content:S[M],formatter:R.get("formatter",!0)||function(){return S[M]},formatterParams:{componentType:"toolbox",name:M,title:S[M],$vars:["name","title"]},position:R.get("position",!0)||"bottom"},R.option)),I.setHoverStyle(k),l.get("showTitle")&&(k.__title=S[M],k.on("mouseover",function(){var B=b.getItemStyle(),P=l.get("orient")==="vertical"?l.get("right")==null?"right":"left":l.get("bottom")==null?"bottom":"top";k.setStyle({textFill:b.get("textFill")||B.fill||B.stroke||"#000",textBackgroundColor:b.get("textBackgroundColor"),textPosition:b.get("textPosition")||P})}).on("mouseout",function(){k.setStyle({textFill:null,textBackgroundColor:null})})),k.trigger(g.get("iconStatus."+M)||"normal"),e.add(k),k.on("click",N.bind(v.onclick,v,a,r,M)),O[M]=k})}f.layout(e,l,r),e.add(f.makeBackground(e.getBoundingRect(),l)),e.eachChild(function(g){var v=g.__title,A=g.hoverStyle;if(A&&v){var x=L.getBoundingRect(v,L.makeFont(A)),b=g.position[0]+e.position[0],w=g.position[1]+e.position[1]+n,S=!1;w+x.height>r.getHeight()&&(A.textPosition="top",S=!0);var T=S?-5-x.height:n+8;b+x.width/2>r.getWidth()?(A.textPosition=["100%",T],A.textAlign="right"):b-x.width/2<0&&(A.textPosition=[0,T],A.textAlign="left")}})},updateView:function(l,a,r,u){N.each(this._features,function(e){e.updateView&&e.updateView(e.model,a,r,u)})},remove:function(l,a){N.each(this._features,function(r){r.remove&&r.remove(l,a)}),this.group.removeAll()},dispose:function(l,a){N.each(this._features,function(r){r.dispose&&r.dispose(l,a)})}});function t(l){return l.indexOf("my")===0}fe.exports=s},"2B6p":function(fe,z){function y(D,N,L){var E=D.getZoom(),I=D.getCenter(),o=N.zoom,m=D.dataToPoint(I);if(N.dx!=null&&N.dy!=null){m[0]-=N.dx,m[1]-=N.dy;var I=D.pointToData(m);D.setCenter(I)}if(o!=null){if(L){var f=L.min||0,s=L.max||Infinity;o=Math.max(Math.min(E*o,s),f)/E}D.scale[0]*=o,D.scale[1]*=o;var t=D.position,l=(N.originX-t[0])*(o-1),a=(N.originY-t[1])*(o-1);t[0]-=l,t[1]-=a,D.updateTransform();var I=D.pointToData(m);D.setCenter(I),D.setZoom(o*E)}return{center:D.getCenter(),zoom:D.getZoom()}}z.updateCenterAndZoom=y},"2BaD":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="CloseCircleOutlined";var m=z.a=N.forwardRef(o)},"2DNl":function(fe,z,y){var D=y("IMiH"),N=y("loD1"),L=y("59Ip"),E=y("aKvl"),I=y("n1HI"),o=y("hX1E"),m=o.normalizeRadian,f=y("Sj9i"),s=y("hyiK"),t=D.CMD,l=Math.PI*2,a=1e-4;function r(v,A){return Math.abs(v-A)<a}var u=[-1,-1,-1],e=[-1,-1];function n(){var v=e[0];e[0]=e[1],e[1]=v}function i(v,A,x,b,w,S,T,C,O,_){if(_>A&&_>b&&_>S&&_>C||_<A&&_<b&&_<S&&_<C)return 0;var M=f.cubicRootAt(A,b,S,C,_,u);if(M===0)return 0;for(var k=0,R=-1,B,P,U=0;U<M;U++){var j=u[U],H=j===0||j===1?.5:1,W=f.cubicAt(v,x,w,T,j);if(W<O)continue;R<0&&(R=f.cubicExtrema(A,b,S,C,e),e[1]<e[0]&&R>1&&n(),B=f.cubicAt(A,b,S,C,e[0]),R>1&&(P=f.cubicAt(A,b,S,C,e[1]))),R===2?j<e[0]?k+=B<A?H:-H:j<e[1]?k+=P<B?H:-H:k+=C<P?H:-H:j<e[0]?k+=B<A?H:-H:k+=C<B?H:-H}return k}function c(v,A,x,b,w,S,T,C){if(C>A&&C>b&&C>S||C<A&&C<b&&C<S)return 0;var O=f.quadraticRootAt(A,b,S,C,u);if(O===0)return 0;var _=f.quadraticExtremum(A,b,S);if(_>=0&&_<=1){for(var M=0,k=f.quadraticAt(A,b,S,_),R=0;R<O;R++){var B=u[R]===0||u[R]===1?.5:1,P=f.quadraticAt(v,x,w,u[R]);if(P<T)continue;u[R]<_?M+=k<A?B:-B:M+=S<k?B:-B}return M}else{var B=u[0]===0||u[0]===1?.5:1,P=f.quadraticAt(v,x,w,u[0]);return P<T?0:S<A?B:-B}}function d(v,A,x,b,w,S,T,C){if(C-=A,C>x||C<-x)return 0;var O=Math.sqrt(x*x-C*C);u[0]=-O,u[1]=O;var _=Math.abs(b-w);if(_<1e-4)return 0;if(_%l<1e-4){b=0,w=l;var M=S?1:-1;return T>=u[0]+v&&T<=u[1]+v?M:0}if(S){var O=b;b=m(w),w=m(O)}else b=m(b),w=m(w);b>w&&(w+=l);for(var k=0,R=0;R<2;R++){var B=u[R];if(B+v>T){var P=Math.atan2(C,B),M=S?1:-1;P<0&&(P=l+P),(P>=b&&P<=w||P+l>=b&&P+l<=w)&&(P>Math.PI/2&&P<Math.PI*1.5&&(M=-M),k+=M)}}return k}function h(v,A,x,b,w){for(var S=0,T=0,C=0,O=0,_=0,M=0;M<v.length;){var k=v[M++];k===t.M&&M>1&&(x||(S+=s(T,C,O,_,b,w))),M===1&&(T=v[M],C=v[M+1],O=T,_=C);switch(k){case t.M:O=v[M++],_=v[M++],T=O,C=_;break;case t.L:if(x){if(N.containStroke(T,C,v[M],v[M+1],A,b,w))return!0}else S+=s(T,C,v[M],v[M+1],b,w)||0;T=v[M++],C=v[M++];break;case t.C:if(x){if(L.containStroke(T,C,v[M++],v[M++],v[M++],v[M++],v[M],v[M+1],A,b,w))return!0}else S+=i(T,C,v[M++],v[M++],v[M++],v[M++],v[M],v[M+1],b,w)||0;T=v[M++],C=v[M++];break;case t.Q:if(x){if(E.containStroke(T,C,v[M++],v[M++],v[M],v[M+1],A,b,w))return!0}else S+=c(T,C,v[M++],v[M++],v[M],v[M+1],b,w)||0;T=v[M++],C=v[M++];break;case t.A:var R=v[M++],B=v[M++],P=v[M++],U=v[M++],j=v[M++],H=v[M++];M+=1;var W=1-v[M++],G=Math.cos(j)*P+R,V=Math.sin(j)*U+B;M>1?S+=s(T,C,G,V,b,w):(O=G,_=V);var Z=(b-R)*U/P+R;if(x){if(I.containStroke(R,B,U,j,j+H,W,A,Z,w))return!0}else S+=d(R,B,U,j,j+H,W,Z,w);T=Math.cos(j+H)*P+R,C=Math.sin(j+H)*U+B;break;case t.R:O=T=v[M++],_=C=v[M++];var Y=v[M++],Q=v[M++],G=O+Y,V=_+Q;if(x){if(N.containStroke(O,_,G,_,A,b,w)||N.containStroke(G,_,G,V,A,b,w)||N.containStroke(G,V,O,V,A,b,w)||N.containStroke(O,V,O,_,A,b,w))return!0}else S+=s(G,_,G,V,b,w),S+=s(O,V,O,_,b,w);break;case t.Z:if(x){if(N.containStroke(T,C,O,_,A,b,w))return!0}else S+=s(T,C,O,_,b,w);T=O,C=_;break}}return!x&&!r(C,_)&&(S+=s(T,C,O,_,b,w)||0),S!==0}function p(v,A,x){return h(v,0,!1,A,x)}function g(v,A,x,b){return h(v,A,!0,x,b)}z.contain=p,z.containStroke=g},"2Qr1":function(fe,z,y){"use strict";y.d(z,"d",function(){return s}),y.d(z,"c",function(){return l}),y.d(z,"e",function(){return a}),y.d(z,"b",function(){return e}),y.d(z,"f",function(){return n}),y.d(z,"g",function(){return i}),y.d(z,"a",function(){return c});var D=y("rePB"),N=y("KQm4"),L=y("T5bk"),E=y("U8pU"),I=y("VTBJ"),o=y("Kwbf"),m=y("WKfj");function f(d,h){var p=d.key,g;return"value"in d&&(g=d.value),p!=null?p:g!==void 0?g:"rc-index-key-".concat(h)}function s(d){var h=[];function p(g,v){g.forEach(function(A){v||!("options"in A)?h.push({key:f(A,h.length),groupOption:v,data:A}):(h.push({key:f(A,h.length),group:!0,data:A}),p(A.options,!0))})}return p(d,!1),h}function t(d){var h=Object(I.a)({},d);return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(o.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),h}}),h}function l(d,h){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=p.prevValueOptions,v=g===void 0?[]:g,A=new Map;return h.forEach(function(x){if(!x.group){var b=x.data;A.set(b.value,b)}}),d.map(function(x){var b=A.get(x);return b||(b=Object(I.a)({},v.find(function(w){return w._INTERNAL_OPTION_VALUE_===x}))),t(b)})}var a=function(h,p){var g=p.options,v=p.prevValue,A=p.labelInValue,x=p.optionLabelProp,b=l([h],g)[0],w={value:h},S,T=Object(m.d)(v);return A&&(S=T.find(function(C){return Object(E.a)(C)==="object"&&"value"in C?C.value===h:C.key===h})),S&&Object(E.a)(S)==="object"&&"label"in S?(w.label=S.label,b&&typeof S.label=="string"&&typeof b[x]=="string"&&S.label.trim()!==b[x].trim()&&Object(o.a)(!1,"`label` of `value` is not same as `label` in Select options.")):b&&x in b?w.label=b[x]:w.label=h,w.key=w.value,w};function r(d){return Object(m.d)(d).join("")}function u(d){return function(h,p){var g=h.toLowerCase();if("options"in p)return r(p.label).toLowerCase().includes(g);var v=p[d],A=r(v).toLowerCase();return A.includes(g)}}function e(d,h,p){var g=p.optionFilterProp,v=p.filterOption,A=[],x;return v===!1?h:(typeof v=="function"?x=v:x=u(g),h.forEach(function(b){if("options"in b){var w=x(d,b);if(w)A.push(b);else{var S=b.options.filter(function(T){return x(d,T)});S.length&&A.push(Object(I.a)(Object(I.a)({},b),{},{options:S}))}return}x(d,t(b))&&A.push(b)}),A)}function n(d,h){if(!h||!h.length)return null;var p=!1;function g(A,x){var b=Object(L.a)(x),w=b[0],S=b.slice(1);if(!w)return[A];var T=A.split(w);return p=p||T.length>1,T.reduce(function(C,O){return[].concat(Object(N.a)(C),Object(N.a)(g(O,S)))},[]).filter(function(C){return C})}var v=g(d,h);return p?v:null}function i(d,h){var p=l([d],h)[0];return p.disabled}function c(d,h,p,g){var v=Object(m.d)(h).slice().sort(),A=Object(N.a)(d),x=new Set;return d.forEach(function(b){b.options?b.options.forEach(function(w){x.add(w.value)}):x.add(b.value)}),v.forEach(function(b){var w=g?b.value:b;if(!x.has(w)){var S;A.push(g?(S={},Object(D.a)(S,p,b.label),Object(D.a)(S,"value",w),S):{value:w})}}),A}},"2dDv":function(fe,z,y){var D=y("bYtY"),N=y("Fofx"),L=y("+TT/"),E=y("aX7z"),I=y("D1WM"),o=y("IwbS"),m=y("OELB"),f=y("72pK"),s=D.each,t=Math.min,l=Math.max,a=Math.floor,r=Math.ceil,u=m.round,e=Math.PI;function n(p,g,v){this._axesMap=D.createHashMap(),this._axesLayout={},this.dimensions=p.dimensions,this._rect,this._model=p,this._init(p,g,v)}n.prototype={type:"parallel",constructor:n,_init:function(p,g,v){var A=p.dimensions,x=p.parallelAxisIndex;s(A,function(b,w){var S=x[w],T=g.getComponent("parallelAxis",S),C=this._axesMap.set(b,new I(b,E.createScaleByModel(T),[0,0],T.get("type"),S)),O=C.type==="category";C.onBand=O&&T.get("boundaryGap"),C.inverse=T.get("inverse"),T.axis=C,C.model=T,C.coordinateSystem=T.coordinateSystem=this},this)},update:function(p,g){this._updateAxesFromSeries(this._model,p)},containPoint:function(p){var g=this._makeLayoutInfo(),v=g.axisBase,A=g.layoutBase,x=g.pixelDimIndex,b=p[1-x],w=p[x];return b>=v&&b<=v+g.axisLength&&w>=A&&w<=A+g.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(p,g){g.eachSeries(function(v){if(!p.contains(v,g))return;var A=v.getData();s(this.dimensions,function(x){var b=this._axesMap.get(x);b.scale.unionExtentFromData(A,A.mapDimension(x)),E.niceScaleExtent(b.scale,b.model)},this)},this)},resize:function(p,g){this._rect=L.getLayoutRect(p.getBoxLayoutParams(),{width:g.getWidth(),height:g.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var p=this._model,g=this._rect,v=["x","y"],A=["width","height"],x=p.get("layout"),b=x==="horizontal"?0:1,w=g[A[b]],S=[0,w],T=this.dimensions.length,C=i(p.get("axisExpandWidth"),S),O=i(p.get("axisExpandCount")||0,[0,T]),_=p.get("axisExpandable")&&T>3&&T>O&&O>1&&C>0&&w>0,M=p.get("axisExpandWindow"),k;if(M)k=i(M[1]-M[0],S),M[1]=M[0]+k;else{k=i(C*(O-1),S);var R=p.get("axisExpandCenter")||a(T/2);M=[C*R-k/2],M[1]=M[0]+k}var B=(w-k)/(T-O);B<3&&(B=0);var P=[a(u(M[0]/C,1))+1,r(u(M[1]/C,1))-1],U=B/C*M[0];return{layout:x,pixelDimIndex:b,layoutBase:g[v[b]],layoutLength:w,axisBase:g[v[1-b]],axisLength:g[A[1-b]],axisExpandable:_,axisExpandWidth:C,axisCollapseWidth:B,axisExpandWindow:M,axisCount:T,winInnerIndices:P,axisExpandWindow0Pos:U}},_layoutAxes:function(){var p=this._rect,g=this._axesMap,v=this.dimensions,A=this._makeLayoutInfo(),x=A.layout;g.each(function(b){var w=[0,A.axisLength],S=b.inverse?1:0;b.setExtent(w[S],w[1-S])}),s(v,function(b,w){var S=(A.axisExpandable?d:c)(w,A),T={horizontal:{x:S.position,y:A.axisLength},vertical:{x:0,y:S.position}},C={horizontal:e/2,vertical:0},O=[T[x].x+p.x,T[x].y+p.y],_=C[x],M=N.create();N.rotate(M,M,_),N.translate(M,M,O),this._axesLayout[b]={position:O,rotation:_,transform:M,axisNameAvailableWidth:S.axisNameAvailableWidth,axisLabelShow:S.axisLabelShow,nameTruncateMaxWidth:S.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(p){return this._axesMap.get(p)},dataToPoint:function(p,g){return this.axisCoordToPoint(this._axesMap.get(g).dataToCoord(p),g)},eachActiveState:function(p,g,v,A){v==null&&(v=0),A==null&&(A=p.count());var x=this._axesMap,b=this.dimensions,w=[],S=[];D.each(b,function(B){w.push(p.mapDimension(B)),S.push(x.get(B).model)});for(var T=this.hasAxisBrushed(),C=v;C<A;C++){var O;if(!T)O="normal";else{O="active";for(var _=p.getValues(w,C),M=0,k=b.length;M<k;M++){var R=S[M].getActiveState(_[M]);if(R==="inactive"){O="inactive";break}}}g(O,C)}},hasAxisBrushed:function(){for(var p=this.dimensions,g=this._axesMap,v=!1,A=0,x=p.length;A<x;A++)g.get(p[A]).model.getActiveState()!=="normal"&&(v=!0);return v},axisCoordToPoint:function(p,g){var v=this._axesLayout[g];return o.applyTransform([p,0],v.transform)},getAxisLayout:function(p){return D.clone(this._axesLayout[p])},getSlidedAxisExpandWindow:function(p){var g=this._makeLayoutInfo(),v=g.pixelDimIndex,A=g.axisExpandWindow.slice(),x=A[1]-A[0],b=[0,g.axisExpandWidth*(g.axisCount-1)];if(!this.containPoint(p))return{behavior:"none",axisExpandWindow:A};var w=p[v]-g.layoutBase-g.axisExpandWindow0Pos,S,T="slide",C=g.axisCollapseWidth,O=this._model.get("axisExpandSlideTriggerArea"),_=O[0]!=null;if(C)_&&C&&w<x*O[0]?(T="jump",S=w-x*O[2]):_&&C&&w>x*(1-O[0])?(T="jump",S=w-x*(1-O[2])):(S=w-x*O[1])>=0&&(S=w-x*(1-O[1]))<=0&&(S=0),S*=g.axisExpandWidth/C,S?f(S,A,b,"all"):T="none";else{var x=A[1]-A[0],M=b[1]*w/x;A=[l(0,M-x/2)],A[1]=t(b[1],A[0]+x),A[0]=A[1]-x}return{axisExpandWindow:A,behavior:T}}};function i(p,g){return t(l(p,g[0]),g[1])}function c(p,g){var v=g.layoutLength/(g.axisCount-1);return{position:v*p,axisNameAvailableWidth:v,axisLabelShow:!0}}function d(p,g){var v=g.layoutLength,A=g.axisExpandWidth,x=g.axisCount,b=g.axisCollapseWidth,w=g.winInnerIndices,S,T=b,C=!1,O;return p<w[0]?(S=p*b,O=b):p<=w[1]?(S=g.axisExpandWindow0Pos+p*A-g.axisExpandWindow[0],T=A,C=!0):(S=v-(x-1-p)*b,O=b),{position:S,axisNameAvailableWidth:T,axisLabelShow:C,nameTruncateMaxWidth:O}}var h=n;fe.exports=h},"2fGM":function(fe,z,y){var D=y("bYtY"),N=y("bLfw"),L=y("nkfE"),E=y("ICMv"),I=N.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});D.merge(I.prototype,E);var o={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function m(f,s){return s.type||(s.data?"category":"value")}L("angle",I,m,o.angle),L("radius",I,m,o.radius)},"2fM7":function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("lwsE"),o=y.n(I),m=y("W8MJ"),f=y.n(m),s=y("7W2i"),t=y.n(s),l=y("LQ03"),a=y.n(l),r=y("q1tI"),u=y("BGR+"),e=y("TSYQ"),n=y.n(e),i=y("1OyB"),c=y("vuIU"),d=y("Ji7U"),h=y("LK+K"),p=y("rePB"),g=y("Ff2n"),v=y("ODXe"),A=y("4IlW"),x=y("bX4T"),b=y("YrtM"),w=y("+nKL"),S=y("8OUc"),T=function(le,de){var Ne=le.prefixCls,we=le.id,De=le.flattenOptions,Ee=le.childrenAsData,ce=le.values,ne=le.searchValue,ee=le.multiple,Ae=le.defaultActiveFirstOption,Ve=le.height,Ke=le.itemHeight,Oe=le.notFoundContent,it=le.open,Fe=le.menuItemSelectedIcon,ft=le.virtual,At=le.onSelect,bt=le.onToggleOpen,St=le.onActiveValue,Et=le.onScroll,je=le.onMouseEnter,pe="".concat(Ne,"-item"),ie=Object(b.a)(function(){return De},[it,De],function(Ot,lt){return lt[0]&&Ot[1]!==lt[1]}),st=r.useRef(null),Qe=function(lt){lt.preventDefault()},ve=function(lt){st.current&&st.current.scrollTo({index:lt})},Bt=function(lt){for(var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,tr=ie.length,xr=0;xr<tr;xr+=1){var Ar=(lt+xr*qe+tr)%tr,fr=ie[Ar],vn=fr.group,$r=fr.data;if(!vn&&!$r.disabled)return Ar}return-1},qt=r.useState(function(){return Bt(0)}),ct=Object(v.a)(qt,2),Wt=ct[0],or=ct[1],Fr=function(lt){or(lt);var qe=ie[lt];if(!qe){St(null,-1);return}St(qe.data.value,lt)};r.useEffect(function(){Fr(Ae!==!1?Bt(0):-1)},[ie.length,ne]),r.useEffect(function(){var Ot=setTimeout(function(){if(!ee&&it&&ce.size===1){var lt=Array.from(ce)[0],qe=ie.findIndex(function(tr){var xr=tr.data;return xr.value===lt});Fr(qe),ve(qe)}});return function(){return clearTimeout(Ot)}},[it]);var er=function(lt){lt!==void 0&&At(lt,{selected:!ce.has(lt)}),ee||bt(!1)};if(r.useImperativeHandle(de,function(){return{onKeyDown:function(lt){var qe=lt.which;switch(qe){case A.a.UP:case A.a.DOWN:{var tr=0;if(qe===A.a.UP?tr=-1:qe===A.a.DOWN&&(tr=1),tr!==0){var xr=Bt(Wt+tr,tr);ve(xr),Fr(xr)}break}case A.a.ENTER:{var Ar=ie[Wt];Ar&&!Ar.data.disabled?er(Ar.data.value):er(void 0),it&<.preventDefault();break}case A.a.ESC:bt(!1)}},onKeyUp:function(){},scrollTo:function(lt){ve(lt)}}}),ie.length===0)return r.createElement("div",{role:"listbox",id:"".concat(we,"_list"),className:"".concat(pe,"-empty"),onMouseDown:Qe},Oe);function nr(Ot){var lt=ie[Ot];if(!lt)return null;var qe=lt.data||{},tr=qe.value,xr=qe.label,Ar=qe.children,fr=Object(x.a)(qe,!0),vn=Ee?Ar:xr;return lt?r.createElement("div",Object.assign({"aria-label":typeof vn=="string"?vn:null},fr,{key:Ot,role:"option",id:"".concat(we,"_list_").concat(Ot),"aria-selected":ce.has(tr)}),tr):null}return r.createElement(r.Fragment,null,r.createElement("div",{role:"listbox",id:"".concat(we,"_list"),style:{height:0,width:0,overflow:"hidden"}},nr(Wt-1),nr(Wt),nr(Wt+1)),r.createElement(w.a,{itemKey:"key",ref:st,data:ie,height:Ve,itemHeight:Ke,fullHeight:!1,onMouseDown:Qe,onScroll:Et,virtual:ft,onMouseEnter:je},function(Ot,lt){var qe,tr=Ot.group,xr=Ot.groupOption,Ar=Ot.data,fr=Ar.label,vn=Ar.key;if(tr)return r.createElement("div",{className:n()(pe,"".concat(pe,"-group"))},fr!==void 0?fr:vn);var $r=Ar.disabled,Ln=Ar.value,tt=Ar.title,nt=Ar.children,Te=Ar.style,Me=Ar.className,Xe=Object(g.a)(Ar,["disabled","value","title","children","style","className"]),at=ce.has(Ln),zt="".concat(pe,"-option"),kt=n()(pe,zt,Me,(qe={},Object(p.a)(qe,"".concat(zt,"-grouped"),xr),Object(p.a)(qe,"".concat(zt,"-active"),Wt===lt&&!$r),Object(p.a)(qe,"".concat(zt,"-disabled"),$r),Object(p.a)(qe,"".concat(zt,"-selected"),at),qe)),Xt=Ee?nt:fr,Dr=!Fe||typeof Fe=="function"||at;return r.createElement("div",Object.assign({},Xe,{"aria-selected":at,className:kt,title:tt,onMouseMove:function(){if(Wt===lt||$r)return;Fr(lt)},onClick:function(){$r||er(Ln)},style:Te}),r.createElement("div",{className:"".concat(zt,"-content")},Xt||Ln),r.isValidElement(Fe)||at,Dr&&r.createElement(S.a,{className:"".concat(pe,"-option-state"),customizeIcon:Fe,customizeIconProps:{isSelected:at}},at?"\u2713":null))}))},C=r.forwardRef(T);C.displayName="OptionList";var O=C,_=function(){return null};_.isSelectOption=!0;var M=_,k=function(){return null};k.isSelectOptGroup=!0;var R=k,B=y("VTBJ"),P=y("Zm9Q");function U(J){var le=J.key,de=J.props,Ne=de.children,we=de.value,De=Object(g.a)(de,["children","value"]);return Object(B.a)({key:le,value:we!==void 0?we:le,children:Ne},De)}function j(J){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(J).map(function(de,Ne){if(!r.isValidElement(de)||!de.type)return null;var we=de.type.isSelectOptGroup,De=de.key,Ee=de.props,ce=Ee.children,ne=Object(g.a)(Ee,["children"]);return le||!we?U(de):Object(B.a)(Object(B.a)({key:"__RC_SELECT_GRP__".concat(De===null?Ne:De,"__"),label:De},ne),{},{options:j(ce)})}).filter(function(de){return de})}var H=y("2Qr1"),W=y("qNPg"),G=y("U8pU"),V=y("Kwbf"),Z=y("WKfj");function Y(J){var le=J.mode,de=J.options,Ne=J.children,we=J.backfill,De=J.allowClear,Ee=J.placeholder,ce=J.getInputElement,ne=J.showSearch,ee=J.onSearch,Ae=J.defaultOpen,Ve=J.autoFocus,Ke=J.labelInValue,Oe=J.value,it=J.inputValue,Fe=J.optionLabelProp,ft=le==="multiple"||le==="tags",At=ne!==void 0?ne:ft||le==="combobox",bt=de||j(Ne);if(Object(V.a)(le!=="tags"||bt.every(function(pe){return!pe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),le==="tags"||le==="combobox"){var St=bt.some(function(pe){return pe.options?pe.options.some(function(ie){return typeof("value"in ie?ie.value:ie.key)=="number"}):typeof("value"in pe?pe.value:pe.key)=="number"});Object(V.a)(!St,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(V.a)(le!=="combobox"||!Fe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(V.a)(le==="combobox"||!we,"`backfill` only works with `combobox` mode."),Object(V.a)(le==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(V.b)(le!=="combobox"||!ce||!De||!Ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ee&&!At&&le!=="combobox"&&le!=="tags"&&Object(V.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(V.b)(!Ae||Ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Oe!=null){var Et=Object(Z.d)(Oe);Object(V.a)(!Ke||Et.every(function(pe){return Object(G.a)(pe)==="object"&&("key"in pe||"value"in pe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(V.a)(!ft||Array.isArray(Oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ne){var je=null;Object(P.a)(Ne).some(function(pe){if(!r.isValidElement(pe)||!pe.type)return!1;var ie=pe.type;if(ie.isSelectOption)return!1;if(ie.isSelectOptGroup){var st=Object(P.a)(pe.props.children).every(function(Qe){return!r.isValidElement(Qe)||!pe.type||Qe.type.isSelectOption?!0:(je=Qe.type,!1)});return!st}return je=ie,!0}),je&&Object(V.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(je.displayName||je.name||je,"`.")),Object(V.a)(it===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Q=Y,oe=Object(W.a)({prefixCls:"rc-select",components:{optionList:O},convertChildrenToData:j,flattenOptions:H.d,getLabeledValue:H.e,filterOptions:H.b,isValueDisabled:H.g,findValueOption:H.c,warningProps:Q,fillOptionsWithMissingValue:H.a}),ue=function(J){Object(d.a)(de,J);var le=Object(h.a)(de);function de(){var Ne;return Object(i.a)(this,de),Ne=le.apply(this,arguments),Ne.selectRef=r.createRef(),Ne.focus=function(){Ne.selectRef.current.focus()},Ne.blur=function(){Ne.selectRef.current.blur()},Ne}return Object(c.a)(de,[{key:"render",value:function(){return r.createElement(oe,Object.assign({ref:this.selectRef},this.props))}}]),de}(r.Component);ue.Option=M,ue.OptGroup=R;var Le=ue,me=Le,Ie=y("H84U"),X=y("1vzs"),q=y("3Nzz"),We=function(J){t()(de,J);var le=a()(de);function de(){var Ne;return o()(this,de),Ne=le.apply(this,arguments),Ne.selectRef=r.createRef(),Ne.focus=function(){Ne.selectRef.current&&Ne.selectRef.current.focus()},Ne.blur=function(){Ne.selectRef.current&&Ne.selectRef.current.blur()},Ne.getMode=function(){var we=Ne.props.mode;return we==="combobox"?void 0:we===de.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":we},Ne.renderSelect=function(we){var De=we.getPopupContainer,Ee=we.getPrefixCls,ce=we.renderEmpty,ne=we.direction,ee=we.virtual,Ae=we.dropdownMatchSelectWidth,Ve=Ne.props,Ke=Ve.prefixCls,Oe=Ve.notFoundContent,it=Ve.className,Fe=Ve.size,ft=Ve.listHeight,At=ft===void 0?256:ft,bt=Ve.listItemHeight,St=bt===void 0?24:bt,Et=Ve.getPopupContainer,je=Ve.dropdownClassName,pe=Ve.bordered,ie=Ee("select",Ke),st=Ne.getMode(),Qe=st==="multiple"||st==="tags",ve;Oe!==void 0?ve=Oe:st==="combobox"?ve=null:ve=ce("Select");var Bt=Object(X.a)(E()(E()({},Ne.props),{multiple:Qe,prefixCls:ie})),qt=Bt.suffixIcon,ct=Bt.itemIcon,Wt=Bt.removeIcon,or=Bt.clearIcon,Fr=Object(u.default)(Ne.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),er=n()(je,N()({},"".concat(ie,"-dropdown-").concat(ne),ne==="rtl"));return r.createElement(q.b.Consumer,null,function(nr){var Ot,lt=Fe||nr,qe=n()(it,(Ot={},N()(Ot,"".concat(ie,"-lg"),lt==="large"),N()(Ot,"".concat(ie,"-sm"),lt==="small"),N()(Ot,"".concat(ie,"-rtl"),ne==="rtl"),N()(Ot,"".concat(ie,"-borderless"),!pe),Ot));return r.createElement(me,E()({ref:Ne.selectRef,virtual:ee,dropdownMatchSelectWidth:Ae},Fr,{listHeight:At,listItemHeight:St,mode:st,prefixCls:ie,direction:ne,inputIcon:qt,menuItemSelectedIcon:ct,removeIcon:Wt,clearIcon:or,notFoundContent:ve,className:qe,getPopupContainer:Et||De,dropdownClassName:er}))})},Ne}return f()(de,[{key:"render",value:function(){return r.createElement(Ie.a,null,this.renderSelect)}}]),de}(r.Component);We.Option=M,We.OptGroup=R,We.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",We.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var $=z.a=We},"2fw6":function(fe,z,y){var D=y("y+Vt"),N=D.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(E,I,o){o&&E.moveTo(I.cx+I.r,I.cy),E.arc(I.cx,I.cy,I.r,0,Math.PI*2,!0)}});fe.exports=N},"2jpz":function(fe,z,y){"use strict";y.d(z,"a",function(){return c});var D=y("cDf5"),N=y.n(D),L=y("q1tI"),E=y.n(L),I=y("TSYQ"),o=y.n(I),m=y("gZBC"),f=y.n(m),s=y("vk+C"),t=y.n(s),l=y("pG52"),a=y.n(l),r=y("Csr3"),u=y.n(r),e=y("e5VY"),n=y.n(e),i=y("0n0R");function c(d,h,p,g){var v=g.isLeaf,A=g.expanded,x=g.loading;if(x)return L.createElement(f.a,{className:"".concat(d,"-switcher-loading-icon")});var b;if(p&&N()(p)==="object"&&(b=p.showLeafIcon),v)return p?N()(p)==="object"&&!b?L.createElement("span",{className:"".concat(d,"-switcher-leaf-line")}):L.createElement(t.a,{className:"".concat(d,"-switcher-line-icon")}):null;var w="".concat(d,"-switcher-icon");return Object(i.b)(h)?Object(i.a)(h,{className:o()(h.props.className||"",w)}):h||(p?A?L.createElement(a.a,{className:"".concat(d,"-switcher-line-icon")}):L.createElement(u.a,{className:"".concat(d,"-switcher-line-icon")}):L.createElement(n.a,{className:w}))}},"2oIt":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},"2uGb":function(fe,z,y){var D=y("ProS");y("ko1b"),y("s2lz"),y("RBEP");var N=y("kMLO"),L=y("nKiI");D.registerVisual(N),D.registerLayout(L)},"2w7y":function(fe,z,y){var D=y("ProS");y("qMZE"),y("g0SD"),D.registerPreprocessor(function(N){N.markPoint=N.markPoint||{}})},"33Ds":function(fe,z,y){var D=y("ProS"),N=y("b9oc"),L=y("Kagy"),E=y("IUWy"),I=L.toolbox.restore;function o(s){this.model=s}o.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:I.title};var m=o.prototype;m.onclick=function(s,t,l){N.clear(s),t.dispatchAction({type:"restore",from:this.uid})},E.register("restore",o),D.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(s,t){t.resetOption("recreate")});var f=o;fe.exports=f},"34/K":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;function D(I,o){if(!(I instanceof o))throw new TypeError("Cannot call a class as a function")}function N(I,o){for(var m=0;m<o.length;m++){var f=o[m];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(I,f.key,f)}}function L(I,o,m){return o&&N(I.prototype,o),m&&N(I,m),I}var E=function(){function I(){D(this,I),this._lines=0}return L(I,[{key:"decodeRect",value:function(m,f,s,t,l,a,r){this._lines===0&&(this._lines=t);var u=r==8?1:4,e=s*u;if(l.rQwait("RAW",e))return!1;var n=f+(t-this._lines),i=Math.min(this._lines,Math.floor(l.rQlen/e)),c=l.rQ,d=l.rQi;if(r==8){for(var h=s*i,p=new Uint8Array(h*4),g=0;g<h;g++)p[g*4+0]=(c[d+g]>>0&3)*255/3,p[g*4+1]=(c[d+g]>>2&3)*255/3,p[g*4+2]=(c[d+g]>>4&3)*255/3,p[g*4+4]=0;c=p,d=0}return a.blitImage(m,n,s,i,c,d),l.rQskipBytes(i*e),this._lines-=i,!(this._lines>0)}}]),I}();z.default=E},"3690":function(fe,z,y){"use strict";function D(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(l){return typeof l}:D=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},D(s)}Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var N=E(y("Lo0S"));function L(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return L=function(){return s},s}function E(s){if(s&&s.__esModule)return s;if(s===null||D(s)!=="object"&&typeof s!="function")return{default:s};var t=L();if(t&&t.has(s))return t.get(s);var l={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in s)if(Object.prototype.hasOwnProperty.call(s,r)){var u=a?Object.getOwnPropertyDescriptor(s,r):null;u&&(u.get||u.set)?Object.defineProperty(l,r,u):l[r]=s[r]}return l.default=s,t&&t.set(s,l),l}function I(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}function o(s,t){for(var l=0;l<t.length;l++){var a=t[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function m(s,t,l){return t&&o(s.prototype,t),l&&o(s,l),s}var f=function(){function s(){I(this,s),this._tiles=0,this._lastsubencoding=0}return m(s,[{key:"decodeRect",value:function(l,a,r,u,e,n,i){for(this._tiles===0&&(this._tilesX=Math.ceil(r/16),this._tilesY=Math.ceil(u/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var c=1;if(e.rQwait("HEXTILE",c))return!1;var d=e.rQ,h=e.rQi,p=d[h];if(p>30)throw new Error("Illegal hextile subencoding (subencoding: "+p+")");var g=this._totalTiles-this._tiles,v=g%this._tilesX,A=Math.floor(g/this._tilesX),x=l+v*16,b=a+A*16,w=Math.min(16,l+r-x),S=Math.min(16,a+u-b);if(p&1)c+=w*S*4;else if(p&2&&(c+=4),p&4&&(c+=4),p&8){if(c++,e.rQwait("HEXTILE",c))return!1;var T=d[h+c-1];p&16?c+=T*(4+2):c+=T*2}if(e.rQwait("HEXTILE",c))return!1;if(h++,p===0)this._lastsubencoding&1?N.Debug(" Ignoring blank after RAW"):n.fillRect(x,b,w,S,this._background);else if(p&1)n.blitImage(x,b,w,S,d,h),h+=c-1;else{if(p&2&&(this._background=[d[h],d[h+1],d[h+2],d[h+3]],h+=4),p&4&&(this._foreground=[d[h],d[h+1],d[h+2],d[h+3]],h+=4),n.startTile(x,b,w,S,this._background),p&8){var C=d[h];h++;for(var O=0;O<C;O++){var _=void 0;p&16?(_=[d[h],d[h+1],d[h+2],d[h+3]],h+=4):_=this._foreground;var M=d[h];h++;var k=M>>4,R=M&15,B=d[h];h++;var P=(B>>4)+1,U=(B&15)+1;n.subTile(k,R,P,U,_)}}n.finishTile()}e.rQi=h,this._lastsubencoding=p,this._tiles--}return!0}}]),s}();z.default=f},"3C/r":function(fe,z){var y=function(L,E){this.image=L,this.repeat=E,this.type="pattern"};y.prototype.getCanvasPattern=function(N){return N.createPattern(this.image,this.repeat||"repeat")};var D=y;fe.exports=D},"3CBa":function(fe,z,y){var D=y("hydK"),N=D.createElement,L=y("bYtY"),E=y("SUKs"),I=y("y+Vt"),o=y("Dagg"),m=y("dqUG"),f=y("DBLp"),s=y("sW+o"),t=y("n6Mw"),l=y("vKoX"),a=y("P47w"),r=a.path,u=a.image,e=a.text;function n(w){return parseInt(w,10)}function i(w){return w instanceof I?r:w instanceof o?u:w instanceof m?e:r}function c(w,S){return S&&w&&S.parentNode!==w}function d(w,S,T){if(c(w,S)&&T){var C=T.nextSibling;C?w.insertBefore(S,C):w.appendChild(S)}}function h(w,S){if(c(w,S)){var T=w.firstChild;T?w.insertBefore(S,T):w.appendChild(S)}}function p(w,S){S&&w&&S.parentNode===w&&w.removeChild(S)}function g(w){return w.__textSvgEl}function v(w){return w.__svgEl}var A=function(S,T,C,O){this.root=S,this.storage=T,this._opts=C=L.extend({},C||{});var _=N("svg");_.setAttribute("xmlns","http://www.w3.org/2000/svg"),_.setAttribute("version","1.1"),_.setAttribute("baseProfile","full"),_.style.cssText="user-select:none;position:absolute;left:0;top:0;";var M=N("g");_.appendChild(M);var k=N("g");_.appendChild(k),this.gradientManager=new s(O,k),this.clipPathManager=new t(O,k),this.shadowManager=new l(O,k);var R=document.createElement("div");R.style.cssText="overflow:hidden;position:relative",this._svgDom=_,this._svgRoot=k,this._backgroundRoot=M,this._viewport=R,S.appendChild(R),R.appendChild(_),this.resize(C.width,C.height),this._visibleList=[]};A.prototype={constructor:A,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var S=this.getViewportRoot();if(S)return{offsetLeft:S.offsetLeft||0,offsetTop:S.offsetTop||0}},refresh:function(){var S=this.storage.getDisplayList(!0);this._paintList(S)},setBackgroundColor:function(S){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var T=N("rect");T.setAttribute("width",this.getWidth()),T.setAttribute("height",this.getHeight()),T.setAttribute("x",0),T.setAttribute("y",0),T.setAttribute("id",0),T.style.fill=S,this._backgroundRoot.appendChild(T),this._backgroundNode=T},_paintList:function(S){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var T=this._svgRoot,C=this._visibleList,O=S.length,_=[],M;for(M=0;M<O;M++){var k=S[M],R=i(k),B=v(k)||g(k);k.invisible||(k.__dirty&&(R&&R.brush(k),this.clipPathManager.update(k),k.style&&(this.gradientManager.update(k.style.fill),this.gradientManager.update(k.style.stroke),this.shadowManager.update(B,k)),k.__dirty=!1),_.push(k))}var P=f(C,_),U;for(M=0;M<P.length;M++){var j=P[M];if(j.removed)for(var H=0;H<j.count;H++){var k=C[j.indices[H]],B=v(k),W=g(k);p(T,B),p(T,W)}}for(M=0;M<P.length;M++){var j=P[M];if(j.added)for(var H=0;H<j.count;H++){var k=_[j.indices[H]],B=v(k),W=g(k);U?d(T,B,U):h(T,B),B?d(T,W,B):U?d(T,W,U):h(T,W),d(T,W,B),U=W||B||U,this.gradientManager.addWithoutUpdate(B||W,k),this.shadowManager.addWithoutUpdate(B||W,k),this.clipPathManager.markUsed(k)}else if(!j.removed)for(var H=0;H<j.count;H++){var k=_[j.indices[H]],B=v(k),W=g(k),B=v(k),W=g(k);this.gradientManager.markUsed(k),this.gradientManager.addWithoutUpdate(B||W,k),this.shadowManager.markUsed(k),this.shadowManager.addWithoutUpdate(B||W,k),this.clipPathManager.markUsed(k),W&&d(T,W,B),U=B||W||U}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=_},_getDefs:function(S){var T=this._svgDom,C=T.getElementsByTagName("defs");if(C.length===0)if(S){var C=T.insertBefore(N("defs"),T.firstChild);return C.contains||(C.contains=function(_){var M=C.children;if(!M)return!1;for(var k=M.length-1;k>=0;--k)if(M[k]===_)return!0;return!1}),C}else return null;else return C[0]},resize:function(S,T){var C=this._viewport;C.style.display="none";var O=this._opts;if(S!=null&&(O.width=S),T!=null&&(O.height=T),S=this._getSize(0),T=this._getSize(1),C.style.display="",this._width!==S||this._height!==T){this._width=S,this._height=T;var _=C.style;_.width=S+"px",_.height=T+"px";var M=this._svgDom;M.setAttribute("width",S),M.setAttribute("height",T)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",S),this._backgroundNode.setAttribute("height",T))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(S){var T=this._opts,C=["width","height"][S],O=["clientWidth","clientHeight"][S],_=["paddingLeft","paddingTop"][S],M=["paddingRight","paddingBottom"][S];if(T[C]!=null&&T[C]!=="auto")return parseFloat(T[C]);var k=this.root,R=document.defaultView.getComputedStyle(k);return(k[O]||n(R[C])||n(k.style[C]))-(n(R[_])||0)-(n(R[M])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var S=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+S}};function x(w){return function(){E('In SVG mode painter not support method "'+w+'"')}}L.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(w){A.prototype[w]=x(w)});var b=A;fe.exports=b},"3LNs":function(fe,z,y){var D=y("bYtY"),N=y("Yl7c"),L=y("IwbS"),E=y("zTMp"),I=y("YH21"),o=y("iLNv"),m=y("4NO4"),f=m.makeInner,s=f(),t=D.clone,l=D.bind;function a(){}a.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(d,h,p,g){var v=h.get("value"),A=h.get("status");if(this._axisModel=d,this._axisPointerModel=h,this._api=p,!g&&this._lastValue===v&&this._lastStatus===A)return;this._lastValue=v,this._lastStatus=A;var x=this._group,b=this._handle;if(!A||A==="hide"){x&&x.hide(),b&&b.hide();return}x&&x.show(),b&&b.show();var w={};this.makeElOption(w,v,d,h,p);var S=w.graphicKey;S!==this._lastGraphicKey&&this.clear(p),this._lastGraphicKey=S;var T=this._moveAnimation=this.determineAnimation(d,h);if(!x)x=this._group=new L.Group,this.createPointerEl(x,w,d,h),this.createLabelEl(x,w,d,h),p.getZr().add(x);else{var C=D.curry(r,h,T);this.updatePointerEl(x,w,C,h),this.updateLabelEl(x,w,C,h)}i(x,h,!0),this._renderHandle(v)},remove:function(d){this.clear(d)},dispose:function(d){this.clear(d)},determineAnimation:function(d,h){var p=h.get("animation"),g=d.axis,v=g.type==="category",A=h.get("snap");if(!A&&!v)return!1;if(p==="auto"||p==null){var x=this.animationThreshold;if(v&&g.getBandWidth()>x)return!0;if(A){var b=E.getAxisInfo(d).seriesDataCount,w=g.getExtent();return Math.abs(w[0]-w[1])/b>x}return!1}return p===!0},makeElOption:function(d,h,p,g,v){},createPointerEl:function(d,h,p,g){var v=h.pointer;if(v){var A=s(d).pointerEl=new L[v.type](t(h.pointer));d.add(A)}},createLabelEl:function(d,h,p,g){if(h.label){var v=s(d).labelEl=new L.Rect(t(h.label));d.add(v),e(v,g)}},updatePointerEl:function(d,h,p){var g=s(d).pointerEl;g&&h.pointer&&(g.setStyle(h.pointer.style),p(g,{shape:h.pointer.shape}))},updateLabelEl:function(d,h,p,g){var v=s(d).labelEl;v&&(v.setStyle(h.label.style),p(v,{shape:h.label.shape,position:h.label.position}),e(v,g))},_renderHandle:function(d){if(this._dragging||!this.updateHandleTransform)return;var h=this._axisPointerModel,p=this._api.getZr(),g=this._handle,v=h.getModel("handle"),A=h.get("status");if(!v.get("show")||!A||A==="hide"){g&&p.remove(g),this._handle=null;return}var x;this._handle||(x=!0,g=this._handle=L.createIcon(v.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(S){I.stop(S.event)},onmousedown:l(this._onHandleDragMove,this,0,0),drift:l(this._onHandleDragMove,this),ondragend:l(this._onHandleDragEnd,this)}),p.add(g)),i(g,h,!1);var b=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];g.setStyle(v.getItemStyle(null,b));var w=v.get("size");D.isArray(w)||(w=[w,w]),g.attr("scale",[w[0]/2,w[1]/2]),o.createOrUpdate(this,"_doDispatchAxisPointer",v.get("throttle")||0,"fixRate"),this._moveHandleToValue(d,x)},_moveHandleToValue:function(d,h){r(this._axisPointerModel,!h&&this._moveAnimation,this._handle,n(this.getHandleTransform(d,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(d,h){var p=this._handle;if(!p)return;this._dragging=!0;var g=this.updateHandleTransform(n(p),[d,h],this._axisModel,this._axisPointerModel);this._payloadInfo=g,p.stopAnimation(),p.attr(n(g)),s(p).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var d=this._handle;if(!d)return;var h=this._payloadInfo,p=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:h.cursorPoint[0],y:h.cursorPoint[1],tooltipOption:h.tooltipOption,axesInfo:[{axisDim:p.axis.dim,axisIndex:p.componentIndex}]})},_onHandleDragEnd:function(d){this._dragging=!1;var h=this._handle;if(!h)return;var p=this._axisPointerModel.get("value");this._moveHandleToValue(p),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(d){this._lastValue=null,this._lastStatus=null;var h=d.getZr(),p=this._group,g=this._handle;h&&p&&(this._lastGraphicKey=null,p&&h.remove(p),g&&h.remove(g),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(d,h,p){return p=p||0,{x:d[p],y:d[1-p],width:h[p],height:h[1-p]}}},a.prototype.constructor=a;function r(d,h,p,g){u(s(p).lastProp,g)||(s(p).lastProp=g,h?L.updateProps(p,g,d):(p.stopAnimation(),p.attr(g)))}function u(d,h){if(D.isObject(d)&&D.isObject(h)){var p=!0;return D.each(h,function(g,v){p=p&&u(d[v],g)}),!!p}else return d===h}function e(d,h){d[h.get("label.show")?"show":"hide"]()}function n(d){return{position:d.position.slice(),rotation:d.rotation||0}}function i(d,h,p){var g=h.get("z"),v=h.get("zlevel");d&&d.traverse(function(A){A.type!=="group"&&(g!=null&&(A.z=g),v!=null&&(A.zlevel=v),A.silent=p)})}N.enableClassExtend(a);var c=a;fe.exports=c},"3OrL":function(fe,z,y){var D=y("bYtY"),N=y("6Ic6"),L=y("IwbS"),E=y("y+Vt"),I=["itemStyle"],o=["emphasis","itemStyle"],m=N.extend({type:"boxplot",render:function(r,u,e){var n=r.getData(),i=this.group,c=this._data;this._data||i.removeAll();var d=r.get("layout")==="horizontal"?1:0;n.diff(c).add(function(h){if(n.hasValue(h)){var p=n.getItemLayout(h),g=s(p,n,h,d,!0);n.setItemGraphicEl(h,g),i.add(g)}}).update(function(h,p){var g=c.getItemGraphicEl(p);if(!n.hasValue(h)){i.remove(g);return}var v=n.getItemLayout(h);g?t(v,g,n,h):g=s(v,n,h,d),i.add(g),n.setItemGraphicEl(h,g)}).remove(function(h){var p=c.getItemGraphicEl(h);p&&i.remove(p)}).execute(),this._data=n},remove:function(r){var u=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(n){n&&u.remove(n)})},dispose:D.noop}),f=E.extend({type:"boxplotBoxPath",shape:{},buildPath:function(r,u){var e=u.points,n=0;for(r.moveTo(e[n][0],e[n][1]),n++;n<4;n++)r.lineTo(e[n][0],e[n][1]);for(r.closePath();n<e.length;n++)r.moveTo(e[n][0],e[n][1]),n++,r.lineTo(e[n][0],e[n][1])}});function s(r,u,e,n,i){var c=r.ends,d=new f({shape:{points:i?l(c,n,r):c}});return t(r,d,u,e,i),d}function t(r,u,e,n,i){var c=e.hostModel,d=L[i?"initProps":"updateProps"];d(u,{shape:{points:r.ends}},c,n);var h=e.getItemModel(n),p=h.getModel(I),g=e.getItemVisual(n,"color"),v=p.getItemStyle(["borderColor"]);v.stroke=g,v.strokeNoScale=!0,u.useStyle(v),u.z2=100;var A=h.getModel(o).getItemStyle();L.setHoverStyle(u,A)}function l(r,u,e){return D.map(r,function(n){return n=n.slice(),n[u]=e.initBaseline,n})}var a=m;fe.exports=a},"3S7+":function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("J4zp"),E=y.n(L),I=y("pVnL"),o=y.n(I),m=y("q1tI"),f=y("U8pU"),s=y("VTBJ"),t=y("Ff2n"),l=y("uciX"),a={adjustX:1,adjustY:1},r=[0,0],u={left:{points:["cr","cl"],overflow:a,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:a,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:a,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:a,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:a,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:a,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:a,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:a,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:a,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:a,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:a,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:a,offset:[-4,0],targetOffset:r}},e=u,n=function(P){var U=P.overlay,j=P.prefixCls,H=P.id,W=P.overlayInnerStyle;return m.createElement("div",{className:"".concat(j,"-inner"),id:H,role:"tooltip",style:W},typeof U=="function"?U():U)},i=n,c=function(P,U){var j=P.overlayClassName,H=P.trigger,W=H===void 0?["hover"]:H,G=P.mouseEnterDelay,V=G===void 0?0:G,Z=P.mouseLeaveDelay,Y=Z===void 0?.1:Z,Q=P.overlayStyle,oe=P.prefixCls,ue=oe===void 0?"rc-tooltip":oe,Le=P.children,me=P.onVisibleChange,Ie=P.afterVisibleChange,X=P.transitionName,q=P.animation,We=P.placement,$=We===void 0?"right":We,J=P.align,le=J===void 0?{}:J,de=P.destroyTooltipOnHide,Ne=de===void 0?!1:de,we=P.defaultVisible,De=P.getTooltipContainer,Ee=P.overlayInnerStyle,ce=Object(t.a)(P,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ne=Object(m.useRef)(null);Object(m.useImperativeHandle)(U,function(){return ne.current});var ee=Object(s.a)({},ce);"visible"in P&&(ee.popupVisible=P.visible);var Ae=function(){var Fe=P.arrowContent,ft=Fe===void 0?null:Fe,At=P.overlay,bt=P.id;return[m.createElement("div",{className:"".concat(ue,"-arrow"),key:"arrow"},ft),m.createElement(i,{key:"content",prefixCls:ue,id:bt,overlay:At,overlayInnerStyle:Ee})]},Ve=!1,Ke=!1;if(typeof Ne=="boolean")Ve=Ne;else if(Ne&&Object(f.a)(Ne)==="object"){var Oe=Ne.keepParent;Ve=Oe===!0,Ke=Oe===!1}return m.createElement(l.a,Object.assign({popupClassName:j,prefixCls:ue,popup:Ae,action:W,builtinPlacements:u,popupPlacement:$,ref:ne,popupAlign:le,getPopupContainer:De,onPopupVisibleChange:me,afterPopupVisibleChange:Ie,popupTransitionName:X,popupAnimation:q,defaultPopupVisible:we,destroyPopupOnHide:Ve,autoDestroy:Ke,mouseLeaveDelay:Y,popupStyle:Q,mouseEnterDelay:V},ee),Le)},d=Object(m.forwardRef)(c),h=d,p=y("TSYQ"),g=y.n(p),v={adjustX:1,adjustY:1},A={adjustX:0,adjustY:0},x=[0,0];function b(B){return typeof B=="boolean"?B?v:A:o()(o()({},A),B)}function w(B){var P=B.arrowWidth,U=P===void 0?5:P,j=B.horizontalArrowShift,H=j===void 0?16:j,W=B.verticalArrowShift,G=W===void 0?8:W,V=B.autoAdjustOverflow,Z={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:[-(H+U),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(G+U)]},topRight:{points:["br","tc"],offset:[H+U,-4]},rightTop:{points:["tl","cr"],offset:[4,-(G+U)]},bottomRight:{points:["tr","bc"],offset:[H+U,4]},rightBottom:{points:["bl","cr"],offset:[4,G+U]},bottomLeft:{points:["tl","bc"],offset:[-(H+U),4]},leftBottom:{points:["br","cl"],offset:[-4,G+U]}};return Object.keys(Z).forEach(function(Y){Z[Y]=B.arrowPointAtCenter?o()(o()({},Z[Y]),{overflow:b(V),targetOffset:x}):o()(o()({},u[Y]),{overflow:b(V)}),Z[Y].ignoreShake=!0}),Z}var S=y("0n0R"),T=y("H84U"),C=y("09Wf"),O=function(P,U){var j={},H=o()({},P);return U.forEach(function(W){P&&W in P&&(j[W]=P[W],delete H[W])}),{picked:j,omitted:H}},_=new RegExp("^(".concat(C.a.join("|"),")(-inverse)?$"));function M(B,P){var U=B.type;if((U.__ANT_BUTTON===!0||U.__ANT_SWITCH===!0||U.__ANT_CHECKBOX===!0||B.type==="button")&&B.props.disabled){var j=O(B.props.style,["position","left","right","top","bottom","float","display","zIndex"]),H=j.picked,W=j.omitted,G=o()(o()({display:"inline-block"},H),{cursor:"not-allowed",width:B.props.block?"100%":null}),V=o()(o()({},W),{pointerEvents:"none"}),Z=Object(S.a)(B,{style:V,className:null});return m.createElement("span",{style:G,className:g()(B.props.className,"".concat(P,"-disabled-compatible-wrapper"))},Z)}return B}var k=m.forwardRef(function(B,P){var U,j=m.useContext(T.b),H=j.getPopupContainer,W=j.getPrefixCls,G=j.direction,V=m.useState(!!B.visible||!!B.defaultVisible),Z=E()(V,2),Y=Z[0],Q=Z[1];m.useEffect(function(){"visible"in B&&Q(B.visible)},[B.visible]);var oe=function(){var Oe=B.title,it=B.overlay;return!Oe&&!it&&Oe!==0},ue=function(Oe){"visible"in B||Q(oe()?!1:Oe),B.onVisibleChange&&!oe()&&B.onVisibleChange(Oe)},Le=function(){var Oe=B.builtinPlacements,it=B.arrowPointAtCenter,Fe=B.autoAdjustOverflow;return Oe||w({arrowPointAtCenter:it,autoAdjustOverflow:Fe})},me=function(Oe,it){var Fe=Le(),ft=Object.keys(Fe).filter(function(St){return Fe[St].points[0]===it.points[0]&&Fe[St].points[1]===it.points[1]})[0];if(!ft)return;var At=Oe.getBoundingClientRect(),bt={top:"50%",left:"50%"};ft.indexOf("top")>=0||ft.indexOf("Bottom")>=0?bt.top="".concat(At.height-it.offset[1],"px"):(ft.indexOf("Top")>=0||ft.indexOf("bottom")>=0)&&(bt.top="".concat(-it.offset[1],"px")),ft.indexOf("left")>=0||ft.indexOf("Right")>=0?bt.left="".concat(At.width-it.offset[0],"px"):(ft.indexOf("right")>=0||ft.indexOf("Left")>=0)&&(bt.left="".concat(-it.offset[0],"px")),Oe.style.transformOrigin="".concat(bt.left," ").concat(bt.top)},Ie=function(){var Oe=B.title,it=B.overlay;return Oe===0?Oe:it||Oe||""},X=B.prefixCls,q=B.openClassName,We=B.getPopupContainer,$=B.getTooltipContainer,J=B.overlayClassName,le=B.color,de=B.overlayInnerStyle,Ne=B.children,we=W("tooltip",X),De=Y;!("visible"in B)&&oe()&&(De=!1);var Ee=M(Object(S.b)(Ne)?Ne:m.createElement("span",null,Ne),we),ce=Ee.props,ne=g()(ce.className,N()({},q||"".concat(we,"-open"),!0)),ee=g()(J,(U={},N()(U,"".concat(we,"-rtl"),G==="rtl"),N()(U,"".concat(we,"-").concat(le),le&&_.test(le)),U)),Ae,Ve;return le&&!_.test(le)&&(Ae=o()(o()({},de),{background:le}),Ve={background:le}),m.createElement(h,o()({},B,{prefixCls:we,overlayClassName:ee,getTooltipContainer:We||$||H,ref:P,builtinPlacements:Le(),overlay:Ie(),visible:De,onVisibleChange:ue,onPopupAlign:me,overlayInnerStyle:Ae,arrowContent:m.createElement("span",{className:"".concat(we,"-arrow-content"),style:Ve})}),De?Object(S.a)(Ee,{className:ne}):Ee)});k.displayName="Tooltip",k.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var R=z.a=k},"3TkU":function(fe,z,y){y("aTJb"),y("OlYY"),y("fc+c"),y("QUw5"),y("Swgg"),y("LBfv"),y("noeP")},"3X6L":function(fe,z,y){var D=y("bYtY"),N=y("7a+S"),L=y("OKJ2"),E=N.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:[]}});D.mixin(E,L);var I=E;fe.exports=I},"3e3G":function(fe,z,y){var D=y("bYtY"),N=y("QuXc"),L=function(o,m,f,s,t){this.x=o==null?.5:o,this.y=m==null?.5:m,this.r=f==null?.5:f,this.type="radial",this.global=t||!1,N.call(this,s)};L.prototype={constructor:L},D.inherits(L,N);var E=L;fe.exports=E},"3gBT":function(fe,z){var y=2311;function D(){return y++}fe.exports=D},"3hzK":function(fe,z){var y={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")}}};fe.exports=y},"3m61":function(fe,z){function y(N){return N instanceof Array||(N=[N,N]),N}function D(N){N.eachSeriesByType("graph",function(L){var E=L.getGraph(),I=L.getEdgeData(),o=y(L.get("edgeSymbol")),m=y(L.get("edgeSymbolSize")),f="lineStyle.color".split("."),s="lineStyle.opacity".split(".");I.setVisual("fromSymbol",o&&o[0]),I.setVisual("toSymbol",o&&o[1]),I.setVisual("fromSymbolSize",m&&m[0]),I.setVisual("toSymbolSize",m&&m[1]),I.setVisual("color",L.get(f)),I.setVisual("opacity",L.get(s)),I.each(function(t){var l=I.getItemModel(t),a=E.getEdgeByIndex(t),r=y(l.getShallow("symbol",!0)),u=y(l.getShallow("symbolSize",!0)),e=l.get(f),n=l.get(s);switch(e){case"source":e=a.node1.getVisual("color");break;case"target":e=a.node2.getVisual("color");break}r[0]&&a.setVisual("fromSymbol",r[0]),r[1]&&a.setVisual("toSymbol",r[1]),u[0]&&a.setVisual("fromSymbolSize",u[0]),u[1]&&a.setVisual("toSymbolSize",u[1]),a.setVisual("color",e),a.setVisual("opacity",n)})})}fe.exports=D},"3ouR":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="CloseSquareOutlined";var m=z.a=N.forwardRef(o)},"3y9D":function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.WordArray,I=L.Hasher,o=N.algo,m=[],f=o.SHA1=I.extend({_doReset:function(){this._hash=new E.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,l){for(var a=this._hash.words,r=a[0],u=a[1],e=a[2],n=a[3],i=a[4],c=0;c<80;c++){if(c<16)m[c]=t[l+c]|0;else{var d=m[c-3]^m[c-8]^m[c-14]^m[c-16];m[c]=d<<1|d>>>31}var h=(r<<5|r>>>27)+i+m[c];c<20?h+=(u&e|~u&n)+1518500249:c<40?h+=(u^e^n)+1859775393:c<60?h+=(u&e|u&n|e&n)-1894007588:h+=(u^e^n)-899497514,i=n,n=e,e=u<<30|u>>>2,u=r,r=h}a[0]=a[0]+r|0,a[1]=a[1]+u|0,a[2]=a[2]+e|0,a[3]=a[3]+n|0,a[4]=a[4]+i|0},_doFinalize:function(){var t=this._data,l=t.words,a=this._nDataBytes*8,r=t.sigBytes*8;return l[r>>>5]|=128<<24-r%32,l[(r+64>>>9<<4)+14]=Math.floor(a/4294967296),l[(r+64>>>9<<4)+15]=a,t.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var t=I.clone.call(this);return t._hash=this._hash.clone(),t}});N.SHA1=I._createHelper(f),N.HmacSHA1=I._createHmacHelper(f)}(),D.SHA1})},"3zoK":function(fe,z,y){var D=y("bYtY"),N=y("bLfw"),L=y("KCsZ"),E=y("nkfE"),I=y("OELB"),o=y("ICMv"),m=N.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return L([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(l){var a=this.activeIntervals=D.clone(l);if(a)for(var r=a.length-1;r>=0;r--)I.asc(a[r])},getActiveState:function(l){var a=this.activeIntervals;if(!a.length)return"normal";if(l==null||isNaN(l))return"inactive";if(a.length===1){var r=a[0];if(r[0]<=l&&l<=r[1])return"active"}else for(var u=0,e=a.length;u<e;u++)if(a[u][0]<=l&&l<=a[u][1])return"active";return"inactive"}}),f={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};D.merge(m.prototype,o);function s(l,a){return a.type||(a.data?"category":"value")}E("parallel",m,s,f);var t=m;fe.exports=t},"49sm":function(fe,z){var y={}.toString;fe.exports=Array.isArray||function(D){return y.call(D)=="[object Array]"}},"4Feb":function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("IwbS"),I=y("x3X8"),o=I.getDefaultLabel,m=y("MwEJ"),f=y("nVfU"),s=f.getLayoutOnAxis,t=y("gPAo"),l=y("T4UG"),a=y("Qxkt"),r=y("6Ic6"),u=y("sK/D"),e=u.createClipPath,n=y("qj72"),i=y("ANjR"),c=y("MHtr"),d=y("6usn"),h=y("Rx6q"),p=E.CACHED_LABEL_STYLE_PROPERTIES,g=["itemStyle"],v=["emphasis","itemStyle"],A=["label"],x=["emphasis","label"],b="e\0\0",w={cartesian2d:n,geo:i,singleAxis:c,polar:d,calendar:h};l.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(Y,Q){return m(this.getSource(),this)},getDataParams:function(Y,Q,oe){var ue=l.prototype.getDataParams.apply(this,arguments);return oe&&(ue.info=oe.info),ue}}),r.extend({type:"custom",_data:null,render:function(Y,Q,oe,ue){var Le=this._data,me=Y.getData(),Ie=this.group,X=O(Y,me,Q,oe);me.diff(Le).add(function(We){M(null,We,X(We,ue),Y,Ie,me)}).update(function(We,$){var J=Le.getItemGraphicEl($);M(J,We,X(We,ue),Y,Ie,me)}).remove(function(We){var $=Le.getItemGraphicEl(We);$&&Ie.remove($)}).execute();var q=Y.get("clip",!0)?e(Y.coordinateSystem,!1,Y):null;q?Ie.setClipPath(q):Ie.removeClipPath(),this._data=me},incrementalPrepareRender:function(Y,Q,oe){this.group.removeAll(),this._data=null},incrementalRender:function(Y,Q,oe,ue,Le){var me=Q.getData(),Ie=O(Q,me,oe,ue);function X($){$.isGroup||($.incremental=!0,$.useHoverLayer=!0)}for(var q=Y.start;q<Y.end;q++){var We=M(null,q,Ie(q,Le),Q,this.group,me);We.traverse(X)}},dispose:L.noop,filterForExposedEvent:function(Y,Q,oe,ue){var Le=Q.element;if(Le==null||oe.name===Le)return!0;for(;(oe=oe.parent)&&oe!==this.group;)if(oe.name===Le)return!0;return!1}});function S(Y){var Q=Y.type,oe;if(Q==="path"){var ue=Y.shape,Le=ue.width!=null&&ue.height!=null?{x:ue.x||0,y:ue.y||0,width:ue.width,height:ue.height}:null,me=G(ue);oe=E.makePath(me,null,Le,ue.layout||"center"),oe.__customPathData=me}else if(Q==="image")oe=new E.Image({}),oe.__customImagePath=Y.style.image;else if(Q==="text")oe=new E.Text({}),oe.__customText=Y.style.text;else if(Q==="group")oe=new E.Group;else{if(Q==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var Ie=E.getShapeClass(Q);oe=new Ie}return oe.__customGraphicType=Q,oe.name=Y.name,oe}function T(Y,Q,oe,ue,Le,me,Ie){var X={},q=oe.style||{};if(oe.shape&&(X.shape=L.clone(oe.shape)),oe.position&&(X.position=oe.position.slice()),oe.scale&&(X.scale=oe.scale.slice()),oe.origin&&(X.origin=oe.origin.slice()),oe.rotation&&(X.rotation=oe.rotation),Y.type==="image"&&oe.style){var We=X.style={};L.each(["x","y","width","height"],function(le){C(le,We,q,Y.style,me)})}if(Y.type==="text"&&oe.style){var We=X.style={};L.each(["x","y"],function(de){C(de,We,q,Y.style,me)}),!q.hasOwnProperty("textFill")&&q.fill&&(q.textFill=q.fill),!q.hasOwnProperty("textStroke")&&q.stroke&&(q.textStroke=q.stroke)}if(Y.type!=="group"&&(Y.useStyle(q),me)){Y.style.opacity=0;var $=q.opacity;$==null&&($=1),E.initProps(Y,{style:{opacity:$}},ue,Q)}me?Y.attr(X):E.updateProps(Y,X,ue,Q),oe.hasOwnProperty("z2")&&Y.attr("z2",oe.z2||0),oe.hasOwnProperty("silent")&&Y.attr("silent",oe.silent),oe.hasOwnProperty("invisible")&&Y.attr("invisible",oe.invisible),oe.hasOwnProperty("ignore")&&Y.attr("ignore",oe.ignore),oe.hasOwnProperty("info")&&Y.attr("info",oe.info);var J=oe.styleEmphasis;E.setElementHoverStyle(Y,J),Ie&&E.setAsHighDownDispatcher(Y,J!==!1)}function C(Y,Q,oe,ue,Le){oe[Y]!=null&&!Le&&(Q[Y]=oe[Y],oe[Y]=ue[Y])}function O(Y,Q,oe,ue){var Le=Y.get("renderItem"),me=Y.coordinateSystem,Ie={};me&&(Ie=me.prepareCustoms?me.prepareCustoms():w[me.type](me));var X=L.defaults({getWidth:ue.getWidth,getHeight:ue.getHeight,getZr:ue.getZr,getDevicePixelRatio:ue.getDevicePixelRatio,value:De,style:Ee,styleEmphasis:ce,visual:ne,barLayout:ee,currentSeriesIndices:Ae,font:Ve},Ie.api||{}),q={context:{},seriesId:Y.id,seriesName:Y.name,seriesIndex:Y.seriesIndex,coordSys:Ie.coordSys,dataInsideLength:Q.count(),encode:_(Y.getData())},We,$=!0,J,le,de,Ne;return function(Ke,Oe){return We=Ke,$=!0,Le&&Le(L.defaults({dataIndexInside:Ke,dataIndex:Q.getRawIndex(Ke),actionType:Oe?Oe.type:null},q),X)};function we(Ke){Ke==null&&(Ke=We),$&&(J=Q.getItemModel(Ke),le=J.getModel(A),de=J.getModel(x),Ne=Q.getItemVisual(Ke,"color"),$=!1)}function De(Ke,Oe){return Oe==null&&(Oe=We),Q.get(Q.getDimension(Ke||0),Oe)}function Ee(Ke,Oe){Oe==null&&(Oe=We),we(Oe);var it=J.getModel(g).getItemStyle();Ne!=null&&(it.fill=Ne);var Fe=Q.getItemVisual(Oe,"opacity");Fe!=null&&(it.opacity=Fe);var ft=Ke?j(Ke,le):le;return E.setTextStyle(it,ft,null,{autoColor:Ne,isRectText:!0}),it.text=ft.getShallow("show")?L.retrieve2(Y.getFormattedLabel(Oe,"normal"),o(Q,Oe)):null,Ke&&H(it,Ke),it}function ce(Ke,Oe){Oe==null&&(Oe=We),we(Oe);var it=J.getModel(v).getItemStyle(),Fe=Ke?j(Ke,de):de;return E.setTextStyle(it,Fe,null,{isRectText:!0},!0),it.text=Fe.getShallow("show")?L.retrieve3(Y.getFormattedLabel(Oe,"emphasis"),Y.getFormattedLabel(Oe,"normal"),o(Q,Oe)):null,Ke&&H(it,Ke),it}function ne(Ke,Oe){return Oe==null&&(Oe=We),Q.getItemVisual(Oe,Ke)}function ee(Ke){if(me.getBaseAxis){var Oe=me.getBaseAxis();return s(L.defaults({axis:Oe},Ke),ue)}}function Ae(){return oe.getCurrentSeriesIndices()}function Ve(Ke){return E.getFont(Ke,oe)}}function _(Y){var Q={};return L.each(Y.dimensions,function(oe,ue){var Le=Y.getDimensionInfo(oe);if(!Le.isExtraCoord){var me=Le.coordDim,Ie=Q[me]=Q[me]||[];Ie[Le.coordDimIndex]=ue}}),Q}function M(Y,Q,oe,ue,Le,me){return Y=k(Y,Q,oe,ue,Le,me,!0),Y&&me.setItemGraphicEl(Q,Y),Y}function k(Y,Q,oe,ue,Le,me,Ie){var X=!oe;oe=oe||{};var q=oe.type,We=oe.shape,$=oe.style;if(Y&&(X||q!=null&&q!==Y.__customGraphicType||q==="path"&&V(We)&&G(We)!==Y.__customPathData||q==="image"&&Z($,"image")&&$.image!==Y.__customImagePath||q==="text"&&Z(We,"text")&&$.text!==Y.__customText)&&(Le.remove(Y),Y=null),X)return;var J=!Y;return!Y&&(Y=S(oe)),T(Y,Q,oe,ue,me,J,Ie),q==="group"&&R(Y,Q,oe,ue,me),Le.add(Y),Y}function R(Y,Q,oe,ue,Le){var me=oe.children,Ie=me?me.length:0,X=oe.$mergeChildren,q=X==="byName"||oe.diffChildrenByName,We=X===!1;if(!Ie&&!q&&!We)return;if(q){B({oldChildren:Y.children()||[],newChildren:me||[],dataIndex:Q,animatableModel:ue,group:Y,data:Le});return}We&&Y.removeAll();for(var $=0;$<Ie;$++)me[$]&&k(Y.childAt($),Q,me[$],ue,Y,Le)}function B(Y){new t(Y.oldChildren,Y.newChildren,P,P,Y).add(U).update(U).remove(W).execute()}function P(Y,Q){var oe=Y&&Y.name;return oe!=null?oe:b+Q}function U(Y,Q){var oe=this.context,ue=Y!=null?oe.newChildren[Y]:null,Le=Q!=null?oe.oldChildren[Q]:null;k(Le,oe.dataIndex,ue,oe.animatableModel,oe.group,oe.data)}function j(Y,Q){var oe=new a({},Q);return L.each(p,function(ue,Le){Y.hasOwnProperty(ue)&&(oe.option[Le]=Y[ue])}),oe}function H(Y,Q){for(var oe in Q)(Q.hasOwnProperty(oe)||!p.hasOwnProperty(oe))&&(Y[oe]=Q[oe])}function W(Y){var Q=this.context,oe=Q.oldChildren[Y];oe&&Q.group.remove(oe)}function G(Y){return Y&&(Y.pathData||Y.d)}function V(Y){return Y&&(Y.hasOwnProperty("pathData")||Y.hasOwnProperty("d"))}function Z(Y,Q){return Y&&Y.hasOwnProperty(Q)}},"4HMb":function(fe,z,y){var D=y("bYtY"),N=y("6GrX"),L=y("4NO4"),E=L.makeInner,I=y("aX7z"),o=I.makeLabelFormatter,m=I.getOptionCategoryInterval,f=I.shouldShowAllLabels,s=E();function t(A){return A.type==="category"?a(A):e(A)}function l(A,x){return A.type==="category"?u(A,x):{ticks:A.scale.getTicks()}}function a(A){var x=A.getLabelModel(),b=r(A,x);return!x.get("show")||A.scale.isBlank()?{labels:[],labelCategoryInterval:b.labelCategoryInterval}:b}function r(A,x){var b=n(A,"labels"),w=m(x),S=i(b,w);if(S)return S;var T,C;return D.isFunction(w)?T=v(A,w):(C=w==="auto"?d(A):w,T=g(A,C)),c(b,w,{labels:T,labelCategoryInterval:C})}function u(A,x){var b=n(A,"ticks"),w=m(x),S=i(b,w);if(S)return S;var T,C;if((!x.get("show")||A.scale.isBlank())&&(T=[]),D.isFunction(w))T=v(A,w,!0);else if(w==="auto"){var O=r(A,A.getLabelModel());C=O.labelCategoryInterval,T=D.map(O.labels,function(_){return _.tickValue})}else C=w,T=g(A,C,!0);return c(b,w,{ticks:T,tickCategoryInterval:C})}function e(A){var x=A.scale.getTicks(),b=o(A);return{labels:D.map(x,function(w,S){return{formattedLabel:b(w,S),rawLabel:A.scale.getLabel(w),tickValue:w}})}}function n(A,x){return s(A)[x]||(s(A)[x]=[])}function i(A,x){for(var b=0;b<A.length;b++)if(A[b].key===x)return A[b].value}function c(A,x,b){return A.push({key:x,value:b}),b}function d(A){var x=s(A).autoInterval;return x!=null?x:s(A).autoInterval=A.calculateCategoryInterval()}function h(A){var x=p(A),b=o(A),w=(x.axisRotate-x.labelRotate)/180*Math.PI,S=A.scale,T=S.getExtent(),C=S.count();if(T[1]-T[0]<1)return 0;var O=1;C>40&&(O=Math.max(1,Math.floor(C/40)));for(var _=T[0],M=A.dataToCoord(_+1)-A.dataToCoord(_),k=Math.abs(M*Math.cos(w)),R=Math.abs(M*Math.sin(w)),B=0,P=0;_<=T[1];_+=O){var U=0,j=0,H=N.getBoundingRect(b(_),x.font,"center","top");U=H.width*1.3,j=H.height*1.3,B=Math.max(B,U,7),P=Math.max(P,j,7)}var W=B/k,G=P/R;isNaN(W)&&(W=Infinity),isNaN(G)&&(G=Infinity);var V=Math.max(0,Math.floor(Math.min(W,G))),Z=s(A.model),Y=A.getExtent(),Q=Z.lastAutoInterval,oe=Z.lastTickCount;return Q!=null&&oe!=null&&Math.abs(Q-V)<=1&&Math.abs(oe-C)<=1&&Q>V&&Z.axisExtend0===Y[0]&&Z.axisExtend1===Y[1]?V=Q:(Z.lastTickCount=C,Z.lastAutoInterval=V,Z.axisExtend0=Y[0],Z.axisExtend1=Y[1]),V}function p(A){var x=A.getLabelModel();return{axisRotate:A.getRotate?A.getRotate():A.isHorizontal&&!A.isHorizontal()?90:0,labelRotate:x.get("rotate")||0,font:x.getFont()}}function g(A,x,b){var w=o(A),S=A.scale,T=S.getExtent(),C=A.getLabelModel(),O=[],_=Math.max((x||0)+1,1),M=T[0],k=S.count();M!==0&&_>1&&k/_>2&&(M=Math.round(Math.ceil(M/_)*_));var R=f(A),B=C.get("showMinLabel")||R,P=C.get("showMaxLabel")||R;B&&M!==T[0]&&j(T[0]);for(var U=M;U<=T[1];U+=_)j(U);P&&U-_!==T[1]&&j(T[1]);function j(H){O.push(b?H:{formattedLabel:w(H),rawLabel:S.getLabel(H),tickValue:H})}return O}function v(A,x,b){var w=A.scale,S=o(A),T=[];return D.each(w.getTicks(),function(C){var O=w.getLabel(C);x(C,O)&&T.push(b?C:{formattedLabel:S(C),rawLabel:O,tickValue:C})}),T}z.createAxisLabels=t,z.createAxisTicks=l,z.calculateCategoryInterval=h},"4NO4":function(fe,z,y){var D=y("bYtY"),N=y("ItGF"),L=D.each,E=D.isObject,I=D.isArray,o="series\0";function m(b){return b instanceof Array?b:b==null?[]:[b]}function f(b,w,S){if(b){b[w]=b[w]||{},b.emphasis=b.emphasis||{},b.emphasis[w]=b.emphasis[w]||{};for(var T=0,C=S.length;T<C;T++){var O=S[T];!b.emphasis[w].hasOwnProperty(O)&&b[w].hasOwnProperty(O)&&(b.emphasis[w][O]=b[w][O])}}}var s=["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 t(b){return E(b)&&!I(b)&&!(b instanceof Date)?b.value:b}function l(b){return E(b)&&!(b instanceof Array)}function a(b,w){w=(w||[]).slice();var S=D.map(b||[],function(T,C){return{exist:T}});return L(w,function(T,C){if(!E(T))return;for(var O=0;O<S.length;O++)if(!S[O].option&&T.id!=null&&S[O].exist.id===T.id+""){S[O].option=T,w[C]=null;return}for(var O=0;O<S.length;O++){var _=S[O].exist;if(!S[O].option&&(_.id==null||T.id==null)&&T.name!=null&&!e(T)&&!e(_)&&_.name===T.name+""){S[O].option=T,w[C]=null;return}}}),L(w,function(T,C){if(!E(T))return;for(var O=0;O<S.length;O++){var _=S[O].exist;if(!S[O].option&&!e(_)&&T.id==null){S[O].option=T;break}}O>=S.length&&S.push({option:T})}),S}function r(b){var w=D.createHashMap();L(b,function(S,T){var C=S.exist;C&&w.set(C.id,S)}),L(b,function(S,T){var C=S.option;D.assert(!C||C.id==null||!w.get(C.id)||w.get(C.id)===S,"id duplicates: "+(C&&C.id)),C&&C.id!=null&&w.set(C.id,S),!S.keyInfo&&(S.keyInfo={})}),L(b,function(S,T){var C=S.exist,O=S.option,_=S.keyInfo;if(!E(O))return;if(_.name=O.name!=null?O.name+"":C?C.name:o+T,C)_.id=C.id;else if(O.id!=null)_.id=O.id+"";else{var M=0;do _.id="\0"+_.name+"\0"+M++;while(w.get(_.id))}w.set(_.id,S)})}function u(b){var w=b.name;return!!(w&&w.indexOf(o))}function e(b){return E(b)&&b.id&&(b.id+"").indexOf("\0_ec_\0")===0}function n(b,w){var S={},T={};return C(b||[],S),C(w||[],T,S),[O(S),O(T)];function C(_,M,k){for(var R=0,B=_.length;R<B;R++)for(var P=_[R].seriesId,U=m(_[R].dataIndex),j=k&&k[P],H=0,W=U.length;H<W;H++){var G=U[H];j&&j[G]?j[G]=null:(M[P]||(M[P]={}))[G]=1}}function O(_,M){var k=[];for(var R in _)if(_.hasOwnProperty(R)&&_[R]!=null)if(M)k.push(+R);else{var B=O(_[R],!0);B.length&&k.push({seriesId:R,dataIndex:B})}return k}}function i(b,w){if(w.dataIndexInside!=null)return w.dataIndexInside;if(w.dataIndex!=null)return D.isArray(w.dataIndex)?D.map(w.dataIndex,function(S){return b.indexOfRawIndex(S)}):b.indexOfRawIndex(w.dataIndex);if(w.name!=null)return D.isArray(w.name)?D.map(w.name,function(S){return b.indexOfName(S)}):b.indexOfName(w.name)}function c(){var b="__\0ec_inner_"+d+++"_"+Math.random().toFixed(5);return function(w){return w[b]||(w[b]={})}}var d=0;function h(b,w,S){if(D.isString(w)){var T={};T[w+"Index"]=0,w=T}var C=S&&S.defaultMainType;C&&!p(w,C+"Index")&&!p(w,C+"Id")&&!p(w,C+"Name")&&(w[C+"Index"]=0);var O={};return L(w,function(_,M){var _=w[M];if(M==="dataIndex"||M==="dataIndexInside"){O[M]=_;return}var k=M.match(/^(\w+)(Index|Id|Name)$/)||[],R=k[1],B=(k[2]||"").toLowerCase();if(!R||!B||_==null||B==="index"&&_==="none"||S&&S.includeMainTypes&&D.indexOf(S.includeMainTypes,R)<0)return;var P={mainType:R};(B!=="index"||_!=="all")&&(P[B]=_);var U=b.queryComponents(P);O[R+"Models"]=U,O[R+"Model"]=U[0]}),O}function p(b,w){return b&&b.hasOwnProperty(w)}function g(b,w,S){b.setAttribute?b.setAttribute(w,S):b[w]=S}function v(b,w){return b.getAttribute?b.getAttribute(w):b[w]}function A(b){return b==="auto"?N.domSupported?"html":"richText":b||"html"}function x(b,w){var S=D.createHashMap(),T=[];return D.each(b,function(C){var O=w(C);(S.get(O)||(T.push(O),S.set(O,[]))).push(C)}),{keys:T,buckets:S}}z.normalizeToArray=m,z.defaultEmphasis=f,z.TEXT_STYLE_OPTIONS=s,z.getDataItemValue=t,z.isDataItemOption=l,z.mappingToExists=a,z.makeIdAndName=r,z.isNameSpecified=u,z.isIdInner=e,z.compressBatches=n,z.queryDataIndex=i,z.makeInner=c,z.parseFinder=h,z.setAttribute=g,z.getAttribute=v,z.getTooltipRenderMode=A,z.groupData=x},"4NgU":function(fe,z,y){var D=y("Yl7c");function N(E){this._setting=E||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}N.prototype.parse=function(E){return E},N.prototype.getSetting=function(E){return this._setting[E]},N.prototype.contain=function(E){var I=this._extent;return E>=I[0]&&E<=I[1]},N.prototype.normalize=function(E){var I=this._extent;return I[1]===I[0]?.5:(E-I[0])/(I[1]-I[0])},N.prototype.scale=function(E){var I=this._extent;return E*(I[1]-I[0])+I[0]},N.prototype.unionExtent=function(E){var I=this._extent;E[0]<I[0]&&(I[0]=E[0]),E[1]>I[1]&&(I[1]=E[1])},N.prototype.unionExtentFromData=function(E,I){this.unionExtent(E.getApproximateExtent(I))},N.prototype.getExtent=function(){return this._extent.slice()},N.prototype.setExtent=function(E,I){var o=this._extent;isNaN(E)||(o[0]=E),isNaN(I)||(o[1]=I)},N.prototype.isBlank=function(){return this._isBlank},N.prototype.setBlank=function(E){this._isBlank=E},N.prototype.getLabel=null,D.enableClassExtend(N),D.enableClassManagement(N,{registerWhenExtend:!0});var L=N;fe.exports=L},"4fz+":function(fe,z,y){var D=y("bYtY"),N=y("1bdT"),L=y("mFDi"),E=function(m){m=m||{},N.call(this,m);for(var f in m)m.hasOwnProperty(f)&&(this[f]=m[f]);this._children=[],this.__storage=null,this.__dirty=!0};E.prototype={constructor:E,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(m){return this._children[m]},childOfName:function(m){for(var f=this._children,s=0;s<f.length;s++)if(f[s].name===m)return f[s]},childCount:function(){return this._children.length},add:function(m){return m&&m!==this&&m.parent!==this&&(this._children.push(m),this._doAdd(m)),this},addBefore:function(m,f){if(m&&m!==this&&m.parent!==this&&f&&f.parent===this){var s=this._children,t=s.indexOf(f);t>=0&&(s.splice(t,0,m),this._doAdd(m))}return this},_doAdd:function(m){m.parent&&m.parent.remove(m),m.parent=this;var f=this.__storage,s=this.__zr;f&&f!==m.__storage&&(f.addToStorage(m),m instanceof E&&m.addChildrenToStorage(f)),s&&s.refresh()},remove:function(m){var f=this.__zr,s=this.__storage,t=this._children,l=D.indexOf(t,m);return l<0?this:(t.splice(l,1),m.parent=null,s&&(s.delFromStorage(m),m instanceof E&&m.delChildrenFromStorage(s)),f&&f.refresh(),this)},removeAll:function(){var m=this._children,f=this.__storage,s,t;for(t=0;t<m.length;t++)s=m[t],f&&(f.delFromStorage(s),s instanceof E&&s.delChildrenFromStorage(f)),s.parent=null;return m.length=0,this},eachChild:function(m,f){for(var s=this._children,t=0;t<s.length;t++){var l=s[t];m.call(f,l,t)}return this},traverse:function(m,f){for(var s=0;s<this._children.length;s++){var t=this._children[s];m.call(f,t),t.type==="group"&&t.traverse(m,f)}return this},addChildrenToStorage:function(m){for(var f=0;f<this._children.length;f++){var s=this._children[f];m.addToStorage(s),s instanceof E&&s.addChildrenToStorage(m)}},delChildrenFromStorage:function(m){for(var f=0;f<this._children.length;f++){var s=this._children[f];m.delFromStorage(s),s instanceof E&&s.delChildrenFromStorage(m)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(m){for(var f=null,s=new L(0,0,0,0),t=m||this._children,l=[],a=0;a<t.length;a++){var r=t[a];if(r.ignore||r.invisible)continue;var u=r.getBoundingRect(),e=r.getLocalTransform(l);e?(s.copy(u),s.applyTransform(e),f=f||s.clone(),f.union(s)):(f=f||u.clone(),f.union(u))}return f||s}},D.inherits(E,N);var I=E;fe.exports=I},"4i/N":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="CloseOutlined";var m=z.a=N.forwardRef(o)},"4mN7":function(fe,z,y){var D=y("QBsz"),N=y("Sj9i"),L=Math.min,E=Math.max,I=Math.sin,o=Math.cos,m=Math.PI*2,f=D.create(),s=D.create(),t=D.create();function l(c,d,h){if(c.length===0)return;var p=c[0],g=p[0],v=p[0],A=p[1],x=p[1],b;for(b=1;b<c.length;b++)p=c[b],g=L(g,p[0]),v=E(v,p[0]),A=L(A,p[1]),x=E(x,p[1]);d[0]=g,d[1]=A,h[0]=v,h[1]=x}function a(c,d,h,p,g,v){g[0]=L(c,h),g[1]=L(d,p),v[0]=E(c,h),v[1]=E(d,p)}var r=[],u=[];function e(c,d,h,p,g,v,A,x,b,w){var S=N.cubicExtrema,T=N.cubicAt,C,O=S(c,h,g,A,r);for(b[0]=Infinity,b[1]=Infinity,w[0]=-Infinity,w[1]=-Infinity,C=0;C<O;C++){var _=T(c,h,g,A,r[C]);b[0]=L(_,b[0]),w[0]=E(_,w[0])}for(O=S(d,p,v,x,u),C=0;C<O;C++){var M=T(d,p,v,x,u[C]);b[1]=L(M,b[1]),w[1]=E(M,w[1])}b[0]=L(c,b[0]),w[0]=E(c,w[0]),b[0]=L(A,b[0]),w[0]=E(A,w[0]),b[1]=L(d,b[1]),w[1]=E(d,w[1]),b[1]=L(x,b[1]),w[1]=E(x,w[1])}function n(c,d,h,p,g,v,A,x){var b=N.quadraticExtremum,w=N.quadraticAt,S=E(L(b(c,h,g),1),0),T=E(L(b(d,p,v),1),0),C=w(c,h,g,S),O=w(d,p,v,T);A[0]=L(c,g,C),A[1]=L(d,v,O),x[0]=E(c,g,C),x[1]=E(d,v,O)}function i(c,d,h,p,g,v,A,x,b){var w=D.min,S=D.max,T=Math.abs(g-v);if(T%m<1e-4&&T>1e-4){x[0]=c-h,x[1]=d-p,b[0]=c+h,b[1]=d+p;return}if(f[0]=o(g)*h+c,f[1]=I(g)*p+d,s[0]=o(v)*h+c,s[1]=I(v)*p+d,w(x,f,s),S(b,f,s),g=g%m,g<0&&(g=g+m),v=v%m,v<0&&(v=v+m),g>v&&!A?v+=m:g<v&&A&&(g+=m),A){var C=v;v=g,g=C}for(var O=0;O<v;O+=Math.PI/2)O>g&&(t[0]=o(O)*h+c,t[1]=I(O)*p+d,w(x,t,x),S(b,t,b))}z.fromPoints=l,z.fromLine=a,z.fromCubic=e,z.fromQuadratic=n,z.fromArc=i},"4vCz":function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("X2/X")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="PlusSquareOutlined";var f=E.forwardRef(m);z.default=f},"4xFK":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},"56rv":function(fe,z,y){var D=y("IwbS"),N=y("x3X8"),L=N.getDefaultLabel;function E(o,m,f,s,t,l,a){var r=f.getModel("label"),u=f.getModel("emphasis.label");D.setLabelStyle(o,m,r,u,{labelFetcher:t,labelDataIndex:l,defaultText:L(t.getData(),l),isRectText:!0,autoColor:s}),I(o),I(m)}function I(o,m){o.textPosition==="outside"&&(o.textPosition=m)}z.setLabel=E},"59Ip":function(fe,z,y){var D=y("Sj9i");function N(L,E,I,o,m,f,s,t,l,a,r){if(l===0)return!1;var u=l;if(r>E+u&&r>o+u&&r>f+u&&r>t+u||r<E-u&&r<o-u&&r<f-u&&r<t-u||a>L+u&&a>I+u&&a>m+u&&a>s+u||a<L-u&&a<I-u&&a<m-u&&a<s-u)return!1;var e=D.cubicProjectPoint(L,E,I,o,m,f,s,t,a,r,null);return e<=u/2}z.containStroke=N},"5Dmo":function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("5YgA"),E=y.n(L)},"5GOC":function(fe,z,y){"use strict";var D=y("cIOH"),N=y("b56q"),L=y("15/o")},"5GhG":function(fe,z,y){var D=y("5GtS"),N=y("bYtY"),L=y("L0Ub"),E=L.getDimensionTypeByAxis,I=y("D5nY"),o=I.makeSeriesEncodeForAxisCoordSys,m={_baseAxisDim:null,getInitialData:function(f,s){var t,l=s.getComponent("xAxis",this.get("xAxisIndex")),a=s.getComponent("yAxis",this.get("yAxisIndex")),r=l.get("type"),u=a.get("type"),e;r==="category"?(f.layout="horizontal",t=l.getOrdinalMeta(),e=!0):u==="category"?(f.layout="vertical",t=a.getOrdinalMeta(),e=!0):f.layout=f.layout||"horizontal";var n=["x","y"],i=f.layout==="horizontal"?0:1,c=this._baseAxisDim=n[i],d=n[1-i],h=[l,a],p=h[i].get("type"),g=h[1-i].get("type"),v=f.data;if(v&&e){var A=[];N.each(v,function(w,S){var T;w.value&&N.isArray(w.value)?(T=w.value.slice(),w.value.unshift(S)):N.isArray(w)?(T=w.slice(),w.unshift(S)):T=w,A.push(T)}),f.data=A}var x=this.defaultValueDimensions,b=[{name:c,type:E(p),ordinalMeta:t,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:E(g),dimsDef:x.slice()}];return D(this,{coordDimensions:b,dimensionsCount:x.length+1,encodeDefaulter:N.curry(o,b,this)})},getBaseAxis:function(){var f=this._baseAxisDim;return this.ecModel.getComponent(f+"Axis",this.get(f+"AxisIndex")).axis}};z.seriesModelMixin=m},"5GtS":function(fe,z,y){var D=y("sdST"),N=y("YXkt"),L=y("bYtY"),E=L.extend,I=L.isArray;function o(m,f,s){f=I(f)&&{coordDimensions:f}||E({},f);var t=m.getSource(),l=D(t,f),a=new N(l,m);return a.initData(t,s),a}fe.exports=o},"5Hur":function(fe,z,y){var D=y("4NO4"),N=D.makeInner,L=D.normalizeToArray,E=N();function I(m,f){for(var s=m.length,t=0;t<s;t++)if(m[t].length>f)return m[t];return m[s-1]}var o={clearColorPalette:function(){E(this).colorIdx=0,E(this).colorNameMap={}},getColorFromPalette:function(m,f,s){f=f||this;var t=E(f),l=t.colorIdx||0,a=t.colorNameMap=t.colorNameMap||{};if(a.hasOwnProperty(m))return a[m];var r=L(this.get("color",!0)),u=this.get("colorLayer",!0),e=s==null||!u?r:I(u,s);if(e=e||r,!e||!e.length)return;var n=e[l];return m&&(a[m]=n),t.colorIdx=(l+1)%e.length,n}};fe.exports=o},"5NDa":function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("OnYD"),E=y.n(L),I=y("+L6B")},"5NHt":function(fe,z,y){y("aTJb"),y("OlYY"),y("fc+c"),y("N5BQ"),y("IyUQ"),y("LBfv"),y("noeP")},"5OYt":function(fe,z,y){"use strict";var D=y("J4zp"),N=y.n(D),L=y("q1tI"),E=y.n(L),I=y("ACnJ");function o(){var m=Object(L.useState)({}),f=N()(m,2),s=f[0],t=f[1];return Object(L.useEffect)(function(){var l=I.a.subscribe(function(a){t(a)});return function(){return I.a.unsubscribe(l)}},[]),s}z.a=o},"5RzL":function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("lwsE"),o=y.n(I),m=y("W8MJ"),f=y.n(m),s=y("7W2i"),t=y.n(s),l=y("LQ03"),a=y.n(l),r=y("q1tI"),u=y("1OyB"),e=y("vuIU"),n=y("Ji7U"),i=y("LK+K"),c=y("KQm4"),d=y("U8pU"),h=y("ODXe"),p=y("VTBJ"),g=y("qNPg"),v=y("2Qr1"),A=y("815F"),x=y("NvD2"),b=y("wPlo"),w=y("6cGi"),S=y("Kwbf"),T=y("4IlW"),C=y("YrtM"),O=y("fAei"),_=r.createContext(null);function M(ct,Wt){if(!ct)return!0;var or=ct.data,Fr=or.disabled,er=or.disableCheckbox;switch(Wt){case"select":return Fr;case"checkbox":return Fr||er}return!1}function k(ct,Wt){var or=r.useCallback(function(er){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ot=arguments.length>2?arguments[2]:void 0,lt=ct.get(er);return!Ot&&M(lt,nr)?null:lt},[ct]),Fr=r.useCallback(function(er){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ot=arguments.length>2?arguments[2]:void 0,lt=Wt.get(er);return!Ot&&M(lt,nr)?null:lt},[Wt]);return[or,Fr]}function R(ct){return r.useMemo(function(){var Wt=new Map,or=new Map;return ct.forEach(function(Fr){Wt.set(Fr.key,Fr),or.set(Fr.data.value,Fr)}),[Wt,or]},[ct])}var B={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},P=function(Wt,or){var Fr=Wt.prefixCls,er=Wt.height,nr=Wt.itemHeight,Ot=Wt.virtual,lt=Wt.options,qe=Wt.flattenOptions,tr=Wt.multiple,xr=Wt.searchValue,Ar=Wt.onSelect,fr=Wt.onToggleOpen,vn=Wt.open,$r=Wt.notFoundContent,Ln=Wt.onMouseEnter,tt=r.useContext(_),nt=tt.checkable,Te=tt.checkedKeys,Me=tt.halfCheckedKeys,Xe=tt.treeExpandedKeys,at=tt.treeDefaultExpandAll,zt=tt.treeDefaultExpandedKeys,kt=tt.onTreeExpand,Xt=tt.treeIcon,Dr=tt.showTreeIcon,Pr=tt.switcherIcon,cn=tt.treeLine,jt=tt.treeNodeFilterProp,gt=tt.loadData,dt=tt.treeLoadedKeys,Qt=tt.treeMotion,Jt=tt.onTreeLoad,xt=r.useRef(),Pt=Object(C.a)(function(){return lt},[vn,lt],function(Br,gr){return gr[0]&&Br[1]!==gr[1]}),yt=R(qe),Ut=Object(h.a)(yt,2),pr=Ut[0],sr=Ut[1],ir=k(pr,sr),Yr=Object(h.a)(ir,2),Jr=Yr[0],In=Yr[1],Nn=r.useMemo(function(){return Te.map(function(Br){var gr=In(Br);return gr?gr.key:null})},[Te]),zn=r.useMemo(function(){return nt?{checked:Nn,halfChecked:Me}:null},[Nn,Me,nt]);r.useEffect(function(){if(vn&&!tr&&Nn.length){var Br;(Br=xt.current)===null||Br===void 0||Br.scrollTo({key:Nn[0]})}},[vn]);var ei=String(xr).toLowerCase(),Ai=function(gr){return ei?String(gr[jt]).toLowerCase().includes(ei):!1},Pi=r.useState(zt),$e=Object(h.a)(Pi,2),_e=$e[0],Be=$e[1],He=r.useState(null),Je=Object(h.a)(He,2),Ye=Je[0],et=Je[1],wt=r.useMemo(function(){return Xe?Object(c.a)(Xe):xr?Ye:_e},[_e,Ye,ei,Xe]);r.useEffect(function(){xr&&et(qe.map(function(Br){return Br.key}))},[xr]);var ut=function(gr){Be(gr),et(gr),kt&&kt(gr)},Ft=function(gr){gr.preventDefault()},wr=function(gr,Sn){var Pn=Sn.node.key,ii=Jr(Pn,nt?"checkbox":"select");ii!==null&&Ar(ii.data.value,{selected:!Te.includes(ii.data.value)}),tr||fr(!1)},hr=r.useState(null),Nr=Object(h.a)(hr,2),Kt=Nr[0],un=Nr[1],ar=Jr(Kt);if(r.useImperativeHandle(or,function(){return{onKeyDown:function(gr){var Sn,Pn=gr.which;switch(Pn){case T.a.UP:case T.a.DOWN:case T.a.LEFT:case T.a.RIGHT:(Sn=xt.current)===null||Sn===void 0||Sn.onKeyDown(gr);break;case T.a.ENTER:{ar!==null&&wr(null,{node:{key:Kt},selected:!Te.includes(ar.data.value)});break}case T.a.ESC:fr(!1)}},onKeyUp:function(){}}}),Pt.length===0)return r.createElement("div",{role:"listbox",className:"".concat(Fr,"-empty"),onMouseDown:Ft},$r);var Gr={};return dt&&(Gr.loadedKeys=dt),wt&&(Gr.expandedKeys=wt),r.createElement("div",{onMouseDown:Ft,onMouseEnter:Ln},ar&&vn&&r.createElement("span",{style:B,"aria-live":"assertive"},ar.data.value),r.createElement(O.b,Object.assign({ref:xt,focusable:!1,prefixCls:"".concat(Fr,"-tree"),treeData:Pt,height:er,itemHeight:nr,virtual:Ot,multiple:tr,icon:Xt,showIcon:Dr,switcherIcon:Pr,showLine:cn,loadData:xr?null:gt,motion:Qt,checkable:nt,checkStrictly:!0,checkedKeys:zn,selectedKeys:nt?[]:Nn,defaultExpandAll:at},Gr,{onActiveChange:un,onSelect:wr,onCheck:wr,onExpand:ut,onLoad:Jt,filterTreeNode:Ai})))},U=r.forwardRef(P);U.displayName="OptionList";var j=U,H=function(){return null},W=H,G=y("Ff2n"),V=y("Zm9Q");function Z(ct){return Object(V.a)(ct).map(function(Wt){if(!r.isValidElement(Wt)||!Wt.type)return null;var or=Wt.key,Fr=Wt.props,er=Fr.children,nr=Fr.value,Ot=Object(G.a)(Fr,["children","value"]),lt=Object(p.a)({key:or,value:nr},Ot),qe=Z(er);return qe.length&&(lt.children=qe),lt}).filter(function(Wt){return Wt})}function Y(ct){if(!ct)return ct;var Wt=Object(p.a)({},ct);return"props"in Wt||Object.defineProperty(Wt,"props",{get:function(){return Object(S.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Wt}}),Wt}function Q(ct,Wt,or,Fr,er){var nr=null,Ot=null;function lt(){function qe(tr){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return tr.map(function(fr,vn){var $r="".concat(xr,"-").concat(vn),Ln=or.includes(fr.value),tt=qe(fr.children||[],$r,Ln),nt=r.createElement(W,Object.assign({},fr),tt.map(function(Me){return Me.node}));if(Wt===fr.value&&(nr=nt),Ln){var Te={pos:$r,node:nt,children:tt};return Ar||Ot.push(Te),Te}return null}).filter(function(fr){return fr})}Ot||(Ot=[],qe(Fr),Ot.sort(function(tr,xr){var Ar=tr.node.props.value,fr=xr.node.props.value,vn=or.indexOf(Ar),$r=or.indexOf(fr);return vn-$r}))}Object.defineProperty(ct,"triggerNode",{get:function(){return Object(S.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),lt(),nr}}),Object.defineProperty(ct,"allCheckedNodes",{get:function(){return Object(S.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),lt(),er?Ot:Ot.map(function(tr){var xr=tr.node;return xr})}})}function oe(ct){return Array.isArray(ct)?ct:ct!==void 0?[ct]:[]}function ue(ct,Wt){var or=new Map;return Wt.forEach(function(Fr){var er=Fr.data;or.set(er.value,er)}),ct.map(function(Fr){return Y(or.get(Fr))})}function Le(ct,Wt){var or=ue([ct],Wt)[0];return or?or.disabled:!1}function me(ct){return ct.disabled||ct.disableCheckbox||ct.checkable===!1}function Ie(ct){for(var Wt=ct.parent,or=0,Fr=Wt;Fr;)Fr=Fr.parent,or+=1;return or}function X(ct){function Wt(Fr){return(Fr||[]).map(function(er){var nr=er.value,Ot=er.key,lt=er.children,qe=Object(p.a)(Object(p.a)({},er),{},{key:"key"in er?Ot:nr});return lt&&(qe.children=Wt(lt)),qe})}var or=Object(A.d)(Wt(ct),!0);return or.map(function(Fr){return{key:Fr.data.key,data:Fr.data,level:Ie(Fr)}})}function q(ct){return function(Wt,or){var Fr=or[ct];return String(Fr).toLowerCase().includes(String(Wt).toLowerCase())}}function We(ct,Wt,or){var Fr=or.optionFilterProp,er=or.filterOption;if(er===!1)return Wt;var nr;typeof er=="function"?nr=er:nr=q(Fr);function Ot(lt){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return lt.map(function(tr){var xr=tr.children,Ar=qe||nr(ct,Y(tr)),fr=Ot(xr||[],Ar);return Ar||fr.length?Object(p.a)(Object(p.a)({},tr),{},{children:fr}):null}).filter(function(tr){return tr})}return Ot(Wt)}function $(ct,Wt,or,Fr){var er=new Map;return oe(Wt).forEach(function(nr){nr&&Object(d.a)(nr)==="object"&&"value"in nr&&er.set(nr.value,nr)}),ct.map(function(nr){var Ot={value:nr},lt=or(nr,"select",!0),qe=lt?Fr(lt.data):nr;if(er.has(nr)){var tr=er.get(nr);Ot.label="label"in tr?tr.label:qe,"halfChecked"in tr&&(Ot.halfChecked=tr.halfChecked)}else Ot.label=qe;return Ot})}function J(ct,Wt){var or=new Set(ct);return or.add(Wt),Array.from(or)}function le(ct,Wt){var or=new Set(ct);return or.delete(Wt),Array.from(or)}function de(ct){var Wt=ct.searchPlaceholder,or=ct.treeCheckStrictly,Fr=ct.treeCheckable,er=ct.labelInValue,nr=ct.value,Ot=ct.multiple;Object(S.a)(!Wt,"`searchPlaceholder` has been removed."),or&&er===!1&&Object(S.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(er||or)&&Object(S.a)(oe(nr).every(function(lt){return lt&&Object(d.a)(lt)==="object"&&"value"in lt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),or||Ot||Fr?Object(S.a)(!nr||Array.isArray(nr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(S.a)(!Array.isArray(nr),"`value` should not be array when `TreeSelect` is single mode.")}var Ne=de,we=10;function De(ct,Wt){var or=Wt.id,Fr=Wt.pId,er=Wt.rootPId,nr={},Ot=[],lt=ct.map(function(qe){var tr=Object(p.a)({},qe),xr=tr[or];return nr[xr]=tr,tr.key=tr.key||xr,tr});return lt.forEach(function(qe){var tr=qe[Fr],xr=nr[tr];xr&&(xr.children=xr.children||[],xr.children.push(qe)),(tr===er||!xr&&er===null)&&Ot.push(qe)}),Ot}function Ee(ct,Wt){var or=0,Fr=new Set;function er(nr){return(nr||[]).map(function(Ot){var lt=Ot.key,qe=Ot.value,tr=Ot.children,xr=Object(G.a)(Ot,["key","value","children"]),Ar="value"in Ot?qe:lt,fr=Object(p.a)(Object(p.a)({},xr),{},{key:lt!=null?lt:Ar,value:Ar,title:Wt(Ot)});return"children"in Ot&&(fr.children=er(tr)),fr})}return er(ct)}function ce(ct,Wt,or){var Fr=or.getLabelProp,er=or.simpleMode,nr=r.useRef({});return ct?(nr.current.formatTreeData=nr.current.treeData===ct?nr.current.formatTreeData:Ee(er?De(ct,Object(p.a)({id:"id",pId:"pId",rootPId:null},er!==!0?er:{})):ct,Fr),nr.current.treeData=ct):nr.current.formatTreeData=nr.current.children===Wt?nr.current.formatTreeData:Ee(Z(Wt),Fr),nr.current.formatTreeData}var ne="SHOW_ALL",ee="SHOW_PARENT",Ae="SHOW_CHILD";function Ve(ct,Wt,or){var Fr=new Set(ct);return Wt===Ae?ct.filter(function(er){var nr=or[er];return!(nr&&nr.children&&nr.children.every(function(Ot){var lt=Ot.node;return me(lt)||Fr.has(lt.key)}))}):Wt===ee?ct.filter(function(er){var nr=or[er],Ot=nr?nr.parent:null;return!(Ot&&!me(Ot.node)&&Fr.has(Ot.node.key))}):ct}function Ke(ct,Wt){var or=Wt.value,Fr=Wt.getEntityByValue,er=Wt.getEntityByKey,nr=Wt.treeConduction,Ot=Wt.showCheckedStrategy,lt=Wt.conductKeyEntities,qe=Wt.getLabelProp;return r.useMemo(function(){var tr=ct;if(nr){var xr=Ve(ct.map(function(Ar){var fr=Fr(Ar);return fr?fr.key:Ar}),Ot,lt);tr=xr.map(function(Ar){var fr=er(Ar);return fr?fr.data.value:Ar})}return $(tr,or,Fr,qe)},[ct,or,nr,Ot,Fr])}var Oe=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],it=Object(g.a)({prefixCls:"rc-tree-select",components:{optionList:j},convertChildrenToData:function(){return null},flattenOptions:X,getLabeledValue:v.e,filterOptions:We,isValueDisabled:Le,findValueOption:ue,omitDOMProps:function(Wt){var or=Object(p.a)({},Wt);return Oe.forEach(function(Fr){delete or[Fr]}),or}});it.displayName="Select";var Fe=r.forwardRef(function(ct,Wt){var or=ct.multiple,Fr=ct.treeCheckable,er=ct.treeCheckStrictly,nr=ct.showCheckedStrategy,Ot=nr===void 0?"SHOW_CHILD":nr,lt=ct.labelInValue,qe=ct.loadData,tr=ct.treeLoadedKeys,xr=ct.treeNodeFilterProp,Ar=xr===void 0?"value":xr,fr=ct.treeNodeLabelProp,vn=ct.treeDataSimpleMode,$r=ct.treeData,Ln=ct.treeExpandedKeys,tt=ct.treeDefaultExpandedKeys,nt=ct.treeDefaultExpandAll,Te=ct.children,Me=ct.treeIcon,Xe=ct.showTreeIcon,at=ct.switcherIcon,zt=ct.treeLine,kt=ct.treeMotion,Xt=ct.filterTreeNode,Dr=ct.dropdownPopupAlign,Pr=ct.onChange,cn=ct.onTreeExpand,jt=ct.onTreeLoad,gt=ct.onDropdownVisibleChange,dt=ct.onSelect,Qt=ct.onDeselect,Jt=Fr||er,xt=or||Jt,Pt=Fr&&!er,yt=er||lt,Ut=r.useRef(null);r.useImperativeHandle(Wt,function(){return{focus:Ut.current.focus,blur:Ut.current.blur}});var pr=function(Pn){return $r&&Pn.label||Pn.title},sr=function(Pn){return fr?Pn[fr]:pr(Pn)},ir=ce($r,Te,{getLabelProp:pr,simpleMode:vn}),Yr=Object(r.useMemo)(function(){return X(ir)},[ir]),Jr=R(Yr),In=Object(h.a)(Jr,2),Nn=In[0],zn=In[1],ei=k(Nn,zn),Ai=Object(h.a)(ei,2),Pi=Ai[0],$e=Ai[1],_e=Object(r.useMemo)(function(){return Pt?Object(A.a)(ir):{keyEntities:null}},[ir,Fr,er]),Be=_e.keyEntities,He=Object(w.a)(ct.defaultValue,{value:ct.value}),Je=Object(h.a)(He,2),Ye=Je[0],et=Je[1],wt=function(Pn){var ii=[],oi=[];return Pn.forEach(function(ti){$e(ti)?oi.push(ti):ii.push(ti)}),{missingRawValues:ii,existRawValues:oi}},ut=Object(r.useMemo)(function(){var Sn=[],Pn=[];if(oe(Ye).forEach(function(Vr){if(Vr&&Object(d.a)(Vr)==="object"&&"value"in Vr)if(Vr.halfChecked&&er){var xn=$e(Vr.value);Sn.push(xn?xn.key:Vr.value)}else Pn.push(Vr.value);else Pn.push(Vr)}),Pt){var ii=wt(Pn),oi=ii.missingRawValues,ti=ii.existRawValues,bi=ti.map(function(Vr){return $e(Vr).key}),kn=Object(x.a)(bi,!0,Be),Ii=kn.checkedKeys,gn=kn.halfCheckedKeys;return[[].concat(Object(c.a)(oi),Object(c.a)(Ii.map(function(Vr){return Pi(Vr).data.value}))),gn]}return[Pn,Sn]},[Ye,xt,yt,Fr,er]),Ft=Object(h.a)(ut,2),wr=Ft[0],hr=Ft[1],Nr=Ke(wr,{treeConduction:Pt,value:Ye,showCheckedStrategy:Ot,conductKeyEntities:Be,getEntityByValue:$e,getEntityByKey:Pi,getLabelProp:sr}),Kt=function(Pn,ii,oi){if(et(xt?Pn:Pn[0]),Pr){var ti=Pn;if(Pt&&Ot!=="SHOW_ALL"){var bi=Pn.map(function(wi){var Qn=$e(wi);return Qn?Qn.key:wi}),kn=Ve(bi,Ot,Be);ti=kn.map(function(wi){var Qn=Pi(wi);return Qn?Qn.data.value:wi})}var Ii=ii||{triggerValue:void 0,selected:void 0},gn=Ii.triggerValue,Vr=Ii.selected,xn=yt?$(ti,Ye,$e,sr):ti;if(er){var tn=hr.map(function(wi){var Qn=Pi(wi);return Qn?Qn.data.value:wi}).filter(function(wi){return!ti.includes(wi)});xn=[].concat(Object(c.a)(xn),Object(c.a)($(tn,Ye,$e,sr)))}var ui={preValue:Nr,triggerValue:gn},qn=!0;(er||oi==="selection"&&!Vr)&&(qn=!1),Q(ui,gn,Pn,ir,qn),Jt?ui.checked=Vr:ui.selected=Vr,Pr(xt?xn:xn[0],yt?null:ti.map(function(wi){var Qn=$e(wi);return Qn?sr(Qn.data):null}),ui)}},un=function(Pn,ii,oi){var ti=Pn;if(!xt)Kt([Pn],{selected:!0,triggerValue:Pn},oi);else{var bi=J(wr,Pn);if(Pt){var kn=wt(bi),Ii=kn.missingRawValues,gn=kn.existRawValues,Vr=gn.map(function(ui){return $e(ui).key}),xn=Object(x.a)(Vr,!0,Be),tn=xn.checkedKeys;bi=[].concat(Object(c.a)(Ii),Object(c.a)(tn.map(function(ui){return Pi(ui).data.value})))}Kt(bi,{selected:!0,triggerValue:Pn},oi)}dt&&dt(ti,ii)},ar=function(Pn,ii,oi){var ti=Pn,bi=le(wr,Pn);if(Pt){var kn=wt(bi),Ii=kn.missingRawValues,gn=kn.existRawValues,Vr=gn.map(function(ui){return $e(ui).key}),xn=Object(x.a)(Vr,{checked:!1,halfCheckedKeys:hr},Be),tn=xn.checkedKeys;bi=[].concat(Object(c.a)(Ii),Object(c.a)(tn.map(function(ui){return Pi(ui).data.value})))}Kt(bi,{selected:!1,triggerValue:Pn},oi),Qt&&Qt(ti,ii)},Gr=function(){Kt([],null,"clear")},Br=r.useCallback(function(Sn){if(gt){var Pn={};Object.defineProperty(Pn,"documentClickClose",{get:function(){return Object(S.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),gt(Sn,Pn)}},[gt]),gr={optionLabelProp:null,optionFilterProp:Ar,dropdownAlign:Dr,internalProps:{mark:b.a,onClear:Gr,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:un,onRawDeselect:ar}};return"filterTreeNode"in ct&&(gr.filterOption=Xt),r.createElement(_.Provider,{value:{checkable:Jt,loadData:qe,treeLoadedKeys:tr,onTreeLoad:jt,checkedKeys:wr,halfCheckedKeys:hr,treeDefaultExpandAll:nt,treeExpandedKeys:Ln,treeDefaultExpandedKeys:tt,onTreeExpand:cn,treeIcon:Me,treeMotion:kt,showTreeIcon:Xe,switcherIcon:at,treeLine:zt,treeNodeFilterProp:Ar}},r.createElement(it,Object.assign({ref:Ut,mode:xt?"multiple":null},ct,gr,{value:Nr,labelInValue:!0,options:ir,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Br})))}),ft=function(ct){Object(n.a)(or,ct);var Wt=Object(i.a)(or);function or(){var Fr;return Object(u.a)(this,or),Fr=Wt.apply(this,arguments),Fr.selectRef=r.createRef(),Fr.focus=function(){Fr.selectRef.current.focus()},Fr.blur=function(){Fr.selectRef.current.blur()},Fr}return Object(e.a)(or,[{key:"render",value:function(){return r.createElement(Fe,Object.assign({ref:this.selectRef},this.props))}}]),or}(r.Component);ft.TreeNode=W,ft.SHOW_ALL=ne,ft.SHOW_PARENT=ee,ft.SHOW_CHILD=Ae;var At=ft,bt=At,St=y("TSYQ"),Et=y.n(St),je=y("BGR+"),pe=y("H84U"),ie=y("uaoM"),st=y("1vzs"),Qe=y("2jpz"),ve=y("3Nzz"),Bt=function(ct){t()(or,ct);var Wt=a()(or);function or(Fr){var er;return o()(this,or),er=Wt.call(this,Fr),er.selectRef=r.createRef(),er.renderTreeSelect=function(nr){var Ot=nr.getPopupContainer,lt=nr.getPrefixCls,qe=nr.renderEmpty,tr=nr.direction,xr=nr.virtual,Ar=nr.dropdownMatchSelectWidth,fr=er.props,vn=fr.prefixCls,$r=fr.size,Ln=fr.className,tt=fr.treeCheckable,nt=fr.multiple,Te=fr.listHeight,Me=Te===void 0?256:Te,Xe=fr.listItemHeight,at=Xe===void 0?26:Xe,zt=fr.notFoundContent,kt=fr.switcherIcon,Xt=fr.treeLine,Dr=fr.getPopupContainer,Pr=fr.dropdownClassName,cn=fr.bordered,jt=fr.treeIcon,gt=jt===void 0?!1:jt,dt=lt("select",vn),Qt=lt("select-tree",vn),Jt=lt("tree-select",vn),xt=Et()(Pr,"".concat(Jt,"-dropdown"),E()({},"".concat(Jt,"-dropdown-rtl"),tr==="rtl")),Pt=!!(tt||nt),yt=Object(st.a)(N()(N()({},er.props),{multiple:Pt,prefixCls:dt})),Ut=yt.suffixIcon,pr=yt.itemIcon,sr=yt.removeIcon,ir=yt.clearIcon,Yr;zt!==void 0?Yr=zt:Yr=qe("Select");var Jr=Object(je.default)(er.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return r.createElement(ve.b.Consumer,null,function(In){var Nn,zn=$r||In,ei=Et()(!vn&&Jt,(Nn={},E()(Nn,"".concat(dt,"-lg"),zn==="large"),E()(Nn,"".concat(dt,"-sm"),zn==="small"),E()(Nn,"".concat(dt,"-rtl"),tr==="rtl"),E()(Nn,"".concat(dt,"-borderless"),!cn),Nn),Ln);return r.createElement(bt,N()({virtual:xr,dropdownMatchSelectWidth:Ar},Jr,{ref:er.selectRef,prefixCls:dt,className:ei,listHeight:Me,listItemHeight:at,treeCheckable:tt&&r.createElement("span",{className:"".concat(dt,"-tree-checkbox-inner")}),inputIcon:Ut,menuItemSelectedIcon:pr,removeIcon:sr,clearIcon:ir,switcherIcon:function(Pi){return Object(Qe.a)(Qt,kt,Xt,Pi)},showTreeIcon:gt,notFoundContent:Yr,getPopupContainer:Dr||Ot,treeMotion:null,dropdownClassName:xt}))})},Object(ie.a)(Fr.multiple!==!1||!Fr.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),er}return f()(or,[{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 r.createElement(pe.a,null,this.renderTreeSelect)}}]),or}(r.Component);Bt.TreeNode=W,Bt.SHOW_ALL=ne,Bt.SHOW_PARENT=ee,Bt.SHOW_CHILD=Ae,Bt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var qt=z.a=Bt},"5Uyt":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("KmBX"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},"5YOS":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("xb2K"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},"5YgA":function(fe,z,y){},"5bA4":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="LeftOutlined";var m=z.a=N.forwardRef(o)},"5hvy":function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("MlIO"))})(this,function(D){return function(N){var L=D,E=L.lib,I=E.WordArray,o=E.Hasher,m=L.x64,f=m.Word,s=L.algo,t=[],l=[],a=[];(function(){for(var e=1,n=0,i=0;i<24;i++){t[e+5*n]=(i+1)*(i+2)/2%64;var c=n%5,d=(2*e+3*n)%5;e=c,n=d}for(var e=0;e<5;e++)for(var n=0;n<5;n++)l[e+5*n]=n+(2*e+3*n)%5*5;for(var h=1,p=0;p<24;p++){for(var g=0,v=0,A=0;A<7;A++){if(h&1){var x=(1<<A)-1;x<32?v^=1<<x:g^=1<<x-32}h&128?h=h<<1^113:h<<=1}a[p]=f.create(g,v)}})();var r=[];(function(){for(var e=0;e<25;e++)r[e]=f.create()})();var u=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var n=this._state=[],i=0;i<25;i++)n[i]=new f.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(n,i){for(var c=this._state,d=this.blockSize/2,h=0;h<d;h++){var p=n[i+2*h],g=n[i+2*h+1];p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360;var v=c[h];v.high^=g,v.low^=p}for(var A=0;A<24;A++){for(var x=0;x<5;x++){for(var b=0,w=0,S=0;S<5;S++){var v=c[x+5*S];b^=v.high,w^=v.low}var T=r[x];T.high=b,T.low=w}for(var x=0;x<5;x++)for(var C=r[(x+4)%5],O=r[(x+1)%5],_=O.high,M=O.low,b=C.high^(_<<1|M>>>31),w=C.low^(M<<1|_>>>31),S=0;S<5;S++){var v=c[x+5*S];v.high^=b,v.low^=w}for(var k=1;k<25;k++){var b,w,v=c[k],R=v.high,B=v.low,P=t[k];P<32?(b=R<<P|B>>>32-P,w=B<<P|R>>>32-P):(b=B<<P-32|R>>>64-P,w=R<<P-32|B>>>64-P);var U=r[l[k]];U.high=b,U.low=w}var j=r[0],H=c[0];j.high=H.high,j.low=H.low;for(var x=0;x<5;x++)for(var S=0;S<5;S++){var k=x+5*S,v=c[k],W=r[k],G=r[(x+1)%5+5*S],V=r[(x+2)%5+5*S];v.high=W.high^~G.high&V.high,v.low=W.low^~G.low&V.low}var v=c[0],Z=a[A];v.high^=Z.high,v.low^=Z.low}},_doFinalize:function(){var n=this._data,i=n.words,c=this._nDataBytes*8,d=n.sigBytes*8,h=this.blockSize*32;i[d>>>5]|=1<<24-d%32,i[(N.ceil((d+1)/h)*h>>>5)-1]|=128,n.sigBytes=i.length*4,this._process();for(var p=this._state,g=this.cfg.outputLength/8,v=g/8,A=[],x=0;x<v;x++){var b=p[x],w=b.high,S=b.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,A.push(S),A.push(w)}return new I.init(A,g)},clone:function(){for(var n=o.clone.call(this),i=n._state=this._state.slice(0),c=0;c<25;c++)i[c]=i[c].clone();return n}});L.SHA3=o._createHelper(u),L.HmacSHA3=o._createHmacHelper(u)}(Math),D.SHA3})},"5nXd":function(fe,z,y){var D=y("MFOe"),N=D.slice,L=D.pluck,E=D.each,I=D.bind,o=D.create,m=D.isList,f=D.isFunction,s=D.isObject;fe.exports={createStore:a};var t={version:"2.0.12",enabled:!1,get:function(u,e){var n=this.storage.read(this._namespacePrefix+u);return this._deserialize(n,e)},set:function(u,e){return e===void 0?this.remove(u):(this.storage.write(this._namespacePrefix+u,this._serialize(e)),e)},remove:function(u){this.storage.remove(this._namespacePrefix+u)},each:function(u){var e=this;this.storage.each(function(n,i){u.call(e,e._deserialize(n),(i||"").replace(e._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(u){return this._namespacePrefix=="__storejs_"+u+"_"},createStore:function(){return a.apply(this,arguments)},addPlugin:function(u){this._addPlugin(u)},namespace:function(u){return a(this.storage,this.plugins,u)}};function l(){var r=typeof console=="undefined"?null:console;if(!r)return;var u=r.warn?r.warn:r.log;u.apply(r,arguments)}function a(r,u,e){e||(e=""),r&&!m(r)&&(r=[r]),u&&!m(u)&&(u=[u]);var n=e?"__storejs_"+e+"_":"",i=e?new RegExp("^"+n):null,c=/^[a-zA-Z0-9_\-]*$/;if(!c.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var d={_namespacePrefix:n,_namespaceRegexp:i,_testStorage:function(g){try{var v="__storejs__test__";g.write(v,v);var A=g.read(v)===v;return g.remove(v),A}catch(x){return!1}},_assignPluginFnProp:function(g,v){var A=this[v];this[v]=function(){var b=N(arguments,0),w=this;function S(){return A?(E(arguments,function(C,O){b[O]=C}),A.apply(w,b)):void 0}var T=[S].concat(b);return g.apply(w,T)}},_serialize:function(g){return JSON.stringify(g)},_deserialize:function(g,v){if(!g)return v;var A="";try{A=JSON.parse(g)}catch(x){A=g}return A!==void 0?A:v},_addStorage:function(g){if(this.enabled)return;this._testStorage(g)&&(this.storage=g,this.enabled=!0)},_addPlugin:function(g){var v=this;if(m(g)){E(g,function(b){v._addPlugin(b)});return}var A=L(this.plugins,function(b){return g===b});if(A)return;if(this.plugins.push(g),!f(g))throw new Error("Plugins must be function values that return objects");var x=g.call(this);if(!s(x))throw new Error("Plugins must return an object of function properties");E(x,function(b,w){if(!f(b))throw new Error("Bad plugin property: "+w+" from plugin "+g.name+". Plugins should only return functions.");v._assignPluginFnProp(b,w)})},addStorage:function(g){l("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(g)}},h=o(d,t,{plugins:[]});return h.raw={},E(h,function(p,g){f(p)&&(h.raw[g]=I(h,p))}),E(r,function(p){h._addStorage(p)}),E(u,function(p){h._addPlugin(p)}),h}},"5rEg":function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lwsE"),E=y.n(L),I=y("W8MJ"),o=y.n(I),m=y("7W2i"),f=y.n(m),s=y("LQ03"),t=y.n(s),l=y("lSNA"),a=y.n(l),r=y("q1tI"),u=y("TSYQ"),e=y.n(u),n=y("BGR+"),i=y("kbBi"),c=y.n(i),d=y("CWQg"),h=y("0n0R"),p=Object(d.a)("text","input");function g(de){return!!(de.prefix||de.suffix||de.allowClear)}var v=function(de){f()(we,de);var Ne=t()(we);function we(){var De;return E()(this,we),De=Ne.apply(this,arguments),De.containerRef=r.createRef(),De.onInputMouseUp=function(Ee){var ce;if((ce=De.containerRef.current)===null||ce===void 0?void 0:ce.contains(Ee.target)){var ne=De.props.triggerFocus;ne()}},De}return o()(we,[{key:"renderClearIcon",value:function(Ee){var ce=this.props,ne=ce.allowClear,ee=ce.value,Ae=ce.disabled,Ve=ce.readOnly,Ke=ce.inputType,Oe=ce.handleReset;if(!ne)return null;var it=!Ae&&!Ve&&ee,Fe=Ke===p[0]?"".concat(Ee,"-textarea-clear-icon"):"".concat(Ee,"-clear-icon");return r.createElement(c.a,{onClick:Oe,className:e()(Fe,a()({},"".concat(Fe,"-hidden"),!it)),role:"button"})}},{key:"renderSuffix",value:function(Ee){var ce=this.props,ne=ce.suffix,ee=ce.allowClear;return ne||ee?r.createElement("span",{className:"".concat(Ee,"-suffix")},this.renderClearIcon(Ee),ne):null}},{key:"renderLabeledIcon",value:function(Ee,ce){var ne,ee=this.props,Ae=ee.focused,Ve=ee.value,Ke=ee.prefix,Oe=ee.className,it=ee.size,Fe=ee.suffix,ft=ee.disabled,At=ee.allowClear,bt=ee.direction,St=ee.style,Et=ee.readOnly,je=ee.bordered,pe=this.renderSuffix(Ee);if(!g(this.props))return Object(h.a)(ce,{value:Ve});var ie=Ke?r.createElement("span",{className:"".concat(Ee,"-prefix")},Ke):null,st=e()(Oe,"".concat(Ee,"-affix-wrapper"),(ne={},a()(ne,"".concat(Ee,"-affix-wrapper-focused"),Ae),a()(ne,"".concat(Ee,"-affix-wrapper-disabled"),ft),a()(ne,"".concat(Ee,"-affix-wrapper-sm"),it==="small"),a()(ne,"".concat(Ee,"-affix-wrapper-lg"),it==="large"),a()(ne,"".concat(Ee,"-affix-wrapper-input-with-clear-btn"),Fe&&At&&Ve),a()(ne,"".concat(Ee,"-affix-wrapper-rtl"),bt==="rtl"),a()(ne,"".concat(Ee,"-affix-wrapper-readonly"),Et),a()(ne,"".concat(Ee,"-affix-wrapper-borderless"),!je),ne));return r.createElement("span",{ref:this.containerRef,className:st,style:St,onMouseUp:this.onInputMouseUp},ie,Object(h.a)(ce,{style:null,value:Ve,className:C(Ee,je,it,ft)}),pe)}},{key:"renderInputWithLabel",value:function(Ee,ce){var ne,ee,Ae=this.props,Ve=Ae.addonBefore,Ke=Ae.addonAfter,Oe=Ae.style,it=Ae.size,Fe=Ae.className,ft=Ae.direction;if(!Ve&&!Ke)return ce;var At="".concat(Ee,"-group"),bt="".concat(At,"-addon"),St=Ve?r.createElement("span",{className:bt},Ve):null,Et=Ke?r.createElement("span",{className:bt},Ke):null,je=e()("".concat(Ee,"-wrapper"),(ne={},a()(ne,At,Ve||Ke),a()(ne,"".concat(At,"-rtl"),ft==="rtl"),ne)),pe=e()(Fe,"".concat(Ee,"-group-wrapper"),(ee={},a()(ee,"".concat(Ee,"-group-wrapper-sm"),it==="small"),a()(ee,"".concat(Ee,"-group-wrapper-lg"),it==="large"),a()(ee,"".concat(Ee,"-group-wrapper-rtl"),ft==="rtl"),ee));return r.createElement("span",{className:pe,style:Oe},r.createElement("span",{className:je},St,Object(h.a)(ce,{style:null}),Et))}},{key:"renderTextAreaWithClearIcon",value:function(Ee,ce){var ne,ee=this.props,Ae=ee.value,Ve=ee.allowClear,Ke=ee.className,Oe=ee.style,it=ee.direction,Fe=ee.bordered;if(!Ve)return Object(h.a)(ce,{value:Ae});var ft=e()(Ke,"".concat(Ee,"-affix-wrapper"),"".concat(Ee,"-affix-wrapper-textarea-with-clear-btn"),(ne={},a()(ne,"".concat(Ee,"-affix-wrapper-rtl"),it==="rtl"),a()(ne,"".concat(Ee,"-affix-wrapper-borderless"),!Fe),ne));return r.createElement("span",{className:ft,style:Oe},Object(h.a)(ce,{style:null,value:Ae}),this.renderClearIcon(Ee))}},{key:"render",value:function(){var Ee=this.props,ce=Ee.prefixCls,ne=Ee.inputType,ee=Ee.element;return ne===p[0]?this.renderTextAreaWithClearIcon(ce,ee):this.renderInputWithLabel(ce,this.renderLabeledIcon(ce,ee))}}]),we}(r.Component),A=v,x=y("H84U"),b=y("3Nzz"),w=y("uaoM");function S(de){return typeof de=="undefined"||de===null?"":de}function T(de,Ne,we){if(we){var De=Ne;if(Ne.type==="click"){De=Object.create(Ne),De.target=de,De.currentTarget=de;var Ee=de.value;de.value="",we(De),de.value=Ee;return}we(De)}}function C(de,Ne,we,De,Ee){var ce;return e()(de,(ce={},a()(ce,"".concat(de,"-sm"),we==="small"),a()(ce,"".concat(de,"-lg"),we==="large"),a()(ce,"".concat(de,"-disabled"),De),a()(ce,"".concat(de,"-rtl"),Ee==="rtl"),a()(ce,"".concat(de,"-borderless"),!Ne),ce))}var O=function(de){f()(we,de);var Ne=t()(we);function we(De){var Ee;E()(this,we),Ee=Ne.call(this,De),Ee.direction="ltr",Ee.focus=function(){Ee.input.focus()},Ee.saveClearableInput=function(ne){Ee.clearableInput=ne},Ee.saveInput=function(ne){Ee.input=ne},Ee.onFocus=function(ne){var ee=Ee.props.onFocus;Ee.setState({focused:!0},Ee.clearPasswordValueAttribute),ee&&ee(ne)},Ee.onBlur=function(ne){var ee=Ee.props.onBlur;Ee.setState({focused:!1},Ee.clearPasswordValueAttribute),ee&&ee(ne)},Ee.handleReset=function(ne){Ee.setValue("",function(){Ee.focus()}),T(Ee.input,ne,Ee.props.onChange)},Ee.renderInput=function(ne,ee,Ae){var Ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ke=Ee.props,Oe=Ke.className,it=Ke.addonBefore,Fe=Ke.addonAfter,ft=Ke.size,At=Ke.disabled,bt=Object(n.default)(Ee.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return r.createElement("input",N()({autoComplete:Ve.autoComplete},bt,{onChange:Ee.handleChange,onFocus:Ee.onFocus,onBlur:Ee.onBlur,onKeyDown:Ee.handleKeyDown,className:e()(C(ne,Ae,ft||ee,At,Ee.direction),a()({},Oe,Oe&&!it&&!Fe)),ref:Ee.saveInput}))},Ee.clearPasswordValueAttribute=function(){Ee.removePasswordTimeout=setTimeout(function(){Ee.input&&Ee.input.getAttribute("type")==="password"&&Ee.input.hasAttribute("value")&&Ee.input.removeAttribute("value")})},Ee.handleChange=function(ne){Ee.setValue(ne.target.value,Ee.clearPasswordValueAttribute),T(Ee.input,ne,Ee.props.onChange)},Ee.handleKeyDown=function(ne){var ee=Ee.props,Ae=ee.onPressEnter,Ve=ee.onKeyDown;ne.keyCode===13&&Ae&&Ae(ne),Ve&&Ve(ne)},Ee.renderComponent=function(ne){var ee=ne.getPrefixCls,Ae=ne.direction,Ve=ne.input,Ke=Ee.state,Oe=Ke.value,it=Ke.focused,Fe=Ee.props,ft=Fe.prefixCls,At=Fe.bordered,bt=At===void 0?!0:At,St=ee("input",ft);return Ee.direction=Ae,r.createElement(b.b.Consumer,null,function(Et){return r.createElement(A,N()({size:Et},Ee.props,{prefixCls:St,inputType:"input",value:S(Oe),element:Ee.renderInput(St,Et,bt,Ve),handleReset:Ee.handleReset,ref:Ee.saveClearableInput,direction:Ae,focused:it,triggerFocus:Ee.focus,bordered:bt}))})};var ce=typeof De.value=="undefined"?De.defaultValue:De.value;return Ee.state={value:ce,focused:!1,prevValue:De.value},Ee}return o()(we,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(Ee){return g(Ee)!==g(this.props)&&Object(w.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(Ee,ce){this.props.value===void 0&&this.setState({value:Ee},ce)}},{key:"render",value:function(){return r.createElement(x.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Ee,ce){var ne=ce.prevValue,ee={prevValue:Ee.value};return(Ee.value!==void 0||ne!==Ee.value)&&(ee.value=Ee.value),ee}}]),we}(r.Component);O.defaultProps={type:"text"};var _=O,M=function(Ne){return r.createElement(x.a,null,function(we){var De,Ee=we.getPrefixCls,ce=we.direction,ne=Ne.prefixCls,ee=Ne.className,Ae=ee===void 0?"":ee,Ve=Ee("input-group",ne),Ke=e()(Ve,(De={},a()(De,"".concat(Ve,"-lg"),Ne.size==="large"),a()(De,"".concat(Ve,"-sm"),Ne.size==="small"),a()(De,"".concat(Ve,"-compact"),Ne.compact),a()(De,"".concat(Ve,"-rtl"),ce==="rtl"),De),Ae);return r.createElement("span",{className:Ke,style:Ne.style,onMouseEnter:Ne.onMouseEnter,onMouseLeave:Ne.onMouseLeave,onFocus:Ne.onFocus,onBlur:Ne.onBlur},Ne.children)})},k=M,R=y("c+Xe"),B=y("w6Tc"),P=y.n(B),U=y("gZBC"),j=y.n(U),H=y("2/Rp"),W=function(de,Ne){var we={};for(var De in de)Object.prototype.hasOwnProperty.call(de,De)&&Ne.indexOf(De)<0&&(we[De]=de[De]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,De=Object.getOwnPropertySymbols(de);Ee<De.length;Ee++)Ne.indexOf(De[Ee])<0&&Object.prototype.propertyIsEnumerable.call(de,De[Ee])&&(we[De[Ee]]=de[De[Ee]]);return we},G=r.forwardRef(function(de,Ne){var we=r.useRef(null),De=function(Oe){var it=de.onChange,Fe=de.onSearch;Oe&&Oe.target&&Oe.type==="click"&&Fe&&Fe(Oe.target.value,Oe),it&&it(Oe)},Ee=function(Oe){var it;document.activeElement===((it=we.current)===null||it===void 0?void 0:it.input)&&Oe.preventDefault()},ce=function(Oe){var it,Fe=de.onSearch,ft=de.loading,At=de.disabled;if(ft||At)return;Fe&&Fe((it=we.current)===null||it===void 0?void 0:it.input.value,Oe)},ne=function(Oe){var it=de.enterButton,Fe=de.size;return it?r.createElement(b.b.Consumer,{key:"enterButton"},function(ft){return r.createElement(H.a,{className:"".concat(Oe,"-button"),type:"primary",size:Fe||ft},r.createElement(j.a,null))}):r.createElement(j.a,{className:"".concat(Oe,"-icon"),key:"loadingIcon"})},ee=function(Oe){var it=de.suffix,Fe=de.enterButton,ft=de.loading;if(ft&&!Fe)return[it,ne(Oe)];if(Fe)return it;var At=r.createElement(P.a,{className:"".concat(Oe,"-icon"),key:"searchIcon",onClick:ce});return it?[Object(h.c)(it,null,{key:"suffix"}),At]:At},Ae=function(Oe,it){var Fe=de.enterButton,ft=de.disabled,At=de.addonAfter,bt=de.loading,St="".concat(Oe,"-button");if(bt&&Fe)return[ne(Oe),At];if(!Fe)return At;var Et,je=Fe,pe=je.type&&je.type.__ANT_BUTTON===!0;return pe||je.type==="button"?Et=Object(h.a)(je,N()({onMouseDown:Ee,onClick:ce,key:"enterButton"},pe?{className:St,size:it}:{})):Et=r.createElement(H.a,{className:St,type:"primary",size:it,disabled:ft,key:"enterButton",onMouseDown:Ee,onClick:ce},Fe===!0?r.createElement(P.a,null):Fe),At?[Et,Object(h.c)(At,null,{key:"addonAfter"})]:Et},Ve=function(Oe){var it=Oe.getPrefixCls,Fe=Oe.direction,ft=de.prefixCls,At=de.inputPrefixCls,bt=de.enterButton,St=de.className,Et=de.size,je=W(de,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete je.onSearch,delete je.loading;var pe=it("input-search",ft),ie=it("input",At),st=function(ve){var Bt;if(bt){var qt;Bt=e()(pe,St,(qt={},a()(qt,"".concat(pe,"-rtl"),Fe==="rtl"),a()(qt,"".concat(pe,"-enter-button"),!!bt),a()(qt,"".concat(pe,"-").concat(ve),!!ve),qt))}else Bt=e()(pe,St,a()({},"".concat(pe,"-rtl"),Fe==="rtl"));return Bt};return r.createElement(b.b.Consumer,null,function(Qe){return r.createElement(_,N()({ref:Object(R.a)(we,Ne),onPressEnter:ce},je,{size:Et||Qe,prefixCls:ie,addonAfter:Ae(pe,Et||Qe),suffix:ee(pe),onChange:De,className:st(Et||Qe)}))})};return r.createElement(x.a,null,Ve)});G.defaultProps={enterButton:!1},G.displayName="Search";var V=G,Z=y("Y1PL"),Y=function(de){f()(we,de);var Ne=t()(we);function we(De){var Ee;E()(this,we),Ee=Ne.call(this,De),Ee.focus=function(){Ee.resizableTextArea.textArea.focus()},Ee.saveTextArea=function(ne){Ee.resizableTextArea=ne==null?void 0:ne.resizableTextArea},Ee.saveClearableInput=function(ne){Ee.clearableInput=ne},Ee.handleChange=function(ne){Ee.setValue(ne.target.value),T(Ee.resizableTextArea.textArea,ne,Ee.props.onChange)},Ee.handleReset=function(ne){Ee.setValue("",function(){Ee.focus()}),T(Ee.resizableTextArea.textArea,ne,Ee.props.onChange)},Ee.renderTextArea=function(ne,ee){return r.createElement(Z.default,N()({},Object(n.default)(Ee.props,["allowClear","bordered"]),{className:e()(Ee.props.className,a()({},"".concat(ne,"-borderless"),!ee)),prefixCls:ne,onChange:Ee.handleChange,ref:Ee.saveTextArea}))},Ee.renderComponent=function(ne){var ee=ne.getPrefixCls,Ae=ne.direction,Ve=Ee.state.value,Ke=Ee.props,Oe=Ke.prefixCls,it=Ke.bordered,Fe=it===void 0?!0:it,ft=ee("input",Oe);return r.createElement(A,N()({},Ee.props,{prefixCls:ft,direction:Ae,inputType:"text",value:S(Ve),element:Ee.renderTextArea(ft,Fe),handleReset:Ee.handleReset,ref:Ee.saveClearableInput,triggerFocus:Ee.focus,bordered:Fe}))};var ce=typeof De.value=="undefined"?De.defaultValue:De.value;return Ee.state={value:ce},Ee}return o()(we,[{key:"setValue",value:function(Ee,ce){this.props.value===void 0&&this.setState({value:Ee},ce)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return r.createElement(x.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Ee){return Ee.value!==void 0?{value:Ee.value}:null}}]),we}(r.Component),Q=Y,oe=y("J4zp"),ue=y.n(oe),Le=y("qPY4"),me=y.n(Le),Ie=y("fUL4"),X=y.n(Ie),q=function(de,Ne){var we={};for(var De in de)Object.prototype.hasOwnProperty.call(de,De)&&Ne.indexOf(De)<0&&(we[De]=de[De]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,De=Object.getOwnPropertySymbols(de);Ee<De.length;Ee++)Ne.indexOf(De[Ee])<0&&Object.prototype.propertyIsEnumerable.call(de,De[Ee])&&(we[De[Ee]]=de[De[Ee]]);return we},We={click:"onClick",hover:"onMouseOver"},$=r.forwardRef(function(de,Ne){var we=Object(r.useState)(!1),De=ue()(we,2),Ee=De[0],ce=De[1],ne=function(){var Ke=de.disabled;if(Ke)return;ce(!Ee)},ee=function(Ke){var Oe,it=de.action,Fe=de.iconRender,ft=Fe===void 0?function(){return null}:Fe,At=We[it]||"",bt=ft(Ee),St=(Oe={},a()(Oe,At,ne),a()(Oe,"className","".concat(Ke,"-icon")),a()(Oe,"key","passwordIcon"),a()(Oe,"onMouseDown",function(je){je.preventDefault()}),a()(Oe,"onMouseUp",function(je){je.preventDefault()}),Oe);return r.cloneElement(r.isValidElement(bt)?bt:r.createElement("span",null,bt),St)},Ae=function(Ke){var Oe=Ke.getPrefixCls,it=de.className,Fe=de.prefixCls,ft=de.inputPrefixCls,At=de.size,bt=de.visibilityToggle,St=q(de,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Et=Oe("input",ft),je=Oe("input-password",Fe),pe=bt&&ee(je),ie=e()(je,it,a()({},"".concat(je,"-").concat(At),!!At)),st=N()(N()({},Object(n.default)(St,["suffix","iconRender"])),{type:Ee?"text":"password",className:ie,prefixCls:Et,suffix:pe});return At&&(st.size=At),r.createElement(_,N()({ref:Ne},st))};return r.createElement(x.a,null,Ae)});$.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(Ne){return Ne?r.createElement(me.a,null):r.createElement(X.a,null)}},$.displayName="Password";var J=$;_.Group=k,_.Search=V,_.TextArea=Q,_.Password=J;var le=z.a=_},"5s0K":function(fe,z,y){var D=y("bYtY");function N(){var L=[],E={},I;return{add:function(o,m,f,s,t){return D.isString(s)&&(t=s,s=0),E[o.id]?!1:(E[o.id]=1,L.push({el:o,target:m,time:f,delay:s,easing:t}),!0)},done:function(o){return I=o,this},start:function(){for(var o=L.length,m=0,f=L.length;m<f;m++){var s=L[m];s.el.animateTo(s.target,s.time,s.delay,s.easing,t)}return this;function t(){o--,o||(L.length=0,E={},I&&I())}}}}z.createWrap=N},"5yev":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},"6/nd":function(fe,z,y){var D=y("ProS");D.registerAction("legendScroll","legendscroll",function(N,L){var E=N.scrollDataIndex;E!=null&&L.eachComponent({mainType:"legend",subType:"scroll",query:N},function(I){I.setScrollDataIndex(E)})})},"62sa":function(fe,z,y){var D=y("bYtY"),N=y("4NO4"),L=N.makeInner,E=y("zTMp"),I=y("Ez2D"),o=D.each,m=D.curry,f=L();function s(h,p,g){var v=h.currTrigger,A=[h.x,h.y],x=h,b=h.dispatchAction||D.bind(g.dispatchAction,g),w=p.getComponent("axisPointer").coordSysAxesInfo;if(!w)return;d(A)&&(A=I({seriesIndex:x.seriesIndex,dataIndex:x.dataIndex},p).point);var S=d(A),T=x.axesInfo,C=w.axesInfo,O=v==="leave"||d(A),_={},M={},k={list:[],map:{}},R={showPointer:m(a,M),showTooltip:m(r,k)};o(w.coordSysMap,function(P,U){var j=S||P.containPoint(A);o(w.coordSysAxesInfo[U],function(H,W){var G=H.axis,V=i(T,H);if(!O&&j&&(!T||V)){var Z=V&&V.value;Z==null&&!S&&(Z=G.pointToData(A)),Z!=null&&t(H,Z,R,!1,_)}})});var B={};return o(C,function(P,U){var j=P.linkGroup;j&&!M[U]&&o(j.axesInfo,function(H,W){var G=M[W];if(H!==P&&G){var V=G.value;j.mapper&&(V=P.axis.scale.parse(j.mapper(V,c(H),c(P)))),B[P.key]=V}})}),o(B,function(P,U){t(C[U],P,R,!0,_)}),u(M,C,_),e(k,A,h,b),n(C,b,g),_}function t(h,p,g,v,A){var x=h.axis;if(x.scale.isBlank()||!x.containData(p))return;if(!h.involveSeries){g.showPointer(h,p);return}var b=l(p,h),w=b.payloadBatch,S=b.snapToValue;w[0]&&A.seriesIndex==null&&D.extend(A,w[0]),!v&&h.snap&&(x.containData(S)&&S!=null&&(p=S)),g.showPointer(h,p,w,A),g.showTooltip(h,b,S)}function l(h,p){var g=p.axis,v=g.dim,A=h,x=[],b=Number.MAX_VALUE,w=-1;return o(p.seriesModels,function(S,T){var C=S.getData().mapDimension(v,!0),O,_;if(S.getAxisTooltipData){var M=S.getAxisTooltipData(C,h,g);_=M.dataIndices,O=M.nestestValue}else{if(_=S.getData().indicesOfNearest(C[0],h,g.type==="category"?.5:null),!_.length)return;O=S.getData().get(C[0],_[0])}if(O==null||!isFinite(O))return;var k=h-O,R=Math.abs(k);R<=b&&((R<b||k>=0&&w<0)&&(b=R,w=k,A=O,x.length=0),o(_,function(B){x.push({seriesIndex:S.seriesIndex,dataIndexInside:B,dataIndex:S.getData().getRawIndex(B)})}))}),{payloadBatch:x,snapToValue:A}}function a(h,p,g,v){h[p.key]={value:g,payloadBatch:v}}function r(h,p,g,v){var A=g.payloadBatch,x=p.axis,b=x.model,w=p.axisPointerModel;if(!p.triggerTooltip||!A.length)return;var S=p.coordSys.model,T=E.makeKey(S),C=h.map[T];C||(C=h.map[T]={coordSysId:S.id,coordSysIndex:S.componentIndex,coordSysType:S.type,coordSysMainType:S.mainType,dataByAxis:[]},h.list.push(C)),C.dataByAxis.push({axisDim:x.dim,axisIndex:b.componentIndex,axisType:b.type,axisId:b.id,value:v,valueLabelOpt:{precision:w.get("label.precision"),formatter:w.get("label.formatter")},seriesDataIndices:A.slice()})}function u(h,p,g){var v=g.axesInfo=[];o(p,function(A,x){var b=A.axisPointerModel.option,w=h[x];w?(!A.useHandle&&(b.status="show"),b.value=w.value,b.seriesDataIndices=(w.payloadBatch||[]).slice()):!A.useHandle&&(b.status="hide"),b.status==="show"&&v.push({axisDim:A.axis.dim,axisIndex:A.axis.model.componentIndex,value:b.value})})}function e(h,p,g,v){if(d(p)||!h.list.length){v({type:"hideTip"});return}var A=((h.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};v({type:"showTip",escapeConnect:!0,x:p[0],y:p[1],tooltipOption:g.tooltipOption,position:g.position,dataIndexInside:A.dataIndexInside,dataIndex:A.dataIndex,seriesIndex:A.seriesIndex,dataByCoordSys:h.list})}function n(h,p,g){var v=g.getZr(),A="axisPointerLastHighlights",x=f(v)[A]||{},b=f(v)[A]={};o(h,function(T,C){var O=T.axisPointerModel.option;O.status==="show"&&o(O.seriesDataIndices,function(_){var M=_.seriesIndex+" | "+_.dataIndex;b[M]=_})});var w=[],S=[];D.each(x,function(T,C){!b[C]&&S.push(T)}),D.each(b,function(T,C){!x[C]&&w.push(T)}),S.length&&g.dispatchAction({type:"downplay",escapeConnect:!0,batch:S}),w.length&&g.dispatchAction({type:"highlight",escapeConnect:!0,batch:w})}function i(h,p){for(var g=0;g<(h||[]).length;g++){var v=h[g];if(p.axis.dim===v.axisDim&&p.axis.model.componentIndex===v.axisIndex)return v}}function c(h){var p=h.axis.model,g={},v=g.axisDim=h.axis.dim;return g.axisIndex=g[v+"AxisIndex"]=p.componentIndex,g.axisName=g[v+"AxisName"]=p.name,g.axisId=g[v+"AxisId"]=p.id,g}function d(h){return!h||h[0]==null||isNaN(h[0])||h[1]==null||isNaN(h[1])}fe.exports=s},"6BzB":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.shrinkBuf=D,z.arraySet=N,z.flattenChunks=L,z.Buf32=z.Buf16=z.Buf8=void 0;function D(m,f){return m.length===f?m:m.subarray?m.subarray(0,f):(m.length=f,m)}function N(m,f,s,t,l){if(f.subarray&&m.subarray){m.set(f.subarray(s,s+t),l);return}for(var a=0;a<t;a++)m[l+a]=f[s+a]}function L(m){var f,s,t,l,a,r;for(t=0,f=0,s=m.length;f<s;f++)t+=m[f].length;for(r=new Uint8Array(t),l=0,f=0,s=m.length;f<s;f++)a=m[f],r.set(a,l),l+=a.length;return r}var E=Uint8Array;z.Buf8=E;var I=Uint16Array;z.Buf16=I;var o=Int32Array;z.Buf32=o},"6D9b":function(fe,z,y){},"6GrX":function(fe,z,y){var D=y("mFDi"),N=y("Xnb7"),L=y("bYtY"),E=L.getContext,I=L.extend,o=L.retrieve2,m=L.retrieve3,f=L.trim,s={},t=0,l=5e3,a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,r="12px sans-serif",u={};function e(k,R){u[k]=R}function n(k,R){R=R||r;var B=k+":"+R;if(s[B])return s[B];for(var P=(k+"").split(`
|
|
|
`),U=0,j=0,H=P.length;j<H;j++)U=Math.max(T(P[j],R).width,U);return t>l&&(t=0,s={}),t++,s[B]=U,U}function i(k,R,B,P,U,j,H,W){return H?d(k,R,B,P,U,j,H,W):c(k,R,B,P,U,j,W)}function c(k,R,B,P,U,j,H){var W=C(k,R,U,j,H),G=n(k,R);U&&(G+=U[1]+U[3]);var V=W.outerHeight,Z=h(0,G,B),Y=p(0,V,P),Q=new D(Z,Y,G,V);return Q.lineHeight=W.lineHeight,Q}function d(k,R,B,P,U,j,H,W){var G=O(k,{rich:H,truncate:W,font:R,textAlign:B,textPadding:U,textLineHeight:j}),V=G.outerWidth,Z=G.outerHeight,Y=h(0,V,B),Q=p(0,Z,P);return new D(Y,Q,V,Z)}function h(k,R,B){return B==="right"?k-=R:B==="center"&&(k-=R/2),k}function p(k,R,B){return B==="middle"?k-=R/2:B==="bottom"&&(k-=R),k}function g(k,R,B){var P=R.textPosition,U=R.textDistance,j=B.x,H=B.y;U=U||0;var W=B.height,G=B.width,V=W/2,Z="left",Y="top";switch(P){case"left":j-=U,H+=V,Z="right",Y="middle";break;case"right":j+=U+G,H+=V,Y="middle";break;case"top":j+=G/2,H-=U,Z="center",Y="bottom";break;case"bottom":j+=G/2,H+=W+U,Z="center";break;case"inside":j+=G/2,H+=V,Z="center",Y="middle";break;case"insideLeft":j+=U,H+=V,Y="middle";break;case"insideRight":j+=G-U,H+=V,Z="right",Y="middle";break;case"insideTop":j+=G/2,H+=U,Z="center";break;case"insideBottom":j+=G/2,H+=W-U,Z="center",Y="bottom";break;case"insideTopLeft":j+=U,H+=U;break;case"insideTopRight":j+=G-U,H+=U,Z="right";break;case"insideBottomLeft":j+=U,H+=W-U,Y="bottom";break;case"insideBottomRight":j+=G-U,H+=W-U,Z="right",Y="bottom";break}return k=k||{},k.x=j,k.y=H,k.textAlign=Z,k.textVerticalAlign=Y,k}function v(k,R,B){var P={textPosition:k,textDistance:B};return g({},P,R)}function A(k,R,B,P,U){if(!R)return"";var j=(k+"").split(`
|
|
|
`);U=x(R,B,P,U);for(var H=0,W=j.length;H<W;H++)j[H]=b(j[H],U);return j.join(`
|
|
|
`)}function x(k,R,B,P){P=I({},P),P.font=R;var B=o(B,"...");P.maxIterations=o(P.maxIterations,2);var U=P.minChar=o(P.minChar,0);P.cnCharWidth=n("\u56FD",R);var j=P.ascCharWidth=n("a",R);P.placeholder=o(P.placeholder,"");for(var H=k=Math.max(0,k-1),W=0;W<U&&H>=j;W++)H-=j;var G=n(B,R);return G>H&&(B="",G=0),H=k-G,P.ellipsis=B,P.ellipsisWidth=G,P.contentWidth=H,P.containerWidth=k,P}function b(k,R){var B=R.containerWidth,P=R.font,U=R.contentWidth;if(!B)return"";var j=n(k,P);if(j<=B)return k;for(var H=0;;H++){if(j<=U||H>=R.maxIterations){k+=R.ellipsis;break}var W=H===0?w(k,U,R.ascCharWidth,R.cnCharWidth):j>0?Math.floor(k.length*U/j):0;k=k.substr(0,W),j=n(k,P)}return k===""&&(k=R.placeholder),k}function w(k,R,B,P){for(var U=0,j=0,H=k.length;j<H&&U<R;j++){var W=k.charCodeAt(j);U+=0<=W&&W<=127?B:P}return j}function S(k){return n("\u56FD",k)}function T(k,R){return u.measureText(k,R)}u.measureText=function(k,R){var B=E();return B.font=R||r,B.measureText(k)};function C(k,R,B,P,U){k!=null&&(k+="");var j=o(P,S(R)),H=k?k.split(`
|
|
|
`):[],W=H.length*j,G=W,V=!0;if(B&&(G+=B[0]+B[2]),k&&U){V=!1;var Z=U.outerHeight,Y=U.outerWidth;if(Z!=null&&G>Z)k="",H=[];else if(Y!=null)for(var Q=x(Y-(B?B[1]+B[3]:0),R,U.ellipsis,{minChar:U.minChar,placeholder:U.placeholder}),oe=0,ue=H.length;oe<ue;oe++)H[oe]=b(H[oe],Q)}return{lines:H,height:W,outerHeight:G,lineHeight:j,canCacheByTextString:V}}function O(k,R){var B={lines:[],width:0,height:0};if(k!=null&&(k+=""),!k)return B;for(var P=a.lastIndex=0,U;(U=a.exec(k))!=null;){var j=U.index;j>P&&_(B,k.substring(P,j)),_(B,U[2],U[1]),P=a.lastIndex}P<k.length&&_(B,k.substring(P,k.length));var H=B.lines,W=0,G=0,V=[],Z=R.textPadding,Y=R.truncate,Q=Y&&Y.outerWidth,oe=Y&&Y.outerHeight;Z&&(Q!=null&&(Q-=Z[1]+Z[3]),oe!=null&&(oe-=Z[0]+Z[2]));for(var ue=0;ue<H.length;ue++){for(var Le=H[ue],me=0,Ie=0,X=0;X<Le.tokens.length;X++){var q=Le.tokens[X],We=q.styleName&&R.rich[q.styleName]||{},$=q.textPadding=We.textPadding,J=q.font=We.font||R.font,le=q.textHeight=o(We.textHeight,S(J));if($&&(le+=$[0]+$[2]),q.height=le,q.lineHeight=m(We.textLineHeight,R.textLineHeight,le),q.textAlign=We&&We.textAlign||R.textAlign,q.textVerticalAlign=We&&We.textVerticalAlign||"middle",oe!=null&&W+q.lineHeight>oe)return{lines:[],width:0,height:0};q.textWidth=n(q.text,J);var de=We.textWidth,Ne=de==null||de==="auto";if(typeof de=="string"&&de.charAt(de.length-1)==="%")q.percentWidth=de,V.push(q),de=0;else{if(Ne){de=q.textWidth;var we=We.textBackgroundColor,De=we&&we.image;De&&(De=N.findExistImage(De),N.isImageReady(De)&&(de=Math.max(de,De.width*le/De.height)))}var Ee=$?$[1]+$[3]:0;de+=Ee;var ce=Q!=null?Q-Ie:null;ce!=null&&ce<de&&(!Ne||ce<Ee?(q.text="",q.textWidth=de=0):(q.text=A(q.text,ce-Ee,J,Y.ellipsis,{minChar:Y.minChar}),q.textWidth=n(q.text,J),de=q.textWidth+Ee))}Ie+=q.width=de,We&&(me=Math.max(me,q.lineHeight))}Le.width=Ie,Le.lineHeight=me,W+=me,G=Math.max(G,Ie)}B.outerWidth=B.width=o(R.textWidth,G),B.outerHeight=B.height=o(R.textHeight,W),Z&&(B.outerWidth+=Z[1]+Z[3],B.outerHeight+=Z[0]+Z[2]);for(var ue=0;ue<V.length;ue++){var q=V[ue],ne=q.percentWidth;q.width=parseInt(ne,10)/100*G}return B}function _(k,R,B){for(var P=R==="",U=R.split(`
|
|
|
`),j=k.lines,H=0;H<U.length;H++){var W=U[H],G={styleName:B,text:W,isLineHolder:!W&&!P};if(H)j.push({tokens:[G]});else{var V=(j[j.length-1]||(j[0]={tokens:[]})).tokens,Z=V.length;Z===1&&V[0].isLineHolder?V[0]=G:(W||!Z||P)&&V.push(G)}}}function M(k){var R=(k.fontSize||k.fontFamily)&&[k.fontStyle,k.fontWeight,(k.fontSize||12)+"px",k.fontFamily||"sans-serif"].join(" ");return R&&f(R)||k.textFont||k.font}z.DEFAULT_FONT=r,z.$override=e,z.getWidth=n,z.getBoundingRect=i,z.adjustTextX=h,z.adjustTextY=p,z.calculateTextPosition=g,z.adjustTextPositionOnRect=v,z.truncateText=A,z.getLineHeight=S,z.measureText=T,z.parsePlainText=C,z.parseRichText=O,z.makeFont=M},"6Hfg":function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("FhB9")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="SwapRightOutlined";var f=E.forwardRef(m);z.default=f},"6Ic6":function(fe,z,y){var D=y("bYtY"),N=D.each,L=y("4fz+"),E=y("iRjW"),I=y("Yl7c"),o=y("4NO4"),m=y("IwbS"),f=y("9H2F"),s=f.createTask,t=y("zM3Q"),l=o.makeInner(),a=t();function r(){this.group=new L,this.uid=E.getUID("viewChart"),this.renderTask=s({plan:i,reset:c}),this.renderTask.context={view:this}}r.prototype={type:"chart",init:function(p,g){},render:function(p,g,v,A){},highlight:function(p,g,v,A){n(p.getData(),A,"emphasis")},downplay:function(p,g,v,A){n(p.getData(),A,"normal")},remove:function(p,g){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var u=r.prototype;u.updateView=u.updateLayout=u.updateVisual=function(p,g,v,A){this.render(p,g,v,A)};function e(p,g,v){if(p&&(p.trigger(g,v),p.isGroup&&!m.isHighDownDispatcher(p)))for(var A=0,x=p.childCount();A<x;A++)e(p.childAt(A),g,v)}function n(p,g,v){var A=o.queryDataIndex(p,g),x=g&&g.highlightKey!=null?m.getHighlightDigit(g.highlightKey):null;A!=null?N(o.normalizeToArray(A),function(b){e(p.getItemGraphicEl(b),v,x)}):p.eachItemGraphicEl(function(b){e(b,v,x)})}I.enableClassExtend(r,["dispose"]),I.enableClassManagement(r,{registerWhenExtend:!0}),r.markUpdateMethod=function(p,g){l(p).updateMethod=g};function i(p){return a(p.model)}function c(p){var g=p.model,v=p.ecModel,A=p.api,x=p.payload,b=g.pipelineContext.progressiveRender,w=p.view,S=x&&l(x).updateMethod,T=b?"incrementalPrepareRender":S&&w[S]?S:"render";return T!=="render"&&w[T](g,v,A,x),d[T]}var d={incrementalPrepareRender:{progress:function(p,g){g.view.incrementalRender(p,g.model,g.ecModel,g.api,g.payload)}},render:{forceFirstProgress:!0,progress:function(p,g){g.view.render(g.model,g.ecModel,g.api,g.payload)}}},h=r;fe.exports=h},"6MrE":function(fe,z,y){},"6Qwc":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D={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"};z.default=D},"6SEX":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("qWUW"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},"6UJt":function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("v56E"),E=y.n(L),I=y("R9oj"),o=y("5NDa")},"6VBw":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("ODXe"),L=y("rePB"),E=y("Ff2n"),I=y("q1tI"),o=y("TSYQ"),m=y.n(o),f=y("Pw59"),s=y("Qi1f"),t=["icon","className","onClick","style","primaryColor","secondaryColor"],l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function a(p){var g=p.primaryColor,v=p.secondaryColor;l.primaryColor=g,l.secondaryColor=v||Object(s.b)(g),l.calculated=!!v}function r(){return Object(D.a)({},l)}var u=function(g){var v=g.icon,A=g.className,x=g.onClick,b=g.style,w=g.primaryColor,S=g.secondaryColor,T=Object(E.a)(g,t),C=l;if(w&&(C={primaryColor:w,secondaryColor:S||Object(s.b)(w)}),Object(s.f)(),Object(s.g)(Object(s.c)(v),"icon should be icon definiton, but got ".concat(v)),!Object(s.c)(v))return null;var O=v;return O&&typeof O.icon=="function"&&(O=Object(D.a)(Object(D.a)({},O),{},{icon:O.icon(C.primaryColor,C.secondaryColor)})),Object(s.a)(O.icon,"svg-".concat(O.name),Object(D.a)({className:A,onClick:x,style:b,"data-icon":O.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},T))};u.displayName="IconReact",u.getTwoToneColors=r,u.setTwoToneColors=a;var e=u;function n(p){var g=Object(s.d)(p),v=Object(N.a)(g,2),A=v[0],x=v[1];return e.setTwoToneColors({primaryColor:A,secondaryColor:x})}function i(){var p=e.getTwoToneColors();return p.calculated?[p.primaryColor,p.secondaryColor]:p.primaryColor}var c=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];n("#1890ff");var d=I.forwardRef(function(p,g){var v,A=p.className,x=p.icon,b=p.spin,w=p.rotate,S=p.tabIndex,T=p.onClick,C=p.twoToneColor,O=Object(E.a)(p,c),_=I.useContext(f.a),M=_.prefixCls,k=M===void 0?"anticon":M,R=m()(k,(v={},Object(L.a)(v,"".concat(k,"-").concat(x.name),!!x.name),Object(L.a)(v,"".concat(k,"-spin"),!!b||x.name==="loading"),v),A),B=S;B===void 0&&T&&(B=-1);var P=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,U=Object(s.d)(C),j=Object(N.a)(U,2),H=j[0],W=j[1];return I.createElement("span",Object(D.a)(Object(D.a)({role:"img","aria-label":x.name},O),{},{ref:g,tabIndex:B,onClick:T,className:R}),I.createElement(e,{icon:x,primaryColor:H,secondaryColor:W,style:P}))});d.displayName="AntdIcon",d.getTwoToneColor=i,d.setTwoToneColor=n;var h=z.a=d},"6cGi":function(fe,z,y){"use strict";y.d(z,"a",function(){return E});var D=y("ODXe"),N=y("q1tI"),L=y.n(N);function E(I,o){var m=o||{},f=m.defaultValue,s=m.value,t=m.onChange,l=m.postState,a=N.useState(function(){return s!==void 0?s:f!==void 0?typeof f=="function"?f():f:typeof I=="function"?I():I}),r=Object(D.a)(a,2),u=r[0],e=r[1],n=s!==void 0?s:u;l&&(n=l(n));var i=N.useRef(t);i.current=t;var c=N.useCallback(function(h){e(h),n!==h&&i.current&&i.current(h,n)},[n,i]),d=N.useRef(!0);return N.useEffect(function(){if(d.current){d.current=!1;return}s===void 0&&e(s)},[s]),[n,c]}},"6fms":function(fe,z,y){var D=y("SUKs"),N=y("06Qe"),L=y("bYtY"),E=L.each;function I(s){return parseInt(s,10)}function o(s,t){N.initVML(),this.root=s,this.storage=t;var l=document.createElement("div"),a=document.createElement("div");l.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",a.style.cssText="position:absolute;left:0;top:0;",s.appendChild(l),this._vmlRoot=a,this._vmlViewport=l,this.resize();var r=t.delFromStorage,u=t.addToStorage;t.delFromStorage=function(e){r.call(t,e),e&&(e.onRemove&&e.onRemove(a))},t.addToStorage=function(e){e.onAdd&&e.onAdd(a),u.call(t,e)},this._firstPaint=!0}o.prototype={constructor:o,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var l=this._vmlRoot,a=0;a<t.length;a++){var r=t[a];r.invisible||r.ignore?(r.__alreadyNotVisible||r.onRemove(l),r.__alreadyNotVisible=!0):(r.__alreadyNotVisible&&r.onAdd(l),r.__alreadyNotVisible=!1,r.__dirty&&(r.beforeBrush&&r.beforeBrush(),(r.brushVML||r.brush).call(r,l),r.afterBrush&&r.afterBrush())),r.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(l),this._firstPaint=!1)},resize:function(t,l){var t=t==null?this._getWidth():t,l=l==null?this._getHeight():l;if(this._width!==t||this._height!==l){this._width=t,this._height=l;var a=this._vmlViewport.style;a.width=t+"px",a.height=l+"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 t=this.root,l=t.currentStyle;return(t.clientWidth||I(l.width))-I(l.paddingLeft)-I(l.paddingRight)|0},_getHeight:function(){var t=this.root,l=t.currentStyle;return(t.clientHeight||I(l.height))-I(l.paddingTop)-I(l.paddingBottom)|0}};function m(s){return function(){D('In IE8.0 VML mode painter not support method "'+s+'"')}}E(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(s){o.prototype[s]=m(s)});var f=o;fe.exports=f},"6r85":function(fe,z,y){var D=y("bYtY");function N(L){if(!L||!D.isArray(L.series))return;D.each(L.series,function(E){D.isObject(E)&&E.type==="k"&&(E.type="candlestick")})}fe.exports=N},"6uqw":function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("ItGF"),E=y("YOMW"),I=y("XxSj"),o=y("K4ya"),m=y("4NO4"),f=y("OELB"),s=I.mapVisual,t=I.eachVisual,l=N.isArray,a=N.each,r=f.asc,u=f.linearMap,e=N.noop,n=D.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(c,d,h){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(c,h)},optionUpdated:function(c,d){var h=this.option;L.canvasSupported||(h.realtime=!1),!d&&o.replaceVisualOption(h,c,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(c){var d=this.stateList;c=N.bind(c,this),this.controllerVisuals=o.createVisualMappings(this.option.controller,d,c),this.targetVisuals=o.createVisualMappings(this.option.target,d,c)},getTargetSeriesIndices:function(){var c=this.option.seriesIndex,d=[];return c==null||c==="all"?this.ecModel.eachSeries(function(h,p){d.push(p)}):d=m.normalizeToArray(c),d},eachTargetSeries:function(c,d){N.each(this.getTargetSeriesIndices(),function(h){c.call(d,this.ecModel.getSeriesByIndex(h))},this)},isTargetSeries:function(c){var d=!1;return this.eachTargetSeries(function(h){h===c&&(d=!0)}),d},formatValueText:function(c,d,h){var p=this.option,g=p.precision,v=this.dataBound,A=p.formatter,x,b;if(h=h||["<",">"],N.isArray(c)&&(c=c.slice(),x=!0),b=d?c:x?[w(c[0]),w(c[1])]:w(c),N.isString(A))return A.replace("{value}",x?b[0]:b).replace("{value2}",x?b[1]:b);if(N.isFunction(A))return x?A(c[0],c[1]):A(c);if(x)return c[0]===v[0]?h[0]+" "+b[1]:c[1]===v[1]?h[1]+" "+b[0]:b[0]+" - "+b[1];return b;function w(S){return S===v[0]?"min":S===v[1]?"max":(+S).toFixed(Math.min(g,20))}},resetExtent:function(){var c=this.option,d=r([c.min,c.max]);this._dataExtent=d},getDataDimension:function(c){var d=this.option.dimension,h=c.dimensions;if(d==null&&!h.length)return;if(d!=null)return c.getDimension(d);for(var p=c.dimensions,g=p.length-1;g>=0;g--){var v=p[g],A=c.getDimensionInfo(v);if(!A.isCalculationCoord)return v}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var c=this.ecModel,d=this.option,h={inRange:d.inRange,outOfRange:d.outOfRange},p=d.target||(d.target={}),g=d.controller||(d.controller={});N.merge(p,h),N.merge(g,h);var v=this.isCategory();A.call(this,p),A.call(this,g),x.call(this,p,"inRange","outOfRange"),b.call(this,g);function A(w){l(d.color)&&!w.inRange&&(w.inRange={color:d.color.slice().reverse()}),w.inRange=w.inRange||{color:c.get("gradientColor")},a(this.stateList,function(S){var T=w[S];if(N.isString(T)){var C=E.get(T,"active",v);C?(w[S]={},w[S][T]=C):delete w[S]}},this)}function x(w,S,T){var C=w[S],O=w[T];C&&!O&&(O=w[T]={},a(C,function(_,M){if(!I.isValidType(M))return;var k=E.get(M,"inactive",v);k!=null&&(O[M]=k,M==="color"&&!O.hasOwnProperty("opacity")&&!O.hasOwnProperty("colorAlpha")&&(O.opacity=[0,0]))}))}function b(w){var S=(w.inRange||{}).symbol||(w.outOfRange||{}).symbol,T=(w.inRange||{}).symbolSize||(w.outOfRange||{}).symbolSize,C=this.get("inactiveColor");a(this.stateList,function(O){var _=this.itemSize,M=w[O];M||(M=w[O]={color:v?C:[C]}),M.symbol==null&&(M.symbol=S&&N.clone(S)||(v?"roundRect":["roundRect"])),M.symbolSize==null&&(M.symbolSize=T&&N.clone(T)||(v?_[0]:[_[0],_[0]])),M.symbol=s(M.symbol,function(B){return B==="none"||B==="square"?"roundRect":B});var k=M.symbolSize;if(k!=null){var R=-Infinity;t(k,function(B){B>R&&(R=B)}),M.symbolSize=s(k,function(B){return u(B,[0,R],[0,_[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:e,getValueState:e,getVisualMeta:e}),i=n;fe.exports=i},"6usn":function(fe,z,y){var D=y("bYtY");function N(E,I){return D.map(["Radius","Angle"],function(o,m){var f=this["get"+o+"Axis"](),s=I[m],t=E[m]/2,l="dataTo"+o,a=f.type==="category"?f.getBandWidth():Math.abs(f[l](s-t)-f[l](s+t));return o==="Angle"&&(a=a*Math.PI/180),a},this)}function L(E){var I=E.getRadiusAxis(),o=E.getAngleAxis(),m=I.getExtent();return m[0]>m[1]&&m.reverse(),{coordSys:{type:"polar",cx:E.cx,cy:E.cy,r:m[1],r0:m[0]},api:{coord:D.bind(function(f){var s=I.dataToRadius(f[0]),t=o.dataToAngle(f[1]),l=E.coordToPoint([s,t]);return l.push(s,t*Math.PI/180),l}),size:D.bind(N,E)}}}fe.exports=L},"6xvX":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("V7ic"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},"711d":function(fe,z){function y(D){return function(N){return N==null?void 0:N[D]}}fe.exports=y},"72pK":function(fe,z){function y(L,E,I,o,m,f){L=L||0;var s=I[1]-I[0];if(m!=null&&(m=N(m,[0,s])),f!=null&&(f=Math.max(f,m!=null?m:0)),o==="all"){var t=Math.abs(E[1]-E[0]);t=N(t,[0,s]),m=f=N(t,[m,f]),o=0}E[0]=N(E[0],I),E[1]=N(E[1],I);var l=D(E,o);E[o]+=L;var a=m||0,r=I.slice();l.sign<0?r[0]+=a:r[1]-=a,E[o]=N(E[o],r);var u=D(E,o);m!=null&&(u.sign!==l.sign||u.span<m)&&(E[1-o]=E[o]+l.sign*m);var u=D(E,o);return f!=null&&u.span>f&&(E[1-o]=E[o]+u.sign*f),E}function D(L,E){var I=L[E]-L[1-E];return{span:Math.abs(I),sign:I>0?-1:I<0?1:E?-1:1}}function N(L,E){return Math.min(E[1]!=null?E[1]:Infinity,Math.max(E[0]!=null?E[0]:-Infinity,L))}fe.exports=y},"75ce":function(fe,z,y){var D=y("ProS");y("IXuL"),y("8X+K");var N=y("f5Yq"),L=y("h8O9"),E=y("/d5a");y("Ae16"),D.registerVisual(N("line","circle","line")),D.registerLayout(L("line")),D.registerProcessor(D.PRIORITY.PROCESSOR.STATISTIC,E("line"))},"75ev":function(fe,z,y){var D=y("ProS");y("IWNH"),y("bNin"),y("v5uJ");var N=y("f5Yq"),L=y("yik8");D.registerVisual(N("tree","circle")),D.registerLayout(L)},"7AJT":function(fe,z,y){var D=y("bYtY"),N=y("hM6l"),L=function(I,o,m,f,s){N.call(this,I,o,m),this.type=f||"value",this.position=s||"bottom"};L.prototype={constructor:L,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var I=this.position;return I==="top"||I==="bottom"},getGlobalExtent:function(I){var o=this.getExtent();return o[0]=this.toGlobalCoord(o[0]),o[1]=this.toGlobalCoord(o[1]),I&&o[0]>o[1]&&o.reverse(),o},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(I,o){return this.coordToData(this.toLocalCoord(I[this.dim==="x"?0:1]),o)},toLocalCoord:null,toGlobalCoord:null},D.inherits(L,N);var E=L;fe.exports=E},"7Cbv":function(fe,z,y){"use strict";var D,N=new Uint8Array(16);function L(){if(!D&&(D=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!D))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return D(N)}var E=/^(?:[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 I(r){return typeof r=="string"&&E.test(r)}for(var o=I,m=[],f=0;f<256;++f)m.push((f+256).toString(16).substr(1));function s(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(m[r[u+0]]+m[r[u+1]]+m[r[u+2]]+m[r[u+3]]+"-"+m[r[u+4]]+m[r[u+5]]+"-"+m[r[u+6]]+m[r[u+7]]+"-"+m[r[u+8]]+m[r[u+9]]+"-"+m[r[u+10]]+m[r[u+11]]+m[r[u+12]]+m[r[u+13]]+m[r[u+14]]+m[r[u+15]]).toLowerCase();if(!o(e))throw TypeError("Stringified UUID is invalid");return e}var t=s;function l(r,u,e){r=r||{};var n=r.random||(r.rng||L)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,u){e=e||0;for(var i=0;i<16;++i)u[e+i]=n[i];return u}return t(n)}var a=z.a=l},"7DRL":function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=L.createHashMap,I=L.isString,o=L.isArray,m=L.each,f=L.assert,s=y("MEGo"),t=s.parseXML,l=E(),a={registerMap:function(u,e,n){var i;return o(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),m(i,function(c){var d=c.type;d==="geoJson"&&(d=c.type="geoJSON");var h=r[d];h(c)}),l.set(u,i)},retrieveMap:function(u){return l.get(u)}},r={geoJSON:function(u){var e=u.source;u.geoJSON=I(e)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(u){u.svgXML=t(u.source)}};fe.exports=a},"7G+c":function(fe,z,y){var D=y("bYtY"),N=D.createHashMap,L=D.isTypedArray,E=y("Yl7c"),I=E.enableClassCheck,o=y("k9D9"),m=o.SOURCE_FORMAT_ORIGINAL,f=o.SERIES_LAYOUT_BY_COLUMN,s=o.SOURCE_FORMAT_UNKNOWN,t=o.SOURCE_FORMAT_TYPED_ARRAY,l=o.SOURCE_FORMAT_KEYED_COLUMNS;function a(u){this.fromDataset=u.fromDataset,this.data=u.data||(u.sourceFormat===l?{}:[]),this.sourceFormat=u.sourceFormat||s,this.seriesLayoutBy=u.seriesLayoutBy||f,this.dimensionsDefine=u.dimensionsDefine,this.encodeDefine=u.encodeDefine&&N(u.encodeDefine),this.startIndex=u.startIndex||0,this.dimensionsDetectCount=u.dimensionsDetectCount}a.seriesDataToSource=function(u){return new a({data:u,sourceFormat:L(u)?t:m,fromDataset:!1})},I(a);var r=a;fe.exports=r},"7Kak":function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("KPFz"),E=y.n(L)},"7Phj":function(fe,z,y){var D=y("bYtY"),N=y("OELB"),L=N.parsePercent,E=D.each;function I(s){var t=o(s);E(t,function(l){var a=l.seriesModels;if(!a.length)return;m(l),E(a,function(r,u){f(r,l.boxOffsetList[u],l.boxWidthList[u])})})}function o(s){var t=[],l=[];return s.eachSeriesByType("boxplot",function(a){var r=a.getBaseAxis(),u=D.indexOf(l,r);u<0&&(u=l.length,l[u]=r,t[u]={axis:r,seriesModels:[]}),t[u].seriesModels.push(a)}),t}function m(s){var t,l=s.axis,a=s.seriesModels,r=a.length,u=s.boxWidthList=[],e=s.boxOffsetList=[],n=[],i;if(l.type==="category")i=l.getBandWidth();else{var c=0;E(a,function(v){c=Math.max(c,v.getData().count())}),t=l.getExtent(),Math.abs(t[1]-t[0])/c}E(a,function(v){var A=v.get("boxWidth");D.isArray(A)||(A=[A,A]),n.push([L(A[0],i)||0,L(A[1],i)||0])});var d=i*.8-2,h=d/r*.3,p=(d-h*(r-1))/r,g=p/2-d/2;E(a,function(v,A){e.push(g),g+=h+p,u.push(Math.min(Math.max(p,n[A][0]),n[A][1]))})}function f(s,t,l){var a=s.coordinateSystem,r=s.getData(),u=l/2,e=s.get("layout")==="horizontal"?0:1,n=1-e,i=["x","y"],c=r.mapDimension(i[e]),d=r.mapDimension(i[n],!0);if(c==null||d.length<5)return;for(var h=0;h<r.count();h++){var p=r.get(c,h),g=S(p,d[2],h),v=S(p,d[0],h),A=S(p,d[1],h),x=S(p,d[3],h),b=S(p,d[4],h),w=[];T(w,A,0),T(w,x,1),w.push(v,A,b,x),C(w,v),C(w,b),C(w,g),r.setItemLayout(h,{initBaseline:g[n],ends:w})}function S(O,_,M){var k=r.get(_,M),R=[];R[e]=O,R[n]=k;var B;return isNaN(O)||isNaN(k)?B=[NaN,NaN]:(B=a.dataToPoint(R),B[e]+=t),B}function T(O,_,M){var k=_.slice(),R=_.slice();k[e]+=u,R[e]-=u,M?O.push(k,R):O.push(R,k)}function C(O,_){var M=_.slice(),k=_.slice();M[e]-=u,k[e]+=u,O.push(M,k)}}fe.exports=I},"7SHv":function(fe,z,y){var D=y("LPTA"),N=D.devicePixelRatio,L=y("bYtY"),E=y("SUKs"),I=y("mFDi"),o=y("BPZU"),m=y("Xmg4"),f=y("mLcG"),s=y("Dagg"),t=y("ItGF"),l=1e5,a=314159,r=.01,u=.001;function e(x){return parseInt(x,10)}function n(x){return x?x.__builtin__?!0:!(typeof x.resize!="function"||typeof x.refresh!="function"):!1}var i=new I(0,0,0,0),c=new I(0,0,0,0);function d(x,b,w){return i.copy(x.getBoundingRect()),x.transform&&i.applyTransform(x.transform),c.width=b,c.height=w,!i.intersect(c)}function h(x,b){if(x===b)return!1;if(!x||!b||x.length!==b.length)return!0;for(var w=0;w<x.length;w++)if(x[w]!==b[w])return!0;return!1}function p(x,b){for(var w=0;w<x.length;w++){var S=x[w];S.setTransform(b),b.beginPath(),S.buildPath(b,S.shape),b.clip(),S.restoreTransform(b)}}function g(x,b){var w=document.createElement("div");return w.style.cssText=["position:relative","width:"+x+"px","height:"+b+"px","padding:0","margin:0","border-width:0"].join(";")+";",w}var v=function(b,w,S){this.type="canvas";var T=!b.nodeName||b.nodeName.toUpperCase()==="CANVAS";this._opts=S=L.extend({},S||{}),this.dpr=S.devicePixelRatio||N,this._singleCanvas=T,this.root=b;var C=b.style;C&&(C["-webkit-tap-highlight-color"]="transparent",C["-webkit-user-select"]=C["user-select"]=C["-webkit-touch-callout"]="none",b.innerHTML=""),this.storage=w;var O=this._zlevelList=[],_=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,T){var k=b.width,R=b.height;S.width!=null&&(k=S.width),S.height!=null&&(R=S.height),this.dpr=S.devicePixelRatio||1,b.width=k*this.dpr,b.height=R*this.dpr,this._width=k,this._height=R;var B=new m(b,this,this.dpr);B.__builtin__=!0,B.initContext(),_[a]=B,B.zlevel=a,O.push(a),this._domRoot=b}else{this._width=this._getSize(0),this._height=this._getSize(1);var M=this._domRoot=g(this._width,this._height);b.appendChild(M)}this._hoverlayer=null,this._hoverElements=[]};v.prototype={constructor:v,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var b=this.getViewportRoot();if(b)return{offsetLeft:b.offsetLeft||0,offsetTop:b.offsetTop||0}},refresh:function(b){var w=this.storage.getDisplayList(!0),S=this._zlevelList;this._redrawId=Math.random(),this._paintList(w,b,this._redrawId);for(var T=0;T<S.length;T++){var C=S[T],O=this._layers[C];if(!O.__builtin__&&O.refresh){var _=T===0?this._backgroundColor:null;O.refresh(_)}}return this.refreshHover(),this},addHover:function(b,w){if(b.__hoverMir)return;var S=new b.constructor({style:b.style,shape:b.shape,z:b.z,z2:b.z2,silent:b.silent});return S.__from=b,b.__hoverMir=S,w&&S.setStyle(w),this._hoverElements.push(S),S},removeHover:function(b){var w=b.__hoverMir,S=this._hoverElements,T=L.indexOf(S,w);T>=0&&S.splice(T,1),b.__hoverMir=null},clearHover:function(b){for(var w=this._hoverElements,S=0;S<w.length;S++){var T=w[S].__from;T&&(T.__hoverMir=null)}w.length=0},refreshHover:function(){var b=this._hoverElements,w=b.length,S=this._hoverlayer;if(S&&S.clear(),!w)return;o(b,this.storage.displayableSortFunc),S||(S=this._hoverlayer=this.getLayer(l));var T={};S.ctx.save();for(var C=0;C<w;){var O=b[C],_=O.__from;if(!(_&&_.__zr)){b.splice(C,1),_.__hoverMir=null,w--;continue}C++,_.invisible||(O.transform=_.transform,O.invTransform=_.invTransform,O.__clipPaths=_.__clipPaths,this._doPaintEl(O,S,!0,T))}S.ctx.restore()},getHoverLayer:function(){return this.getLayer(l)},_paintList:function(b,w,S){if(this._redrawId!==S)return;w=w||!1,this._updateLayerStatus(b);var T=this._doPaintList(b,w);if(this._needsManuallyCompositing&&this._compositeManually(),!T){var C=this;f(function(){C._paintList(b,w,S)})}},_compositeManually:function(){var b=this.getLayer(a).ctx,w=this._domRoot.width,S=this._domRoot.height;b.clearRect(0,0,w,S),this.eachBuiltinLayer(function(T){T.virtual&&b.drawImage(T.dom,0,0,w,S)})},_doPaintList:function(b,w){for(var S=[],T=0;T<this._zlevelList.length;T++){var C=this._zlevelList[T],O=this._layers[C];O.__builtin__&&O!==this._hoverlayer&&(O.__dirty||w)&&S.push(O)}for(var _=!0,M=0;M<S.length;M++){var O=S[M],k=O.ctx,R={};k.save();var B=w?O.__startIndex:O.__drawIndex,P=!w&&O.incremental&&Date.now,U=P&&Date.now(),j=O.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(O.__startIndex===O.__endIndex)O.clear(!1,j);else if(B===O.__startIndex){var H=b[B];(!H.incremental||!H.notClear||w)&&O.clear(!1,j)}B===-1&&(console.error("For some unknown reason. drawIndex is -1"),B=O.__startIndex);for(var W=B;W<O.__endIndex;W++){var G=b[W];if(this._doPaintEl(G,O,w,R),G.__dirty=G.__dirtyText=!1,P){var V=Date.now()-U;if(V>15)break}}O.__drawIndex=W,O.__drawIndex<O.__endIndex&&(_=!1),R.prevElClipPaths&&k.restore(),k.restore()}return t.wxa&&L.each(this._layers,function(Z){Z&&Z.ctx&&Z.ctx.draw&&Z.ctx.draw()}),_},_doPaintEl:function(b,w,S,T){var C=w.ctx,O=b.transform;if((w.__dirty||S)&&!b.invisible&&b.style.opacity!==0&&!(O&&!O[0]&&!O[3])&&!(b.culling&&d(b,this._width,this._height))){var _=b.__clipPaths,M=T.prevElClipPaths;(!M||h(_,M))&&(M&&(C.restore(),T.prevElClipPaths=null,T.prevEl=null),_&&(C.save(),p(_,C),T.prevElClipPaths=_)),b.beforeBrush&&b.beforeBrush(C),b.brush(C,T.prevEl||null),T.prevEl=b,b.afterBrush&&b.afterBrush(C)}},getLayer:function(b,w){this._singleCanvas&&!this._needsManuallyCompositing&&(b=a);var S=this._layers[b];return S||(S=new m("zr_"+b,this,this.dpr),S.zlevel=b,S.__builtin__=!0,this._layerConfig[b]?L.merge(S,this._layerConfig[b],!0):this._layerConfig[b-r]&&L.merge(S,this._layerConfig[b-r],!0),w&&(S.virtual=w),this.insertLayer(b,S),S.initContext()),S},insertLayer:function(b,w){var S=this._layers,T=this._zlevelList,C=T.length,O=null,_=-1,M=this._domRoot;if(S[b]){E("ZLevel "+b+" has been used already");return}if(!n(w)){E("Layer of zlevel "+b+" is not valid");return}if(C>0&&b>T[0]){for(_=0;_<C-1&&!(T[_]<b&&T[_+1]>b);_++);O=S[T[_]]}if(T.splice(_+1,0,b),S[b]=w,!w.virtual)if(O){var k=O.dom;k.nextSibling?M.insertBefore(w.dom,k.nextSibling):M.appendChild(w.dom)}else M.firstChild?M.insertBefore(w.dom,M.firstChild):M.appendChild(w.dom)},eachLayer:function(b,w){var S=this._zlevelList,T,C;for(C=0;C<S.length;C++)T=S[C],b.call(w,this._layers[T],T)},eachBuiltinLayer:function(b,w){var S=this._zlevelList,T,C,O;for(O=0;O<S.length;O++)C=S[O],T=this._layers[C],T.__builtin__&&b.call(w,T,C)},eachOtherLayer:function(b,w){var S=this._zlevelList,T,C,O;for(O=0;O<S.length;O++)C=S[O],T=this._layers[C],T.__builtin__||b.call(w,T,C)},getLayers:function(){return this._layers},_updateLayerStatus:function(b){this.eachBuiltinLayer(function(R,B){R.__dirty=R.__used=!1});function w(R){C&&(C.__endIndex!==R&&(C.__dirty=!0),C.__endIndex=R)}if(this._singleCanvas)for(var S=1;S<b.length;S++){var T=b[S];if(T.zlevel!==b[S-1].zlevel||T.incremental){this._needsManuallyCompositing=!0;break}}for(var C=null,O=0,_,S=0;S<b.length;S++){var T=b[S],M=T.zlevel,k;_!==M&&(_=M,O=0),T.incremental?(k=this.getLayer(M+u,this._needsManuallyCompositing),k.incremental=!0,O=1):k=this.getLayer(M+(O>0?r:0),this._needsManuallyCompositing),k.__builtin__||E("ZLevel "+M+" has been used by unkown layer "+k.id),k!==C&&(k.__used=!0,k.__startIndex!==S&&(k.__dirty=!0),k.__startIndex=S,k.incremental?k.__drawIndex=-1:k.__drawIndex=S,w(S),C=k),T.__dirty&&(k.__dirty=!0,k.incremental&&k.__drawIndex<0&&(k.__drawIndex=S))}w(S),this.eachBuiltinLayer(function(R,B){!R.__used&&R.getElementCount()>0&&(R.__dirty=!0,R.__startIndex=R.__endIndex=R.__drawIndex=0),R.__dirty&&R.__drawIndex<0&&(R.__drawIndex=R.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(b){b.clear()},setBackgroundColor:function(b){this._backgroundColor=b},configLayer:function(b,w){if(w){var S=this._layerConfig;S[b]?L.merge(S[b],w,!0):S[b]=w;for(var T=0;T<this._zlevelList.length;T++){var C=this._zlevelList[T];if(C===b||C===b+r){var O=this._layers[C];L.merge(O,S[b],!0)}}}},delLayer:function(b){var w=this._layers,S=this._zlevelList,T=w[b];if(!T)return;T.dom.parentNode.removeChild(T.dom),delete w[b],S.splice(L.indexOf(S,b),1)},resize:function(b,w){if(this._domRoot.style){var S=this._domRoot;S.style.display="none";var T=this._opts;if(b!=null&&(T.width=b),w!=null&&(T.height=w),b=this._getSize(0),w=this._getSize(1),S.style.display="",this._width!==b||w!==this._height){S.style.width=b+"px",S.style.height=w+"px";for(var C in this._layers)this._layers.hasOwnProperty(C)&&this._layers[C].resize(b,w);L.each(this._progressiveLayers,function(O){O.resize(b,w)}),this.refresh(!0)}this._width=b,this._height=w}else{if(b==null||w==null)return;this._width=b,this._height=w,this.getLayer(a).resize(b,w)}return this},clearLayer:function(b){var w=this._layers[b];w&&w.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(b){if(b=b||{},this._singleCanvas&&!this._compositeManually)return this._layers[a].dom;var w=new m("image",this,b.pixelRatio||this.dpr);if(w.initContext(),w.clear(!1,b.backgroundColor||this._backgroundColor),b.pixelRatio<=this.dpr){this.refresh();var S=w.dom.width,T=w.dom.height,C=w.ctx;this.eachLayer(function(R){R.__builtin__?C.drawImage(R.dom,0,0,S,T):R.renderToCanvas&&(w.ctx.save(),R.renderToCanvas(w.ctx),w.ctx.restore())})}else for(var O={},_=this.storage.getDisplayList(!0),M=0;M<_.length;M++){var k=_[M];this._doPaintEl(k,w,!0,O)}return w.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(b){var w=this._opts,S=["width","height"][b],T=["clientWidth","clientHeight"][b],C=["paddingLeft","paddingTop"][b],O=["paddingRight","paddingBottom"][b];if(w[S]!=null&&w[S]!=="auto")return parseFloat(w[S]);var _=this.root,M=document.defaultView.getComputedStyle(_);return(_[T]||e(M[S])||e(_.style[S]))-(e(M[C])||0)-(e(M[O])||0)|0},pathToImage:function(b,w){w=w||this.dpr;var S=document.createElement("canvas"),T=S.getContext("2d"),C=b.getBoundingRect(),O=b.style,_=O.shadowBlur*w,M=O.shadowOffsetX*w,k=O.shadowOffsetY*w,R=O.hasStroke()?O.lineWidth:0,B=Math.max(R/2,-M+_),P=Math.max(R/2,M+_),U=Math.max(R/2,-k+_),j=Math.max(R/2,k+_),H=C.width+B+P,W=C.height+U+j;S.width=H*w,S.height=W*w,T.scale(w,w),T.clearRect(0,0,H,W),T.dpr=w;var G={position:b.position,rotation:b.rotation,scale:b.scale};b.position=[B-C.x,U-C.y],b.rotation=0,b.scale=[1,1],b.updateTransform(),b&&b.brush(T);var V=s,Z=new V({style:{x:0,y:0,image:S}});return G.position!=null&&(Z.position=b.position=G.position),G.rotation!=null&&(Z.rotation=b.rotation=G.rotation),G.scale!=null&&(Z.scale=b.scale=G.scale),Z}};var A=v;fe.exports=A},"7a+S":function(fe,z,y){var D=y("bYtY"),N=y("bLfw"),L=y("YXkt"),E=y("4NO4"),I=N.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(m,f,s){this._data,this._names,this.mergeDefaultAndTheme(m,s),this._initData()},mergeOption:function(m){I.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(m){m==null&&(m=this.option.currentIndex);var f=this._data.count();this.option.loop?m=(m%f+f)%f:(m>=f&&(m=f-1),m<0&&(m=0)),this.option.currentIndex=m},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(m){this.option.autoPlay=!!m},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var m=this.option,f=m.data||[],s=m.axisType,t=this._names=[];if(s==="category"){var l=[];D.each(f,function(u,e){var n=E.getDataItemValue(u),i;D.isObject(u)?(i=D.clone(u),i.value=e):i=e,l.push(i),!D.isString(n)&&(n==null||isNaN(n))&&(n=""),t.push(n+"")}),f=l}var a={category:"ordinal",time:"time"}[s]||"number",r=this._data=new L([{name:"value",type:a}],this);r.initData(f,t)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),o=I;fe.exports=o},"7aKB":function(fe,z,y){var D=y("bYtY"),N=y("6GrX"),L=y("OELB");function E(g){return isNaN(g)?"-":(g=(g+"").split("."),g[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(g.length>1?"."+g[1]:""))}function I(g,v){return g=(g||"").toLowerCase().replace(/-(.)/g,function(A,x){return x.toUpperCase()}),v&&g&&(g=g.charAt(0).toUpperCase()+g.slice(1)),g}var o=D.normalizeCssArray,m=/([&<>"'])/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"};function s(g){return g==null?"":(g+"").replace(m,function(v,A){return f[A]})}var t=["a","b","c","d","e","f","g"],l=function(g,v){return"{"+g+(v==null?"":v)+"}"};function a(g,v,A){D.isArray(v)||(v=[v]);var x=v.length;if(!x)return"";for(var b=v[0].$vars||[],w=0;w<b.length;w++){var S=t[w];g=g.replace(l(S),l(S,0))}for(var T=0;T<x;T++)for(var C=0;C<b.length;C++){var O=v[T][b[C]];g=g.replace(l(t[C],T),A?s(O):O)}return g}function r(g,v,A){return D.each(v,function(x,b){g=g.replace("{"+b+"}",A?s(x):x)}),g}function u(g,v){g=D.isString(g)?{color:g,extraCssText:v}:g||{};var A=g.color,x=g.type,v=g.extraCssText,b=g.renderMode||"html",w=g.markerId||"X";return A?b==="html"?x==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+s(A)+";"+(v||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+s(A)+";"+(v||"")+'"></span>':{renderMode:b,content:"{marker"+w+"|} ",style:{color:A}}:""}function e(g,v){return g+="","0000".substr(0,v-g.length)+g}function n(g,v,A){(g==="week"||g==="month"||g==="quarter"||g==="half-year"||g==="year")&&(g=`MM-dd
|
|
|
yyyy`);var x=L.parseDate(v),b=A?"UTC":"",w=x["get"+b+"FullYear"](),S=x["get"+b+"Month"]()+1,T=x["get"+b+"Date"](),C=x["get"+b+"Hours"](),O=x["get"+b+"Minutes"](),_=x["get"+b+"Seconds"](),M=x["get"+b+"Milliseconds"]();return g=g.replace("MM",e(S,2)).replace("M",S).replace("yyyy",w).replace("yy",w%100).replace("dd",e(T,2)).replace("d",T).replace("hh",e(C,2)).replace("h",C).replace("mm",e(O,2)).replace("m",O).replace("ss",e(_,2)).replace("s",_).replace("SSS",e(M,3)),g}function i(g){return g&&g.charAt(0).toUpperCase()+g.substr(1)}var c=N.truncateText;function d(g){return N.getBoundingRect(g.text,g.font,g.textAlign,g.textVerticalAlign,g.textPadding,g.textLineHeight,g.rich,g.truncate)}function h(g,v,A,x,b,w,S,T){return N.getBoundingRect(g,v,A,x,b,T,w,S)}function p(g,v){if(v==="_blank"||v==="blank"){var A=window.open();A.opener=null,A.location=g}else window.open(g,v)}z.addCommas=E,z.toCamelCase=I,z.normalizeCssArray=o,z.encodeHTML=s,z.formatTpl=a,z.formatTplSimple=r,z.getTooltipMarker=u,z.formatTime=n,z.capitalFirst=i,z.truncateText=c,z.getTextBoundingRect=d,z.getTextRect=h,z.windowOpen=p},"7bkD":function(fe,z,y){var D=y("bYtY");function N(L,E){E=E||{};var I=L.coordinateSystem,o=L.axis,m={},f=o.position,s=o.orient,t=I.getRect(),l=[t.x,t.x+t.width,t.y,t.y+t.height],a={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};m.position=[s==="vertical"?a.vertical[f]:l[0],s==="horizontal"?a.horizontal[f]:l[3]];var r={horizontal:0,vertical:1};m.rotation=Math.PI/2*r[s];var u={top:-1,bottom:1,right:1,left:-1};m.labelDirection=m.tickDirection=m.nameDirection=u[f],L.get("axisTick.inside")&&(m.tickDirection=-m.tickDirection),D.retrieve(E.labelInside,L.get("axisLabel.inside"))&&(m.labelDirection=-m.labelDirection);var e=E.rotate;return e==null&&(e=L.get("axisLabel.rotate")),m.labelRotation=f==="top"?-e:e,m.z2=1,m}z.layout=N},"7hqr":function(fe,z,y){var D=y("bYtY"),N=D.each,L=D.isString;function E(m,f,s){s=s||{};var t=s.byIndex,l=s.stackedCoordDimension,a=!!(m&&m.get("stack")),r,u,e,n;if(N(f,function(h,p){L(h)&&(f[p]=h={name:h}),a&&!h.isExtraCoord&&(!t&&!r&&h.ordinalMeta&&(r=h),!u&&h.type!=="ordinal"&&h.type!=="time"&&(!l||l===h.coordDim)&&(u=h))}),u&&!t&&!r&&(t=!0),u){e="__\0ecstackresult",n="__\0ecstackedover",r&&(r.createInvertedIndices=!0);var i=u.coordDim,c=u.type,d=0;N(f,function(h){h.coordDim===i&&d++}),f.push({name:e,coordDim:i,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0}),d++,f.push({name:n,coordDim:n,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:u&&u.name,stackedByDimension:r&&r.name,isStackedByIndex:t,stackedOverDimension:n,stackResultDimension:e}}function I(m,f){return!!f&&f===m.getCalculationInfo("stackedDimension")}function o(m,f){return I(m,f)?m.getCalculationInfo("stackResultDimension"):f}z.enableDataStack=E,z.isDimensionStacked=I,z.getStackedDimension=o},"7mYs":function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("IwbS"),E=y("7aKB"),I=y("OELB"),o={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"]},m={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},f=D.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(s,t,l){var a=this.group;a.removeAll();var r=s.coordinateSystem,u=r.getRangeInfo(),e=r.getOrient();this._renderDayRect(s,u,a),this._renderLines(s,u,e,a),this._renderYearText(s,u,e,a),this._renderMonthText(s,e,a),this._renderWeekText(s,u,e,a)},_renderDayRect:function(s,t,l){for(var a=s.coordinateSystem,r=s.getModel("itemStyle").getItemStyle(),u=a.getCellWidth(),e=a.getCellHeight(),n=t.start.time;n<=t.end.time;n=a.getNextNDay(n,1).time){var i=a.dataToRect([n],!1).tl,c=new L.Rect({shape:{x:i[0],y:i[1],width:u,height:e},cursor:"default",style:r});l.add(c)}},_renderLines:function(s,t,l,a){var r=this,u=s.coordinateSystem,e=s.getModel("splitLine.lineStyle").getLineStyle(),n=s.get("splitLine.show"),i=e.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,d=0;c.time<=t.end.time;d++){p(c.formatedDate),d===0&&(c=u.getDateInfo(t.start.y+"-"+t.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=u.getDateInfo(h)}p(u.getNextNDay(t.end.time,1).formatedDate);function p(g){r._firstDayOfMonth.push(u.getDateInfo(g)),r._firstDayPoints.push(u.dataToRect([g],!1).tl);var v=r._getLinePointsOfOneWeek(s,g,l);r._tlpoints.push(v[0]),r._blpoints.push(v[v.length-1]),n&&r._drawSplitline(v,e,a)}n&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,i,l),e,a),n&&this._drawSplitline(r._getEdgesPoints(r._blpoints,i,l),e,a)},_getEdgesPoints:function(s,t,l){var a=[s[0].slice(),s[s.length-1].slice()],r=l==="horizontal"?0:1;return a[0][r]=a[0][r]-t/2,a[1][r]=a[1][r]+t/2,a},_drawSplitline:function(s,t,l){var a=new L.Polyline({z2:20,shape:{points:s},style:t});l.add(a)},_getLinePointsOfOneWeek:function(s,t,l){var a=s.coordinateSystem;t=a.getDateInfo(t);for(var r=[],u=0;u<7;u++){var e=a.getNextNDay(t.time,u),n=a.dataToRect([e.time],!1);r[2*e.day]=n.tl,r[2*e.day+1]=n[l==="horizontal"?"bl":"tr"]}return r},_formatterLabel:function(s,t){return typeof s=="string"&&s?E.formatTplSimple(s,t):typeof s=="function"?s(t):t.nameMap},_yearTextPositionControl:function(s,t,l,a,r){t=t.slice();var u=["center","bottom"];a==="bottom"?(t[1]+=r,u=["center","top"]):a==="left"?t[0]-=r:a==="right"?(t[0]+=r,u=["center","top"]):t[1]-=r;var e=0;return(a==="left"||a==="right")&&(e=Math.PI/2),{rotation:e,position:t,style:{textAlign:u[0],textVerticalAlign:u[1]}}},_renderYearText:function(s,t,l,a){var r=s.getModel("yearLabel");if(!r.get("show"))return;var u=r.get("margin"),e=r.get("position");e||(e=l!=="horizontal"?"top":"left");var n=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],i=(n[0][0]+n[1][0])/2,c=(n[0][1]+n[1][1])/2,d=l==="horizontal"?0:1,h={top:[i,n[d][1]],bottom:[i,n[1-d][1]],left:[n[1-d][0],c],right:[n[d][0],c]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var g=r.get("formatter"),v={start:t.start.y,end:t.end.y,nameMap:p},A=this._formatterLabel(g,v),x=new L.Text({z2:30});L.setTextStyle(x.style,r,{text:A}),x.attr(this._yearTextPositionControl(x,h[e],l,e,u)),a.add(x)},_monthTextPositionControl:function(s,t,l,a,r){var u="left",e="top",n=s[0],i=s[1];return l==="horizontal"?(i=i+r,t&&(u="center"),a==="start"&&(e="bottom")):(n=n+r,t&&(e="middle"),a==="start"&&(u="right")),{x:n,y:i,textAlign:u,textVerticalAlign:e}},_renderMonthText:function(s,t,l){var a=s.getModel("monthLabel");if(!a.get("show"))return;var r=a.get("nameMap"),u=a.get("margin"),e=a.get("position"),n=a.get("align"),i=[this._tlpoints,this._blpoints];N.isString(r)&&(r=o[r.toUpperCase()]||[]);var c=e==="start"?0:1,d=t==="horizontal"?0:1;u=e==="start"?-u:u;for(var h=n==="center",p=0;p<i[c].length-1;p++){var g=i[c][p].slice(),v=this._firstDayOfMonth[p];if(h){var A=this._firstDayPoints[p];g[d]=(A[d]+i[0][p+1][d])/2}var x=a.get("formatter"),b=r[+v.m-1],w={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:b},S=this._formatterLabel(x,w),T=new L.Text({z2:30});N.extend(L.setTextStyle(T.style,a,{text:S}),this._monthTextPositionControl(g,h,t,e,u)),l.add(T)}},_weekTextPositionControl:function(s,t,l,a,r){var u="center",e="middle",n=s[0],i=s[1],c=l==="start";return t==="horizontal"?(n=n+a+(c?1:-1)*r[0]/2,u=c?"right":"left"):(i=i+a+(c?1:-1)*r[1]/2,e=c?"bottom":"top"),{x:n,y:i,textAlign:u,textVerticalAlign:e}},_renderWeekText:function(s,t,l,a){var r=s.getModel("dayLabel");if(!r.get("show"))return;var u=s.coordinateSystem,e=r.get("position"),n=r.get("nameMap"),i=r.get("margin"),c=u.getFirstDayOfWeek();N.isString(n)&&(n=m[n.toUpperCase()]||[]);var d=u.getNextNDay(t.end.time,7-t.lweek).time,h=[u.getCellWidth(),u.getCellHeight()];i=I.parsePercent(i,h[l==="horizontal"?0:1]),e==="start"&&(d=u.getNextNDay(t.start.time,-(7+t.fweek)).time,i=-i);for(var p=0;p<7;p++){var g=u.getNextNDay(d,p),v=u.dataToRect([g.time],!1).center,A=p;A=Math.abs((p+c)%7);var x=new L.Text({z2:30});N.extend(L.setTextStyle(x.style,r,{text:n[A]}),this._weekTextPositionControl(v,l,e,i,h)),a.add(x)}}});fe.exports=f},"7oTu":function(fe,z,y){var D=y("IMiH"),N=y("QBsz"),L=N.applyTransform,E=D.CMD,I=[[],[],[]],o=Math.sqrt,m=Math.atan2;function f(s,t){var l=s.data,a,r,u,e,n,i,c=E.M,d=E.C,h=E.L,p=E.R,g=E.A,v=E.Q;for(u=0,e=0;u<l.length;){a=l[u++],e=u,r=0;switch(a){case c:r=1;break;case h:r=1;break;case d:r=3;break;case v:r=2;break;case g:var A=t[4],x=t[5],b=o(t[0]*t[0]+t[1]*t[1]),w=o(t[2]*t[2]+t[3]*t[3]),S=m(-t[1]/w,t[0]/b);l[u]*=b,l[u++]+=A,l[u]*=w,l[u++]+=x,l[u++]*=b,l[u++]*=w,l[u++]+=S,l[u++]+=S,u+=2,e=u;break;case p:i[0]=l[u++],i[1]=l[u++],L(i,i,t),l[e++]=i[0],l[e++]=i[1],i[0]+=l[u++],i[1]+=l[u++],L(i,i,t),l[e++]=i[0],l[e++]=i[1]}for(n=0;n<r;n++){var i=I[n];i[0]=l[u++],i[1]=l[u++],L(i,i,t),l[e++]=i[0],l[e++]=i[1]}}}fe.exports=f},"7pVf":function(fe,z,y){var D=y("ProS"),N=y("ZqQs");y("oE7X"),y("OUJF"),y("3X6L"),y("NH9N"),D.registerPreprocessor(N)},"7ph2":function(fe,z){function y(L){return L instanceof Array||(L=[L,L]),L}var D="lineStyle.opacity".split("."),N={seriesType:"lines",reset:function(L,E,I){var o=y(L.get("symbol")),m=y(L.get("symbolSize")),f=L.getData();f.setVisual("fromSymbol",o&&o[0]),f.setVisual("toSymbol",o&&o[1]),f.setVisual("fromSymbolSize",m&&m[0]),f.setVisual("toSymbolSize",m&&m[1]),f.setVisual("opacity",L.get(D));function s(t,l){var a=t.getItemModel(l),r=y(a.getShallow("symbol",!0)),u=y(a.getShallow("symbolSize",!0)),e=a.get(D);r[0]&&t.setItemVisual(l,"fromSymbol",r[0]),r[1]&&t.setItemVisual(l,"toSymbol",r[1]),u[0]&&t.setItemVisual(l,"fromSymbolSize",u[0]),u[1]&&t.setItemVisual(l,"toSymbolSize",u[1]),t.setItemVisual(l,"opacity",e)}return{dataEach:f.hasItemOption?s:null}}};fe.exports=N},"7uqq":function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("bYtY"),I=y("AUH6"),o=y("+TT/"),m=y("OELB"),f=y("W4dC"),s=y("7DRL");function t(u,e){var n=u.get("boundingCoords");if(n!=null){var i=n[0],c=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(c[0])||isNaN(c[1])||this.setBoundingRect(i[0],i[1],c[0]-i[0],c[1]-i[1])}var d=this.getBoundingRect(),h,p=u.get("layoutCenter"),g=u.get("layoutSize"),v=e.getWidth(),A=e.getHeight(),x=d.width/d.height*this.aspectScale,b=!1;p&&g&&(p=[m.parsePercent(p[0],v),m.parsePercent(p[1],A)],g=m.parsePercent(g,Math.min(v,A)),!isNaN(p[0])&&!isNaN(p[1])&&!isNaN(g)&&(b=!0));var w;if(b){var w={};x>1?(w.width=g,w.height=g/x):(w.height=g,w.width=g*x),w.y=p[1]-w.height/2,w.x=p[0]-w.width/2}else h=u.getBoxLayoutParams(),h.aspect=x,w=o.getLayoutRect(h,{width:v,height:A});this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(u.get("center")),this.setZoom(u.get("zoom"))}function l(u,e){E.each(e.get("geoCoord"),function(n,i){u.addGeoCoord(i,n)})}var a={dimensions:I.prototype.dimensions,create:function(u,e){var n=[];u.eachComponent("geo",function(c,d){var h=c.get("map"),p=c.get("aspectScale"),g=!0,v=s.retrieveMap(h);v&&v[0]&&v[0].type==="svg"?(p==null&&(p=1),g=!1):p==null&&(p=.75);var A=new I(h+d,h,c.get("nameMap"),g);A.aspectScale=p,A.zoomLimit=c.get("scaleLimit"),n.push(A),l(A,c),c.coordinateSystem=A,A.model=c,A.resize=t,A.resize(c,e)}),u.eachSeries(function(c){var d=c.get("coordinateSystem");if(d==="geo"){var h=c.get("geoIndex")||0;c.coordinateSystem=n[h]}});var i={};return u.eachSeriesByType("map",function(c){if(!c.getHostGeoModel()){var d=c.getMapType();i[d]=i[d]||[],i[d].push(c)}}),E.each(i,function(c,d){var h=E.map(c,function(g){return g.get("nameMap")}),p=new I(d,d,E.mergeAll(h));p.zoomLimit=E.retrieve.apply(null,E.map(c,function(g){return g.get("scaleLimit")})),n.push(p),p.resize=t,p.aspectScale=c[0].get("aspectScale"),p.resize(c[0],e),E.each(c,function(g){g.coordinateSystem=p,l(p,g)})}),n},getFilledRegions:function(u,e,n){for(var i=(u||[]).slice(),c=E.createHashMap(),d=0;d<i.length;d++)c.set(i[d].name,i[d]);var h=f.load(e,n);return E.each(h.regions,function(p){var g=p.name;!c.get(g)&&i.push({name:g})}),i}};L.registerCoordinateSystem("geo",a);var r=a;fe.exports=r},"7yuC":function(fe,z,y){var D=y("QBsz"),N=D.scaleAndAdd;function L(E,I,o){for(var m=o.rect,f=m.width,s=m.height,t=[m.x+f/2,m.y+s/2],l=o.gravity==null?.1:o.gravity,a=0;a<E.length;a++){var r=E[a];r.p||(r.p=D.create(f*(Math.random()-.5)+t[0],s*(Math.random()-.5)+t[1])),r.pp=D.clone(r.p),r.edges=null}var u=o.friction==null?.6:o.friction,e=u;return{warmUp:function(){e=u*.8},setFixed:function(n){E[n].fixed=!0},setUnfixed:function(n){E[n].fixed=!1},step:function(n){for(var i=[],c=E.length,d=0;d<I.length;d++){var h=I[d];if(h.ignoreForceLayout)continue;var p=h.n1,g=h.n2;D.sub(i,g.p,p.p);var v=D.len(i)-h.d,A=g.w/(p.w+g.w);isNaN(A)&&(A=0),D.normalize(i,i),!p.fixed&&N(p.p,p.p,i,A*v*e),!g.fixed&&N(g.p,g.p,i,-(1-A)*v*e)}for(var d=0;d<c;d++){var x=E[d];x.fixed||(D.sub(i,t,x.p),N(x.p,x.p,i,l*e))}for(var d=0;d<c;d++)for(var p=E[d],b=d+1;b<c;b++){var g=E[b];D.sub(i,g.p,p.p);var v=D.len(i);v===0&&(D.set(i,Math.random()-.5,Math.random()-.5),v=1);var w=(p.rep+g.rep)/v/v;!p.fixed&&N(p.pp,p.pp,i,w),!g.fixed&&N(g.pp,g.pp,i,-w)}for(var S=[],d=0;d<c;d++){var x=E[d];x.fixed||(D.sub(S,x.p,x.pp),N(x.p,x.p,S,e),D.copy(x.pp,x.p))}e=e*.992,n&&n(E,I,e<.01)}}}z.forceLayout=L},"8+yF":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D={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},N={lookup:function(E){if(E>=32&&E<=255)return E;var I=D[E];return I!==void 0?I:16777216|E}};z.default=N},"815F":function(fe,z,y){"use strict";y.d(z,"e",function(){return m}),y.d(z,"c",function(){return s}),y.d(z,"d",function(){return t}),y.d(z,"a",function(){return a}),y.d(z,"f",function(){return r}),y.d(z,"b",function(){return u});var D=y("KQm4"),N=y("VTBJ"),L=y("Ff2n"),E=y("Zm9Q"),I=y("Kwbf"),o=y("OZM5");function m(e,n){return e!=null?e:n}function f(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=new Map;function i(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(c||[]).forEach(function(h){var p=h.key,g=h.children;Object(I.a)(p!=null,"Tree node must have a certain key: [".concat(d).concat(p,"]"));var v=String(p);Object(I.a)(!n.has(v)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(v)),n.set(v,!0),i(g,"".concat(d).concat(v," > "))})}i(e)}function s(e){function n(i){var c=Object(E.a)(i);return c.map(function(d){if(!Object(o.i)(d))return Object(I.a)(!d,"Tree/TreeNode can only accept TreeNode as children."),null;var h=d.key,p=d.props,g=p.children,v=Object(L.a)(p,["children"]),A=Object(N.a)({key:h},v),x=n(g);return x.length&&(A.children=x),A}).filter(function(d){return d})}return n(e)}function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=new Set(n===!0?[]:n),c=[];function d(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(g,v){var A=Object(o.h)(p?p.pos:"0",v),x=m(g.key,A),b=Object(N.a)(Object(N.a)({},g),{},{parent:p,pos:A,children:null,data:g,isStart:[].concat(Object(D.a)(p?p.isStart:[]),[v===0]),isEnd:[].concat(Object(D.a)(p?p.isEnd:[]),[v===h.length-1])});return c.push(b),n===!0||i.has(x)?b.children=d(g.children||[],b):b.children=[],b})}return d(e),c}function l(e,n,i){var c;i?typeof i=="string"?c=function(p){return p[i]}:typeof i=="function"&&(c=function(p){return i(p)}):c=function(p,g){return m(p.key,g)};function d(h,p,g){var v=h?h.children:e,A=h?Object(o.h)(g.pos,p):"0";if(h){var x=c(h,A),b={node:h,index:p,pos:A,key:x,parentPos:g.node?g.pos:null,level:g.level+1};n(b)}v&&v.forEach(function(w,S){d(w,S,{node:h,pos:A,level:g?g.level+1:-1})})}d(null)}function a(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.initWrapper,c=n.processEntity,d=n.onProcessFinished,h=arguments.length>2?arguments[2]:void 0,p={},g={},v={posEntities:p,keyEntities:g};return i&&(v=i(v)||v),l(e,function(A){var x=A.node,b=A.index,w=A.pos,S=A.key,T=A.parentPos,C=A.level,O={node:x,index:b,key:S,pos:w,level:C},_=m(S,w);p[w]=O,g[_]=O,O.parent=p[T],O.parent&&(O.parent.children=O.parent.children||[],O.parent.children.push(O)),c&&c(O,v)},h),d&&d(v),v}function r(e,n){var i=n.expandedKeys,c=n.selectedKeys,d=n.loadedKeys,h=n.loadingKeys,p=n.checkedKeys,g=n.halfCheckedKeys,v=n.dragOverNodeKey,A=n.dropPosition,x=n.keyEntities,b=x[e],w={eventKey:e,expanded:i.indexOf(e)!==-1,selected:c.indexOf(e)!==-1,loaded:d.indexOf(e)!==-1,loading:h.indexOf(e)!==-1,checked:p.indexOf(e)!==-1,halfChecked:g.indexOf(e)!==-1,pos:String(b?b.pos:""),dragOver:v===e&&A===0,dragOverGapTop:v===e&&A===-1,dragOverGapBottom:v===e&&A===1};return w}function u(e){var n=e.data,i=e.expanded,c=e.selected,d=e.checked,h=e.loaded,p=e.loading,g=e.halfChecked,v=e.dragOver,A=e.dragOverGapTop,x=e.dragOverGapBottom,b=e.pos,w=e.active,S=Object(N.a)(Object(N.a)({},n),{},{expanded:i,selected:c,checked:d,loaded:h,loading:p,halfChecked:g,dragOver:v,dragOverGapTop:A,dragOverGapBottom:x,pos:b,active:w});return"props"in S||Object.defineProperty(S,"props",{get:function(){return Object(I.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),S}},"8CQX":function(fe,z,y){"use strict";function D(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(n){return typeof n}:D=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},D(u)}Object.defineProperty(z,"__esModule",{value:!0}),z.getKeycode=l,z.getKey=a,z.getKeysym=r;var N=t(y("mHUz")),L=t(y("8+yF")),E=t(y("6Qwc")),I=t(y("gIYZ")),o=t(y("mTgk")),m=s(y("GdRQ"));function f(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return f=function(){return u},u}function s(u){if(u&&u.__esModule)return u;if(u===null||D(u)!=="object"&&typeof u!="function")return{default:u};var e=f();if(e&&e.has(u))return e.get(u);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in u)if(Object.prototype.hasOwnProperty.call(u,c)){var d=i?Object.getOwnPropertyDescriptor(u,c):null;d&&(d.get||d.set)?Object.defineProperty(n,c,d):n[c]=u[c]}return n.default=u,e&&e.set(u,n),n}function t(u){return u&&u.__esModule?u:{default:u}}function l(u){if(u.code){switch(u.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return u.code}if(u.type!=="keypress"&&u.keyCode in E.default){var e=E.default[u.keyCode];if(m.isMac()&&e==="ContextMenu"&&(e="MetaRight"),u.location===2)switch(e){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(u.location===3)switch(e){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 e}return"Unidentified"}function a(u){if(u.key!==void 0){switch(u.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 u.char}switch(u.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(u.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(u.key==="\0"&&u.code==="NumpadDecimal")return"Delete";if(!m.isIE()&&!m.isEdge())return u.key;if(u.key.length!==1&&u.key!=="Unidentified")return u.key}var e=l(u);return e in I.default?I.default[e]:u.charCode?String.fromCharCode(u.charCode):"Unidentified"}function r(u){var e=a(u);if(e==="Unidentified")return null;if(e in o.default){var n=u.location;if(e==="Meta"&&n===0&&(n=2),e==="Clear"&&n===3){var i=l(u);i==="NumLock"&&(n=0)}if((n===void 0||n>3)&&(n=0),e==="Meta"){var c=l(u);if(c==="AltLeft")return N.default.XK_Meta_L;if(c==="AltRight")return N.default.XK_Meta_R}if(e==="Clear"){var d=l(u);if(d==="NumLock")return N.default.XK_Num_Lock}return o.default[e][n]}if(e.length!==1)return null;var h=e.charCodeAt();return h?L.default.lookup(h):null}},"8EBN":function(fe,z,y){(function(D){D(y("VrN/"))})(function(D){"use strict";D.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 N=0;N<D.modeInfo.length;N++){var L=D.modeInfo[N];L.mimes&&(L.mime=L.mimes[0])}D.findModeByMIME=function(E){E=E.toLowerCase();for(var I=0;I<D.modeInfo.length;I++){var o=D.modeInfo[I];if(o.mime==E)return o;if(o.mimes){for(var m=0;m<o.mimes.length;m++)if(o.mimes[m]==E)return o}}if(/\+xml$/.test(E))return D.findModeByMIME("application/xml");if(/\+json$/.test(E))return D.findModeByMIME("application/json")},D.findModeByExtension=function(E){E=E.toLowerCase();for(var I=0;I<D.modeInfo.length;I++){var o=D.modeInfo[I];if(o.ext){for(var m=0;m<o.ext.length;m++)if(o.ext[m]==E)return o}}},D.findModeByFileName=function(E){for(var I=0;I<D.modeInfo.length;I++){var o=D.modeInfo[I];if(o.file&&o.file.test(E))return o}var m=E.lastIndexOf("."),f=m>-1&&E.substring(m+1,E.length);if(f)return D.findModeByExtension(f)},D.findModeByName=function(E){E=E.toLowerCase();for(var I=0;I<D.modeInfo.length;I++){var o=D.modeInfo[I];if(o.name.toLowerCase()==E)return o;if(o.alias){for(var m=0;m<o.alias.length;m++)if(o.alias[m].toLowerCase()==E)return o}}}})},"8IMR":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},"8ISB":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("6Hfg"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},"8K/p":function(fe,z,y){"use strict";function D(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(r){return typeof r}:D=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},D(l)}Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var N=o(y("Lo0S")),L=E(y("ItS6"));function E(l){return l&&l.__esModule?l:{default:l}}function I(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return I=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||D(l)!=="object"&&typeof l!="function")return{default:l};var a=I();if(a&&a.has(l))return a.get(l);var r={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)){var n=u?Object.getOwnPropertyDescriptor(l,e):null;n&&(n.get||n.set)?Object.defineProperty(r,e,n):r[e]=l[e]}return r.default=l,a&&a.set(l,r),r}function m(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function f(l,a){for(var r=0;r<a.length;r++){var u=a[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function s(l,a,r){return a&&f(l.prototype,a),r&&f(l,r),l}var t=function(){function l(){m(this,l),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var a=0;a<4;a++)this._zlibs[a]=new L.default}return s(l,[{key:"decodeRect",value:function(r,u,e,n,i,c,d){if(this._ctl===null){if(i.rQwait("TIGHT compression-control",1))return!1;this._ctl=i.rQshift8();for(var h=0;h<4;h++)this._ctl>>h&1&&(this._zlibs[h].reset(),N.Info("Reset zlib stream "+h));this._ctl=this._ctl>>4}var p;if(this._ctl===8)p=this._fillRect(r,u,e,n,i,c,d);else if(this._ctl===9)p=this._jpegRect(r,u,e,n,i,c,d);else if(this._ctl===10)p=this._pngRect(r,u,e,n,i,c,d);else if((this._ctl&128)==0)p=this._basicRect(this._ctl,r,u,e,n,i,c,d);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return p&&(this._ctl=null),p}},{key:"_fillRect",value:function(r,u,e,n,i,c,d){if(i.rQwait("TIGHT",3))return!1;var h=i.rQi,p=i.rQ;return c.fillRect(r,u,e,n,[p[h+2],p[h+1],p[h]],!1),i.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(r,u,e,n,i,c,d){var h=this._readData(i);return h===null?!1:(c.imageRect(r,u,e,n,"image/jpeg",h),!0)}},{key:"_pngRect",value:function(r,u,e,n,i,c,d){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(r,u,e,n,i,c,d,h){if(this._filter===null)if(r&4){if(c.rQwait("TIGHT",1))return!1;this._filter=c.rQshift8()}else this._filter=0;var p=r&3,g;switch(this._filter){case 0:g=this._copyFilter(p,u,e,n,i,c,d,h);break;case 1:g=this._paletteFilter(p,u,e,n,i,c,d,h);break;case 2:g=this._gradientFilter(p,u,e,n,i,c,d,h);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return g&&(this._filter=null),g}},{key:"_copyFilter",value:function(r,u,e,n,i,c,d,h){var p=n*i*3,g;if(p<12){if(c.rQwait("TIGHT",p))return!1;g=c.rQshiftBytes(p)}else{if(g=this._readData(c),g===null)return!1;this._zlibs[r].setInput(g),g=this._zlibs[r].inflate(p),this._zlibs[r].setInput(null)}return d.blitRgbImage(u,e,n,i,g,0,!1),!0}},{key:"_paletteFilter",value:function(r,u,e,n,i,c,d,h){if(this._numColors===0){if(c.rQwait("TIGHT palette",1))return!1;var p=c.rQpeek8()+1,g=p*3;if(c.rQwait("TIGHT palette",1+g))return!1;this._numColors=p,c.rQskipBytes(1),c.rQshiftTo(this._palette,g)}var v=this._numColors<=2?1:8,A=Math.floor((n*v+7)/8),x=A*i,b;if(x<12){if(c.rQwait("TIGHT",x))return!1;b=c.rQshiftBytes(x)}else{if(b=this._readData(c),b===null)return!1;this._zlibs[r].setInput(b),b=this._zlibs[r].inflate(x),this._zlibs[r].setInput(null)}return this._numColors==2?this._monoRect(u,e,n,i,b,this._palette,d):this._paletteRect(u,e,n,i,b,this._palette,d),this._numColors=0,!0}},{key:"_monoRect",value:function(r,u,e,n,i,c,d){for(var h=this._getScratchBuffer(e*n*4),p=Math.floor((e+7)/8),g=Math.floor(e/8),v=0;v<n;v++){var A=void 0,x=void 0,b=void 0;for(b=0;b<g;b++)for(var w=7;w>=0;w--)A=(v*e+b*8+7-w)*4,x=(i[v*p+b]>>w&1)*3,h[A]=c[x],h[A+1]=c[x+1],h[A+2]=c[x+2],h[A+3]=255;for(var S=7;S>=8-e%8;S--)A=(v*e+b*8+7-S)*4,x=(i[v*p+b]>>S&1)*3,h[A]=c[x],h[A+1]=c[x+1],h[A+2]=c[x+2],h[A+3]=255}d.blitRgbxImage(r,u,e,n,h,0,!1)}},{key:"_paletteRect",value:function(r,u,e,n,i,c,d){for(var h=this._getScratchBuffer(e*n*4),p=e*n*4,g=0,v=0;g<p;g+=4,v++){var A=i[v]*3;h[g]=c[A],h[g+1]=c[A+1],h[g+2]=c[A+2],h[g+3]=255}d.blitRgbxImage(r,u,e,n,h,0,!1)}},{key:"_gradientFilter",value:function(r,u,e,n,i,c,d,h){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(r){if(this._len===0){if(r.rQwait("TIGHT",3))return null;var u;u=r.rQshift8(),this._len=u&127,u&128&&(u=r.rQshift8(),this._len|=(u&127)<<7,u&128&&(u=r.rQshift8(),this._len|=u<<14))}if(r.rQwait("TIGHT",this._len))return null;var e=r.rQshiftBytes(this._len);return this._len=0,e}},{key:"_getScratchBuffer",value:function(r){return(!this._scratchBuffer||this._scratchBuffer.length<r)&&(this._scratchBuffer=new Uint8Array(r)),this._scratchBuffer}}]),l}();z.default=t},"8OUc":function(fe,z,y){"use strict";var D=y("q1tI"),N=y.n(D),L=y("TSYQ"),E=y.n(L),I=function(m){var f=m.className,s=m.customizeIcon,t=m.customizeIconProps,l=m.onMouseDown,a=m.onClick,r=m.children,u;return typeof s=="function"?u=s(t):u=s,D.createElement("span",{className:f,onMouseDown:function(n){n.preventDefault(),l&&l(n)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},u!==void 0?u:D.createElement("span",{className:E()(f.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},r))};z.a=I},"8SMY":function(fe,z,y){var D=y("n4Lv"),N=D.prepareDataCoordInfo,L=D.getStackedOnPoint;function E(o,m){var f=[];return m.diff(o).add(function(s){f.push({cmd:"+",idx:s})}).update(function(s,t){f.push({cmd:"=",idx:t,idx1:s})}).remove(function(s){f.push({cmd:"-",idx:s})}).execute(),f}function I(o,m,f,s,t,l,a,r){for(var u=E(o,m),e=[],n=[],i=[],c=[],d=[],h=[],p=[],g=N(t,m,a),v=N(l,o,r),A=0;A<u.length;A++){var x=u[A],b=!0;switch(x.cmd){case"=":var w=o.getItemLayout(x.idx),S=m.getItemLayout(x.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=S.slice()),e.push(w),n.push(S),i.push(f[x.idx]),c.push(s[x.idx1]),p.push(m.getRawIndex(x.idx1));break;case"+":var T=x.idx;e.push(t.dataToPoint([m.get(g.dataDimsForPoint[0],T),m.get(g.dataDimsForPoint[1],T)])),n.push(m.getItemLayout(T).slice()),i.push(L(g,t,m,T)),c.push(s[T]),p.push(m.getRawIndex(T));break;case"-":var T=x.idx,C=o.getRawIndex(T);C!==T?(e.push(o.getItemLayout(T)),n.push(l.dataToPoint([o.get(v.dataDimsForPoint[0],T),o.get(v.dataDimsForPoint[1],T)])),i.push(f[T]),c.push(L(v,l,o,T)),p.push(C)):b=!1}b&&(d.push(x),h.push(h.length))}h.sort(function(B,P){return p[B]-p[P]});for(var O=[],_=[],M=[],k=[],R=[],A=0;A<h.length;A++){var T=h[A];O[A]=e[T],_[A]=n[T],M[A]=i[T],k[A]=c[T],R[A]=d[T]}return{current:O,next:_,stackedOnCurrent:M,stackedOnNext:k,status:R}}fe.exports=I},"8Skl":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="DownOutlined";var m=z.a=N.forwardRef(o)},"8Th4":function(fe,z,y){var D=y("3LNs"),N=y("/y7N"),L=y("7bkD"),E=y("Znkb"),I=["x","y"],o=["width","height"],m=D.extend({makeElOption:function(a,r,u,e,n){var i=u.axis,c=i.coordinateSystem,d=t(c,1-s(i)),h=c.dataToPoint(r)[0],p=e.get("type");if(p&&p!=="none"){var g=N.buildElStyle(e),v=f[p](i,h,d);v.style=g,a.graphicKey=v.type,a.pointer=v}var A=L.layout(u);N.buildCartesianSingleLabelElOption(r,a,A,u,e,n)},getHandleTransform:function(a,r,u){var e=L.layout(r,{labelInside:!1});return e.labelMargin=u.get("handle.margin"),{position:N.getTransformedPosition(r.axis,a,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(a,r,u,e){var n=u.axis,i=n.coordinateSystem,c=s(n),d=t(i,c),h=a.position;h[c]+=r[c],h[c]=Math.min(d[1],h[c]),h[c]=Math.max(d[0],h[c]);var p=t(i,1-c),g=(p[1]+p[0])/2,v=[g,g];return v[c]=h[c],{position:h,rotation:a.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}}}),f={line:function(a,r,u){var e=N.makeLineShape([r,u[0]],[r,u[1]],s(a));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(a,r,u){var e=a.getBandWidth(),n=u[1]-u[0];return{type:"Rect",shape:N.makeRectShape([r-e/2,u[0]],[e,n],s(a))}}};function s(a){return a.isHorizontal()?0:1}function t(a,r){var u=a.getRect();return[u[I[r]],u[I[r]]+u[o[r]]]}E.registerAxisPointerClass("SingleAxisPointer",m);var l=m;fe.exports=l},"8Uz6":function(fe,z,y){var D=y("hNWo"),N=y("+TT/"),L=N.mergeLayoutParam,E=N.getLayoutParams,I=D.extend({type:"legend.scroll",setScrollDataIndex:function(f){this.option.scrollDataIndex=f},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(f,s,t,l){var a=E(f);I.superCall(this,"init",f,s,t,l),o(this,f,a)},mergeOption:function(f,s){I.superCall(this,"mergeOption",f,s),o(this,this.option,f)}});function o(f,s,t){var l=f.getOrient(),a=[1,1];a[l.index]=0,L(s,t,{type:"box",ignoreSize:a})}var m=I;fe.exports=m},"8X+K":function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("4mN7"),I=E.fromPoints,o=y("9wZj"),m=y("FBjb"),f=y("8SMY"),s=y("IwbS"),t=y("4NO4"),l=y("1NG9"),a=l.Polyline,r=l.Polygon,u=y("6Ic6"),e=y("n4Lv"),n=e.prepareDataCoordInfo,i=e.getStackedOnPoint,c=y("sK/D"),d=c.createGridClipPath,h=c.createPolarClipPath;function p(O,_){if(O.length!==_.length)return;for(var M=0;M<O.length;M++){var k=O[M],R=_[M];if(k[0]!==R[0]||k[1]!==R[1])return}return!0}function g(O,_){var M=[],k=[],R=[],B=[];return I(O,M,k),I(_,R,B),Math.max(Math.abs(M[0]-R[0]),Math.abs(M[1]-R[1]),Math.abs(k[0]-B[0]),Math.abs(k[1]-B[1]))}function v(O){return typeof O=="number"?O:O?.5:0}function A(O,_,M){if(!M.valueDim)return[];for(var k=[],R=0,B=_.count();R<B;R++)k.push(i(M,O,_,R));return k}function x(O,_,M){for(var k=_.getBaseAxis(),R=k.dim==="x"||k.dim==="radius"?0:1,B=[],P=0;P<O.length-1;P++){var U=O[P+1],j=O[P];B.push(j);var H=[];switch(M){case"end":H[R]=U[R],H[1-R]=j[1-R],B.push(H);break;case"middle":var W=(j[R]+U[R])/2,G=[];H[R]=G[R]=W,H[1-R]=j[1-R],G[1-R]=U[1-R],B.push(H),B.push(G);break;default:H[R]=j[R],H[1-R]=U[1-R],B.push(H)}}return O[P]&&B.push(O[P]),B}function b(O,_){var M=O.getVisual("visualMeta");if(!M||!M.length||!O.count())return;if(_.type!=="cartesian2d")return;for(var k,R,B=M.length-1;B>=0;B--){var P=M[B].dimension,U=O.dimensions[P],j=O.getDimensionInfo(U);if(k=j&&j.coordDim,k==="x"||k==="y"){R=M[B];break}}if(!R)return;var H=_.getAxis(k),W=L.map(R.stops,function(Le){return{coord:H.toGlobalCoord(H.dataToCoord(Le.value)),color:Le.color}}),G=W.length,V=R.outerColors.slice();G&&W[0].coord>W[G-1].coord&&(W.reverse(),V.reverse());var Z=10,Y=W[0].coord-Z,Q=W[G-1].coord+Z,oe=Q-Y;if(oe<.001)return"transparent";L.each(W,function(Le){Le.offset=(Le.coord-Y)/oe}),W.push({offset:G?W[G-1].offset:.5,color:V[1]||"transparent"}),W.unshift({offset:G?W[0].offset:.5,color:V[0]||"transparent"});var ue=new s.LinearGradient(0,0,0,0,W,!0);return ue[k]=Y,ue[k+"2"]=Q,ue}function w(O,_,M){var k=O.get("showAllSymbol"),R=k==="auto";if(k&&!R)return;var B=M.getAxesByScale("ordinal")[0];if(!B)return;if(R&&S(B,_))return;var P=_.mapDimension(B.dim),U={};return L.each(B.getViewLabels(),function(j){U[j.tickValue]=1}),function(j){return!U.hasOwnProperty(_.get(P,j))}}function S(O,_){var M=O.getExtent(),k=Math.abs(M[1]-M[0])/O.scale.count();isNaN(k)&&(k=0);for(var R=_.count(),B=Math.max(1,Math.round(R/5)),P=0;P<R;P+=B)if(m.getSymbolSize(_,P)[O.isHorizontal()?1:0]*1.5>k)return!1;return!0}function T(O,_,M){if(O.type==="cartesian2d"){var k=O.getBaseAxis().isHorizontal(),R=d(O,_,M);if(!M.get("clip",!0)){var B=R.shape,P=Math.max(B.width,B.height);k?(B.y-=P,B.height+=P*2):(B.x-=P,B.width+=P*2)}return R}else return h(O,_,M)}var C=u.extend({type:"line",init:function(){var O=new s.Group,_=new o;this.group.add(_.group),this._symbolDraw=_,this._lineGroup=O},render:function(O,_,M){var k=O.coordinateSystem,R=this.group,B=O.getData(),P=O.getModel("lineStyle"),U=O.getModel("areaStyle"),j=B.mapArray(B.getItemLayout),H=k.type==="polar",W=this._coordSys,G=this._symbolDraw,V=this._polyline,Z=this._polygon,Y=this._lineGroup,Q=O.get("animation"),oe=!U.isEmpty(),ue=U.get("origin"),Le=n(k,B,ue),me=A(k,B,Le),Ie=O.get("showSymbol"),X=Ie&&!H&&w(O,B,k),q=this._data;q&&q.eachItemGraphicEl(function(we,De){we.__temp&&(R.remove(we),q.setItemGraphicEl(De,null))}),Ie||G.remove(),R.add(Y);var We=!H&&O.get("step"),$;k&&k.getArea&&O.get("clip",!0)&&($=k.getArea(),$.width!=null?($.x-=.1,$.y-=.1,$.width+=.2,$.height+=.2):$.r0&&($.r0-=.5,$.r1+=.5)),this._clipShapeForSymbol=$,V&&W.type===k.type&&We===this._step?(oe&&!Z?Z=this._newPolygon(j,me,k,Q):Z&&!oe&&(Y.remove(Z),Z=this._polygon=null),Y.setClipPath(T(k,!1,O)),Ie&&G.updateData(B,{isIgnore:X,clipShape:$}),B.eachItemGraphicEl(function(we){we.stopAnimation(!0)}),(!p(this._stackedOnPoints,me)||!p(this._points,j))&&(Q?this._updateAnimation(B,me,k,M,We,ue):(We&&(j=x(j,k,We),me=x(me,k,We)),V.setShape({points:j}),Z&&Z.setShape({points:j,stackedOnPoints:me})))):(Ie&&G.updateData(B,{isIgnore:X,clipShape:$}),We&&(j=x(j,k,We),me=x(me,k,We)),V=this._newPolyline(j,k,Q),oe&&(Z=this._newPolygon(j,me,k,Q)),Y.setClipPath(T(k,!0,O)));var J=b(B,k)||B.getVisual("color");V.useStyle(L.defaults(P.getLineStyle(),{fill:"none",stroke:J,lineJoin:"bevel"}));var le=O.get("smooth");if(le=v(O.get("smooth")),V.setShape({smooth:le,smoothMonotone:O.get("smoothMonotone"),connectNulls:O.get("connectNulls")}),Z){var de=B.getCalculationInfo("stackedOnSeries"),Ne=0;Z.useStyle(L.defaults(U.getAreaStyle(),{fill:J,opacity:.7,lineJoin:"bevel"})),de&&(Ne=v(de.get("smooth"))),Z.setShape({smooth:le,stackedOnSmooth:Ne,smoothMonotone:O.get("smoothMonotone"),connectNulls:O.get("connectNulls")})}this._data=B,this._coordSys=k,this._stackedOnPoints=me,this._points=j,this._step=We,this._valueOrigin=ue},dispose:function(){},highlight:function(O,_,M,k){var R=O.getData(),B=t.queryDataIndex(R,k);if(!(B instanceof Array)&&B!=null&&B>=0){var P=R.getItemGraphicEl(B);if(!P){var U=R.getItemLayout(B);if(!U)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(U[0],U[1]))return;P=new m(R,B),P.position=U,P.setZ(O.get("zlevel"),O.get("z")),P.ignore=isNaN(U[0])||isNaN(U[1]),P.__temp=!0,R.setItemGraphicEl(B,P),P.stopSymbolAnimation(!0),this.group.add(P)}P.highlight()}else u.prototype.highlight.call(this,O,_,M,k)},downplay:function(O,_,M,k){var R=O.getData(),B=t.queryDataIndex(R,k);if(B!=null&&B>=0){var P=R.getItemGraphicEl(B);P&&(P.__temp?(R.setItemGraphicEl(B,null),this.group.remove(P)):P.downplay())}else u.prototype.downplay.call(this,O,_,M,k)},_newPolyline:function(O){var _=this._polyline;return _&&this._lineGroup.remove(_),_=new a({shape:{points:O},silent:!0,z2:10}),this._lineGroup.add(_),this._polyline=_,_},_newPolygon:function(O,_){var M=this._polygon;return M&&this._lineGroup.remove(M),M=new r({shape:{points:O,stackedOnPoints:_},silent:!0}),this._lineGroup.add(M),this._polygon=M,M},_updateAnimation:function(O,_,M,k,R,B){var P=this._polyline,U=this._polygon,j=O.hostModel,H=f(this._data,O,this._stackedOnPoints,_,this._coordSys,M,this._valueOrigin,B),W=H.current,G=H.stackedOnCurrent,V=H.next,Z=H.stackedOnNext;if(R&&(W=x(H.current,M,R),G=x(H.stackedOnCurrent,M,R),V=x(H.next,M,R),Z=x(H.stackedOnNext,M,R)),g(W,V)>3e3||U&&g(G,Z)>3e3){P.setShape({points:V}),U&&U.setShape({points:V,stackedOnPoints:Z});return}P.shape.__points=H.current,P.shape.points=W,s.updateProps(P,{shape:{points:V}},j),U&&(U.setShape({points:W,stackedOnPoints:G}),s.updateProps(U,{shape:{points:V,stackedOnPoints:Z}},j));for(var Y=[],Q=H.status,oe=0;oe<Q.length;oe++){var ue=Q[oe].cmd;if(ue==="="){var Le=O.getItemGraphicEl(Q[oe].idx1);Le&&Y.push({el:Le,ptIdx:oe})}}P.animators&&P.animators.length&&P.animators[0].during(function(){for(var me=0;me<Y.length;me++){var Ie=Y[me].el;Ie.attr("position",P.shape.__points[Y[me].ptIdx])}})},remove:function(O){var _=this.group,M=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),M&&M.eachItemGraphicEl(function(k,R){k.__temp&&(_.remove(k),M.setItemGraphicEl(R,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});fe.exports=C},"8XDt":function(fe,z,y){y("qH13");var D=y("aX58"),N=D.registerPainter,L=y("6fms");N("vml",L)},"8hn6":function(fe,z){var y="#eee",D=function(){return{axisLine:{lineStyle:{color:y}},axisTick:{lineStyle:{color:y}},axisLabel:{textStyle:{color:y}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:y}}}},N=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],L={color:N,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:y},crossStyle:{color:y},label:{color:"#000"}}},legend:{textStyle:{color:y}},textStyle:{color:y},title:{textStyle:{color:y}},toolbox:{iconStyle:{normal:{borderColor:y}}},dataZoom:{textStyle:{color:y}},visualMap:{textStyle:{color:y}},timeline:{lineStyle:{color:y},itemStyle:{normal:{color:N[1]}},label:{normal:{textStyle:{color:y}}},controlStyle:{normal:{color:y,borderColor:y}}},timeAxis:D(),logAxis:D(),valueAxis:D(),categoryAxis:D(),line:{symbol:"circle"},graph:{color:N},gauge:{title:{textStyle:{color:y}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};L.categoryAxis.splitLine.show=!1;var E=L;fe.exports=E},"8nMs":function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L=y("+rIm"),E=y("Znkb"),I=y("AVZG"),o=y("WN+l"),m=o.rectCoordAxisBuildSplitArea,f=o.rectCoordAxisHandleRemove,s=["axisLine","axisTickLabel","axisName"],t=["splitArea","splitLine","minorSplitLine"],l=E.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(a,r,u,e){this.group.removeAll();var n=this._axisGroup;if(this._axisGroup=new N.Group,this.group.add(this._axisGroup),!a.get("show"))return;var i=a.getCoordSysModel(),c=I.layout(i,a),d=new L(a,c);D.each(s,d.add,d),this._axisGroup.add(d.getGroup()),D.each(t,function(h){a.get(h+".show")&&this["_"+h](a,i)},this),N.groupTransition(n,this._axisGroup,a),l.superCall(this,"render",a,r,u,e)},remove:function(){f(this)},_splitLine:function(a,r){var u=a.axis;if(u.scale.isBlank())return;var e=a.getModel("splitLine"),n=e.getModel("lineStyle"),i=n.get("color");i=D.isArray(i)?i:[i];for(var c=r.coordinateSystem.getRect(),d=u.isHorizontal(),h=0,p=u.getTicksCoords({tickModel:e}),g=[],v=[],A=n.getLineStyle(),x=0;x<p.length;x++){var b=u.toGlobalCoord(p[x].coord);d?(g[0]=b,g[1]=c.y,v[0]=b,v[1]=c.y+c.height):(g[0]=c.x,g[1]=b,v[0]=c.x+c.width,v[1]=b);var w=h++%i.length,S=p[x].tickValue;this._axisGroup.add(new N.Line({anid:S!=null?"line_"+p[x].tickValue:null,subPixelOptimize:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:D.defaults({stroke:i[w]},A),silent:!0}))}},_minorSplitLine:function(a,r){var u=a.axis,e=a.getModel("minorSplitLine"),n=e.getModel("lineStyle"),i=r.coordinateSystem.getRect(),c=u.isHorizontal(),d=u.getMinorTicksCoords();if(!d.length)return;for(var h=[],p=[],g=n.getLineStyle(),v=0;v<d.length;v++)for(var A=0;A<d[v].length;A++){var x=u.toGlobalCoord(d[v][A].coord);c?(h[0]=x,h[1]=i.y,p[0]=x,p[1]=i.y+i.height):(h[0]=i.x,h[1]=x,p[0]=i.x+i.width,p[1]=x),this._axisGroup.add(new N.Line({anid:"minor_line_"+d[v][A].tickValue,subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:g,silent:!0}))}},_splitArea:function(a,r){m(this,this._axisGroup,a,r)}});l.extend({type:"xAxis"}),l.extend({type:"yAxis"})},"8nly":function(fe,z,y){var D=y("mFDi"),N=y("4mN7"),L=y("QBsz"),E=y("BlVb");function I(m,f,s){if(this.name=m,this.geometries=f,s)s=[s[0],s[1]];else{var t=this.getBoundingRect();s=[t.x+t.width/2,t.y+t.height/2]}this.center=s}I.prototype={constructor:I,properties:null,getBoundingRect:function(){var m=this._rect;if(m)return m;for(var f=Number.MAX_VALUE,s=[f,f],t=[-f,-f],l=[],a=[],r=this.geometries,u=0;u<r.length;u++){if(r[u].type!=="polygon")continue;var e=r[u].exterior;N.fromPoints(e,l,a),L.min(s,s,l),L.max(t,t,a)}return u===0&&(s[0]=s[1]=t[0]=t[1]=0),this._rect=new D(s[0],s[1],t[0]-s[0],t[1]-s[1])},contain:function(m){var f=this.getBoundingRect(),s=this.geometries;if(!f.contain(m[0],m[1]))return!1;e:for(var t=0,l=s.length;t<l;t++){if(s[t].type!=="polygon")continue;var a=s[t].exterior,r=s[t].interiors;if(E.contain(a,m[0],m[1])){for(var u=0;u<(r?r.length:0);u++)if(E.contain(r[u]))continue e;return!0}}return!1},transformTo:function(m,f,s,t){var l=this.getBoundingRect(),a=l.width/l.height;s?t||(t=s/a):s=a*t;for(var r=new D(m,f,s,t),u=l.calculateTransform(r),e=this.geometries,n=0;n<e.length;n++){if(e[n].type!=="polygon")continue;for(var i=e[n].exterior,c=e[n].interiors,d=0;d<i.length;d++)L.applyTransform(i[d],i[d],u);for(var h=0;h<(c?c.length:0);h++)for(var d=0;d<c[h].length;d++)L.applyTransform(c[h][d],c[h][d],u)}l=this._rect,l.copy(r),this.center=[l.x+l.width/2,l.y+l.height/2]},cloneShallow:function(m){m==null&&(m=this.name);var f=new I(m,this.geometries,this.center);return f._rect=this._rect,f.transformTo=null,f}};var o=I;fe.exports=o},"8txm":function(fe,z,y){},"8waO":function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("iLNv"),E=y("ZWlE");y("hJvP"),y("IXyC"),y("xRUu");var I=5;D.extendComponentView({type:"parallel",render:function(f,s,t){this._model=f,this._api=t,this._handlers||(this._handlers={},N.each(o,function(l,a){t.getZr().on(a,this._handlers[a]=N.bind(l,this))},this)),L.createOrUpdate(this,"_throttledDispatchExpand",f.get("axisExpandRate"),"fixRate")},dispose:function(f,s){N.each(this._handlers,function(t,l){s.getZr().off(l,t)}),this._handlers=null},_throttledDispatchExpand:function(f){this._dispatchExpand(f)},_dispatchExpand:function(f){f&&this._api.dispatchAction(N.extend({type:"parallelAxisExpand"},f))}});var o={mousedown:function(f){m(this,"click")&&(this._mouseDownPoint=[f.offsetX,f.offsetY])},mouseup:function(f){var s=this._mouseDownPoint;if(m(this,"click")&&s){var t=[f.offsetX,f.offsetY],l=Math.pow(s[0]-t[0],2)+Math.pow(s[1]-t[1],2);if(l>I)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([f.offsetX,f.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(f){if(this._mouseDownPoint||!m(this,"mousemove"))return;var s=this._model,t=s.coordinateSystem.getSlidedAxisExpandWindow([f.offsetX,f.offsetY]),l=t.behavior;l==="jump"&&this._throttledDispatchExpand.debounceNextCall(s.get("axisExpandDebounce")),this._throttledDispatchExpand(l==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:l==="jump"?null:!1})}};function m(f,s){var t=f._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===s}D.registerPreprocessor(E)},"8x+h":function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("bYtY"),I=y("K4ya"),o=y("Qxkt"),m=["#ddd"],f=L.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(l,a){var r=this.option;!a&&I.replaceVisualOption(r,l,["inBrush","outOfBrush"]);var u=r.inBrush=r.inBrush||{};r.outOfBrush=r.outOfBrush||{color:m},u.hasOwnProperty("liftZ")||(u.liftZ=5)},setAreas:function(l){if(!l)return;this.areas=E.map(l,function(a){return s(this.option,a)},this)},setBrushOption:function(l){this.brushOption=s(this.option,l),this.brushType=this.brushOption.brushType}});function s(l,a){return E.merge({brushType:l.brushType,brushMode:l.brushMode,transformable:l.transformable,brushStyle:new o(l.brushStyle).getItemStyle(),removeOnClick:l.removeOnClick,z:l.z},a,!0)}var t=f;fe.exports=t},"8z0m":function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("RIqP"),E=y.n(L),I=y("pVnL"),o=y.n(I),m=y("J4zp"),f=y.n(m),s=y("q1tI"),t=y.n(s),l=y("TSYQ"),a=y.n(l);function r(er,nr){var Ot="cannot "+er.method+" "+er.action+" "+nr.status+"'",lt=new Error(Ot);return lt.status=nr.status,lt.method=er.method,lt.url=er.action,lt}function u(er){var nr=er.responseText||er.response;if(!nr)return nr;try{return JSON.parse(nr)}catch(Ot){return nr}}function e(er){var nr=new XMLHttpRequest;er.onProgress&&nr.upload&&(nr.upload.onprogress=function(tr){tr.total>0&&(tr.percent=tr.loaded/tr.total*100),er.onProgress(tr)});var Ot=new FormData;er.data&&Object.keys(er.data).forEach(function(qe){var tr=er.data[qe];if(Array.isArray(tr)){tr.forEach(function(xr){Ot.append(qe+"[]",xr)});return}Ot.append(qe,er.data[qe])}),er.file instanceof Blob?Ot.append(er.filename,er.file,er.file.name):Ot.append(er.filename,er.file),nr.onerror=function(tr){er.onError(tr)},nr.onload=function(){return nr.status<200||nr.status>=300?er.onError(r(er,nr),u(nr)):er.onSuccess(u(nr),nr)},nr.open(er.method,er.action,!0),er.withCredentials&&"withCredentials"in nr&&(nr.withCredentials=!0);var lt=er.headers||{};return lt["X-Requested-With"]!==null&&nr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(lt).forEach(function(qe){lt[qe]!==null&&nr.setRequestHeader(qe,lt[qe])}),nr.send(Ot),{abort:function(){nr.abort()}}}var n=+new Date,i=0;function c(){return"rc-upload-"+n+"-"+ ++i}function d(er,nr){return er.indexOf(nr,er.length-nr.length)!==-1}var h=function(er,nr){if(er&&nr){var Ot=Array.isArray(nr)?nr:nr.split(","),lt=er.name||"",qe=er.type||"",tr=qe.replace(/\/.*$/,"");return Ot.some(function(xr){var Ar=xr.trim();return Ar.charAt(0)==="."?d(lt.toLowerCase(),Ar.toLowerCase()):/\/\*$/.test(Ar)?tr===Ar.replace(/\/.*$/,""):qe===Ar})}return!0};function p(er,nr){var Ot=er.createReader(),lt=[];function qe(){Ot.readEntries(function(tr){var xr=Array.prototype.slice.apply(tr);lt=lt.concat(xr);var Ar=!xr.length;Ar?nr(lt):qe()})}qe()}var g=function(nr,Ot,lt){var qe=function tr(xr,Ar){Ar=Ar||"",xr.isFile?xr.file(function(fr){lt(fr)&&(xr.fullPath&&!fr.webkitRelativePath&&(Object.defineProperties(fr,{webkitRelativePath:{writable:!0}}),fr.webkitRelativePath=xr.fullPath.replace(/^\//,""),Object.defineProperties(fr,{webkitRelativePath:{writable:!1}})),Ot([fr]))}):xr.isDirectory&&p(xr,function(fr){fr.forEach(function(vn){tr(vn,""+Ar+xr.name+"/")})})};nr.forEach(function(tr){qe(tr.webkitGetAsEntry())})},v=g,A=Object.assign||function(er){for(var nr=1;nr<arguments.length;nr++){var Ot=arguments[nr];for(var lt in Ot)Object.prototype.hasOwnProperty.call(Ot,lt)&&(er[lt]=Ot[lt])}return er},x=function(){function er(nr,Ot){var lt=[],qe=!0,tr=!1,xr=void 0;try{for(var Ar=nr[Symbol.iterator](),fr;!(qe=(fr=Ar.next()).done)&&!(lt.push(fr.value),Ot&<.length===Ot);qe=!0);}catch(vn){tr=!0,xr=vn}finally{try{!qe&&Ar.return&&Ar.return()}finally{if(tr)throw xr}}return lt}return function(nr,Ot){if(Array.isArray(nr))return nr;if(Symbol.iterator in Object(nr))return er(nr,Ot);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function er(nr,Ot){for(var lt=0;lt<Ot.length;lt++){var qe=Ot[lt];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(nr,qe.key,qe)}}return function(nr,Ot,lt){return Ot&&er(nr.prototype,Ot),lt&&er(nr,lt),nr}}();function w(er,nr,Ot){return nr in er?Object.defineProperty(er,nr,{value:Ot,enumerable:!0,configurable:!0,writable:!0}):er[nr]=Ot,er}function S(er,nr){var Ot={};for(var lt in er){if(nr.indexOf(lt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(er,lt))continue;Ot[lt]=er[lt]}return Ot}function T(er,nr){if(!(er instanceof nr))throw new TypeError("Cannot call a class as a function")}function C(er,nr){if(!er)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nr&&(typeof nr=="object"||typeof nr=="function")?nr:er}function O(er,nr){if(typeof nr!="function"&&nr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nr);er.prototype=Object.create(nr&&nr.prototype,{constructor:{value:er,enumerable:!1,writable:!0,configurable:!0}}),nr&&(Object.setPrototypeOf?Object.setPrototypeOf(er,nr):er.__proto__=nr)}var _=function(nr){return Object.keys(nr).reduce(function(Ot,lt){return(lt.substr(0,5)==="data-"||lt.substr(0,5)==="aria-"||lt==="role")&&(Ot[lt]=nr[lt]),Ot},{})},M=function(er){O(nr,er);function nr(){var Ot,lt,qe,tr;T(this,nr);for(var xr=arguments.length,Ar=Array(xr),fr=0;fr<xr;fr++)Ar[fr]=arguments[fr];return tr=(lt=(qe=C(this,(Ot=nr.__proto__||Object.getPrototypeOf(nr)).call.apply(Ot,[this].concat(Ar))),qe),qe.state={uid:c()},qe.reqs={},qe.onChange=function(vn){var $r=vn.target.files;qe.uploadFiles($r),qe.reset()},qe.onClick=function(vn){var $r=qe.fileInput;if(!$r)return;var Ln=qe.props,tt=Ln.children,nt=Ln.onClick;tt&&tt.type==="button"&&($r.parentNode.focus(),$r.parentNode.querySelector("button").blur()),$r.click(),nt&&nt(vn)},qe.onKeyDown=function(vn){vn.key==="Enter"&&qe.onClick()},qe.onFileDrop=function(vn){var $r=qe.props.multiple;if(vn.preventDefault(),vn.type==="dragover")return;if(qe.props.directory)v(Array.prototype.slice.call(vn.dataTransfer.items),qe.uploadFiles,function(tt){return h(tt,qe.props.accept)});else{var Ln=Array.prototype.slice.call(vn.dataTransfer.files).filter(function(tt){return h(tt,qe.props.accept)});$r===!1&&(Ln=Ln.slice(0,1)),qe.uploadFiles(Ln)}},qe.uploadFiles=function(vn){var $r=Array.prototype.slice.call(vn);$r.map(function(Ln){return Ln.uid=c(),Ln}).forEach(function(Ln){qe.upload(Ln,$r)})},qe.saveFileInput=function(vn){qe.fileInput=vn},lt),C(qe,tr)}return b(nr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(lt,qe){var tr=this,xr=this.props;if(!xr.beforeUpload)return setTimeout(function(){return tr.post(lt)},0);var Ar=xr.beforeUpload(lt,qe);Ar&&Ar.then?Ar.then(function(fr){var vn=Object.prototype.toString.call(fr);return vn==="[object File]"||vn==="[object Blob]"?tr.post(fr):tr.post(lt)}).catch(function(fr){console.log(fr)}):Ar!==!1&&setTimeout(function(){return tr.post(lt)},0);return}},{key:"post",value:function(lt){var qe=this;if(!this._isMounted)return;var tr=this.props,xr=tr.onStart,Ar=tr.onProgress,fr=tr.transformFile,vn=fr===void 0?function($r){return $r}:fr;new Promise(function($r){var Ln=tr.action;return typeof Ln=="function"&&(Ln=Ln(lt)),$r(Ln)}).then(function($r){var Ln=lt.uid,tt=tr.customRequest||e,nt=Promise.resolve(vn(lt)).then(function(Te){var Me=tr.data;return typeof Me=="function"&&(Me=Me(Te)),Promise.all([Te,Me])}).catch(function(Te){console.error(Te)});nt.then(function(Te){var Me=x(Te,2),Xe=Me[0],at=Me[1],zt={action:$r,filename:tr.name,data:at,file:Xe,headers:tr.headers,withCredentials:tr.withCredentials,method:tr.method||"post",onProgress:Ar?function(kt){Ar(kt,lt)}:null,onSuccess:function(Xt,Dr){delete qe.reqs[Ln],tr.onSuccess(Xt,lt,Dr)},onError:function(Xt,Dr){delete qe.reqs[Ln],tr.onError(Xt,Dr,lt)}};xr(lt),qe.reqs[Ln]=tt(zt)})})}},{key:"reset",value:function(){this.setState({uid:c()})}},{key:"abort",value:function(lt){var qe=this.reqs;if(lt){var tr=lt;lt&<.uid&&(tr=lt.uid),qe[tr]&&qe[tr].abort&&qe[tr].abort(),delete qe[tr]}else Object.keys(qe).forEach(function(xr){qe[xr]&&qe[xr].abort&&qe[xr].abort(),delete qe[xr]})}},{key:"render",value:function(){var lt,qe=this.props,tr=qe.component,xr=qe.prefixCls,Ar=qe.className,fr=qe.disabled,vn=qe.id,$r=qe.style,Ln=qe.multiple,tt=qe.accept,nt=qe.children,Te=qe.directory,Me=qe.openFileDialogOnClick,Xe=qe.onMouseEnter,at=qe.onMouseLeave,zt=S(qe,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),kt=a()((lt={},w(lt,xr,!0),w(lt,xr+"-disabled",fr),w(lt,Ar,Ar),lt)),Xt=fr?{}:{onClick:Me?this.onClick:function(){},onKeyDown:Me?this.onKeyDown:function(){},onMouseEnter:Xe,onMouseLeave:at,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return t.a.createElement(tr,A({},Xt,{className:kt,role:"button",style:$r}),t.a.createElement("input",A({},_(zt),{id:vn,type:"file",ref:this.saveFileInput,onClick:function(Pr){return Pr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:tt,directory:Te?"directory":null,webkitdirectory:Te?"webkitdirectory":null,multiple:Ln,onChange:this.onChange})),nt)}}]),nr}(s.Component),k=M,R=Object.assign||function(er){for(var nr=1;nr<arguments.length;nr++){var Ot=arguments[nr];for(var lt in Ot)Object.prototype.hasOwnProperty.call(Ot,lt)&&(er[lt]=Ot[lt])}return er},B=function(){function er(nr,Ot){for(var lt=0;lt<Ot.length;lt++){var qe=Ot[lt];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(nr,qe.key,qe)}}return function(nr,Ot,lt){return Ot&&er(nr.prototype,Ot),lt&&er(nr,lt),nr}}();function P(er,nr){if(!(er instanceof nr))throw new TypeError("Cannot call a class as a function")}function U(er,nr){if(!er)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nr&&(typeof nr=="object"||typeof nr=="function")?nr:er}function j(er,nr){if(typeof nr!="function"&&nr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nr);er.prototype=Object.create(nr&&nr.prototype,{constructor:{value:er,enumerable:!1,writable:!0,configurable:!0}}),nr&&(Object.setPrototypeOf?Object.setPrototypeOf(er,nr):er.__proto__=nr)}function H(){}var W=function(er){j(nr,er);function nr(){var Ot,lt,qe,tr;P(this,nr);for(var xr=arguments.length,Ar=Array(xr),fr=0;fr<xr;fr++)Ar[fr]=arguments[fr];return tr=(lt=(qe=U(this,(Ot=nr.__proto__||Object.getPrototypeOf(nr)).call.apply(Ot,[this].concat(Ar))),qe),qe.saveUploader=function(vn){qe.uploader=vn},lt),U(qe,tr)}return B(nr,[{key:"abort",value:function(lt){this.uploader.abort(lt)}},{key:"render",value:function(){return t.a.createElement(k,R({},this.props,{ref:this.saveUploader}))}}]),nr}(s.Component);W.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:H,onError:H,onSuccess:H,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var G=W,V=G,Z=function(er,nr){var Ot={};for(var lt in er)Object.prototype.hasOwnProperty.call(er,lt)&&nr.indexOf(lt)<0&&(Ot[lt]=er[lt]);if(er!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,lt=Object.getOwnPropertySymbols(er);qe<lt.length;qe++)nr.indexOf(lt[qe])<0&&Object.prototype.propertyIsEnumerable.call(er,lt[qe])&&(Ot[lt[qe]]=er[lt[qe]]);return Ot},Y=function(nr,Ot){var lt=nr.style,qe=nr.height,tr=Z(nr,["style","height"]);return s.createElement(or,o()({ref:Ot},tr,{type:"drag",style:o()(o()({},lt),{height:qe})}))},Q=s.forwardRef(Y);Q.displayName="Dragger";var oe=Q,ue=y("UmKh"),Le=y("gZBC"),me=y.n(Le),Ie=y("+d4F"),X=y.n(Ie),q=y("XAae"),We=y.n(q),$=y("6xvX"),J=y.n($),le=y("qPY4"),de=y.n(le),Ne=y("QB+1"),we=y.n(Ne),De=y("Qs3X"),Ee=y.n(De),ce=y("0n0R");function ne(){return!0}function ee(er){return o()(o()({},er),{lastModified:er.lastModified,lastModifiedDate:er.lastModifiedDate,name:er.name,size:er.size,type:er.type,uid:er.uid,percent:0,originFileObj:er})}function Ae(er,nr){var Ot=er.uid!==void 0?"uid":"name";return nr.filter(function(lt){return lt[Ot]===er[Ot]})[0]}function Ve(er,nr){var Ot=er.uid!==void 0?"uid":"name",lt=nr.filter(function(qe){return qe[Ot]!==er[Ot]});return lt.length===nr.length?null:lt}var Ke=function(){var nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Ot=nr.split("/"),lt=Ot[Ot.length-1],qe=lt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(qe)||[""])[0]},Oe=function(nr){return nr.indexOf("image/")===0},it=function(nr){if(nr.type&&!nr.thumbUrl)return Oe(nr.type);var Ot=nr.thumbUrl||nr.url,lt=Ke(Ot);return/^data:image\//.test(Ot)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(lt)?!0:/^data:/.test(Ot)?!1:!lt},Fe=200;function ft(er){return new Promise(function(nr){if(!er.type||!Oe(er.type)){nr("");return}var Ot=document.createElement("canvas");Ot.width=Fe,Ot.height=Fe,Ot.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(Fe,"px; height: ").concat(Fe,"px; z-index: 9999; display: none;"),document.body.appendChild(Ot);var lt=Ot.getContext("2d"),qe=new Image;qe.onload=function(){var tr=qe.width,xr=qe.height,Ar=Fe,fr=Fe,vn=0,$r=0;tr<xr?(fr=xr*(Fe/tr),$r=-(fr-Ar)/2):(Ar=tr*(Fe/xr),vn=-(Ar-fr)/2),lt.drawImage(qe,vn,$r,Ar,fr);var Ln=Ot.toDataURL();document.body.removeChild(Ot),nr(Ln)},qe.src=window.URL.createObjectURL(er)})}var At=y("3S7+"),bt=y("CFYs"),St=y("H84U"),Et=y("2/Rp"),je=y("hkKa"),pe=function(nr,Ot){var lt,qe=nr.listType,tr=nr.previewFile,xr=nr.onPreview,Ar=nr.onDownload,fr=nr.onRemove,vn=nr.locale,$r=nr.iconRender,Ln=nr.isImageUrl,tt=nr.prefixCls,nt=nr.items,Te=nt===void 0?[]:nt,Me=nr.showPreviewIcon,Xe=nr.showRemoveIcon,at=nr.showDownloadIcon,zt=nr.removeIcon,kt=nr.downloadIcon,Xt=nr.progress,Dr=Object(je.a)();s.useEffect(function(){if(qe!=="picture"&&qe!=="picture-card")return;(Te||[]).forEach(function(sr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(sr.originFileObj instanceof File||sr.originFileObj instanceof Blob)||sr.thumbUrl!==void 0)return;sr.thumbUrl="",tr&&tr(sr.originFileObj).then(function(ir){sr.thumbUrl=ir||"",Dr()})})},[qe,Te,tr]);var Pr=function(ir,Yr){return xr?(Yr.preventDefault(),xr(ir)):void 0},cn=function(ir){typeof Ar=="function"?Ar(ir):ir.url&&window.open(ir.url)},jt=function(ir){fr&&fr(ir)},gt=function(ir){if($r)return $r(ir,qe);var Yr=ir.status==="uploading",Jr=Ln&&Ln(ir)?s.createElement(We.a,null):s.createElement(J.a,null),In=Yr?s.createElement(me.a,null):s.createElement(X.a,null);return qe==="picture"?In=Yr?s.createElement(me.a,null):Jr:qe==="picture-card"&&(In=Yr?vn.uploading:Jr),In},dt=function(ir,Yr,Jr,In){var Nn={type:"text",size:"small",title:In,onClick:function(Ai){Yr(),Object(ce.b)(ir)&&ir.props.onClick&&ir.props.onClick(Ai)},className:"".concat(Jr,"-list-item-card-actions-btn")};if(Object(ce.b)(ir)){var zn=Object(ce.a)(ir,o()(o()({},ir.props),{onClick:function(){}}));return s.createElement(Et.a,o()({},Nn,{icon:zn}))}return s.createElement(Et.a,Nn,s.createElement("span",null,ir))};s.useImperativeHandle(Ot,function(){return{handlePreview:Pr,handleDownload:cn}});var Qt=s.useContext(St.b),Jt=Qt.getPrefixCls,xt=Qt.direction,Pt=Jt("upload",tt),yt=Te.map(function(sr){var ir,Yr,Jr,In=gt(sr),Nn=s.createElement("div",{className:"".concat(Pt,"-text-icon")},In);if(qe==="picture"||qe==="picture-card")if(sr.status==="uploading"||!sr.thumbUrl&&!sr.url){var zn,ei=a()((zn={},N()(zn,"".concat(Pt,"-list-item-thumbnail"),!0),N()(zn,"".concat(Pt,"-list-item-file"),sr.status!=="uploading"),zn));Nn=s.createElement("div",{className:ei},In)}else{var Ai,Pi=Ln&&Ln(sr)?s.createElement("img",{src:sr.thumbUrl||sr.url,alt:sr.name,className:"".concat(Pt,"-list-item-image")}):In,$e=a()((Ai={},N()(Ai,"".concat(Pt,"-list-item-thumbnail"),!0),N()(Ai,"".concat(Pt,"-list-item-file"),Ln&&!Ln(sr)),Ai));Nn=s.createElement("a",{className:$e,onClick:function(Br){return Pr(sr,Br)},href:sr.url||sr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Pi)}if(sr.status==="uploading"){var _e="percent"in sr?s.createElement(bt.a,o()({},Xt,{type:"line",percent:sr.percent})):null;Jr=s.createElement("div",{className:"".concat(Pt,"-list-item-progress"),key:"progress"},_e)}var Be=a()((ir={},N()(ir,"".concat(Pt,"-list-item"),!0),N()(ir,"".concat(Pt,"-list-item-").concat(sr.status),!0),N()(ir,"".concat(Pt,"-list-item-list-type-").concat(qe),!0),ir)),He=typeof sr.linkProps=="string"?JSON.parse(sr.linkProps):sr.linkProps,Je=Xe?dt(zt||s.createElement(we.a,null),function(){return jt(sr)},Pt,vn.removeFile):null,Ye=at&&sr.status==="done"?dt(kt||s.createElement(Ee.a,null),function(){return cn(sr)},Pt,vn.downloadFile):null,et=qe!=="picture-card"&&s.createElement("span",{key:"download-delete",className:"".concat(Pt,"-list-item-card-actions ").concat(qe==="picture"?"picture":"")},Ye,Je),wt=a()((Yr={},N()(Yr,"".concat(Pt,"-list-item-name"),!0),N()(Yr,"".concat(Pt,"-list-item-name-icon-count-").concat([Ye,Je].filter(function(Gr){return Gr}).length),!0),Yr)),ut=sr.url?[s.createElement("a",o()({key:"view",target:"_blank",rel:"noopener noreferrer",className:wt,title:sr.name},He,{href:sr.url,onClick:function(Br){return Pr(sr,Br)}}),sr.name),et]:[s.createElement("span",{key:"view",className:wt,onClick:function(Br){return Pr(sr,Br)},title:sr.name},sr.name),et],Ft={pointerEvents:"none",opacity:.5},wr=Me?s.createElement("a",{href:sr.url||sr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:sr.url||sr.thumbUrl?void 0:Ft,onClick:function(Br){return Pr(sr,Br)},title:vn.previewFile},s.createElement(de.a,null)):null,hr=qe==="picture-card"&&sr.status!=="uploading"&&s.createElement("span",{className:"".concat(Pt,"-list-item-actions")},wr,sr.status==="done"&&Ye,Je),Nr;sr.response&&typeof sr.response=="string"?Nr=sr.response:Nr=sr.error&&sr.error.statusText||vn.uploadError;var Kt=s.createElement("span",null,Nn,ut),un=s.createElement("div",{className:Be},s.createElement("div",{className:"".concat(Pt,"-list-item-info")},Kt),hr,s.createElement(ue.a,{transitionName:"fade",component:""},Jr)),ar=a()(N()({},"".concat(Pt,"-list-picture-card-container"),qe==="picture-card"));return s.createElement("div",{key:sr.uid,className:ar},sr.status==="error"?s.createElement(At.a,{title:Nr,getPopupContainer:function(Br){return Br.parentNode}},un):s.createElement("span",null,un))}),Ut=a()((lt={},N()(lt,"".concat(Pt,"-list"),!0),N()(lt,"".concat(Pt,"-list-").concat(qe),!0),N()(lt,"".concat(Pt,"-list-rtl"),xt==="rtl"),lt)),pr=qe==="picture-card"?"animate-inline":"animate";return s.createElement(ue.a,{transitionName:"".concat(Pt,"-").concat(pr),component:"div",className:Ut},yt)},ie=s.forwardRef(pe);ie.displayName="UploadList",ie.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:ft,isImageUrl:it};var st=ie,Qe=y("YMnH"),ve=y("ZvpZ"),Bt=y("uaoM"),qt=y("sPtV"),ct=function(nr,Ot){var lt,qe=nr.fileList,tr=nr.defaultFileList,xr=nr.onRemove,Ar=nr.showUploadList,fr=nr.listType,vn=nr.onPreview,$r=nr.onDownload,Ln=nr.previewFile,tt=nr.disabled,nt=nr.locale,Te=nr.iconRender,Me=nr.isImageUrl,Xe=nr.progress,at=nr.prefixCls,zt=nr.className,kt=nr.type,Xt=nr.children,Dr=nr.style,Pr=Object(qt.a)(qe||tr||[]),cn=f()(Pr,2),jt=cn[0],gt=cn[1],dt=s.useState("drop"),Qt=f()(dt,2),Jt=Qt[0],xt=Qt[1],Pt=s.useRef();s.useEffect(function(){gt(qe||tr||[]),Object(Bt.a)("fileList"in nr||!("value"in nr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),s.useEffect(function(){"fileList"in nr&>(qe||[])},[qe]);var yt=function(ut){"fileList"in nr||gt(ut.fileList);var Ft=nr.onChange;Ft&&Ft(o()(o()({},ut),{fileList:E()(ut.fileList)}))},Ut=function(ut){var Ft=ee(ut);Ft.status="uploading";var wr=jt().concat(),hr=wr.findIndex(function(Nr){var Kt=Nr.uid;return Kt===Ft.uid});hr===-1?wr.push(Ft):wr[hr]=Ft,yt({file:Ft,fileList:wr})},pr=function(ut,Ft,wr){try{typeof ut=="string"&&(ut=JSON.parse(ut))}catch(Nr){}var hr=Ae(Ft,jt());if(!hr)return;hr.status="done",hr.response=ut,hr.xhr=wr,yt({file:o()({},hr),fileList:jt().concat()})},sr=function(ut,Ft){var wr=Ae(Ft,jt());if(!wr)return;wr.percent=ut.percent,yt({event:ut,file:o()({},wr),fileList:jt().concat()})},ir=function(ut,Ft,wr){var hr=Ae(wr,jt());if(!hr)return;hr.error=ut,hr.response=Ft,hr.status="error",yt({file:o()({},hr),fileList:jt().concat()})},Yr=function(ut){Promise.resolve(typeof xr=="function"?xr(ut):xr).then(function(Ft){if(Ft===!1)return;var wr=Ve(ut,jt());wr&&(ut.status="removed",Pt.current&&Pt.current.abort(ut),yt({file:ut,fileList:wr}))})},Jr=function(ut){xt(ut.type)},In=function(ut,Ft){var wr=nr.beforeUpload;if(!wr)return!0;var hr=wr(ut,Ft);if(hr===!1){var Nr=[];return jt().concat(Ft.map(ee)).forEach(function(Kt){Nr.every(function(un){return un.uid!==Kt.uid})&&Nr.push(Kt)}),yt({file:ut,fileList:Nr}),!1}return hr&&hr.then?hr:!0},Nn=Object(je.a)();s.useImperativeHandle(Ot,function(){return{onStart:Ut,onSuccess:pr,onProgress:sr,onError:ir,fileList:jt(),upload:Pt.current,forceUpdate:Nn}});var zn=function(ut){var Ft=Ar.showRemoveIcon,wr=Ar.showPreviewIcon,hr=Ar.showDownloadIcon,Nr=Ar.removeIcon,Kt=Ar.downloadIcon;return s.createElement(st,{listType:fr,items:jt(),previewFile:Ln,onPreview:vn,onDownload:$r,onRemove:Yr,showRemoveIcon:!tt&&Ft,showPreviewIcon:wr,showDownloadIcon:hr,removeIcon:Nr,downloadIcon:Kt,iconRender:Te,locale:o()(o()({},ut),nt),isImageUrl:Me,progress:Xe})},ei=s.useContext(St.b),Ai=ei.getPrefixCls,Pi=ei.direction,$e=Ai("upload",at),_e=o()(o()({onStart:Ut,onError:ir,onProgress:sr,onSuccess:pr},nr),{prefixCls:$e,beforeUpload:In});delete _e.className,delete _e.style,(!Xt||tt)&&delete _e.id;var Be=Ar?s.createElement(Qe.a,{componentName:"Upload",defaultLocale:ve.a.Upload},zn):null;if(kt==="drag"){var He,Je=a()($e,(He={},N()(He,"".concat($e,"-drag"),!0),N()(He,"".concat($e,"-drag-uploading"),jt().some(function(wt){return wt.status==="uploading"})),N()(He,"".concat($e,"-drag-hover"),Jt==="dragover"),N()(He,"".concat($e,"-disabled"),tt),N()(He,"".concat($e,"-rtl"),Pi==="rtl"),He),zt);return s.createElement("span",null,s.createElement("div",{className:Je,onDrop:Jr,onDragOver:Jr,onDragLeave:Jr,style:Dr},s.createElement(V,o()({},_e,{ref:Pt,className:"".concat($e,"-btn")}),s.createElement("div",{className:"".concat($e,"-drag-container")},Xt))),Be)}var Ye=a()($e,(lt={},N()(lt,"".concat($e,"-select"),!0),N()(lt,"".concat($e,"-select-").concat(fr),!0),N()(lt,"".concat($e,"-disabled"),tt),N()(lt,"".concat($e,"-rtl"),Pi==="rtl"),lt)),et=s.createElement("div",{className:Ye,style:Xt?void 0:{display:"none"}},s.createElement(V,o()({},_e,{ref:Pt})));return fr==="picture-card"?s.createElement("span",{className:a()(zt,"".concat($e,"-picture-card-wrapper"))},Be,et):s.createElement("span",{className:zt},et,Be)},Wt=s.forwardRef(ct);Wt.Dragger=oe,Wt.displayName="Upload",Wt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:ne,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var or=Wt;or.Dragger=oe;var Fr=z.a=or},"98bh":function(fe,z,y){var D=y("ProS"),N=y("5GtS"),L=y("bYtY"),E=y("4NO4"),I=y("OELB"),o=I.getPercentWithPrecision,m=y("cCMj"),f=y("KxfA"),s=f.retrieveRawAttr,t=y("D5nY"),l=t.makeSeriesEncodeForNameBased,a=y("xKMd"),r=D.extendSeriesModel({type:"series.pie",init:function(e){r.superApply(this,"init",arguments),this.legendVisualProvider=new a(L.bind(this.getData,this),L.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){r.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,n){return N(this,{coordDimensions:["value"],encodeDefaulter:L.curry(l,this)})},_createSelectableList:function(){for(var e=this.getRawData(),n=e.mapDimension("value"),i=[],c=0,d=e.count();c<d;c++)i.push({name:e.getName(c),value:e.get(n,c),selected:s(e,c,"selected")});return i},getDataParams:function(e){var n=this.getData(),i=r.superCall(this,"getDataParams",e),c=[];return n.each(n.mapDimension("value"),function(d){c.push(d)}),i.percent=o(c,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(e){E.defaultEmphasis(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.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"}});L.mixin(r,m);var u=r;fe.exports=u},"9H2F":function(fe,z,y){var D=y("bYtY"),N=D.assert,L=D.isArray,E=y("Tghj"),I=E.__DEV__;function o(a){return new m(a)}function m(a){a=a||{},this._reset=a.reset,this._plan=a.plan,this._count=a.count,this._onDirty=a.onDirty,this._dirty=!0,this.context}var f=m.prototype;f.perform=function(a){var r=this._upstream,u=a&&a.skip;if(this._dirty&&r){var e=this.context;e.data=e.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!u&&(n=this._plan(this.context));var i=p(this._modBy),c=this._modDataCount||0,d=p(a&&a.modBy),h=a&&a.modDataCount||0;(i!==d||c!==h)&&(n="reset");function p(T){return!(T>=1)&&(T=1),T}var g;(this._dirty||n==="reset")&&(this._dirty=!1,g=l(this,u)),this._modBy=d,this._modDataCount=h;var v=a&&a.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var A=this._dueIndex,x=Math.min(v!=null?this._dueIndex+v:Infinity,this._dueEnd);if(!u&&(g||A<x)){var b=this._progress;if(L(b))for(var w=0;w<b.length;w++)t(this,b[w],A,x,d,h);else t(this,b,A,x,d,h)}this._dueIndex=x;var S=this._settedOutputEnd!=null?this._settedOutputEnd:x;this._outputDueEnd=S}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var s=function(){var a,r,u,e,n,i={reset:function(h,p,g,v){r=h,a=p,u=g,e=v,n=Math.ceil(e/u),i.next=u>1&&e>0?d:c}};return i;function c(){return r<a?r++:null}function d(){var h=r%n*u+Math.ceil(r/n),p=r>=a?null:h<e?h:r;return r++,p}}();f.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function t(a,r,u,e,n,i){s.reset(u,e,n,i),a._callingProgress=r,a._callingProgress({start:u,end:e,count:e-u,next:s.next},a.context)}function l(a,r){a._dueIndex=a._outputDueEnd=a._dueEnd=0,a._settedOutputEnd=null;var u,e;!r&&a._reset&&(u=a._reset(a.context),u&&u.progress&&(e=u.forceFirstProgress,u=u.progress),L(u)&&!u.length&&(u=null)),a._progress=u,a._modBy=a._modDataCount=null;var n=a._downstream;return n&&n.dirty(),e}f.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},f.pipe=function(a){(this._downstream!==a||this._dirty)&&(this._downstream=a,a._upstream=this,a.dirty())},f.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},f.getUpstream=function(){return this._upstream},f.getDownstream=function(){return this._downstream},f.setOutputEnd=function(a){this._outputDueEnd=this._settedOutputEnd=a},z.createTask=o},"9KIM":function(fe,z,y){var D=y("mFDi"),N=y("xSat"),L=N.onIrrelevantElement,E=y("IwbS");function I(s){return s=f(s),function(t,l){return E.clipPointsByRect(t,s)}}function o(s,t){return s=f(s),function(l){var a=t!=null?t:l,r=a?s.width:s.height,u=a?s.x:s.y;return[u,u+(r||0)]}}function m(s,t,l){return s=f(s),function(a,r,u){return s.contain(r[0],r[1])&&!L(a,t,l)}}function f(s){return D.create(s)}z.makeRectPanelClipPath=I,z.makeLinearBrushOtherExtent=o,z.makeRectIsTargetByCursor=m},"9OqN":function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return D.mode.CTR=function(){var N=D.lib.BlockCipherMode.extend(),L=N.Encryptor=N.extend({processBlock:function(I,o){var m=this._cipher,f=m.blockSize,s=this._iv,t=this._counter;s&&(t=this._counter=s.slice(0),this._iv=void 0);var l=t.slice(0);m.encryptBlock(l,0),t[f-1]=t[f-1]+1|0;for(var a=0;a<f;a++)I[o+a]^=l[a]}});return N.Decryptor=L,N}(),D.mode.CTR})},"9ama":function(fe,z,y){},"9eas":function(fe,z,y){y("HM/N"),y("tBnm")},"9hCq":function(fe,z,y){var D=y("IwbS"),N=y("+TT/"),L=y("bYtY"),E=y("VaxA"),I=E.wrapTreePathInfo,o=8,m=8,f=5;function s(r){this.group=new D.Group,r.add(this.group)}s.prototype={constructor:s,render:function(r,u,e,n){var i=r.getModel("breadcrumb"),c=this.group;if(c.removeAll(),!i.get("show")||!e)return;var d=i.getModel("itemStyle"),h=d.getModel("textStyle"),p={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:u.getWidth(),height:u.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(e,p,h),this._renderContent(r,p,d,h,n),N.positionElement(c,p.pos,p.box)},_prepare:function(r,u,e){for(var n=r;n;n=n.parentNode){var i=n.getModel().get("name"),c=e.getTextRect(i),d=Math.max(c.width+o*2,u.emptyItemWidth);u.totalWidth+=d+m,u.renderList.push({node:n,text:i,width:d})}},_renderContent:function(r,u,e,n,i){for(var c=0,d=u.emptyItemWidth,h=r.get("breadcrumb.height"),p=N.getAvailableSize(u.pos,u.box),g=u.totalWidth,v=u.renderList,A=v.length-1;A>=0;A--){var x=v[A],b=x.node,w=x.width,S=x.text;g>p.width&&(g-=w-d,w=d,S=null);var T=new D.Polygon({shape:{points:t(c,0,w,h,A===v.length-1,A===0)},style:L.defaults(e.getItemStyle(),{lineJoin:"bevel",text:S,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:L.curry(i,b)});this.group.add(T),l(T,r,b),c+=w+m}},remove:function(){this.group.removeAll()}};function t(r,u,e,n,i,c){var d=[[i?r:r-f,u],[r+e,u],[r+e,u+n],[i?r:r-f,u+n]];return!c&&d.splice(2,0,[r+e+f,u+n/2]),!i&&d.push([r,u+n/2]),d}function l(r,u,e){r.eventData={componentType:"series",componentSubType:"treemap",componentIndex:u.componentIndex,seriesIndex:u.componentIndex,seriesName:u.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&I(e,u)}}var a=s;fe.exports=a},"9u0u":function(fe,z,y){var D=y("bYtY");function N(E,I){var o={};return D.each(E,function(m){m.each(m.mapDimension("value"),function(f,s){var t="ec-"+m.getName(s);o[t]=o[t]||[],isNaN(f)||o[t].push(f)})}),E[0].map(E[0].mapDimension("value"),function(m,f){for(var s="ec-"+E[0].getName(f),t=0,l=Infinity,a=-Infinity,r=o[s].length,u=0;u<r;u++)l=Math.min(l,o[s][u]),a=Math.max(a,o[s][u]),t+=o[s][u];var e;return I==="min"?e=l:I==="max"?e=a:I==="average"?e=t/r:e=t,r===0?NaN:e})}function L(E){var I={};E.eachSeriesByType("map",function(o){var m=o.getHostGeoModel(),f=m?"o"+m.id:"i"+o.getMapType();(I[f]=I[f]||[]).push(o)}),D.each(I,function(o,m){for(var f=N(D.map(o,function(t){return t.getData()}),o[0].get("mapValueCalculation")),s=0;s<o.length;s++)o[s].originalData=o[s].getData();for(var s=0;s<o.length;s++)o[s].seriesGroup=o,o[s].needsDrawMap=s===0&&!o[s].getHostGeoModel(),o[s].setData(f.cloneShallow()),o[s].mainSeries=o[0]})}fe.exports=L},"9wZj":function(fe,z,y){var D=y("IwbS"),N=y("FBjb"),L=y("bYtY"),E=L.isObject;function I(l){this.group=new D.Group,this._symbolCtor=l||N}var o=I.prototype;function m(l,a,r,u){return a&&!isNaN(a[0])&&!isNaN(a[1])&&!(u.isIgnore&&u.isIgnore(r))&&!(u.clipShape&&!u.clipShape.contain(a[0],a[1]))&&l.getItemVisual(r,"symbol")!=="none"}o.updateData=function(l,a){a=f(a);var r=this.group,u=l.hostModel,e=this._data,n=this._symbolCtor,i=s(l);e||r.removeAll(),l.diff(e).add(function(c){var d=l.getItemLayout(c);if(m(l,d,c,a)){var h=new n(l,c,i);h.attr("position",d),l.setItemGraphicEl(c,h),r.add(h)}}).update(function(c,d){var h=e.getItemGraphicEl(d),p=l.getItemLayout(c);if(!m(l,p,c,a)){r.remove(h);return}h?(h.updateData(l,c,i),D.updateProps(h,{position:p},u)):(h=new n(l,c),h.attr("position",p)),r.add(h),l.setItemGraphicEl(c,h)}).remove(function(c){var d=e.getItemGraphicEl(c);d&&d.fadeOut(function(){r.remove(d)})}).execute(),this._data=l},o.isPersistent=function(){return!0},o.updateLayout=function(){var l=this._data;l&&l.eachItemGraphicEl(function(a,r){var u=l.getItemLayout(r);a.attr("position",u)})},o.incrementalPrepareUpdate=function(l){this._seriesScope=s(l),this._data=null,this.group.removeAll()},o.incrementalUpdate=function(l,a,r){r=f(r);function u(c){c.isGroup||(c.incremental=c.useHoverLayer=!0)}for(var e=l.start;e<l.end;e++){var n=a.getItemLayout(e);if(m(a,n,e,r)){var i=new this._symbolCtor(a,e,this._seriesScope);i.traverse(u),i.attr("position",n),this.group.add(i),a.setItemGraphicEl(e,i)}}};function f(l){return l!=null&&!E(l)&&(l={isIgnore:l}),l||{}}o.remove=function(l){var a=this.group,r=this._data;r&&l?r.eachItemGraphicEl(function(u){u.fadeOut(function(){a.remove(u)})}):a.removeAll()};function s(l){var a=l.hostModel;return{itemStyle:a.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:a.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a.getModel("label"),hoverLabelModel:a.getModel("emphasis.label"),cursorStyle:a.get("cursor")}}var t=I;fe.exports=t},"9yH6":function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("q1tI"),o=y("+6Fa"),m=y("TSYQ"),f=y.n(m),s=y("H84U"),t=I.createContext(null),l=t.Provider,a=t,r=y("cDf5"),u=y.n(r);function e(M,k){typeof M=="function"?M(k):u()(M)==="object"&&M&&"current"in M&&(M.current=k)}function n(){for(var M=arguments.length,k=new Array(M),R=0;R<M;R++)k[R]=arguments[R];return function(B){k.forEach(function(P){e(P,B)})}}var i=y("uaoM"),c=function(M,k){var R={};for(var B in M)Object.prototype.hasOwnProperty.call(M,B)&&k.indexOf(B)<0&&(R[B]=M[B]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,B=Object.getOwnPropertySymbols(M);P<B.length;P++)k.indexOf(B[P])<0&&Object.prototype.propertyIsEnumerable.call(M,B[P])&&(R[B[P]]=M[B[P]]);return R},d=function(k,R){var B,P=I.useContext(a),U=I.useContext(s.b),j=U.getPrefixCls,H=U.direction,W=I.useRef(),G=n(R,W);I.useEffect(function(){Object(i.a)(!("optionType"in k),"Radio","`optionType` is only support in Radio.Group.")},[]);var V=function(q){k.onChange&&k.onChange(q),(P==null?void 0:P.onChange)&&P.onChange(q)},Z=k.prefixCls,Y=k.className,Q=k.children,oe=k.style,ue=c(k,["prefixCls","className","children","style"]),Le=j("radio",Z),me=E()({},ue);P&&(me.name=P.name,me.onChange=V,me.checked=k.value===P.value,me.disabled=k.disabled||P.disabled);var Ie=f()(Y,(B={},N()(B,"".concat(Le,"-wrapper"),!0),N()(B,"".concat(Le,"-wrapper-checked"),me.checked),N()(B,"".concat(Le,"-wrapper-disabled"),me.disabled),N()(B,"".concat(Le,"-wrapper-rtl"),H==="rtl"),B));return I.createElement("label",{className:Ie,style:oe,onMouseEnter:k.onMouseEnter,onMouseLeave:k.onMouseLeave},I.createElement(o.a,E()({},me,{prefixCls:Le,ref:G})),Q!==void 0?I.createElement("span",null,Q):null)},h=I.forwardRef(d);h.displayName="Radio",h.defaultProps={type:"radio"};var p=h,g=y("J4zp"),v=y.n(g),A=y("6cGi"),x=y("3Nzz"),b=I.forwardRef(function(M,k){var R=I.useContext(s.b),B=R.getPrefixCls,P=R.direction,U=I.useContext(x.b),j=Object(A.a)(M.defaultValue,{value:M.value}),H=v()(j,2),W=H[0],G=H[1],V=function(Q){var oe=W,ue=Q.target.value;"value"in M||G(ue);var Le=M.onChange;Le&&ue!==oe&&Le(Q)},Z=function(){var Q,oe=M.prefixCls,ue=M.className,Le=ue===void 0?"":ue,me=M.options,Ie=M.optionType,X=M.buttonStyle,q=M.disabled,We=M.children,$=M.size,J=M.style,le=M.id,de=M.onMouseEnter,Ne=M.onMouseLeave,we=B("radio",oe),De="".concat(we,"-group"),Ee=We;if(me&&me.length>0){var ce=Ie==="button"?"".concat(we,"-button"):we;Ee=me.map(function(Ae){return typeof Ae=="string"?I.createElement(p,{ref:k,key:Ae,prefixCls:ce,disabled:q,value:Ae,checked:W===Ae},Ae):I.createElement(p,{ref:k,key:"radio-group-value-options-".concat(Ae.value),prefixCls:ce,disabled:Ae.disabled||q,value:Ae.value,checked:W===Ae.value,style:Ae.style},Ae.label)})}var ne=$||U,ee=f()(De,"".concat(De,"-").concat(X),(Q={},N()(Q,"".concat(De,"-").concat(ne),ne),N()(Q,"".concat(De,"-rtl"),P==="rtl"),Q),Le);return I.createElement("div",{className:ee,style:J,onMouseEnter:de,onMouseLeave:Ne,id:le},Ee)};return I.createElement(l,{value:{onChange:V,value:W,disabled:M.disabled,name:M.name}},Z())});b.defaultProps={buttonStyle:"outline"};var w=I.memo(b),S=function(M,k){var R={};for(var B in M)Object.prototype.hasOwnProperty.call(M,B)&&k.indexOf(B)<0&&(R[B]=M[B]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,B=Object.getOwnPropertySymbols(M);P<B.length;P++)k.indexOf(B[P])<0&&Object.prototype.propertyIsEnumerable.call(M,B[P])&&(R[B[P]]=M[B[P]]);return R},T=function(k,R){var B=I.useContext(a),P=I.useContext(s.b),U=P.getPrefixCls,j=k.prefixCls,H=S(k,["prefixCls"]),W=U("radio-button",j);return B&&(H.checked=k.value===B.value,H.disabled=k.disabled||B.disabled),I.createElement(p,E()({prefixCls:W},H,{type:"radio",ref:R}))},C=I.forwardRef(T),O=p;O.Button=C,O.Group=w;var _=z.a=O},A1Ka:function(fe,z,y){var D=y("bLfw"),N=y("sS/r"),L=y("D5nY"),E=L.detectSourceFormat,I=y("k9D9"),o=I.SERIES_LAYOUT_BY_COLUMN;D.extend({type:"dataset",defaultOption:{seriesLayoutBy:o,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){E(this)}}),N.extend({type:"dataset"})},ABKa:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("Qs9O")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="FolderOutlined";var f=E.forwardRef(m);z.default=f},AE9C:function(fe,z,y){var D=y("bYtY"),N=y("crZl"),L=y("IwbS"),E=y("oVpE"),I=E.createSymbol,o=y("+TT/"),m=y("y7Aq"),f=N.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var l=this.visualMapModel,a=l.get("textGap"),r=l.textStyleModel,u=r.getFont(),e=r.getTextColor(),n=this._getItemAlign(),i=l.itemSize,c=this._getViewData(),d=c.endsText,h=D.retrieve(l.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],i,h,n),D.each(c.viewPieceList,p,this),d&&this._renderEndsText(t,d[1],i,h,n),o.box(l.get("orient"),t,l.get("itemGap")),this.renderBackground(t),this.positionGroup(t);function p(g){var v=g.piece,A=new L.Group;A.onclick=D.bind(this._onItemClick,this,v),this._enableHoverLink(A,g.indexInModelPieceList);var x=l.getRepresentValue(v);if(this._createItemSymbol(A,x,[0,0,i[0],i[1]]),h){var b=this.visualMapModel.getValueState(x);A.add(new L.Text({style:{x:n==="right"?-a:i[0]+a,y:i[1]/2,text:v.text,textVerticalAlign:"middle",textAlign:n,textFont:u,textFill:e,opacity:b==="outOfRange"?.5:1}}))}t.add(A)}},_enableHoverLink:function(t,l){t.on("mouseover",D.bind(a,this,"highlight")).on("mouseout",D.bind(a,this,"downplay"));function a(r){var u=this.visualMapModel;u.option.hoverLink&&this.api.dispatchAction({type:r,batch:m.makeHighDownBatch(u.findTargetDataIndices(l),u)})}},_getItemAlign:function(){var t=this.visualMapModel,l=t.option;if(l.orient==="vertical")return m.getItemAlign(t,this.api,t.itemSize);var a=l.align;return(!a||a==="auto")&&(a="left"),a},_renderEndsText:function(t,l,a,r,u){if(!l)return;var e=new L.Group,n=this.visualMapModel.textStyleModel;e.add(new L.Text({style:{x:r?u==="right"?a[0]:0:a[0]/2,y:a[1]/2,textVerticalAlign:"middle",textAlign:r?u:"center",text:l,textFont:n.getFont(),textFill:n.getTextColor()}})),t.add(e)},_getViewData:function(){var t=this.visualMapModel,l=D.map(t.getPieceList(),function(e,n){return{piece:e,indexInModelPieceList:n}}),a=t.get("text"),r=t.get("orient"),u=t.get("inverse");return(r==="horizontal"?u:!u)?l.reverse():a&&(a=a.slice().reverse()),{viewPieceList:l,endsText:a}},_createItemSymbol:function(t,l,a){t.add(I(this.getControllerVisual(l,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(l,"color")))},_onItemClick:function(t){var l=this.visualMapModel,a=l.option,r=D.clone(a.selected),u=l.getSelectedMapKey(t);a.selectedMode==="single"?(r[u]=!0,D.each(r,function(e,n){r[n]=n===u})):r[u]=!r[u],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),s=f;fe.exports=s},AEZ6:function(fe,z,y){var D=y("bYtY"),N=D.each,L=D.createHashMap,E=y("T4UG"),I=y("MwEJ"),o=E.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(s,t){var l=this.getSource();return m(l,this),I(l,this)},getRawIndicesByActiveState:function(s){var t=this.coordinateSystem,l=this.getData(),a=[];return t.eachActiveState(l,function(r,u){s===r&&a.push(l.getRawIndex(u))}),a},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 m(s,t){if(s.encodeDefine)return;var l=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(!l)return;var a=s.encodeDefine=L();N(l.dimensions,function(r){var u=f(r);a.set(r,u)})}function f(s){return+s.replace("dim","")}fe.exports=o},AH3D:function(fe,z,y){var D=y("ProS");y("y4/Y"),y("qWt2"),y("Qvb6"),D.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),D.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("5GtS"),E=y("4NO4"),I=E.defaultEmphasis,o=y("D5nY"),m=o.makeSeriesEncodeForNameBased,f=y("xKMd"),s=D.extendSeriesModel({type:"series.funnel",init:function(l){s.superApply(this,"init",arguments),this.legendVisualProvider=new f(N.bind(this.getData,this),N.bind(this.getRawData,this)),this._defaultLabelLine(l)},getInitialData:function(l,a){return L(this,{coordDimensions:["value"],encodeDefaulter:N.curry(m,this)})},_defaultLabelLine:function(l){I(l,"labelLine",["show"]);var a=l.labelLine,r=l.emphasis.labelLine;a.show=a.show&&l.label.show,r.show=r.show&&l.emphasis.label.show},getDataParams:function(l){var a=this.getData(),r=s.superCall(this,"getDataParams",l),u=a.mapDimension("value"),e=a.getSum(u);return r.percent=e?+(a.get(u,l)/e*100).toFixed(2):0,r.$vars.push("percent"),r},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}}}}),t=s;fe.exports=t},ALsQ:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return D.mode.CFB=function(){var N=D.lib.BlockCipherMode.extend();N.Encryptor=N.extend({processBlock:function(I,o){var m=this._cipher,f=m.blockSize;L.call(this,I,o,f,m),this._prevBlock=I.slice(o,o+f)}}),N.Decryptor=N.extend({processBlock:function(I,o){var m=this._cipher,f=m.blockSize,s=I.slice(o,o+f);L.call(this,I,o,f,m),this._prevBlock=s}});function L(E,I,o,m){var f,s=this._iv;s?(f=s.slice(0),this._iv=void 0):f=this._prevBlock,m.encryptBlock(f,0);for(var t=0;t<o;t++)E[I+t]^=f[t]}return N}(),D.mode.CFB})},ANjR:function(fe,z,y){var D=y("bYtY");function N(E,I){return I=I||[0,0],D.map([0,1],function(o){var m=I[o],f=E[o]/2,s=[],t=[];return s[o]=m-f,t[o]=m+f,s[1-o]=t[1-o]=I[1-o],Math.abs(this.dataToPoint(s)[o]-this.dataToPoint(t)[o])},this)}function L(E){var I=E.getBoundingRect();return{coordSys:{type:"geo",x:I.x,y:I.y,width:I.width,height:I.height,zoom:E.getZoom()},api:{coord:function(o){return E.dataToPoint(o)},size:D.bind(N,E)}}}fe.exports=L},AOa7:function(fe,z,y){},AUH6:function(fe,z,y){var D=y("bYtY"),N=y("mFDi"),L=y("bMXI"),E=y("W4dC");function I(f,s,t,l){L.call(this,f),this.map=s;var a=E.load(s,t);this._nameCoordMap=a.nameCoordMap,this._regionsMap=a.regionsMap,this._invertLongitute=l==null?!0:l,this.regions=a.regions,this._rect=a.boundingRect}I.prototype={constructor:I,type:"geo",dimensions:["lng","lat"],containCoord:function(f){for(var s=this.regions,t=0;t<s.length;t++)if(s[t].contain(f))return!0;return!1},transformTo:function(f,s,t,l){var a=this.getBoundingRect(),r=this._invertLongitute;a=a.clone(),r&&(a.y=-a.y-a.height);var u=this._rawTransformable;if(u.transform=a.calculateTransform(new N(f,s,t,l)),u.decomposeTransform(),r){var e=u.scale;e[1]=-e[1]}u.updateTransform(),this._updateTransform()},getRegion:function(f){return this._regionsMap.get(f)},getRegionByCoord:function(f){for(var s=this.regions,t=0;t<s.length;t++)if(s[t].contain(f))return s[t]},addGeoCoord:function(f,s){this._nameCoordMap.set(f,s)},getGeoCoord:function(f){return this._nameCoordMap.get(f)},getBoundingRect:function(){return this._rect},dataToPoint:function(f,s,t){if(typeof f=="string"&&(f=this.getGeoCoord(f)),f)return L.prototype.dataToPoint.call(this,f,s,t)},convertToPixel:D.curry(o,"dataToPoint"),convertFromPixel:D.curry(o,"pointToData")},D.mixin(I,L);function o(f,s,t,l){var a=t.geoModel,r=t.seriesModel,u=a?a.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return u===this?u[f](l):null}var m=I;fe.exports=m},AVZG:function(fe,z,y){var D=y("bYtY");function N(L,E,I){I=I||{};var o=L.coordinateSystem,m=E.axis,f={},s=m.getAxesOnZeroOf()[0],t=m.position,l=s?"onZero":t,a=m.dim,r=o.getRect(),u=[r.x,r.x+r.width,r.y,r.y+r.height],e={left:0,right:1,top:0,bottom:1,onZero:2},n=E.get("offset")||0,i=a==="x"?[u[2]-n,u[3]+n]:[u[0]-n,u[1]+n];if(s){var c=s.toGlobalCoord(s.dataToCoord(0));i[e.onZero]=Math.max(Math.min(c,i[1]),i[0])}f.position=[a==="y"?i[e[l]]:u[0],a==="x"?i[e[l]]:u[3]],f.rotation=Math.PI/2*(a==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};f.labelDirection=f.tickDirection=f.nameDirection=d[t],f.labelOffset=s?i[e[t]]-i[e.onZero]:0,E.get("axisTick.inside")&&(f.tickDirection=-f.tickDirection),D.retrieve(I.labelInside,E.get("axisLabel.inside"))&&(f.labelDirection=-f.labelDirection);var h=E.get("axisLabel.rotate");return f.labelRotate=l==="top"?-h:h,f.z2=1,f}z.layout=N},"Ae+d":function(fe,z){function y(N,L,E){var I=N.target,o=I.position;o[0]+=L,o[1]+=E,I.dirty()}function D(N,L,E,I){var o=N.target,m=N.zoomLimit,f=o.position,s=o.scale,t=N.zoom=N.zoom||1;if(t*=L,m){var l=m.min||0,a=m.max||Infinity;t=Math.max(Math.min(a,t),l)}var r=t/N.zoom;N.zoom=t,f[0]-=(E-f[0])*(r-1),f[1]-=(I-f[1])*(r-1),s[0]*=r,s[1]*=r,o.dirty()}z.updateViewOnPan=y,z.updateViewOnZoom=D},Ae16:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("IwbS");y("Wqna"),y("rySg"),D.extendComponentView({type:"grid",render:function(E,I){this.group.removeAll(),E.get("show")&&this.group.add(new L.Rect({shape:E.coordinateSystem.getRect(),style:N.defaults({fill:E.get("backgroundColor")},E.getItemStyle()),silent:!0,z2:-1}))}}),D.registerPreprocessor(function(E){E.xAxis&&E.yAxis&&!E.grid&&(E.grid={})})},Awhp:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("PQMj"),E=y.n(L)},"B+YJ":function(fe,z,y){y("TYVI"),y("p1MT")},"B6l+":function(fe,z,y){var D=y("Sq3C"),N=y("Z1HP"),L=y("Sxd8"),E=y("dt0z");function I(o,m,f){o=E(o),m=L(m);var s=m?N(o):0;return m&&s<m?o+D(m-s,f):o}fe.exports=I},B9cy:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("0XgM"),E=y.n(L)},B9fm:function(fe,z,y){var D=y("bYtY"),N=y("Qe9p"),L=y("YH21"),E=y("Ze12"),I=y("ItGF"),o=y("7aKB"),m=D.each,f=o.toCamelCase,s=["","-webkit-","-moz-","-o-"],t="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function l(i){var c="cubic-bezier(0.23, 1, 0.32, 1)",d="left "+i+"s "+c+",top "+i+"s "+c;return D.map(s,function(h){return h+"transition:"+d}).join(";")}function a(i){var c=[],d=i.get("fontSize"),h=i.getTextColor();return h&&c.push("color:"+h),c.push("font:"+i.getFont()),d&&c.push("line-height:"+Math.round(d*3/2)+"px"),m(["decoration","align"],function(p){var g=i.get(p);g&&c.push("text-"+p+":"+g)}),c.join(";")}function r(i){var c=[],d=i.get("transitionDuration"),h=i.get("backgroundColor"),p=i.getModel("textStyle"),g=i.get("padding");return d&&c.push(l(d)),h&&(I.canvasSupported?c.push("background-Color:"+h):(c.push("background-Color:#"+N.toHex(h)),c.push("filter:alpha(opacity=70)"))),m(["width","color","radius"],function(v){var A="border-"+v,x=f(A),b=i.get(x);b!=null&&c.push(A+":"+b+(v==="color"?"":"px"))}),c.push(a(p)),g!=null&&c.push("padding:"+o.normalizeCssArray(g).join("px ")+"px"),c.join(";")+";"}function u(i,c,d,h,p){var g=c&&c.painter;if(d){var v=g&&g.getViewportRoot();v&&E.transformLocalCoord(i,v,document.body,h,p)}else{i[0]=h,i[1]=p;var A=g&&g.getViewportRootOffset();A&&(i[0]+=A.offsetLeft,i[1]+=A.offsetTop)}}function e(i,c,d){if(I.wxa)return null;var h=document.createElement("div");h.domBelongToZr=!0,this.el=h;var p=this._zr=c.getZr(),g=this._appendToBody=d&&d.appendToBody;this._styleCoord=[0,0],u(this._styleCoord,p,g,c.getWidth()/2,c.getHeight()/2),g?document.body.appendChild(h):i.appendChild(h),this._container=i,this._show=!1,this._hideTimeout;var v=this;h.onmouseenter=function(){v._enterable&&(clearTimeout(v._hideTimeout),v._show=!0),v._inContent=!0},h.onmousemove=function(A){if(A=A||window.event,!v._enterable){var x=p.handler,b=p.painter.getViewportRoot();L.normalizeEvent(b,A,!0),x.dispatch("mousemove",A)}},h.onmouseleave=function(){v._enterable&&(v._show&&v.hideLater(v._hideDelay)),v._inContent=!1}}e.prototype={constructor:e,_enterable:!0,update:function(){var i=this._container,c=i.currentStyle||document.defaultView.getComputedStyle(i),d=i.style;d.position!=="absolute"&&c.position!=="absolute"&&(d.position="relative")},show:function(i){clearTimeout(this._hideTimeout);var c=this.el,d=this._styleCoord;c.style.cssText=t+r(i)+";left:"+d[0]+"px;top:"+d[1]+"px;"+(i.get("extraCssText")||""),c.style.display=c.innerHTML?"block":"none",c.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(i){this.el.innerHTML=i==null?"":i},setEnterable:function(i){this._enterable=i},getSize:function(){var i=this.el;return[i.clientWidth,i.clientHeight]},moveTo:function(i,c){var d=this._styleCoord;u(d,this._zr,this._appendToBody,i,c);var h=this.el.style;h.left=d[0]+"px",h.top=d[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(i){this._show&&!(this._inContent&&this._enterable)&&(i?(this._hideDelay=i,this._show=!1,this._hideTimeout=setTimeout(D.bind(this.hide,this),i)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var i=this.el.clientWidth,c=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var d=document.defaultView.getComputedStyle(this.el);d&&(i+=parseInt(d.borderLeftWidth,10)+parseInt(d.borderRightWidth,10),c+=parseInt(d.borderTopWidth,10)+parseInt(d.borderBottomWidth,10))}return{width:i,height:c}}};var n=e;fe.exports=n},BPZU:function(fe,z){var y=32,D=7,N=256;function L(l){for(var a=0;l>=y;)a|=l&1,l>>=1;return l+a}function E(l,a,r,u){var e=a+1;if(e===r)return 1;if(u(l[e++],l[a])<0){for(;e<r&&u(l[e],l[e-1])<0;)e++;I(l,a,e)}else for(;e<r&&u(l[e],l[e-1])>=0;)e++;return e-a}function I(l,a,r){for(r--;a<r;){var u=l[a];l[a++]=l[r],l[r--]=u}}function o(l,a,r,u,e){for(u===a&&u++;u<r;u++){for(var n=l[u],i=a,c=u,d;i<c;)d=i+c>>>1,e(n,l[d])<0?c=d:i=d+1;var h=u-i;switch(h){case 3:l[i+3]=l[i+2];case 2:l[i+2]=l[i+1];case 1:l[i+1]=l[i];break;default:for(;h>0;)l[i+h]=l[i+h-1],h--}l[i]=n}}function m(l,a,r,u,e,n){var i=0,c=0,d=1;if(n(l,a[r+e])>0){for(c=u-e;d<c&&n(l,a[r+e+d])>0;)i=d,d=(d<<1)+1,d<=0&&(d=c);d>c&&(d=c),i+=e,d+=e}else{for(c=e+1;d<c&&n(l,a[r+e-d])<=0;)i=d,d=(d<<1)+1,d<=0&&(d=c);d>c&&(d=c);var h=i;i=e-d,d=e-h}for(i++;i<d;){var p=i+(d-i>>>1);n(l,a[r+p])>0?i=p+1:d=p}return d}function f(l,a,r,u,e,n){var i=0,c=0,d=1;if(n(l,a[r+e])<0){for(c=e+1;d<c&&n(l,a[r+e-d])<0;)i=d,d=(d<<1)+1,d<=0&&(d=c);d>c&&(d=c);var h=i;i=e-d,d=e-h}else{for(c=u-e;d<c&&n(l,a[r+e+d])>=0;)i=d,d=(d<<1)+1,d<=0&&(d=c);d>c&&(d=c),i+=e,d+=e}for(i++;i<d;){var p=i+(d-i>>>1);n(l,a[r+p])<0?d=p:i=p+1}return d}function s(l,a){var r=D,u=0,e=N,n=0,i,c,d=0;u=l.length,u<2*N&&(e=u>>>1);var h=[];n=u<120?5:u<1542?10:u<119151?19:40,i=[],c=[];function p(w,S){i[d]=w,c[d]=S,d+=1}function g(){for(;d>1;){var w=d-2;if(w>=1&&c[w-1]<=c[w]+c[w+1]||w>=2&&c[w-2]<=c[w]+c[w-1])c[w-1]<c[w+1]&&w--;else if(c[w]>c[w+1])break;A(w)}}function v(){for(;d>1;){var w=d-2;w>0&&c[w-1]<c[w+1]&&w--,A(w)}}function A(w){var S=i[w],T=c[w],C=i[w+1],O=c[w+1];c[w]=T+O,w===d-3&&(i[w+1]=i[w+2],c[w+1]=c[w+2]),d--;var _=f(l[C],l,S,T,0,a);if(S+=_,T-=_,T===0)return;if(O=m(l[S+T-1],l,C,O,O-1,a),O===0)return;T<=O?x(S,T,C,O):b(S,T,C,O)}function x(w,S,T,C){var O=0;for(O=0;O<S;O++)h[O]=l[w+O];var _=0,M=T,k=w;if(l[k++]=l[M++],--C===0){for(O=0;O<S;O++)l[k+O]=h[_+O];return}if(S===1){for(O=0;O<C;O++)l[k+O]=l[M+O];l[k+C]=h[_];return}for(var R=r,B,P,U;;){B=0,P=0,U=!1;do if(a(l[M],h[_])<0){if(l[k++]=l[M++],P++,B=0,--C===0){U=!0;break}}else if(l[k++]=h[_++],B++,P=0,--S===1){U=!0;break}while((B|P)<R);if(U)break;do{if(B=f(l[M],h,_,S,0,a),B!==0){for(O=0;O<B;O++)l[k+O]=h[_+O];if(k+=B,_+=B,S-=B,S<=1){U=!0;break}}if(l[k++]=l[M++],--C===0){U=!0;break}if(P=m(h[_],l,M,C,0,a),P!==0){for(O=0;O<P;O++)l[k+O]=l[M+O];if(k+=P,M+=P,C-=P,C===0){U=!0;break}}if(l[k++]=h[_++],--S===1){U=!0;break}R--}while(B>=D||P>=D);if(U)break;R<0&&(R=0),R+=2}if(r=R,r<1&&(r=1),S===1){for(O=0;O<C;O++)l[k+O]=l[M+O];l[k+C]=h[_]}else{if(S===0)throw new Error;for(O=0;O<S;O++)l[k+O]=h[_+O]}}function b(w,S,T,C){var O=0;for(O=0;O<C;O++)h[O]=l[T+O];var _=w+S-1,M=C-1,k=T+C-1,R=0,B=0;if(l[k--]=l[_--],--S===0){for(R=k-(C-1),O=0;O<C;O++)l[R+O]=h[O];return}if(C===1){for(k-=S,_-=S,B=k+1,R=_+1,O=S-1;O>=0;O--)l[B+O]=l[R+O];l[k]=h[M];return}for(var P=r;;){var U=0,j=0,H=!1;do if(a(h[M],l[_])<0){if(l[k--]=l[_--],U++,j=0,--S===0){H=!0;break}}else if(l[k--]=h[M--],j++,U=0,--C===1){H=!0;break}while((U|j)<P);if(H)break;do{if(U=S-f(h[M],l,w,S,S-1,a),U!==0){for(k-=U,_-=U,S-=U,B=k+1,R=_+1,O=U-1;O>=0;O--)l[B+O]=l[R+O];if(S===0){H=!0;break}}if(l[k--]=h[M--],--C===1){H=!0;break}if(j=C-m(l[_],h,0,C,C-1,a),j!==0){for(k-=j,M-=j,C-=j,B=k+1,R=M+1,O=0;O<j;O++)l[B+O]=h[R+O];if(C<=1){H=!0;break}}if(l[k--]=l[_--],--S===0){H=!0;break}P--}while(U>=D||j>=D);if(H)break;P<0&&(P=0),P+=2}if(r=P,r<1&&(r=1),C===1){for(k-=S,_-=S,B=k+1,R=_+1,O=S-1;O>=0;O--)l[B+O]=l[R+O];l[k]=h[M]}else{if(C===0)throw new Error;for(R=k-(C-1),O=0;O<C;O++)l[R+O]=h[O]}}this.mergeRuns=g,this.forceMergeRuns=v,this.pushRun=p}function t(l,a,r,u){r||(r=0),u||(u=l.length);var e=u-r;if(e<2)return;var n=0;if(e<y){n=E(l,r,u,a),o(l,r,u,r+n,a);return}var i=new s(l,a),c=L(e);do{if(n=E(l,r,u,a),n<c){var d=e;d>c&&(d=c),o(l,r,r+d,r+n,a),n=d}i.pushRun(r,n),i.mergeRuns(),e-=n,r+=n}while(e!==0);i.forceMergeRuns()}fe.exports=t},Bd2K:function(fe,z,y){(function(D){D(y("VrN/"),y("osHv"))})(function(D){D.defineOption("autoCloseTags",!1,function(s,t,l){if(l!=D.Init&&l&&s.removeKeyMap("autoCloseTags"),!t)return;var a={name:"autoCloseTags"};(typeof t!="object"||t.whenClosing!==!1)&&(a["'/'"]=function(r){return o(r)}),(typeof t!="object"||t.whenOpening!==!1)&&(a["'>'"]=function(r){return E(r)}),s.addKeyMap(a)});var N=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],L=["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 E(s){if(s.getOption("disableInput"))return D.Pass;for(var t=s.listSelections(),l=[],a=s.getOption("autoCloseTags"),r=0;r<t.length;r++){if(!t[r].empty())return D.Pass;var u=t[r].head,e=s.getTokenAt(u),n=D.innerMode(s.getMode(),e.state),i=n.state,c=n.mode.xmlCurrentTag&&n.mode.xmlCurrentTag(i),d=c&&c.name;if(!d)return D.Pass;var h=n.mode.configuration=="html",p=typeof a=="object"&&a.dontCloseTags||h&&N,g=typeof a=="object"&&a.indentTags||h&&L;e.end>u.ch&&(d=d.slice(0,d.length-e.end+u.ch));var v=d.toLowerCase();if(!d||e.type=="string"&&(e.end!=u.ch||!/[\"\']/.test(e.string.charAt(e.string.length-1))||e.string.length==1)||e.type=="tag"&&c.close||e.string.indexOf("/")==u.ch-e.start-1||p&&m(p,v)>-1||f(s,n.mode.xmlCurrentContext&&n.mode.xmlCurrentContext(i)||[],d,u,!0))return D.Pass;var A=typeof a=="object"&&a.emptyTags;if(A&&m(A,d)>-1){l[r]={text:"/>",newPos:D.Pos(u.line,u.ch+2)};continue}var x=g&&m(g,v)>-1;l[r]={indent:x,text:">"+(x?`
|
|
|
|
|
|
`:"")+"</"+d+">",newPos:x?D.Pos(u.line+1,0):D.Pos(u.line,u.ch+1)}}for(var b=typeof a=="object"&&a.dontIndentOnAutoClose,r=t.length-1;r>=0;r--){var w=l[r];s.replaceRange(w.text,t[r].head,t[r].anchor,"+insert");var S=s.listSelections().slice(0);S[r]={head:w.newPos,anchor:w.newPos},s.setSelections(S),!b&&w.indent&&(s.indentLine(w.newPos.line,null,!0),s.indentLine(w.newPos.line+1,null,!0))}}function I(s,t){for(var l=s.listSelections(),a=[],r=t?"/":"</",u=s.getOption("autoCloseTags"),e=typeof u=="object"&&u.dontIndentOnSlash,n=0;n<l.length;n++){if(!l[n].empty())return D.Pass;var i=l[n].head,c=s.getTokenAt(i),d=D.innerMode(s.getMode(),c.state),h=d.state;if(t&&(c.type=="string"||c.string.charAt(0)!="<"||c.start!=i.ch-1))return D.Pass;var p,g=d.mode.name!="xml"&&s.getMode().name=="htmlmixed";if(g&&d.mode.name=="javascript")p=r+"script";else if(g&&d.mode.name=="css")p=r+"style";else{var v=d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(h);if(!v||v.length&&f(s,v,v[v.length-1],i))return D.Pass;p=r+v[v.length-1]}s.getLine(i.line).charAt(c.end)!=">"&&(p+=">"),a[n]=p}if(s.replaceSelections(a),l=s.listSelections(),!e)for(var n=0;n<l.length;n++)(n==l.length-1||l[n].head.line<l[n+1].head.line)&&s.indentLine(l[n].head.line)}function o(s){return s.getOption("disableInput")?D.Pass:I(s,!0)}D.commands.closeTag=function(s){return I(s)};function m(s,t){if(s.indexOf)return s.indexOf(t);for(var l=0,a=s.length;l<a;++l)if(s[l]==t)return l;return-1}function f(s,t,l,a,r){if(!D.scanForClosingTag)return!1;var u=Math.min(s.lastLine()+1,a.line+500),e=D.scanForClosingTag(s,a,null,u);if(!e||e.tag!=l)return!1;for(var n=r?1:0,i=t.length-1;i>=0&&t[i]==l;i--)++n;a=e.to;for(var i=1;i<n;i++){var c=D.scanForClosingTag(s,a,null,u);if(!c||c.tag!=l)return!1;a=c.to}return!0}})},BlVb:function(fe,z,y){var D=y("hyiK"),N=1e-8;function L(I,o){return Math.abs(I-o)<N}function E(I,o,m){var f=0,s=I[0];if(!s)return!1;for(var t=1;t<I.length;t++){var l=I[t];f+=D(s[0],s[1],l[0],l[1],o,m),s=l}var a=I[0];return(!L(s[0],a[0])||!L(s[1],a[1]))&&(f+=D(s[0],s[1],a[0],a[1],o,m)),f!==0}z.contain=E},BoS7:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("czTT"),E=y.n(L)},Bq2U:function(fe,z,y){var D=y("RDYZ"),N=y("Qe9p"),L=y("bYtY"),E=L.isArrayLike,I=Array.prototype.slice;function o(p,g){return p[g]}function m(p,g,v){p[g]=v}function f(p,g,v){return(g-p)*v+p}function s(p,g,v){return v>.5?g:p}function t(p,g,v,A,x){var b=p.length;if(x===1)for(var w=0;w<b;w++)A[w]=f(p[w],g[w],v);else for(var S=b&&p[0].length,w=0;w<b;w++)for(var T=0;T<S;T++)A[w][T]=f(p[w][T],g[w][T],v)}function l(p,g,v){var A=p.length,x=g.length;if(A!==x){var b=A>x;if(b)p.length=x;else for(var w=A;w<x;w++)p.push(v===1?g[w]:I.call(g[w]))}for(var S=p[0]&&p[0].length,w=0;w<p.length;w++)if(v===1)isNaN(p[w])&&(p[w]=g[w]);else for(var T=0;T<S;T++)isNaN(p[w][T])&&(p[w][T]=g[w][T])}function a(p,g,v){if(p===g)return!0;var A=p.length;if(A!==g.length)return!1;if(v===1){for(var x=0;x<A;x++)if(p[x]!==g[x])return!1}else for(var b=p[0].length,x=0;x<A;x++)for(var w=0;w<b;w++)if(p[x][w]!==g[x][w])return!1;return!0}function r(p,g,v,A,x,b,w,S,T){var C=p.length;if(T===1)for(var O=0;O<C;O++)S[O]=u(p[O],g[O],v[O],A[O],x,b,w);else for(var _=p[0].length,O=0;O<C;O++)for(var M=0;M<_;M++)S[O][M]=u(p[O][M],g[O][M],v[O][M],A[O][M],x,b,w)}function u(p,g,v,A,x,b,w){var S=(v-p)*.5,T=(A-g)*.5;return(2*(g-v)+S+T)*w+(-3*(g-v)-2*S-T)*b+S*x+g}function e(p){if(E(p)){var g=p.length;if(E(p[0])){for(var v=[],A=0;A<g;A++)v.push(I.call(p[A]));return v}return I.call(p)}return p}function n(p){return p[0]=Math.floor(p[0]),p[1]=Math.floor(p[1]),p[2]=Math.floor(p[2]),"rgba("+p.join(",")+")"}function i(p){var g=p[p.length-1].value;return E(g&&g[0])?2:1}function c(p,g,v,A,x,b){var w=p._getter,S=p._setter,T=g==="spline",C=A.length;if(!C)return;var O=A[0].value,_=E(O),M=!1,k=!1,R=_?i(A):0,B;A.sort(function(J,le){return J.time-le.time}),B=A[C-1].time;for(var P=[],U=[],j=A[0].value,H=!0,W=0;W<C;W++){P.push(A[W].time/B);var G=A[W].value;if(_&&a(G,j,R)||!_&&G===j||(H=!1),j=G,typeof G=="string"){var V=N.parse(G);V?(G=V,M=!0):k=!0}U.push(G)}if(!b&&H)return;for(var Z=U[C-1],W=0;W<C-1;W++)_?l(U[W],Z,R):isNaN(U[W])&&!isNaN(Z)&&!k&&!M&&(U[W]=Z);_&&l(w(p._target,x),Z,R);var Y=0,Q=0,oe,ue,Le,me,Ie,X;if(M)var q=[0,0,0,0];var We=function(le,de){var Ne;if(de<0)Ne=0;else if(de<Q){for(oe=Math.min(Y+1,C-1),Ne=oe;Ne>=0&&!(P[Ne]<=de);Ne--);Ne=Math.min(Ne,C-2)}else{for(Ne=Y;Ne<C&&!(P[Ne]>de);Ne++);Ne=Math.min(Ne-1,C-2)}Y=Ne,Q=de;var we=P[Ne+1]-P[Ne];if(we===0)return;if(ue=(de-P[Ne])/we,T)if(me=U[Ne],Le=U[Ne===0?Ne:Ne-1],Ie=U[Ne>C-2?C-1:Ne+1],X=U[Ne>C-3?C-1:Ne+2],_)r(Le,me,Ie,X,ue,ue*ue,ue*ue*ue,w(le,x),R);else{var De;if(M)De=r(Le,me,Ie,X,ue,ue*ue,ue*ue*ue,q,1),De=n(q);else{if(k)return s(me,Ie,ue);De=u(Le,me,Ie,X,ue,ue*ue,ue*ue*ue)}S(le,x,De)}else if(_)t(U[Ne],U[Ne+1],ue,w(le,x),R);else{var De;if(M)t(U[Ne],U[Ne+1],ue,q,1),De=n(q);else{if(k)return s(U[Ne],U[Ne+1],ue);De=f(U[Ne],U[Ne+1],ue)}S(le,x,De)}},$=new D({target:p._target,life:B,loop:p._loop,delay:p._delay,onframe:We,ondestroy:v});return g&&g!=="spline"&&($.easing=g),$}var d=function(g,v,A,x){this._tracks={},this._target=g,this._loop=v||!1,this._getter=A||o,this._setter=x||m,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};d.prototype={when:function(g,v){var A=this._tracks;for(var x in v){if(!v.hasOwnProperty(x))continue;if(!A[x]){A[x]=[];var b=this._getter(this._target,x);if(b==null)continue;g!==0&&A[x].push({time:0,value:e(b)})}A[x].push({time:g,value:v[x]})}return this},during:function(g){return this._onframeList.push(g),this},pause:function(){for(var g=0;g<this._clipList.length;g++)this._clipList[g].pause();this._paused=!0},resume:function(){for(var g=0;g<this._clipList.length;g++)this._clipList[g].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var g=this._doneList,v=g.length,A=0;A<v;A++)g[A].call(this)},start:function(g,v){var A=this,x=0,b=function(){x--,x||A._doneCallback()},w;for(var S in this._tracks){if(!this._tracks.hasOwnProperty(S))continue;var T=c(this,g,b,this._tracks[S],S,v);T&&(this._clipList.push(T),x++,this.animation&&this.animation.addClip(T),w=T)}if(w){var C=w.onframe;w.onframe=function(O,_){C(O,_);for(var M=0;M<A._onframeList.length;M++)A._onframeList[M](O,_)}}return x||this._doneCallback(),this},stop:function(g){for(var v=this._clipList,A=this.animation,x=0;x<v.length;x++){var b=v[x];g&&b.onframe(this._target,1),A&&A.removeClip(b)}v.length=0},delay:function(g){return this._delay=g,this},done:function(g){return g&&this._doneList.push(g),this},getClips:function(){return this._clipList}};var h=d;fe.exports=h},Bqw1:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},Bsck:function(fe,z,y){var D=y("bYtY"),N=y("Qxkt"),L=y("Mdki"),E=y("YXkt"),I=y("sdST"),o=function(t,l){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=l};o.prototype={constructor:o,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,l,a){typeof t=="function"&&(a=l,l=t,t=null),t=t||{},D.isString(t)&&(t={order:t});var r=t.order||"preorder",u=this[t.attr||"children"],e;r==="preorder"&&(e=l.call(a,this));for(var n=0;!e&&n<u.length;n++)u[n].eachNode(t,l,a);r==="postorder"&&l.call(a,this)},updateDepthAndHeight:function(t){var l=0;this.depth=t;for(var a=0;a<this.children.length;a++){var r=this.children[a];r.updateDepthAndHeight(t+1),r.height>l&&(l=r.height)}this.height=l+1},getNodeById:function(t){if(this.getId()===t)return this;for(var l=0,a=this.children,r=a.length;l<r;l++){var u=a[l].getNodeById(t);if(u)return u}},contains:function(t){if(t===this)return!0;for(var l=0,a=this.children,r=a.length;l<r;l++){var u=a[l].contains(t);if(u)return u}},getAncestors:function(t){for(var l=[],a=t?this:this.parentNode;a;)l.push(a),a=a.parentNode;return l.reverse(),l},getValue:function(t){var l=this.hostTree.data;return l.get(l.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,l){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,l)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(this.dataIndex<0)return;var l=this.hostTree,a=l.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r?a.getModel(t,r.getModel(t)):a.getModel(t)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,l){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,l)},getVisual:function(t,l){return this.hostTree.data.getItemVisual(this.dataIndex,t,l)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var l=t.parentNode;l;){if(l===this)return!0;l=l.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}};function m(t,l){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=D.map(l||[],function(a){return new N(a,t,t.ecModel)})}m.prototype={constructor:m,type:"tree",eachNode:function(t,l,a){this.root.eachNode(t,l,a)},getNodeByDataIndex:function(t){var l=this.data.getRawIndex(t);return this._nodes[l]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,l=this._nodes,a=0,r=l.length;a<r;a++)l[a].dataIndex=-1;for(var a=0,r=t.count();a<r;a++)l[t.getRawIndex(a)].dataIndex=a},clearLayouts:function(){this.data.clearItemLayouts()}},m.createTree=function(t,l,a,r){var u=new m(l,a&&a.levels),e=[],n=1;i(t);function i(h,p){var g=h.value;n=Math.max(n,D.isArray(g)?g.length:1),e.push(h);var v=new o(h.name,u);p?f(v,p):u.root=v,u._nodes.push(v);var A=h.children;if(A)for(var x=0;x<A.length;x++)i(A[x],v)}u.root.updateDepthAndHeight(0);var c=I(e,{coordDimensions:["value"],dimensionsCount:n}),d=new E(c,l);return d.initData(e),r&&r(d),L({mainData:d,struct:u,structAttr:"tree"}),u.update(),u};function f(t,l){var a=l.children;if(t.parentNode===l)return;a.push(t),t.parentNode=l}var s=m;fe.exports=s},BtR2:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="LikeOutlined";var m=z.a=N.forwardRef(o)},BuqR:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("6uqw"),I=y("XxSj"),o=y("YOMW"),m=y("OELB"),f=m.reformIntervals,s=E.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(r,u){s.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var e=this._mode=this._determineMode();t[this._mode].call(this),this._resetSelected(r,u);var n=this.option.categories;this.resetVisual(function(i,c){e==="categories"?(i.mappingMethod="category",i.categories=L.clone(n)):(i.dataExtent=this.getExtent(),i.mappingMethod="piecewise",i.pieceList=L.map(this._pieceList,function(d){var d=L.clone(d);return c!=="inRange"&&(d.visual=null),d}))})},completeVisualOption:function(){var r=this.option,u={},e=I.listVisualTypes(),n=this.isCategory();L.each(r.pieces,function(c){L.each(e,function(d){c.hasOwnProperty(d)&&(u[d]=1)})}),L.each(u,function(c,d){var h=0;L.each(this.stateList,function(p){h|=i(r,p,d)||i(r.target,p,d)},this),!h&&L.each(this.stateList,function(p){(r[p]||(r[p]={}))[d]=o.get(d,p==="inRange"?"active":"inactive",n)})},this);function i(c,d,h){return c&&c[d]&&(L.isObject(c[d])?c[d].hasOwnProperty(h):c[d]===h)}E.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(r,u){var e=this.option,n=this._pieceList,i=(u?e:r).selected||{};if(e.selected=i,L.each(n,function(d,h){var p=this.getSelectedMapKey(d);i.hasOwnProperty(p)||(i[p]=!0)},this),e.selectedMode==="single"){var c=!1;L.each(n,function(d,h){var p=this.getSelectedMapKey(d);i[p]&&(c?i[p]=!1:c=!0)},this)}},getSelectedMapKey:function(r){return this._mode==="categories"?r.value+"":r.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(r){this.option.selected=L.clone(r)},getValueState:function(r){var u=I.findPieceIndex(r,this._pieceList);return u!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[u])]?"inRange":"outOfRange"},findTargetDataIndices:function(r){var u=[];return this.eachTargetSeries(function(e){var n=[],i=e.getData();i.each(this.getDataDimension(i),function(c,d){var h=I.findPieceIndex(c,this._pieceList);h===r&&n.push(d)},this),u.push({seriesId:e.id,dataIndex:n})},this),u},getRepresentValue:function(r){var u;if(this.isCategory())u=r.value;else if(r.value!=null)u=r.value;else{var e=r.interval||[];u=e[0]===-Infinity&&e[1]===Infinity?0:(e[0]+e[1])/2}return u},getVisualMeta:function(r){if(this.isCategory())return;var u=[],e=[],n=this;function i(p,g){var v=n.getRepresentValue({interval:p});g||(g=n.getValueState(v));var A=r(v,g);p[0]===-Infinity?e[0]=A:p[1]===Infinity?e[1]=A:u.push({value:p[0],color:A},{value:p[1],color:A})}var c=this._pieceList.slice();if(!c.length)c.push({interval:[-Infinity,Infinity]});else{var d=c[0].interval[0];d!==-Infinity&&c.unshift({interval:[-Infinity,d]}),d=c[c.length-1].interval[1],d!==Infinity&&c.push({interval:[d,Infinity]})}var h=-Infinity;return L.each(c,function(p){var g=p.interval;g&&(g[0]>h&&i([h,g[0]],"outOfRange"),i(g.slice()),h=g[1])},this),{stops:u,outerColors:e}}}),t={splitNumber:function(){var r=this.option,u=this._pieceList,e=Math.min(r.precision,20),n=this.getExtent(),i=r.splitNumber;i=Math.max(parseInt(i,10),1),r.splitNumber=i;for(var c=(n[1]-n[0])/i;+c.toFixed(e)!==c&&e<5;)e++;r.precision=e,c=+c.toFixed(e),r.minOpen&&u.push({interval:[-Infinity,n[0]],close:[0,0]});for(var d=0,h=n[0];d<i;h+=c,d++){var p=d===i-1?n[1]:h+c;u.push({interval:[h,p],close:[1,1]})}r.maxOpen&&u.push({interval:[n[1],Infinity],close:[0,0]}),f(u),L.each(u,function(g,v){g.index=v,g.text=this.formatValueText(g.interval)},this)},categories:function(){var r=this.option;L.each(r.categories,function(u){this._pieceList.push({text:this.formatValueText(u,!0),value:u})},this),l(r,this._pieceList)},pieces:function(){var r=this.option,u=this._pieceList;L.each(r.pieces,function(e,n){L.isObject(e)||(e={value:e});var i={text:"",index:n};if(e.label!=null&&(i.text=e.label),e.hasOwnProperty("value")){var c=i.value=e.value;i.interval=[c,c],i.close=[1,1]}else{for(var d=i.interval=[],h=i.close=[0,0],p=[1,0,1],g=[-Infinity,Infinity],v=[],A=0;A<2;A++){for(var x=[["gte","gt","min"],["lte","lt","max"]][A],b=0;b<3&&d[A]==null;b++)d[A]=e[x[b]],h[A]=p[b],v[A]=b===2;d[A]==null&&(d[A]=g[A])}v[0]&&d[1]===Infinity&&(h[0]=0),v[1]&&d[0]===-Infinity&&(h[1]=0),d[0]===d[1]&&h[0]&&h[1]&&(i.value=d[0])}i.visual=I.retrieveVisuals(e),u.push(i)},this),l(r,u),f(u),L.each(u,function(e){var n=e.close,i=[["<","\u2264"][n[1]],[">","\u2265"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function l(r,u){var e=r.inverse;(r.orient==="vertical"?!e:e)&&u.reverse()}var a=s;fe.exports=a},BvKs:function(fe,z,y){"use strict";y.d(z,"a",function(){return jt});var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("lwsE"),o=y.n(I),m=y("W8MJ"),f=y.n(m),s=y("7W2i"),t=y.n(s),l=y("LQ03"),a=y.n(l),r=y("q1tI"),u=y("VTBJ"),e=y("1OyB"),n=y("vuIU"),i=y("JX7q"),c=y("Ji7U"),d=y("LK+K"),h=y("I8Z2"),p=y("BGR+"),g=y("wx14"),v=y("rePB"),A=y("4IlW"),x=y("2GS6"),b=y("Gytx"),w=y.n(b),S=y("TSYQ"),T=y.n(S),C=y("U8pU"),O=y("ODXe"),_=/iPhone/i,M=/iPod/i,k=/iPad/i,R=/\bAndroid(?:.+)Mobile\b/i,B=/Android/i,P=/\bAndroid(?:.+)SD4930UR\b/i,U=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,j=/Windows Phone/i,H=/\bWindows(?:.+)ARM\b/i,W=/BlackBerry/i,G=/BB10/i,V=/Opera Mini/i,Z=/\b(CriOS|Chrome)(?:.+)Mobile/i,Y=/Mobile(?:.+)Firefox\b/i;function Q(gt,dt){return gt.test(dt)}function oe(gt){var dt=gt||(typeof navigator!="undefined"?navigator.userAgent:""),Qt=dt.split("[FBAN");if(typeof Qt[1]!="undefined"){var Jt=Qt,xt=Object(O.a)(Jt,1);dt=xt[0]}if(Qt=dt.split("Twitter"),typeof Qt[1]!="undefined"){var Pt=Qt,yt=Object(O.a)(Pt,1);dt=yt[0]}var Ut={apple:{phone:Q(_,dt)&&!Q(j,dt),ipod:Q(M,dt),tablet:!Q(_,dt)&&Q(k,dt)&&!Q(j,dt),device:(Q(_,dt)||Q(M,dt)||Q(k,dt))&&!Q(j,dt)},amazon:{phone:Q(P,dt),tablet:!Q(P,dt)&&Q(U,dt),device:Q(P,dt)||Q(U,dt)},android:{phone:!Q(j,dt)&&Q(P,dt)||!Q(j,dt)&&Q(R,dt),tablet:!Q(j,dt)&&!Q(P,dt)&&!Q(R,dt)&&(Q(U,dt)||Q(B,dt)),device:!Q(j,dt)&&(Q(P,dt)||Q(U,dt)||Q(R,dt)||Q(B,dt))||Q(/\bokhttp\b/i,dt)},windows:{phone:Q(j,dt),tablet:Q(H,dt),device:Q(j,dt)||Q(H,dt)},other:{blackberry:Q(W,dt),blackberry10:Q(G,dt),opera:Q(V,dt),firefox:Q(Y,dt),chrome:Q(Z,dt),device:Q(W,dt)||Q(G,dt)||Q(V,dt)||Q(Y,dt)||Q(Z,dt)},any:null,phone:null,tablet:null};return Ut.any=Ut.apple.device||Ut.android.device||Ut.windows.device||Ut.other.device,Ut.phone=Ut.apple.phone||Ut.android.phone||Ut.windows.phone,Ut.tablet=Ut.apple.tablet||Ut.android.tablet||Ut.windows.tablet,Ut}var ue=Object(u.a)(Object(u.a)({},oe()),{},{isMobile:oe}),Le=ue;function me(){}function Ie(gt,dt,Qt){var Jt=dt||"";return gt.key||"".concat(Jt,"item_").concat(Qt)}function X(gt){return"".concat(gt,"-menu-")}function q(gt,dt){var Qt=-1;r.Children.forEach(gt,function(Jt){Qt+=1,Jt&&Jt.type&&Jt.type.isMenuItemGroup?r.Children.forEach(Jt.props.children,function(xt){Qt+=1,dt(xt,Qt)}):dt(Jt,Qt)})}function We(gt,dt,Qt){if(!gt||Qt.find)return;r.Children.forEach(gt,function(Jt){if(Jt){var xt=Jt.type;if(!xt||!(xt.isSubMenu||xt.isMenuItem||xt.isMenuItemGroup))return;dt.indexOf(Jt.key)!==-1?Qt.find=!0:Jt.props.children&&We(Jt.props.children,dt,Qt)}})}var $=["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"],J=function(dt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jt=dt&&typeof dt.getBoundingClientRect=="function"&&dt.getBoundingClientRect().width;if(Jt){if(Qt){var xt=getComputedStyle(dt),Pt=xt.marginLeft,yt=xt.marginRight;Jt+=+Pt.replace("px","")+ +yt.replace("px","")}Jt=+Jt.toFixed(6)}return Jt||0},le=function(dt,Qt,Jt){dt&&Object(C.a)(dt.style)==="object"&&(dt.style[Qt]=Jt)},de=function(){return Le.any},Ne=y("KQm4"),we=y("Ff2n"),De=y("i8i4"),Ee=y("bdgK"),ce=y("uciX"),ne=y("8XRh"),ee={adjustX:1,adjustY:1},Ae={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},Ve={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ee,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ee,offset:[4,0]}},Ke=Ae,Oe=0,it={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Fe=function(dt,Qt,Jt){var xt=X(Qt),Pt=dt.getState();dt.setState({defaultActiveFirst:Object(u.a)(Object(u.a)({},Pt.defaultActiveFirst),{},Object(v.a)({},xt,Jt))})},ft=function(gt){Object(c.a)(Qt,gt);var dt=Object(d.a)(Qt);function Qt(Jt){var xt;Object(e.a)(this,Qt),xt=dt.call(this,Jt),xt.onDestroy=function(ir){xt.props.onDestroy(ir)},xt.onKeyDown=function(ir){var Yr=ir.keyCode,Jr=xt.menuInstance,In=xt.props,Nn=In.isOpen,zn=In.store;if(Yr===A.a.ENTER)return xt.onTitleClick(ir),Fe(zn,xt.props.eventKey,!0),!0;if(Yr===A.a.RIGHT)return Nn?Jr.onKeyDown(ir):(xt.triggerOpenChange(!0),Fe(zn,xt.props.eventKey,!0)),!0;if(Yr===A.a.LEFT){var ei;if(Nn)ei=Jr.onKeyDown(ir);else return;return ei||(xt.triggerOpenChange(!1),ei=!0),ei}return Nn&&(Yr===A.a.UP||Yr===A.a.DOWN)?Jr.onKeyDown(ir):void 0},xt.onOpenChange=function(ir){xt.props.onOpenChange(ir)},xt.onPopupVisibleChange=function(ir){xt.triggerOpenChange(ir,ir?"mouseenter":"mouseleave")},xt.onMouseEnter=function(ir){var Yr=xt.props,Jr=Yr.eventKey,In=Yr.onMouseEnter,Nn=Yr.store;Fe(Nn,xt.props.eventKey,!1),In({key:Jr,domEvent:ir})},xt.onMouseLeave=function(ir){var Yr=xt.props,Jr=Yr.parentMenu,In=Yr.eventKey,Nn=Yr.onMouseLeave;Jr.subMenuInstance=Object(i.a)(xt),Nn({key:In,domEvent:ir})},xt.onTitleMouseEnter=function(ir){var Yr=xt.props,Jr=Yr.eventKey,In=Yr.onItemHover,Nn=Yr.onTitleMouseEnter;In({key:Jr,hover:!0}),Nn({key:Jr,domEvent:ir})},xt.onTitleMouseLeave=function(ir){var Yr=xt.props,Jr=Yr.parentMenu,In=Yr.eventKey,Nn=Yr.onItemHover,zn=Yr.onTitleMouseLeave;Jr.subMenuInstance=Object(i.a)(xt),Nn({key:In,hover:!1}),zn({key:In,domEvent:ir})},xt.onTitleClick=function(ir){var Yr=Object(i.a)(xt),Jr=Yr.props;if(Jr.onTitleClick({key:Jr.eventKey,domEvent:ir}),Jr.triggerSubMenuAction==="hover")return;xt.triggerOpenChange(!Jr.isOpen,"click"),Fe(Jr.store,xt.props.eventKey,!1)},xt.onSubMenuClick=function(ir){typeof xt.props.onClick=="function"&&xt.props.onClick(xt.addKeyPath(ir))},xt.onSelect=function(ir){xt.props.onSelect(ir)},xt.onDeselect=function(ir){xt.props.onDeselect(ir)},xt.getPrefixCls=function(){return"".concat(xt.props.rootPrefixCls,"-submenu")},xt.getActiveClassName=function(){return"".concat(xt.getPrefixCls(),"-active")},xt.getDisabledClassName=function(){return"".concat(xt.getPrefixCls(),"-disabled")},xt.getSelectedClassName=function(){return"".concat(xt.getPrefixCls(),"-selected")},xt.getOpenClassName=function(){return"".concat(xt.props.rootPrefixCls,"-submenu-open")},xt.saveMenuInstance=function(ir){xt.menuInstance=ir},xt.addKeyPath=function(ir){return Object(u.a)(Object(u.a)({},ir),{},{keyPath:(ir.keyPath||[]).concat(xt.props.eventKey)})},xt.triggerOpenChange=function(ir,Yr){var Jr=xt.props.eventKey,In=function(){xt.onOpenChange({key:Jr,item:Object(i.a)(xt),trigger:Yr,open:ir})};Yr==="mouseenter"?xt.mouseenterTimeout=setTimeout(function(){In()},0):In()},xt.isChildrenSelected=function(){var ir={find:!1};return We(xt.props.children,xt.props.selectedKeys,ir),ir.find},xt.isOpen=function(){return xt.props.openKeys.indexOf(xt.props.eventKey)!==-1},xt.adjustWidth=function(){if(!xt.subMenuTitle||!xt.menuInstance)return;var ir=De.findDOMNode(xt.menuInstance);if(ir.offsetWidth>=xt.subMenuTitle.offsetWidth)return;ir.style.minWidth="".concat(xt.subMenuTitle.offsetWidth,"px")},xt.saveSubMenuTitle=function(ir){xt.subMenuTitle=ir},xt.getBaseProps=function(){var ir=Object(i.a)(xt),Yr=ir.props;return{mode:Yr.mode==="horizontal"?"vertical":Yr.mode,visible:xt.props.isOpen,level:Yr.level+1,inlineIndent:Yr.inlineIndent,focusable:!1,onClick:xt.onSubMenuClick,onSelect:xt.onSelect,onDeselect:xt.onDeselect,onDestroy:xt.onDestroy,selectedKeys:Yr.selectedKeys,eventKey:"".concat(Yr.eventKey,"-menu-"),openKeys:Yr.openKeys,motion:Yr.motion,onOpenChange:xt.onOpenChange,subMenuOpenDelay:Yr.subMenuOpenDelay,parentMenu:Object(i.a)(xt),subMenuCloseDelay:Yr.subMenuCloseDelay,forceSubMenuRender:Yr.forceSubMenuRender,triggerSubMenuAction:Yr.triggerSubMenuAction,builtinPlacements:Yr.builtinPlacements,defaultActiveFirst:Yr.store.getState().defaultActiveFirst[X(Yr.eventKey)],multiple:Yr.multiple,prefixCls:Yr.rootPrefixCls,id:xt.internalMenuId,manualRef:xt.saveMenuInstance,itemIcon:Yr.itemIcon,expandIcon:Yr.expandIcon,direction:Yr.direction}},xt.getMotion=function(ir,Yr){var Jr=Object(i.a)(xt),In=Jr.haveRendered,Nn=xt.props,zn=Nn.motion,ei=Nn.rootPrefixCls,Ai=Object(u.a)(Object(u.a)({},zn),{},{leavedClassName:"".concat(ei,"-hidden"),removeOnLeave:!1,motionAppear:In||!Yr||ir!=="inline"});return Ai};var Pt=Jt.store,yt=Jt.eventKey,Ut=Pt.getState(),pr=Ut.defaultActiveFirst;xt.isRootMenu=!1;var sr=!1;return pr&&(sr=pr[yt]),Fe(Pt,yt,sr),xt}return Object(n.a)(Qt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var xt=this,Pt=this.props,yt=Pt.mode,Ut=Pt.parentMenu,pr=Pt.manualRef;if(pr&&pr(this),yt!=="horizontal"||!Ut.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return xt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var xt=this.props,Pt=xt.onDestroy,yt=xt.eventKey;Pt&&Pt(yt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(xt){var Pt=this,yt=this.getBaseProps(),Ut=this.getMotion(yt.mode,yt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||yt.visible||yt.forceSubMenuRender,!this.haveOpened)return r.createElement("div",null);var pr=yt.direction;return r.createElement(ne.default,Object.assign({visible:yt.visible},Ut),function(sr){var ir=sr.className,Yr=sr.style,Jr=T()("".concat(yt.prefixCls,"-sub"),ir,Object(v.a)({},"".concat(yt.prefixCls,"-rtl"),pr==="rtl"));return r.createElement(Wt,Object.assign({},yt,{id:Pt.internalMenuId,className:Jr,style:Yr}),xt)})}},{key:"render",value:function(){var xt,Pt=Object(u.a)({},this.props),yt=Pt.isOpen,Ut=this.getPrefixCls(),pr=Pt.mode==="inline",sr=T()(Ut,"".concat(Ut,"-").concat(Pt.mode),(xt={},Object(v.a)(xt,Pt.className,!!Pt.className),Object(v.a)(xt,this.getOpenClassName(),yt),Object(v.a)(xt,this.getActiveClassName(),Pt.active||yt&&!pr),Object(v.a)(xt,this.getDisabledClassName(),Pt.disabled),Object(v.a)(xt,this.getSelectedClassName(),this.isChildrenSelected()),xt));this.internalMenuId||(Pt.eventKey?this.internalMenuId="".concat(Pt.eventKey,"$Menu"):(Oe+=1,this.internalMenuId="$__$".concat(Oe,"$Menu")));var ir={},Yr={},Jr={};Pt.disabled||(ir={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Yr={onClick:this.onTitleClick},Jr={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var In={},Nn=Pt.direction;pr&&(Nn==="rtl"?In.paddingRight=Pt.inlineIndent*Pt.level:In.paddingLeft=Pt.inlineIndent*Pt.level);var zn={};this.props.isOpen&&(zn={"aria-owns":this.internalMenuId});var ei=null;Pt.mode!=="horizontal"&&(ei=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ei=r.createElement(this.props.expandIcon,Object(u.a)({},this.props))));var Ai=r.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:In,className:"".concat(Ut,"-title"),role:"button"},Jr,Yr,{"aria-expanded":yt},zn,{"aria-haspopup":"true",title:typeof Pt.title=="string"?Pt.title:void 0}),Pt.title,ei||r.createElement("i",{className:"".concat(Ut,"-arrow")})),Pi=this.renderChildren(Pt.children),$e=Pt.parentMenu.isRootMenu?Pt.parentMenu.props.getPopupContainer:function(hr){return hr.parentNode},_e=it[Pt.mode],Be=Pt.popupOffset?{offset:Pt.popupOffset}:{},He=Pt.mode==="inline"?"":Pt.popupClassName;He+=Nn==="rtl"?" ".concat(Ut,"-rtl"):"";var Je=Pt.disabled,Ye=Pt.triggerSubMenuAction,et=Pt.subMenuOpenDelay,wt=Pt.forceSubMenuRender,ut=Pt.subMenuCloseDelay,Ft=Pt.builtinPlacements;$.forEach(function(hr){return delete Pt[hr]}),delete Pt.onClick;var wr=Nn==="rtl"?Object.assign({},Ve,Ft):Object.assign({},Ae,Ft);return delete Pt.direction,r.createElement("li",Object.assign({},Pt,ir,{className:sr,role:"menuitem"}),pr&&Ai,pr&&Pi,!pr&&r.createElement(ce.a,{prefixCls:Ut,popupClassName:T()("".concat(Ut,"-popup"),He),getPopupContainer:$e,builtinPlacements:wr,popupPlacement:_e,popupVisible:yt,popupAlign:Be,popup:Pi,action:Je?[]:[Ye],mouseEnterDelay:et,mouseLeaveDelay:ut,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:wt},Ai))}}]),Qt}(r.Component);ft.defaultProps={onMouseEnter:me,onMouseLeave:me,onTitleMouseEnter:me,onTitleMouseLeave:me,onTitleClick:me,manualRef:me,mode:"vertical",title:""};var At=Object(h.b)(function(gt,dt){var Qt=gt.openKeys,Jt=gt.activeKey,xt=gt.selectedKeys,Pt=dt.eventKey,yt=dt.subMenuKey;return{isOpen:Qt.indexOf(Pt)>-1,active:Jt[yt]===Pt,selectedKeys:xt}})(ft);At.isSubMenu=!0;var bt=At,St="menuitem-overflowed",Et=.5,je=function(gt){Object(c.a)(Qt,gt);var dt=Object(d.a)(Qt);function Qt(){var Jt;return Object(e.a)(this,Qt),Jt=dt.apply(this,arguments),Jt.resizeObserver=null,Jt.mutationObserver=null,Jt.originalTotalWidth=0,Jt.overflowedItems=[],Jt.menuItemSizes=[],Jt.cancelFrameId=null,Jt.state={lastVisibleIndex:void 0},Jt.getMenuItemNodes=function(){var xt=Jt.props.prefixCls,Pt=De.findDOMNode(Object(i.a)(Jt));return Pt?[].slice.call(Pt.children).filter(function(yt){return yt.className.split(" ").indexOf("".concat(xt,"-overflowed-submenu"))<0}):[]},Jt.getOverflowedSubMenuItem=function(xt,Pt,yt){var Ut=Jt.props,pr=Ut.overflowedIndicator,sr=Ut.level,ir=Ut.mode,Yr=Ut.prefixCls,Jr=Ut.theme;if(sr!==1||ir!=="horizontal")return null;var In=Jt.props.children[0],Nn=In.props,zn=Nn.children,ei=Nn.title,Ai=Nn.style,Pi=Object(we.a)(Nn,["children","title","style"]),$e=Object(u.a)({},Ai),_e="".concat(xt,"-overflowed-indicator"),Be="".concat(xt,"-overflowed-indicator");Pt.length===0&&yt!==!0?$e=Object(u.a)(Object(u.a)({},$e),{},{display:"none"}):yt&&($e=Object(u.a)(Object(u.a)({},$e),{},{visibility:"hidden",position:"absolute"}),_e="".concat(_e,"-placeholder"),Be="".concat(Be,"-placeholder"));var He=Jr?"".concat(Yr,"-").concat(Jr):"",Je={};return $.forEach(function(Ye){Pi[Ye]!==void 0&&(Je[Ye]=Pi[Ye])}),r.createElement(bt,Object.assign({title:pr,className:"".concat(Yr,"-overflowed-submenu"),popupClassName:He},Je,{key:_e,eventKey:Be,disabled:!1,style:$e}),Pt)},Jt.setChildrenWidthAndResize=function(){if(Jt.props.mode!=="horizontal")return;var xt=De.findDOMNode(Object(i.a)(Jt));if(!xt)return;var Pt=xt.children;if(!Pt||Pt.length===0)return;var yt=xt.children[Pt.length-1];le(yt,"display","inline-block");var Ut=Jt.getMenuItemNodes(),pr=Ut.filter(function(sr){return sr.className.split(" ").indexOf(St)>=0});pr.forEach(function(sr){le(sr,"display","inline-block")}),Jt.menuItemSizes=Ut.map(function(sr){return J(sr,!0)}),pr.forEach(function(sr){le(sr,"display","none")}),Jt.overflowedIndicatorWidth=J(xt.children[xt.children.length-1],!0),Jt.originalTotalWidth=Jt.menuItemSizes.reduce(function(sr,ir){return sr+ir},0),Jt.handleResize(),le(yt,"display","none")},Jt.handleResize=function(){if(Jt.props.mode!=="horizontal")return;var xt=De.findDOMNode(Object(i.a)(Jt));if(!xt)return;var Pt=J(xt);Jt.overflowedItems=[];var yt=0,Ut;Jt.originalTotalWidth>Pt+Et&&(Ut=-1,Jt.menuItemSizes.forEach(function(pr){yt+=pr,yt+Jt.overflowedIndicatorWidth<=Pt&&(Ut+=1)})),Jt.setState({lastVisibleIndex:Ut})},Jt}return Object(n.a)(Qt,[{key:"componentDidMount",value:function(){var xt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Pt=De.findDOMNode(this);if(!Pt)return;this.resizeObserver=new Ee.default(function(yt){yt.forEach(function(){var Ut=xt.cancelFrameId;cancelAnimationFrame(Ut),xt.cancelFrameId=requestAnimationFrame(xt.setChildrenWidthAndResize)})}),[].slice.call(Pt.children).concat(Pt).forEach(function(yt){xt.resizeObserver.observe(yt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){xt.resizeObserver.disconnect(),[].slice.call(Pt.children).concat(Pt).forEach(function(yt){xt.resizeObserver.observe(yt)}),xt.setChildrenWidthAndResize()}),this.mutationObserver.observe(Pt,{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(xt){var Pt=this,yt=this.state.lastVisibleIndex;return(xt||[]).reduce(function(Ut,pr,sr){var ir=pr;if(Pt.props.mode==="horizontal"){var Yr=Pt.getOverflowedSubMenuItem(pr.props.eventKey,[]);yt!==void 0&&Pt.props.className.indexOf("".concat(Pt.props.prefixCls,"-root"))!==-1&&(sr>yt&&(ir=r.cloneElement(pr,{style:{display:"none"},eventKey:"".concat(pr.props.eventKey,"-hidden"),className:"".concat(St)})),sr===yt+1&&(Pt.overflowedItems=xt.slice(yt+1).map(function(In){return r.cloneElement(In,{key:In.props.eventKey,mode:"vertical-left"})}),Yr=Pt.getOverflowedSubMenuItem(pr.props.eventKey,Pt.overflowedItems)));var Jr=[].concat(Object(Ne.a)(Ut),[Yr,ir]);return sr===xt.length-1&&Jr.push(Pt.getOverflowedSubMenuItem(pr.props.eventKey,[],!0)),Jr}return[].concat(Object(Ne.a)(Ut),[ir])},[])}},{key:"render",value:function(){var xt=this.props,Pt=xt.visible,yt=xt.prefixCls,Ut=xt.overflowedIndicator,pr=xt.mode,sr=xt.level,ir=xt.tag,Yr=xt.children,Jr=xt.theme,In=Object(we.a)(xt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Nn=ir;return r.createElement(Nn,Object.assign({},In),this.renderChildren(Yr))}}]),Qt}(r.Component);je.defaultProps={tag:"div",className:""};var pe=je;function ie(gt){return gt.length?gt.every(function(dt){return!!dt.props.disabled}):!0}function st(gt,dt,Qt){var Jt=gt.getState();gt.setState({activeKey:Object(u.a)(Object(u.a)({},Jt.activeKey),{},Object(v.a)({},dt,Qt))})}function Qe(gt){return gt.eventKey||"0-menu-"}function ve(gt,dt){var Qt=dt,Jt=gt.children,xt=gt.eventKey;if(Qt){var Pt;if(q(Jt,function(yt,Ut){yt&&yt.props&&!yt.props.disabled&&Qt===Ie(yt,xt,Ut)&&(Pt=!0)}),Pt)return Qt}return Qt=null,gt.defaultActiveFirst&&q(Jt,function(yt,Ut){!Qt&&yt&&!yt.props.disabled&&(Qt=Ie(yt,xt,Ut))}),Qt}function Bt(gt){if(gt){var dt=this.instanceArray.indexOf(gt);dt!==-1?this.instanceArray[dt]=gt:this.instanceArray.push(gt)}}var qt=function(gt){Object(c.a)(Qt,gt);var dt=Object(d.a)(Qt);function Qt(Jt){var xt;return Object(e.a)(this,Qt),xt=dt.call(this,Jt),xt.onKeyDown=function(Pt,yt){var Ut=Pt.keyCode,pr;if(xt.getFlatInstanceArray().forEach(function(ir){ir&&ir.props.active&&ir.onKeyDown&&(pr=ir.onKeyDown(Pt))}),pr)return 1;var sr=null;return(Ut===A.a.UP||Ut===A.a.DOWN)&&(sr=xt.step(Ut===A.a.UP?-1:1)),sr?(Pt.preventDefault(),st(xt.props.store,Qe(xt.props),sr.props.eventKey),typeof yt=="function"&&yt(sr),1):void 0},xt.onItemHover=function(Pt){var yt=Pt.key,Ut=Pt.hover;st(xt.props.store,Qe(xt.props),Ut?yt:null)},xt.onDeselect=function(Pt){xt.props.onDeselect(Pt)},xt.onSelect=function(Pt){xt.props.onSelect(Pt)},xt.onClick=function(Pt){xt.props.onClick(Pt)},xt.onOpenChange=function(Pt){xt.props.onOpenChange(Pt)},xt.onDestroy=function(Pt){xt.props.onDestroy(Pt)},xt.getFlatInstanceArray=function(){return xt.instanceArray},xt.step=function(Pt){var yt=xt.getFlatInstanceArray(),Ut=xt.props.store.getState().activeKey[Qe(xt.props)],pr=yt.length;if(!pr)return null;Pt<0&&(yt=yt.concat().reverse());var sr=-1;if(yt.every(function(In,Nn){return In&&In.props.eventKey===Ut?(sr=Nn,!1):!0}),!xt.props.defaultActiveFirst&&sr!==-1&&ie(yt.slice(sr,pr-1)))return;var ir=(sr+1)%pr,Yr=ir;do{var Jr=yt[Yr];if(!Jr||Jr.props.disabled)Yr=(Yr+1)%pr;else return Jr}while(Yr!==ir);return null},xt.renderCommonMenuItem=function(Pt,yt,Ut){var pr=xt.props.store.getState(),sr=Object(i.a)(xt),ir=sr.props,Yr=Ie(Pt,ir.eventKey,yt),Jr=Pt.props;if(!Jr||typeof Pt.type=="string")return Pt;var In=Yr===pr.activeKey,Nn=Object(u.a)(Object(u.a)({mode:Jr.mode||ir.mode,level:ir.level,inlineIndent:ir.inlineIndent,renderMenuItem:xt.renderMenuItem,rootPrefixCls:ir.prefixCls,index:yt,parentMenu:ir.parentMenu,manualRef:Jr.disabled?void 0:Object(x.a)(Pt.ref,Bt.bind(Object(i.a)(xt))),eventKey:Yr,active:!Jr.disabled&&In,multiple:ir.multiple,onClick:function(ei){(Jr.onClick||me)(ei),xt.onClick(ei)},onItemHover:xt.onItemHover,motion:ir.motion,subMenuOpenDelay:ir.subMenuOpenDelay,subMenuCloseDelay:ir.subMenuCloseDelay,forceSubMenuRender:ir.forceSubMenuRender,onOpenChange:xt.onOpenChange,onDeselect:xt.onDeselect,onSelect:xt.onSelect,builtinPlacements:ir.builtinPlacements,itemIcon:Jr.itemIcon||xt.props.itemIcon,expandIcon:Jr.expandIcon||xt.props.expandIcon},Ut),{},{direction:ir.direction});return(ir.mode==="inline"||de())&&(Nn.triggerSubMenuAction="click"),r.cloneElement(Pt,Nn)},xt.renderMenuItem=function(Pt,yt,Ut){if(!Pt)return null;var pr=xt.props.store.getState(),sr={openKeys:pr.openKeys,selectedKeys:pr.selectedKeys,triggerSubMenuAction:xt.props.triggerSubMenuAction,subMenuKey:Ut};return xt.renderCommonMenuItem(Pt,yt,sr)},Jt.store.setState({activeKey:Object(u.a)(Object(u.a)({},Jt.store.getState().activeKey),{},Object(v.a)({},Jt.eventKey,ve(Jt,Jt.activeKey)))}),xt.instanceArray=[],xt}return Object(n.a)(Qt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(xt){return this.props.visible||xt.visible||this.props.className!==xt.className||!w()(this.props.style,xt.style)}},{key:"componentDidUpdate",value:function(xt){var Pt=this.props,yt="activeKey"in Pt?Pt.activeKey:Pt.store.getState().activeKey[Qe(Pt)],Ut=ve(Pt,yt);if(Ut!==yt)st(Pt.store,Qe(Pt),Ut);else if("activeKey"in xt){var pr=ve(xt,xt.activeKey);Ut!==pr&&st(Pt.store,Qe(Pt),Ut)}}},{key:"render",value:function(){var xt=this,Pt=Object(g.a)({},this.props);this.instanceArray=[];var yt=T()(Pt.prefixCls,Pt.className,"".concat(Pt.prefixCls,"-").concat(Pt.mode)),Ut={className:yt,role:Pt.role||"menu"};Pt.id&&(Ut.id=Pt.id),Pt.focusable&&(Ut.tabIndex=0,Ut.onKeyDown=this.onKeyDown);var pr=Pt.prefixCls,sr=Pt.eventKey,ir=Pt.visible,Yr=Pt.level,Jr=Pt.mode,In=Pt.overflowedIndicator,Nn=Pt.theme;return $.forEach(function(zn){return delete Pt[zn]}),delete Pt.onClick,r.createElement(pe,Object.assign({},Pt,{prefixCls:pr,mode:Jr,tag:"ul",level:Yr,theme:Nn,visible:ir,overflowedIndicator:In},Ut),r.Children.map(Pt.children,function(zn,ei){return xt.renderMenuItem(zn,ei,sr||"0-menu-")}))}}]),Qt}(r.Component);qt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:me};var ct=Object(h.b)()(qt),Wt=ct,or=y("Kwbf");function Fr(gt,dt,Qt){var Jt=gt.prefixCls,xt=gt.motion,Pt=gt.defaultMotions,yt=Pt===void 0?{}:Pt,Ut=gt.openAnimation,pr=gt.openTransitionName,sr=dt.switchingModeFromInline;if(xt)return xt;if(Object(C.a)(Ut)==="object"&&Ut)Object(or.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ut=="string")return{motionName:"".concat(Jt,"-open-").concat(Ut)};if(pr)return{motionName:pr};var ir=yt[Qt];return ir||(sr?null:yt.other)}var er=function(gt){Object(c.a)(Qt,gt);var dt=Object(d.a)(Qt);function Qt(Jt){var xt;Object(e.a)(this,Qt),xt=dt.call(this,Jt),xt.inlineOpenKeys=[],xt.onSelect=function(Ut){var pr=Object(i.a)(xt),sr=pr.props;if(sr.selectable){var ir=xt.store.getState(),Yr=ir.selectedKeys,Jr=Ut.key;sr.multiple?Yr=Yr.concat([Jr]):Yr=[Jr],"selectedKeys"in sr||xt.store.setState({selectedKeys:Yr}),sr.onSelect(Object(u.a)(Object(u.a)({},Ut),{},{selectedKeys:Yr}))}},xt.onClick=function(Ut){var pr=xt.getRealMenuMode(),sr=Object(i.a)(xt),ir=sr.store,Yr=sr.props.onOpenChange;pr!=="inline"&&!("openKeys"in xt.props)&&(ir.setState({openKeys:[]}),Yr([])),xt.props.onClick(Ut)},xt.onKeyDown=function(Ut,pr){xt.innerMenu.getWrappedInstance().onKeyDown(Ut,pr)},xt.onOpenChange=function(Ut){var pr=Object(i.a)(xt),sr=pr.props,ir=xt.store.getState().openKeys.concat(),Yr=!1,Jr=function(Nn){var zn=!1;if(Nn.open)zn=ir.indexOf(Nn.key)===-1,zn&&ir.push(Nn.key);else{var ei=ir.indexOf(Nn.key);zn=ei!==-1,zn&&ir.splice(ei,1)}Yr=Yr||zn};Array.isArray(Ut)?Ut.forEach(Jr):Jr(Ut),Yr&&("openKeys"in xt.props||xt.store.setState({openKeys:ir}),sr.onOpenChange(ir))},xt.onDeselect=function(Ut){var pr=Object(i.a)(xt),sr=pr.props;if(sr.selectable){var ir=xt.store.getState().selectedKeys.concat(),Yr=Ut.key,Jr=ir.indexOf(Yr);Jr!==-1&&ir.splice(Jr,1),"selectedKeys"in sr||xt.store.setState({selectedKeys:ir}),sr.onDeselect(Object(u.a)(Object(u.a)({},Ut),{},{selectedKeys:ir}))}},xt.onMouseEnter=function(Ut){xt.restoreModeVerticalFromInline();var pr=xt.props.onMouseEnter;pr&&pr(Ut)},xt.onTransitionEnd=function(Ut){var pr=Ut.propertyName==="width"&&Ut.target===Ut.currentTarget,sr=Ut.target.className,ir=Object.prototype.toString.call(sr)==="[object SVGAnimatedString]"?sr.animVal:sr,Yr=Ut.propertyName==="font-size"&&ir.indexOf("anticon")>=0;(pr||Yr)&&xt.restoreModeVerticalFromInline()},xt.setInnerMenu=function(Ut){xt.innerMenu=Ut},xt.isRootMenu=!0;var Pt=Jt.defaultSelectedKeys,yt=Jt.defaultOpenKeys;return"selectedKeys"in Jt&&(Pt=Jt.selectedKeys||[]),"openKeys"in Jt&&(yt=Jt.openKeys||[]),xt.store=Object(h.c)({selectedKeys:Pt,openKeys:yt,activeKey:{"0-menu-":ve(Jt,Jt.activeKey)}}),xt.state={switchingModeFromInline:!1},xt}return Object(n.a)(Qt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(xt){this.updateOpentKeysWhenSwitchMode(xt),this.updateMiniStore();var Pt=this.props,yt=Pt.siderCollapsed,Ut=Pt.inlineCollapsed,pr=Pt.onOpenChange;(!xt.inlineCollapsed&&Ut||!xt.siderCollapsed&&yt)&&pr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(xt){var Pt=this.props,yt=this.store,Ut=this.inlineOpenKeys,pr=yt.getState(),sr={};xt.mode==="inline"&&Pt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Pt||((Pt.inlineCollapsed&&!xt.inlineCollapsed||Pt.siderCollapsed&&!xt.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=pr.openKeys.concat(),sr.openKeys=[]),(!Pt.inlineCollapsed&&xt.inlineCollapsed||!Pt.siderCollapsed&&xt.siderCollapsed)&&(sr.openKeys=Ut,this.inlineOpenKeys=[])),Object.keys(sr).length&&yt.setState(sr)}},{key:"updateMenuDisplay",value:function(){var xt=this.props.collapsedWidth,Pt=this.store,yt=this.prevOpenKeys,Ut=this.getInlineCollapsed()&&(xt===0||xt==="0"||xt==="0px");Ut?(this.prevOpenKeys=Pt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):yt&&(this.store.setState({openKeys:yt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var xt=this.props.mode,Pt=this.state.switchingModeFromInline,yt=this.getInlineCollapsed();return Pt&&yt?"inline":yt?"vertical":xt}},{key:"getInlineCollapsed",value:function(){var xt=this.props,Pt=xt.inlineCollapsed,yt=xt.siderCollapsed;return yt!==void 0?yt:Pt}},{key:"restoreModeVerticalFromInline",value:function(){var xt=this.state.switchingModeFromInline;xt&&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 xt=Object(u.a)({},Object(p.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Pt=this.getRealMenuMode();return xt.className+=" ".concat(xt.prefixCls,"-root"),xt.direction==="rtl"&&(xt.className+=" ".concat(xt.prefixCls,"-rtl")),xt=Object(u.a)(Object(u.a)({},xt),{},{mode:Pt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Fr(this.props,this.state,Pt)}),delete xt.openAnimation,delete xt.openTransitionName,r.createElement(h.a,{store:this.store},r.createElement(Wt,Object.assign({},xt,{ref:this.setInnerMenu}),this.props.children))}}]),Qt}(r.Component);er.defaultProps={selectable:!0,onClick:me,onSelect:me,onOpenChange:me,onDeselect:me,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var nr=er,Ot=function(gt){Object(c.a)(Qt,gt);var dt=Object(d.a)(Qt);function Qt(){var Jt;return Object(e.a)(this,Qt),Jt=dt.apply(this,arguments),Jt.onKeyDown=function(xt){var Pt=xt.keyCode;return Pt===A.a.ENTER?(Jt.onClick(xt),!0):void 0},Jt.onMouseLeave=function(xt){var Pt=Jt.props,yt=Pt.eventKey,Ut=Pt.onItemHover,pr=Pt.onMouseLeave;Ut({key:yt,hover:!1}),pr({key:yt,domEvent:xt})},Jt.onMouseEnter=function(xt){var Pt=Jt.props,yt=Pt.eventKey,Ut=Pt.onItemHover,pr=Pt.onMouseEnter;Ut({key:yt,hover:!0}),pr({key:yt,domEvent:xt})},Jt.onClick=function(xt){var Pt=Jt.props,yt=Pt.eventKey,Ut=Pt.multiple,pr=Pt.onClick,sr=Pt.onSelect,ir=Pt.onDeselect,Yr=Pt.isSelected,Jr={key:yt,keyPath:[yt],item:Object(i.a)(Jt),domEvent:xt};pr(Jr),Ut?Yr?ir(Jr):sr(Jr):Yr||sr(Jr)},Jt.saveNode=function(xt){Jt.node=xt},Jt}return Object(n.a)(Qt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var xt=this.props;xt.onDestroy&&xt.onDestroy(xt.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 xt,Pt=Object(u.a)({},this.props),yt=T()(this.getPrefixCls(),Pt.className,(xt={},Object(v.a)(xt,this.getActiveClassName(),!Pt.disabled&&Pt.active),Object(v.a)(xt,this.getSelectedClassName(),Pt.isSelected),Object(v.a)(xt,this.getDisabledClassName(),Pt.disabled),xt)),Ut=Object(u.a)(Object(u.a)({},Pt.attribute),{},{title:typeof Pt.title=="string"?Pt.title:void 0,className:yt,role:Pt.role||"menuitem","aria-disabled":Pt.disabled});Pt.role==="option"?Ut=Object(u.a)(Object(u.a)({},Ut),{},{role:"option","aria-selected":Pt.isSelected}):(Pt.role===null||Pt.role==="none")&&(Ut.role="none");var pr={onClick:Pt.disabled?null:this.onClick,onMouseLeave:Pt.disabled?null:this.onMouseLeave,onMouseEnter:Pt.disabled?null:this.onMouseEnter},sr=Object(u.a)({},Pt.style);Pt.mode==="inline"&&(Pt.direction==="rtl"?sr.paddingRight=Pt.inlineIndent*Pt.level:sr.paddingLeft=Pt.inlineIndent*Pt.level),$.forEach(function(Yr){return delete Pt[Yr]}),delete Pt.direction;var ir=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ir=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object.assign({},Object(p.default)(Pt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ut,pr,{style:sr,ref:this.saveNode}),Pt.children,ir)}}]),Qt}(r.Component);Ot.isMenuItem=!0,Ot.defaultProps={onSelect:me,onMouseEnter:me,onMouseLeave:me,manualRef:me};var lt=Object(h.b)(function(gt,dt){var Qt=gt.activeKey,Jt=gt.selectedKeys,xt=dt.eventKey,Pt=dt.subMenuKey;return{active:Qt[Pt]===xt,isSelected:Jt.indexOf(xt)!==-1}})(Ot),qe=lt,tr=function(gt){Object(c.a)(Qt,gt);var dt=Object(d.a)(Qt);function Qt(){var Jt;return Object(e.a)(this,Qt),Jt=dt.apply(this,arguments),Jt.renderInnerMenuItem=function(xt){var Pt=Jt.props,yt=Pt.renderMenuItem,Ut=Pt.index;return yt(xt,Ut,Jt.props.subMenuKey)},Jt}return Object(n.a)(Qt,[{key:"render",value:function(){var xt=Object(g.a)({},this.props),Pt=xt.className,yt=Pt===void 0?"":Pt,Ut=xt.rootPrefixCls,pr="".concat(Ut,"-item-group-title"),sr="".concat(Ut,"-item-group-list"),ir=xt.title,Yr=xt.children;return $.forEach(function(Jr){return delete xt[Jr]}),delete xt.onClick,delete xt.direction,r.createElement("li",Object.assign({},xt,{className:"".concat(yt," ").concat(Ut,"-item-group")}),r.createElement("div",{className:pr,title:typeof ir=="string"?ir:void 0},ir),r.createElement("ul",{className:sr},r.Children.map(Yr,this.renderInnerMenuItem)))}}]),Qt}(r.Component);tr.isMenuItemGroup=!0,tr.defaultProps={disabled:!0};var xr=tr,Ar=function(dt){var Qt=dt.className,Jt=dt.rootPrefixCls,xt=dt.style;return r.createElement("li",{className:"".concat(Qt," ").concat(Jt,"-item-divider"),style:xt})};Ar.defaultProps={disabled:!0,className:"",style:{}};var fr=Ar,vn=nr,$r=Object(r.createContext)({inlineCollapsed:!1}),Ln=$r,tt=y("0n0R"),nt=function(gt){t()(Qt,gt);var dt=a()(Qt);function Qt(){return o()(this,Qt),dt.apply(this,arguments)}return f()(Qt,[{key:"renderTitle",value:function(xt){var Pt=this.props,yt=Pt.icon,Ut=Pt.title,pr=Pt.level,sr=Pt.rootPrefixCls;if(!yt)return xt&&pr===1&&Ut&&typeof Ut=="string"?r.createElement("div",{className:"".concat(sr,"-inline-collapsed-noicon")},Ut.charAt(0)):Ut;var ir=Object(tt.b)(Ut)&&Ut.type==="span";return r.createElement(r.Fragment,null,yt,ir?Ut:r.createElement("span",null,Ut))}},{key:"render",value:function(){var xt=this,Pt=this.props,yt=Pt.rootPrefixCls,Ut=Pt.popupClassName;return r.createElement(Ln.Consumer,null,function(pr){var sr=pr.inlineCollapsed,ir=pr.antdMenuTheme;return r.createElement(bt,N()({},Object(p.default)(xt.props,["icon"]),{title:xt.renderTitle(sr),popupClassName:T()(yt,"".concat(yt,"-").concat(ir),Ut)}))})}}]),Qt}(r.Component);nt.contextType=Ln,nt.isSubMenu=1;var Te=nt,Me=y("Zm9Q"),Xe=y("3S7+"),at=y("ZX9x"),zt=function(gt,dt){var Qt={};for(var Jt in gt)Object.prototype.hasOwnProperty.call(gt,Jt)&&dt.indexOf(Jt)<0&&(Qt[Jt]=gt[Jt]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Jt=Object.getOwnPropertySymbols(gt);xt<Jt.length;xt++)dt.indexOf(Jt[xt])<0&&Object.prototype.propertyIsEnumerable.call(gt,Jt[xt])&&(Qt[Jt[xt]]=gt[Jt[xt]]);return Qt},kt=function(gt){t()(Qt,gt);var dt=a()(Qt);function Qt(){var Jt;return o()(this,Qt),Jt=dt.apply(this,arguments),Jt.renderItem=function(xt){var Pt=xt.siderCollapsed,yt=Jt.props,Ut=yt.level,pr=yt.className,sr=yt.children,ir=yt.rootPrefixCls,Yr=Jt.props,Jr=Yr.title,In=Yr.icon,Nn=Yr.danger,zn=zt(Yr,["title","icon","danger"]);return r.createElement(Ln.Consumer,null,function(ei){var Ai,Pi=ei.inlineCollapsed,$e=ei.direction,_e=Jr;typeof Jr=="undefined"?_e=Ut===1?sr:"":Jr===!1&&(_e="");var Be={title:_e};!Pt&&!Pi&&(Be.title=null,Be.visible=!1);var He=Object(Me.a)(sr).length;return r.createElement(Xe.a,N()({},Be,{placement:$e==="rtl"?"left":"right",overlayClassName:"".concat(ir,"-inline-collapsed-tooltip")}),r.createElement(qe,N()({},zn,{className:T()(pr,(Ai={},E()(Ai,"".concat(ir,"-item-danger"),Nn),E()(Ai,"".concat(ir,"-item-only-child"),(In?He+1:He)===1),Ai)),title:Jr}),In,Jt.renderItemChildren(Pi)))})},Jt}return f()(Qt,[{key:"renderItemChildren",value:function(xt){var Pt=this.props,yt=Pt.icon,Ut=Pt.children,pr=Pt.level,sr=Pt.rootPrefixCls;return!yt||Object(tt.b)(Ut)&&Ut.type==="span"?Ut&&xt&&pr===1&&typeof Ut=="string"?r.createElement("div",{className:"".concat(sr,"-inline-collapsed-noicon")},Ut.charAt(0)):Ut:r.createElement("span",null,Ut)}},{key:"render",value:function(){return r.createElement(at.a.Consumer,null,this.renderItem)}}]),Qt}(r.Component);kt.isMenuItem=!0;var Xt=y("H84U"),Dr=y("uaoM"),Pr=y("EXcs"),cn=function(gt){t()(Qt,gt);var dt=a()(Qt);function Qt(Jt){var xt;return o()(this,Qt),xt=dt.call(this,Jt),xt.renderMenu=function(Pt){var yt=Pt.getPopupContainer,Ut=Pt.getPrefixCls,pr=Pt.direction,sr=xt.props,ir=sr.prefixCls,Yr=sr.className,Jr=sr.theme,In={horizontal:{motionName:"slide-up"},inline:Pr.a,other:{motionName:"zoom-big"}},Nn=Ut("menu",ir),zn=T()(Yr,"".concat(Nn,"-").concat(Jr),E()({},"".concat(Nn,"-inline-collapsed"),xt.getInlineCollapsed()));return r.createElement(Ln.Provider,{value:{inlineCollapsed:xt.getInlineCollapsed()||!1,antdMenuTheme:Jr,direction:pr}},r.createElement(vn,N()({getPopupContainer:yt},xt.props,{className:zn,prefixCls:Nn,direction:pr,defaultMotions:In})))},Object(Dr.a)(!("inlineCollapsed"in Jt&&Jt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Dr.a)(!(Jt.siderCollapsed!==void 0&&"inlineCollapsed"in Jt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),xt}return f()(Qt,[{key:"getInlineCollapsed",value:function(){var xt=this.props,Pt=xt.inlineCollapsed,yt=xt.siderCollapsed;return yt!==void 0?yt:Pt}},{key:"render",value:function(){return r.createElement(Xt.a,null,this.renderMenu)}}]),Qt}(r.Component);cn.defaultProps={className:"",theme:"light",focusable:!1};var jt=function(gt){t()(Qt,gt);var dt=a()(Qt);function Qt(){return o()(this,Qt),dt.apply(this,arguments)}return f()(Qt,[{key:"render",value:function(){var xt=this;return r.createElement(at.a.Consumer,null,function(Pt){return r.createElement(cn,N()({},xt.props,Pt))})}}]),Qt}(r.Component);jt.Divider=fr,jt.Item=kt,jt.SubMenu=Te,jt.ItemGroup=xr},C0SR:function(fe,z,y){var D=y("YH21"),N=function(){this._track=[]};N.prototype={constructor:N,recognize:function(f,s,t){return this._doTrack(f,s,t),this._recognize(f)},clear:function(){return this._track.length=0,this},_doTrack:function(f,s,t){var l=f.touches;if(!l)return;for(var a={points:[],touches:[],target:s,event:f},r=0,u=l.length;r<u;r++){var e=l[r],n=D.clientToLocal(t,e,{});a.points.push([n.zrX,n.zrY]),a.touches.push(e)}this._track.push(a)},_recognize:function(f){for(var s in I)if(I.hasOwnProperty(s)){var t=I[s](this._track,f);if(t)return t}}};function L(m){var f=m[1][0]-m[0][0],s=m[1][1]-m[0][1];return Math.sqrt(f*f+s*s)}function E(m){return[(m[0][0]+m[1][0])/2,(m[0][1]+m[1][1])/2]}var I={pinch:function(f,s){var t=f.length;if(!t)return;var l=(f[t-1]||{}).points,a=(f[t-2]||{}).points||l;if(a&&a.length>1&&l&&l.length>1){var r=L(l)/L(a);!isFinite(r)&&(r=1),s.pinchScale=r;var u=E(l);return s.pinchX=u[0],s.pinchY=u[1],{type:"pinch",target:f[0].target,event:s}}}},o=N;fe.exports=o},C0tN:function(fe,z,y){y("0o9m"),y("8Uz6"),y("Ducp"),y("6/nd")},CBdT:function(fe,z,y){var D=y("ProS");y("8waO"),y("AEZ6"),y("YNf1");var N=y("q3GZ");D.registerVisual(N)},CF2D:function(fe,z,y){var D=y("ProS");y("vZI5"),y("GeKi");var N=y("6r85"),L=y("TJmX"),E=y("CbHG");D.registerPreprocessor(N),D.registerVisual(L),D.registerLayout(E)},CFYs:function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("lwsE"),o=y.n(I),m=y("W8MJ"),f=y.n(m),s=y("PJYZ"),t=y.n(s),l=y("7W2i"),a=y.n(l),r=y("LQ03"),u=y.n(r),e=y("q1tI"),n=y.n(e),i=y("TSYQ"),c=y.n(i),d=y("BGR+"),h=y("V/uB"),p=y.n(h),g=y("NAnI"),v=y.n(g),A=y("J84W"),x=y.n(A),b=y("kbBi"),w=y.n(b),S=y("H84U"),T=y("CWQg"),C=y("uaoM"),O=y("Zss7"),_=y.n(O),M=2,k=.16,R=.05,B=.05,P=.15,U=5,j=4,H=[{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 W(kt,Xt,Dr){var Pr;return Math.round(kt.h)>=60&&Math.round(kt.h)<=240?Pr=Dr?Math.round(kt.h)-M*Xt:Math.round(kt.h)+M*Xt:Pr=Dr?Math.round(kt.h)+M*Xt:Math.round(kt.h)-M*Xt,Pr<0?Pr+=360:Pr>=360&&(Pr-=360),Pr}function G(kt,Xt,Dr){if(kt.h===0&&kt.s===0)return kt.s;var Pr;return Dr?Pr=kt.s-k*Xt:Xt===j?Pr=kt.s+k:Pr=kt.s+R*Xt,Pr>1&&(Pr=1),Dr&&Xt===U&&Pr>.1&&(Pr=.1),Pr<.06&&(Pr=.06),Number(Pr.toFixed(2))}function V(kt,Xt,Dr){var Pr;return Dr?Pr=kt.v+B*Xt:Pr=kt.v-P*Xt,Pr>1&&(Pr=1),Number(Pr.toFixed(2))}function Z(kt){for(var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dr=[],Pr=_()(kt),cn=U;cn>0;cn-=1){var jt=Pr.toHsv(),gt=_()({h:W(jt,cn,!0),s:G(jt,cn,!0),v:V(jt,cn,!0)}).toHexString();Dr.push(gt)}Dr.push(Pr.toHexString());for(var dt=1;dt<=j;dt+=1){var Qt=Pr.toHsv(),Jt=_()({h:W(Qt,dt),s:G(Qt,dt),v:V(Qt,dt)}).toHexString();Dr.push(Jt)}return Xt.theme==="dark"?H.map(function(xt){var Pt=xt.index,yt=xt.opacity,Ut=_.a.mix(Xt.backgroundColor||"#141414",Dr[Pt],yt*100).toHexString();return Ut}):Dr}var Y={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"},Q={},oe={};Object.keys(Y).forEach(function(kt){Q[kt]=Z(Y[kt]),Q[kt].primary=Q[kt][5],oe[kt]=Z(Y[kt],{theme:"dark",backgroundColor:"#141414"}),oe[kt].primary=oe[kt][5]});var ue=Q.red,Le=Q.volcano,me=Q.gold,Ie=Q.orange,X=Q.yellow,q=Q.lime,We=Q.green,$=Q.cyan,J=Q.blue,le=Q.geekblue,de=Q.purple,Ne=Q.magenta,we=Q.grey;function De(kt){return!kt||kt<0?0:kt>100?100:kt}function Ee(kt){var Xt=kt.success,Dr=kt.successPercent,Pr=Dr;return Xt&&"progress"in Xt&&(Object(C.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),Pr=Xt.progress),Xt&&"percent"in Xt&&(Pr=Xt.percent),Pr}var ce=function(kt,Xt){var Dr={};for(var Pr in kt)Object.prototype.hasOwnProperty.call(kt,Pr)&&Xt.indexOf(Pr)<0&&(Dr[Pr]=kt[Pr]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Pr=Object.getOwnPropertySymbols(kt);cn<Pr.length;cn++)Xt.indexOf(Pr[cn])<0&&Object.prototype.propertyIsEnumerable.call(kt,Pr[cn])&&(Dr[Pr[cn]]=kt[Pr[cn]]);return Dr},ne=function(Xt){var Dr=[];return Object.keys(Xt).forEach(function(Pr){var cn=parseFloat(Pr.replace(/%/g,""));isNaN(cn)||Dr.push({key:cn,value:Xt[Pr]})}),Dr=Dr.sort(function(Pr,cn){return Pr.key-cn.key}),Dr.map(function(Pr){var cn=Pr.key,jt=Pr.value;return"".concat(jt," ").concat(cn,"%")}).join(", ")},ee=function(Xt){var Dr=Xt.from,Pr=Dr===void 0?Y.blue:Dr,cn=Xt.to,jt=cn===void 0?Y.blue:cn,gt=Xt.direction,dt=gt===void 0?"to right":gt,Qt=ce(Xt,["from","to","direction"]);if(Object.keys(Qt).length!==0){var Jt=ne(Qt);return{backgroundImage:"linear-gradient(".concat(dt,", ").concat(Jt,")")}}return{backgroundImage:"linear-gradient(".concat(dt,", ").concat(Pr,", ").concat(jt,")")}},Ae=function(Xt){var Dr=Xt.prefixCls,Pr=Xt.percent,cn=Xt.strokeWidth,jt=Xt.size,gt=Xt.strokeColor,dt=Xt.strokeLinecap,Qt=Xt.children,Jt=Xt.trailColor,xt=Xt.success,Pt=gt&&typeof gt!="string"?ee(gt):{background:gt},yt=Jt?{backgroundColor:Jt}:void 0,Ut=E()({width:"".concat(De(Pr),"%"),height:cn||(jt==="small"?6:8),borderRadius:dt==="square"?0:""},Pt),pr=Ee(Xt),sr={width:"".concat(De(pr),"%"),height:cn||(jt==="small"?6:8),borderRadius:dt==="square"?0:"",backgroundColor:xt==null?void 0:xt.strokeColor},ir=pr!==void 0?e.createElement("div",{className:"".concat(Dr,"-success-bg"),style:sr}):null;return e.createElement(e.Fragment,null,e.createElement("div",{className:"".concat(Dr,"-outer")},e.createElement("div",{className:"".concat(Dr,"-inner"),style:yt},e.createElement("div",{className:"".concat(Dr,"-bg"),style:Ut}),ir)),Qt)},Ve=Ae,Ke={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Oe=function(Xt){var Dr=Xt.map(function(){return Object(e.useRef)()}),Pr=Object(e.useRef)();return Object(e.useEffect)(function(){var cn=Date.now(),jt=!1;Object.keys(Dr).forEach(function(gt){var dt=Dr[gt].current;if(!dt)return;jt=!0;var Qt=dt.style;Qt.transitionDuration=".3s, .3s, .3s, .06s",Pr.current&&cn-Pr.current<100&&(Qt.transitionDuration="0s, 0s")}),jt&&(Pr.current=Date.now())}),[Dr]};function it(){return it=Object.assign||function(kt){for(var Xt=1;Xt<arguments.length;Xt++){var Dr=arguments[Xt];for(var Pr in Dr)Object.prototype.hasOwnProperty.call(Dr,Pr)&&(kt[Pr]=Dr[Pr])}return kt},it.apply(this,arguments)}function Fe(kt,Xt){return Et(kt)||St(kt,Xt)||At(kt,Xt)||ft()}function ft(){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 At(kt,Xt){if(!kt)return;if(typeof kt=="string")return bt(kt,Xt);var Dr=Object.prototype.toString.call(kt).slice(8,-1);if(Dr==="Object"&&kt.constructor&&(Dr=kt.constructor.name),Dr==="Map"||Dr==="Set")return Array.from(kt);if(Dr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dr))return bt(kt,Xt)}function bt(kt,Xt){(Xt==null||Xt>kt.length)&&(Xt=kt.length);for(var Dr=0,Pr=new Array(Xt);Dr<Xt;Dr++)Pr[Dr]=kt[Dr];return Pr}function St(kt,Xt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(kt)))return;var Dr=[],Pr=!0,cn=!1,jt=void 0;try{for(var gt=kt[Symbol.iterator](),dt;!(Pr=(dt=gt.next()).done)&&!(Dr.push(dt.value),Xt&&Dr.length===Xt);Pr=!0);}catch(Qt){cn=!0,jt=Qt}finally{try{!Pr&>.return!=null&>.return()}finally{if(cn)throw jt}}return Dr}function Et(kt){if(Array.isArray(kt))return kt}function je(kt,Xt){if(kt==null)return{};var Dr=pe(kt,Xt),Pr,cn;if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(kt);for(cn=0;cn<jt.length;cn++){if(Pr=jt[cn],Xt.indexOf(Pr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(kt,Pr))continue;Dr[Pr]=kt[Pr]}}return Dr}function pe(kt,Xt){if(kt==null)return{};var Dr={},Pr=Object.keys(kt),cn,jt;for(jt=0;jt<Pr.length;jt++){if(cn=Pr[jt],Xt.indexOf(cn)>=0)continue;Dr[cn]=kt[cn]}return Dr}var ie=function(Xt){var Dr=Xt.className,Pr=Xt.percent,cn=Xt.prefixCls,jt=Xt.strokeColor,gt=Xt.strokeLinecap,dt=Xt.strokeWidth,Qt=Xt.style,Jt=Xt.trailColor,xt=Xt.trailWidth,Pt=Xt.transition,yt=je(Xt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete yt.gapPosition;var Ut=Array.isArray(Pr)?Pr:[Pr],pr=Array.isArray(jt)?jt:[jt],sr=Oe(Ut),ir=Fe(sr,1),Yr=ir[0],Jr=dt/2,In=100-dt/2,Nn="M ".concat(gt==="round"?Jr:0,",").concat(Jr,`
|
|
|
L `).concat(gt==="round"?In:100,",").concat(Jr),zn="0 0 100 ".concat(dt),ei=0;return n.a.createElement("svg",it({className:c()("".concat(cn,"-line"),Dr),viewBox:zn,preserveAspectRatio:"none",style:Qt},yt),n.a.createElement("path",{className:"".concat(cn,"-line-trail"),d:Nn,strokeLinecap:gt,stroke:Jt,strokeWidth:xt||dt,fillOpacity:"0"}),Ut.map(function(Ai,Pi){var $e={strokeDasharray:"".concat(Ai,"px, 100px"),strokeDashoffset:"-".concat(ei,"px"),transition:Pt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_e=pr[Pi]||pr[pr.length-1];return ei+=Ai,n.a.createElement("path",{key:Pi,className:"".concat(cn,"-line-path"),d:Nn,strokeLinecap:gt,stroke:_e,strokeWidth:dt,fillOpacity:"0",ref:Yr[Pi],style:$e})}))};ie.defaultProps=Ke;var st=ie;function Qe(){return Qe=Object.assign||function(kt){for(var Xt=1;Xt<arguments.length;Xt++){var Dr=arguments[Xt];for(var Pr in Dr)Object.prototype.hasOwnProperty.call(Dr,Pr)&&(kt[Pr]=Dr[Pr])}return kt},Qe.apply(this,arguments)}function ve(kt,Xt){return or(kt)||Wt(kt,Xt)||qt(kt,Xt)||Bt()}function Bt(){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 qt(kt,Xt){if(!kt)return;if(typeof kt=="string")return ct(kt,Xt);var Dr=Object.prototype.toString.call(kt).slice(8,-1);if(Dr==="Object"&&kt.constructor&&(Dr=kt.constructor.name),Dr==="Map"||Dr==="Set")return Array.from(kt);if(Dr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dr))return ct(kt,Xt)}function ct(kt,Xt){(Xt==null||Xt>kt.length)&&(Xt=kt.length);for(var Dr=0,Pr=new Array(Xt);Dr<Xt;Dr++)Pr[Dr]=kt[Dr];return Pr}function Wt(kt,Xt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(kt)))return;var Dr=[],Pr=!0,cn=!1,jt=void 0;try{for(var gt=kt[Symbol.iterator](),dt;!(Pr=(dt=gt.next()).done)&&!(Dr.push(dt.value),Xt&&Dr.length===Xt);Pr=!0);}catch(Qt){cn=!0,jt=Qt}finally{try{!Pr&>.return!=null&>.return()}finally{if(cn)throw jt}}return Dr}function or(kt){if(Array.isArray(kt))return kt}function Fr(kt,Xt){if(kt==null)return{};var Dr=er(kt,Xt),Pr,cn;if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(kt);for(cn=0;cn<jt.length;cn++){if(Pr=jt[cn],Xt.indexOf(Pr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(kt,Pr))continue;Dr[Pr]=kt[Pr]}}return Dr}function er(kt,Xt){if(kt==null)return{};var Dr={},Pr=Object.keys(kt),cn,jt;for(jt=0;jt<Pr.length;jt++){if(cn=Pr[jt],Xt.indexOf(cn)>=0)continue;Dr[cn]=kt[cn]}return Dr}var nr=0;function Ot(kt){return+kt.replace("%","")}function lt(kt){return Array.isArray(kt)?kt:[kt]}function qe(kt,Xt,Dr,Pr){var cn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,jt=arguments.length>5?arguments[5]:void 0,gt=50-Pr/2,dt=0,Qt=-gt,Jt=0,xt=-2*gt;switch(jt){case"left":dt=-gt,Qt=0,Jt=2*gt,xt=0;break;case"right":dt=gt,Qt=0,Jt=-2*gt,xt=0;break;case"bottom":Qt=gt,xt=2*gt;break;default:}var Pt="M 50,50 m ".concat(dt,",").concat(Qt,`
|
|
|
a `).concat(gt,",").concat(gt," 0 1 1 ").concat(Jt,",").concat(-xt,`
|
|
|
a `).concat(gt,",").concat(gt," 0 1 1 ").concat(-Jt,",").concat(xt),yt=Math.PI*2*gt,Ut={stroke:Dr,strokeDasharray:"".concat(Xt/100*(yt-cn),"px ").concat(yt,"px"),strokeDashoffset:"-".concat(cn/2+kt/100*(yt-cn),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Pt,pathStyle:Ut}}var tr=function(Xt){var Dr=Xt.prefixCls,Pr=Xt.strokeWidth,cn=Xt.trailWidth,jt=Xt.gapDegree,gt=Xt.gapPosition,dt=Xt.trailColor,Qt=Xt.strokeLinecap,Jt=Xt.style,xt=Xt.className,Pt=Xt.strokeColor,yt=Xt.percent,Ut=Fr(Xt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),pr=Object(e.useMemo)(function(){return nr+=1,nr},[]),sr=qe(0,100,dt,Pr,jt,gt),ir=sr.pathString,Yr=sr.pathStyle,Jr=lt(yt),In=lt(Pt),Nn=In.find(function($e){return Object.prototype.toString.call($e)==="[object Object]"}),zn=Oe(Jr),ei=ve(zn,1),Ai=ei[0],Pi=function(){var _e=0;return Jr.map(function(Be,He){var Je=In[He]||In[In.length-1],Ye=Object.prototype.toString.call(Je)==="[object Object]"?"url(#".concat(Dr,"-gradient-").concat(pr,")"):"",et=qe(_e,Be,Je,Pr,jt,gt);return _e+=Be,n.a.createElement("path",{key:He,className:"".concat(Dr,"-circle-path"),d:et.pathString,stroke:Ye,strokeLinecap:Qt,strokeWidth:Pr,opacity:Be===0?0:1,fillOpacity:"0",style:et.pathStyle,ref:Ai[He]})})};return n.a.createElement("svg",Qe({className:c()("".concat(Dr,"-circle"),xt),viewBox:"0 0 100 100",style:Jt},Ut),Nn&&n.a.createElement("defs",null,n.a.createElement("linearGradient",{id:"".concat(Dr,"-gradient-").concat(pr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Nn).sort(function($e,_e){return Ot($e)-Ot(_e)}).map(function($e,_e){return n.a.createElement("stop",{key:_e,offset:$e,stopColor:Nn[$e]})}))),n.a.createElement("path",{className:"".concat(Dr,"-circle-trail"),d:ir,stroke:dt,strokeLinecap:Qt,strokeWidth:cn||Pr,fillOpacity:"0",style:Yr}),Pi().reverse())};tr.defaultProps=Ke;var xr=tr,Ar={Line:st,Circle:xr};function fr(kt){var Xt=kt.percent,Dr=kt.success,Pr=kt.successPercent,cn=De(Xt),jt=Ee({success:Dr,successPercent:Pr});return jt?[De(jt),De(cn-De(jt))]:cn}function vn(kt){var Xt=kt.success,Dr=kt.strokeColor,Pr=kt.successPercent,cn=Dr||null,jt=Ee({success:Xt,successPercent:Pr});return jt?[Y.green,cn]:cn}var $r=function(Xt){var Dr=Xt.prefixCls,Pr=Xt.width,cn=Xt.strokeWidth,jt=Xt.trailColor,gt=Xt.strokeLinecap,dt=Xt.gapPosition,Qt=Xt.gapDegree,Jt=Xt.type,xt=Xt.children,Pt=Pr||120,yt={width:Pt,height:Pt,fontSize:Pt*.15+6},Ut=cn||6,pr=dt||Jt==="dashboard"&&"bottom"||"top",sr=function(){return Qt||Qt===0?Qt:Jt==="dashboard"?75:void 0},ir=vn(Xt),Yr=Object.prototype.toString.call(ir)==="[object Object]",Jr=c()("".concat(Dr,"-inner"),N()({},"".concat(Dr,"-circle-gradient"),Yr));return e.createElement("div",{className:Jr,style:yt},e.createElement(xr,{percent:fr(Xt),strokeWidth:Ut,trailWidth:Ut,strokeColor:ir,strokeLinecap:gt,trailColor:jt,prefixCls:Dr,gapDegree:sr(),gapPosition:pr}),xt)},Ln=$r,tt=function(Xt){for(var Dr=Xt.size,Pr=Xt.steps,cn=Xt.percent,jt=cn===void 0?0:cn,gt=Xt.strokeWidth,dt=gt===void 0?8:gt,Qt=Xt.strokeColor,Jt=Xt.trailColor,xt=Xt.prefixCls,Pt=Xt.children,yt=Math.floor(Pr*(jt/100)),Ut=Dr==="small"?2:14,pr=[],sr=0;sr<Pr;sr+=1)pr.push(e.createElement("div",{key:sr,className:c()("".concat(xt,"-steps-item"),N()({},"".concat(xt,"-steps-item-active"),sr<=yt-1)),style:{backgroundColor:sr<=yt-1?Qt:Jt,width:Ut,height:dt}}));return e.createElement("div",{className:"".concat(xt,"-steps-outer")},pr,Pt)},nt=tt,Te=function(kt,Xt){var Dr={};for(var Pr in kt)Object.prototype.hasOwnProperty.call(kt,Pr)&&Xt.indexOf(Pr)<0&&(Dr[Pr]=kt[Pr]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Pr=Object.getOwnPropertySymbols(kt);cn<Pr.length;cn++)Xt.indexOf(Pr[cn])<0&&Object.prototype.propertyIsEnumerable.call(kt,Pr[cn])&&(Dr[Pr[cn]]=kt[Pr[cn]]);return Dr},Me=Object(T.a)("line","circle","dashboard"),Xe=Object(T.a)("normal","exception","active","success"),at=function(kt){a()(Dr,kt);var Xt=u()(Dr);function Dr(){var Pr;return o()(this,Dr),Pr=Xt.apply(this,arguments),Pr.renderProgress=function(cn){var jt,gt=cn.getPrefixCls,dt=cn.direction,Qt=t()(Pr),Jt=Qt.props,xt=Jt.prefixCls,Pt=Jt.className,yt=Jt.size,Ut=Jt.type,pr=Jt.steps,sr=Jt.showInfo,ir=Jt.strokeColor,Yr=Te(Jt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),Jr=gt("progress",xt),In=Pr.getProgressStatus(),Nn=Pr.renderProcessInfo(Jr,In);Object(C.a)(!("successPercent"in Jt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var zn;Ut==="line"?zn=pr?e.createElement(nt,E()({},Pr.props,{strokeColor:typeof ir=="string"?ir:void 0,prefixCls:Jr,steps:pr}),Nn):e.createElement(Ve,E()({},Pr.props,{prefixCls:Jr}),Nn):(Ut==="circle"||Ut==="dashboard")&&(zn=e.createElement(Ln,E()({},Pr.props,{prefixCls:Jr,progressStatus:In}),Nn));var ei=c()(Jr,(jt={},N()(jt,"".concat(Jr,"-").concat(Ut==="dashboard"&&"circle"||pr&&"steps"||Ut),!0),N()(jt,"".concat(Jr,"-status-").concat(In),!0),N()(jt,"".concat(Jr,"-show-info"),sr),N()(jt,"".concat(Jr,"-").concat(yt),yt),N()(jt,"".concat(Jr,"-rtl"),dt==="rtl"),jt),Pt);return e.createElement("div",E()({},Object(d.default)(Yr,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:ei}),zn)},Pr}return f()(Dr,[{key:"getPercentNumber",value:function(){var cn=this.props.percent,jt=cn===void 0?0:cn,gt=Ee(this.props);return parseInt(gt!==void 0?gt.toString():jt.toString(),10)}},{key:"getProgressStatus",value:function(){var cn=this.props.status;return Xe.indexOf(cn)<0&&this.getPercentNumber()>=100?"success":cn||"normal"}},{key:"renderProcessInfo",value:function(cn,jt){var gt=this.props,dt=gt.showInfo,Qt=gt.format,Jt=gt.type,xt=gt.percent,Pt=Ee(this.props);if(!dt)return null;var yt,Ut=Qt||function(sr){return"".concat(sr,"%")},pr=Jt==="line";return Qt||jt!=="exception"&&jt!=="success"?yt=Ut(De(xt),De(Pt)):jt==="exception"?yt=pr?e.createElement(w.a,null):e.createElement(p.a,null):jt==="success"&&(yt=pr?e.createElement(x.a,null):e.createElement(v.a,null)),e.createElement("span",{className:"".concat(cn,"-text"),title:typeof yt=="string"?yt:void 0},yt)}},{key:"render",value:function(){return e.createElement(S.a,null,this.renderProgress)}}]),Dr}(e.Component);at.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var zt=z.a=at},"CMP+":function(fe,z,y){var D=y("bYtY"),N=y("hM6l"),L=function(I,o,m,f){N.call(this,I,o,m),this.type=f||"value",this.model=null};L.prototype={constructor:L,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},D.inherits(L,N);var E=L;fe.exports=E},CP8R:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},"CWI+":function(fe,z,y){},CbHG:function(fe,z,y){var D=y("IwbS"),N=D.subPixelOptimize,L=y("zM3Q"),E=y("OELB"),I=E.parsePercent,o=y("bYtY"),m=o.retrieve2,f=typeof Float32Array!="undefined"?Float32Array:Array,s={seriesType:"candlestick",plan:L(),reset:function(a){var r=a.coordinateSystem,u=a.getData(),e=l(a,u),n=0,i=1,c=["x","y"],d=u.mapDimension(c[n]),h=u.mapDimension(c[i],!0),p=h[0],g=h[1],v=h[2],A=h[3];if(u.setLayout({candleWidth:e,isSimpleBox:e<=1.3}),d==null||h.length<4)return;return{progress:a.pipelineContext.large?b:x};function x(w,S){for(var T;(T=w.next())!=null;){var C=S.get(d,T),O=S.get(p,T),_=S.get(g,T),M=S.get(v,T),k=S.get(A,T),R=Math.min(O,_),B=Math.max(O,_),P=G(R,C),U=G(B,C),j=G(M,C),H=G(k,C),W=[];V(W,U,0),V(W,P,1),W.push(Y(H),Y(U),Y(j),Y(P)),S.setItemLayout(T,{sign:t(S,T,O,_,g),initBaseline:O>_?U[i]:P[i],ends:W,brushRect:Z(M,k,C)})}function G(Q,oe){var ue=[];return ue[n]=oe,ue[i]=Q,isNaN(oe)||isNaN(Q)?[NaN,NaN]:r.dataToPoint(ue)}function V(Q,oe,ue){var Le=oe.slice(),me=oe.slice();Le[n]=N(Le[n]+e/2,1,!1),me[n]=N(me[n]-e/2,1,!0),ue?Q.push(Le,me):Q.push(me,Le)}function Z(Q,oe,ue){var Le=G(Q,ue),me=G(oe,ue);return Le[n]-=e/2,me[n]-=e/2,{x:Le[0],y:Le[1],width:i?e:me[0]-Le[0],height:i?me[1]-Le[1]:e}}function Y(Q){return Q[n]=N(Q[n],1),Q}}function b(w,S){for(var T=new f(w.count*4),C=0,O,_=[],M=[],k;(k=w.next())!=null;){var R=S.get(d,k),B=S.get(p,k),P=S.get(g,k),U=S.get(v,k),j=S.get(A,k);if(isNaN(R)||isNaN(U)||isNaN(j)){T[C++]=NaN,C+=3;continue}T[C++]=t(S,k,B,P,g),_[n]=R,_[i]=U,O=r.dataToPoint(_,null,M),T[C++]=O?O[0]:NaN,T[C++]=O?O[1]:NaN,_[i]=j,O=r.dataToPoint(_,null,M),T[C++]=O?O[1]:NaN}S.setLayout("largePoints",T)}}};function t(a,r,u,e,n){var i;return u>e?i=-1:u<e?i=1:i=r>0?a.get(n,r-1)<=e?1:-1:1,i}function l(a,r){var u=a.getBaseAxis(),e,n=u.type==="category"?u.getBandWidth():(e=u.getExtent(),Math.abs(e[1]-e[0])/r.count()),i=I(m(a.get("barMaxWidth"),n),n),c=I(m(a.get("barMinWidth"),1),n),d=a.get("barWidth");return d!=null?I(d,n):Math.max(Math.min(n/2,i),c)}fe.exports=s},CiB2:function(fe,z,y){"use strict";y.d(z,"a",function(){return D});function D(N){if(N==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(fe,z,y){y("5NHt"),y("f3JH")},CrYA:function(fe,z,y){var D=y("MFOe"),N=D.Global;fe.exports={name:"sessionStorage",read:E,write:I,each:o,remove:m,clearAll:f};function L(){return N.sessionStorage}function E(s){return L().getItem(s)}function I(s,t){return L().setItem(s,t)}function o(s){for(var t=L().length-1;t>=0;t--){var l=L().key(t);s(E(l),l)}}function m(s){return L().removeItem(s)}function f(){return L().clear()}},Csr3:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("4vCz"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},D1Df:function(fe,z,y){"use strict";function D(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(k){return typeof k}:D=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},D(_)}function N(){return N=Object.assign||function(_){for(var M=1;M<arguments.length;M++){var k=arguments[M];for(var R in k)Object.prototype.hasOwnProperty.call(k,R)&&(_[R]=k[R])}return _},N.apply(this,arguments)}function L(_,M){var k=Object.keys(_);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(_);M&&(R=R.filter(function(B){return Object.getOwnPropertyDescriptor(_,B).enumerable})),k.push.apply(k,R)}return k}function E(_){for(var M=1;M<arguments.length;M++){var k=arguments[M]!=null?arguments[M]:{};M%2?L(k,!0).forEach(function(R){e(_,R,k[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(k)):L(k).forEach(function(R){Object.defineProperty(_,R,Object.getOwnPropertyDescriptor(k,R))})}return _}function I(_,M){if(_==null)return{};var k=o(_,M),R,B;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(_);for(B=0;B<P.length;B++){if(R=P[B],M.indexOf(R)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(_,R))continue;k[R]=_[R]}}return k}function o(_,M){if(_==null)return{};var k={},R=Object.keys(_),B,P;for(P=0;P<R.length;P++){if(B=R[P],M.indexOf(B)>=0)continue;k[B]=_[B]}return k}function m(_,M){if(!(_ instanceof M))throw new TypeError("Cannot call a class as a function")}function f(_,M){for(var k=0;k<M.length;k++){var R=M[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(_,R.key,R)}}function s(_,M,k){return M&&f(_.prototype,M),k&&f(_,k),_}function t(_,M){return M&&(D(M)==="object"||typeof M=="function")?M:a(_)}function l(_){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},l(_)}function a(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function r(_,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(M&&M.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),M&&u(_,M)}function u(_,M){return u=Object.setPrototypeOf||function(R,B){return R.__proto__=B,R},u(_,M)}function e(_,M,k){return M in _?Object.defineProperty(_,M,{value:k,enumerable:!0,configurable:!0,writable:!0}):_[M]=k,_}var n=y("q1tI"),i=y("17x9"),c=y("H38U"),d=y("aRTE");function h(_){for(var M="",k=0;k<_.length;k++){var R=_.charCodeAt(k);R<128?M+=String.fromCharCode(R):R<2048?(M+=String.fromCharCode(192|R>>6),M+=String.fromCharCode(128|R&63)):R<55296||R>=57344?(M+=String.fromCharCode(224|R>>12),M+=String.fromCharCode(128|R>>6&63),M+=String.fromCharCode(128|R&63)):(k++,R=65536+((R&1023)<<10|_.charCodeAt(k)&1023),M+=String.fromCharCode(240|R>>18),M+=String.fromCharCode(128|R>>12&63),M+=String.fromCharCode(128|R>>6&63),M+=String.fromCharCode(128|R&63))}return M}var p={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},g={},v=4,A=.1;function x(_){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=[];return _.forEach(function(R,B){var P=null;R.forEach(function(U,j){if(!U&&P!==null){k.push("M".concat(P+M," ").concat(B+M,"h").concat(j-P,"v1H").concat(P+M,"z")),P=null;return}if(j===R.length-1){if(!U)return;P===null?k.push("M".concat(j+M,",").concat(B+M," h1v1H").concat(j+M,"z")):k.push("M".concat(P+M,",").concat(B+M," h").concat(j+1-P,"v1H").concat(P+M,"z"));return}U&&P===null&&(P=j)})}),k.join("")}function b(_,M){return _.slice().map(function(k,R){return R<M.y||R>=M.y+M.h?k:k.map(function(B,P){return P<M.x||P>=M.x+M.w?B:!1})})}function w(_,M){var k=_.imageSettings,R=_.size,B=_.includeMargin;if(k==null)return null;var P=B?v:0,U=M.length+P*2,j=Math.floor(R*A),H=U/R,W=(k.width||j)*H,G=(k.height||j)*H,V=k.x==null?M.length/2-W/2:k.x*H,Z=k.y==null?M.length/2-G/2:k.y*H,Y=null;if(k.excavate){var Q=Math.floor(V),oe=Math.floor(Z),ue=Math.ceil(W+V-Q),Le=Math.ceil(G+Z-oe);Y={x:Q,y:oe,w:ue,h:Le}}return{x:V,y:Z,h:G,w:W,excavation:Y}}var S=function(){try{new Path2D().addPath(new Path2D)}catch(_){return!1}return!0}(),T=function(_){r(M,_);function M(){var k,R;m(this,M);for(var B=arguments.length,P=new Array(B),U=0;U<B;U++)P[U]=arguments[U];return R=t(this,(k=l(M)).call.apply(k,[this].concat(P))),e(a(R),"_canvas",void 0),e(a(R),"_image",void 0),e(a(R),"state",{imgLoaded:!1}),e(a(R),"handleImageLoad",function(){R.setState({imgLoaded:!0})}),R}return s(M,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var R=this.props,B=R.value,P=R.size,U=R.level,j=R.bgColor,H=R.fgColor,W=R.includeMargin,G=R.imageSettings,V=new c(-1,d[U]);if(V.addData(h(B)),V.make(),this._canvas!=null){var Z=this._canvas,Y=Z.getContext("2d");if(!Y)return;var Q=V.modules;if(Q===null)return;var oe=W?v:0,ue=Q.length+oe*2,Le=w(this.props,Q);G!=null&&Le!=null&&(Le.excavation!=null&&(Q=b(Q,Le.excavation)));var me=window.devicePixelRatio||1;Z.height=Z.width=P*me;var Ie=P/ue*me;Y.scale(Ie,Ie),Y.fillStyle=j,Y.fillRect(0,0,ue,ue),Y.fillStyle=H,S?Y.fill(new Path2D(x(Q,oe))):Q.forEach(function(X,q){X.forEach(function(We,$){We&&Y.fillRect($+oe,q+oe,1,1)})}),this.state.imgLoaded&&this._image&&Le!=null&&Y.drawImage(this._image,Le.x+oe,Le.y+oe,Le.w,Le.h)}}},{key:"render",value:function(){var R=this,B=this.props,P=B.value,U=B.size,j=B.level,H=B.bgColor,W=B.fgColor,G=B.style,V=B.includeMargin,Z=B.imageSettings,Y=I(B,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),Q=E({height:U,width:U},G),oe=null,ue=Z&&Z.src;return Z!=null&&ue!=null&&(oe=n.createElement("img",{src:ue,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(me){return R._image=me}})),n.createElement(n.Fragment,null,n.createElement("canvas",N({style:Q,height:U,width:U,ref:function(me){return R._canvas=me}},Y)),oe)}}]),M}(n.PureComponent);e(T,"defaultProps",p);var C=function(_){r(M,_);function M(){return m(this,M),t(this,l(M).apply(this,arguments))}return s(M,[{key:"render",value:function(){var R=this.props,B=R.value,P=R.size,U=R.level,j=R.bgColor,H=R.fgColor,W=R.includeMargin,G=R.imageSettings,V=I(R,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),Z=new c(-1,d[U]);Z.addData(h(B)),Z.make();var Y=Z.modules;if(Y===null)return null;var Q=W?v:0,oe=Y.length+Q*2,ue=w(this.props,Y),Le=null;G!=null&&ue!=null&&(ue.excavation!=null&&(Y=b(Y,ue.excavation)),Le=n.createElement("image",{xlinkHref:G.src,height:ue.h,width:ue.w,x:ue.x+Q,y:ue.y+Q,preserveAspectRatio:"none"}));var me=x(Y,Q);return n.createElement("svg",N({shapeRendering:"crispEdges",height:P,width:P,viewBox:"0 0 ".concat(oe," ").concat(oe)},V),n.createElement("path",{fill:j,d:"M0,0 h".concat(oe,"v").concat(oe,"H0z")}),n.createElement("path",{fill:H,d:me}),Le)}}]),M}(n.PureComponent);e(C,"defaultProps",p);var O=function(M){var k=M.renderAs,R=I(M,["renderAs"]),B=k==="svg"?C:T;return n.createElement(B,R)};O.defaultProps=E({renderAs:"canvas"},p),fe.exports=O},D1WM:function(fe,z,y){var D=y("bYtY"),N=y("hM6l"),L=function(I,o,m,f,s){N.call(this,I,o,m),this.type=f||"value",this.axisIndex=s};L.prototype={constructor:L,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},D.inherits(L,N);var E=L;fe.exports=E},D5nY:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("4NO4"),E=L.makeInner,I=L.getDataItemValue,o=y("bYtY"),m=o.createHashMap,f=o.each,s=o.map,t=o.isArray,l=o.isString,a=o.isObject,r=o.isTypedArray,u=o.isArrayLike,e=o.extend,n=o.assert,i=y("7G+c"),c=y("k9D9"),d=c.SOURCE_FORMAT_ORIGINAL,h=c.SOURCE_FORMAT_ARRAY_ROWS,p=c.SOURCE_FORMAT_OBJECT_ROWS,g=c.SOURCE_FORMAT_KEYED_COLUMNS,v=c.SOURCE_FORMAT_UNKNOWN,A=c.SOURCE_FORMAT_TYPED_ARRAY,x=c.SERIES_LAYOUT_BY_ROW,b={Must:1,Might:2,Not:3},w=E();function S(W){var G=W.option.source,V=v;if(r(G))V=A;else if(t(G)){G.length===0&&(V=h);for(var Z=0,Y=G.length;Z<Y;Z++){var Q=G[Z];if(Q==null)continue;if(t(Q)){V=h;break}else if(a(Q)){V=p;break}}}else if(a(G)){for(var oe in G)if(G.hasOwnProperty(oe)&&u(G[oe])){V=g;break}}else if(G!=null)throw new Error("Invalid data");w(W).sourceFormat=V}function T(W){return w(W).source}function C(W){w(W).datasetMap=m()}function O(W){var G=W.option,V=G.data,Z=r(V)?A:d,Y=!1,Q=G.seriesLayoutBy,oe=G.sourceHeader,ue=G.dimensions,Le=U(W);if(Le){var me=Le.option;V=me.source,Z=w(Le).sourceFormat,Y=!0,Q=Q||me.seriesLayoutBy,oe==null&&(oe=me.sourceHeader),ue=ue||me.dimensions}var Ie=_(V,Z,Q,oe,ue);w(W).source=new i({data:V,fromDataset:Y,seriesLayoutBy:Q,sourceFormat:Z,dimensionsDefine:Ie.dimensionsDefine,startIndex:Ie.startIndex,dimensionsDetectCount:Ie.dimensionsDetectCount,encodeDefine:G.encode})}function _(W,G,V,Z,Y){if(!W)return{dimensionsDefine:M(Y)};var Q,oe;if(G===h)Z==="auto"||Z==null?k(function(Le){Le!=null&&Le!=="-"&&(l(Le)?oe==null&&(oe=1):oe=0)},V,W,10):oe=Z?1:0,!Y&&oe===1&&(Y=[],k(function(Le,me){Y[me]=Le!=null?Le:""},V,W)),Q=Y?Y.length:V===x?W.length:W[0]?W[0].length:null;else if(G===p)Y||(Y=R(W));else if(G===g)Y||(Y=[],f(W,function(Le,me){Y.push(me)}));else if(G===d){var ue=I(W[0]);Q=t(ue)&&ue.length||1}else G===A;return{startIndex:oe,dimensionsDefine:M(Y),dimensionsDetectCount:Q}}function M(W){if(!W)return;var G=m();return s(W,function(V,Z){if(V=e({},a(V)?V:{name:V}),V.name==null)return V;V.name+="",V.displayName==null&&(V.displayName=V.name);var Y=G.get(V.name);return Y?V.name+="-"+Y.count++:G.set(V.name,{count:1}),V})}function k(W,G,V,Z){if(Z==null&&(Z=Infinity),G===x)for(var Y=0;Y<V.length&&Y<Z;Y++)W(V[Y]?V[Y][0]:null,Y);else for(var Q=V[0]||[],Y=0;Y<Q.length&&Y<Z;Y++)W(Q[Y],Y)}function R(W){for(var G=0,V;G<W.length&&!(V=W[G++]););if(V){var Z=[];return f(V,function(Y,Q){Z.push(Q)}),Z}}function B(W,G,V){var Z={},Y=U(G);if(!Y||!W)return Z;var Q=[],oe=[],ue=G.ecModel,Le=w(ue).datasetMap,me=Y.uid+"_"+V.seriesLayoutBy,Ie,X;W=W.slice(),f(W,function(J,le){!a(J)&&(W[le]={name:J}),J.type==="ordinal"&&Ie==null&&(Ie=le,X=$(W[le])),Z[J.name]=[]});var q=Le.get(me)||Le.set(me,{categoryWayDim:X,valueWayDim:0});f(W,function(J,le){var de=J.name,Ne=$(J);if(Ie==null){var we=q.valueWayDim;We(Z[de],we,Ne),We(oe,we,Ne),q.valueWayDim+=Ne}else if(Ie===le)We(Z[de],0,Ne),We(Q,0,Ne);else{var we=q.categoryWayDim;We(Z[de],we,Ne),We(oe,we,Ne),q.categoryWayDim+=Ne}});function We(J,le,de){for(var Ne=0;Ne<de;Ne++)J.push(le+Ne)}function $(J){var le=J.dimsDef;return le?le.length:1}return Q.length&&(Z.itemName=Q),oe.length&&(Z.seriesName=oe),Z}function P(W,G,V){var Z={},Y=U(W);if(!Y)return Z;var Q=G.sourceFormat,oe=G.dimensionsDefine,ue;(Q===p||Q===g)&&f(oe,function(Ie,X){(a(Ie)?Ie.name:Ie)==="name"&&(ue=X)});var Le=function(){for(var Ie={},X={},q=[],We=0,$=Math.min(5,V);We<$;We++){var J=H(G.data,Q,G.seriesLayoutBy,oe,G.startIndex,We);q.push(J);var le=J===b.Not;if(le&&Ie.v==null&&We!==ue&&(Ie.v=We),(Ie.n==null||Ie.n===Ie.v||!le&&q[Ie.n]===b.Not)&&(Ie.n=We),de(Ie)&&q[Ie.n]!==b.Not)return Ie;le||(J===b.Might&&X.v==null&&We!==ue&&(X.v=We),(X.n==null||X.n===X.v)&&(X.n=We))}function de(Ne){return Ne.v!=null&&Ne.n!=null}return de(Ie)?Ie:de(X)?X:null}();if(Le){Z.value=Le.v;var me=ue!=null?ue:Le.n;Z.itemName=[me],Z.seriesName=[me]}return Z}function U(W){var G=W.option,V=G.data;if(!V)return W.ecModel.getComponent("dataset",G.datasetIndex||0)}function j(W,G){return H(W.data,W.sourceFormat,W.seriesLayoutBy,W.dimensionsDefine,W.startIndex,G)}function H(W,G,V,Z,Y,Q){var oe,ue=5;if(r(W))return b.Not;var Le,me;if(Z){var Ie=Z[Q];a(Ie)?(Le=Ie.name,me=Ie.type):l(Ie)&&(Le=Ie)}if(me!=null)return me==="ordinal"?b.Must:b.Not;if(G===h)if(V===x){for(var X=W[Q],q=0;q<(X||[]).length&&q<ue;q++)if((oe=le(X[Y+q]))!=null)return oe}else for(var q=0;q<W.length&&q<ue;q++){var We=W[Y+q];if(We&&(oe=le(We[Q]))!=null)return oe}else if(G===p){if(!Le)return b.Not;for(var q=0;q<W.length&&q<ue;q++){var $=W[q];if($&&(oe=le($[Le]))!=null)return oe}}else if(G===g){if(!Le)return b.Not;var X=W[Le];if(!X||r(X))return b.Not;for(var q=0;q<X.length&&q<ue;q++)if((oe=le(X[q]))!=null)return oe}else if(G===d)for(var q=0;q<W.length&&q<ue;q++){var $=W[q],J=I($);if(!t(J))return b.Not;if((oe=le(J[Q]))!=null)return oe}function le(de){var Ne=l(de);if(de!=null&&isFinite(de)&&de!=="")return Ne?b.Might:b.Not;if(Ne&&de!=="-")return b.Must}return b.Not}z.BE_ORDINAL=b,z.detectSourceFormat=S,z.getSource=T,z.resetSourceDefaulter=C,z.prepareSource=O,z.makeSeriesEncodeForAxisCoordSys=B,z.makeSeriesEncodeForNameBased=P,z.guessOrdinal=j},D9ME:function(fe,z,y){var D=y("IwbS"),N=y("fls0"),L=y("bYtY"),E=y("oVpE"),I=E.createSymbol,o=y("QBsz"),m=y("Sj9i");function f(l,a,r){D.Group.call(this),this.add(this.createLine(l,a,r)),this._updateEffectSymbol(l,a)}var s=f.prototype;s.createLine=function(l,a,r){return new N(l,a,r)},s._updateEffectSymbol=function(l,a){var r=l.getItemModel(a),u=r.getModel("effect"),e=u.get("symbolSize"),n=u.get("symbol");L.isArray(e)||(e=[e,e]);var i=u.get("color")||l.getItemVisual(a,"color"),c=this.childAt(1);if(this._symbolType!==n&&(this.remove(c),c=I(n,-.5,-.5,1,1,i),c.z2=100,c.culling=!0,this.add(c)),!c)return;c.setStyle("shadowColor",i),c.setStyle(u.getItemStyle(["color"])),c.attr("scale",e),c.setColor(i),c.attr("scale",e),this._symbolType=n,this._symbolScale=e,this._updateEffectAnimation(l,u,a)},s._updateEffectAnimation=function(l,a,r){var u=this.childAt(1);if(!u)return;var e=this,n=l.getItemLayout(r),i=a.get("period")*1e3,c=a.get("loop"),d=a.get("constantSpeed"),h=L.retrieve(a.get("delay"),function(A){return A/l.count()*i/3}),p=typeof h=="function";if(u.ignore=!0,this.updateAnimationPoints(u,n),d>0&&(i=this.getLineLength(u)/d*1e3),i!==this._period||c!==this._loop){u.stopAnimation();var g=h;p&&(g=h(r)),u.__t>0&&(g=-i*u.__t),u.__t=0;var v=u.animate("",c).when(i,{__t:1}).delay(g).during(function(){e.updateSymbolPosition(u)});c||v.done(function(){e.remove(u)}),v.start()}this._period=i,this._loop=c},s.getLineLength=function(l){return o.dist(l.__p1,l.__cp1)+o.dist(l.__cp1,l.__p2)},s.updateAnimationPoints=function(l,a){l.__p1=a[0],l.__p2=a[1],l.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},s.updateData=function(l,a,r){this.childAt(0).updateData(l,a,r),this._updateEffectSymbol(l,a)},s.updateSymbolPosition=function(l){var a=l.__p1,r=l.__p2,u=l.__cp1,e=l.__t,n=l.position,i=[n[0],n[1]],c=m.quadraticAt,d=m.quadraticDerivativeAt;n[0]=c(a[0],u[0],r[0],e),n[1]=c(a[1],u[1],r[1],e);var h=d(a[0],u[0],r[0],e),p=d(a[1],u[1],r[1],e);if(l.rotation=-Math.atan2(p,h)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(l.__lastT!==void 0&&l.__lastT<l.__t){var g=o.dist(i,n)*1.05;l.attr("scale",[l.scale[0],g]),e===1&&(n[0]=i[0]+(n[0]-i[0])/2,n[1]=i[1]+(n[1]-i[1])/2)}else if(l.__lastT===1){var g=2*o.dist(a,n);l.attr("scale",[l.scale[0],g])}else l.attr("scale",this._symbolScale);l.__lastT=l.__t,l.ignore=!1},s.updateLayout=function(l,a){this.childAt(0).updateLayout(l,a);var r=l.getItemModel(a).getModel("effect");this._updateEffectAnimation(l,r,a)},L.inherits(f,D.Group);var t=f;fe.exports=t},DBLp:function(fe,z){function y(){}y.prototype={diff:function(o,m,f){f||(f=function(p,g){return p===g}),this.equals=f;var s=this;o=o.slice(),m=m.slice();var t=m.length,l=o.length,a=1,r=t+l,u=[{newPos:-1,components:[]}],e=this.extractCommon(u[0],m,o,0);if(u[0].newPos+1>=t&&e+1>=l){for(var n=[],i=0;i<m.length;i++)n.push(i);return[{indices:n,count:m.length}]}function c(){for(var h=-1*a;h<=a;h+=2){var p,g=u[h-1],v=u[h+1],A=(v?v.newPos:0)-h;g&&(u[h-1]=void 0);var x=g&&g.newPos+1<t,b=v&&0<=A&&A<l;if(!x&&!b){u[h]=void 0;continue}if(!x||b&&g.newPos<v.newPos?(p=N(v),s.pushComponent(p.components,void 0,!0)):(p=g,p.newPos++,s.pushComponent(p.components,!0,void 0)),A=s.extractCommon(p,m,o,h),p.newPos+1>=t&&A+1>=l)return D(s,p.components,m,o);u[h]=p}a++}for(;a<=r;){var d=c();if(d)return d}},pushComponent:function(o,m,f){var s=o[o.length-1];s&&s.added===m&&s.removed===f?o[o.length-1]={count:s.count+1,added:m,removed:f}:o.push({count:1,added:m,removed:f})},extractCommon:function(o,m,f,s){for(var t=m.length,l=f.length,a=o.newPos,r=a-s,u=0;a+1<t&&r+1<l&&this.equals(m[a+1],f[r+1]);)a++,r++,u++;return u&&o.components.push({count:u}),o.newPos=a,r},tokenize:function(o){return o.slice()},join:function(o){return o.slice()}};function D(I,o,m,f){for(var s=0,t=o.length,l=0,a=0;s<t;s++){var r=o[s];if(r.removed){for(var u=[],e=a;e<a+r.count;e++)u.push(e);r.indices=u,a+=r.count}else{for(var u=[],e=l;e<l+r.count;e++)u.push(e);r.indices=u,l+=r.count,r.added||(a+=r.count)}}return o}function N(I){return{newPos:I.newPos,components:I.components.slice(0)}}var L=new y;function E(I,o,m){return L.diff(I,o,m)}fe.exports=E},DEFe:function(fe,z,y){var D=y("bYtY"),N=y("SgGq"),L=y("Ae+d"),E=y("xSat"),I=E.onIrrelevantElement,o=y("IwbS"),m=y("W4dC"),f=y("iRjW"),s=f.getUID,t=y("DN4a");function l(n){var i=n.getItemStyle(),c=n.get("areaColor");return c!=null&&(i.fill=c),i}function a(n,i,c,d,h){c.off("click"),c.off("mousedown"),i.get("selectedMode")&&(c.on("mousedown",function(){n._mouseDownFlag=!0}),c.on("click",function(p){if(!n._mouseDownFlag)return;n._mouseDownFlag=!1;for(var g=p.target;!g.__regions;)g=g.parent;if(!g)return;var v={type:(i.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:D.map(g.__regions,function(A){return{name:A.name,from:h.uid}})};v[i.mainType+"Id"]=i.id,d.dispatchAction(v),r(i,c)}))}function r(n,i){i.eachChild(function(c){D.each(c.__regions,function(d){c.trigger(n.isSelected(d.name)?"emphasis":"normal")})})}function u(n,i){var c=new o.Group;this.uid=s("ec_map_draw"),this._controller=new N(n.getZr()),this._controllerHost={target:i?c:null},this.group=c,this._updateGroup=i,this._mouseDownFlag,this._mapName,this._initialized,c.add(this._regionsGroup=new o.Group),c.add(this._backgroundGroup=new o.Group)}u.prototype={constructor:u,draw:function(n,i,c,d,h){var p=n.mainType==="geo",g=n.getData&&n.getData();p&&i.eachComponent({mainType:"series",subType:"map"},function(U){!g&&U.getHostGeoModel()===n&&(g=U.getData())});var v=n.coordinateSystem;this._updateBackground(v);var A=this._regionsGroup,x=this.group,b=v.getTransformInfo(),w=!A.childAt(0)||h,S;if(w)x.transform=b.roamTransform,x.decomposeTransform(),x.dirty();else{var T=new t;T.transform=b.roamTransform,T.decomposeTransform();var C={scale:T.scale,position:T.position};S=T.scale,o.updateProps(x,C,n)}var O=b.rawScale,_=b.rawPosition;A.removeAll();var M=["itemStyle"],k=["emphasis","itemStyle"],R=["label"],B=["emphasis","label"],P=D.createHashMap();D.each(v.regions,function(U){var j=P.get(U.name)||P.set(U.name,new o.Group),H=new o.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});j.add(H);var W=n.getRegionModel(U.name)||n,G=W.getModel(M),V=W.getModel(k),Z=l(G),Y=l(V),Q=W.getModel(R),oe=W.getModel(B),ue;if(g){ue=g.indexOfName(U.name);var Le=g.getItemVisual(ue,"color",!0);Le&&(Z.fill=Le)}var me=function(we){return[we[0]*O[0]+_[0],we[1]*O[1]+_[1]]};D.each(U.geometries,function(we){if(we.type!=="polygon")return;for(var De=[],Ee=0;Ee<we.exterior.length;++Ee)De.push(me(we.exterior[Ee]));H.shape.paths.push(new o.Polygon({segmentIgnoreThreshold:1,shape:{points:De}}));for(var Ee=0;Ee<(we.interiors?we.interiors.length:0);++Ee){for(var ce=we.interiors[Ee],De=[],ne=0;ne<ce.length;++ne)De.push(me(ce[ne]));H.shape.paths.push(new o.Polygon({segmentIgnoreThreshold:1,shape:{points:De}}))}}),H.setStyle(Z),H.style.strokeNoScale=!0,H.culling=!0;var Ie=Q.get("show"),X=oe.get("show"),q=g&&isNaN(g.get(g.mapDimension("value"),ue)),We=g&&g.getItemLayout(ue);if(p||q&&(Ie||X)||We&&We.showLabel){var $=p?U.name:ue,J;(!g||ue>=0)&&(J=n);var le=new o.Text({position:me(U.center.slice()),scale:[1/x.scale[0],1/x.scale[1]],z2:10,silent:!0});if(o.setLabelStyle(le.style,le.hoverStyle={},Q,oe,{labelFetcher:J,labelDataIndex:$,defaultText:U.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!w){var de=[1/S[0],1/S[1]];o.updateProps(le,{scale:de},n)}j.add(le)}if(g)g.setItemGraphicEl(ue,j);else{var W=n.getRegionModel(U.name);H.eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:U.name,region:W&&W.option||{}}}var Ne=j.__regions||(j.__regions=[]);Ne.push(U),j.highDownSilentOnTouch=!!n.get("selectedMode"),o.setHoverStyle(j,Y),A.add(j)}),this._updateController(n,i,c),a(this,n,A,c,d),r(n,A)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&m.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(n){var i=n.map;this._mapName!==i&&D.each(m.makeGraphic(i,this.uid),function(c){this._backgroundGroup.add(c)},this),this._mapName=i},_updateController:function(n,i,c){var d=n.coordinateSystem,h=this._controller,p=this._controllerHost;p.zoomLimit=n.get("scaleLimit"),p.zoom=d.getZoom(),h.enable(n.get("roam")||!1);var g=n.mainType;function v(){var A={type:"geoRoam",componentType:g};return A[g+"Id"]=n.id,A}h.off("pan").on("pan",function(A){this._mouseDownFlag=!1,L.updateViewOnPan(p,A.dx,A.dy),c.dispatchAction(D.extend(v(),{dx:A.dx,dy:A.dy}))},this),h.off("zoom").on("zoom",function(A){if(this._mouseDownFlag=!1,L.updateViewOnZoom(p,A.scale,A.originX,A.originY),c.dispatchAction(D.extend(v(),{zoom:A.scale,originX:A.originX,originY:A.originY})),this._updateGroup){var x=this.group.scale;this._regionsGroup.traverse(function(b){b.type==="text"&&b.attr("scale",[1/x[0],1/x[1]])})}},this),h.setPointerChecker(function(A,x,b){return d.getViewRectAfterRoam().contain(x,b)&&!I(A,c,n)})}};var e=u;fe.exports=e},DFOY:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("lwsE"),o=y.n(I),m=y("W8MJ"),f=y.n(m),s=y("PJYZ"),t=y.n(s),l=y("7W2i"),a=y.n(l),r=y("LQ03"),u=y.n(r),e=y("q1tI"),n=y("uciX"),i=y("2W6z"),c=y.n(i),d=y("4IlW"),h=y("uK0f"),p=y.n(h);function g(lt,qe){if(lt===qe)return!0;if(!lt||!qe)return!1;var tr=lt.length;if(qe.length!==tr)return!1;for(var xr=0;xr<tr;xr++)if(lt[xr]!==qe[xr])return!1;return!0}function v(lt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(tr){return typeof tr}:v=function(tr){return tr&&typeof Symbol=="function"&&tr.constructor===Symbol&&tr!==Symbol.prototype?"symbol":typeof tr},v(lt)}function A(lt,qe){if(!(lt instanceof qe))throw new TypeError("Cannot call a class as a function")}function x(lt,qe){for(var tr=0;tr<qe.length;tr++){var xr=qe[tr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lt,xr.key,xr)}}function b(lt,qe,tr){return qe&&x(lt.prototype,qe),tr&&x(lt,tr),lt}function w(lt,qe){if(typeof qe!="function"&&qe!==null)throw new TypeError("Super expression must either be null or a function");lt.prototype=Object.create(qe&&qe.prototype,{constructor:{value:lt,writable:!0,configurable:!0}}),qe&&S(lt,qe)}function S(lt,qe){return S=Object.setPrototypeOf||function(xr,Ar){return xr.__proto__=Ar,xr},S(lt,qe)}function T(lt){var qe=_();return function(){var tr=M(lt),xr;if(qe){var Ar=M(this).constructor;xr=Reflect.construct(tr,arguments,Ar)}else xr=tr.apply(this,arguments);return C(this,xr)}}function C(lt,qe){return qe&&(v(qe)==="object"||typeof qe=="function")?qe:O(lt)}function O(lt){if(lt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lt}function _(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(lt){return!1}}function M(lt){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(tr){return tr.__proto__||Object.getPrototypeOf(tr)},M(lt)}var k=function(){var lt=function(qe){w(xr,qe);var tr=T(xr);function xr(){var Ar;return A(this,xr),Ar=tr.apply(this,arguments),Ar.menuItems={},Ar.saveMenuItem=function(fr){return function(vn){Ar.menuItems[fr]=vn}},Ar}return b(xr,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(fr){!fr.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(fr){var vn=this.props,$r=vn.fieldNames,Ln=vn.defaultFieldNames;return $r[fr]||Ln[fr]}},{key:"getOption",value:function(fr,vn){var $r=this.props,Ln=$r.prefixCls,tt=$r.expandTrigger,nt=$r.expandIcon,Te=$r.loadingIcon,Me=this.props.onSelect.bind(this,fr,vn),Xe=this.props.onItemDoubleClick.bind(this,fr,vn),at={onClick:Me,onDoubleClick:Xe},zt="".concat(Ln,"-menu-item"),kt=null,Xt=fr[this.getFieldName("children")]&&fr[this.getFieldName("children")].length>0;(Xt||fr.isLeaf===!1)&&(zt+=" ".concat(Ln,"-menu-item-expand"),fr.loading||(kt=e.createElement("span",{className:"".concat(Ln,"-menu-item-expand-icon")},nt))),tt==="hover"&&(Xt||fr.isLeaf===!1)&&(at={onMouseEnter:this.delayOnSelect.bind(this,Me),onMouseLeave:this.delayOnSelect.bind(this),onClick:Me}),this.isActiveOption(fr,vn)&&(zt+=" ".concat(Ln,"-menu-item-active"),at.ref=this.saveMenuItem(vn)),fr.disabled&&(zt+=" ".concat(Ln,"-menu-item-disabled"));var Dr=null;fr.loading&&(zt+=" ".concat(Ln,"-menu-item-loading"),Dr=Te||null);var Pr="";return"title"in fr?Pr=fr.title:typeof fr[this.getFieldName("label")]=="string"&&(Pr=fr[this.getFieldName("label")]),e.createElement("li",Object.assign({key:fr[this.getFieldName("value")],className:zt,title:Pr},at,{role:"menuitem",onMouseDown:function(jt){return jt.preventDefault()}}),fr[this.getFieldName("label")],kt,Dr)}},{key:"getActiveOptions",value:function(fr){var vn=this,$r=this.props.options,Ln=fr||this.props.activeValue;return p()($r,function(tt,nt){return tt[vn.getFieldName("value")]===Ln[nt]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var fr=this,vn=this.props.options,$r=this.getActiveOptions().map(function(Ln){return Ln[fr.getFieldName("children")]}).filter(function(Ln){return!!Ln});return $r.unshift(vn),$r}},{key:"delayOnSelect",value:function(fr){for(var vn=this,$r=arguments.length,Ln=new Array($r>1?$r-1:0),tt=1;tt<$r;tt++)Ln[tt-1]=arguments[tt];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof fr=="function"&&(this.delayTimer=window.setTimeout(function(){fr(Ln),vn.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var fr=this.getShowOptions().length,vn=0;vn<fr;vn++){var $r=this.menuItems[vn];$r&&$r.parentElement&&($r.parentElement.scrollTop=$r.offsetTop)}}},{key:"isActiveOption",value:function(fr,vn){var $r=this.props.activeValue,Ln=$r===void 0?[]:$r;return Ln[vn]===fr[this.getFieldName("value")]}},{key:"render",value:function(){var fr=this,vn=this.props,$r=vn.prefixCls,Ln=vn.dropdownMenuColumnStyle;return e.createElement("div",null,this.getShowOptions().map(function(tt,nt){return e.createElement("ul",{className:"".concat($r,"-menu"),key:nt,style:Ln},tt.map(function(Te){return fr.getOption(Te,nt)}))}))}}]),xr}(e.Component);return lt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},lt}(),R=k,B={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}}},P=B;function U(lt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?U=function(tr){return typeof tr}:U=function(tr){return tr&&typeof Symbol=="function"&&tr.constructor===Symbol&&tr!==Symbol.prototype?"symbol":typeof tr},U(lt)}function j(lt,qe){if(lt==null)return{};var tr=H(lt,qe),xr,Ar;if(Object.getOwnPropertySymbols){var fr=Object.getOwnPropertySymbols(lt);for(Ar=0;Ar<fr.length;Ar++){if(xr=fr[Ar],qe.indexOf(xr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(lt,xr))continue;tr[xr]=lt[xr]}}return tr}function H(lt,qe){if(lt==null)return{};var tr={},xr=Object.keys(lt),Ar,fr;for(fr=0;fr<xr.length;fr++){if(Ar=xr[fr],qe.indexOf(Ar)>=0)continue;tr[Ar]=lt[Ar]}return tr}function W(lt){return Y(lt)||Z(lt)||V(lt)||G()}function G(){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 V(lt,qe){if(!lt)return;if(typeof lt=="string")return Q(lt,qe);var tr=Object.prototype.toString.call(lt).slice(8,-1);if(tr==="Object"&<.constructor&&(tr=lt.constructor.name),tr==="Map"||tr==="Set")return Array.from(lt);if(tr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tr))return Q(lt,qe)}function Z(lt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(lt))return Array.from(lt)}function Y(lt){if(Array.isArray(lt))return Q(lt)}function Q(lt,qe){(qe==null||qe>lt.length)&&(qe=lt.length);for(var tr=0,xr=new Array(qe);tr<qe;tr++)xr[tr]=lt[tr];return xr}function oe(lt,qe){if(!(lt instanceof qe))throw new TypeError("Cannot call a class as a function")}function ue(lt,qe){for(var tr=0;tr<qe.length;tr++){var xr=qe[tr];xr.enumerable=xr.enumerable||!1,xr.configurable=!0,"value"in xr&&(xr.writable=!0),Object.defineProperty(lt,xr.key,xr)}}function Le(lt,qe,tr){return qe&&ue(lt.prototype,qe),tr&&ue(lt,tr),lt}function me(lt,qe){if(typeof qe!="function"&&qe!==null)throw new TypeError("Super expression must either be null or a function");lt.prototype=Object.create(qe&&qe.prototype,{constructor:{value:lt,writable:!0,configurable:!0}}),qe&&Ie(lt,qe)}function Ie(lt,qe){return Ie=Object.setPrototypeOf||function(xr,Ar){return xr.__proto__=Ar,xr},Ie(lt,qe)}function X(lt){var qe=$();return function(){var tr=J(lt),xr;if(qe){var Ar=J(this).constructor;xr=Reflect.construct(tr,arguments,Ar)}else xr=tr.apply(this,arguments);return q(this,xr)}}function q(lt,qe){return qe&&(U(qe)==="object"||typeof qe=="function")?qe:We(lt)}function We(lt){if(lt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lt}function $(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(lt){return!1}}function J(lt){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(tr){return tr.__proto__||Object.getPrototypeOf(tr)},J(lt)}var le=function(){var lt=function(qe){me(xr,qe);var tr=X(xr);function xr(Ar){var fr;oe(this,xr),fr=tr.call(this,Ar),fr.setPopupVisible=function($r){var Ln=fr.state.value;"popupVisible"in fr.props||fr.setState({popupVisible:$r}),$r&&!fr.state.popupVisible&&fr.setState({activeValue:Ln}),fr.props.onPopupVisibleChange($r)},fr.handleChange=function($r,Ln,tt){var nt=Ln.visible;(tt.type!=="keydown"||tt.keyCode===d.a.ENTER)&&(fr.props.onChange($r.map(function(Te){return Te[fr.getFieldName("value")]}),$r),fr.setPopupVisible(nt))},fr.handlePopupVisibleChange=function($r){fr.setPopupVisible($r)},fr.handleMenuSelect=function($r,Ln,tt){var nt=fr.trigger.getRootDomNode();nt&&nt.focus&&nt.focus();var Te=fr.props,Me=Te.changeOnSelect,Xe=Te.loadData,at=Te.expandTrigger;if(!$r||$r.disabled)return;var zt=fr.state.activeValue;zt=zt.slice(0,Ln+1),zt[Ln]=$r[fr.getFieldName("value")];var kt=fr.getActiveOptions(zt);if($r.isLeaf===!1&&!$r[fr.getFieldName("children")]&&Xe){Me&&fr.handleChange(kt,{visible:!0},tt),fr.setState({activeValue:zt}),Xe(kt);return}var Xt={};!$r[fr.getFieldName("children")]||!$r[fr.getFieldName("children")].length?(fr.handleChange(kt,{visible:!1},tt),Xt.value=zt):Me&&(tt.type==="click"||tt.type==="keydown")&&(at==="hover"?fr.handleChange(kt,{visible:!1},tt):fr.handleChange(kt,{visible:!0},tt),Xt.value=zt),Xt.activeValue=zt,("value"in fr.props||tt.type==="keydown"&&tt.keyCode!==d.a.ENTER)&&delete Xt.value,fr.setState(Xt)},fr.handleItemDoubleClick=function(){var $r=fr.props.changeOnSelect;$r&&fr.setPopupVisible(!1)},fr.handleKeyDown=function($r){var Ln=fr.props.children;if(Ln&&Ln.props.onKeyDown){Ln.props.onKeyDown($r);return}var tt=W(fr.state.activeValue),nt=tt.length-1<0?0:tt.length-1,Te=fr.getCurrentLevelOptions(),Me=Te.map(function(kt){return kt[fr.getFieldName("value")]}).indexOf(tt[nt]);if($r.keyCode!==d.a.DOWN&&$r.keyCode!==d.a.UP&&$r.keyCode!==d.a.LEFT&&$r.keyCode!==d.a.RIGHT&&$r.keyCode!==d.a.ENTER&&$r.keyCode!==d.a.SPACE&&$r.keyCode!==d.a.BACKSPACE&&$r.keyCode!==d.a.ESC&&$r.keyCode!==d.a.TAB)return;if(!fr.state.popupVisible&&$r.keyCode!==d.a.BACKSPACE&&$r.keyCode!==d.a.LEFT&&$r.keyCode!==d.a.RIGHT&&$r.keyCode!==d.a.ESC&&$r.keyCode!==d.a.TAB){fr.setPopupVisible(!0);return}if($r.keyCode===d.a.DOWN||$r.keyCode===d.a.UP){$r.preventDefault();var Xe=Me;Xe!==-1?$r.keyCode===d.a.DOWN?(Xe+=1,Xe=Xe>=Te.length?0:Xe):(Xe-=1,Xe=Xe<0?Te.length-1:Xe):Xe=0,tt[nt]=Te[Xe][fr.getFieldName("value")]}else if($r.keyCode===d.a.LEFT||$r.keyCode===d.a.BACKSPACE)$r.preventDefault(),tt.splice(tt.length-1,1);else if($r.keyCode===d.a.RIGHT)$r.preventDefault(),Te[Me]&&Te[Me][fr.getFieldName("children")]&&tt.push(Te[Me][fr.getFieldName("children")][0][fr.getFieldName("value")]);else if($r.keyCode===d.a.ESC||$r.keyCode===d.a.TAB){fr.setPopupVisible(!1);return}(!tt||tt.length===0)&&fr.setPopupVisible(!1);var at=fr.getActiveOptions(tt),zt=at[at.length-1];fr.handleMenuSelect(zt,at.length-1,$r),fr.props.onKeyDown&&fr.props.onKeyDown($r)},fr.saveTrigger=function($r){fr.trigger=$r};var vn=[];return"value"in Ar?vn=Ar.value||[]:"defaultValue"in Ar&&(vn=Ar.defaultValue||[]),c()(!("filedNames"in Ar),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),fr.state={popupVisible:Ar.popupVisible,activeValue:vn,value:vn,prevProps:Ar},fr.defaultFieldNames={label:"label",value:"value",children:"children"},fr}return Le(xr,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(fr){var vn=this.defaultFieldNames,$r=this.props,Ln=$r.fieldNames,tt=$r.filedNames;return"filedNames"in this.props?tt[fr]||vn[fr]:Ln[fr]||vn[fr]}},{key:"getFieldNames",value:function(){var fr=this.props,vn=fr.fieldNames,$r=fr.filedNames;return"filedNames"in this.props?$r:vn}},{key:"getCurrentLevelOptions",value:function(){var fr=this,vn=this.props.options,$r=vn===void 0?[]:vn,Ln=this.state.activeValue,tt=Ln===void 0?[]:Ln,nt=p()($r,function(Te,Me){return Te[fr.getFieldName("value")]===tt[Me]},{childrenKeyName:this.getFieldName("children")});return nt[nt.length-2]?nt[nt.length-2][this.getFieldName("children")]:W($r).filter(function(Te){return!Te.disabled})}},{key:"getActiveOptions",value:function(fr){var vn=this;return p()(this.props.options||[],function($r,Ln){return $r[vn.getFieldName("value")]===fr[Ln]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var fr=this.props,vn=fr.prefixCls,$r=fr.transitionName,Ln=fr.popupClassName,tt=fr.options,nt=tt===void 0?[]:tt,Te=fr.disabled,Me=fr.builtinPlacements,Xe=fr.popupPlacement,at=fr.children,zt=fr.dropdownRender,kt=j(fr,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Xt=e.createElement("div",null),Dr="";nt&&nt.length>0?Xt=e.createElement(R,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Dr=" ".concat(vn,"-menus-empty");var Pr=Xt;return zt&&(Pr=zt(Xt)),e.createElement(n.a,Object.assign({ref:this.saveTrigger},kt,{popupPlacement:Xe,builtinPlacements:Me,popupTransitionName:$r,action:Te?[]:["click"],popupVisible:Te?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(vn,"-menus"),popupClassName:Ln+Dr,popup:Pr}),e.cloneElement(at,{onKeyDown:this.handleKeyDown,tabIndex:Te?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(fr,vn){var $r=vn.prevProps,Ln=$r===void 0?{}:$r,tt={prevProps:fr};return"value"in fr&&!g(Ln.value,fr.value)&&(tt.value=fr.value||[],"loadData"in fr||(tt.activeValue=fr.value||[])),"popupVisible"in fr&&(tt.popupVisible=fr.popupVisible),tt}}]),xr}(e.Component);return lt.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:P,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},lt}(),de=le,Ne=de,we=y("TSYQ"),De=y.n(we),Ee=y("BGR+"),ce=y("kbBi"),ne=y.n(ce),ee=y("HQEm"),Ae=y.n(ee),Ve=y("fEPi"),Ke=y.n(Ve),Oe=y("5YOS"),it=y.n(Oe),Fe=y("DFhj"),ft=y.n(Fe),At=y("5rEg"),bt=y("H84U"),St=y("YMnH"),Et=y("uaoM"),je=y("3Nzz"),pe=y("0n0R"),ie=function(lt,qe){var tr={};for(var xr in lt)Object.prototype.hasOwnProperty.call(lt,xr)&&qe.indexOf(xr)<0&&(tr[xr]=lt[xr]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ar=0,xr=Object.getOwnPropertySymbols(lt);Ar<xr.length;Ar++)qe.indexOf(xr[Ar])<0&&Object.prototype.propertyIsEnumerable.call(lt,xr[Ar])&&(tr[xr[Ar]]=lt[xr[Ar]]);return tr},st=50;function Qe(lt,qe,tr){return lt.split(qe).map(function(xr,Ar){return Ar===0?xr:[e.createElement("span",{className:"".concat(tr,"-menu-item-keyword"),key:"seperator"},qe),xr]})}function ve(lt,qe,tr){return qe.some(function(xr){return xr[tr.label].indexOf(lt)>-1})}function Bt(lt,qe,tr,xr){return qe.map(function(Ar,fr){var vn=Ar[xr.label],$r=vn.indexOf(lt)>-1?Qe(vn,lt,tr):vn;return fr===0?$r:[" / ",$r]})}function qt(lt,qe,tr,xr){function Ar(fr){return fr[xr.label].indexOf(tr)>-1}return lt.findIndex(Ar)-qe.findIndex(Ar)}function ct(lt){var qe=lt.fieldNames;return qe}function Wt(lt){var qe=ct(lt)||{},tr={children:qe.children||"children",label:qe.label||"label",value:qe.value||"value"};return tr}function or(lt,qe){var tr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],xr=Wt(qe),Ar=[],fr=xr.children;return lt.forEach(function(vn){var $r=tr.concat(vn);(qe.changeOnSelect||!vn[fr]||!vn[fr].length)&&Ar.push($r),vn[fr]&&(Ar=Ar.concat(or(vn[fr],qe,$r)))}),Ar}var Fr=function(qe){return qe.join(" / ")};function er(lt){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(lt||[]).forEach(function(tr){var xr=qe.value||"value";Object(Et.a)(xr in tr,"Cascader","Not found `value` in `options`."),er(tr[qe.children||"children"],qe)})}var nr=function(lt){a()(tr,lt);var qe=u()(tr);function tr(xr){var Ar;return o()(this,tr),Ar=qe.call(this,xr),Ar.cachedOptions=[],Ar.setValue=function(fr){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Ar.props||Ar.setState({value:fr});var $r=Ar.props.onChange;$r&&$r(fr,vn)},Ar.saveInput=function(fr){Ar.input=fr},Ar.handleChange=function(fr,vn){if(Ar.setState({inputValue:""}),vn[0].__IS_FILTERED_OPTION){var $r=fr[0],Ln=vn[0].path;Ar.setValue($r,Ln);return}Ar.setValue(fr,vn)},Ar.handlePopupVisibleChange=function(fr){"popupVisible"in Ar.props||Ar.setState(function($r){return{popupVisible:fr,inputFocused:fr,inputValue:fr?$r.inputValue:""}});var vn=Ar.props.onPopupVisibleChange;vn&&vn(fr)},Ar.handleInputBlur=function(){Ar.setState({inputFocused:!1})},Ar.handleInputClick=function(fr){var vn=Ar.state,$r=vn.inputFocused,Ln=vn.popupVisible;($r||Ln)&&fr.stopPropagation()},Ar.handleKeyDown=function(fr){(fr.keyCode===d.a.BACKSPACE||fr.keyCode===d.a.SPACE)&&fr.stopPropagation()},Ar.handleInputChange=function(fr){var vn=Ar.state.popupVisible,$r=fr.target.value;vn||Ar.handlePopupVisibleChange(!0),Ar.setState({inputValue:$r})},Ar.clearSelection=function(fr){var vn=Ar.state.inputValue;fr.preventDefault(),fr.stopPropagation(),vn?Ar.setState({inputValue:""}):(Ar.handlePopupVisibleChange(!1),Ar.clearSelectionTimeout=setTimeout(function(){Ar.setValue([])},200))},Ar.renderCascader=function(fr,vn){var $r=fr.getPopupContainer,Ln=fr.getPrefixCls,tt=fr.renderEmpty,nt=fr.direction;return e.createElement(je.b.Consumer,null,function(Te){var Me,Xe,at,zt,kt=t()(Ar),Xt=kt.props,Dr=kt.state,Pr=Xt.prefixCls,cn=Xt.inputPrefixCls,jt=Xt.children,gt=Xt.placeholder,dt=gt===void 0?vn.placeholder||"Please select":gt,Qt=Xt.size,Jt=Xt.disabled,xt=Xt.className,Pt=Xt.style,yt=Xt.allowClear,Ut=Xt.showSearch,pr=Ut===void 0?!1:Ut,sr=Xt.suffixIcon,ir=Xt.expandIcon,Yr=Xt.notFoundContent,Jr=Xt.popupClassName,In=Xt.bordered,Nn=Xt.dropdownRender,zn=ie(Xt,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),ei=Qt||Te,Ai=Dr.value,Pi=Dr.inputFocused,$e=nt==="rtl",_e=Ln("cascader",Pr),Be=Ln("input",cn),He=De()((Me={},E()(Me,"".concat(Be,"-lg"),ei==="large"),E()(Me,"".concat(Be,"-sm"),ei==="small"),Me)),Je=yt&&!Jt&&Ai.length>0||Dr.inputValue?e.createElement(ne.a,{className:"".concat(_e,"-picker-clear"),onClick:Ar.clearSelection}):null,Ye=De()((Xe={},E()(Xe,"".concat(_e,"-picker-arrow"),!0),E()(Xe,"".concat(_e,"-picker-arrow-expand"),Dr.popupVisible),Xe)),et=De()(xt,"".concat(_e,"-picker"),(at={},E()(at,"".concat(_e,"-picker-rtl"),$e),E()(at,"".concat(_e,"-picker-with-value"),Dr.inputValue),E()(at,"".concat(_e,"-picker-disabled"),Jt),E()(at,"".concat(_e,"-picker-").concat(ei),!!ei),E()(at,"".concat(_e,"-picker-show-search"),!!pr),E()(at,"".concat(_e,"-picker-focused"),Pi),E()(at,"".concat(_e,"-picker-borderless"),!In),at)),wt=Object(Ee.default)(zn,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),ut=Xt.options,Ft=Wt(Ar.props);if(ut&&ut.length>0)Dr.inputValue&&(ut=Ar.generateFilteredOptions(_e,tt));else{var wr;ut=[(wr={},E()(wr,Ft.label,Yr||tt("Cascader")),E()(wr,Ft.value,"ANT_CASCADER_NOT_FOUND"),wr)]}Dr.popupVisible?Ar.cachedOptions=ut:ut=Ar.cachedOptions;var hr={},Nr=(ut||[]).length===1&&ut[0].isEmptyNode;Nr&&(hr.height="auto");var Kt=pr.matchInputWidth!==!1;Kt&&(Dr.inputValue||Nr)&&Ar.input&&(hr.width=Ar.input.input.offsetWidth);var un;sr?un=Object(pe.c)(sr,e.createElement("span",{className:"".concat(_e,"-picker-arrow")},sr),function(){var ii;return{className:De()((ii={},E()(ii,sr.props.className,sr.props.className),E()(ii,"".concat(_e,"-picker-arrow"),!0),ii))}}):un=e.createElement(Ae.a,{className:Ye});var ar=jt||e.createElement("span",{style:Pt,className:et},e.createElement("span",{className:"".concat(_e,"-picker-label")},Ar.getLabel()),e.createElement(At.a,N()({},wt,{tabIndex:"-1",ref:Ar.saveInput,prefixCls:Be,placeholder:Ai&&Ai.length>0?void 0:dt,className:"".concat(_e,"-input ").concat(He),value:Dr.inputValue,disabled:Jt,readOnly:!pr,autoComplete:wt.autoComplete||"off",onClick:pr?Ar.handleInputClick:void 0,onBlur:pr?Ar.handleInputBlur:void 0,onKeyDown:Ar.handleKeyDown,onChange:pr?Ar.handleInputChange:void 0})),Je,un),Gr;ir?Gr=ir:Gr=$e?e.createElement(ft.a,null):e.createElement(Ke.a,null);var Br=e.createElement("span",{className:"".concat(_e,"-menu-item-loading-icon")},e.createElement(it.a,{spin:!0})),gr=Xt.getPopupContainer||$r,Sn=Object(Ee.default)(Xt,["inputIcon","expandIcon","loadingIcon","bordered"]),Pn=De()(Jr,(zt={},E()(zt,"".concat(_e,"-menu-").concat(nt),nt==="rtl"),E()(zt,"".concat(_e,"-menu-empty"),ut.length===1&&ut[0].value==="ANT_CASCADER_NOT_FOUND"),zt));return e.createElement(Ne,N()({},Sn,{prefixCls:_e,getPopupContainer:gr,options:ut,value:Ai,popupVisible:Dr.popupVisible,onPopupVisibleChange:Ar.handlePopupVisibleChange,onChange:Ar.handleChange,dropdownMenuColumnStyle:hr,expandIcon:Gr,loadingIcon:Br,popupClassName:Pn,popupPlacement:Ar.getPopupPlacement(nt),dropdownRender:Nn}),ar)})},Ar.state={value:xr.value||xr.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:xr.popupVisible,flattenOptions:xr.showSearch?or(xr.options,xr):void 0,prevProps:xr},Ar}return f()(tr,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Ar=this.props,fr=Ar.options,vn=Ar.displayRender,$r=vn===void 0?Fr:vn,Ln=Wt(this.props),tt=this.state.value,nt=Array.isArray(tt[0])?tt[0]:tt,Te=p()(fr,function(Xe,at){return Xe[Ln.value]===nt[at]},{childrenKeyName:Ln.children}),Me=Te.length?Te.map(function(Xe){return Xe[Ln.label]}):tt;return $r(Me,Te)}},{key:"generateFilteredOptions",value:function(Ar,fr){var vn=this,$r,Ln=this.props,tt=Ln.showSearch,nt=Ln.notFoundContent,Te=Wt(this.props),Me=tt.filter,Xe=Me===void 0?ve:Me,at=tt.render,zt=at===void 0?Bt:at,kt=tt.sort,Xt=kt===void 0?qt:kt,Dr=tt.limit,Pr=Dr===void 0?st:Dr,cn=this.state,jt=cn.flattenOptions,gt=jt===void 0?[]:jt,dt=cn.inputValue,Qt;if(Pr>0){Qt=[];var Jt=0;gt.some(function(xt){var Pt=Xe(vn.state.inputValue,xt,Te);return Pt&&(Qt.push(xt),Jt+=1),Jt>=Pr})}else Object(Et.a)(typeof Pr!="number","Cascader","'limit' of showSearch should be positive number or false."),Qt=gt.filter(function(xt){return Xe(vn.state.inputValue,xt,Te)});return Qt=Qt.sort(function(xt,Pt){return Xt(xt,Pt,dt,Te)}),Qt.length>0?Qt.map(function(xt){var Pt;return Pt={__IS_FILTERED_OPTION:!0,path:xt},E()(Pt,Te.value,xt.map(function(yt){return yt[Te.value]})),E()(Pt,Te.label,zt(dt,xt,Ar,Te)),E()(Pt,"disabled",xt.some(function(yt){return!!yt.disabled})),E()(Pt,"isEmptyNode",!0),Pt}):[($r={},E()($r,Te.value,"ANT_CASCADER_NOT_FOUND"),E()($r,Te.label,nt||fr("Cascader")),E()($r,"disabled",!0),E()($r,"isEmptyNode",!0),$r)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",fr=this.props.popupPlacement;return fr!==void 0?fr:Ar==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Ar=this;return e.createElement(bt.a,null,function(fr){return e.createElement(St.a,null,function(vn){return Ar.renderCascader(fr,vn)})})}}],[{key:"getDerivedStateFromProps",value:function(Ar,fr){var vn=fr.prevProps,$r={prevProps:Ar};return"value"in Ar&&($r.value=Ar.value||[]),"popupVisible"in Ar&&($r.popupVisible=Ar.popupVisible),Ar.showSearch&&vn.options!==Ar.options&&($r.flattenOptions=or(Ar.options,Ar)),$r}}]),tr}(e.Component);nr.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Ot=z.a=nr},DFhj:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("GGyF"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},DL4k:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},DN4a:function(fe,z,y){var D=y("Fofx"),N=y("QBsz"),L=D.identity,E=5e-5;function I(a){return a>E||a<-E}var o=function(r){r=r||{},r.position||(this.position=[0,0]),r.rotation==null&&(this.rotation=0),r.scale||(this.scale=[1,1]),this.origin=this.origin||null},m=o.prototype;m.transform=null,m.needLocalTransform=function(){return I(this.rotation)||I(this.position[0])||I(this.position[1])||I(this.scale[0]-1)||I(this.scale[1]-1)};var f=[];m.updateTransform=function(){var a=this.parent,r=a&&a.transform,u=this.needLocalTransform(),e=this.transform;if(!(u||r)){e&&L(e);return}e=e||D.create(),u?this.getLocalTransform(e):L(e),r&&(u?D.mul(e,a.transform,e):D.copy(e,a.transform)),this.transform=e;var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(f);var i=f[0]<0?-1:1,c=f[1]<0?-1:1,d=((f[0]-i)*n+i)/f[0]||0,h=((f[1]-c)*n+c)/f[1]||0;e[0]*=d,e[1]*=d,e[2]*=h,e[3]*=h}this.invTransform=this.invTransform||D.create(),D.invert(this.invTransform,e)},m.getLocalTransform=function(a){return o.getLocalTransform(this,a)},m.setTransform=function(a){var r=this.transform,u=a.dpr||1;r?a.setTransform(u*r[0],u*r[1],u*r[2],u*r[3],u*r[4],u*r[5]):a.setTransform(u,0,0,u,0,0)},m.restoreTransform=function(a){var r=a.dpr||1;a.setTransform(r,0,0,r,0,0)};var s=[],t=D.create();m.setLocalTransform=function(a){if(!a)return;var r=a[0]*a[0]+a[1]*a[1],u=a[2]*a[2]+a[3]*a[3],e=this.position,n=this.scale;I(r-1)&&(r=Math.sqrt(r)),I(u-1)&&(u=Math.sqrt(u)),a[0]<0&&(r=-r),a[3]<0&&(u=-u),e[0]=a[4],e[1]=a[5],n[0]=r,n[1]=u,this.rotation=Math.atan2(-a[1]/u,a[0]/r)},m.decomposeTransform=function(){if(!this.transform)return;var a=this.parent,r=this.transform;a&&a.transform&&(D.mul(s,a.invTransform,r),r=s);var u=this.origin;u&&(u[0]||u[1])&&(t[4]=u[0],t[5]=u[1],D.mul(s,r,t),s[4]-=u[0],s[5]-=u[1],r=s),this.setLocalTransform(r)},m.getGlobalScale=function(a){var r=this.transform;return a=a||[],r?(a[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),a[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(a[0]=-a[0]),r[3]<0&&(a[1]=-a[1]),a):(a[0]=1,a[1]=1,a)},m.transformCoordToLocal=function(a,r){var u=[a,r],e=this.invTransform;return e&&N.applyTransform(u,u,e),u},m.transformCoordToGlobal=function(a,r){var u=[a,r],e=this.transform;return e&&N.applyTransform(u,u,e),u},o.getLocalTransform=function(a,r){r=r||[],L(r);var u=a.origin,e=a.scale||[1,1],n=a.rotation||0,i=a.position||[0,0];return u&&(r[4]-=u[0],r[5]-=u[1]),D.scale(r,r,e),n&&D.rotate(r,r,n),u&&(r[4]+=u[0],r[5]+=u[1]),r[4]+=i[0],r[5]+=i[1],r};var l=o;fe.exports=l},DO2E:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},DYRE:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("OPEp"),E=y.n(L)},DZo9:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("JGo8"),E=y.n(L),I=y("+L6B"),o=y("MXD1"),m=y("5Dmo")},Dagg:function(fe,z,y){var D=y("Gev7"),N=y("mFDi"),L=y("bYtY"),E=y("Xnb7");function I(m){D.call(this,m)}I.prototype={constructor:I,type:"image",brush:function(f,s){var t=this.style,l=t.image;t.bind(f,this,s);var a=this._image=E.createOrUpdateImage(l,this._image,this,this.onload);if(!a||!E.isImageReady(a))return;var r=t.x||0,u=t.y||0,e=t.width,n=t.height,i=a.width/a.height;if(e==null&&n!=null?e=n*i:n==null&&e!=null?n=e/i:e==null&&n==null&&(e=a.width,n=a.height),this.setTransform(f),t.sWidth&&t.sHeight){var c=t.sx||0,d=t.sy||0;f.drawImage(a,c,d,t.sWidth,t.sHeight,r,u,e,n)}else if(t.sx&&t.sy){var c=t.sx,d=t.sy,h=e-c,p=n-d;f.drawImage(a,c,d,h,p,r,u,e,n)}else f.drawImage(a,r,u,e,n);t.text!=null&&(this.restoreTransform(f),this.drawRectText(f,this.getBoundingRect()))},getBoundingRect:function(){var f=this.style;return this._rect||(this._rect=new N(f.x||0,f.y||0,f.width||0,f.height||0)),this._rect}},L.inherits(I,D);var o=I;fe.exports=o},Dg8C:function(fe,z,y){var D=y("XxSj"),N=y("bYtY");function L(E,I){E.eachSeriesByType("sankey",function(o){var m=o.getGraph(),f=m.nodes;if(f.length){var s=Infinity,t=-Infinity;N.each(f,function(l){var a=l.getLayout().value;a<s&&(s=a),a>t&&(t=a)}),N.each(f,function(l){var a=new D({type:"color",mappingMethod:"linear",dataExtent:[s,t],visual:o.get("color")}),r=a.mapValueToVisual(l.getLayout().value),u=l.getModel().get("itemStyle.color");u!=null?l.setVisual("color",u):l.setVisual("color",r)})}})}fe.exports=L},DjyN:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("Urep"),E=y.n(L),I=y("OaEy")},DlQD:function(fe,z,y){(function(D,N){fe.exports=N()})(this,function(){"use strict";function D(bt,St){for(var Et=0;Et<St.length;Et++){var je=St[Et];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(bt,je.key,je)}}function N(bt,St,Et){return St&&D(bt.prototype,St),Et&&D(bt,Et),bt}function L(bt,St){if(!bt)return;if(typeof bt=="string")return E(bt,St);var Et=Object.prototype.toString.call(bt).slice(8,-1);if(Et==="Object"&&bt.constructor&&(Et=bt.constructor.name),Et==="Map"||Et==="Set")return Array.from(bt);if(Et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Et))return E(bt,St)}function E(bt,St){(St==null||St>bt.length)&&(St=bt.length);for(var Et=0,je=new Array(St);Et<St;Et++)je[Et]=bt[Et];return je}function I(bt,St){var Et;if(typeof Symbol=="undefined"||bt[Symbol.iterator]==null){if(Array.isArray(bt)||(Et=L(bt))||St&&bt&&typeof bt.length=="number"){Et&&(bt=Et);var je=0;return function(){return je>=bt.length?{done:!0}:{done:!1,value:bt[je++]}}}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 Et=bt[Symbol.iterator](),Et.next.bind(Et)}function o(bt,St){return St={exports:{}},bt(St,St.exports),St.exports}var m=o(function(bt){function St(){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 Et(je){bt.exports.defaults=je}bt.exports={defaults:St(),getDefaults:St,changeDefaults:Et}}),f=m.defaults,s=m.getDefaults,t=m.changeDefaults,l=/[&<>"']/,a=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,e={"&":"&","<":"<",">":">",'"':""","'":"'"},n=function(St){return e[St]};function i(bt,St){if(St){if(l.test(bt))return bt.replace(a,n)}else if(r.test(bt))return bt.replace(u,n);return bt}var c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function d(bt){return bt.replace(c,function(St,Et){return Et=Et.toLowerCase(),Et==="colon"?":":Et.charAt(0)==="#"?Et.charAt(1)==="x"?String.fromCharCode(parseInt(Et.substring(2),16)):String.fromCharCode(+Et.substring(1)):""})}var h=/(^|[^\[])\^/g;function p(bt,St){bt=bt.source||bt,St=St||"";var Et={replace:function(pe,ie){return ie=ie.source||ie,ie=ie.replace(h,"$1"),bt=bt.replace(pe,ie),Et},getRegex:function(){return new RegExp(bt,St)}};return Et}var g=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function A(bt,St,Et){if(bt){var je;try{je=decodeURIComponent(d(Et)).replace(g,"").toLowerCase()}catch(pe){return null}if(je.indexOf("javascript:")===0||je.indexOf("vbscript:")===0||je.indexOf("data:")===0)return null}St&&!v.test(Et)&&(Et=T(St,Et));try{Et=encodeURI(Et).replace(/%25/g,"%")}catch(pe){return null}return Et}var x={},b=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,S=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(bt,St){x[" "+bt]||(b.test(bt)?x[" "+bt]=bt+"/":x[" "+bt]=M(bt,"/",!0)),bt=x[" "+bt];var Et=bt.indexOf(":")===-1;return St.substring(0,2)==="//"?Et?St:bt.replace(w,"$1")+St:St.charAt(0)==="/"?Et?St:bt.replace(S,"$1")+St:bt+St}var C={exec:function(){}};function O(bt){for(var St=1,Et,je;St<arguments.length;St++){Et=arguments[St];for(je in Et)Object.prototype.hasOwnProperty.call(Et,je)&&(bt[je]=Et[je])}return bt}function _(bt,St){var Et=bt.replace(/\|/g,function(ie,st,Qe){for(var ve=!1,Bt=st;--Bt>=0&&Qe[Bt]==="\\";)ve=!ve;return ve?"|":" |"}),je=Et.split(/ \|/),pe=0;if(je.length>St)je.splice(St);else for(;je.length<St;)je.push("");for(;pe<je.length;pe++)je[pe]=je[pe].trim().replace(/\\\|/g,"|");return je}function M(bt,St,Et){var je=bt.length;if(je===0)return"";for(var pe=0;pe<je;){var ie=bt.charAt(je-pe-1);if(ie===St&&!Et)pe++;else if(ie!==St&&Et)pe++;else break}return bt.substr(0,je-pe)}function k(bt,St){if(bt.indexOf(St[1])===-1)return-1;for(var Et=bt.length,je=0,pe=0;pe<Et;pe++)if(bt[pe]==="\\")pe++;else if(bt[pe]===St[0])je++;else if(bt[pe]===St[1]&&(je--,je<0))return pe;return-1}function R(bt){bt&&bt.sanitize&&!bt.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 B={escape:i,unescape:d,edit:p,cleanUrl:A,resolveUrl:T,noopTest:C,merge:O,splitCells:_,rtrim:M,findClosingBracket:k,checkSanitizeDeprecation:R},P=m.defaults,U=B.rtrim,j=B.splitCells,H=B.escape,W=B.findClosingBracket;function G(bt,St,Et){var je=St.href,pe=St.title?H(St.title):null,ie=bt[1].replace(/\\([\[\]])/g,"$1");return bt[0].charAt(0)!=="!"?{type:"link",raw:Et,href:je,title:pe,text:ie}:{type:"image",raw:Et,href:je,title:pe,text:H(ie)}}function V(bt,St){var Et=bt.match(/^(\s+)(?:```)/);if(Et===null)return St;var je=Et[1];return St.split(`
|
|
|
`).map(function(pe){var ie=pe.match(/^\s+/);if(ie===null)return pe;var st=ie[0];return st.length>=je.length?pe.slice(je.length):pe}).join(`
|
|
|
`)}var Z=function(){function bt(Et){this.options=Et||P}var St=bt.prototype;return St.space=function(je){var pe=this.rules.block.newline.exec(je);if(pe)return pe[0].length>1?{type:"space",raw:pe[0]}:{raw:`
|
|
|
`}},St.code=function(je,pe){var ie=this.rules.block.code.exec(je);if(ie){var st=pe[pe.length-1];if(st&&st.type==="paragraph")return{raw:ie[0],text:ie[0].trimRight()};var Qe=ie[0].replace(/^ {4}/gm,"");return{type:"code",raw:ie[0],codeBlockStyle:"indented",text:this.options.pedantic?Qe:U(Qe,`
|
|
|
`)}}},St.fences=function(je){var pe=this.rules.block.fences.exec(je);if(pe){var ie=pe[0],st=V(ie,pe[3]||"");return{type:"code",raw:ie,lang:pe[2]?pe[2].trim():pe[2],text:st}}},St.heading=function(je){var pe=this.rules.block.heading.exec(je);if(pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},St.nptable=function(je){var pe=this.rules.block.nptable.exec(je);if(pe){var ie={type:"table",header:j(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:pe[0]};if(ie.header.length===ie.align.length){var st=ie.align.length,Qe;for(Qe=0;Qe<st;Qe++)/^ *-+: *$/.test(ie.align[Qe])?ie.align[Qe]="right":/^ *:-+: *$/.test(ie.align[Qe])?ie.align[Qe]="center":/^ *:-+ *$/.test(ie.align[Qe])?ie.align[Qe]="left":ie.align[Qe]=null;for(st=ie.cells.length,Qe=0;Qe<st;Qe++)ie.cells[Qe]=j(ie.cells[Qe],ie.header.length);return ie}}},St.hr=function(je){var pe=this.rules.block.hr.exec(je);if(pe)return{type:"hr",raw:pe[0]}},St.blockquote=function(je){var pe=this.rules.block.blockquote.exec(je);if(pe){var ie=pe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:pe[0],text:ie}}},St.list=function(je){var pe=this.rules.block.list.exec(je);if(pe){for(var ie=pe[0],st=pe[2],Qe=st.length>1,ve=st[st.length-1]===")",Bt={type:"list",raw:ie,ordered:Qe,start:Qe?+st.slice(0,-1):"",loose:!1,items:[]},qt=pe[0].match(this.rules.block.item),ct=!1,Wt,or,Fr,er,nr,Ot,lt,qe=qt.length,tr=0;tr<qe;tr++)Wt=qt[tr],ie=Wt,or=Wt.length,Wt=Wt.replace(/^ *([*+-]|\d+[.)]) */,""),~Wt.indexOf(`
|
|
|
`)&&(or-=Wt.length,Wt=this.options.pedantic?Wt.replace(/^ {1,4}/gm,""):Wt.replace(new RegExp("^ {1,"+or+"}","gm"),"")),tr!==qe-1&&(Fr=this.rules.block.bullet.exec(qt[tr+1])[0],(Qe?Fr.length===1||!ve&&Fr[Fr.length-1]===")":Fr.length>1||this.options.smartLists&&Fr!==st)&&(er=qt.slice(tr+1).join(`
|
|
|
`),Bt.raw=Bt.raw.substring(0,Bt.raw.length-er.length),tr=qe-1)),nr=ct||/\n\n(?!\s*$)/.test(Wt),tr!==qe-1&&(ct=Wt.charAt(Wt.length-1)===`
|
|
|
`,nr||(nr=ct)),nr&&(Bt.loose=!0),Ot=/^\[[ xX]\] /.test(Wt),lt=void 0,Ot&&(lt=Wt[1]!==" ",Wt=Wt.replace(/^\[[ xX]\] +/,"")),Bt.items.push({type:"list_item",raw:ie,task:Ot,checked:lt,loose:nr,text:Wt});return Bt}},St.html=function(je){var pe=this.rules.block.html.exec(je);if(pe)return{type:this.options.sanitize?"paragraph":"html",raw:pe[0],pre:!this.options.sanitizer&&(pe[1]==="pre"||pe[1]==="script"||pe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(pe[0]):H(pe[0]):pe[0]}},St.def=function(je){var pe=this.rules.block.def.exec(je);if(pe){pe[3]&&(pe[3]=pe[3].substring(1,pe[3].length-1));var ie=pe[1].toLowerCase().replace(/\s+/g," ");return{tag:ie,raw:pe[0],href:pe[2],title:pe[3]}}},St.table=function(je){var pe=this.rules.block.table.exec(je);if(pe){var ie={type:"table",header:j(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(ie.header.length===ie.align.length){ie.raw=pe[0];var st=ie.align.length,Qe;for(Qe=0;Qe<st;Qe++)/^ *-+: *$/.test(ie.align[Qe])?ie.align[Qe]="right":/^ *:-+: *$/.test(ie.align[Qe])?ie.align[Qe]="center":/^ *:-+ *$/.test(ie.align[Qe])?ie.align[Qe]="left":ie.align[Qe]=null;for(st=ie.cells.length,Qe=0;Qe<st;Qe++)ie.cells[Qe]=j(ie.cells[Qe].replace(/^ *\| *| *\| *$/g,""),ie.header.length);return ie}}},St.lheading=function(je){var pe=this.rules.block.lheading.exec(je);if(pe)return{type:"heading",raw:pe[0],depth:pe[2].charAt(0)==="="?1:2,text:pe[1]}},St.paragraph=function(je){var pe=this.rules.block.paragraph.exec(je);if(pe)return{type:"paragraph",raw:pe[0],text:pe[1].charAt(pe[1].length-1)===`
|
|
|
`?pe[1].slice(0,-1):pe[1]}},St.text=function(je,pe){var ie=this.rules.block.text.exec(je);if(ie){var st=pe[pe.length-1];return st&&st.type==="text"?{raw:ie[0],text:ie[0]}:{type:"text",raw:ie[0],text:ie[0]}}},St.escape=function(je){var pe=this.rules.inline.escape.exec(je);if(pe)return{type:"escape",raw:pe[0],text:H(pe[1])}},St.tag=function(je,pe,ie){var st=this.rules.inline.tag.exec(je);if(st)return!pe&&/^<a /i.test(st[0])?pe=!0:pe&&/^<\/a>/i.test(st[0])&&(pe=!1),!ie&&/^<(pre|code|kbd|script)(\s|>)/i.test(st[0])?ie=!0:ie&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(st[0])&&(ie=!1),{type:this.options.sanitize?"text":"html",raw:st[0],inLink:pe,inRawBlock:ie,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(st[0]):H(st[0]):st[0]}},St.link=function(je){var pe=this.rules.inline.link.exec(je);if(pe){var ie=W(pe[2],"()");if(ie>-1){var st=pe[0].indexOf("!")===0?5:4,Qe=st+pe[1].length+ie;pe[2]=pe[2].substring(0,ie),pe[0]=pe[0].substring(0,Qe).trim(),pe[3]=""}var ve=pe[2],Bt="";if(this.options.pedantic){var qt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ve);qt?(ve=qt[1],Bt=qt[3]):Bt=""}else Bt=pe[3]?pe[3].slice(1,-1):"";ve=ve.trim().replace(/^<([\s\S]*)>$/,"$1");var ct=G(pe,{href:ve&&ve.replace(this.rules.inline._escapes,"$1"),title:Bt&&Bt.replace(this.rules.inline._escapes,"$1")},pe[0]);return ct}},St.reflink=function(je,pe){var ie;if((ie=this.rules.inline.reflink.exec(je))||(ie=this.rules.inline.nolink.exec(je))){var st=(ie[2]||ie[1]).replace(/\s+/g," ");if(st=pe[st.toLowerCase()],!st||!st.href){var Qe=ie[0].charAt(0);return{type:"text",raw:Qe,text:Qe}}var ve=G(ie,st,ie[0]);return ve}},St.strong=function(je,pe,ie){ie===void 0&&(ie="");var st=this.rules.inline.strong.start.exec(je);if(st&&(!st[1]||st[1]&&(ie===""||this.rules.inline.punctuation.exec(ie)))){pe=pe.slice(-1*je.length);var Qe=st[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Qe.lastIndex=0;for(var ve;(st=Qe.exec(pe))!=null;)if(ve=this.rules.inline.strong.middle.exec(pe.slice(0,st.index+3)),ve)return{type:"strong",raw:je.slice(0,ve[0].length),text:je.slice(2,ve[0].length-2)}}},St.em=function(je,pe,ie){ie===void 0&&(ie="");var st=this.rules.inline.em.start.exec(je);if(st&&(!st[1]||st[1]&&(ie===""||this.rules.inline.punctuation.exec(ie)))){pe=pe.slice(-1*je.length);var Qe=st[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Qe.lastIndex=0;for(var ve;(st=Qe.exec(pe))!=null;)if(ve=this.rules.inline.em.middle.exec(pe.slice(0,st.index+2)),ve)return{type:"em",raw:je.slice(0,ve[0].length),text:je.slice(1,ve[0].length-1)}}},St.codespan=function(je){var pe=this.rules.inline.code.exec(je);if(pe){var ie=pe[2].replace(/\n/g," "),st=/[^ ]/.test(ie),Qe=ie.startsWith(" ")&&ie.endsWith(" ");return st&&Qe&&(ie=ie.substring(1,ie.length-1)),ie=H(ie,!0),{type:"codespan",raw:pe[0],text:ie}}},St.br=function(je){var pe=this.rules.inline.br.exec(je);if(pe)return{type:"br",raw:pe[0]}},St.del=function(je){var pe=this.rules.inline.del.exec(je);if(pe)return{type:"del",raw:pe[0],text:pe[1]}},St.autolink=function(je,pe){var ie=this.rules.inline.autolink.exec(je);if(ie){var st,Qe;return ie[2]==="@"?(st=H(this.options.mangle?pe(ie[1]):ie[1]),Qe="mailto:"+st):(st=H(ie[1]),Qe=st),{type:"link",raw:ie[0],text:st,href:Qe,tokens:[{type:"text",raw:st,text:st}]}}},St.url=function(je,pe){var ie;if(ie=this.rules.inline.url.exec(je)){var st,Qe;if(ie[2]==="@")st=H(this.options.mangle?pe(ie[0]):ie[0]),Qe="mailto:"+st;else{var ve;do ve=ie[0],ie[0]=this.rules.inline._backpedal.exec(ie[0])[0];while(ve!==ie[0]);st=H(ie[0]),ie[1]==="www."?Qe="http://"+st:Qe=st}return{type:"link",raw:ie[0],text:st,href:Qe,tokens:[{type:"text",raw:st,text:st}]}}},St.inlineText=function(je,pe,ie){var st=this.rules.inline.text.exec(je);if(st){var Qe;return pe?Qe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(st[0]):H(st[0]):st[0]:Qe=H(this.options.smartypants?ie(st[0]):st[0]),{type:"text",raw:st[0],text:Qe}}},bt}(),Y=B.noopTest,Q=B.edit,oe=B.merge,ue={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:Y,table:Y,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ue.def=Q(ue.def).replace("label",ue._label).replace("title",ue._title).getRegex(),ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ue.item=Q(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=Q(ue.list).replace(/bull/g,ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ue.def.source+")").getRegex(),ue._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",ue._comment=/<!--(?!-?>)[\s\S]*?-->/,ue.html=Q(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=Q(ue._paragraph).replace("hr",ue.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",ue._tag).getRegex(),ue.blockquote=Q(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=oe({},ue),ue.gfm=oe({},ue.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*|$)"}),ue.gfm.nptable=Q(ue.gfm.nptable).replace("hr",ue.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",ue._tag).getRegex(),ue.gfm.table=Q(ue.gfm.table).replace("hr",ue.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",ue._tag).getRegex(),ue.pedantic=oe({},ue.normal,{html:Q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ue._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:Y,paragraph:Q(ue.normal._paragraph).replace("hr",ue.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",ue.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Le={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Y,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:Y,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Le._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Le.punctuation=Q(Le.punctuation).replace(/punctuation/g,Le._punctuation).getRegex(),Le._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Le._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Le.em.start=Q(Le.em.start).replace(/punctuation/g,Le._punctuation).getRegex(),Le.em.middle=Q(Le.em.middle).replace(/punctuation/g,Le._punctuation).replace(/overlapSkip/g,Le._overlapSkip).getRegex(),Le.em.endAst=Q(Le.em.endAst,"g").replace(/punctuation/g,Le._punctuation).getRegex(),Le.em.endUnd=Q(Le.em.endUnd,"g").replace(/punctuation/g,Le._punctuation).getRegex(),Le.strong.start=Q(Le.strong.start).replace(/punctuation/g,Le._punctuation).getRegex(),Le.strong.middle=Q(Le.strong.middle).replace(/punctuation/g,Le._punctuation).replace(/blockSkip/g,Le._blockSkip).getRegex(),Le.strong.endAst=Q(Le.strong.endAst,"g").replace(/punctuation/g,Le._punctuation).getRegex(),Le.strong.endUnd=Q(Le.strong.endUnd,"g").replace(/punctuation/g,Le._punctuation).getRegex(),Le.blockSkip=Q(Le._blockSkip,"g").getRegex(),Le.overlapSkip=Q(Le._overlapSkip,"g").getRegex(),Le._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Le._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Le._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])?)+(?![-_])/,Le.autolink=Q(Le.autolink).replace("scheme",Le._scheme).replace("email",Le._email).getRegex(),Le._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Le.tag=Q(Le.tag).replace("comment",ue._comment).replace("attribute",Le._attribute).getRegex(),Le._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Le._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Le._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Le.link=Q(Le.link).replace("label",Le._label).replace("href",Le._href).replace("title",Le._title).getRegex(),Le.reflink=Q(Le.reflink).replace("label",Le._label).getRegex(),Le.reflinkSearch=Q(Le.reflinkSearch,"g").replace("reflink",Le.reflink).replace("nolink",Le.nolink).getRegex(),Le.normal=oe({},Le),Le.pedantic=oe({},Le.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:Q(/^!?\[(label)\]\((.*?)\)/).replace("label",Le._label).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Le._label).getRegex()}),Le.gfm=oe({},Le.normal,{escape:Q(Le.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Le.gfm.url=Q(Le.gfm.url,"i").replace("email",Le.gfm._extended_email).getRegex(),Le.breaks=oe({},Le.gfm,{br:Q(Le.br).replace("{2,}","*").getRegex(),text:Q(Le.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var me={block:ue,inline:Le},Ie=m.defaults,X=me.block,q=me.inline;function We(bt){return bt.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 $(bt){var St="",Et,je,pe=bt.length;for(Et=0;Et<pe;Et++)je=bt.charCodeAt(Et),Math.random()>.5&&(je="x"+je.toString(16)),St+="&#"+je+";";return St}var J=function(){function bt(Et){this.tokens=[],this.tokens.links=Object.create(null),this.options=Et||Ie,this.options.tokenizer=this.options.tokenizer||new Z,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var je={block:X.normal,inline:q.normal};this.options.pedantic?(je.block=X.pedantic,je.inline=q.pedantic):this.options.gfm&&(je.block=X.gfm,this.options.breaks?je.inline=q.breaks:je.inline=q.gfm),this.tokenizer.rules=je}bt.lex=function(je,pe){var ie=new bt(pe);return ie.lex(je)};var St=bt.prototype;return St.lex=function(je){return je=je.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(je,this.tokens,!0),this.inline(this.tokens),this.tokens},St.blockTokens=function(je,pe,ie){pe===void 0&&(pe=[]),ie===void 0&&(ie=!0),je=je.replace(/^ +$/gm,"");for(var st,Qe,ve,Bt;je;){if(st=this.tokenizer.space(je)){je=je.substring(st.raw.length),st.type&&pe.push(st);continue}if(st=this.tokenizer.code(je,pe)){je=je.substring(st.raw.length),st.type?pe.push(st):(Bt=pe[pe.length-1],Bt.raw+=`
|
|
|
`+st.raw,Bt.text+=`
|
|
|
`+st.text);continue}if(st=this.tokenizer.fences(je)){je=je.substring(st.raw.length),pe.push(st);continue}if(st=this.tokenizer.heading(je)){je=je.substring(st.raw.length),pe.push(st);continue}if(st=this.tokenizer.nptable(je)){je=je.substring(st.raw.length),pe.push(st);continue}if(st=this.tokenizer.hr(je)){je=je.substring(st.raw.length),pe.push(st);continue}if(st=this.tokenizer.blockquote(je)){je=je.substring(st.raw.length),st.tokens=this.blockTokens(st.text,[],ie),pe.push(st);continue}if(st=this.tokenizer.list(je)){for(je=je.substring(st.raw.length),ve=st.items.length,Qe=0;Qe<ve;Qe++)st.items[Qe].tokens=this.blockTokens(st.items[Qe].text,[],!1);pe.push(st);continue}if(st=this.tokenizer.html(je)){je=je.substring(st.raw.length),pe.push(st);continue}if(ie&&(st=this.tokenizer.def(je))){je=je.substring(st.raw.length),this.tokens.links[st.tag]||(this.tokens.links[st.tag]={href:st.href,title:st.title});continue}if(st=this.tokenizer.table(je)){je=je.substring(st.raw.length),pe.push(st);continue}if(st=this.tokenizer.lheading(je)){je=je.substring(st.raw.length),pe.push(st);continue}if(ie&&(st=this.tokenizer.paragraph(je))){je=je.substring(st.raw.length),pe.push(st);continue}if(st=this.tokenizer.text(je,pe)){je=je.substring(st.raw.length),st.type?pe.push(st):(Bt=pe[pe.length-1],Bt.raw+=`
|
|
|
`+st.raw,Bt.text+=`
|
|
|
`+st.text);continue}if(je){var qt="Infinite loop on byte: "+je.charCodeAt(0);if(this.options.silent){console.error(qt);break}else throw new Error(qt)}}return pe},St.inline=function(je){var pe,ie,st,Qe,ve,Bt,qt=je.length;for(pe=0;pe<qt;pe++){Bt=je[pe];switch(Bt.type){case"paragraph":case"text":case"heading":{Bt.tokens=[],this.inlineTokens(Bt.text,Bt.tokens);break}case"table":{for(Bt.tokens={header:[],cells:[]},Qe=Bt.header.length,ie=0;ie<Qe;ie++)Bt.tokens.header[ie]=[],this.inlineTokens(Bt.header[ie],Bt.tokens.header[ie]);for(Qe=Bt.cells.length,ie=0;ie<Qe;ie++)for(ve=Bt.cells[ie],Bt.tokens.cells[ie]=[],st=0;st<ve.length;st++)Bt.tokens.cells[ie][st]=[],this.inlineTokens(ve[st],Bt.tokens.cells[ie][st]);break}case"blockquote":{this.inline(Bt.tokens);break}case"list":{for(Qe=Bt.items.length,ie=0;ie<Qe;ie++)this.inline(Bt.items[ie].tokens);break}}}return je},St.inlineTokens=function(je,pe,ie,st,Qe){pe===void 0&&(pe=[]),ie===void 0&&(ie=!1),st===void 0&&(st=!1),Qe===void 0&&(Qe="");var ve,Bt=je,qt;if(this.tokens.links){var ct=Object.keys(this.tokens.links);if(ct.length>0)for(;(qt=this.tokenizer.rules.inline.reflinkSearch.exec(Bt))!=null;)ct.includes(qt[0].slice(qt[0].lastIndexOf("[")+1,-1))&&(Bt=Bt.slice(0,qt.index)+"["+"a".repeat(qt[0].length-2)+"]"+Bt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qt=this.tokenizer.rules.inline.blockSkip.exec(Bt))!=null;)Bt=Bt.slice(0,qt.index)+"["+"a".repeat(qt[0].length-2)+"]"+Bt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;je;){if(ve=this.tokenizer.escape(je)){je=je.substring(ve.raw.length),pe.push(ve);continue}if(ve=this.tokenizer.tag(je,ie,st)){je=je.substring(ve.raw.length),ie=ve.inLink,st=ve.inRawBlock,pe.push(ve);continue}if(ve=this.tokenizer.link(je)){je=je.substring(ve.raw.length),ve.type==="link"&&(ve.tokens=this.inlineTokens(ve.text,[],!0,st)),pe.push(ve);continue}if(ve=this.tokenizer.reflink(je,this.tokens.links)){je=je.substring(ve.raw.length),ve.type==="link"&&(ve.tokens=this.inlineTokens(ve.text,[],!0,st)),pe.push(ve);continue}if(ve=this.tokenizer.strong(je,Bt,Qe)){je=je.substring(ve.raw.length),ve.tokens=this.inlineTokens(ve.text,[],ie,st),pe.push(ve);continue}if(ve=this.tokenizer.em(je,Bt,Qe)){je=je.substring(ve.raw.length),ve.tokens=this.inlineTokens(ve.text,[],ie,st),pe.push(ve);continue}if(ve=this.tokenizer.codespan(je)){je=je.substring(ve.raw.length),pe.push(ve);continue}if(ve=this.tokenizer.br(je)){je=je.substring(ve.raw.length),pe.push(ve);continue}if(ve=this.tokenizer.del(je)){je=je.substring(ve.raw.length),ve.tokens=this.inlineTokens(ve.text,[],ie,st),pe.push(ve);continue}if(ve=this.tokenizer.autolink(je,$)){je=je.substring(ve.raw.length),pe.push(ve);continue}if(!ie&&(ve=this.tokenizer.url(je,$))){je=je.substring(ve.raw.length),pe.push(ve);continue}if(ve=this.tokenizer.inlineText(je,st,We)){je=je.substring(ve.raw.length),Qe=ve.raw.slice(-1),pe.push(ve);continue}if(je){var Wt="Infinite loop on byte: "+je.charCodeAt(0);if(this.options.silent){console.error(Wt);break}else throw new Error(Wt)}}return pe},N(bt,null,[{key:"rules",get:function(){return{block:X,inline:q}}}]),bt}(),le=m.defaults,de=B.cleanUrl,Ne=B.escape,we=function(){function bt(Et){this.options=Et||le}var St=bt.prototype;return St.code=function(je,pe,ie){var st=(pe||"").match(/\S*/)[0];if(this.options.highlight){var Qe=this.options.highlight(je,st);Qe!=null&&Qe!==je&&(ie=!0,je=Qe)}return st?'<pre><code class="'+this.options.langPrefix+Ne(st,!0)+'">'+(ie?je:Ne(je,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(ie?je:Ne(je,!0))+`</code></pre>
|
|
|
`},St.blockquote=function(je){return`<blockquote>
|
|
|
`+je+`</blockquote>
|
|
|
`},St.html=function(je){return je},St.heading=function(je,pe,ie,st){return this.options.headerIds?"<h"+pe+' id="'+this.options.headerPrefix+st.slug(ie)+'">'+je+"</h"+pe+`>
|
|
|
`:"<h"+pe+">"+je+"</h"+pe+`>
|
|
|
`},St.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},St.list=function(je,pe,ie){var st=pe?"ol":"ul",Qe=pe&&ie!==1?' start="'+ie+'"':"";return"<"+st+Qe+`>
|
|
|
`+je+"</"+st+`>
|
|
|
`},St.listitem=function(je){return"<li>"+je+`</li>
|
|
|
`},St.checkbox=function(je){return"<input "+(je?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},St.paragraph=function(je){return"<p>"+je+`</p>
|
|
|
`},St.table=function(je,pe){return pe&&(pe="<tbody>"+pe+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+je+`</thead>
|
|
|
`+pe+`</table>
|
|
|
`},St.tablerow=function(je){return`<tr>
|
|
|
`+je+`</tr>
|
|
|
`},St.tablecell=function(je,pe){var ie=pe.header?"th":"td",st=pe.align?"<"+ie+' align="'+pe.align+'">':"<"+ie+">";return st+je+"</"+ie+`>
|
|
|
`},St.strong=function(je){return"<strong>"+je+"</strong>"},St.em=function(je){return"<em>"+je+"</em>"},St.codespan=function(je){return"<code>"+je+"</code>"},St.br=function(){return this.options.xhtml?"<br/>":"<br>"},St.del=function(je){return"<del>"+je+"</del>"},St.link=function(je,pe,ie){if(je=de(this.options.sanitize,this.options.baseUrl,je),je===null)return ie;var st='<a href="'+Ne(je)+'"';return pe&&(st+=' title="'+pe+'"'),st+=">"+ie+"</a>",st},St.image=function(je,pe,ie){if(je=de(this.options.sanitize,this.options.baseUrl,je),je===null)return ie;var st='<img src="'+je+'" alt="'+ie+'"';return pe&&(st+=' title="'+pe+'"'),st+=this.options.xhtml?"/>":">",st},St.text=function(je){return je},bt}(),De=function(){function bt(){}var St=bt.prototype;return St.strong=function(je){return je},St.em=function(je){return je},St.codespan=function(je){return je},St.del=function(je){return je},St.html=function(je){return je},St.text=function(je){return je},St.link=function(je,pe,ie){return""+ie},St.image=function(je,pe,ie){return""+ie},St.br=function(){return""},bt}(),Ee=function(){function bt(){this.seen={}}var St=bt.prototype;return St.slug=function(je){var pe=je.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(pe)){var ie=pe;do this.seen[ie]++,pe=ie+"-"+this.seen[ie];while(this.seen.hasOwnProperty(pe))}return this.seen[pe]=0,pe},bt}(),ce=m.defaults,ne=B.unescape,ee=function(){function bt(Et){this.options=Et||ce,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new De,this.slugger=new Ee}bt.parse=function(je,pe){var ie=new bt(pe);return ie.parse(je)};var St=bt.prototype;return St.parse=function(je,pe){pe===void 0&&(pe=!0);var ie="",st,Qe,ve,Bt,qt,ct,Wt,or,Fr,er,nr,Ot,lt,qe,tr,xr,Ar,fr,vn=je.length;for(st=0;st<vn;st++){er=je[st];switch(er.type){case"space":continue;case"hr":{ie+=this.renderer.hr();continue}case"heading":{ie+=this.renderer.heading(this.parseInline(er.tokens),er.depth,ne(this.parseInline(er.tokens,this.textRenderer)),this.slugger);continue}case"code":{ie+=this.renderer.code(er.text,er.lang,er.escaped);continue}case"table":{for(or="",Wt="",Bt=er.header.length,Qe=0;Qe<Bt;Qe++)Wt+=this.renderer.tablecell(this.parseInline(er.tokens.header[Qe]),{header:!0,align:er.align[Qe]});for(or+=this.renderer.tablerow(Wt),Fr="",Bt=er.cells.length,Qe=0;Qe<Bt;Qe++){for(ct=er.tokens.cells[Qe],Wt="",qt=ct.length,ve=0;ve<qt;ve++)Wt+=this.renderer.tablecell(this.parseInline(ct[ve]),{header:!1,align:er.align[ve]});Fr+=this.renderer.tablerow(Wt)}ie+=this.renderer.table(or,Fr);continue}case"blockquote":{Fr=this.parse(er.tokens),ie+=this.renderer.blockquote(Fr);continue}case"list":{for(nr=er.ordered,Ot=er.start,lt=er.loose,Bt=er.items.length,Fr="",Qe=0;Qe<Bt;Qe++)tr=er.items[Qe],xr=tr.checked,Ar=tr.task,qe="",tr.task&&(fr=this.renderer.checkbox(xr),lt?tr.tokens.length>0&&tr.tokens[0].type==="text"?(tr.tokens[0].text=fr+" "+tr.tokens[0].text,tr.tokens[0].tokens&&tr.tokens[0].tokens.length>0&&tr.tokens[0].tokens[0].type==="text"&&(tr.tokens[0].tokens[0].text=fr+" "+tr.tokens[0].tokens[0].text)):tr.tokens.unshift({type:"text",text:fr}):qe+=fr),qe+=this.parse(tr.tokens,lt),Fr+=this.renderer.listitem(qe,Ar,xr);ie+=this.renderer.list(Fr,nr,Ot);continue}case"html":{ie+=this.renderer.html(er.text);continue}case"paragraph":{ie+=this.renderer.paragraph(this.parseInline(er.tokens));continue}case"text":{for(Fr=er.tokens?this.parseInline(er.tokens):er.text;st+1<vn&&je[st+1].type==="text";)er=je[++st],Fr+=`
|
|
|
`+(er.tokens?this.parseInline(er.tokens):er.text);ie+=pe?this.renderer.paragraph(Fr):Fr;continue}default:{var $r='Token with "'+er.type+'" type was not found.';if(this.options.silent){console.error($r);return}else throw new Error($r)}}}return ie},St.parseInline=function(je,pe){pe=pe||this.renderer;var ie="",st,Qe,ve=je.length;for(st=0;st<ve;st++){Qe=je[st];switch(Qe.type){case"escape":{ie+=pe.text(Qe.text);break}case"html":{ie+=pe.html(Qe.text);break}case"link":{ie+=pe.link(Qe.href,Qe.title,this.parseInline(Qe.tokens,pe));break}case"image":{ie+=pe.image(Qe.href,Qe.title,Qe.text);break}case"strong":{ie+=pe.strong(this.parseInline(Qe.tokens,pe));break}case"em":{ie+=pe.em(this.parseInline(Qe.tokens,pe));break}case"codespan":{ie+=pe.codespan(Qe.text);break}case"br":{ie+=pe.br();break}case"del":{ie+=pe.del(this.parseInline(Qe.tokens,pe));break}case"text":{ie+=pe.text(Qe.text);break}default:{var Bt='Token with "'+Qe.type+'" type was not found.';if(this.options.silent){console.error(Bt);return}else throw new Error(Bt)}}}return ie},bt}(),Ae=B.merge,Ve=B.checkSanitizeDeprecation,Ke=B.escape,Oe=m.getDefaults,it=m.changeDefaults,Fe=m.defaults;function ft(bt,St,Et){if(typeof bt=="undefined"||bt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof bt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(bt)+", string expected");if(typeof St=="function"&&(Et=St,St=null),St=Ae({},ft.defaults,St||{}),Ve(St),Et){var je=St.highlight,pe;try{pe=J.lex(bt,St)}catch(ve){return Et(ve)}var ie=function(Bt){var qt;if(!Bt)try{qt=ee.parse(pe,St)}catch(ct){Bt=ct}return St.highlight=je,Bt?Et(Bt):Et(null,qt)};if(!je||je.length<3)return ie();if(delete St.highlight,!pe.length)return ie();var st=0;ft.walkTokens(pe,function(ve){ve.type==="code"&&(st++,setTimeout(function(){je(ve.text,ve.lang,function(Bt,qt){if(Bt)return ie(Bt);qt!=null&&qt!==ve.text&&(ve.text=qt,ve.escaped=!0),st--,st===0&&ie()})},0))}),st===0&&ie();return}try{var Qe=J.lex(bt,St);return St.walkTokens&&ft.walkTokens(Qe,St.walkTokens),ee.parse(Qe,St)}catch(ve){if(ve.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,St.silent)return"<p>An error occurred:</p><pre>"+Ke(ve.message+"",!0)+"</pre>";throw ve}}ft.options=ft.setOptions=function(bt){return Ae(ft.defaults,bt),it(ft.defaults),ft},ft.getDefaults=Oe,ft.defaults=Fe,ft.use=function(bt){var St=Ae({},bt);if(bt.renderer&&function(){var je=ft.defaults.renderer||new we,pe=function(Qe){var ve=je[Qe];je[Qe]=function(){for(var Bt=arguments.length,qt=new Array(Bt),ct=0;ct<Bt;ct++)qt[ct]=arguments[ct];var Wt=bt.renderer[Qe].apply(je,qt);return Wt===!1&&(Wt=ve.apply(je,qt)),Wt}};for(var ie in bt.renderer)pe(ie);St.renderer=je}(),bt.tokenizer&&function(){var je=ft.defaults.tokenizer||new Z,pe=function(Qe){var ve=je[Qe];je[Qe]=function(){for(var Bt=arguments.length,qt=new Array(Bt),ct=0;ct<Bt;ct++)qt[ct]=arguments[ct];var Wt=bt.tokenizer[Qe].apply(je,qt);return Wt===!1&&(Wt=ve.apply(je,qt)),Wt}};for(var ie in bt.tokenizer)pe(ie);St.tokenizer=je}(),bt.walkTokens){var Et=ft.defaults.walkTokens;St.walkTokens=function(je){bt.walkTokens(je),Et&&Et(je)}}ft.setOptions(St)},ft.walkTokens=function(bt,St){for(var Et=I(bt),je;!(je=Et()).done;){var pe=je.value;St(pe);switch(pe.type){case"table":{for(var ie=I(pe.tokens.header),st;!(st=ie()).done;){var Qe=st.value;ft.walkTokens(Qe,St)}for(var ve=I(pe.tokens.cells),Bt;!(Bt=ve()).done;)for(var qt=Bt.value,ct=I(qt),Wt;!(Wt=ct()).done;){var or=Wt.value;ft.walkTokens(or,St)}break}case"list":{ft.walkTokens(pe.items,St);break}default:pe.tokens&&ft.walkTokens(pe.tokens,St)}}},ft.Parser=ee,ft.parser=ee.parse,ft.Renderer=we,ft.TextRenderer=De,ft.Lexer=J,ft.lexer=J.lex,ft.Tokenizer=Z,ft.Slugger=Ee,ft.parse=ft;var At=ft;return At})},"DlR+":function(fe,z,y){var D=y("MFOe"),N=D.Global,L=D.trim;fe.exports={name:"cookieStorage",read:I,write:m,each:o,remove:f,clearAll:s};var E=N.document;function I(l){if(!l||!t(l))return null;var a="(?:^|.*;\\s*)"+escape(l).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(E.cookie.replace(new RegExp(a),"$1"))}function o(l){for(var a=E.cookie.split(/; ?/g),r=a.length-1;r>=0;r--){if(!L(a[r]))continue;var u=a[r].split("="),e=unescape(u[0]),n=unescape(u[1]);l(n,e)}}function m(l,a){if(!l)return;E.cookie=escape(l)+"="+escape(a)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function f(l){if(!l||!t(l))return;E.cookie=escape(l)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function s(){o(function(l,a){f(a)})}function t(l){return new RegExp("(?:^|;\\s*)"+escape(l).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(E.cookie)}},Ducp:function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L=y("+TT/"),E=y("XpcN"),I=N.Group,o=["width","height"],m=["x","y"],f=E.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){f.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new I),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new I),this._showController},resetInner:function(){f.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,l,a,r,u,e,n){var i=this;f.superCall(this,"renderInner",t,l,a,r,u,e,n);var c=this._controllerGroup,d=l.get("pageIconSize",!0);D.isArray(d)||(d=[d,d]),p("pagePrev",0);var h=l.getModel("pageTextStyle");c.add(new N.Text({name:"pageText",style:{textFill:h.getTextColor(),font:h.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),p("pageNext",1);function p(g,v){var A=g+"DataIndex",x=N.createIcon(l.get("pageIcons",!0)[l.getOrient().name][v],{onclick:D.bind(i._pageGo,i,A,l,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});x.name=g,c.add(x)}},layoutInner:function(t,l,a,r,u,e){var n=this.getSelectorGroup(),i=t.getOrient().index,c=o[i],d=m[i],h=o[1-i],p=m[1-i];u&&L.box("horizontal",n,t.get("selectorItemGap",!0));var g=t.get("selectorButtonGap",!0),v=n.getBoundingRect(),A=[-v.x,-v.y],x=D.clone(a);u&&(x[c]=a[c]-v[c]-g);var b=this._layoutContentAndController(t,r,x,i,c,h,p);if(u){if(e==="end")A[i]+=b[c]+g;else{var w=v[c]+g;A[i]-=w,b[d]-=w}b[c]+=v[c]+g,A[1-i]+=b[p]+b[h]/2-v[h]/2,b[h]=Math.max(b[h],v[h]),b[p]=Math.min(b[p],v[p]+A[1-i]),n.attr("position",A)}return b},_layoutContentAndController:function(t,l,a,r,u,e,n){var i=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;L.box(t.get("orient"),i,t.get("itemGap"),r?a.width:null,r?null:a.height),L.box("horizontal",d,t.get("pageButtonItemGap",!0));var h=i.getBoundingRect(),p=d.getBoundingRect(),g=this._showController=h[u]>a[u],v=[-h.x,-h.y];l||(v[r]=i.position[r]);var A=[0,0],x=[-p.x,-p.y],b=D.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var w=t.get("pageButtonPosition",!0);w==="end"?x[r]+=a[u]-p[u]:A[r]+=p[u]+b}x[1-r]+=h[e]/2-p[e]/2,i.attr("position",v),c.attr("position",A),d.attr("position",x);var S={x:0,y:0};if(S[u]=g?a[u]:h[u],S[e]=Math.max(h[e],p[e]),S[n]=Math.min(0,p[n]+x[1-r]),c.__rectSize=a[u],g){var T={x:0,y:0};T[u]=Math.max(a[u]-p[u]-b,0),T[e]=S[e],c.setClipPath(new N.Rect({shape:T})),c.__rectSize=T[u]}else d.eachChild(function(O){O.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(t);return C.pageIndex!=null&&N.updateProps(i,{position:C.contentPosition},g?t:!1),this._updatePageInfoView(t,C),S},_pageGo:function(t,l,a){var r=this._getPageInfo(l)[t];r!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:l.id})},_updatePageInfoView:function(t,l){var a=this._controllerGroup;D.each(["pagePrev","pageNext"],function(c){var d=l[c+"DataIndex"]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var r=a.childOfName("pageText"),u=t.get("pageFormatter"),e=l.pageIndex,n=e!=null?e+1:0,i=l.pageCount;r&&u&&r.setStyle("text",D.isString(u)?u.replace("{current}",n).replace("{total}",i):u({current:n,total:i}))},_getPageInfo:function(t){var l=t.get("scrollDataIndex",!0),a=this.getContentGroup(),r=this._containerGroup.__rectSize,u=t.getOrient().index,e=o[u],n=m[u],i=this._findTargetItemIndex(l),c=a.children(),d=c[i],h=c.length,p=h?1:0,g={contentPosition:a.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return g;var v=S(d);g.contentPosition[u]=-v.s;for(var A=i+1,x=v,b=v,w=null;A<=h;++A)w=S(c[A]),(!w&&b.e>x.s+r||w&&!T(w,x.s))&&(b.i>x.i?x=b:x=w,x&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=x.i),++g.pageCount)),b=w;for(var A=i-1,x=v,b=v,w=null;A>=-1;--A)w=S(c[A]),(!w||!T(b,w.s))&&x.i<b.i&&(b=x,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=x.i),++g.pageCount,++g.pageIndex),x=w;return g;function S(C){if(C){var O=C.getBoundingRect(),_=O[n]+C.position[u];return{s:_,e:_+O[e],i:C.__legendDataIndex}}}function T(C,O){return C.e>=O&&C.s<=O+r}},_findTargetItemIndex:function(t){if(!this._showController)return 0;var l,a=this.getContentGroup(),r;return a.eachChild(function(u,e){var n=u.__legendDataIndex;r==null&&n!=null&&(r=e),n===t&&(l=e)}),l!=null?l:r}}),s=f;fe.exports=s},"E/ki":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},E2g8:function(fe,z,y){(function(D,N){/*!
|
|
|
* @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(L,E){fe.exports=E()})(this,function(){"use strict";function L(we){var De=typeof we;return we!==null&&(De==="object"||De==="function")}function E(we){return typeof we=="function"}var I=void 0;Array.isArray?I=Array.isArray:I=function(De){return Object.prototype.toString.call(De)==="[object Array]"};var o=I,m=0,f=void 0,s=void 0,t=function(De,Ee){v[m]=De,v[m+1]=Ee,m+=2,m===2&&(s?s(A):b())};function l(we){s=we}function a(we){t=we}var r=typeof window!="undefined"?window:void 0,u=r||{},e=u.MutationObserver||u.WebKitMutationObserver,n=typeof self=="undefined"&&typeof D!="undefined"&&{}.toString.call(D)==="[object process]",i=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function c(){return function(){return D.nextTick(A)}}function d(){return typeof f!="undefined"?function(){f(A)}:g()}function h(){var we=0,De=new e(A),Ee=document.createTextNode("");return De.observe(Ee,{characterData:!0}),function(){Ee.data=we=++we%2}}function p(){var we=new MessageChannel;return we.port1.onmessage=A,function(){return we.port2.postMessage(0)}}function g(){var we=setTimeout;return function(){return we(A,1)}}var v=new Array(1e3);function A(){for(var we=0;we<m;we+=2){var De=v[we],Ee=v[we+1];De(Ee),v[we]=void 0,v[we+1]=void 0}m=0}function x(){try{var we=Function("return this")().require("vertx");return f=we.runOnLoop||we.runOnContext,d()}catch(De){return g()}}var b=void 0;n?b=c():e?b=h():i?b=p():r===void 0&&!0?b=x():b=g();function w(we,De){var Ee=this,ce=new this.constructor(C);ce[T]===void 0&&me(ce);var ne=Ee._state;if(ne){var ee=arguments[ne-1];t(function(){return Q(ne,ce,ee,Ee._result)})}else Z(Ee,ce,we,De);return ce}function S(we){var De=this;if(we&&typeof we=="object"&&we.constructor===De)return we;var Ee=new De(C);return H(Ee,we),Ee}var T=Math.random().toString(36).substring(2);function C(){}var O=void 0,_=1,M=2;function k(){return new TypeError("You cannot resolve a promise with itself")}function R(){return new TypeError("A promises callback cannot return that same promise.")}function B(we,De,Ee,ce){try{we.call(De,Ee,ce)}catch(ne){return ne}}function P(we,De,Ee){t(function(ce){var ne=!1,ee=B(Ee,De,function(Ae){if(ne)return;ne=!0,De!==Ae?H(ce,Ae):G(ce,Ae)},function(Ae){if(ne)return;ne=!0,V(ce,Ae)},"Settle: "+(ce._label||" unknown promise"));!ne&&ee&&(ne=!0,V(ce,ee))},we)}function U(we,De){De._state===_?G(we,De._result):De._state===M?V(we,De._result):Z(De,void 0,function(Ee){return H(we,Ee)},function(Ee){return V(we,Ee)})}function j(we,De,Ee){De.constructor===we.constructor&&Ee===w&&De.constructor.resolve===S?U(we,De):Ee===void 0?G(we,De):E(Ee)?P(we,De,Ee):G(we,De)}function H(we,De){if(we===De)V(we,k());else if(L(De)){var Ee=void 0;try{Ee=De.then}catch(ce){V(we,ce);return}j(we,De,Ee)}else G(we,De)}function W(we){we._onerror&&we._onerror(we._result),Y(we)}function G(we,De){if(we._state!==O)return;we._result=De,we._state=_,we._subscribers.length!==0&&t(Y,we)}function V(we,De){if(we._state!==O)return;we._state=M,we._result=De,t(W,we)}function Z(we,De,Ee,ce){var ne=we._subscribers,ee=ne.length;we._onerror=null,ne[ee]=De,ne[ee+_]=Ee,ne[ee+M]=ce,ee===0&&we._state&&t(Y,we)}function Y(we){var De=we._subscribers,Ee=we._state;if(De.length===0)return;for(var ce=void 0,ne=void 0,ee=we._result,Ae=0;Ae<De.length;Ae+=3)ce=De[Ae],ne=De[Ae+Ee],ce?Q(Ee,ce,ne,ee):ne(ee);we._subscribers.length=0}function Q(we,De,Ee,ce){var ne=E(Ee),ee=void 0,Ae=void 0,Ve=!0;if(ne){try{ee=Ee(ce)}catch(Ke){Ve=!1,Ae=Ke}if(De===ee){V(De,R());return}}else ee=ce;De._state!==O||(ne&&Ve?H(De,ee):Ve===!1?V(De,Ae):we===_?G(De,ee):we===M&&V(De,ee))}function oe(we,De){try{De(function(ce){H(we,ce)},function(ce){V(we,ce)})}catch(Ee){V(we,Ee)}}var ue=0;function Le(){return ue++}function me(we){we[T]=ue++,we._state=void 0,we._result=void 0,we._subscribers=[]}function Ie(){return new Error("Array Methods must be provided an Array")}var X=function(){function we(De,Ee){this._instanceConstructor=De,this.promise=new De(C),this.promise[T]||me(this.promise),o(Ee)?(this.length=Ee.length,this._remaining=Ee.length,this._result=new Array(this.length),this.length===0?G(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ee),this._remaining===0&&G(this.promise,this._result))):V(this.promise,Ie())}return we.prototype._enumerate=function(Ee){for(var ce=0;this._state===O&&ce<Ee.length;ce++)this._eachEntry(Ee[ce],ce)},we.prototype._eachEntry=function(Ee,ce){var ne=this._instanceConstructor,ee=ne.resolve;if(ee===S){var Ae=void 0,Ve=void 0,Ke=!1;try{Ae=Ee.then}catch(it){Ke=!0,Ve=it}if(Ae===w&&Ee._state!==O)this._settledAt(Ee._state,ce,Ee._result);else if(typeof Ae!="function")this._remaining--,this._result[ce]=Ee;else if(ne===de){var Oe=new ne(C);Ke?V(Oe,Ve):j(Oe,Ee,Ae),this._willSettleAt(Oe,ce)}else this._willSettleAt(new ne(function(it){return it(Ee)}),ce)}else this._willSettleAt(ee(Ee),ce)},we.prototype._settledAt=function(Ee,ce,ne){var ee=this.promise;ee._state===O&&(this._remaining--,Ee===M?V(ee,ne):this._result[ce]=ne),this._remaining===0&&G(ee,this._result)},we.prototype._willSettleAt=function(Ee,ce){var ne=this;Z(Ee,void 0,function(ee){return ne._settledAt(_,ce,ee)},function(ee){return ne._settledAt(M,ce,ee)})},we}();function q(we){return new X(this,we).promise}function We(we){var De=this;return o(we)?new De(function(Ee,ce){for(var ne=we.length,ee=0;ee<ne;ee++)De.resolve(we[ee]).then(Ee,ce)}):new De(function(Ee,ce){return ce(new TypeError("You must pass an array to race."))})}function $(we){var De=this,Ee=new De(C);return V(Ee,we),Ee}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function le(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var de=function(){function we(De){this[T]=Le(),this._result=this._state=void 0,this._subscribers=[],C!==De&&(typeof De!="function"&&J(),this instanceof we?oe(this,De):le())}return we.prototype.catch=function(Ee){return this.then(null,Ee)},we.prototype.finally=function(Ee){var ce=this,ne=ce.constructor;return E(Ee)?ce.then(function(ee){return ne.resolve(Ee()).then(function(){return ee})},function(ee){return ne.resolve(Ee()).then(function(){throw ee})}):ce.then(Ee,Ee)},we}();de.prototype.then=w,de.all=q,de.race=We,de.resolve=S,de.reject=$,de._setScheduler=l,de._setAsap=a,de._asap=t;function Ne(){var we=void 0;if(typeof N!="undefined")we=N;else if(typeof self!="undefined")we=self;else try{we=Function("return this")()}catch(ce){throw new Error("polyfill failed because global object is unavailable in this environment")}var De=we.Promise;if(De){var Ee=null;try{Ee=Object.prototype.toString.call(De.resolve())}catch(ce){}if(Ee==="[object Promise]"&&!De.cast)return}we.Promise=de}return de.polyfill=Ne,de.Promise=de,de})}).call(this,y("Q2Ig"),y("yLpj"))},E4JC:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.StreamCipher,I=N.algo,o=[],m=[],f=[],s=I.Rabbit=E.extend({_doReset:function(){for(var a=this._key.words,r=this.cfg.iv,u=0;u<4;u++)a[u]=(a[u]<<8|a[u]>>>24)&16711935|(a[u]<<24|a[u]>>>8)&4278255360;var e=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],n=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var u=0;u<4;u++)t.call(this);for(var u=0;u<8;u++)n[u]^=e[u+4&7];if(r){var i=r.words,c=i[0],d=i[1],h=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,p=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,g=h>>>16|p&4294901760,v=p<<16|h&65535;n[0]^=h,n[1]^=g,n[2]^=p,n[3]^=v,n[4]^=h,n[5]^=g,n[6]^=p,n[7]^=v;for(var u=0;u<4;u++)t.call(this)}},_doProcessBlock:function(a,r){var u=this._X;t.call(this),o[0]=u[0]^u[5]>>>16^u[3]<<16,o[1]=u[2]^u[7]>>>16^u[5]<<16,o[2]=u[4]^u[1]>>>16^u[7]<<16,o[3]=u[6]^u[3]>>>16^u[1]<<16;for(var e=0;e<4;e++)o[e]=(o[e]<<8|o[e]>>>24)&16711935|(o[e]<<24|o[e]>>>8)&4278255360,a[r+e]^=o[e]},blockSize:128/32,ivSize:64/32});function t(){for(var l=this._X,a=this._C,r=0;r<8;r++)m[r]=a[r];a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0<m[0]>>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0<m[1]>>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0<m[2]>>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0<m[3]>>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0<m[4]>>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0<m[5]>>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0<m[6]>>>0?1:0)|0,this._b=a[7]>>>0<m[7]>>>0?1:0;for(var r=0;r<8;r++){var u=l[r]+a[r],e=u&65535,n=u>>>16,i=((e*e>>>17)+e*n>>>15)+n*n,c=((u&4294901760)*u|0)+((u&65535)*u|0);f[r]=i^c}l[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,l[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,l[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,l[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,l[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,l[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,l[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,l[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}N.Rabbit=E._createHelper(s)}(),D.Rabbit})},E9nw:function(fe,z){fe.exports=function(){var y=document.getSelection();if(!y.rangeCount)return function(){};for(var D=document.activeElement,N=[],L=0;L<y.rangeCount;L++)N.push(y.getRangeAt(L));switch(D.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":D.blur();break;default:D=null;break}return y.removeAllRanges(),function(){y.type==="Caret"&&y.removeAllRanges(),y.rangeCount||N.forEach(function(E){y.addRange(E)}),D&&D.focus()}}},ELLl:function(fe,z,y){(function(D){D(y("VrN/"))})(function(D){var N={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},L=D.Pos;D.defineOption("autoCloseBrackets",!1,function(e,n,i){i&&i!=D.Init&&(e.removeKeyMap(I),e.state.closeBrackets=null),n&&(o(E(n,"pairs")),e.state.closeBrackets=n,e.addKeyMap(I))});function E(e,n){return n=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[n]!=null?e[n]:N[n]}var I={Backspace:s,Enter:t};function o(e){for(var n=0;n<e.length;n++){var i=e.charAt(n),c="'"+i+"'";I[c]||(I[c]=m(i))}}o(N.pairs+"`");function m(e){return function(n){return a(n,e)}}function f(e){var n=e.state.closeBrackets;if(!n||n.override)return n;var i=e.getModeAt(e.getCursor());return i.closeBrackets||n}function s(e){var n=f(e);if(!n||e.getOption("disableInput"))return D.Pass;for(var i=E(n,"pairs"),c=e.listSelections(),d=0;d<c.length;d++){if(!c[d].empty())return D.Pass;var h=r(e,c[d].head);if(!h||i.indexOf(h)%2!=0)return D.Pass}for(var d=c.length-1;d>=0;d--){var p=c[d].head;e.replaceRange("",L(p.line,p.ch-1),L(p.line,p.ch+1),"+delete")}}function t(e){var n=f(e),i=n&&E(n,"explode");if(!i||e.getOption("disableInput"))return D.Pass;for(var c=e.listSelections(),d=0;d<c.length;d++){if(!c[d].empty())return D.Pass;var h=r(e,c[d].head);if(!h||i.indexOf(h)%2!=0)return D.Pass}e.operation(function(){var p=e.lineSeparator()||`
|
|
|
`;e.replaceSelection(p+p,null),e.execCommand("goCharLeft"),c=e.listSelections();for(var g=0;g<c.length;g++){var v=c[g].head.line;e.indentLine(v,null,!0),e.indentLine(v+1,null,!0)}})}function l(e){var n=D.cmpPos(e.anchor,e.head)>0;return{anchor:new L(e.anchor.line,e.anchor.ch+(n?-1:1)),head:new L(e.head.line,e.head.ch+(n?1:-1))}}function a(e,n){var i=f(e);if(!i||e.getOption("disableInput"))return D.Pass;var c=E(i,"pairs"),d=c.indexOf(n);if(d==-1)return D.Pass;for(var h=E(i,"closeBefore"),p=E(i,"triples"),g=c.charAt(d+1)==n,v=e.listSelections(),A=d%2==0,x,b=0;b<v.length;b++){var w=v[b],S=w.head,T,C=e.getRange(S,L(S.line,S.ch+1));if(A&&!w.empty())T="surround";else if((g||!A)&&C==n)g&&u(e,S)?T="both":p.indexOf(n)>=0&&e.getRange(S,L(S.line,S.ch+3))==n+n+n?T="skipThree":T="skip";else if(g&&S.ch>1&&p.indexOf(n)>=0&&e.getRange(L(S.line,S.ch-2),S)==n+n){if(S.ch>2&&/\bstring/.test(e.getTokenTypeAt(L(S.line,S.ch-2))))return D.Pass;T="addFour"}else if(g){var O=S.ch==0?" ":e.getRange(L(S.line,S.ch-1),S);if(!D.isWordChar(C)&&O!=n&&!D.isWordChar(O))T="both";else return D.Pass}else if(A&&(C.length===0||/\s/.test(C)||h.indexOf(C)>-1))T="both";else return D.Pass;if(!x)x=T;else if(x!=T)return D.Pass}var _=d%2?c.charAt(d-1):n,M=d%2?n:c.charAt(d+1);e.operation(function(){if(x=="skip")e.execCommand("goCharRight");else if(x=="skipThree")for(var k=0;k<3;k++)e.execCommand("goCharRight");else if(x=="surround"){for(var R=e.getSelections(),k=0;k<R.length;k++)R[k]=_+R[k]+M;e.replaceSelections(R,"around"),R=e.listSelections().slice();for(var k=0;k<R.length;k++)R[k]=l(R[k]);e.setSelections(R)}else x=="both"?(e.replaceSelection(_+M,null),e.triggerElectric(_+M),e.execCommand("goCharLeft")):x=="addFour"&&(e.replaceSelection(_+_+_+_,"before"),e.execCommand("goCharRight"))})}function r(e,n){var i=e.getRange(L(n.line,n.ch-1),L(n.line,n.ch+1));return i.length==2?i:null}function u(e,n){var i=e.getTokenAt(L(n.line,n.ch+1));return/\bstring/.test(i.type)&&i.start==n.ch&&(n.ch==0||!/\bstring/.test(e.getTokenTypeAt(n)))}})},ELcG:function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){/** @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(N){var L=D,E=L.lib,I=E.WordArray,o=E.Hasher,m=L.algo,f=I.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]),s=I.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]),t=I.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]),l=I.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]),a=I.create([0,1518500249,1859775393,2400959708,2840853838]),r=I.create([1352829926,1548603684,1836072691,2053994217,0]),u=m.RIPEMD160=o.extend({_doReset:function(){this._hash=I.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,v){for(var A=0;A<16;A++){var x=v+A,b=g[x];g[x]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var w=this._hash.words,S=a.words,T=r.words,C=f.words,O=s.words,_=t.words,M=l.words,k,R,B,P,U,j,H,W,G,V;j=k=w[0],H=R=w[1],W=B=w[2],G=P=w[3],V=U=w[4];for(var Z,A=0;A<80;A+=1)Z=k+g[v+C[A]]|0,A<16?Z+=e(R,B,P)+S[0]:A<32?Z+=n(R,B,P)+S[1]:A<48?Z+=i(R,B,P)+S[2]:A<64?Z+=c(R,B,P)+S[3]:Z+=d(R,B,P)+S[4],Z=Z|0,Z=h(Z,_[A]),Z=Z+U|0,k=U,U=P,P=h(B,10),B=R,R=Z,Z=j+g[v+O[A]]|0,A<16?Z+=d(H,W,G)+T[0]:A<32?Z+=c(H,W,G)+T[1]:A<48?Z+=i(H,W,G)+T[2]:A<64?Z+=n(H,W,G)+T[3]:Z+=e(H,W,G)+T[4],Z=Z|0,Z=h(Z,M[A]),Z=Z+V|0,j=V,V=G,G=h(W,10),W=H,H=Z;Z=w[1]+B+G|0,w[1]=w[2]+P+V|0,w[2]=w[3]+U+j|0,w[3]=w[4]+k+H|0,w[4]=w[0]+R+W|0,w[0]=Z},_doFinalize:function(){var g=this._data,v=g.words,A=this._nDataBytes*8,x=g.sigBytes*8;v[x>>>5]|=128<<24-x%32,v[(x+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var b=this._hash,w=b.words,S=0;S<5;S++){var T=w[S];w[S]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return b},clone:function(){var g=o.clone.call(this);return g._hash=this._hash.clone(),g}});function e(p,g,v){return p^g^v}function n(p,g,v){return p&g|~p&v}function i(p,g,v){return(p|~g)^v}function c(p,g,v){return p&v|g&~v}function d(p,g,v){return p^(g|~v)}function h(p,g){return p<<g|p>>>32-g}L.RIPEMD160=o._createHelper(u),L.HmacRIPEMD160=o._createHmacHelper(u)}(Math),D.RIPEMD160})},EMyp:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("mFDi"),E=y("K4ya"),I=y("qJCg"),o=y("iLNv"),m=y("vZ6x"),f=["inBrush","outOfBrush"],s="__ecBrushSelect",t="__ecInBrushSelectEvent",l=D.PRIORITY.VISUAL.BRUSH;D.registerLayout(l,function(p,g,v){p.eachComponent({mainType:"brush"},function(A){v&&v.type==="takeGlobalCursor"&&A.setBrushOption(v.key==="brush"?v.brushOption:{brushType:!1})}),a(p)});function a(p){p.eachComponent({mainType:"brush"},function(g){var v=g.brushTargetManager=new m(g.option,p);v.setInputRanges(g.areas,p)})}D.registerVisual(l,function(p,g,v){var A=[],x,b;p.eachComponent({mainType:"brush"},function(w,S){var T={brushId:w.id,brushIndex:S,brushName:w.name,areas:N.clone(w.areas),selected:[]};A.push(T);var C=w.option,O=C.brushLink,_=[],M=[],k=[],R=0;S||(x=C.throttleType,b=C.throttleDelay);var B=N.map(w.areas,function(G){return c(N.defaults({boundingRect:d[G.brushType](G)},G))}),P=E.createVisualMappings(w.option,f,function(G){G.mappingMethod="fixed"});N.isArray(O)&&N.each(O,function(G){_[G]=1});function U(G){return O==="all"||_[G]}function j(G){return!!G.length}p.eachSeries(function(G,V){var Z=k[V]=[];G.subType==="parallel"?H(G,V,Z):W(G,V,Z)});function H(G,V){var Z=G.coordinateSystem;R|=Z.hasAxisBrushed(),U(V)&&Z.eachActiveState(G.getData(),function(Y,Q){Y==="active"&&(M[Q]=1)})}function W(G,V,Z){var Y=n(G);if(!Y||i(w,V))return;if(N.each(B,function(oe){Y[oe.brushType]&&w.brushTargetManager.controlSeries(oe,G,p)&&Z.push(oe),R|=j(Z)}),U(V)&&j(Z)){var Q=G.getData();Q.each(function(oe){e(Y,Z,Q,oe)&&(M[oe]=1)})}}p.eachSeries(function(G,V){var Z={seriesId:G.id,seriesIndex:V,seriesName:G.name,dataIndex:[]};T.selected.push(Z);var Y=n(G),Q=k[V],oe=G.getData(),ue=U(V)?function(Le){return M[Le]?(Z.dataIndex.push(oe.getRawIndex(Le)),"inBrush"):"outOfBrush"}:function(Le){return e(Y,Q,oe,Le)?(Z.dataIndex.push(oe.getRawIndex(Le)),"inBrush"):"outOfBrush"};(U(V)?R:j(Q))&&E.applyVisual(f,P,oe,ue)})}),r(g,x,b,A,v)});function r(p,g,v,A,x){if(!x)return;var b=p.getZr();if(b[t])return;b[s]||(b[s]=u);var w=o.createOrUpdate(b,s,v,g);w(p,A)}function u(p,g){if(!p.isDisposed()){var v=p.getZr();v[t]=!0,p.dispatchAction({type:"brushSelect",batch:g}),v[t]=!1}}function e(p,g,v,A){for(var x=0,b=g.length;x<b;x++){var w=g[x];if(p[w.brushType](A,v,w.selectors,w))return!0}}function n(p){var g=p.brushSelector;if(N.isString(g)){var v=[];return N.each(I,function(x,b){v[b]=function(w,S,T,C){var O=S.getItemLayout(w);return x[g](O,T,C)}}),v}else if(N.isFunction(g)){var A={};return N.each(I,function(x,b){A[b]=g}),A}return g}function i(p,g){var v=p.option.seriesIndex;return v!=null&&v!=="all"&&(N.isArray(v)?N.indexOf(v,g)<0:g!==v)}function c(p){var g=p.selectors={};return N.each(I[p.brushType],function(v,A){g[A]=function(x){return v(x,g,p)}}),p}var d={lineX:N.noop,lineY:N.noop,rect:function(p){return h(p.range)},polygon:function(p){for(var g,v=p.range,A=0,x=v.length;A<x;A++){g=g||[[Infinity,-Infinity],[Infinity,-Infinity]];var b=v[A];b[0]<g[0][0]&&(g[0][0]=b[0]),b[0]>g[0][1]&&(g[0][1]=b[0]),b[1]<g[1][0]&&(g[1][0]=b[1]),b[1]>g[1][1]&&(g[1][1]=b[1])}return g&&h(g)}};function h(p){return new L(p[0][0],p[1][0],p[0][1]-p[0][0],p[1][1]-p[1][0])}z.layoutCovers=a},ERHi:function(fe,z,y){var D=y("ProS");y("Z6js"),y("R4Th");var N=y("f5Yq"),L=y("h8O9");D.registerVisual(N("effectScatter","circle")),D.registerLayout(L("effectScatter"))},ETIr:function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.WordArray,I=N.enc,o=I.Base64={stringify:function(s){var t=s.words,l=s.sigBytes,a=this._map;s.clamp();for(var r=[],u=0;u<l;u+=3)for(var e=t[u>>>2]>>>24-u%4*8&255,n=t[u+1>>>2]>>>24-(u+1)%4*8&255,i=t[u+2>>>2]>>>24-(u+2)%4*8&255,c=e<<16|n<<8|i,d=0;d<4&&u+d*.75<l;d++)r.push(a.charAt(c>>>6*(3-d)&63));var h=a.charAt(64);if(h)for(;r.length%4;)r.push(h);return r.join("")},parse:function(s){var t=s.length,l=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var r=0;r<l.length;r++)a[l.charCodeAt(r)]=r}var u=l.charAt(64);if(u){var e=s.indexOf(u);e!==-1&&(t=e)}return m(s,t,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(f,s,t){for(var l=[],a=0,r=0;r<s;r++)if(r%4){var u=t[f.charCodeAt(r-1)]<<r%4*2,e=t[f.charCodeAt(r)]>>>6-r%4*2,n=u|e;l[a>>>2]|=n<<24-a%4*8,a++}return E.create(l,a)}}(),D.enc.Base64})},EXcs:function(fe,z,y){"use strict";var D=function(){return{height:0,opacity:0}},N=function(m){return{height:m.scrollHeight,opacity:1}},L=function(m){return{height:m.offsetHeight}},E=function(m,f){return f.propertyName==="height"},I={motionName:"ant-motion-collapse",onAppearStart:D,onEnterStart:D,onAppearActive:N,onEnterActive:N,onLeaveStart:L,onLeaveActive:D,onAppearEnd:E,onEnterEnd:E,onLeaveEnd:E,motionDeadline:500};z.a=I},Em2t:function(fe,z,y){var D=y("bahg"),N=y("quyA"),L=y("0JQy");function E(I){return N(I)?L(I):D(I)}fe.exports=E},Ez2D:function(fe,z,y){var D=y("bYtY"),N=y("4NO4");function L(E,I){var o=[],m=E.seriesIndex,f;if(m==null||!(f=I.getSeriesByIndex(m)))return{point:[]};var s=f.getData(),t=N.queryDataIndex(s,E);if(t==null||t<0||D.isArray(t))return{point:[]};var l=s.getItemGraphicEl(t),a=f.coordinateSystem;if(f.getTooltipPosition)o=f.getTooltipPosition(t)||[];else if(a&&a.dataToPoint)o=a.dataToPoint(s.getValues(D.map(a.dimensions,function(u){return s.mapDimension(u)}),t,!0))||[];else if(l){var r=l.getBoundingRect().clone();r.applyTransform(l.transform),o=[r.x+r.width/2,r.y+r.height/2]}return{point:o,el:l}}fe.exports=L},"F+F2":function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){return function(){if(typeof ArrayBuffer!="function")return;var N=D,L=N.lib,E=L.WordArray,I=E.init,o=E.init=function(m){if(m instanceof ArrayBuffer&&(m=new Uint8Array(m)),(m instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&m instanceof Uint8ClampedArray||m instanceof Int16Array||m instanceof Uint16Array||m instanceof Int32Array||m instanceof Uint32Array||m instanceof Float32Array||m instanceof Float64Array)&&(m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength)),m instanceof Uint8Array){for(var f=m.byteLength,s=[],t=0;t<f;t++)s[t>>>2]|=m[t]<<24-t%4*8;I.call(this,s,f)}else I.apply(this,arguments)};o.prototype=E}(),D.lib.WordArray})},F0hE:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("ca2m"),E=y("Qxkt"),I=y("ICMv"),o=L.valueAxis;function m(t,l){return N.defaults({show:l},t)}var f=D.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),l=this.get("splitNumber"),a=this.get("scale"),r=this.get("axisLine"),u=this.get("axisTick"),e=this.get("axisType"),n=this.get("axisLabel"),i=this.get("name"),c=this.get("name.show"),d=this.get("name.formatter"),h=this.get("nameGap"),p=this.get("triggerEvent"),g=N.map(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var A=i;if(v.color!=null&&(A=N.defaults({color:v.color},i)),v=N.merge(N.clone(v),{boundaryGap:t,splitNumber:l,scale:a,axisLine:r,axisTick:u,axisType:e,axisLabel:n,name:v.text,nameLocation:"end",nameGap:h,nameTextStyle:A,triggerEvent:p},!1),c||(v.name=""),typeof d=="string"){var x=v.name;v.name=d.replace("{value}",x!=null?x:"")}else typeof d=="function"&&(v.name=d(v.name,v));var b=N.extend(new E(v,null,this.ecModel),I);return b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this.getIndicatorModels=function(){return g}},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:N.merge({lineStyle:{color:"#bbb"}},o.axisLine),axisLabel:m(o.axisLabel,!1),axisTick:m(o.axisTick,!1),axisType:"interval",splitLine:m(o.splitLine,!0),splitArea:m(o.splitArea,!0),indicator:[]}}),s=f;fe.exports=s},F5Ls:function(fe,z){var y={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function D(N,L){if(N==="china"){var E=y[L.name];if(E){var I=L.center;I[0]+=E[0]/10.5,I[1]+=-E[1]/(10.5/.75)}}}fe.exports=D},F7hV:function(fe,z,y){var D=y("MBQ8"),N=D.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var L=this.get("progressiveThreshold"),E=this.get("largeThreshold");return E>L&&(L=E),L},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}}});fe.exports=N},F9bG:function(fe,z,y){var D=y("bYtY"),N=y("ItGF"),L=y("4NO4"),E=L.makeInner,I=E(),o=D.each;function m(u,e,n){if(N.node)return;var i=e.getZr();I(i).records||(I(i).records={}),f(i,e);var c=I(i).records[u]||(I(i).records[u]={});c.handler=n}function f(u,e){if(I(u).initialized)return;I(u).initialized=!0,n("click",D.curry(l,"click")),n("mousemove",D.curry(l,"mousemove")),n("globalout",t);function n(i,c){u.on(i,function(d){var h=a(e);o(I(u).records,function(p){p&&c(p,d,h.dispatchAction)}),s(h.pendings,e)})}}function s(u,e){var n=u.showTip.length,i=u.hideTip.length,c;n?c=u.showTip[n-1]:i&&(c=u.hideTip[i-1]),c&&(c.dispatchAction=null,e.dispatchAction(c))}function t(u,e,n){u.handler("leave",null,n)}function l(u,e,n,i){e.handler(u,n,i)}function a(u){var e={showTip:[],hideTip:[]},n=function(i){var c=e[i.type];c?c.push(i):(i.dispatchAction=n,u.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function r(u,e){if(N.node)return;var n=e.getZr(),i=(I(n).records||{})[u];i&&(I(n).records[u]=null)}z.register=m,z.unregister=r},FBjb:function(fe,z,y){var D=y("bYtY"),N=y("oVpE"),L=N.createSymbol,E=y("IwbS"),I=y("OELB"),o=I.parsePercent,m=y("x3X8"),f=m.getDefaultLabel;function s(h,p,g){E.Group.call(this),this.updateData(h,p,g)}var t=s.prototype,l=s.getSymbolSize=function(h,p){var g=h.getItemVisual(p,"symbolSize");return g instanceof Array?g.slice():[+g,+g]};function a(h){return[h[0]/2,h[1]/2]}function r(h,p){this.parent.drift(h,p)}t._createSymbol=function(h,p,g,v,A){this.removeAll();var x=p.getItemVisual(g,"color"),b=L(h,-1,-1,2,2,x,A);b.attr({z2:100,culling:!0,scale:a(v)}),b.drift=r,this._symbolType=h,this.add(b)},t.stopSymbolAnimation=function(h){this.childAt(0).stopAnimation(h)},t.getSymbolPath=function(){return this.childAt(0)},t.getScale=function(){return this.childAt(0).scale},t.highlight=function(){this.childAt(0).trigger("emphasis")},t.downplay=function(){this.childAt(0).trigger("normal")},t.setZ=function(h,p){var g=this.childAt(0);g.zlevel=h,g.z=p},t.setDraggable=function(h){var p=this.childAt(0);p.draggable=h,p.cursor=h?"move":p.cursor},t.updateData=function(h,p,g){this.silent=!1;var v=h.getItemVisual(p,"symbol")||"circle",A=h.hostModel,x=l(h,p),b=v!==this._symbolType;if(b){var w=h.getItemVisual(p,"symbolKeepAspect");this._createSymbol(v,h,p,x,w)}else{var S=this.childAt(0);S.silent=!1,E.updateProps(S,{scale:a(x)},A,p)}if(this._updateCommon(h,p,x,g),b){var S=this.childAt(0),T=g&&g.fadeIn,C={scale:S.scale.slice()};T&&(C.style={opacity:S.style.opacity}),S.scale=[0,0],T&&(S.style.opacity=0),E.initProps(S,C,A,p)}this._seriesModel=A};var u=["itemStyle"],e=["emphasis","itemStyle"],n=["label"],i=["emphasis","label"];t._updateCommon=function(h,p,g,v){var A=this.childAt(0),x=h.hostModel,b=h.getItemVisual(p,"color");A.type!=="image"?A.useStyle({strokeNoScale:!0}):A.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var w=v&&v.itemStyle,S=v&&v.hoverItemStyle,T=v&&v.symbolOffset,C=v&&v.labelModel,O=v&&v.hoverLabelModel,_=v&&v.hoverAnimation,M=v&&v.cursorStyle;if(!v||h.hasItemOption){var k=v&&v.itemModel?v.itemModel:h.getItemModel(p);w=k.getModel(u).getItemStyle(["color"]),S=k.getModel(e).getItemStyle(),T=k.getShallow("symbolOffset"),C=k.getModel(n),O=k.getModel(i),_=k.getShallow("hoverAnimation"),M=k.getShallow("cursor")}else S=D.extend({},S);var R=A.style,B=h.getItemVisual(p,"symbolRotate");A.attr("rotation",(B||0)*Math.PI/180||0),T&&A.attr("position",[o(T[0],g[0]),o(T[1],g[1])]),M&&A.attr("cursor",M),A.setColor(b,v&&v.symbolInnerColor),A.setStyle(w);var P=h.getItemVisual(p,"opacity");P!=null&&(R.opacity=P);var U=h.getItemVisual(p,"liftZ"),j=A.__z2Origin;U!=null?j==null&&(A.__z2Origin=A.z2,A.z2+=U):j!=null&&(A.z2=j,A.__z2Origin=null);var H=v&&v.useNameLabel;E.setLabelStyle(R,S,C,O,{labelFetcher:x,labelDataIndex:p,defaultText:W,isRectText:!0,autoColor:b});function W(G,V){return H?h.getName(G):f(h,G)}A.__symbolOriginalScale=a(g),A.hoverStyle=S,A.highDownOnUpdate=_&&x.isAnimationEnabled()?c:null,E.setHoverStyle(A)};function c(h,p){if(this.incremental||this.useHoverLayer)return;if(p==="emphasis"){var g=this.__symbolOriginalScale,v=g[1]/g[0],A={scale:[Math.max(g[0]*1.1,g[0]+3),Math.max(g[1]*1.1,g[1]+3*v)]};this.animateTo(A,400,"elasticOut")}else p==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}t.fadeOut=function(h,p){var g=this.childAt(0);this.silent=g.silent=!0,!(p&&p.keepLabel)&&(g.style.text=null),E.updateProps(g,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,h)},D.inherits(s,E.Group);var d=s;fe.exports=d},FGaS:function(fe,z,y){var D=y("ProS"),N=y("IwbS"),L=y("bYtY"),E=y("oVpE");function I(m){return L.isArray(m)||(m=[+m,+m]),m}var o=D.extendChartView({type:"radar",render:function(m,f,s){var t=m.coordinateSystem,l=this.group,a=m.getData(),r=this._data;function u(i,c){var d=i.getItemVisual(c,"symbol")||"circle",h=i.getItemVisual(c,"color");if(d==="none")return;var p=I(i.getItemVisual(c,"symbolSize")),g=E.createSymbol(d,-1,-1,2,2,h);return g.attr({style:{strokeNoScale:!0},z2:100,scale:[p[0]/2,p[1]/2]}),g}function e(i,c,d,h,p,g){d.removeAll();for(var v=0;v<c.length-1;v++){var A=u(h,p);A&&(A.__dimIdx=v,i[v]?(A.attr("position",i[v]),N[g?"initProps":"updateProps"](A,{position:c[v]},m,p)):A.attr("position",c[v]),d.add(A))}}function n(i){return L.map(i,function(c){return[t.cx,t.cy]})}a.diff(r).add(function(i){var c=a.getItemLayout(i);if(!c)return;var d=new N.Polygon,h=new N.Polyline,p={shape:{points:c}};d.shape.points=n(c),h.shape.points=n(c),N.initProps(d,p,m,i),N.initProps(h,p,m,i);var g=new N.Group,v=new N.Group;g.add(h),g.add(d),g.add(v),e(h.shape.points,c,v,a,i,!0),a.setItemGraphicEl(i,g)}).update(function(i,c){var d=r.getItemGraphicEl(c),h=d.childAt(0),p=d.childAt(1),g=d.childAt(2),v={shape:{points:a.getItemLayout(i)}};if(!v.shape.points)return;e(h.shape.points,v.shape.points,g,a,i,!1),N.updateProps(h,v,m),N.updateProps(p,v,m),a.setItemGraphicEl(i,d)}).remove(function(i){l.remove(r.getItemGraphicEl(i))}).execute(),a.eachItemGraphicEl(function(i,c){var d=a.getItemModel(c),h=i.childAt(0),p=i.childAt(1),g=i.childAt(2),v=a.getItemVisual(c,"color");l.add(i),h.useStyle(L.defaults(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:v})),h.hoverStyle=d.getModel("emphasis.lineStyle").getLineStyle();var A=d.getModel("areaStyle"),x=d.getModel("emphasis.areaStyle"),b=A.isEmpty()&&A.parentModel.isEmpty(),w=x.isEmpty()&&x.parentModel.isEmpty();w=w&&b,p.ignore=b,p.useStyle(L.defaults(A.getAreaStyle(),{fill:v,opacity:.7})),p.hoverStyle=x.getAreaStyle();var S=d.getModel("itemStyle").getItemStyle(["color"]),T=d.getModel("emphasis.itemStyle").getItemStyle(),C=d.getModel("label"),O=d.getModel("emphasis.label");g.eachChild(function(_){_.setStyle(S),_.hoverStyle=L.clone(T);var M=a.get(a.dimensions[_.__dimIdx],c);(M==null||isNaN(M))&&(M=""),N.setLabelStyle(_.style,_.hoverStyle,C,O,{labelFetcher:a.hostModel,labelDataIndex:c,labelDimIndex:_.__dimIdx,defaultText:M,autoColor:v,isRectText:!0})}),i.highDownOnUpdate=function(_,M){p.attr("ignore",M==="emphasis"?w:b)},N.setHoverStyle(i)}),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});fe.exports=o},FH2Y:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("ZMnZ"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},FJo9:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("8txm"),E=y.n(L),I=y("MXD1")},FNN5:function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L=y("+rIm"),E=y("Znkb"),I=["axisLine","axisTickLabel","axisName"],o=["splitLine","splitArea","minorSplitLine"],m=E.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(s,t){if(this.group.removeAll(),!s.get("show"))return;var l=s.axis,a=l.polar,r=a.getAngleAxis(),u=l.getTicksCoords(),e=l.getMinorTicksCoords(),n=r.getExtent()[0],i=l.getExtent(),c=f(a,s,n),d=new L(s,c);D.each(I,d.add,d),this.group.add(d.getGroup()),D.each(o,function(h){s.get(h+".show")&&!l.scale.isBlank()&&this["_"+h](s,a,n,i,u,e)},this)},_splitLine:function(s,t,l,a,r){var u=s.getModel("splitLine"),e=u.getModel("lineStyle"),n=e.get("color"),i=0;n=n instanceof Array?n:[n];for(var c=[],d=0;d<r.length;d++){var h=i++%n.length;c[h]=c[h]||[],c[h].push(new N.Circle({shape:{cx:t.cx,cy:t.cy,r:r[d].coord}}))}for(var d=0;d<c.length;d++)this.group.add(N.mergePath(c[d],{style:D.defaults({stroke:n[d%n.length],fill:null},e.getLineStyle()),silent:!0}))},_minorSplitLine:function(s,t,l,a,r,u){if(!u.length)return;for(var e=s.getModel("minorSplitLine"),n=e.getModel("lineStyle"),i=[],c=0;c<u.length;c++)for(var d=0;d<u[c].length;d++)i.push(new N.Circle({shape:{cx:t.cx,cy:t.cy,r:u[c][d].coord}}));this.group.add(N.mergePath(i,{style:D.defaults({fill:null},n.getLineStyle()),silent:!0}))},_splitArea:function(s,t,l,a,r){if(!r.length)return;var u=s.getModel("splitArea"),e=u.getModel("areaStyle"),n=e.get("color"),i=0;n=n instanceof Array?n:[n];for(var c=[],d=r[0].coord,h=1;h<r.length;h++){var p=i++%n.length;c[p]=c[p]||[],c[p].push(new N.Sector({shape:{cx:t.cx,cy:t.cy,r0:d,r:r[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=r[h].coord}for(var h=0;h<c.length;h++)this.group.add(N.mergePath(c[h],{style:D.defaults({fill:n[h%n.length]},e.getAreaStyle()),silent:!0}))}});function f(s,t,l){return{position:[s.cx,s.cy],rotation:l/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}fe.exports=m},FUi9:function(fe,z,y){var D=y("bYtY"),N=y("MwEJ"),L=y("aX7z"),E=y("ICMv"),I=y("Qxkt"),o=y("+TT/"),m=o.getLayoutRect;z.getLayoutRect=o.getLayoutRect;var f=y("7hqr"),s=f.enableDataStack,t=f.isDimensionStacked,l=f.getStackedDimension,a=y("hi0g");z.completeDimensions=a;var r=y("sdST");z.createDimensions=r;var u=y("oVpE");z.createSymbol=u.createSymbol;function e(d){return N(d.getSource(),d)}var n={isDimensionStacked:t,enableDataStack:s,getStackedDimension:l};function i(d,h){var p=h;I.isInstance(h)||(p=new I(h),D.mixin(p,E));var g=L.createScaleByModel(p);return g.setExtent(d[0],d[1]),L.niceScaleExtent(g,p),g}function c(d){D.mixin(d,E)}z.createList=e,z.dataStack=n,z.createScale=i,z.mixinAxisModelCommonMethods=c},"Fa/5":function(fe,z,y){var D=y("ProS");y("y2l5"),y("q/+u");var N=y("f5Yq"),L=y("h8O9");y("Ae16"),D.registerVisual(N("scatter","circle")),D.registerLayout(L("scatter"))},FhB9:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},"Fm1+":function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("a7Wl")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="CaretUpOutlined";var f=E.forwardRef(m);z.default=f},Fofx:function(fe,z){var y=typeof Float32Array=="undefined"?Array:Float32Array;function D(){var t=new y(6);return N(t),t}function N(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function L(t,l){return t[0]=l[0],t[1]=l[1],t[2]=l[2],t[3]=l[3],t[4]=l[4],t[5]=l[5],t}function E(t,l,a){var r=l[0]*a[0]+l[2]*a[1],u=l[1]*a[0]+l[3]*a[1],e=l[0]*a[2]+l[2]*a[3],n=l[1]*a[2]+l[3]*a[3],i=l[0]*a[4]+l[2]*a[5]+l[4],c=l[1]*a[4]+l[3]*a[5]+l[5];return t[0]=r,t[1]=u,t[2]=e,t[3]=n,t[4]=i,t[5]=c,t}function I(t,l,a){return t[0]=l[0],t[1]=l[1],t[2]=l[2],t[3]=l[3],t[4]=l[4]+a[0],t[5]=l[5]+a[1],t}function o(t,l,a){var r=l[0],u=l[2],e=l[4],n=l[1],i=l[3],c=l[5],d=Math.sin(a),h=Math.cos(a);return t[0]=r*h+n*d,t[1]=-r*d+n*h,t[2]=u*h+i*d,t[3]=-u*d+h*i,t[4]=h*e+d*c,t[5]=h*c-d*e,t}function m(t,l,a){var r=a[0],u=a[1];return t[0]=l[0]*r,t[1]=l[1]*u,t[2]=l[2]*r,t[3]=l[3]*u,t[4]=l[4]*r,t[5]=l[5]*u,t}function f(t,l){var a=l[0],r=l[2],u=l[4],e=l[1],n=l[3],i=l[5],c=a*n-e*r;return c?(c=1/c,t[0]=n*c,t[1]=-e*c,t[2]=-r*c,t[3]=a*c,t[4]=(r*i-n*u)*c,t[5]=(e*u-a*i)*c,t):null}function s(t){var l=D();return L(l,t),l}z.create=D,z.identity=N,z.copy=L,z.mul=E,z.translate=I,z.rotate=o,z.scale=m,z.invert=f,z.clone=s},Fv0C:function(fe,z,y){"use strict";function D(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(n){return typeof n}:D=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},D(u)}Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var N=s(y("Lo0S")),L=y("vewr"),E=s(y("8CQX")),I=m(y("mHUz")),o=s(y("GdRQ"));function m(u){return u&&u.__esModule?u:{default:u}}function f(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return f=function(){return u},u}function s(u){if(u&&u.__esModule)return u;if(u===null||D(u)!=="object"&&typeof u!="function")return{default:u};var e=f();if(e&&e.has(u))return e.get(u);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in u)if(Object.prototype.hasOwnProperty.call(u,c)){var d=i?Object.getOwnPropertyDescriptor(u,c):null;d&&(d.get||d.set)?Object.defineProperty(n,c,d):n[c]=u[c]}return n.default=u,e&&e.set(u,n),n}function t(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}function l(u,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(u,i.key,i)}}function a(u,e,n){return e&&l(u.prototype,e),n&&l(u,n),u}var r=function(){function u(e){t(this,u),this._target=e||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 a(u,[{key:"_sendKeyEvent",value:function(n,i,c){if(c)this._keyDownList[i]=n;else{if(!(i in this._keyDownList))return;delete this._keyDownList[i]}N.Debug("onkeyevent "+(c?"down":"up")+", keysym: "+n,", code: "+i),this.onkeyevent(n,i,c)}},{key:"_getKeyCode",value:function(n){var i=E.getKeycode(n);if(i!=="Unidentified")return i;if(n.keyCode&&n.type!=="keypress"&&n.keyCode!==229)return"Platform"+n.keyCode;if(n.keyIdentifier){if(n.keyIdentifier.substr(0,2)!=="U+")return n.keyIdentifier;var c=parseInt(n.keyIdentifier.substr(2),16),d=String.fromCharCode(c).toUpperCase();return"Platform"+d.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(n){var i=this._getKeyCode(n),c=E.getKeysym(n);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),i==="AltRight"&&n.timeStamp-this._altGrCtrlTime<50?c=I.default.XK_ISO_Level3_Shift:this._sendKeyEvent(I.default.XK_Control_L,"ControlLeft",!0)),i==="Unidentified"){c&&(this._sendKeyEvent(c,i,!0),this._sendKeyEvent(c,i,!1)),(0,L.stopEvent)(n);return}if(o.isMac()||o.isIOS())switch(c){case I.default.XK_Super_L:c=I.default.XK_Alt_L;break;case I.default.XK_Super_R:c=I.default.XK_Super_L;break;case I.default.XK_Alt_L:c=I.default.XK_Mode_switch;break;case I.default.XK_Alt_R:c=I.default.XK_ISO_Level3_Shift;break}if(i in this._keyDownList&&(c=this._keyDownList[i]),(o.isMac()||o.isIOS())&&i==="CapsLock"){this._sendKeyEvent(I.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(I.default.XK_Caps_Lock,"CapsLock",!1),(0,L.stopEvent)(n);return}if(!c&&(!n.key||o.isIE()||o.isEdge())){this._pendingKey=i,setTimeout(this._handleKeyPressTimeout.bind(this),10,n);return}if(this._pendingKey=null,(0,L.stopEvent)(n),i==="ControlLeft"&&o.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=n.timeStamp;return}this._sendKeyEvent(c,i,!0)}},{key:"_handleKeyPress",value:function(n){if((0,L.stopEvent)(n),this._pendingKey===null)return;var i=this._getKeyCode(n),c=E.getKeysym(n);if(i!=="Unidentified"&&i!=this._pendingKey)return;if(i=this._pendingKey,this._pendingKey=null,!c){N.Info("keypress with no keysym:",n);return}this._sendKeyEvent(c,i,!0)}},{key:"_handleKeyPressTimeout",value:function(n){if(this._pendingKey===null)return;var i,c=this._pendingKey;if(this._pendingKey=null,n.keyCode>=48&&n.keyCode<=57)i=n.keyCode;else if(n.keyCode>=65&&n.keyCode<=90){var d=String.fromCharCode(n.keyCode);n.shiftKey?d=d.toUpperCase():d=d.toLowerCase(),i=d.charCodeAt()}else i=0;this._sendKeyEvent(i,c,!0)}},{key:"_handleKeyUp",value:function(n){(0,L.stopEvent)(n);var i=this._getKeyCode(n);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(I.default.XK_Control_L,"ControlLeft",!0)),(o.isMac()||o.isIOS())&&i==="CapsLock"){this._sendKeyEvent(I.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(I.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[i],i,!1),o.isWindows()&&(i==="ShiftLeft"||i==="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(I.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){N.Debug(">> Keyboard.allKeysUp");for(var n in this._keyDownList)this._sendKeyEvent(this._keyDownList[n],n,!1);N.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(n){if(n.skipCheckAlt)return;if(n.altKey)return;var i=this._target,c=this._keyDownList;["AltLeft","AltRight"].forEach(function(d){if(!(d in c))return;var h=new KeyboardEvent("keyup",{key:c[d],code:d});h.skipCheckAlt=!0,i.dispatchEvent(h)})}},{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),o.isWindows()&&o.isFirefox()){var n=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(i){return document.addEventListener(i,n,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(o.isWindows()&&o.isFirefox()){var n=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(i){return document.removeEventListener(i,n)})}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()}}]),u}();z.default=r},FxDU:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.createSensor=void 0;var D=y("QO+J"),N=y("j5sG"),L=typeof ResizeObserver!="undefined"?N.createSensor:D.createSensor;z.createSensor=L},GGyF:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("wgjA")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="LeftOutlined";var f=E.forwardRef(m);z.default=f},GIiI:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="PoweroffOutlined";var m=z.a=N.forwardRef(o)},GMDS:function(fe,z,y){var D=y("bYtY"),N=y("4NgU"),L=y("jkPA"),E=N.prototype,I=N.extend({type:"ordinal",init:function(m,f){(!m||D.isArray(m))&&(m=new L({categories:m})),this._ordinalMeta=m,this._extent=f||[0,m.categories.length-1]},parse:function(m){return typeof m=="string"?this._ordinalMeta.getOrdinal(m):Math.round(m)},contain:function(m){return m=this.parse(m),E.contain.call(this,m)&&this._ordinalMeta.categories[m]!=null},normalize:function(m){return E.normalize.call(this,this.parse(m))},scale:function(m){return Math.round(E.scale.call(this,m))},getTicks:function(){for(var m=[],f=this._extent,s=f[0];s<=f[1];)m.push(s),s++;return m},getLabel:function(m){if(!this.isBlank())return this._ordinalMeta.categories[m]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(m,f){this.unionExtent(m.getApproximateExtent(f))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:D.noop,niceExtent:D.noop});I.create=function(){return new I};var o=I;fe.exports=o},GQ8N:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.toUnsigned32bit=D,z.toSigned32bit=N;function D(L){return L>>>0}function N(L){return L|0}},GRuw:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("lPiR"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.WordArray,I=N.algo,o=I.SHA256,m=I.SHA224=o.extend({_doReset:function(){this._hash=new E.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var s=o._doFinalize.call(this);return s.sigBytes-=4,s}});N.SHA224=o._createHelper(m),N.HmacSHA224=o._createHmacHelper(m)}(),D.SHA224})},GUcZ:function(fe,z,y){"use strict";var D=y("fWQN"),N=y("mtLc"),L=function(){function tt(){Object(D.a)(this,tt)}return Object(N.a)(tt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Te,Me){return Te.__proto__=Me,Te},Object.assign=Object.assign||function(Te){if(Te==null)throw new TypeError("Cannot convert undefined or null to object");for(var Me=Object(Te),Xe=1;Xe<arguments.length;Xe++){var at=arguments[Xe];if(at!=null)for(var zt in at)at.hasOwnProperty(zt)&&(Me[zt]=at[zt])}return Me},typeof self.Promise!="function"&&y("E2g8").polyfill()}}]),tt}();L.install();var E=L,I=y("+qE3"),o=y.n(I),m=function(){function tt(){Object(D.a)(this,tt)}return Object(N.a)(tt,null,[{key:"e",value:function(Te,Me){(!Te||tt.FORCE_GLOBAL_TAG)&&(Te=tt.GLOBAL_TAG);var Xe="[".concat(Te,"] > ").concat(Me);if(tt.ENABLE_CALLBACK&&tt.emitter.emit("log","error",Xe),!tt.ENABLE_ERROR)return;console.error?console.error(Xe):console.warn?console.warn(Xe):console.log(Xe)}},{key:"i",value:function(Te,Me){(!Te||tt.FORCE_GLOBAL_TAG)&&(Te=tt.GLOBAL_TAG);var Xe="[".concat(Te,"] > ").concat(Me);if(tt.ENABLE_CALLBACK&&tt.emitter.emit("log","info",Xe),!tt.ENABLE_INFO)return;console.info?console.info(Xe):console.log(Xe)}},{key:"w",value:function(Te,Me){(!Te||tt.FORCE_GLOBAL_TAG)&&(Te=tt.GLOBAL_TAG);var Xe="[".concat(Te,"] > ").concat(Me);if(tt.ENABLE_CALLBACK&&tt.emitter.emit("log","warn",Xe),!tt.ENABLE_WARN)return;console.warn?console.warn(Xe):console.log(Xe)}},{key:"d",value:function(Te,Me){(!Te||tt.FORCE_GLOBAL_TAG)&&(Te=tt.GLOBAL_TAG);var Xe="[".concat(Te,"] > ").concat(Me);if(tt.ENABLE_CALLBACK&&tt.emitter.emit("log","debug",Xe),!tt.ENABLE_DEBUG)return;console.debug?console.debug(Xe):console.log(Xe)}},{key:"v",value:function(Te,Me){(!Te||tt.FORCE_GLOBAL_TAG)&&(Te=tt.GLOBAL_TAG);var Xe="[".concat(Te,"] > ").concat(Me);if(tt.ENABLE_CALLBACK&&tt.emitter.emit("log","verbose",Xe),!tt.ENABLE_VERBOSE)return;console.log(Xe)}}]),tt}();m.GLOBAL_TAG="flv.js",m.FORCE_GLOBAL_TAG=!1,m.ENABLE_ERROR=!0,m.ENABLE_INFO=!0,m.ENABLE_WARN=!0,m.ENABLE_DEBUG=!0,m.ENABLE_VERBOSE=!0,m.ENABLE_CALLBACK=!1,m.emitter=new o.a;var f=m,s=function(){function tt(){Object(D.a)(this,tt),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(N.a)(tt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Te){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Te,this._totalBytes+=Te):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Te,this._totalBytes+=Te):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Te,this._totalBytes+=Te,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Te=(this._now()-this._lastCheckpoint)/1e3;return Te==0&&(Te=1),this._intervalBytes/Te/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 Te=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Te/1024}}]),tt}(),t=s,l=y("yKVA"),a=y("879j"),r=function(){function tt(nt){Object(D.a)(this,tt),this._message=nt}return Object(N.a)(tt,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),tt}(),u=function(tt){Object(l.a)(Te,tt);var nt=Object(a.a)(Te);function Te(Me){return Object(D.a)(this,Te),nt.call(this,Me)}return Object(N.a)(Te,[{key:"name",get:function(){return"IllegalStateException"}}]),Te}(r),e=function(tt){Object(l.a)(Te,tt);var nt=Object(a.a)(Te);function Te(Me){return Object(D.a)(this,Te),nt.call(this,Me)}return Object(N.a)(Te,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Te}(r),n=function(tt){Object(l.a)(Te,tt);var nt=Object(a.a)(Te);function Te(Me){return Object(D.a)(this,Te),nt.call(this,Me)}return Object(N.a)(Te,[{key:"name",get:function(){return"NotImplementedException"}}]),Te}(r),i={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},c={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},d=function(){function tt(nt){Object(D.a)(this,tt),this._type=nt||"undefined",this._status=i.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(N.a)(tt,[{key:"destroy",value:function(){this._status=i.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===i.kConnecting||this._status===i.kBuffering}},{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(Te){this._onContentLengthKnown=Te}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Te){this._onURLRedirect=Te}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Te){this._onDataArrival=Te}},{key:"onError",get:function(){return this._onError},set:function(Te){this._onError=Te}},{key:"onComplete",get:function(){return this._onComplete},set:function(Te){this._onComplete=Te}},{key:"open",value:function(Te,Me){throw new n("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new n("Unimplemented abstract function!")}}]),tt}(),h=y("w4Tj"),p=y("oZsa"),g={};function v(){var tt=self.navigator.userAgent.toLowerCase(),nt=/(edge)\/([\w.]+)/.exec(tt)||/(opr)[\/]([\w.]+)/.exec(tt)||/(chrome)[ \/]([\w.]+)/.exec(tt)||/(iemobile)[\/]([\w.]+)/.exec(tt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(tt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(tt)||/(webkit)[ \/]([\w.]+)/.exec(tt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(tt)||/(msie) ([\w.]+)/.exec(tt)||tt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(tt)||tt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(tt)||[],Te=/(ipad)/.exec(tt)||/(ipod)/.exec(tt)||/(windows phone)/.exec(tt)||/(iphone)/.exec(tt)||/(kindle)/.exec(tt)||/(android)/.exec(tt)||/(windows)/.exec(tt)||/(mac)/.exec(tt)||/(linux)/.exec(tt)||/(cros)/.exec(tt)||[],Me={browser:nt[5]||nt[3]||nt[1]||"",version:nt[2]||nt[4]||"0",majorVersion:nt[4]||nt[2]||"0",platform:Te[0]||""},Xe={};if(Me.browser){Xe[Me.browser]=!0;var at=Me.majorVersion.split(".");Xe.version={major:parseInt(Me.majorVersion,10),string:Me.version},at.length>1&&(Xe.version.minor=parseInt(at[1],10)),at.length>2&&(Xe.version.build=parseInt(at[2],10))}if(Me.platform&&(Xe[Me.platform]=!0),(Xe.chrome||Xe.opr||Xe.safari)&&(Xe.webkit=!0),Xe.rv||Xe.iemobile){Xe.rv&&delete Xe.rv;var zt="msie";Me.browser=zt,Xe[zt]=!0}if(Xe.edge){delete Xe.edge;var kt="msedge";Me.browser=kt,Xe[kt]=!0}if(Xe.opr){var Xt="opera";Me.browser=Xt,Xe[Xt]=!0}if(Xe.safari&&Xe.android){var Dr="android";Me.browser=Dr,Xe[Dr]=!0}Xe.name=Me.browser,Xe.platform=Me.platform;for(var Pr in g)g.hasOwnProperty(Pr)&&delete g[Pr];Object.assign(g,Xe)}v();var A=g,x=function(tt){Object(l.a)(Te,tt);var nt=Object(a.a)(Te);function Te(Me,Xe){var at;return Object(D.a)(this,Te),at=nt.call(this,"fetch-stream-loader"),at.TAG="FetchStreamLoader",at._seekHandler=Me,at._config=Xe,at._needStash=!0,at._requestAbort=!1,at._contentLength=null,at._receivedLength=0,at}return Object(N.a)(Te,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(h.a)(Object(p.a)(Te.prototype),"destroy",this).call(this)}},{key:"open",value:function(Xe,at){var zt=this;this._dataSource=Xe,this._range=at;var kt=Xe.url;this._config.reuseRedirectedURL&&Xe.redirectedURL!=null&&(kt=Xe.redirectedURL);var Xt=this._seekHandler.getConfig(kt,at),Dr=new self.Headers;if(typeof Xt.headers=="object"){var Pr=Xt.headers;for(var cn in Pr)Pr.hasOwnProperty(cn)&&Dr.append(cn,Pr[cn])}var jt={method:"GET",headers:Dr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var gt in this._config.headers)Dr.append(gt,this._config.headers[gt]);Xe.cors===!1&&(jt.mode="same-origin"),Xe.withCredentials&&(jt.credentials="include"),Xe.referrerPolicy&&(jt.referrerPolicy=Xe.referrerPolicy),this._status=i.kConnecting,self.fetch(Xt.url,jt).then(function(dt){if(zt._requestAbort){zt._requestAbort=!1,zt._status=i.kIdle;return}if(dt.ok&&dt.status>=200&&dt.status<=299){if(dt.url!==Xt.url&&zt._onURLRedirect){var Qt=zt._seekHandler.removeURLParameters(dt.url);zt._onURLRedirect(Qt)}var Jt=dt.headers.get("Content-Length");return Jt!=null&&(zt._contentLength=parseInt(Jt),zt._contentLength!==0&&(zt._onContentLengthKnown&&zt._onContentLengthKnown(zt._contentLength))),zt._pump.call(zt,dt.body.getReader())}else if(zt._status=i.kError,zt._onError)zt._onError(c.HTTP_STATUS_CODE_INVALID,{code:dt.status,msg:dt.statusText});else throw new r("FetchStreamLoader: Http code invalid, "+dt.status+" "+dt.statusText)}).catch(function(dt){if(zt._status=i.kError,zt._onError)zt._onError(c.EXCEPTION,{code:-1,msg:dt.message});else throw dt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Xe){var at=this;return Xe.read().then(function(zt){if(zt.done)if(at._contentLength!==null&&at._receivedLength<at._contentLength){at._status=i.kError;var kt=c.EARLY_EOF,Xt={code:-1,msg:"Fetch stream meet Early-EOF"};if(at._onError)at._onError(kt,Xt);else throw new r(Xt.msg)}else at._status=i.kComplete,at._onComplete&&at._onComplete(at._range.from,at._range.from+at._receivedLength-1);else{if(at._requestAbort===!0)return at._requestAbort=!1,at._status=i.kComplete,Xe.cancel();at._status=i.kBuffering;var Dr=zt.value.buffer,Pr=at._range.from+at._receivedLength;at._receivedLength+=Dr.byteLength,at._onDataArrival&&at._onDataArrival(Dr,Pr,at._receivedLength),at._pump(Xe)}}).catch(function(zt){if(zt.code===11&&A.msedge)return;at._status=i.kError;var kt=0,Xt=null;if((zt.code===19||zt.message==="network error")&&(at._contentLength===null||at._contentLength!==null&&at._receivedLength<at._contentLength)?(kt=c.EARLY_EOF,Xt={code:zt.code,msg:"Fetch stream meet Early-EOF"}):(kt=c.EXCEPTION,Xt={code:zt.code,msg:zt.message}),at._onError)at._onError(kt,Xt);else throw new r(Xt.msg)})}}],[{key:"isSupported",value:function(){try{var Xe=A.msedge&&A.version.minor>=15048,at=A.msedge?Xe:!0;return self.fetch&&self.ReadableStream&&at}catch(zt){return!1}}}]),Te}(d),b=x,w=function(tt){Object(l.a)(Te,tt);var nt=Object(a.a)(Te);function Te(Me,Xe){var at;return Object(D.a)(this,Te),at=nt.call(this,"xhr-moz-chunked-loader"),at.TAG="MozChunkedLoader",at._seekHandler=Me,at._config=Xe,at._needStash=!0,at._xhr=null,at._requestAbort=!1,at._contentLength=null,at._receivedLength=0,at}return Object(N.a)(Te,[{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),Object(h.a)(Object(p.a)(Te.prototype),"destroy",this).call(this)}},{key:"open",value:function(Xe,at){this._dataSource=Xe,this._range=at;var zt=Xe.url;this._config.reuseRedirectedURL&&Xe.redirectedURL!=null&&(zt=Xe.redirectedURL);var kt=this._seekHandler.getConfig(zt,at);this._requestURL=kt.url;var Xt=this._xhr=new XMLHttpRequest;if(Xt.open("GET",kt.url,!0),Xt.responseType="moz-chunked-arraybuffer",Xt.onreadystatechange=this._onReadyStateChange.bind(this),Xt.onprogress=this._onProgress.bind(this),Xt.onloadend=this._onLoadEnd.bind(this),Xt.onerror=this._onXhrError.bind(this),Xe.withCredentials&&(Xt.withCredentials=!0),typeof kt.headers=="object"){var Dr=kt.headers;for(var Pr in Dr)Dr.hasOwnProperty(Pr)&&Xt.setRequestHeader(Pr,Dr[Pr])}if(typeof this._config.headers=="object"){var cn=this._config.headers;for(var jt in cn)cn.hasOwnProperty(jt)&&Xt.setRequestHeader(jt,cn[jt])}this._status=i.kConnecting,Xt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=i.kComplete}},{key:"_onReadyStateChange",value:function(Xe){var at=Xe.target;if(at.readyState===2){if(at.responseURL!=null&&at.responseURL!==this._requestURL&&this._onURLRedirect){var zt=this._seekHandler.removeURLParameters(at.responseURL);this._onURLRedirect(zt)}if(at.status!==0&&(at.status<200||at.status>299))if(this._status=i.kError,this._onError)this._onError(c.HTTP_STATUS_CODE_INVALID,{code:at.status,msg:at.statusText});else throw new r("MozChunkedLoader: Http code invalid, "+at.status+" "+at.statusText);else this._status=i.kBuffering}}},{key:"_onProgress",value:function(Xe){if(this._status===i.kError)return;this._contentLength===null&&(Xe.total!==null&&Xe.total!==0&&(this._contentLength=Xe.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var at=Xe.target.response,zt=this._range.from+this._receivedLength;this._receivedLength+=at.byteLength,this._onDataArrival&&this._onDataArrival(at,zt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Xe){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===i.kError)return;this._status=i.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Xe){this._status=i.kError;var at=0,zt=null;if(this._contentLength&&Xe.loaded<this._contentLength?(at=c.EARLY_EOF,zt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(at=c.EXCEPTION,zt={code:-1,msg:Xe.constructor.name+" "+Xe.type}),this._onError)this._onError(at,zt);else throw new r(zt.msg)}}],[{key:"isSupported",value:function(){try{var Xe=new XMLHttpRequest;return Xe.open("GET","https://example.com",!0),Xe.responseType="moz-chunked-arraybuffer",Xe.responseType==="moz-chunked-arraybuffer"}catch(at){return f.w("MozChunkedLoader",at.message),!1}}}]),Te}(d),S=w,T=function(tt){Object(l.a)(Te,tt);var nt=Object(a.a)(Te);function Te(Me,Xe){var at;return Object(D.a)(this,Te),at=nt.call(this,"xhr-msstream-loader"),at.TAG="MSStreamLoader",at._seekHandler=Me,at._config=Xe,at._needStash=!0,at._xhr=null,at._reader=null,at._totalRange=null,at._currentRange=null,at._currentRequestURL=null,at._currentRedirectedURL=null,at._contentLength=null,at._receivedLength=0,at._bufferLimit=16*1024*1024,at._lastTimeBufferSize=0,at._isReconnecting=!1,at}return Object(N.a)(Te,[{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),Object(h.a)(Object(p.a)(Te.prototype),"destroy",this).call(this)}},{key:"open",value:function(Xe,at){this._internalOpen(Xe,at,!1)}},{key:"_internalOpen",value:function(Xe,at,zt){this._dataSource=Xe,zt?this._currentRange=at:this._totalRange=at;var kt=Xe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?kt=this._currentRedirectedURL:Xe.redirectedURL!=null&&(kt=Xe.redirectedURL));var Xt=this._seekHandler.getConfig(kt,at);this._currentRequestURL=Xt.url;var Dr=this._reader=new self.MSStreamReader;Dr.onprogress=this._msrOnProgress.bind(this),Dr.onload=this._msrOnLoad.bind(this),Dr.onerror=this._msrOnError.bind(this);var Pr=this._xhr=new XMLHttpRequest;if(Pr.open("GET",Xt.url,!0),Pr.responseType="ms-stream",Pr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Pr.onerror=this._xhrOnError.bind(this),Xe.withCredentials&&(Pr.withCredentials=!0),typeof Xt.headers=="object"){var cn=Xt.headers;for(var jt in cn)cn.hasOwnProperty(jt)&&Pr.setRequestHeader(jt,cn[jt])}if(typeof this._config.headers=="object"){var gt=this._config.headers;for(var dt in gt)gt.hasOwnProperty(dt)&&Pr.setRequestHeader(dt,gt[dt])}this._isReconnecting?this._isReconnecting=!1:this._status=i.kConnecting,Pr.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=i.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(Xe){var at=Xe.target;if(at.readyState===2)if(at.status>=200&&at.status<=299){if(this._status=i.kBuffering,at.responseURL!=null){var zt=this._seekHandler.removeURLParameters(at.responseURL);at.responseURL!==this._currentRequestURL&&zt!==this._currentRedirectedURL&&(this._currentRedirectedURL=zt,this._onURLRedirect&&this._onURLRedirect(zt))}var kt=at.getResponseHeader("Content-Length");if(kt!=null&&this._contentLength==null){var Xt=parseInt(kt);Xt>0&&(this._contentLength=Xt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=i.kError,this._onError)this._onError(c.HTTP_STATUS_CODE_INVALID,{code:at.status,msg:at.statusText});else throw new r("MSStreamLoader: Http code invalid, "+at.status+" "+at.statusText);else if(at.readyState===3&&(at.status>=200&&at.status<=299)){this._status=i.kBuffering;var Dr=at.response;this._reader.readAsArrayBuffer(Dr)}}},{key:"_xhrOnError",value:function(Xe){this._status=i.kError;var at=c.EXCEPTION,zt={code:-1,msg:Xe.constructor.name+" "+Xe.type};if(this._onError)this._onError(at,zt);else throw new r(zt.msg)}},{key:"_msrOnProgress",value:function(Xe){var at=Xe.target,zt=at.result;if(zt==null){this._doReconnectIfNeeded();return}var kt=zt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=zt.byteLength;var Xt=this._totalRange.from+this._receivedLength;this._receivedLength+=kt.byteLength,this._onDataArrival&&this._onDataArrival(kt,Xt,this._receivedLength),zt.byteLength>=this._bufferLimit&&(f.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Xt+kt.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 Xe={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Xe,!0)}}},{key:"_msrOnLoad",value:function(Xe){this._status=i.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Xe){this._status=i.kError;var at=0,zt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(at=c.EARLY_EOF,zt={code:-1,msg:"MSStream meet Early-Eof"}):(at=c.EARLY_EOF,zt={code:-1,msg:Xe.constructor.name+" "+Xe.type}),this._onError)this._onError(at,zt);else throw new r(zt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Xe=new XMLHttpRequest;return Xe.open("GET","https://example.com",!0),Xe.responseType="ms-stream",Xe.responseType==="ms-stream"}catch(at){return f.w("MSStreamLoader",at.message),!1}}}]),Te}(d),C=T,O=function(tt){Object(l.a)(Te,tt);var nt=Object(a.a)(Te);function Te(Me,Xe){var at;return Object(D.a)(this,Te),at=nt.call(this,"xhr-range-loader"),at.TAG="RangeLoader",at._seekHandler=Me,at._config=Xe,at._needStash=!1,at._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],at._currentChunkSizeKB=384,at._currentSpeedNormalized=0,at._zeroSpeedChunkCount=0,at._xhr=null,at._speedSampler=new t,at._requestAbort=!1,at._waitForTotalLength=!1,at._totalLengthReceived=!1,at._currentRequestURL=null,at._currentRedirectedURL=null,at._currentRequestRange=null,at._totalLength=null,at._contentLength=null,at._receivedLength=0,at._lastTimeLoaded=0,at}return Object(N.a)(Te,[{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),Object(h.a)(Object(p.a)(Te.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Xe,at){this._dataSource=Xe,this._range=at,this._status=i.kConnecting;var zt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(zt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!zt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Xe=this._currentChunkSizeKB*1024,at=this._range.from+this._receivedLength,zt=at+Xe;this._contentLength!=null&&(zt-this._range.from>=this._contentLength&&(zt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:at,to:zt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Xe,at){this._lastTimeLoaded=0;var zt=Xe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?zt=this._currentRedirectedURL:Xe.redirectedURL!=null&&(zt=Xe.redirectedURL));var kt=this._seekHandler.getConfig(zt,at);this._currentRequestURL=kt.url;var Xt=this._xhr=new XMLHttpRequest;if(Xt.open("GET",kt.url,!0),Xt.responseType="arraybuffer",Xt.onreadystatechange=this._onReadyStateChange.bind(this),Xt.onprogress=this._onProgress.bind(this),Xt.onload=this._onLoad.bind(this),Xt.onerror=this._onXhrError.bind(this),Xe.withCredentials&&(Xt.withCredentials=!0),typeof kt.headers=="object"){var Dr=kt.headers;for(var Pr in Dr)Dr.hasOwnProperty(Pr)&&Xt.setRequestHeader(Pr,Dr[Pr])}if(typeof this._config.headers=="object"){var cn=this._config.headers;for(var jt in cn)cn.hasOwnProperty(jt)&&Xt.setRequestHeader(jt,cn[jt])}Xt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=i.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(Xe){var at=Xe.target;if(at.readyState===2){if(at.responseURL!=null){var zt=this._seekHandler.removeURLParameters(at.responseURL);at.responseURL!==this._currentRequestURL&&zt!==this._currentRedirectedURL&&(this._currentRedirectedURL=zt,this._onURLRedirect&&this._onURLRedirect(zt))}if(at.status>=200&&at.status<=299){if(this._waitForTotalLength)return;this._status=i.kBuffering}else if(this._status=i.kError,this._onError)this._onError(c.HTTP_STATUS_CODE_INVALID,{code:at.status,msg:at.statusText});else throw new r("RangeLoader: Http code invalid, "+at.status+" "+at.statusText)}}},{key:"_onProgress",value:function(Xe){if(this._status===i.kError)return;if(this._contentLength===null){var at=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,at=!0;var zt=Xe.total;this._internalAbort(),zt!=null&zt!==0&&(this._totalLength=zt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,at){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var kt=Xe.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Xe.loaded,this._speedSampler.addBytes(kt)}},{key:"_normalizeSpeed",value:function(Xe){var at=this._chunkSizeKBList,zt=at.length-1,kt=0,Xt=0,Dr=zt;if(Xe<at[0])return at[0];for(;Xt<=Dr;){if(kt=Xt+Math.floor((Dr-Xt)/2),kt===zt||Xe>=at[kt]&&Xe<at[kt+1])return at[kt];at[kt]<Xe?Xt=kt+1:Dr=kt-1}}},{key:"_onLoad",value:function(Xe){if(this._status===i.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var at=this._speedSampler.lastSecondKBps;if(at===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(at=this._speedSampler.currentKBps)),at!==0){var zt=this._normalizeSpeed(at);this._currentSpeedNormalized!==zt&&(this._currentSpeedNormalized=zt,this._currentChunkSizeKB=zt)}var kt=Xe.target.response,Xt=this._range.from+this._receivedLength;this._receivedLength+=kt.byteLength;var Dr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Dr=!0,this._onDataArrival&&this._onDataArrival(kt,Xt,this._receivedLength),Dr&&(this._status=i.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Xe){this._status=i.kError;var at=0,zt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(at=c.EARLY_EOF,zt={code:-1,msg:"RangeLoader meet Early-Eof"}):(at=c.EXCEPTION,zt={code:-1,msg:Xe.constructor.name+" "+Xe.type}),this._onError)this._onError(at,zt);else throw new r(zt.msg)}}],[{key:"isSupported",value:function(){try{var Xe=new XMLHttpRequest;return Xe.open("GET","https://example.com",!0),Xe.responseType="arraybuffer",Xe.responseType==="arraybuffer"}catch(at){return f.w("RangeLoader",at.message),!1}}}]),Te}(d),_=O,M=function(tt){Object(l.a)(Te,tt);var nt=Object(a.a)(Te);function Te(){var Me;return Object(D.a)(this,Te),Me=nt.call(this,"websocket-loader"),Me.TAG="WebSocketLoader",Me._needStash=!0,Me._ws=null,Me._requestAbort=!1,Me._receivedLength=0,Me}return Object(N.a)(Te,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(h.a)(Object(p.a)(Te.prototype),"destroy",this).call(this)}},{key:"open",value:function(Xe){try{var at=this._ws=new self.WebSocket(Xe.url);at.binaryType="arraybuffer",at.onopen=this._onWebSocketOpen.bind(this),at.onclose=this._onWebSocketClose.bind(this),at.onmessage=this._onWebSocketMessage.bind(this),at.onerror=this._onWebSocketError.bind(this),this._status=i.kConnecting}catch(kt){this._status=i.kError;var zt={code:kt.code,msg:kt.message};if(this._onError)this._onError(c.EXCEPTION,zt);else throw new r(zt.msg)}}},{key:"abort",value:function(){var Xe=this._ws;Xe&&(Xe.readyState===0||Xe.readyState===1)&&(this._requestAbort=!0,Xe.close()),this._ws=null,this._status=i.kComplete}},{key:"_onWebSocketOpen",value:function(Xe){this._status=i.kBuffering}},{key:"_onWebSocketClose",value:function(Xe){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=i.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Xe){var at=this;if(Xe.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Xe.data);else if(Xe.data instanceof Blob){var zt=new FileReader;zt.onload=function(){at._dispatchArrayBuffer(zt.result)},zt.readAsArrayBuffer(Xe.data)}else{this._status=i.kError;var kt={code:-1,msg:"Unsupported WebSocket message type: "+Xe.data.constructor.name};if(this._onError)this._onError(c.EXCEPTION,kt);else throw new r(kt.msg)}}},{key:"_dispatchArrayBuffer",value:function(Xe){var at=Xe,zt=this._receivedLength;this._receivedLength+=at.byteLength,this._onDataArrival&&this._onDataArrival(at,zt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Xe){this._status=i.kError;var at={code:Xe.code,msg:Xe.message};if(this._onError)this._onError(c.EXCEPTION,at);else throw new r(at.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Xe){return!1}}}]),Te}(d),k=M,R=function(){function tt(nt){Object(D.a)(this,tt),this._zeroStart=nt||!1}return Object(N.a)(tt,[{key:"getConfig",value:function(Te,Me){var Xe={};if(Me.from!==0||Me.to!==-1){var at;Me.to!==-1?at="bytes=".concat(Me.from.toString(),"-").concat(Me.to.toString()):at="bytes=".concat(Me.from.toString(),"-"),Xe.Range=at}else this._zeroStart&&(Xe.Range="bytes=0-");return{url:Te,headers:Xe}}},{key:"removeURLParameters",value:function(Te){return Te}}]),tt}(),B=R,P=function(){function tt(nt,Te){Object(D.a)(this,tt),this._startName=nt,this._endName=Te}return Object(N.a)(tt,[{key:"getConfig",value:function(Te,Me){var Xe=Te;if(Me.from!==0||Me.to!==-1){var at=!0;Xe.indexOf("?")===-1&&(Xe+="?",at=!1),at&&(Xe+="&"),Xe+="".concat(this._startName,"=").concat(Me.from.toString()),Me.to!==-1&&(Xe+="&".concat(this._endName,"=").concat(Me.to.toString()))}return{url:Xe,headers:{}}}},{key:"removeURLParameters",value:function(Te){var Me=Te.split("?")[0],Xe=void 0,at=Te.indexOf("?");at!==-1&&(Xe=Te.substring(at+1));var zt="";if(Xe!=null&&Xe.length>0)for(var kt=Xe.split("&"),Xt=0;Xt<kt.length;Xt++){var Dr=kt[Xt].split("="),Pr=Xt>0;Dr[0]!==this._startName&&Dr[0]!==this._endName&&(Pr&&(zt+="&"),zt+=kt[Xt])}return zt.length===0?Me:Me+"?"+zt}}]),tt}(),U=P,j=function(){function tt(nt,Te,Me){Object(D.a)(this,tt),this.TAG="IOController",this._config=Te,this._extraData=Me,this._stashInitialSize=1024*384,Te.stashInitialSize!=null&&Te.stashInitialSize>0&&(this._stashInitialSize=Te.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,Te.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=nt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(nt.url),this._refTotalLength=nt.filesize?nt.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new t,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(N.a)(tt,[{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:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(Te){this._extraData=Te}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Te){this._onDataArrival=Te}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Te){this._onSeeked=Te}},{key:"onError",get:function(){return this._onError},set:function(Te){this._onError=Te}},{key:"onComplete",get:function(){return this._onComplete},set:function(Te){this._onComplete=Te}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Te){this._onRedirect=Te}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Te){this._onRecoveredEarlyEof=Te}},{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===_?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var Te=this._config;if(Te.seekType==="range")this._seekHandler=new B(this._config.rangeLoadZeroStart);else if(Te.seekType==="param"){var Me=Te.seekParamStart||"bstart",Xe=Te.seekParamEnd||"bend";this._seekHandler=new U(Me,Xe)}else if(Te.seekType==="custom"){if(typeof Te.customSeekHandler!="function")throw new e("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Te.customSeekHandler}else throw new e("Invalid seekType in config: ".concat(Te.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=k;else if(b.isSupported())this._loaderClass=b;else if(S.isSupported())this._loaderClass=S;else if(_.isSupported())this._loaderClass=_;else throw new r("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(Te){this._currentRange={from:0,to:-1},Te&&(this._currentRange.from=Te),this._speedSampler.reset(),Te||(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 Te=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Te,!0)}}},{key:"seek",value:function(Te){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Te,!0)}},{key:"_internalSeek",value:function(Te,Me){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Me),this._loader.destroy(),this._loader=null;var Xe={from:Te,to:-1};this._currentRange={from:Xe.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Xe),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Te){if(!Te||typeof Te!="string"||Te.length===0)throw new e("Url must be a non-empty string!");this._dataSource.url=Te}},{key:"_expandBuffer",value:function(Te){for(var Me=this._stashSize;Me+1024*1024*1<Te;)Me*=2;if(Me+=1024*1024*1,Me===this._bufferSize)return;var Xe=new ArrayBuffer(Me);if(this._stashUsed>0){var at=new Uint8Array(this._stashBuffer,0,this._stashUsed),zt=new Uint8Array(Xe,0,Me);zt.set(at,0)}this._stashBuffer=Xe,this._bufferSize=Me}},{key:"_normalizeSpeed",value:function(Te){var Me=this._speedNormalizeList,Xe=Me.length-1,at=0,zt=0,kt=Xe;if(Te<Me[0])return Me[0];for(;zt<=kt;){if(at=zt+Math.floor((kt-zt)/2),at===Xe||Te>=Me[at]&&Te<Me[at+1])return Me[at];Me[at]<Te?zt=at+1:kt=at-1}}},{key:"_adjustStashSize",value:function(Te){var Me=0;this._config.isLive||Te<512?Me=Te:Te>=512&&Te<=1024?Me=Math.floor(Te*1.5):Me=Te*2,Me>8192&&(Me=8192);var Xe=Me*1024+1024*1024*1;this._bufferSize<Xe&&this._expandBuffer(Xe),this._stashSize=Me*1024}},{key:"_dispatchChunks",value:function(Te,Me){return this._currentRange.to=Me+Te.byteLength-1,this._onDataArrival(Te,Me)}},{key:"_onURLRedirect",value:function(Te){this._redirectedURL=Te,this._onRedirect&&this._onRedirect(Te)}},{key:"_onContentLengthKnown",value:function(Te){Te&&this._fullRequestFlag&&(this._totalLength=Te,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Te,Me,Xe){if(!this._onDataArrival)throw new u("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(Te.byteLength);var at=this._speedSampler.lastSecondKBps;if(at!==0){var zt=this._normalizeSpeed(at);this._speedNormalized!==zt&&(this._speedNormalized=zt,this._adjustStashSize(zt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Me),this._stashUsed+Te.byteLength<=this._stashSize){var gt=new Uint8Array(this._stashBuffer,0,this._stashSize);gt.set(new Uint8Array(Te),this._stashUsed),this._stashUsed+=Te.byteLength}else{var dt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var Qt=this._stashBuffer.slice(0,this._stashUsed),Jt=this._dispatchChunks(Qt,this._stashByteStart);if(Jt<Qt.byteLength){if(Jt>0){var xt=new Uint8Array(Qt,Jt);dt.set(xt,0),this._stashUsed=xt.byteLength,this._stashByteStart+=Jt}}else this._stashUsed=0,this._stashByteStart+=Jt;this._stashUsed+Te.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Te.byteLength),dt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dt.set(new Uint8Array(Te),this._stashUsed),this._stashUsed+=Te.byteLength}else{var Pt=this._dispatchChunks(Te,Me);if(Pt<Te.byteLength){var yt=Te.byteLength-Pt;yt>this._bufferSize&&(this._expandBuffer(yt),dt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dt.set(new Uint8Array(Te,Pt),0),this._stashUsed+=yt,this._stashByteStart=Me+Pt}}}else if(this._stashUsed===0){var kt=this._dispatchChunks(Te,Me);if(kt<Te.byteLength){var Xt=Te.byteLength-kt;Xt>this._bufferSize&&this._expandBuffer(Xt);var Dr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Dr.set(new Uint8Array(Te,kt),0),this._stashUsed+=Xt,this._stashByteStart=Me+kt}}else{this._stashUsed+Te.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Te.byteLength);var Pr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Pr.set(new Uint8Array(Te),this._stashUsed),this._stashUsed+=Te.byteLength;var cn=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(cn<this._stashUsed&&cn>0){var jt=new Uint8Array(this._stashBuffer,cn);Pr.set(jt,0)}this._stashUsed-=cn,this._stashByteStart+=cn}}},{key:"_flushStashBuffer",value:function(Te){if(this._stashUsed>0){var Me=this._stashBuffer.slice(0,this._stashUsed),Xe=this._dispatchChunks(Me,this._stashByteStart),at=Me.byteLength-Xe;if(Xe<Me.byteLength)if(Te)f.w(this.TAG,"".concat(at," bytes unconsumed data remain when flush buffer, dropped"));else{if(Xe>0){var zt=new Uint8Array(this._stashBuffer,0,this._bufferSize),kt=new Uint8Array(Me,Xe);zt.set(kt,0),this._stashUsed=kt.byteLength,this._stashByteStart+=Xe}return 0}return this._stashUsed=0,this._stashByteStart=0,at}return 0}},{key:"_onLoaderComplete",value:function(Te,Me){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Te,Me){f.e(this.TAG,"Loader error, code = ".concat(Me.code,", msg = ").concat(Me.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Te=c.UNRECOVERABLE_EARLY_EOF);switch(Te){case c.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Xe=this._currentRange.to+1;Xe<this._totalLength&&(f.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Xe,!1));return}Te=c.UNRECOVERABLE_EARLY_EOF;break}case c.UNRECOVERABLE_EARLY_EOF:case c.CONNECTING_TIMEOUT:case c.HTTP_STATUS_CODE_INVALID:case c.EXCEPTION:break}if(this._onError)this._onError(Te,Me);else throw new r("IOException: "+Me.msg)}}]),tt}(),H=j,W={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 G(){return Object.assign({},W)}var V=function(){function tt(){Object(D.a)(this,tt)}return Object(N.a)(tt,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var Te=new H({},G()),Me=Te.loaderType;return Te.destroy(),Me=="fetch-stream-loader"||Me=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Te=new H({},G()),Me=Te.loaderType;return Te.destroy(),Me}},{key:"supportNativeMediaPlayback",value:function(Te){tt.videoElement==null&&(tt.videoElement=window.document.createElement("video"));var Me=tt.videoElement.canPlayType(Te);return Me==="probably"||Me=="maybe"}},{key:"getFeatureList",value:function(){var Te={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Te.mseFlvPlayback=tt.supportMSEH264Playback(),Te.networkStreamIO=tt.supportNetworkStreamIO(),Te.networkLoaderName=tt.getNetworkLoaderTypeName(),Te.mseLiveFlvPlayback=Te.mseFlvPlayback&&Te.networkStreamIO,Te.nativeMP4H264Playback=tt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Te.nativeWebmVP8Playback=tt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Te.nativeWebmVP9Playback=tt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Te}}]),tt}(),Z=V,Y={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"},Q=Y,oe=function(){function tt(){Object(D.a)(this,tt)}return Object(N.a)(tt,null,[{key:"forceGlobalTag",get:function(){return f.FORCE_GLOBAL_TAG},set:function(Te){f.FORCE_GLOBAL_TAG=Te,tt._notifyChange()}},{key:"globalTag",get:function(){return f.GLOBAL_TAG},set:function(Te){f.GLOBAL_TAG=Te,tt._notifyChange()}},{key:"enableAll",get:function(){return f.ENABLE_VERBOSE&&f.ENABLE_DEBUG&&f.ENABLE_INFO&&f.ENABLE_WARN&&f.ENABLE_ERROR},set:function(Te){f.ENABLE_VERBOSE=Te,f.ENABLE_DEBUG=Te,f.ENABLE_INFO=Te,f.ENABLE_WARN=Te,f.ENABLE_ERROR=Te,tt._notifyChange()}},{key:"enableDebug",get:function(){return f.ENABLE_DEBUG},set:function(Te){f.ENABLE_DEBUG=Te,tt._notifyChange()}},{key:"enableVerbose",get:function(){return f.ENABLE_VERBOSE},set:function(Te){f.ENABLE_VERBOSE=Te,tt._notifyChange()}},{key:"enableInfo",get:function(){return f.ENABLE_INFO},set:function(Te){f.ENABLE_INFO=Te,tt._notifyChange()}},{key:"enableWarn",get:function(){return f.ENABLE_WARN},set:function(Te){f.ENABLE_WARN=Te,tt._notifyChange()}},{key:"enableError",get:function(){return f.ENABLE_ERROR},set:function(Te){f.ENABLE_ERROR=Te,tt._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:f.GLOBAL_TAG,forceGlobalTag:f.FORCE_GLOBAL_TAG,enableVerbose:f.ENABLE_VERBOSE,enableDebug:f.ENABLE_DEBUG,enableInfo:f.ENABLE_INFO,enableWarn:f.ENABLE_WARN,enableError:f.ENABLE_ERROR,enableCallback:f.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(Te){f.GLOBAL_TAG=Te.globalTag,f.FORCE_GLOBAL_TAG=Te.forceGlobalTag,f.ENABLE_VERBOSE=Te.enableVerbose,f.ENABLE_DEBUG=Te.enableDebug,f.ENABLE_INFO=Te.enableInfo,f.ENABLE_WARN=Te.enableWarn,f.ENABLE_ERROR=Te.enableError,f.ENABLE_CALLBACK=Te.enableCallback}},{key:"_notifyChange",value:function(){var Te=tt.emitter;if(Te.listenerCount("change")>0){var Me=tt.getConfig();Te.emit("change",Me)}}},{key:"registerListener",value:function(Te){tt.emitter.addListener("change",Te)}},{key:"removeListener",value:function(Te){tt.emitter.removeListener("change",Te)}},{key:"addLogListener",value:function(Te){f.emitter.addListener("log",Te),f.emitter.listenerCount("log")>0&&(f.ENABLE_CALLBACK=!0,tt._notifyChange())}},{key:"removeLogListener",value:function(Te){f.emitter.removeListener("log",Te),f.emitter.listenerCount("log")===0&&(f.ENABLE_CALLBACK=!1,tt._notifyChange())}}]),tt}();oe.emitter=new o.a;var ue=oe,Le=function(){function tt(){Object(D.a)(this,tt),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(N.a)(tt,[{key:"isComplete",value:function(){var Te=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Me=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&&Te&&Me}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Te){if(this.keyframesIndex==null)return null;var Me=this.keyframesIndex,Xe=this._search(Me.times,Te);return{index:Xe,milliseconds:Me.times[Xe],fileposition:Me.filepositions[Xe]}}},{key:"_search",value:function(Te,Me){var Xe=0,at=Te.length-1,zt=0,kt=0,Xt=at;for(Me<Te[0]&&(Xe=0,kt=Xt+1);kt<=Xt;)if(zt=kt+Math.floor((Xt-kt)/2),zt===at||Me>=Te[zt]&&Me<Te[zt+1]){Xe=zt;break}else Te[zt]<Me?kt=zt+1:Xt=zt-1;return Xe}}]),tt}(),me=Le;function Ie(tt,nt,Te){var Me=tt;if(nt+Te<Me.length){for(;Te--;)if((Me[++nt]&192)!==128)return!1;return!0}else return!1}function X(tt){for(var nt=[],Te=tt,Me=0,Xe=tt.length;Me<Xe;){if(Te[Me]<128){nt.push(String.fromCharCode(Te[Me])),++Me;continue}else if(!(Te[Me]<192)){if(Te[Me]<224){if(Ie(Te,Me,1)){var at=(Te[Me]&31)<<6|Te[Me+1]&63;if(at>=128){nt.push(String.fromCharCode(at&65535)),Me+=2;continue}}}else if(Te[Me]<240){if(Ie(Te,Me,2)){var zt=(Te[Me]&15)<<12|(Te[Me+1]&63)<<6|Te[Me+2]&63;if(zt>=2048&&(zt&63488)!==55296){nt.push(String.fromCharCode(zt&65535)),Me+=3;continue}}}else if(Te[Me]<248&&Ie(Te,Me,3)){var kt=(Te[Me]&7)<<18|(Te[Me+1]&63)<<12|(Te[Me+2]&63)<<6|Te[Me+3]&63;if(kt>65536&&kt<1114112){kt-=65536,nt.push(String.fromCharCode(kt>>>10|55296)),nt.push(String.fromCharCode(kt&1023|56320)),Me+=4;continue}}}nt.push(String.fromCharCode(65533)),++Me}return nt.join("")}var q=X,We=function(){var tt=new ArrayBuffer(2);return new DataView(tt).setInt16(0,256,!0),new Int16Array(tt)[0]===256}(),$=function(){function tt(){Object(D.a)(this,tt)}return Object(N.a)(tt,null,[{key:"parseScriptData",value:function(Te,Me,Xe){var at={};try{var zt=tt.parseValue(Te,Me,Xe),kt=tt.parseValue(Te,Me+zt.size,Xe-zt.size);at[zt.data]=kt.data}catch(Xt){f.e("AMF",Xt.toString())}return at}},{key:"parseObject",value:function(Te,Me,Xe){if(Xe<3)throw new u("Data not enough when parse ScriptDataObject");var at=tt.parseString(Te,Me,Xe),zt=tt.parseValue(Te,Me+at.size,Xe-at.size),kt=zt.objectEnd;return{data:{name:at.data,value:zt.data},size:at.size+zt.size,objectEnd:kt}}},{key:"parseVariable",value:function(Te,Me,Xe){return tt.parseObject(Te,Me,Xe)}},{key:"parseString",value:function(Te,Me,Xe){if(Xe<2)throw new u("Data not enough when parse String");var at=new DataView(Te,Me,Xe),zt=at.getUint16(0,!We),kt;return zt>0?kt=q(new Uint8Array(Te,Me+2,zt)):kt="",{data:kt,size:2+zt}}},{key:"parseLongString",value:function(Te,Me,Xe){if(Xe<4)throw new u("Data not enough when parse LongString");var at=new DataView(Te,Me,Xe),zt=at.getUint32(0,!We),kt;return zt>0?kt=q(new Uint8Array(Te,Me+4,zt)):kt="",{data:kt,size:4+zt}}},{key:"parseDate",value:function(Te,Me,Xe){if(Xe<10)throw new u("Data size invalid when parse Date");var at=new DataView(Te,Me,Xe),zt=at.getFloat64(0,!We),kt=at.getInt16(8,!We);return zt+=kt*60*1e3,{data:new Date(zt),size:8+2}}},{key:"parseValue",value:function(Te,Me,Xe){if(Xe<1)throw new u("Data not enough when parse Value");var at=new DataView(Te,Me,Xe),zt=1,kt=at.getUint8(0),Xt,Dr=!1;try{switch(kt){case 0:Xt=at.getFloat64(1,!We),zt+=8;break;case 1:{var Pr=at.getUint8(1);Xt=!!Pr,zt+=1;break}case 2:{var cn=tt.parseString(Te,Me+1,Xe-1);Xt=cn.data,zt+=cn.size;break}case 3:{Xt={};var jt=0;for((at.getUint32(Xe-4,!We)&16777215)===9&&(jt=3);zt<Xe-4;){var gt=tt.parseObject(Te,Me+zt,Xe-zt-jt);if(gt.objectEnd)break;Xt[gt.data.name]=gt.data.value,zt+=gt.size}if(zt<=Xe-3){var dt=at.getUint32(zt-1,!We)&16777215;dt===9&&(zt+=3)}break}case 8:{Xt={},zt+=4;var Qt=0;for((at.getUint32(Xe-4,!We)&16777215)===9&&(Qt=3);zt<Xe-8;){var Jt=tt.parseVariable(Te,Me+zt,Xe-zt-Qt);if(Jt.objectEnd)break;Xt[Jt.data.name]=Jt.data.value,zt+=Jt.size}if(zt<=Xe-3){var xt=at.getUint32(zt-1,!We)&16777215;xt===9&&(zt+=3)}break}case 9:Xt=void 0,zt=1,Dr=!0;break;case 10:{Xt=[];var Pt=at.getUint32(1,!We);zt+=4;for(var yt=0;yt<Pt;yt++){var Ut=tt.parseValue(Te,Me+zt,Xe-zt);Xt.push(Ut.data),zt+=Ut.size}break}case 11:{var pr=tt.parseDate(Te,Me+1,Xe-1);Xt=pr.data,zt+=pr.size;break}case 12:{var sr=tt.parseString(Te,Me+1,Xe-1);Xt=sr.data,zt+=sr.size;break}default:zt=Xe,f.w("AMF","Unsupported AMF value type "+kt)}}catch(ir){f.e("AMF",ir.toString())}return{data:Xt,size:zt,objectEnd:Dr}}}]),tt}(),J=$,le=function(){function tt(nt){Object(D.a)(this,tt),this.TAG="ExpGolomb",this._buffer=nt,this._buffer_index=0,this._total_bytes=nt.byteLength,this._total_bits=nt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(N.a)(tt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var Te=this._total_bytes-this._buffer_index;if(Te<=0)throw new u("ExpGolomb: _fillCurrentWord() but no bytes available");var Me=Math.min(4,Te),Xe=new Uint8Array(4);Xe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Me)),this._current_word=new DataView(Xe.buffer).getUint32(0,!1),this._buffer_index+=Me,this._current_word_bits_left=Me*8}},{key:"readBits",value:function(Te){if(Te>32)throw new e("ExpGolomb: readBits() bits exceeded max 32bits!");if(Te<=this._current_word_bits_left){var Me=this._current_word>>>32-Te;return this._current_word<<=Te,this._current_word_bits_left-=Te,Me}var Xe=this._current_word_bits_left?this._current_word:0;Xe=Xe>>>32-this._current_word_bits_left;var at=Te-this._current_word_bits_left;this._fillCurrentWord();var zt=Math.min(at,this._current_word_bits_left),kt=this._current_word>>>32-zt;return this._current_word<<=zt,this._current_word_bits_left-=zt,Xe=Xe<<zt|kt,Xe}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Te;for(Te=0;Te<this._current_word_bits_left;Te++)if((this._current_word&2147483648>>>Te)!==0)return this._current_word<<=Te,this._current_word_bits_left-=Te,Te;return this._fillCurrentWord(),Te+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Te=this._skipLeadingZero();return this.readBits(Te+1)-1}},{key:"readSEG",value:function(){var Te=this.readUEG();return Te&1?Te+1>>>1:-1*(Te>>>1)}}]),tt}(),de=le,Ne=function(){function tt(){Object(D.a)(this,tt)}return Object(N.a)(tt,null,[{key:"_ebsp2rbsp",value:function(Te){for(var Me=Te,Xe=Me.byteLength,at=new Uint8Array(Xe),zt=0,kt=0;kt<Xe;kt++){if(kt>=2&&(Me[kt]===3&&Me[kt-1]===0&&Me[kt-2]===0))continue;at[zt]=Me[kt],zt++}return new Uint8Array(at.buffer,0,zt)}},{key:"parseSPS",value:function(Te){var Me=tt._ebsp2rbsp(Te),Xe=new de(Me);Xe.readByte();var at=Xe.readByte();Xe.readByte();var zt=Xe.readByte();Xe.readUEG();var kt=tt.getProfileString(at),Xt=tt.getLevelString(zt),Dr=1,Pr=420,cn=[0,420,422,444],jt=8;if((at===100||at===110||at===122||at===244||at===44||at===83||at===86||at===118||at===128||at===138||at===144)&&(Dr=Xe.readUEG(),Dr===3&&Xe.readBits(1),Dr<=3&&(Pr=cn[Dr]),jt=Xe.readUEG()+8,Xe.readUEG(),Xe.readBits(1),Xe.readBool()))for(var gt=Dr!==3?8:12,dt=0;dt<gt;dt++)Xe.readBool()&&(dt<6?tt._skipScalingList(Xe,16):tt._skipScalingList(Xe,64));Xe.readUEG();var Qt=Xe.readUEG();if(Qt===0)Xe.readUEG();else if(Qt===1){Xe.readBits(1),Xe.readSEG(),Xe.readSEG();for(var Jt=Xe.readUEG(),xt=0;xt<Jt;xt++)Xe.readSEG()}var Pt=Xe.readUEG();Xe.readBits(1);var yt=Xe.readUEG(),Ut=Xe.readUEG(),pr=Xe.readBits(1);pr===0&&Xe.readBits(1),Xe.readBits(1);var sr=0,ir=0,Yr=0,Jr=0,In=Xe.readBool();In&&(sr=Xe.readUEG(),ir=Xe.readUEG(),Yr=Xe.readUEG(),Jr=Xe.readUEG());var Nn=1,zn=1,ei=0,Ai=!0,Pi=0,$e=0,_e=Xe.readBool();if(_e){if(Xe.readBool()){var Be=Xe.readByte(),He=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Je=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Be>0&&Be<16?(Nn=He[Be-1],zn=Je[Be-1]):Be===255&&(Nn=Xe.readByte()<<8|Xe.readByte(),zn=Xe.readByte()<<8|Xe.readByte())}if(Xe.readBool()&&Xe.readBool(),Xe.readBool()&&(Xe.readBits(4),Xe.readBool()&&Xe.readBits(24)),Xe.readBool()&&(Xe.readUEG(),Xe.readUEG()),Xe.readBool()){var Ye=Xe.readBits(32),et=Xe.readBits(32);Ai=Xe.readBool(),Pi=et,$e=Ye*2,ei=Pi/$e}}var wt=1;(Nn!==1||zn!==1)&&(wt=Nn/zn);var ut=0,Ft=0;if(Dr===0)ut=1,Ft=2-pr;else{var wr=Dr===3?1:2,hr=Dr===1?2:1;ut=wr,Ft=hr*(2-pr)}var Nr=(yt+1)*16,Kt=(2-pr)*((Ut+1)*16);Nr-=(sr+ir)*ut,Kt-=(Yr+Jr)*Ft;var un=Math.ceil(Nr*wt);return Xe.destroy(),Xe=null,{profile_string:kt,level_string:Xt,bit_depth:jt,ref_frames:Pt,chroma_format:Pr,chroma_format_string:tt.getChromaFormatString(Pr),frame_rate:{fixed:Ai,fps:ei,fps_den:$e,fps_num:Pi},sar_ratio:{width:Nn,height:zn},codec_size:{width:Nr,height:Kt},present_size:{width:un,height:Kt}}}},{key:"_skipScalingList",value:function(Te,Me){for(var Xe=8,at=8,zt=0,kt=0;kt<Me;kt++)at!==0&&(zt=Te.readSEG(),at=(Xe+zt+256)%256),Xe=at===0?Xe:at}},{key:"getProfileString",value:function(Te){switch(Te){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(Te){return(Te/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Te){switch(Te){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),tt}(),we=Ne,De={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Ee=De;function ce(tt){return tt>>>8&255|(tt&255)<<8}function ne(tt){return(tt&4278190080)>>>24|(tt&16711680)>>>8|(tt&65280)<<8|(tt&255)<<24}function ee(tt,nt){return tt[nt]<<24|tt[nt+1]<<16|tt[nt+2]<<8|tt[nt+3]}var Ae=function(){function tt(nt,Te){Object(D.a)(this,tt),this.TAG="FLVDemuxer",this._config=Te,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=nt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=nt.hasAudioTrack,this._hasVideo=nt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new me,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 Me=new ArrayBuffer(2);return new DataView(Me).setInt16(0,256,!0),new Int16Array(Me)[0]===256}()}return Object(N.a)(tt,[{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(Te){return Te.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Te){this._onTrackMetadata=Te}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Te){this._onMediaInfo=Te}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Te){this._onMetaDataArrived=Te}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Te){this._onScriptDataArrived=Te}},{key:"onError",get:function(){return this._onError},set:function(Te){this._onError=Te}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Te){this._onDataAvailable=Te}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Te){this._timestampBase=Te}},{key:"overridedDuration",get:function(){return this._duration},set:function(Te){this._durationOverrided=!0,this._duration=Te,this._mediaInfo.duration=Te}},{key:"overridedHasAudio",set:function(Te){this._hasAudioFlagOverrided=!0,this._hasAudio=Te,this._mediaInfo.hasAudio=Te}},{key:"overridedHasVideo",set:function(Te){this._hasVideoFlagOverrided=!0,this._hasVideo=Te,this._mediaInfo.hasVideo=Te}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new me}},{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(Te,Me){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new u("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Xe=0,at=this._littleEndian;if(Me===0)if(Te.byteLength>13){var zt=tt.probe(Te);Xe=zt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Me+Xe!==this._dataOffset&&f.w(this.TAG,"First time parsing but chunk byteStart invalid!");var kt=new DataView(Te,Xe),Xt=kt.getUint32(0,!at);Xt!==0&&f.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Xe+=4}for(;Xe<Te.byteLength;){this._dispatch=!0;var Dr=new DataView(Te,Xe);if(Xe+11+4>Te.byteLength)break;var Pr=Dr.getUint8(0),cn=Dr.getUint32(0,!at)&16777215;if(Xe+11+cn+4>Te.byteLength)break;if(Pr!==8&&Pr!==9&&Pr!==18){f.w(this.TAG,"Unsupported tag type ".concat(Pr,", skipped")),Xe+=11+cn+4;continue}var jt=Dr.getUint8(4),gt=Dr.getUint8(5),dt=Dr.getUint8(6),Qt=Dr.getUint8(7),Jt=dt|gt<<8|jt<<16|Qt<<24,xt=Dr.getUint32(7,!at)&16777215;xt!==0&&f.w(this.TAG,"Meet tag which has StreamID != 0!");var Pt=Xe+11;switch(Pr){case 8:this._parseAudioData(Te,Pt,cn,Jt);break;case 9:this._parseVideoData(Te,Pt,cn,Jt,Me+Xe);break;case 18:this._parseScriptData(Te,Pt,cn);break}var yt=Dr.getUint32(11+cn,!at);yt!==11+cn&&f.w(this.TAG,"Invalid PrevTagSize ".concat(yt)),Xe+=11+cn+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Xe}},{key:"_parseScriptData",value:function(Te,Me,Xe){var at=J.parseScriptData(Te,Me,Xe);if(at.hasOwnProperty("onMetaData")){if(at.onMetaData==null||typeof at.onMetaData!="object"){f.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&f.w(this.TAG,"Found another onMetaData tag!"),this._metadata=at;var zt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},zt)),typeof zt.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=zt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof zt.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=zt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof zt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=zt.audiodatarate),typeof zt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=zt.videodatarate),typeof zt.width=="number"&&(this._mediaInfo.width=zt.width),typeof zt.height=="number"&&(this._mediaInfo.height=zt.height),typeof zt.duration=="number"){if(!this._durationOverrided){var kt=Math.floor(zt.duration*this._timescale);this._duration=kt,this._mediaInfo.duration=kt}}else this._mediaInfo.duration=0;if(typeof zt.framerate=="number"){var Xt=Math.floor(zt.framerate*1e3);if(Xt>0){var Dr=Xt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Dr,this._referenceFrameRate.fps_num=Xt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Dr}}if(typeof zt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Pr=zt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Pr),zt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=zt,f.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(at).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},at)))}},{key:"_parseKeyframesIndex",value:function(Te){for(var Me=[],Xe=[],at=1;at<Te.times.length;at++){var zt=this._timestampBase+Math.floor(Te.times[at]*1e3);Me.push(zt),Xe.push(Te.filepositions[at])}return{times:Me,filepositions:Xe}}},{key:"_parseAudioData",value:function(Te,Me,Xe,at){if(Xe<=1){f.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var zt=this._littleEndian,kt=new DataView(Te,Me,Xe),Xt=kt.getUint8(0),Dr=Xt>>>4;if(Dr!==2&&Dr!==10){this._onError(Ee.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Dr);return}var Pr=0,cn=(Xt&12)>>>2;if(cn>=0&&cn<=4)Pr=this._flvSoundRateTable[cn];else{this._onError(Ee.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+cn);return}var jt=(Xt&2)>>>1,gt=Xt&1,dt=this._audioMetadata,Qt=this._audioTrack;if(dt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),dt=this._audioMetadata={},dt.type="audio",dt.id=Qt.id,dt.timescale=this._timescale,dt.duration=this._duration,dt.audioSampleRate=Pr,dt.channelCount=gt===0?1:2),Dr===10){var Jt=this._parseAACAudioData(Te,Me+1,Xe-1);if(Jt==null)return;if(Jt.packetType===0){dt.config&&f.w(this.TAG,"Found another AudioSpecificConfig!");var xt=Jt.data;dt.audioSampleRate=xt.samplingRate,dt.channelCount=xt.channelCount,dt.codec=xt.codec,dt.originalCodec=xt.originalCodec,dt.config=xt.config,dt.refSampleDuration=1024/dt.audioSampleRate*dt.timescale,f.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",dt);var Pt=this._mediaInfo;Pt.audioCodec=dt.originalCodec,Pt.audioSampleRate=dt.audioSampleRate,Pt.audioChannelCount=dt.channelCount,Pt.hasVideo?Pt.videoCodec!=null&&(Pt.mimeType='video/x-flv; codecs="'+Pt.videoCodec+","+Pt.audioCodec+'"'):Pt.mimeType='video/x-flv; codecs="'+Pt.audioCodec+'"',Pt.isComplete()&&this._onMediaInfo(Pt)}else if(Jt.packetType===1){var yt=this._timestampBase+at,Ut={unit:Jt.data,length:Jt.data.byteLength,dts:yt,pts:yt};Qt.samples.push(Ut),Qt.length+=Jt.data.length}else f.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Jt.packetType))}else if(Dr===2){if(!dt.codec){var pr=this._parseMP3AudioData(Te,Me+1,Xe-1,!0);if(pr==null)return;dt.audioSampleRate=pr.samplingRate,dt.channelCount=pr.channelCount,dt.codec=pr.codec,dt.originalCodec=pr.originalCodec,dt.refSampleDuration=1152/dt.audioSampleRate*dt.timescale,f.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",dt);var sr=this._mediaInfo;sr.audioCodec=dt.codec,sr.audioSampleRate=dt.audioSampleRate,sr.audioChannelCount=dt.channelCount,sr.audioDataRate=pr.bitRate,sr.hasVideo?sr.videoCodec!=null&&(sr.mimeType='video/x-flv; codecs="'+sr.videoCodec+","+sr.audioCodec+'"'):sr.mimeType='video/x-flv; codecs="'+sr.audioCodec+'"',sr.isComplete()&&this._onMediaInfo(sr)}var ir=this._parseMP3AudioData(Te,Me+1,Xe-1,!1);if(ir==null)return;var Yr=this._timestampBase+at,Jr={unit:ir,length:ir.byteLength,dts:Yr,pts:Yr};Qt.samples.push(Jr),Qt.length+=ir.length}}},{key:"_parseAACAudioData",value:function(Te,Me,Xe){if(Xe<=1){f.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var at={},zt=new Uint8Array(Te,Me,Xe);return at.packetType=zt[0],zt[0]===0?at.data=this._parseAACAudioSpecificConfig(Te,Me+1,Xe-1):at.data=zt.subarray(1),at}},{key:"_parseAACAudioSpecificConfig",value:function(Te,Me,Xe){var at=new Uint8Array(Te,Me,Xe),zt=null,kt=0,Xt=0,Dr=null,Pr=0,cn=null;if(kt=Xt=at[0]>>>3,Pr=(at[0]&7)<<1|at[1]>>>7,Pr<0||Pr>=this._mpegSamplingRates.length){this._onError(Ee.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var jt=this._mpegSamplingRates[Pr],gt=(at[1]&120)>>>3;if(gt<0||gt>=8){this._onError(Ee.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}kt===5&&(cn=(at[1]&7)<<1|at[2]>>>7,Dr=(at[2]&124)>>>2);var dt=self.navigator.userAgent.toLowerCase();return dt.indexOf("firefox")!==-1?Pr>=6?(kt=5,zt=new Array(4),cn=Pr-3):(kt=2,zt=new Array(2),cn=Pr):dt.indexOf("android")!==-1?(kt=2,zt=new Array(2),cn=Pr):(kt=5,cn=Pr,zt=new Array(4),Pr>=6?cn=Pr-3:gt===1&&(kt=2,zt=new Array(2),cn=Pr)),zt[0]=kt<<3,zt[0]|=(Pr&15)>>>1,zt[1]=(Pr&15)<<7,zt[1]|=(gt&15)<<3,kt===5&&(zt[1]|=(cn&15)>>>1,zt[2]=(cn&1)<<7,zt[2]|=2<<2,zt[3]=0),{config:zt,samplingRate:jt,channelCount:gt,codec:"mp4a.40."+kt,originalCodec:"mp4a.40."+Xt}}},{key:"_parseMP3AudioData",value:function(Te,Me,Xe,at){if(Xe<4){f.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var zt=this._littleEndian,kt=new Uint8Array(Te,Me,Xe),Xt=null;if(at){if(kt[0]!==255)return;var Dr=kt[1]>>>3&3,Pr=(kt[1]&6)>>1,cn=(kt[2]&240)>>>4,jt=(kt[2]&12)>>>2,gt=kt[3]>>>6&3,dt=gt!==3?2:1,Qt=0,Jt=0,xt=34,Pt="mp3";switch(Dr){case 0:Qt=this._mpegAudioV25SampleRateTable[jt];break;case 2:Qt=this._mpegAudioV20SampleRateTable[jt];break;case 3:Qt=this._mpegAudioV10SampleRateTable[jt];break}switch(Pr){case 1:xt=34,cn<this._mpegAudioL3BitRateTable.length&&(Jt=this._mpegAudioL3BitRateTable[cn]);break;case 2:xt=33,cn<this._mpegAudioL2BitRateTable.length&&(Jt=this._mpegAudioL2BitRateTable[cn]);break;case 3:xt=32,cn<this._mpegAudioL1BitRateTable.length&&(Jt=this._mpegAudioL1BitRateTable[cn]);break}Xt={bitRate:Jt,samplingRate:Qt,channelCount:dt,codec:Pt,originalCodec:Pt}}else Xt=kt;return Xt}},{key:"_parseVideoData",value:function(Te,Me,Xe,at,zt){if(Xe<=1){f.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var kt=new Uint8Array(Te,Me,Xe)[0],Xt=(kt&240)>>>4,Dr=kt&15;if(Dr!==7){this._onError(Ee.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Dr));return}this._parseAVCVideoPacket(Te,Me+1,Xe-1,at,zt,Xt)}},{key:"_parseAVCVideoPacket",value:function(Te,Me,Xe,at,zt,kt){if(Xe<4){f.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Xt=this._littleEndian,Dr=new DataView(Te,Me,Xe),Pr=Dr.getUint8(0),cn=Dr.getUint32(0,!Xt)&16777215,jt=cn<<8>>8;if(Pr===0)this._parseAVCDecoderConfigurationRecord(Te,Me+4,Xe-4);else if(Pr===1)this._parseAVCVideoData(Te,Me+4,Xe-4,at,zt,kt,jt);else if(!(Pr===2)){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Pr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Te,Me,Xe){if(Xe<7){f.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var at=this._videoMetadata,zt=this._videoTrack,kt=this._littleEndian,Xt=new DataView(Te,Me,Xe);at?typeof at.avcc!="undefined"&&f.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),at=this._videoMetadata={},at.type="video",at.id=zt.id,at.timescale=this._timescale,at.duration=this._duration);var Dr=Xt.getUint8(0),Pr=Xt.getUint8(1),cn=Xt.getUint8(2),jt=Xt.getUint8(3);if(Dr!==1||Pr===0){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Xt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ee.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var gt=Xt.getUint8(5)&31;if(gt===0){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else gt>1&&f.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(gt));for(var dt=6,Qt=0;Qt<gt;Qt++){var Jt=Xt.getUint16(dt,!kt);if(dt+=2,Jt===0)continue;var xt=new Uint8Array(Te,Me+dt,Jt);dt+=Jt;var Pt=we.parseSPS(xt);if(Qt!==0)continue;at.codecWidth=Pt.codec_size.width,at.codecHeight=Pt.codec_size.height,at.presentWidth=Pt.present_size.width,at.presentHeight=Pt.present_size.height,at.profile=Pt.profile_string,at.level=Pt.level_string,at.bitDepth=Pt.bit_depth,at.chromaFormat=Pt.chroma_format,at.sarRatio=Pt.sar_ratio,at.frameRate=Pt.frame_rate,(Pt.frame_rate.fixed===!1||Pt.frame_rate.fps_num===0||Pt.frame_rate.fps_den===0)&&(at.frameRate=this._referenceFrameRate);var yt=at.frameRate.fps_den,Ut=at.frameRate.fps_num;at.refSampleDuration=at.timescale*(yt/Ut);for(var pr=xt.subarray(1,4),sr="avc1.",ir=0;ir<3;ir++){var Yr=pr[ir].toString(16);Yr.length<2&&(Yr="0"+Yr),sr+=Yr}at.codec=sr;var Jr=this._mediaInfo;Jr.width=at.codecWidth,Jr.height=at.codecHeight,Jr.fps=at.frameRate.fps,Jr.profile=at.profile,Jr.level=at.level,Jr.refFrames=Pt.ref_frames,Jr.chromaFormat=Pt.chroma_format_string,Jr.sarNum=at.sarRatio.width,Jr.sarDen=at.sarRatio.height,Jr.videoCodec=sr,Jr.hasAudio?Jr.audioCodec!=null&&(Jr.mimeType='video/x-flv; codecs="'+Jr.videoCodec+","+Jr.audioCodec+'"'):Jr.mimeType='video/x-flv; codecs="'+Jr.videoCodec+'"',Jr.isComplete()&&this._onMediaInfo(Jr)}var In=Xt.getUint8(dt);if(In===0){this._onError(Ee.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else In>1&&f.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(In));dt++;for(var Nn=0;Nn<In;Nn++){var zn=Xt.getUint16(dt,!kt);if(dt+=2,zn===0)continue;dt+=zn}at.avcc=new Uint8Array(Xe),at.avcc.set(new Uint8Array(Te,Me,Xe),0),f.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",at)}},{key:"_parseAVCVideoData",value:function(Te,Me,Xe,at,zt,kt,Xt){for(var Dr=this._littleEndian,Pr=new DataView(Te,Me,Xe),cn=[],jt=0,gt=0,dt=this._naluLengthSize,Qt=this._timestampBase+at,Jt=kt===1;gt<Xe;){if(gt+4>=Xe){f.w(this.TAG,"Malformed Nalu near timestamp ".concat(Qt,", offset = ").concat(gt,", dataSize = ").concat(Xe));break}var xt=Pr.getUint32(gt,!Dr);if(dt===3&&(xt>>>=8),xt>Xe-dt){f.w(this.TAG,"Malformed Nalus near timestamp ".concat(Qt,", NaluSize > DataSize!"));return}var Pt=Pr.getUint8(gt+dt)&31;Pt===5&&(Jt=!0);var yt=new Uint8Array(Te,Me+gt,dt+xt),Ut={type:Pt,data:yt};cn.push(Ut),jt+=yt.byteLength,gt+=dt+xt}if(cn.length){var pr=this._videoTrack,sr={units:cn,length:jt,isKeyframe:Jt,dts:Qt,cts:Xt,pts:Qt+Xt};Jt&&(sr.fileposition=zt),pr.samples.push(sr),pr.length+=jt}}}],[{key:"probe",value:function(Te){var Me=new Uint8Array(Te),Xe={match:!1};if(Me[0]!==70||Me[1]!==76||Me[2]!==86||Me[3]!==1)return Xe;var at=(Me[4]&4)>>>2!==0,zt=(Me[4]&1)!==0,kt=ee(Me,5);return kt<9?Xe:{match:!0,consumed:kt,dataOffset:kt,hasAudioTrack:at,hasVideoTrack:zt}}}]),tt}(),Ve=Ae,Ke=function(){function tt(){Object(D.a)(this,tt)}return Object(N.a)(tt,null,[{key:"init",value:function(){tt.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 Te in tt.types)tt.types.hasOwnProperty(Te)&&(tt.types[Te]=[Te.charCodeAt(0),Te.charCodeAt(1),Te.charCodeAt(2),Te.charCodeAt(3)]);var Me=tt.constants={};Me.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Me.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Me.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Me.STSC=Me.STCO=Me.STTS,Me.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Me.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]),Me.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]),Me.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Me.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Me.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Te){for(var Me=8,Xe=null,at=Array.prototype.slice.call(arguments,1),zt=at.length,kt=0;kt<zt;kt++)Me+=at[kt].byteLength;Xe=new Uint8Array(Me),Xe[0]=Me>>>24&255,Xe[1]=Me>>>16&255,Xe[2]=Me>>>8&255,Xe[3]=Me&255,Xe.set(Te,4);for(var Xt=8,Dr=0;Dr<zt;Dr++)Xe.set(at[Dr],Xt),Xt+=at[Dr].byteLength;return Xe}},{key:"generateInitSegment",value:function(Te){var Me=tt.box(tt.types.ftyp,tt.constants.FTYP),Xe=tt.moov(Te),at=new Uint8Array(Me.byteLength+Xe.byteLength);return at.set(Me,0),at.set(Xe,Me.byteLength),at}},{key:"moov",value:function(Te){var Me=tt.mvhd(Te.timescale,Te.duration),Xe=tt.trak(Te),at=tt.mvex(Te);return tt.box(tt.types.moov,Me,Xe,at)}},{key:"mvhd",value:function(Te,Me){return tt.box(tt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Te>>>24&255,Te>>>16&255,Te>>>8&255,Te&255,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&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(Te){return tt.box(tt.types.trak,tt.tkhd(Te),tt.mdia(Te))}},{key:"tkhd",value:function(Te){var Me=Te.id,Xe=Te.duration,at=Te.presentWidth,zt=Te.presentHeight;return tt.box(tt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255,0,0,0,0,Xe>>>24&255,Xe>>>16&255,Xe>>>8&255,Xe&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,at>>>8&255,at&255,0,0,zt>>>8&255,zt&255,0,0]))}},{key:"mdia",value:function(Te){return tt.box(tt.types.mdia,tt.mdhd(Te),tt.hdlr(Te),tt.minf(Te))}},{key:"mdhd",value:function(Te){var Me=Te.timescale,Xe=Te.duration;return tt.box(tt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255,Xe>>>24&255,Xe>>>16&255,Xe>>>8&255,Xe&255,85,196,0,0]))}},{key:"hdlr",value:function(Te){var Me=null;return Te.type==="audio"?Me=tt.constants.HDLR_AUDIO:Me=tt.constants.HDLR_VIDEO,tt.box(tt.types.hdlr,Me)}},{key:"minf",value:function(Te){var Me=null;return Te.type==="audio"?Me=tt.box(tt.types.smhd,tt.constants.SMHD):Me=tt.box(tt.types.vmhd,tt.constants.VMHD),tt.box(tt.types.minf,Me,tt.dinf(),tt.stbl(Te))}},{key:"dinf",value:function(){var Te=tt.box(tt.types.dinf,tt.box(tt.types.dref,tt.constants.DREF));return Te}},{key:"stbl",value:function(Te){var Me=tt.box(tt.types.stbl,tt.stsd(Te),tt.box(tt.types.stts,tt.constants.STTS),tt.box(tt.types.stsc,tt.constants.STSC),tt.box(tt.types.stsz,tt.constants.STSZ),tt.box(tt.types.stco,tt.constants.STCO));return Me}},{key:"stsd",value:function(Te){return Te.type==="audio"?Te.codec==="mp3"?tt.box(tt.types.stsd,tt.constants.STSD_PREFIX,tt.mp3(Te)):tt.box(tt.types.stsd,tt.constants.STSD_PREFIX,tt.mp4a(Te)):tt.box(tt.types.stsd,tt.constants.STSD_PREFIX,tt.avc1(Te))}},{key:"mp3",value:function(Te){var Me=Te.channelCount,Xe=Te.audioSampleRate,at=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Me,0,16,0,0,0,0,Xe>>>8&255,Xe&255,0,0]);return tt.box(tt.types[".mp3"],at)}},{key:"mp4a",value:function(Te){var Me=Te.channelCount,Xe=Te.audioSampleRate,at=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Me,0,16,0,0,0,0,Xe>>>8&255,Xe&255,0,0]);return tt.box(tt.types.mp4a,at,tt.esds(Te))}},{key:"esds",value:function(Te){var Me=Te.config||[],Xe=Me.length,at=new Uint8Array([0,0,0,0,3,23+Xe,0,1,0,4,15+Xe,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Xe]).concat(Me).concat([6,1,2]));return tt.box(tt.types.esds,at)}},{key:"avc1",value:function(Te){var Me=Te.avcc,Xe=Te.codecWidth,at=Te.codecHeight,zt=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,Xe>>>8&255,Xe&255,at>>>8&255,at&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 tt.box(tt.types.avc1,zt,tt.box(tt.types.avcC,Me))}},{key:"mvex",value:function(Te){return tt.box(tt.types.mvex,tt.trex(Te))}},{key:"trex",value:function(Te){var Me=Te.id,Xe=new Uint8Array([0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return tt.box(tt.types.trex,Xe)}},{key:"moof",value:function(Te,Me){return tt.box(tt.types.moof,tt.mfhd(Te.sequenceNumber),tt.traf(Te,Me))}},{key:"mfhd",value:function(Te){var Me=new Uint8Array([0,0,0,0,Te>>>24&255,Te>>>16&255,Te>>>8&255,Te&255]);return tt.box(tt.types.mfhd,Me)}},{key:"traf",value:function(Te,Me){var Xe=Te.id,at=tt.box(tt.types.tfhd,new Uint8Array([0,0,0,0,Xe>>>24&255,Xe>>>16&255,Xe>>>8&255,Xe&255])),zt=tt.box(tt.types.tfdt,new Uint8Array([0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255])),kt=tt.sdtp(Te),Xt=tt.trun(Te,kt.byteLength+16+16+8+16+8+8);return tt.box(tt.types.traf,at,zt,Xt,kt)}},{key:"sdtp",value:function(Te){for(var Me=Te.samples||[],Xe=Me.length,at=new Uint8Array(4+Xe),zt=0;zt<Xe;zt++){var kt=Me[zt].flags;at[zt+4]=kt.isLeading<<6|kt.dependsOn<<4|kt.isDependedOn<<2|kt.hasRedundancy}return tt.box(tt.types.sdtp,at)}},{key:"trun",value:function(Te,Me){var Xe=Te.samples||[],at=Xe.length,zt=12+16*at,kt=new Uint8Array(zt);Me+=8+zt,kt.set([0,0,15,1,at>>>24&255,at>>>16&255,at>>>8&255,at&255,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255],0);for(var Xt=0;Xt<at;Xt++){var Dr=Xe[Xt].duration,Pr=Xe[Xt].size,cn=Xe[Xt].flags,jt=Xe[Xt].cts;kt.set([Dr>>>24&255,Dr>>>16&255,Dr>>>8&255,Dr&255,Pr>>>24&255,Pr>>>16&255,Pr>>>8&255,Pr&255,cn.isLeading<<2|cn.dependsOn,cn.isDependedOn<<6|cn.hasRedundancy<<4|cn.isNonSync,0,0,jt>>>24&255,jt>>>16&255,jt>>>8&255,jt&255],12+16*Xt)}return tt.box(tt.types.trun,kt)}},{key:"mdat",value:function(Te){return tt.box(tt.types.mdat,Te)}}]),tt}();Ke.init();var Oe=Ke,it=function(){function tt(){Object(D.a)(this,tt)}return Object(N.a)(tt,null,[{key:"getSilentFrame",value:function(Te,Me){if(Te==="mp4a.40.2"){if(Me===1)return new Uint8Array([0,200,0,128,35,128]);if(Me===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Me===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Me===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Me===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(Me===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(Me===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(Me===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(Me===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}}]),tt}(),Fe=it,ft=Object(N.a)(function tt(nt,Te,Me,Xe,at){Object(D.a)(this,tt),this.dts=nt,this.pts=Te,this.duration=Me,this.originalDts=Xe,this.isSyncPoint=at,this.fileposition=null}),At=function(){function tt(){Object(D.a)(this,tt),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(N.a)(tt,[{key:"appendSyncPoint",value:function(Te){Te.isSyncPoint=!0,this.syncPoints.push(Te)}}]),tt}(),bt=function(){function tt(){Object(D.a)(this,tt),this._list=[]}return Object(N.a)(tt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Te){var Me=this._list;if(Te.length===0)return;Me.length>0&&Te[0].originalDts<Me[Me.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Me,Te)}},{key:"getLastSyncPointBeforeDts",value:function(Te){if(this._list.length==0)return null;var Me=this._list,Xe=0,at=Me.length-1,zt=0,kt=0,Xt=at;for(Te<Me[0].dts&&(Xe=0,kt=Xt+1);kt<=Xt;)if(zt=kt+Math.floor((Xt-kt)/2),zt===at||Te>=Me[zt].dts&&Te<Me[zt+1].dts){Xe=zt;break}else Me[zt].dts<Te?kt=zt+1:Xt=zt-1;return this._list[Xe]}}]),tt}(),St=function(){function tt(nt){Object(D.a)(this,tt),this._type=nt,this._list=[],this._lastAppendLocation=-1}return Object(N.a)(tt,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{key:"isEmpty",value:function(){return this._list.length===0}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(Te){var Me=this._list;if(Me.length===0)return-2;var Xe=Me.length-1,at=0,zt=0,kt=Xe,Xt=0;if(Te<Me[0].originalBeginDts)return Xt=-1,Xt;for(;zt<=kt;)if(at=zt+Math.floor((kt-zt)/2),at===Xe||Te>Me[at].lastSample.originalDts&&Te<Me[at+1].originalBeginDts){Xt=at;break}else Me[at].originalBeginDts<Te?zt=at+1:kt=at-1;return Xt}},{key:"_searchNearestSegmentAfter",value:function(Te){return this._searchNearestSegmentBefore(Te)+1}},{key:"append",value:function(Te){var Me=this._list,Xe=Te,at=this._lastAppendLocation,zt=0;at!==-1&&at<Me.length&&Xe.originalBeginDts>=Me[at].lastSample.originalDts&&(at===Me.length-1||at<Me.length-1&&Xe.originalBeginDts<Me[at+1].originalBeginDts)?zt=at+1:Me.length>0&&(zt=this._searchNearestSegmentBefore(Xe.originalBeginDts)+1),this._lastAppendLocation=zt,this._list.splice(zt,0,Xe)}},{key:"getLastSegmentBefore",value:function(Te){var Me=this._searchNearestSegmentBefore(Te);return Me>=0?this._list[Me]:null}},{key:"getLastSampleBefore",value:function(Te){var Me=this.getLastSegmentBefore(Te);return Me!=null?Me.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Te){for(var Me=this._searchNearestSegmentBefore(Te),Xe=this._list[Me].syncPoints;Xe.length===0&&Me>0;)Me--,Xe=this._list[Me].syncPoints;return Xe.length>0?Xe[Xe.length-1]:null}}]),tt}(),Et=function(){function tt(nt){Object(D.a)(this,tt),this.TAG="MP4Remuxer",this._config=nt,this._isLive=nt.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 St("audio"),this._videoSegmentInfoList=new St("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(A.chrome&&(A.version.major<50||A.version.major===50&&A.version.build<2661)),this._fillSilentAfterSeek=A.msedge||A.msie,this._mp3UseMpegAudio=!A.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(N.a)(tt,[{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(Te){return Te.onDataAvailable=this.remux.bind(this),Te.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Te){this._onInitSegment=Te}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Te){this._onMediaSegment=Te}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Te){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Te,Me){if(!this._onMediaSegment)throw new u("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Te,Me),this._remuxVideo(Me),this._remuxAudio(Te)}},{key:"_onTrackMetadataReceived",value:function(Te,Me){var Xe=null,at="mp4",zt=Me.codec;if(Te==="audio")this._audioMeta=Me,Me.codec==="mp3"&&this._mp3UseMpegAudio?(at="mpeg",zt="",Xe=new Uint8Array):Xe=Oe.generateInitSegment(Me);else if(Te==="video")this._videoMeta=Me,Xe=Oe.generateInitSegment(Me);else return;if(!this._onInitSegment)throw new u("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Te,{type:Te,data:Xe.buffer,codec:zt,container:"".concat(Te,"/").concat(at),mediaDuration:Me.duration})}},{key:"_calculateDtsBase",value:function(Te,Me){if(this._dtsBaseInited)return;Te.samples&&Te.samples.length&&(this._audioDtsBase=Te.samples[0].dts),Me.samples&&Me.samples.length&&(this._videoDtsBase=Me.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Te=this._videoStashedLastSample,Me=this._audioStashedLastSample,Xe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Te!=null&&(Xe.samples.push(Te),Xe.length=Te.length);var at={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Me!=null&&(at.samples.push(Me),at.length=Me.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Xe,!0),this._remuxAudio(at,!0)}},{key:"_remuxAudio",value:function(Te,Me){if(this._audioMeta==null)return;var Xe=Te,at=Xe.samples,zt=void 0,kt=-1,Xt=-1,Dr=-1,Pr=this._audioMeta.refSampleDuration,cn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,jt=this._dtsBaseInited&&this._audioNextDts===void 0,gt=!1;if(!at||at.length===0)return;if(at.length===1&&!Me)return;var dt=0,Qt=null,Jt=0;cn?(dt=0,Jt=Xe.length):(dt=8,Jt=8+Xe.length);var xt=null;if(at.length>1&&(xt=at.pop(),Jt-=xt.length),this._audioStashedLastSample!=null){var Pt=this._audioStashedLastSample;this._audioStashedLastSample=null,at.unshift(Pt),Jt+=Pt.length}xt!=null&&(this._audioStashedLastSample=xt);var yt=at[0].dts-this._dtsBase;if(this._audioNextDts)zt=yt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())zt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(gt=!0));else{var Ut=this._audioSegmentInfoList.getLastSampleBefore(yt);if(Ut!=null){var pr=yt-(Ut.originalDts+Ut.duration);pr<=3&&(pr=0);var sr=Ut.dts+Ut.duration+pr;zt=yt-sr}else zt=0}if(gt){var ir=yt-zt,Yr=this._videoSegmentInfoList.getLastSegmentBefore(yt);if(Yr!=null&&Yr.beginDts<ir){var Jr=Fe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Jr){var In=Yr.beginDts,Nn=ir-Yr.beginDts;f.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(In,", duration: ").concat(Nn)),at.unshift({unit:Jr,dts:In,pts:In}),Jt+=Jr.byteLength}}else gt=!1}for(var zn=[],ei=0;ei<at.length;ei++){var Ai=at[ei],Pi=Ai.unit,$e=Ai.dts-this._dtsBase,_e=$e-zt;kt===-1&&(kt=_e);var Be=0;if(ei!==at.length-1){var He=at[ei+1].dts-this._dtsBase-zt;Be=He-_e}else if(xt!=null){var Je=xt.dts-this._dtsBase-zt;Be=Je-_e}else zn.length>=1?Be=zn[zn.length-1].duration:Be=Math.floor(Pr);var Ye=!1,et=null;if(Be>Pr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!A.safari){Ye=!0;var wt=Math.abs(Be-Pr),ut=Math.ceil(wt/Pr),Ft=_e+Pr;f.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
`+"dts: ".concat(_e+Be," ms, expected: ").concat(_e+Math.round(Pr)," ms, ")+"delta: ".concat(Math.round(wt)," ms, generate: ").concat(ut," frames"));var wr=Fe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);wr==null&&(f.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),wr=Pi),et=[];for(var hr=0;hr<ut;hr++){var Nr=Math.round(Ft);if(et.length>0){var Kt=et[et.length-1];Kt.duration=Nr-Kt.dts}var un={dts:Nr,pts:Nr,cts:0,unit:wr,size:wr.byteLength,duration:0,originalDts:$e,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};et.push(un),Jt+=un.size,Ft+=Pr}var ar=et[et.length-1];ar.duration=_e+Be-ar.dts,Be=Math.round(Pr)}zn.push({dts:_e,pts:_e,cts:0,unit:Ai.unit,size:Ai.unit.byteLength,duration:Be,originalDts:$e,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ye&&zn.push.apply(zn,et)}cn?Qt=new Uint8Array(Jt):(Qt=new Uint8Array(Jt),Qt[0]=Jt>>>24&255,Qt[1]=Jt>>>16&255,Qt[2]=Jt>>>8&255,Qt[3]=Jt&255,Qt.set(Oe.types.mdat,4));for(var Gr=0;Gr<zn.length;Gr++){var Br=zn[Gr].unit;Qt.set(Br,dt),dt+=Br.byteLength}var gr=zn[zn.length-1];Xt=gr.dts+gr.duration,this._audioNextDts=Xt;var Sn=new At;Sn.beginDts=kt,Sn.endDts=Xt,Sn.beginPts=kt,Sn.endPts=Xt,Sn.originalBeginDts=zn[0].originalDts,Sn.originalEndDts=gr.originalDts+gr.duration,Sn.firstSample=new ft(zn[0].dts,zn[0].pts,zn[0].duration,zn[0].originalDts,!1),Sn.lastSample=new ft(gr.dts,gr.pts,gr.duration,gr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Sn),Xe.samples=zn,Xe.sequenceNumber++;var Pn=null;cn?Pn=new Uint8Array:Pn=Oe.moof(Xe,kt),Xe.samples=[],Xe.length=0;var ii={type:"audio",data:this._mergeBoxes(Pn,Qt).buffer,sampleCount:zn.length,info:Sn};cn&&jt&&(ii.timestampOffset=kt),this._onMediaSegment("audio",ii)}},{key:"_remuxVideo",value:function(Te,Me){if(this._videoMeta==null)return;var Xe=Te,at=Xe.samples,zt=void 0,kt=-1,Xt=-1,Dr=-1,Pr=-1;if(!at||at.length===0)return;if(at.length===1&&!Me)return;var cn=8,jt=null,gt=8+Te.length,dt=null;if(at.length>1&&(dt=at.pop(),gt-=dt.length),this._videoStashedLastSample!=null){var Qt=this._videoStashedLastSample;this._videoStashedLastSample=null,at.unshift(Qt),gt+=Qt.length}dt!=null&&(this._videoStashedLastSample=dt);var Jt=at[0].dts-this._dtsBase;if(this._videoNextDts)zt=Jt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())zt=0;else{var xt=this._videoSegmentInfoList.getLastSampleBefore(Jt);if(xt!=null){var Pt=Jt-(xt.originalDts+xt.duration);Pt<=3&&(Pt=0);var yt=xt.dts+xt.duration+Pt;zt=Jt-yt}else zt=0}for(var Ut=new At,pr=[],sr=0;sr<at.length;sr++){var ir=at[sr],Yr=ir.dts-this._dtsBase,Jr=ir.isKeyframe,In=Yr-zt,Nn=ir.cts,zn=In+Nn;kt===-1&&(kt=In,Dr=zn);var ei=0;if(sr!==at.length-1){var Ai=at[sr+1].dts-this._dtsBase-zt;ei=Ai-In}else if(dt!=null){var Pi=dt.dts-this._dtsBase-zt;ei=Pi-In}else pr.length>=1?ei=pr[pr.length-1].duration:ei=Math.floor(this._videoMeta.refSampleDuration);if(Jr){var $e=new ft(In,zn,ei,ir.dts,!0);$e.fileposition=ir.fileposition,Ut.appendSyncPoint($e)}pr.push({dts:In,pts:zn,cts:Nn,units:ir.units,size:ir.length,isKeyframe:Jr,duration:ei,originalDts:Yr,flags:{isLeading:0,dependsOn:Jr?2:1,isDependedOn:Jr?1:0,hasRedundancy:0,isNonSync:Jr?0:1}})}jt=new Uint8Array(gt),jt[0]=gt>>>24&255,jt[1]=gt>>>16&255,jt[2]=gt>>>8&255,jt[3]=gt&255,jt.set(Oe.types.mdat,4);for(var _e=0;_e<pr.length;_e++)for(var Be=pr[_e].units;Be.length;){var He=Be.shift(),Je=He.data;jt.set(Je,cn),cn+=Je.byteLength}var Ye=pr[pr.length-1];if(Xt=Ye.dts+Ye.duration,Pr=Ye.pts+Ye.duration,this._videoNextDts=Xt,Ut.beginDts=kt,Ut.endDts=Xt,Ut.beginPts=Dr,Ut.endPts=Pr,Ut.originalBeginDts=pr[0].originalDts,Ut.originalEndDts=Ye.originalDts+Ye.duration,Ut.firstSample=new ft(pr[0].dts,pr[0].pts,pr[0].duration,pr[0].originalDts,pr[0].isKeyframe),Ut.lastSample=new ft(Ye.dts,Ye.pts,Ye.duration,Ye.originalDts,Ye.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Ut),Xe.samples=pr,Xe.sequenceNumber++,this._forceFirstIDR){var et=pr[0].flags;et.dependsOn=2,et.isNonSync=0}var wt=Oe.moof(Xe,kt);Xe.samples=[],Xe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(wt,jt).buffer,sampleCount:pr.length,info:Ut})}},{key:"_mergeBoxes",value:function(Te,Me){var Xe=new Uint8Array(Te.byteLength+Me.byteLength);return Xe.set(Te,0),Xe.set(Me,Te.byteLength),Xe}}]),tt}(),je=Et,pe={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"},ie=pe,st=function(){function tt(nt,Te){Object(D.a)(this,tt),this.TAG="TransmuxingController",this._emitter=new o.a,this._config=Te,nt.segments||(nt.segments=[{duration:nt.duration,filesize:nt.filesize,url:nt.url}]),typeof nt.cors!="boolean"&&(nt.cors=!0),typeof nt.withCredentials!="boolean"&&(nt.withCredentials=!1),this._mediaDataSource=nt,this._currentSegmentIndex=0;var Me=0;this._mediaDataSource.segments.forEach(function(Xe){Xe.timestampBase=Me,Me+=Xe.duration,Xe.cors=nt.cors,Xe.withCredentials=nt.withCredentials,Te.referrerPolicy&&(Xe.referrerPolicy=Te.referrerPolicy)}),!isNaN(Me)&&this._mediaDataSource.duration!==Me&&(this._mediaDataSource.duration=Me),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(N.a)(tt,[{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(Te,Me){this._emitter.addListener(Te,Me)}},{key:"off",value:function(Te,Me){this._emitter.removeListener(Te,Me)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Te,Me){this._currentSegmentIndex=Te;var Xe=this._mediaDataSource.segments[Te],at=this._ioctl=new H(Xe,this._config,Te);at.onError=this._onIOException.bind(this),at.onSeeked=this._onIOSeeked.bind(this),at.onComplete=this._onIOComplete.bind(this),at.onRedirect=this._onIORedirect.bind(this),at.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Me?this._demuxer.bindDataSource(this._ioctl):at.onDataArrival=this._onInitChunkArrival.bind(this),at.open(Me)}},{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(Te){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Me=this._searchSegmentIndexContains(Te);if(Me===this._currentSegmentIndex){var Xe=this._mediaInfo.segments[Me];if(Xe==null)this._pendingSeekTime=Te;else{var at=Xe.getNearestKeyframe(Te);this._remuxer.seek(at.milliseconds),this._ioctl.seek(at.fileposition),this._pendingResolveSeekPoint=at.milliseconds}}else{var zt=this._mediaInfo.segments[Me];if(zt==null)this._pendingSeekTime=Te,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Me);else{var kt=zt.getNearestKeyframe(Te);this._internalAbort(),this._remuxer.seek(Te),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Me].timestampBase,this._loadSegment(Me,kt.fileposition),this._pendingResolveSeekPoint=kt.milliseconds,this._reportSegmentMediaInfo(Me)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Te){for(var Me=this._mediaDataSource.segments,Xe=Me.length-1,at=0;at<Me.length;at++)if(Te<Me[at].timestampBase){Xe=at-1;break}return Xe}},{key:"_onInitChunkArrival",value:function(Te,Me){var Xe=this,at=null,zt=0;if(Me>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,zt=this._demuxer.parseChunks(Te,Me);else if((at=Ve.probe(Te)).match){this._demuxer=new Ve(at,this._config),this._remuxer||(this._remuxer=new je(this._config));var kt=this._mediaDataSource;kt.duration!=null&&!isNaN(kt.duration)&&(this._demuxer.overridedDuration=kt.duration),typeof kt.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=kt.hasAudio),typeof kt.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=kt.hasVideo),this._demuxer.timestampBase=kt.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),zt=this._demuxer.parseChunks(Te,Me)}else at=null,f.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Xe._internalAbort()}),this._emitter.emit(ie.DEMUX_ERROR,Ee.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),zt=0;return zt}},{key:"_onMediaInfo",value:function(Te){var Me=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Te),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,me.prototype));var Xe=Object.assign({},Te);Object.setPrototypeOf(Xe,me.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Xe,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var at=Me._pendingSeekTime;Me._pendingSeekTime=null,Me.seek(at)})}},{key:"_onMetaDataArrived",value:function(Te){this._emitter.emit(ie.METADATA_ARRIVED,Te)}},{key:"_onScriptDataArrived",value:function(Te){this._emitter.emit(ie.SCRIPTDATA_ARRIVED,Te)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Te){var Me=Te,Xe=Me+1;Xe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Xe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(ie.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Te){var Me=this._ioctl.extraData;this._mediaDataSource.segments[Me].redirectedURL=Te}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(ie.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Te,Me){f.e(this.TAG,"IOException: type = ".concat(Te,", code = ").concat(Me.code,", msg = ").concat(Me.msg)),this._emitter.emit(ie.IO_ERROR,Te,Me),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Te,Me){f.e(this.TAG,"DemuxException: type = ".concat(Te,", info = ").concat(Me)),this._emitter.emit(ie.DEMUX_ERROR,Te,Me)}},{key:"_onRemuxerInitSegmentArrival",value:function(Te,Me){this._emitter.emit(ie.INIT_SEGMENT,Te,Me)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Te,Me){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(ie.MEDIA_SEGMENT,Te,Me),this._pendingResolveSeekPoint!=null&&Te==="video"){var Xe=Me.info.syncPoints,at=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,A.safari&&Xe.length>0&&Xe[0].originalDts===at&&(at=Xe[0].pts),this._emitter.emit(ie.RECOMMEND_SEEKPOINT,at)}}},{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(Te){var Me=this._mediaInfo.segments[Te],Xe=Object.assign({},Me);Xe.duration=this._mediaInfo.duration,Xe.segmentCount=this._mediaInfo.segmentCount,delete Xe.segments,delete Xe.keyframesIndex,this._emitter.emit(ie.MEDIA_INFO,Xe)}},{key:"_reportStatisticsInfo",value:function(){var Te={};Te.url=this._ioctl.currentURL,Te.hasRedirect=this._ioctl.hasRedirect,Te.hasRedirect&&(Te.redirectedURL=this._ioctl.currentRedirectedURL),Te.speed=this._ioctl.currentSpeed,Te.loaderType=this._ioctl.loaderType,Te.currentSegmentIndex=this._currentSegmentIndex,Te.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(ie.STATISTICS_INFO,Te)}}]),tt}(),Qe=st,ve=function(nt){var Te="TransmuxingWorker",Me=null,Xe=Jt.bind(this);E.install(),nt.addEventListener("message",function(xt){switch(xt.data.cmd){case"init":Me=new Qe(xt.data.param[0],xt.data.param[1]),Me.on(ie.IO_ERROR,gt.bind(this)),Me.on(ie.DEMUX_ERROR,dt.bind(this)),Me.on(ie.INIT_SEGMENT,at.bind(this)),Me.on(ie.MEDIA_SEGMENT,zt.bind(this)),Me.on(ie.LOADING_COMPLETE,kt.bind(this)),Me.on(ie.RECOVERED_EARLY_EOF,Xt.bind(this)),Me.on(ie.MEDIA_INFO,Dr.bind(this)),Me.on(ie.METADATA_ARRIVED,Pr.bind(this)),Me.on(ie.SCRIPTDATA_ARRIVED,cn.bind(this)),Me.on(ie.STATISTICS_INFO,jt.bind(this)),Me.on(ie.RECOMMEND_SEEKPOINT,Qt.bind(this));break;case"destroy":Me&&(Me.destroy(),Me=null),nt.postMessage({msg:"destroyed"});break;case"start":Me.start();break;case"stop":Me.stop();break;case"seek":Me.seek(xt.data.param);break;case"pause":Me.pause();break;case"resume":Me.resume();break;case"logging_config":{var Pt=xt.data.param;ue.applyConfig(Pt),Pt.enableCallback===!0?ue.addLogListener(Xe):ue.removeLogListener(Xe);break}}});function at(xt,Pt){var yt={msg:ie.INIT_SEGMENT,data:{type:xt,data:Pt}};nt.postMessage(yt,[Pt.data])}function zt(xt,Pt){var yt={msg:ie.MEDIA_SEGMENT,data:{type:xt,data:Pt}};nt.postMessage(yt,[Pt.data])}function kt(){var xt={msg:ie.LOADING_COMPLETE};nt.postMessage(xt)}function Xt(){var xt={msg:ie.RECOVERED_EARLY_EOF};nt.postMessage(xt)}function Dr(xt){var Pt={msg:ie.MEDIA_INFO,data:xt};nt.postMessage(Pt)}function Pr(xt){var Pt={msg:ie.METADATA_ARRIVED,data:xt};nt.postMessage(Pt)}function cn(xt){var Pt={msg:ie.SCRIPTDATA_ARRIVED,data:xt};nt.postMessage(Pt)}function jt(xt){var Pt={msg:ie.STATISTICS_INFO,data:xt};nt.postMessage(Pt)}function gt(xt,Pt){nt.postMessage({msg:ie.IO_ERROR,data:{type:xt,info:Pt}})}function dt(xt,Pt){nt.postMessage({msg:ie.DEMUX_ERROR,data:{type:xt,info:Pt}})}function Qt(xt){nt.postMessage({msg:ie.RECOMMEND_SEEKPOINT,data:xt})}function Jt(xt,Pt){nt.postMessage({msg:"logcat_callback",data:{type:xt,logcat:Pt}})}},Bt=ve,qt=function(){function tt(nt,Te){if(Object(D.a)(this,tt),this.TAG="Transmuxer",this._emitter=new o.a,Te.enableWorker&&typeof Worker!="undefined")try{var Me=y("0r65");this._worker=Me(Bt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[nt,Te]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},ue.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ue.getConfig()})}catch(at){f.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Qe(nt,Te)}else this._controller=new Qe(nt,Te);if(this._controller){var Xe=this._controller;Xe.on(ie.IO_ERROR,this._onIOError.bind(this)),Xe.on(ie.DEMUX_ERROR,this._onDemuxError.bind(this)),Xe.on(ie.INIT_SEGMENT,this._onInitSegment.bind(this)),Xe.on(ie.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Xe.on(ie.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Xe.on(ie.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Xe.on(ie.MEDIA_INFO,this._onMediaInfo.bind(this)),Xe.on(ie.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Xe.on(ie.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Xe.on(ie.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Xe.on(ie.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(N.a)(tt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),ue.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Te,Me){this._emitter.addListener(Te,Me)}},{key:"off",value:function(Te,Me){this._emitter.removeListener(Te,Me)}},{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(Te){this._worker?this._worker.postMessage({cmd:"seek",param:Te}):this._controller.seek(Te)}},{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(Te,Me){var Xe=this;Promise.resolve().then(function(){Xe._emitter.emit(ie.INIT_SEGMENT,Te,Me)})}},{key:"_onMediaSegment",value:function(Te,Me){var Xe=this;Promise.resolve().then(function(){Xe._emitter.emit(ie.MEDIA_SEGMENT,Te,Me)})}},{key:"_onLoadingComplete",value:function(){var Te=this;Promise.resolve().then(function(){Te._emitter.emit(ie.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Te=this;Promise.resolve().then(function(){Te._emitter.emit(ie.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Te){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(ie.MEDIA_INFO,Te)})}},{key:"_onMetaDataArrived",value:function(Te){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(ie.METADATA_ARRIVED,Te)})}},{key:"_onScriptDataArrived",value:function(Te){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(ie.SCRIPTDATA_ARRIVED,Te)})}},{key:"_onStatisticsInfo",value:function(Te){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(ie.STATISTICS_INFO,Te)})}},{key:"_onIOError",value:function(Te,Me){var Xe=this;Promise.resolve().then(function(){Xe._emitter.emit(ie.IO_ERROR,Te,Me)})}},{key:"_onDemuxError",value:function(Te,Me){var Xe=this;Promise.resolve().then(function(){Xe._emitter.emit(ie.DEMUX_ERROR,Te,Me)})}},{key:"_onRecommendSeekpoint",value:function(Te){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(ie.RECOMMEND_SEEKPOINT,Te)})}},{key:"_onLoggingConfigChanged",value:function(Te){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Te})}},{key:"_onWorkerMessage",value:function(Te){var Me=Te.data,Xe=Me.data;if(Me.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Me.msg){case ie.INIT_SEGMENT:case ie.MEDIA_SEGMENT:this._emitter.emit(Me.msg,Xe.type,Xe.data);break;case ie.LOADING_COMPLETE:case ie.RECOVERED_EARLY_EOF:this._emitter.emit(Me.msg);break;case ie.MEDIA_INFO:Object.setPrototypeOf(Xe,me.prototype),this._emitter.emit(Me.msg,Xe);break;case ie.METADATA_ARRIVED:case ie.SCRIPTDATA_ARRIVED:case ie.STATISTICS_INFO:this._emitter.emit(Me.msg,Xe);break;case ie.IO_ERROR:case ie.DEMUX_ERROR:this._emitter.emit(Me.msg,Xe.type,Xe.info);break;case ie.RECOMMEND_SEEKPOINT:this._emitter.emit(Me.msg,Xe);break;case"logcat_callback":f.emitter.emit("log",Xe.type,Xe.logcat);break;default:break}}}]),tt}(),ct=qt,Wt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},or=Wt,Fr=function(){function tt(nt){Object(D.a)(this,tt),this.TAG="MSEController",this._config=nt,this._emitter=new o.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 bt}return Object(N.a)(tt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Te,Me){this._emitter.addListener(Te,Me)}},{key:"off",value:function(Te,Me){this._emitter.removeListener(Te,Me)}},{key:"attachMediaElement",value:function(Te){if(this._mediaSource)throw new u("MediaSource has been attached to an HTMLMediaElement!");var Me=this._mediaSource=new window.MediaSource;Me.addEventListener("sourceopen",this.e.onSourceOpen),Me.addEventListener("sourceended",this.e.onSourceEnded),Me.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Te,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Te.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Te=this._mediaSource;for(var Me in this._sourceBuffers){var Xe=this._pendingSegments[Me];Xe.splice(0,Xe.length),this._pendingSegments[Me]=null,this._pendingRemoveRanges[Me]=null,this._lastInitSegments[Me]=null;var at=this._sourceBuffers[Me];if(at){if(Te.readyState!=="closed"){try{Te.removeSourceBuffer(at)}catch(zt){f.e(this.TAG,zt.message)}at.removeEventListener("error",this.e.onSourceBufferError),at.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Me]=null,this._sourceBuffers[Me]=null}}if(Te.readyState==="open")try{Te.endOfStream()}catch(zt){f.e(this.TAG,zt.message)}Te.removeEventListener("sourceopen",this.e.onSourceOpen),Te.removeEventListener("sourceended",this.e.onSourceEnded),Te.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(Te,Me){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Te),this._pendingSegments[Te.type].push(Te);return}var Xe=Te,at="".concat(Xe.container);Xe.codec&&Xe.codec.length>0&&(at+=";codecs=".concat(Xe.codec));var zt=!1;if(f.v(this.TAG,"Received Initialization Segment, mimeType: "+at),this._lastInitSegments[Xe.type]=Xe,at!==this._mimeTypes[Xe.type]){if(this._mimeTypes[Xe.type])f.v(this.TAG,"Notice: ".concat(Xe.type," mimeType changed, origin: ").concat(this._mimeTypes[Xe.type],", target: ").concat(at));else{zt=!0;try{var kt=this._sourceBuffers[Xe.type]=this._mediaSource.addSourceBuffer(at);kt.addEventListener("error",this.e.onSourceBufferError),kt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Xt){f.e(this.TAG,Xt.message),this._emitter.emit(or.ERROR,{code:Xt.code,msg:Xt.message});return}}this._mimeTypes[Xe.type]=at}Me||this._pendingSegments[Xe.type].push(Xe),zt||this._sourceBuffers[Xe.type]&&!this._sourceBuffers[Xe.type].updating&&this._doAppendSegments(),A.safari&&Xe.container==="audio/mpeg"&&Xe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Xe.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Te){var Me=Te;this._pendingSegments[Me.type].push(Me),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Xe=this._sourceBuffers[Me.type];Xe&&!Xe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Te){for(var Me in this._sourceBuffers){if(!this._sourceBuffers[Me])continue;var Xe=this._sourceBuffers[Me];if(this._mediaSource.readyState==="open")try{Xe.abort()}catch(Pr){f.e(this.TAG,Pr.message)}this._idrList.clear();var at=this._pendingSegments[Me];if(at.splice(0,at.length),this._mediaSource.readyState==="closed")continue;for(var zt=0;zt<Xe.buffered.length;zt++){var kt=Xe.buffered.start(zt),Xt=Xe.buffered.end(zt);this._pendingRemoveRanges[Me].push({start:kt,end:Xt})}if(Xe.updating||this._doRemoveRanges(),A.safari){var Dr=this._lastInitSegments[Me];Dr&&(this._pendingSegments[Me].push(Dr),Xe.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Te=this._mediaSource,Me=this._sourceBuffers;if(!Te||Te.readyState!=="open"){Te&&Te.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Me.video&&Me.video.updating||Me.audio&&Me.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Te.endOfStream())}},{key:"getNearestKeyframe",value:function(Te){return this._idrList.getLastSyncPointBeforeDts(Te)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Te=this._mediaElement.currentTime;for(var Me in this._sourceBuffers){var Xe=this._sourceBuffers[Me];if(Xe){var at=Xe.buffered;if(at.length>=1&&Te-at.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Te=this._mediaElement.currentTime;for(var Me in this._sourceBuffers){var Xe=this._sourceBuffers[Me];if(Xe){for(var at=Xe.buffered,zt=!1,kt=0;kt<at.length;kt++){var Xt=at.start(kt),Dr=at.end(kt);if(Xt<=Te&&Te<Dr+3){if(Te-Xt>=this._config.autoCleanupMaxBackwardDuration){zt=!0;var Pr=Te-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Me].push({start:Xt,end:Pr})}}else Dr<Te&&(zt=!0,this._pendingRemoveRanges[Me].push({start:Xt,end:Dr}))}zt&&!Xe.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Te=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Te.video&&Te.video.updating||Te.audio&&Te.audio.updating)return;var Me=this._mediaSource.duration,Xe=this._pendingMediaDuration;Xe>0&&(isNaN(Me)||Xe>Me)&&(f.v(this.TAG,"Update MediaSource duration from ".concat(Me," to ").concat(Xe)),this._mediaSource.duration=Xe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Te in this._pendingRemoveRanges){if(!this._sourceBuffers[Te]||this._sourceBuffers[Te].updating)continue;for(var Me=this._sourceBuffers[Te],Xe=this._pendingRemoveRanges[Te];Xe.length&&!Me.updating;){var at=Xe.shift();Me.remove(at.start,at.end)}}}},{key:"_doAppendSegments",value:function(){var Te=this._pendingSegments;for(var Me in Te){if(!this._sourceBuffers[Me]||this._sourceBuffers[Me].updating)continue;if(Te[Me].length>0){var Xe=Te[Me].shift();if(Xe.timestampOffset){var at=this._sourceBuffers[Me].timestampOffset,zt=Xe.timestampOffset/1e3,kt=Math.abs(at-zt);kt>.1&&(f.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(at," to ").concat(zt)),this._sourceBuffers[Me].timestampOffset=zt),delete Xe.timestampOffset}if(!Xe.data||Xe.data.byteLength===0)continue;try{this._sourceBuffers[Me].appendBuffer(Xe.data),this._isBufferFull=!1,Me==="video"&&Xe.hasOwnProperty("info")&&this._idrList.appendArray(Xe.info.syncPoints)}catch(Xt){this._pendingSegments[Me].unshift(Xe),Xt.code===22?(this._isBufferFull||this._emitter.emit(or.BUFFER_FULL),this._isBufferFull=!0):(f.e(this.TAG,Xt.message),this._emitter.emit(or.ERROR,{code:Xt.code,msg:Xt.message}))}}}}},{key:"_onSourceOpen",value:function(){if(f.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var Te=this._pendingSourceBufferInit;Te.length;){var Me=Te.shift();this.appendInitSegment(Me,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(or.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){f.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){f.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 Te=this._pendingSegments;return Te.video.length>0||Te.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Te=this._pendingRemoveRanges;return Te.video.length>0||Te.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(or.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Te){f.e(this.TAG,"SourceBuffer Error: ".concat(Te))}}]),tt}(),er=Fr,nr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Ot={NETWORK_EXCEPTION:c.EXCEPTION,NETWORK_STATUS_CODE_INVALID:c.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:c.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:c.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Ee.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ee.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ee.CODEC_UNSUPPORTED},lt=function(){function tt(nt,Te){if(Object(D.a)(this,tt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new o.a,this._config=G(),typeof Te=="object"&&Object.assign(this._config,Te),nt.type.toLowerCase()!=="flv")throw new e("FlvPlayer requires an flv MediaDataSource input!");nt.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=nt,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 Me=A.chrome&&(A.version.major<50||A.version.major===50&&A.version.build<2661);this._alwaysSeekKeyframe=!!(Me||A.msedge||A.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(N.a)(tt,[{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(Te,Me){var Xe=this;Te===Q.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Xe._emitter.emit(Q.MEDIA_INFO,Xe.mediaInfo)}):Te===Q.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Xe._emitter.emit(Q.STATISTICS_INFO,Xe.statisticsInfo)})),this._emitter.addListener(Te,Me)}},{key:"off",value:function(Te,Me){this._emitter.removeListener(Te,Me)}},{key:"attachMediaElement",value:function(Te){var Me=this;if(this._mediaElement=Te,Te.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Te.addEventListener("seeking",this.e.onvSeeking),Te.addEventListener("canplay",this.e.onvCanPlay),Te.addEventListener("stalled",this.e.onvStalled),Te.addEventListener("progress",this.e.onvProgress),this._msectl=new er(this._config),this._msectl.on(or.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(or.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(or.SOURCE_OPEN,function(){Me._mseSourceOpened=!0,Me._hasPendingLoad&&(Me._hasPendingLoad=!1,Me.load())}),this._msectl.on(or.ERROR,function(Xe){Me._emitter.emit(Q.ERROR,nr.MEDIA_ERROR,Ot.MEDIA_MSE_ERROR,Xe)}),this._msectl.attachMediaElement(Te),this._pendingSeekTime!=null)try{Te.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Xe){}}},{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 Te=this;if(!this._mediaElement)throw new u("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new u("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 ct(this._mediaDataSource,this._config),this._transmuxer.on(ie.INIT_SEGMENT,function(Me,Xe){Te._msectl.appendInitSegment(Xe)}),this._transmuxer.on(ie.MEDIA_SEGMENT,function(Me,Xe){if(Te._msectl.appendMediaSegment(Xe),Te._config.lazyLoad&&!Te._config.isLive){var at=Te._mediaElement.currentTime;Xe.info.endDts>=(at+Te._config.lazyLoadMaxDuration)*1e3&&(Te._progressChecker==null&&(f.v(Te.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Te._suspendTransmuxer()))}}),this._transmuxer.on(ie.LOADING_COMPLETE,function(){Te._msectl.endOfStream(),Te._emitter.emit(Q.LOADING_COMPLETE)}),this._transmuxer.on(ie.RECOVERED_EARLY_EOF,function(){Te._emitter.emit(Q.RECOVERED_EARLY_EOF)}),this._transmuxer.on(ie.IO_ERROR,function(Me,Xe){Te._emitter.emit(Q.ERROR,nr.NETWORK_ERROR,Me,Xe)}),this._transmuxer.on(ie.DEMUX_ERROR,function(Me,Xe){Te._emitter.emit(Q.ERROR,nr.MEDIA_ERROR,Me,{code:-1,msg:Xe})}),this._transmuxer.on(ie.MEDIA_INFO,function(Me){Te._mediaInfo=Me,Te._emitter.emit(Q.MEDIA_INFO,Object.assign({},Me))}),this._transmuxer.on(ie.METADATA_ARRIVED,function(Me){Te._emitter.emit(Q.METADATA_ARRIVED,Me)}),this._transmuxer.on(ie.SCRIPTDATA_ARRIVED,function(Me){Te._emitter.emit(Q.SCRIPTDATA_ARRIVED,Me)}),this._transmuxer.on(ie.STATISTICS_INFO,function(Me){Te._statisticsInfo=Te._fillStatisticsInfo(Me),Te._emitter.emit(Q.STATISTICS_INFO,Object.assign({},Te._statisticsInfo))}),this._transmuxer.on(ie.RECOMMEND_SEEKPOINT,function(Me){Te._mediaElement&&!Te._config.accurateSeek&&(Te._requestSetTime=!0,Te._mediaElement.currentTime=Me/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:"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(Te){this._mediaElement.volume=Te}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Te){this._mediaElement.muted=Te}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Te){this._mediaElement?this._internalSeek(Te):this._pendingSeekTime=Te}},{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)}},{key:"_fillStatisticsInfo",value:function(Te){if(Te.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Te;var Me=!0,Xe=0,at=0;if(this._mediaElement.getVideoPlaybackQuality){var zt=this._mediaElement.getVideoPlaybackQuality();Xe=zt.totalVideoFrames,at=zt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Xe=this._mediaElement.webkitDecodedFrameCount,at=this._mediaElement.webkitDroppedFrameCount):Me=!1;return Me&&(Te.decodedFrames=Xe,Te.droppedFrames=at),Te}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Te=this._mediaElement.buffered,Me=this._mediaElement.currentTime,Xe=0,at=0,zt=0;zt<Te.length;zt++){var kt=Te.start(zt),Xt=Te.end(zt);if(kt<=Me&&Me<Xt){Xe=kt,at=Xt;break}}at>=Me+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(f.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){f.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 Te=this._mediaElement.currentTime,Me=this._mediaElement.buffered,Xe=!1,at=0;at<Me.length;at++){var zt=Me.start(at),kt=Me.end(at);if(Te>=zt&&Te<kt){Te>=kt-this._config.lazyLoadRecoverDuration&&(Xe=!0);break}}Xe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Xe&&(f.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Te){for(var Me=this._mediaElement.buffered,Xe=0;Xe<Me.length;Xe++){var at=Me.start(Xe),zt=Me.end(Xe);if(Te>=at&&Te<zt)return!0}return!1}},{key:"_internalSeek",value:function(Te){var Me=this._isTimepointBuffered(Te),Xe=!1,at=0;if(Te<1&&this._mediaElement.buffered.length>0){var zt=this._mediaElement.buffered.start(0);(zt<1&&Te<zt||A.safari)&&(Xe=!0,at=A.safari?.1:zt)}if(Xe)this._requestSetTime=!0,this._mediaElement.currentTime=at;else if(Me){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Te;else{var kt=this._msectl.getNearestKeyframe(Math.floor(Te*1e3));this._requestSetTime=!0,kt!=null?this._mediaElement.currentTime=kt.dts/1e3:this._mediaElement.currentTime=Te}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Te),this._transmuxer.seek(Math.floor(Te*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Te)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Te=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Te)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Te),this._transmuxer.seek(Math.floor(Te*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Te))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Te){var Me=this._mediaElement;if(Te||!this._receivedCanPlay||Me.readyState<2){var Xe=Me.buffered;Xe.length>0&&Me.currentTime<Xe.start(0)&&(f.w(this.TAG,"Playback seems stuck at ".concat(Me.currentTime,", seek to ").concat(Xe.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Xe.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(Te){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Te){var Me=this._mediaElement.currentTime,Xe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Me<1&&Xe.length>0){var at=Xe.start(0);if(at<1&&Me<at||A.safari){this._requestSetTime=!0,this._mediaElement.currentTime=A.safari?.1:at;return}}if(this._isTimepointBuffered(Me)){if(this._alwaysSeekKeyframe){var zt=this._msectl.getNearestKeyframe(Math.floor(Me*1e3));zt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=zt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Me,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Te){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Te){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Te){this._checkAndResumeStuckPlayback()}}]),tt}(),qe=lt,tr=function(){function tt(nt,Te){if(Object(D.a)(this,tt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new o.a,this._config=G(),typeof Te=="object"&&Object.assign(this._config,Te),nt.type.toLowerCase()==="flv")throw new e("NativePlayer does't support flv MediaDataSource input!");if(nt.hasOwnProperty("segments"))throw new e("NativePlayer(".concat(nt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=nt,this._mediaElement=null}return Object(N.a)(tt,[{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(Te,Me){var Xe=this;Te===Q.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Xe._emitter.emit(Q.MEDIA_INFO,Xe.mediaInfo)}):Te===Q.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Xe._emitter.emit(Q.STATISTICS_INFO,Xe.statisticsInfo)})),this._emitter.addListener(Te,Me)}},{key:"off",value:function(Te,Me){this._emitter.removeListener(Te,Me)}},{key:"attachMediaElement",value:function(Te){if(this._mediaElement=Te,Te.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Te.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Me){}}},{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 u("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:"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(Te){this._mediaElement.volume=Te}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Te){this._mediaElement.muted=Te}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Te){this._mediaElement?this._mediaElement.currentTime=Te:this._pendingSeekTime=Te}},{key:"mediaInfo",get:function(){var Te=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Me={mimeType:Te+this._mediaDataSource.type};return this._mediaElement&&(Me.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Me.width=this._mediaElement.videoWidth,Me.height=this._mediaElement.videoHeight)),Me}},{key:"statisticsInfo",get:function(){var Te={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Te;var Me=!0,Xe=0,at=0;if(this._mediaElement.getVideoPlaybackQuality){var zt=this._mediaElement.getVideoPlaybackQuality();Xe=zt.totalVideoFrames,at=zt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Xe=this._mediaElement.webkitDecodedFrameCount,at=this._mediaElement.webkitDroppedFrameCount):Me=!1;return Me&&(Te.decodedFrames=Xe,Te.droppedFrames=at),Te}},{key:"_onvLoadedMetadata",value:function(Te){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Q.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(Q.STATISTICS_INFO,this.statisticsInfo)}}]),tt}(),xr=tr;E.install();function Ar(tt,nt){var Te=tt;if(Te==null||typeof Te!="object")throw new e("MediaDataSource must be an javascript object!");if(!Te.hasOwnProperty("type"))throw new e("MediaDataSource must has type field to indicate video file type!");switch(Te.type){case"flv":return new qe(Te,nt);default:return new xr(Te,nt)}}function fr(){return Z.supportMSEH264Playback()}function vn(){return Z.getFeatureList()}var $r={};$r.createPlayer=Ar,$r.isSupported=fr,$r.getFeatureList=vn,$r.BaseLoader=d,$r.LoaderStatus=i,$r.LoaderErrors=c,$r.Events=Q,$r.ErrorTypes=nr,$r.ErrorDetails=Ot,$r.FlvPlayer=qe,$r.NativePlayer=xr,$r.LoggingControl=ue,Object.defineProperty($r,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ln=z.a=$r},GVMX:function(fe,z,y){var D=y("JEkh"),N=D.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"}});fe.exports=N},GdRQ:function(fe,z,y){"use strict";function D(A){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(b){return typeof b}:D=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},D(A)}Object.defineProperty(z,"__esModule",{value:!0}),z.isMac=i,z.isWindows=c,z.isIOS=d,z.isSafari=h,z.isIE=p,z.isEdge=g,z.isFirefox=v,z.hasScrollbarGutter=z.supportsImageMetadata=z.supportsCursorURIs=z.dragThreshold=z.isTouchDevice=void 0;var N=E(y("Lo0S"));function L(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return L=function(){return A},A}function E(A){if(A&&A.__esModule)return A;if(A===null||D(A)!=="object"&&typeof A!="function")return{default:A};var x=L();if(x&&x.has(A))return x.get(A);var b={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in A)if(Object.prototype.hasOwnProperty.call(A,S)){var T=w?Object.getOwnPropertyDescriptor(A,S):null;T&&(T.get||T.set)?Object.defineProperty(b,S,T):b[S]=A[S]}return b.default=A,x&&x.set(A,b),b}var I="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;z.isTouchDevice=I,window.addEventListener("touchstart",function A(){z.isTouchDevice=I=!0,window.removeEventListener("touchstart",A,!1)},!1);var o=10*(window.devicePixelRatio||1);z.dragThreshold=o;var m=!1;try{var f=document.createElement("canvas");f.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',f.style.cursor.indexOf("url")===0?(N.Info("Data URI scheme cursor supported"),m=!0):N.Warn("Data URI scheme cursor not supported")}catch(A){N.Error("Data URI scheme cursor test exception: "+A)}var s=m;z.supportsCursorURIs=s;var t=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),t=!0}catch(A){}var l=t;z.supportsImageMetadata=l;var a=!0;try{var r=document.createElement("div");r.style.visibility="hidden",r.style.overflow="scroll",document.body.appendChild(r);var u=document.createElement("div");r.appendChild(u);var e=r.offsetWidth-u.offsetWidth;r.parentNode.removeChild(r),a=e!=0}catch(A){N.Error("Scrollbar test exception: "+A)}var n=a;z.hasScrollbarGutter=n;function i(){return navigator&&!!/mac/i.exec(navigator.platform)}function c(){return navigator&&!!/win/i.exec(navigator.platform)}function d(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function h(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function p(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function g(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function v(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(fe,z,y){var D=y("bYtY"),N=y("6Ic6"),L=y("IwbS"),E=y("y+Vt"),I=y("sK/D"),o=I.createClipPath,m=["itemStyle"],f=["emphasis","itemStyle"],s=["color","color0","borderColor","borderColor0"],t=N.extend({type:"candlestick",render:function(h,p,g){this.group.removeClipPath(),this._updateDrawMode(h),this._isLargeDraw?this._renderLarge(h):this._renderNormal(h)},incrementalPrepareRender:function(h,p,g){this._clear(),this._updateDrawMode(h)},incrementalRender:function(h,p,g,v){this._isLargeDraw?this._incrementalRenderLarge(h,p):this._incrementalRenderNormal(h,p)},_updateDrawMode:function(h){var p=h.pipelineContext.large;(this._isLargeDraw==null||p^this._isLargeDraw)&&(this._isLargeDraw=p,this._clear())},_renderNormal:function(h){var p=h.getData(),g=this._data,v=this.group,A=p.getLayout("isSimpleBox"),x=h.get("clip",!0),b=h.coordinateSystem,w=b.getArea&&b.getArea();this._data||v.removeAll(),p.diff(g).add(function(S){if(p.hasValue(S)){var T,C=p.getItemLayout(S);if(x&&r(w,C))return;T=a(C,S,!0),L.initProps(T,{shape:{points:C.ends}},h,S),u(T,p,S,A),v.add(T),p.setItemGraphicEl(S,T)}}).update(function(S,T){var C=g.getItemGraphicEl(T);if(!p.hasValue(S)){v.remove(C);return}var O=p.getItemLayout(S);if(x&&r(w,O)){v.remove(C);return}C?L.updateProps(C,{shape:{points:O.ends}},h,S):C=a(O,S),u(C,p,S,A),v.add(C),p.setItemGraphicEl(S,C)}).remove(function(S){var T=g.getItemGraphicEl(S);T&&v.remove(T)}).execute(),this._data=p},_renderLarge:function(h){this._clear(),i(h,this.group);var p=h.get("clip",!0)?o(h.coordinateSystem,!1,h):null;p?this.group.setClipPath(p):this.group.removeClipPath()},_incrementalRenderNormal:function(h,p){for(var g=p.getData(),v=g.getLayout("isSimpleBox"),A;(A=h.next())!=null;){var x,b=g.getItemLayout(A);x=a(b,A),u(x,g,A,v),x.incremental=!0,this.group.add(x)}},_incrementalRenderLarge:function(h,p){i(p,this.group,!0)},remove:function(h){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:D.noop}),l=E.extend({type:"normalCandlestickBox",shape:{},buildPath:function(h,p){var g=p.points;this.__simpleBox?(h.moveTo(g[4][0],g[4][1]),h.lineTo(g[6][0],g[6][1])):(h.moveTo(g[0][0],g[0][1]),h.lineTo(g[1][0],g[1][1]),h.lineTo(g[2][0],g[2][1]),h.lineTo(g[3][0],g[3][1]),h.closePath(),h.moveTo(g[4][0],g[4][1]),h.lineTo(g[5][0],g[5][1]),h.moveTo(g[6][0],g[6][1]),h.lineTo(g[7][0],g[7][1]))}});function a(h,p,g){var v=h.ends;return new l({shape:{points:g?e(v,h):v},z2:100})}function r(h,p){for(var g=!0,v=0;v<p.ends.length;v++)if(h.contain(p.ends[v][0],p.ends[v][1])){g=!1;break}return g}function u(h,p,g,v){var A=p.getItemModel(g),x=A.getModel(m),b=p.getItemVisual(g,"color"),w=p.getItemVisual(g,"borderColor")||b,S=x.getItemStyle(s);h.useStyle(S),h.style.strokeNoScale=!0,h.style.fill=b,h.style.stroke=w,h.__simpleBox=v;var T=A.getModel(f).getItemStyle();L.setHoverStyle(h,T)}function e(h,p){return D.map(h,function(g){return g=g.slice(),g[1]=p.initBaseline,g})}var n=E.extend({type:"largeCandlestickBox",shape:{},buildPath:function(h,p){for(var g=p.points,v=0;v<g.length;)if(this.__sign===g[v++]){var A=g[v++];h.moveTo(A,g[v++]),h.lineTo(A,g[v++])}else v+=3}});function i(h,p,g){var v=h.getData(),A=v.getLayout("largePoints"),x=new n({shape:{points:A},__sign:1});p.add(x);var b=new n({shape:{points:A},__sign:-1});p.add(b),c(1,x,h,v),c(-1,b,h,v),g&&(x.incremental=!0,b.incremental=!0)}function c(h,p,g,v){var A=h>0?"P":"N",x=v.getVisual("borderColor"+A)||v.getVisual("color"+A),b=g.getModel(m).getItemStyle(s);p.useStyle(b),p.style.fill=null,p.style.stroke=x}var d=t;fe.exports=d},Gev7:function(fe,z,y){var D=y("bYtY"),N=y("K2GJ"),L=y("1bdT"),E=y("ni6a");function I(m){m=m||{},L.call(this,m);for(var f in m)m.hasOwnProperty(f)&&f!=="style"&&(this[f]=m[f]);this.style=new N(m.style,this),this._rect=null,this.__clipPaths=null}I.prototype={constructor:I,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(f){},afterBrush:function(f){},brush:function(f,s){},getBoundingRect:function(){},contain:function(f,s){return this.rectContain(f,s)},traverse:function(f,s){f.call(s,this)},rectContain:function(f,s){var t=this.transformCoordToLocal(f,s),l=this.getBoundingRect();return l.contain(t[0],t[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(f){return this.animate("style",f)},attrKV:function(f,s){f!=="style"?L.prototype.attrKV.call(this,f,s):this.style.set(s)},setStyle:function(f,s){return this.style.set(f,s),this.dirty(!1),this},useStyle:function(f){return this.style=new N(f,this),this.dirty(!1),this},calculateTextPosition:null},D.inherits(I,L),D.mixin(I,E);var o=I;fe.exports=o},GrNh:function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L=y("6Ic6");function E(t,l,a,r){var u=l.getData(),e=this.dataIndex,n=u.getName(e),i=l.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:t,name:n,seriesId:l.id}),u.each(function(c){I(u.getItemGraphicEl(c),u.getItemLayout(c),l.isSelected(u.getName(c)),i,a)})}function I(t,l,a,r,u){var e=(l.startAngle+l.endAngle)/2,n=Math.cos(e),i=Math.sin(e),c=a?r:0,d=[n*c,i*c];u?t.animate().when(200,{position:d}).start("bounceOut"):t.attr("position",d)}function o(t,l){N.Group.call(this);var a=new N.Sector({z2:2}),r=new N.Polyline,u=new N.Text;this.add(a),this.add(r),this.add(u),this.updateData(t,l,!0)}var m=o.prototype;m.updateData=function(t,l,a){var r=this.childAt(0),u=this.childAt(1),e=this.childAt(2),n=t.hostModel,i=t.getItemModel(l),c=t.getItemLayout(l),d=D.extend({},c);d.label=null;var h=n.getShallow("animationTypeUpdate");if(a){r.setShape(d);var p=n.getShallow("animationType");p==="scale"?(r.shape.r=c.r0,N.initProps(r,{shape:{r:c.r}},n,l)):(r.shape.endAngle=c.startAngle,N.updateProps(r,{shape:{endAngle:c.endAngle}},n,l))}else h==="expansion"?r.setShape(d):N.updateProps(r,{shape:d},n,l);var g=t.getItemVisual(l,"color");r.useStyle(D.defaults({lineJoin:"bevel",fill:g},i.getModel("itemStyle").getItemStyle())),r.hoverStyle=i.getModel("emphasis.itemStyle").getItemStyle();var v=i.getShallow("cursor");v&&r.attr("cursor",v),I(this,t.getItemLayout(l),n.isSelected(t.getName(l)),n.get("selectedOffset"),n.get("animation"));var A=!a&&h==="transition";this._updateLabel(t,l,A),this.highDownOnUpdate=n.get("silent")?null:function(x,b){var w=n.isAnimationEnabled()&&i.get("hoverAnimation");b==="emphasis"?(u.ignore=u.hoverIgnore,e.ignore=e.hoverIgnore,w&&(r.stopAnimation(!0),r.animateTo({shape:{r:c.r+n.get("hoverOffset")}},300,"elasticOut"))):(u.ignore=u.normalIgnore,e.ignore=e.normalIgnore,w&&(r.stopAnimation(!0),r.animateTo({shape:{r:c.r}},300,"elasticOut")))},N.setHoverStyle(this)},m._updateLabel=function(t,l,a){var r=this.childAt(1),u=this.childAt(2),e=t.hostModel,n=t.getItemModel(l),i=t.getItemLayout(l),c=i.label,d=t.getItemVisual(l,"color");if(!c||isNaN(c.x)||isNaN(c.y)){u.ignore=u.normalIgnore=u.hoverIgnore=r.ignore=r.normalIgnore=r.hoverIgnore=!0;return}var h={points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]},p={x:c.x,y:c.y};a?(N.updateProps(r,{shape:h},e,l),N.updateProps(u,{style:p},e,l)):(r.attr({shape:h}),u.attr({style:p})),u.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var g=n.getModel("label"),v=n.getModel("emphasis.label"),A=n.getModel("labelLine"),x=n.getModel("emphasis.labelLine"),d=t.getItemVisual(l,"color");N.setLabelStyle(u.style,u.hoverStyle={},g,v,{labelFetcher:t.hostModel,labelDataIndex:l,defaultText:c.text,autoColor:d,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:t.getItemVisual(l,"opacity")}),u.ignore=u.normalIgnore=!g.get("show"),u.hoverIgnore=!v.get("show"),r.ignore=r.normalIgnore=!A.get("show"),r.hoverIgnore=!x.get("show"),r.setStyle({stroke:d,opacity:t.getItemVisual(l,"opacity")}),r.setStyle(A.getModel("lineStyle").getLineStyle()),r.hoverStyle=x.getModel("lineStyle").getLineStyle();var b=A.get("smooth");b&&b===!0&&(b=.4),r.setShape({smooth:b})},D.inherits(o,N.Group);var f=L.extend({type:"pie",init:function(){var t=new N.Group;this._sectorGroup=t},render:function(t,l,a,r){if(r&&r.from===this.uid)return;var u=t.getData(),e=this._data,n=this.group,i=l.get("animation"),c=!e,d=t.get("animationType"),h=t.get("animationTypeUpdate"),p=D.curry(E,this.uid,t,i,a),g=t.get("selectedMode");if(u.diff(e).add(function(w){var S=new o(u,w);c&&d!=="scale"&&S.eachChild(function(T){T.stopAnimation(!0)}),g&&S.on("click",p),u.setItemGraphicEl(w,S),n.add(S)}).update(function(w,S){var T=e.getItemGraphicEl(S);!c&&h!=="transition"&&T.eachChild(function(C){C.stopAnimation(!0)}),T.updateData(u,w),T.off("click"),g&&T.on("click",p),n.add(T),u.setItemGraphicEl(w,T)}).remove(function(w){var S=e.getItemGraphicEl(w);n.remove(S)}).execute(),i&&u.count()>0&&(c?d!=="scale":h!=="transition")){for(var v=u.getItemLayout(0),A=1;isNaN(v.startAngle)&&A<u.count();++A)v=u.getItemLayout(A);var x=Math.max(a.getWidth(),a.getHeight())/2,b=D.bind(n.removeClipPath,n);n.setClipPath(this._createClipPath(v.cx,v.cy,x,v.startAngle,v.clockwise,b,t,c))}else n.removeClipPath();this._data=u},dispose:function(){},_createClipPath:function(t,l,a,r,u,e,n,i){var c=new N.Sector({shape:{cx:t,cy:l,r0:0,r:a,startAngle:r,endAngle:r,clockwise:u}}),d=i?N.initProps:N.updateProps;return d(c,{shape:{endAngle:r+(u?1:-1)*Math.PI*2}},n,e),c},containPoint:function(t,l){var a=l.getData(),r=a.getItemLayout(0);if(r){var u=t[0]-r.cx,e=t[1]-r.cy,n=Math.sqrt(u*u+e*e);return n<=r.r&&n>=r.r0}}}),s=f;fe.exports=s},Gytx:function(fe,z){fe.exports=function(D,N,L,E){var I=L?L.call(E,D,N):void 0;if(I!==void 0)return!!I;if(D===N)return!0;if(typeof D!="object"||!D||typeof N!="object"||!N)return!1;var o=Object.keys(D),m=Object.keys(N);if(o.length!==m.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(N),s=0;s<o.length;s++){var t=o[s];if(!f(t))return!1;var l=D[t],a=N[t];if(I=L?L.call(E,l,a,t):void 0,I===!1||I===void 0&&l!==a)return!1}return!0}},GzdX:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("q1tI"),E=y.n(L),I=y("rePB"),o=y("1OyB"),m=y("vuIU"),f=y("Ji7U"),s=y("md7G"),t=y("foSv"),l=y("m+aA"),a=y("TSYQ"),r=y.n(a),u=y("4IlW");function e(B){var P=B.pageXOffset,U="scrollLeft";if(typeof P!="number"){var j=B.document;P=j.documentElement[U],typeof P!="number"&&(P=j.body[U])}return P}function n(B){var P,U,j=B.ownerDocument,H=j.body,W=j&&j.documentElement,G=B.getBoundingClientRect();return P=G.left,U=G.top,P-=W.clientLeft||H.clientLeft||0,U-=W.clientTop||H.clientTop||0,{left:P,top:U}}function i(B){var P=n(B),U=B.ownerDocument,j=U.defaultView||U.parentWindow;return P.left+=e(j),P.left}function c(B){var P=d();return function(){var j=Object(t.a)(B),H;if(P){var W=Object(t.a)(this).constructor;H=Reflect.construct(j,arguments,W)}else H=j.apply(this,arguments);return Object(s.a)(this,H)}}function d(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(B){return!1}}var h=function(B){Object(f.a)(U,B);var P=c(U);function U(){var j;return Object(o.a)(this,U),j=P.apply(this,arguments),j.onHover=function(H){var W=j.props,G=W.onHover,V=W.index;G(H,V)},j.onClick=function(H){var W=j.props,G=W.onClick,V=W.index;G(H,V)},j.onKeyDown=function(H){var W=j.props,G=W.onClick,V=W.index;H.keyCode===13&&G(H,V)},j}return Object(m.a)(U,[{key:"getClassName",value:function(){var H=this.props,W=H.prefixCls,G=H.index,V=H.value,Z=H.allowHalf,Y=H.focused,Q=G+1,oe=W;return V===0&&G===0&&Y?oe+=" ".concat(W,"-focused"):Z&&V+.5>=Q&&V<Q?(oe+=" ".concat(W,"-half ").concat(W,"-active"),Y&&(oe+=" ".concat(W,"-focused"))):(oe+=Q<=V?" ".concat(W,"-full"):" ".concat(W,"-zero"),Q===V&&Y&&(oe+=" ".concat(W,"-focused"))),oe}},{key:"render",value:function(){var H=this.onHover,W=this.onClick,G=this.onKeyDown,V=this.props,Z=V.disabled,Y=V.prefixCls,Q=V.character,oe=V.characterRender,ue=V.index,Le=V.count,me=V.value,Ie=typeof Q=="function"?Q(this.props):Q,X=E.a.createElement("li",{className:this.getClassName()},E.a.createElement("div",{onClick:Z?null:W,onKeyDown:Z?null:G,onMouseMove:Z?null:H,role:"radio","aria-checked":me>ue?"true":"false","aria-posinset":ue+1,"aria-setsize":Le,tabIndex:Z?-1:0},E.a.createElement("div",{className:"".concat(Y,"-first")},Ie),E.a.createElement("div",{className:"".concat(Y,"-second")},Ie)));return oe&&(X=oe(X,this.props)),X}}]),U}(E.a.Component);function p(B,P){var U=Object.keys(B);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(B);P&&(j=j.filter(function(H){return Object.getOwnPropertyDescriptor(B,H).enumerable})),U.push.apply(U,j)}return U}function g(B){for(var P=1;P<arguments.length;P++){var U=arguments[P]!=null?arguments[P]:{};P%2?p(Object(U),!0).forEach(function(j){Object(I.a)(B,j,U[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(U)):p(Object(U)).forEach(function(j){Object.defineProperty(B,j,Object.getOwnPropertyDescriptor(U,j))})}return B}function v(B){var P=A();return function(){var j=Object(t.a)(B),H;if(P){var W=Object(t.a)(this).constructor;H=Reflect.construct(j,arguments,W)}else H=j.apply(this,arguments);return Object(s.a)(this,H)}}function A(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(B){return!1}}function x(){}var b=function(B){Object(f.a)(U,B);var P=v(U);function U(j){var H;Object(o.a)(this,U),H=P.call(this,j),H.onHover=function(G,V){var Z=H.props.onHoverChange,Y=H.getStarValue(V,G.pageX),Q=H.state.cleanedValue;Y!==Q&&H.setState({hoverValue:Y,cleanedValue:null}),Z(Y)},H.onMouseLeave=function(){var G=H.props.onHoverChange;H.setState({hoverValue:void 0,cleanedValue:null}),G(void 0)},H.onClick=function(G,V){var Z=H.props.allowClear,Y=H.state.value,Q=H.getStarValue(V,G.pageX),oe=!1;Z&&(oe=Q===Y),H.onMouseLeave(),H.changeValue(oe?0:Q),H.setState({cleanedValue:oe?Q:null})},H.onFocus=function(){var G=H.props.onFocus;H.setState({focused:!0}),G&&G()},H.onBlur=function(){var G=H.props.onBlur;H.setState({focused:!1}),G&&G()},H.onKeyDown=function(G){var V=G.keyCode,Z=H.props,Y=Z.count,Q=Z.allowHalf,oe=Z.onKeyDown,ue=Z.direction,Le=ue==="rtl",me=H.state.value;V===u.a.RIGHT&&me<Y&&!Le?(Q?me+=.5:me+=1,H.changeValue(me),G.preventDefault()):V===u.a.LEFT&&me>0&&!Le||V===u.a.RIGHT&&me>0&&Le?(Q?me-=.5:me-=1,H.changeValue(me),G.preventDefault()):V===u.a.LEFT&&me<Y&&Le&&(Q?me+=.5:me+=1,H.changeValue(me),G.preventDefault()),oe&&oe(G)},H.saveRef=function(G){return function(V){H.stars[G]=V}},H.saveRate=function(G){H.rate=G};var W=j.value;return W===void 0&&(W=j.defaultValue),H.stars={},H.state={value:W,focused:!1,cleanedValue:null},H}return Object(m.a)(U,[{key:"componentDidMount",value:function(){var H=this.props,W=H.autoFocus,G=H.disabled;W&&!G&&this.focus()}},{key:"getStarDOM",value:function(H){return Object(l.a)(this.stars[H])}},{key:"getStarValue",value:function(H,W){var G=this.props,V=G.allowHalf,Z=G.direction,Y=Z==="rtl",Q=H+1;if(V){var oe=this.getStarDOM(H),ue=i(oe),Le=oe.clientWidth;(Y&&W-ue>Le/2||!Y&&W-ue<Le/2)&&(Q-=.5)}return Q}},{key:"focus",value:function(){var H=this.props.disabled;H||this.rate.focus()}},{key:"blur",value:function(){var H=this.props.disabled;H||this.rate.blur()}},{key:"changeValue",value:function(H){var W=this.props.onChange;"value"in this.props||this.setState({value:H}),W(H)}},{key:"render",value:function(){for(var H=this.props,W=H.count,G=H.allowHalf,V=H.style,Z=H.prefixCls,Y=H.disabled,Q=H.className,oe=H.character,ue=H.characterRender,Le=H.tabIndex,me=H.direction,Ie=this.state,X=Ie.value,q=Ie.hoverValue,We=Ie.focused,$=[],J=Y?"".concat(Z,"-disabled"):"",le=0;le<W;le+=1)$.push(E.a.createElement(h,{ref:this.saveRef(le),index:le,count:W,disabled:Y,prefixCls:"".concat(Z,"-star"),allowHalf:G,value:q===void 0?X:q,onClick:this.onClick,onHover:this.onHover,key:le,character:oe,characterRender:ue,focused:We}));var de=r()(Z,J,Q,Object(I.a)({},"".concat(Z,"-rtl"),me==="rtl"));return E.a.createElement("ul",{className:de,style:V,onMouseLeave:Y?null:this.onMouseLeave,tabIndex:Y?-1:Le,onFocus:Y?null:this.onFocus,onBlur:Y?null:this.onBlur,onKeyDown:Y?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},$)}}],[{key:"getDerivedStateFromProps",value:function(H,W){return"value"in H&&H.value!==void 0?g(g({},W),{},{value:H.value}):W}}]),U}(E.a.Component);b.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:x,character:"\u2605",onHoverChange:x,tabIndex:0,direction:"ltr"};var w=b,S=w,T=y("Lerx"),C=y.n(T),O=y("3S7+"),_=y("H84U"),M=function(B,P){var U={};for(var j in B)Object.prototype.hasOwnProperty.call(B,j)&&P.indexOf(j)<0&&(U[j]=B[j]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,j=Object.getOwnPropertySymbols(B);H<j.length;H++)P.indexOf(j[H])<0&&Object.prototype.propertyIsEnumerable.call(B,j[H])&&(U[j[H]]=B[j[H]]);return U},k=L.forwardRef(function(B,P){var U=B.prefixCls,j=B.tooltips,H=M(B,["prefixCls","tooltips"]),W=function(oe,ue){var Le=ue.index;return j?L.createElement(O.a,{title:j[Le]},oe):oe},G=L.useContext(_.b),V=G.getPrefixCls,Z=G.direction,Y=V("rate",U);return L.createElement(S,N()({ref:P,characterRender:W},H,{prefixCls:Y,direction:Z}))});k.displayName="Rate",k.defaultProps={character:L.createElement(C.a,null)};var R=z.a=k},H38U:function(fe,z,y){var D=y("f4xo"),N=y("rcnY"),L=y("wU8J"),E=y("Iq15"),I=y("dWSS");function o(f,s){this.typeNumber=f,this.errorCorrectLevel=s,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var m=o.prototype;m.addData=function(f){var s=new D(f);this.dataList.push(s),this.dataCache=null},m.isDark=function(f,s){if(f<0||this.moduleCount<=f||s<0||this.moduleCount<=s)throw new Error(f+","+s);return this.modules[f][s]},m.getModuleCount=function(){return this.moduleCount},m.make=function(){if(this.typeNumber<1){var f=1;for(f=1;f<40;f++){for(var s=N.getRSBlocks(f,this.errorCorrectLevel),t=new L,l=0,a=0;a<s.length;a++)l+=s[a].dataCount;for(var a=0;a<this.dataList.length;a++){var r=this.dataList[a];t.put(r.mode,4),t.put(r.getLength(),E.getLengthInBits(r.mode,f)),r.write(t)}if(t.getLengthInBits()<=l*8)break}this.typeNumber=f}this.makeImpl(!1,this.getBestMaskPattern())},m.makeImpl=function(f,s){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var t=0;t<this.moduleCount;t++){this.modules[t]=new Array(this.moduleCount);for(var l=0;l<this.moduleCount;l++)this.modules[t][l]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(f,s),this.typeNumber>=7&&this.setupTypeNumber(f),this.dataCache==null&&(this.dataCache=o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,s)},m.setupPositionProbePattern=function(f,s){for(var t=-1;t<=7;t++){if(f+t<=-1||this.moduleCount<=f+t)continue;for(var l=-1;l<=7;l++){if(s+l<=-1||this.moduleCount<=s+l)continue;0<=t&&t<=6&&(l==0||l==6)||0<=l&&l<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=l&&l<=4?this.modules[f+t][s+l]=!0:this.modules[f+t][s+l]=!1}}},m.getBestMaskPattern=function(){for(var f=0,s=0,t=0;t<8;t++){this.makeImpl(!0,t);var l=E.getLostPoint(this);(t==0||f>l)&&(f=l,s=t)}return s},m.createMovieClip=function(f,s,t){var l=f.createEmptyMovieClip(s,t),a=1;this.make();for(var r=0;r<this.modules.length;r++)for(var u=r*a,e=0;e<this.modules[r].length;e++){var n=e*a,i=this.modules[r][e];i&&(l.beginFill(0,100),l.moveTo(n,u),l.lineTo(n+a,u),l.lineTo(n+a,u+a),l.lineTo(n,u+a),l.endFill())}return l},m.setupTimingPattern=function(){for(var f=8;f<this.moduleCount-8;f++){if(this.modules[f][6]!=null)continue;this.modules[f][6]=f%2==0}for(var s=8;s<this.moduleCount-8;s++){if(this.modules[6][s]!=null)continue;this.modules[6][s]=s%2==0}},m.setupPositionAdjustPattern=function(){for(var f=E.getPatternPosition(this.typeNumber),s=0;s<f.length;s++)for(var t=0;t<f.length;t++){var l=f[s],a=f[t];if(this.modules[l][a]!=null)continue;for(var r=-2;r<=2;r++)for(var u=-2;u<=2;u++)r==-2||r==2||u==-2||u==2||r==0&&u==0?this.modules[l+r][a+u]=!0:this.modules[l+r][a+u]=!1}},m.setupTypeNumber=function(f){for(var s=E.getBCHTypeNumber(this.typeNumber),t=0;t<18;t++){var l=!f&&(s>>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=l}for(var t=0;t<18;t++){var l=!f&&(s>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=l}},m.setupTypeInfo=function(f,s){for(var t=this.errorCorrectLevel<<3|s,l=E.getBCHTypeInfo(t),a=0;a<15;a++){var r=!f&&(l>>a&1)==1;a<6?this.modules[a][8]=r:a<8?this.modules[a+1][8]=r:this.modules[this.moduleCount-15+a][8]=r}for(var a=0;a<15;a++){var r=!f&&(l>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=r:a<9?this.modules[8][15-a-1+1]=r:this.modules[8][15-a-1]=r}this.modules[this.moduleCount-8][8]=!f},m.mapData=function(f,s){for(var t=-1,l=this.moduleCount-1,a=7,r=0,u=this.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(var e=0;e<2;e++)if(this.modules[l][u-e]==null){var n=!1;r<f.length&&(n=(f[r]>>>a&1)==1);var i=E.getMask(s,l,u-e);i&&(n=!n),this.modules[l][u-e]=n,a--,a==-1&&(r++,a=7)}if(l+=t,l<0||this.moduleCount<=l){l-=t,t=-t;break}}},o.PAD0=236,o.PAD1=17,o.createData=function(f,s,t){for(var l=N.getRSBlocks(f,s),a=new L,r=0;r<t.length;r++){var u=t[r];a.put(u.mode,4),a.put(u.getLength(),E.getLengthInBits(u.mode,f)),u.write(a)}for(var e=0,r=0;r<l.length;r++)e+=l[r].dataCount;if(a.getLengthInBits()>e*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+e*8+")");for(a.getLengthInBits()+4<=e*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=e*8);){if(a.put(o.PAD0,8),a.getLengthInBits()>=e*8)break;a.put(o.PAD1,8)}return o.createBytes(a,l)},o.createBytes=function(f,s){for(var t=0,l=0,a=0,r=new Array(s.length),u=new Array(s.length),e=0;e<s.length;e++){var n=s[e].dataCount,i=s[e].totalCount-n;l=Math.max(l,n),a=Math.max(a,i),r[e]=new Array(n);for(var c=0;c<r[e].length;c++)r[e][c]=255&f.buffer[c+t];t+=n;var d=E.getErrorCorrectPolynomial(i),h=new I(r[e],d.getLength()-1),p=h.mod(d);u[e]=new Array(d.getLength()-1);for(var c=0;c<u[e].length;c++){var g=c+p.getLength()-u[e].length;u[e][c]=g>=0?p.get(g):0}}for(var v=0,c=0;c<s.length;c++)v+=s[c].totalCount;for(var A=new Array(v),x=0,c=0;c<l;c++)for(var e=0;e<s.length;e++)c<r[e].length&&(A[x++]=r[e][c]);for(var c=0;c<a;c++)for(var e=0;e<s.length;e++)c<u[e].length&&(A[x++]=u[e][c]);return A},fe.exports=o},H6uX:function(fe,z){var y=Array.prototype.slice,D=function(o){this._$handlers={},this._$eventProcessor=o};D.prototype={constructor:D,one:function(o,m,f,s){return L(this,o,m,f,s,!0)},on:function(o,m,f,s){return L(this,o,m,f,s,!1)},isSilent:function(o){var m=this._$handlers;return!m[o]||!m[o].length},off:function(o,m){var f=this._$handlers;if(!o)return this._$handlers={},this;if(m){if(f[o]){for(var s=[],t=0,l=f[o].length;t<l;t++)f[o][t].h!==m&&s.push(f[o][t]);f[o]=s}f[o]&&f[o].length===0&&delete f[o]}else delete f[o];return this},trigger:function(o){var m=this._$handlers[o],f=this._$eventProcessor;if(m){var s=arguments,t=s.length;t>3&&(s=y.call(s,1));for(var l=m.length,a=0;a<l;){var r=m[a];if(f&&f.filter&&r.query!=null&&!f.filter(o,r.query)){a++;continue}switch(t){case 1:r.h.call(r.ctx);break;case 2:r.h.call(r.ctx,s[1]);break;case 3:r.h.call(r.ctx,s[1],s[2]);break;default:r.h.apply(r.ctx,s);break}r.one?(m.splice(a,1),l--):a++}}return f&&f.afterTrigger&&f.afterTrigger(o),this},triggerWithContext:function(o){var m=this._$handlers[o],f=this._$eventProcessor;if(m){var s=arguments,t=s.length;t>4&&(s=y.call(s,1,s.length-1));for(var l=s[s.length-1],a=m.length,r=0;r<a;){var u=m[r];if(f&&f.filter&&u.query!=null&&!f.filter(o,u.query)){r++;continue}switch(t){case 1:u.h.call(l);break;case 2:u.h.call(l,s[1]);break;case 3:u.h.call(l,s[1],s[2]);break;default:u.h.apply(l,s);break}u.one?(m.splice(r,1),a--):r++}}return f&&f.afterTrigger&&f.afterTrigger(o),this}};function N(I,o){var m=I._$eventProcessor;return o!=null&&m&&m.normalizeQuery&&(o=m.normalizeQuery(o)),o}function L(I,o,m,f,s,t){var l=I._$handlers;if(typeof m=="function"&&(s=f,f=m,m=null),!f||!o)return I;m=N(I,m),l[o]||(l[o]=[]);for(var a=0;a<l[o].length;a++)if(l[o][a].h===f)return I;var r={h:f,one:t,query:m,ctx:s||I,callAtLast:f.zrEventfulCallAtLast},u=l[o].length-1,e=l[o][u];return e&&e.callAtLast?l[o].splice(u,0,r):l[o].push(r),I}var E=D;fe.exports=E},H7XF:function(fe,z,y){"use strict";z.byteLength=f,z.toByteArray=t,z.fromByteArray=r;for(var D=[],N=[],L=typeof Uint8Array!="undefined"?Uint8Array:Array,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I=0,o=E.length;I<o;++I)D[I]=E[I],N[E.charCodeAt(I)]=I;N["-".charCodeAt(0)]=62,N["_".charCodeAt(0)]=63;function m(u){var e=u.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=u.indexOf("=");n===-1&&(n=e);var i=n===e?0:4-n%4;return[n,i]}function f(u){var e=m(u),n=e[0],i=e[1];return(n+i)*3/4-i}function s(u,e,n){return(e+n)*3/4-n}function t(u){var e,n=m(u),i=n[0],c=n[1],d=new L(s(u,i,c)),h=0,p=c>0?i-4:i,g;for(g=0;g<p;g+=4)e=N[u.charCodeAt(g)]<<18|N[u.charCodeAt(g+1)]<<12|N[u.charCodeAt(g+2)]<<6|N[u.charCodeAt(g+3)],d[h++]=e>>16&255,d[h++]=e>>8&255,d[h++]=e&255;return c===2&&(e=N[u.charCodeAt(g)]<<2|N[u.charCodeAt(g+1)]>>4,d[h++]=e&255),c===1&&(e=N[u.charCodeAt(g)]<<10|N[u.charCodeAt(g+1)]<<4|N[u.charCodeAt(g+2)]>>2,d[h++]=e>>8&255,d[h++]=e&255),d}function l(u){return D[u>>18&63]+D[u>>12&63]+D[u>>6&63]+D[u&63]}function a(u,e,n){for(var i,c=[],d=e;d<n;d+=3)i=(u[d]<<16&16711680)+(u[d+1]<<8&65280)+(u[d+2]&255),c.push(l(i));return c.join("")}function r(u){for(var e,n=u.length,i=n%3,c=[],d=16383,h=0,p=n-i;h<p;h+=d)c.push(a(u,h,h+d>p?p:h+d));return i===1?(e=u[n-1],c.push(D[e>>2]+D[e<<4&63]+"==")):i===2&&(e=(u[n-2]<<8)+u[n-1],c.push(D[e>>10]+D[e>>4&63]+D[e<<2&63]+"=")),c.join("")}},HBhm:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},HDXh:function(fe,z,y){"use strict";(function(D){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var N=y("H7XF"),L=y("kVK+"),E=y("49sm");z.Buffer=f,z.SlowBuffer=c,z.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=D.TYPED_ARRAY_SUPPORT!==void 0?D.TYPED_ARRAY_SUPPORT:I(),z.kMaxLength=o();function I(){try{var $=new Uint8Array(1);return $.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},$.foo()===42&&typeof $.subarray=="function"&&$.subarray(1,1).byteLength===0}catch(J){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m($,J){if(o()<J)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?($=new Uint8Array(J),$.__proto__=f.prototype):($===null&&($=new f(J)),$.length=J),$}function f($,J,le){if(!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f))return new f($,J,le);if(typeof $=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,$)}return s(this,$,J,le)}f.poolSize=8192,f._augment=function($){return $.__proto__=f.prototype,$};function s($,J,le,de){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?e($,J,le,de):typeof J=="string"?r($,J,le):n($,J)}f.from=function($,J,le){return s(null,$,J,le)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0}));function t($){if(typeof $!="number")throw new TypeError('"size" argument must be a number');if($<0)throw new RangeError('"size" argument must not be negative')}function l($,J,le,de){return t(J),J<=0?m($,J):le!==void 0?typeof de=="string"?m($,J).fill(le,de):m($,J).fill(le):m($,J)}f.alloc=function($,J,le){return l(null,$,J,le)};function a($,J){if(t(J),$=m($,J<0?0:i(J)|0),!f.TYPED_ARRAY_SUPPORT)for(var le=0;le<J;++le)$[le]=0;return $}f.allocUnsafe=function($){return a(null,$)},f.allocUnsafeSlow=function($){return a(null,$)};function r($,J,le){if((typeof le!="string"||le==="")&&(le="utf8"),!f.isEncoding(le))throw new TypeError('"encoding" must be a valid string encoding');var de=d(J,le)|0;$=m($,de);var Ne=$.write(J,le);return Ne!==de&&($=$.slice(0,Ne)),$}function u($,J){var le=J.length<0?0:i(J.length)|0;$=m($,le);for(var de=0;de<le;de+=1)$[de]=J[de]&255;return $}function e($,J,le,de){if(J.byteLength,le<0||J.byteLength<le)throw new RangeError("'offset' is out of bounds");if(J.byteLength<le+(de||0))throw new RangeError("'length' is out of bounds");return le===void 0&&de===void 0?J=new Uint8Array(J):de===void 0?J=new Uint8Array(J,le):J=new Uint8Array(J,le,de),f.TYPED_ARRAY_SUPPORT?($=J,$.__proto__=f.prototype):$=u($,J),$}function n($,J){if(f.isBuffer(J)){var le=i(J.length)|0;return $=m($,le),$.length===0||J.copy($,0,0,le),$}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||We(J.length)?m($,0):u($,J);if(J.type==="Buffer"&&E(J.data))return u($,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function i($){if($>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return $|0}function c($){return+$!=$&&($=0),f.alloc(+$)}f.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},f.compare=function(J,le){if(!f.isBuffer(J)||!f.isBuffer(le))throw new TypeError("Arguments must be Buffers");if(J===le)return 0;for(var de=J.length,Ne=le.length,we=0,De=Math.min(de,Ne);we<De;++we)if(J[we]!==le[we]){de=J[we],Ne=le[we];break}return de<Ne?-1:Ne<de?1:0},f.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(J,le){if(!E(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return f.alloc(0);var de;if(le===void 0)for(le=0,de=0;de<J.length;++de)le+=J[de].length;var Ne=f.allocUnsafe(le),we=0;for(de=0;de<J.length;++de){var De=J[de];if(!f.isBuffer(De))throw new TypeError('"list" argument must be an Array of Buffers');De.copy(Ne,we),we+=De.length}return Ne};function d($,J){if(f.isBuffer($))return $.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView($)||$ instanceof ArrayBuffer))return $.byteLength;typeof $!="string"&&($=""+$);var le=$.length;if(le===0)return 0;for(var de=!1;;)switch(J){case"ascii":case"latin1":case"binary":return le;case"utf8":case"utf-8":case void 0:return Le($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le*2;case"hex":return le>>>1;case"base64":return X($).length;default:if(de)return Le($).length;J=(""+J).toLowerCase(),de=!0}}f.byteLength=d;function h($,J,le){var de=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((le===void 0||le>this.length)&&(le=this.length),le<=0)return"";if(le>>>=0,J>>>=0,le<=J)return"";for($||($="utf8");;)switch($){case"hex":return B(this,J,le);case"utf8":case"utf-8":return O(this,J,le);case"ascii":return k(this,J,le);case"latin1":case"binary":return R(this,J,le);case"base64":return C(this,J,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,J,le);default:if(de)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),de=!0}}f.prototype._isBuffer=!0;function p($,J,le){var de=$[J];$[J]=$[le],$[le]=de}f.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var le=0;le<J;le+=2)p(this,le,le+1);return this},f.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var le=0;le<J;le+=4)p(this,le,le+3),p(this,le+1,le+2);return this},f.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var le=0;le<J;le+=8)p(this,le,le+7),p(this,le+1,le+6),p(this,le+2,le+5),p(this,le+3,le+4);return this},f.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?O(this,0,J):h.apply(this,arguments)},f.prototype.equals=function(J){if(!f.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:f.compare(this,J)===0},f.prototype.inspect=function(){var J="",le=z.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,le).match(/.{2}/g).join(" "),this.length>le&&(J+=" ... ")),"<Buffer "+J+">"},f.prototype.compare=function(J,le,de,Ne,we){if(!f.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(le===void 0&&(le=0),de===void 0&&(de=J?J.length:0),Ne===void 0&&(Ne=0),we===void 0&&(we=this.length),le<0||de>J.length||Ne<0||we>this.length)throw new RangeError("out of range index");if(Ne>=we&&le>=de)return 0;if(Ne>=we)return-1;if(le>=de)return 1;if(le>>>=0,de>>>=0,Ne>>>=0,we>>>=0,this===J)return 0;for(var De=we-Ne,Ee=de-le,ce=Math.min(De,Ee),ne=this.slice(Ne,we),ee=J.slice(le,de),Ae=0;Ae<ce;++Ae)if(ne[Ae]!==ee[Ae]){De=ne[Ae],Ee=ee[Ae];break}return De<Ee?-1:Ee<De?1:0};function g($,J,le,de,Ne){if($.length===0)return-1;if(typeof le=="string"?(de=le,le=0):le>2147483647?le=2147483647:le<-2147483648&&(le=-2147483648),le=+le,isNaN(le)&&(le=Ne?0:$.length-1),le<0&&(le=$.length+le),le>=$.length){if(Ne)return-1;le=$.length-1}else if(le<0)if(Ne)le=0;else return-1;if(typeof J=="string"&&(J=f.from(J,de)),f.isBuffer(J))return J.length===0?-1:v($,J,le,de,Ne);if(typeof J=="number")return J=J&255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ne?Uint8Array.prototype.indexOf.call($,J,le):Uint8Array.prototype.lastIndexOf.call($,J,le):v($,[J],le,de,Ne);throw new TypeError("val must be string, number or Buffer")}function v($,J,le,de,Ne){var we=1,De=$.length,Ee=J.length;if(de!==void 0&&(de=String(de).toLowerCase(),de==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if($.length<2||J.length<2)return-1;we=2,De/=2,Ee/=2,le/=2}function ce(Ke,Oe){return we===1?Ke[Oe]:Ke.readUInt16BE(Oe*we)}var ne;if(Ne){var ee=-1;for(ne=le;ne<De;ne++)if(ce($,ne)===ce(J,ee===-1?0:ne-ee)){if(ee===-1&&(ee=ne),ne-ee+1===Ee)return ee*we}else ee!==-1&&(ne-=ne-ee),ee=-1}else for(le+Ee>De&&(le=De-Ee),ne=le;ne>=0;ne--){for(var Ae=!0,Ve=0;Ve<Ee;Ve++)if(ce($,ne+Ve)!==ce(J,Ve)){Ae=!1;break}if(Ae)return ne}return-1}f.prototype.includes=function(J,le,de){return this.indexOf(J,le,de)!==-1},f.prototype.indexOf=function(J,le,de){return g(this,J,le,de,!0)},f.prototype.lastIndexOf=function(J,le,de){return g(this,J,le,de,!1)};function A($,J,le,de){le=Number(le)||0;var Ne=$.length-le;de?(de=Number(de),de>Ne&&(de=Ne)):de=Ne;var we=J.length;if(we%2!==0)throw new TypeError("Invalid hex string");de>we/2&&(de=we/2);for(var De=0;De<de;++De){var Ee=parseInt(J.substr(De*2,2),16);if(isNaN(Ee))return De;$[le+De]=Ee}return De}function x($,J,le,de){return q(Le(J,$.length-le),$,le,de)}function b($,J,le,de){return q(me(J),$,le,de)}function w($,J,le,de){return b($,J,le,de)}function S($,J,le,de){return q(X(J),$,le,de)}function T($,J,le,de){return q(Ie(J,$.length-le),$,le,de)}f.prototype.write=function(J,le,de,Ne){if(le===void 0)Ne="utf8",de=this.length,le=0;else if(de===void 0&&typeof le=="string")Ne=le,de=this.length,le=0;else if(isFinite(le))le=le|0,isFinite(de)?(de=de|0,Ne===void 0&&(Ne="utf8")):(Ne=de,de=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var we=this.length-le;if((de===void 0||de>we)&&(de=we),J.length>0&&(de<0||le<0)||le>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ne||(Ne="utf8");for(var De=!1;;)switch(Ne){case"hex":return A(this,J,le,de);case"utf8":case"utf-8":return x(this,J,le,de);case"ascii":return b(this,J,le,de);case"latin1":case"binary":return w(this,J,le,de);case"base64":return S(this,J,le,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,J,le,de);default:if(De)throw new TypeError("Unknown encoding: "+Ne);Ne=(""+Ne).toLowerCase(),De=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C($,J,le){return J===0&&le===$.length?N.fromByteArray($):N.fromByteArray($.slice(J,le))}function O($,J,le){le=Math.min($.length,le);for(var de=[],Ne=J;Ne<le;){var we=$[Ne],De=null,Ee=we>239?4:we>223?3:we>191?2:1;if(Ne+Ee<=le){var ce,ne,ee,Ae;switch(Ee){case 1:we<128&&(De=we);break;case 2:ce=$[Ne+1],(ce&192)===128&&(Ae=(we&31)<<6|ce&63,Ae>127&&(De=Ae));break;case 3:ce=$[Ne+1],ne=$[Ne+2],(ce&192)===128&&(ne&192)===128&&(Ae=(we&15)<<12|(ce&63)<<6|ne&63,Ae>2047&&(Ae<55296||Ae>57343)&&(De=Ae));break;case 4:ce=$[Ne+1],ne=$[Ne+2],ee=$[Ne+3],(ce&192)===128&&(ne&192)===128&&(ee&192)===128&&(Ae=(we&15)<<18|(ce&63)<<12|(ne&63)<<6|ee&63,Ae>65535&&Ae<1114112&&(De=Ae))}}De===null?(De=65533,Ee=1):De>65535&&(De-=65536,de.push(De>>>10&1023|55296),De=56320|De&1023),de.push(De),Ne+=Ee}return M(de)}var _=4096;function M($){var J=$.length;if(J<=_)return String.fromCharCode.apply(String,$);for(var le="",de=0;de<J;)le+=String.fromCharCode.apply(String,$.slice(de,de+=_));return le}function k($,J,le){var de="";le=Math.min($.length,le);for(var Ne=J;Ne<le;++Ne)de+=String.fromCharCode($[Ne]&127);return de}function R($,J,le){var de="";le=Math.min($.length,le);for(var Ne=J;Ne<le;++Ne)de+=String.fromCharCode($[Ne]);return de}function B($,J,le){var de=$.length;(!J||J<0)&&(J=0),(!le||le<0||le>de)&&(le=de);for(var Ne="",we=J;we<le;++we)Ne+=ue($[we]);return Ne}function P($,J,le){for(var de=$.slice(J,le),Ne="",we=0;we<de.length;we+=2)Ne+=String.fromCharCode(de[we]+de[we+1]*256);return Ne}f.prototype.slice=function(J,le){var de=this.length;J=~~J,le=le===void 0?de:~~le,J<0?(J+=de,J<0&&(J=0)):J>de&&(J=de),le<0?(le+=de,le<0&&(le=0)):le>de&&(le=de),le<J&&(le=J);var Ne;if(f.TYPED_ARRAY_SUPPORT)Ne=this.subarray(J,le),Ne.__proto__=f.prototype;else{var we=le-J;Ne=new f(we,void 0);for(var De=0;De<we;++De)Ne[De]=this[De+J]}return Ne};function U($,J,le){if($%1!==0||$<0)throw new RangeError("offset is not uint");if($+J>le)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(J,le,de){J=J|0,le=le|0,de||U(J,le,this.length);for(var Ne=this[J],we=1,De=0;++De<le&&(we*=256);)Ne+=this[J+De]*we;return Ne},f.prototype.readUIntBE=function(J,le,de){J=J|0,le=le|0,de||U(J,le,this.length);for(var Ne=this[J+--le],we=1;le>0&&(we*=256);)Ne+=this[J+--le]*we;return Ne},f.prototype.readUInt8=function(J,le){return le||U(J,1,this.length),this[J]},f.prototype.readUInt16LE=function(J,le){return le||U(J,2,this.length),this[J]|this[J+1]<<8},f.prototype.readUInt16BE=function(J,le){return le||U(J,2,this.length),this[J]<<8|this[J+1]},f.prototype.readUInt32LE=function(J,le){return le||U(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},f.prototype.readUInt32BE=function(J,le){return le||U(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},f.prototype.readIntLE=function(J,le,de){J=J|0,le=le|0,de||U(J,le,this.length);for(var Ne=this[J],we=1,De=0;++De<le&&(we*=256);)Ne+=this[J+De]*we;return we*=128,Ne>=we&&(Ne-=Math.pow(2,8*le)),Ne},f.prototype.readIntBE=function(J,le,de){J=J|0,le=le|0,de||U(J,le,this.length);for(var Ne=le,we=1,De=this[J+--Ne];Ne>0&&(we*=256);)De+=this[J+--Ne]*we;return we*=128,De>=we&&(De-=Math.pow(2,8*le)),De},f.prototype.readInt8=function(J,le){return le||U(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},f.prototype.readInt16LE=function(J,le){le||U(J,2,this.length);var de=this[J]|this[J+1]<<8;return de&32768?de|4294901760:de},f.prototype.readInt16BE=function(J,le){le||U(J,2,this.length);var de=this[J+1]|this[J]<<8;return de&32768?de|4294901760:de},f.prototype.readInt32LE=function(J,le){return le||U(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},f.prototype.readInt32BE=function(J,le){return le||U(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},f.prototype.readFloatLE=function(J,le){return le||U(J,4,this.length),L.read(this,J,!0,23,4)},f.prototype.readFloatBE=function(J,le){return le||U(J,4,this.length),L.read(this,J,!1,23,4)},f.prototype.readDoubleLE=function(J,le){return le||U(J,8,this.length),L.read(this,J,!0,52,8)},f.prototype.readDoubleBE=function(J,le){return le||U(J,8,this.length),L.read(this,J,!1,52,8)};function j($,J,le,de,Ne,we){if(!f.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>Ne||J<we)throw new RangeError('"value" argument is out of bounds');if(le+de>$.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(J,le,de,Ne){if(J=+J,le=le|0,de=de|0,!Ne){var we=Math.pow(2,8*de)-1;j(this,J,le,de,we,0)}var De=1,Ee=0;for(this[le]=J&255;++Ee<de&&(De*=256);)this[le+Ee]=J/De&255;return le+de},f.prototype.writeUIntBE=function(J,le,de,Ne){if(J=+J,le=le|0,de=de|0,!Ne){var we=Math.pow(2,8*de)-1;j(this,J,le,de,we,0)}var De=de-1,Ee=1;for(this[le+De]=J&255;--De>=0&&(Ee*=256);)this[le+De]=J/Ee&255;return le+de},f.prototype.writeUInt8=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,1,255,0),f.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[le]=J&255,le+1};function H($,J,le,de){J<0&&(J=65535+J+1);for(var Ne=0,we=Math.min($.length-le,2);Ne<we;++Ne)$[le+Ne]=(J&255<<8*(de?Ne:1-Ne))>>>(de?Ne:1-Ne)*8}f.prototype.writeUInt16LE=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[le]=J&255,this[le+1]=J>>>8):H(this,J,le,!0),le+2},f.prototype.writeUInt16BE=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[le]=J>>>8,this[le+1]=J&255):H(this,J,le,!1),le+2};function W($,J,le,de){J<0&&(J=4294967295+J+1);for(var Ne=0,we=Math.min($.length-le,4);Ne<we;++Ne)$[le+Ne]=J>>>(de?Ne:3-Ne)*8&255}f.prototype.writeUInt32LE=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[le+3]=J>>>24,this[le+2]=J>>>16,this[le+1]=J>>>8,this[le]=J&255):W(this,J,le,!0),le+4},f.prototype.writeUInt32BE=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[le]=J>>>24,this[le+1]=J>>>16,this[le+2]=J>>>8,this[le+3]=J&255):W(this,J,le,!1),le+4},f.prototype.writeIntLE=function(J,le,de,Ne){if(J=+J,le=le|0,!Ne){var we=Math.pow(2,8*de-1);j(this,J,le,de,we-1,-we)}var De=0,Ee=1,ce=0;for(this[le]=J&255;++De<de&&(Ee*=256);)J<0&&ce===0&&this[le+De-1]!==0&&(ce=1),this[le+De]=(J/Ee>>0)-ce&255;return le+de},f.prototype.writeIntBE=function(J,le,de,Ne){if(J=+J,le=le|0,!Ne){var we=Math.pow(2,8*de-1);j(this,J,le,de,we-1,-we)}var De=de-1,Ee=1,ce=0;for(this[le+De]=J&255;--De>=0&&(Ee*=256);)J<0&&ce===0&&this[le+De+1]!==0&&(ce=1),this[le+De]=(J/Ee>>0)-ce&255;return le+de},f.prototype.writeInt8=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,1,127,-128),f.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[le]=J&255,le+1},f.prototype.writeInt16LE=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[le]=J&255,this[le+1]=J>>>8):H(this,J,le,!0),le+2},f.prototype.writeInt16BE=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[le]=J>>>8,this[le+1]=J&255):H(this,J,le,!1),le+2},f.prototype.writeInt32LE=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[le]=J&255,this[le+1]=J>>>8,this[le+2]=J>>>16,this[le+3]=J>>>24):W(this,J,le,!0),le+4},f.prototype.writeInt32BE=function(J,le,de){return J=+J,le=le|0,de||j(this,J,le,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),f.TYPED_ARRAY_SUPPORT?(this[le]=J>>>24,this[le+1]=J>>>16,this[le+2]=J>>>8,this[le+3]=J&255):W(this,J,le,!1),le+4};function G($,J,le,de,Ne,we){if(le+de>$.length)throw new RangeError("Index out of range");if(le<0)throw new RangeError("Index out of range")}function V($,J,le,de,Ne){return Ne||G($,J,le,4,34028234663852886e22,-34028234663852886e22),L.write($,J,le,de,23,4),le+4}f.prototype.writeFloatLE=function(J,le,de){return V(this,J,le,!0,de)},f.prototype.writeFloatBE=function(J,le,de){return V(this,J,le,!1,de)};function Z($,J,le,de,Ne){return Ne||G($,J,le,8,17976931348623157e292,-17976931348623157e292),L.write($,J,le,de,52,8),le+8}f.prototype.writeDoubleLE=function(J,le,de){return Z(this,J,le,!0,de)},f.prototype.writeDoubleBE=function(J,le,de){return Z(this,J,le,!1,de)},f.prototype.copy=function(J,le,de,Ne){if(de||(de=0),!Ne&&Ne!==0&&(Ne=this.length),le>=J.length&&(le=J.length),le||(le=0),Ne>0&&Ne<de&&(Ne=de),Ne===de)return 0;if(J.length===0||this.length===0)return 0;if(le<0)throw new RangeError("targetStart out of bounds");if(de<0||de>=this.length)throw new RangeError("sourceStart out of bounds");if(Ne<0)throw new RangeError("sourceEnd out of bounds");Ne>this.length&&(Ne=this.length),J.length-le<Ne-de&&(Ne=J.length-le+de);var we=Ne-de,De;if(this===J&&de<le&&le<Ne)for(De=we-1;De>=0;--De)J[De+le]=this[De+de];else if(we<1e3||!f.TYPED_ARRAY_SUPPORT)for(De=0;De<we;++De)J[De+le]=this[De+de];else Uint8Array.prototype.set.call(J,this.subarray(de,de+we),le);return we},f.prototype.fill=function(J,le,de,Ne){if(typeof J=="string"){if(typeof le=="string"?(Ne=le,le=0,de=this.length):typeof de=="string"&&(Ne=de,de=this.length),J.length===1){var we=J.charCodeAt(0);we<256&&(J=we)}if(Ne!==void 0&&typeof Ne!="string")throw new TypeError("encoding must be a string");if(typeof Ne=="string"&&!f.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne)}else typeof J=="number"&&(J=J&255);if(le<0||this.length<le||this.length<de)throw new RangeError("Out of range index");if(de<=le)return this;le=le>>>0,de=de===void 0?this.length:de>>>0,J||(J=0);var De;if(typeof J=="number")for(De=le;De<de;++De)this[De]=J;else{var Ee=f.isBuffer(J)?J:Le(new f(J,Ne).toString()),ce=Ee.length;for(De=0;De<de-le;++De)this[De+le]=Ee[De%ce]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function Q($){if($=oe($).replace(Y,""),$.length<2)return"";for(;$.length%4!==0;)$=$+"=";return $}function oe($){return $.trim?$.trim():$.replace(/^\s+|\s+$/g,"")}function ue($){return $<16?"0"+$.toString(16):$.toString(16)}function Le($,J){J=J||Infinity;for(var le,de=$.length,Ne=null,we=[],De=0;De<de;++De){if(le=$.charCodeAt(De),le>55295&&le<57344){if(!Ne){if(le>56319){(J-=3)>-1&&we.push(239,191,189);continue}else if(De+1===de){(J-=3)>-1&&we.push(239,191,189);continue}Ne=le;continue}if(le<56320){(J-=3)>-1&&we.push(239,191,189),Ne=le;continue}le=(Ne-55296<<10|le-56320)+65536}else Ne&&((J-=3)>-1&&we.push(239,191,189));if(Ne=null,le<128){if((J-=1)<0)break;we.push(le)}else if(le<2048){if((J-=2)<0)break;we.push(le>>6|192,le&63|128)}else if(le<65536){if((J-=3)<0)break;we.push(le>>12|224,le>>6&63|128,le&63|128)}else if(le<1114112){if((J-=4)<0)break;we.push(le>>18|240,le>>12&63|128,le>>6&63|128,le&63|128)}else throw new Error("Invalid code point")}return we}function me($){for(var J=[],le=0;le<$.length;++le)J.push($.charCodeAt(le)&255);return J}function Ie($,J){for(var le,de,Ne,we=[],De=0;De<$.length&&!((J-=2)<0);++De)le=$.charCodeAt(De),de=le>>8,Ne=le%256,we.push(Ne),we.push(de);return we}function X($){return N.toByteArray(Q($))}function q($,J,le,de){for(var Ne=0;Ne<de&&!(Ne+le>=J.length||Ne>=$.length);++Ne)J[Ne+le]=$[Ne];return Ne}function We($){return $!==$}}).call(this,y("yLpj"))},"HF/U":function(fe,z,y){var D=y("QBsz");function N(E){var I=E.coordinateSystem;if(I&&I.type!=="view")return;var o=E.getGraph();o.eachNode(function(m){var f=m.getModel();m.setLayout([+f.get("x"),+f.get("y")])}),L(o)}function L(E){E.eachEdge(function(I){var o=I.getModel().get("lineStyle.curveness")||0,m=D.clone(I.node1.getLayout()),f=D.clone(I.node2.getLayout()),s=[m,f];+o&&s.push([(m[0]+f[0])/2-(m[1]-f[1])*o,(m[1]+f[1])/2-(f[0]-m[0])*o]),I.setLayout(s)})}z.simpleLayout=N,z.simpleLayoutEdge=L},"HM/N":function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("/SeX"),I=y("OELB"),o=I.parsePercent,m=y("aX7z"),f=m.createScaleByModel,s=m.niceScaleExtent,t=y("IDmD"),l=y("7hqr"),a=l.getStackedDimension;y("ePAk");function r(i,c,d){var h=c.get("center"),p=d.getWidth(),g=d.getHeight();i.cx=o(h[0],p),i.cy=o(h[1],g);var v=i.getRadiusAxis(),A=Math.min(p,g)/2,x=c.get("radius");x==null?x=[0,"100%"]:L.isArray(x)||(x=[0,x]),x=[o(x[0],A),o(x[1],A)],v.inverse?v.setExtent(x[1],x[0]):v.setExtent(x[0],x[1])}function u(i,c){var d=this,h=d.getAngleAxis(),p=d.getRadiusAxis();if(h.scale.setExtent(Infinity,-Infinity),p.scale.setExtent(Infinity,-Infinity),i.eachSeries(function(A){if(A.coordinateSystem===d){var x=A.getData();L.each(x.mapDimension("radius",!0),function(b){p.scale.unionExtentFromData(x,a(x,b))}),L.each(x.mapDimension("angle",!0),function(b){h.scale.unionExtentFromData(x,a(x,b))})}}),s(h.scale,h.model),s(p.scale,p.model),h.type==="category"&&!h.onBand){var g=h.getExtent(),v=360/h.scale.count();h.inverse?g[1]+=v:g[1]-=v,h.setExtent(g[0],g[1])}}function e(i,c){if(i.type=c.get("type"),i.scale=f(c),i.onBand=c.get("boundaryGap")&&i.type==="category",i.inverse=c.get("inverse"),c.mainType==="angleAxis"){i.inverse^=c.get("clockwise");var d=c.get("startAngle");i.setExtent(d,d+(i.inverse?-360:360))}c.axis=i,i.model=c}var n={dimensions:E.prototype.dimensions,create:function(i,c){var d=[];return i.eachComponent("polar",function(h,p){var g=new E(p);g.update=u;var v=g.getRadiusAxis(),A=g.getAngleAxis(),x=h.findAxisModel("radiusAxis"),b=h.findAxisModel("angleAxis");e(v,x),e(A,b),r(g,h,c),d.push(g),h.coordinateSystem=g,g.model=h}),i.eachSeries(function(h){if(h.get("coordinateSystem")==="polar"){var p=i.queryComponents({mainType:"polar",index:h.get("polarIndex"),id:h.get("polarId")})[0];h.coordinateSystem=p.coordinateSystem}}),d}};t.register("polar",n)},HQEm:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("Sj0X"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},HjIi:function(fe,z,y){var D=y("bYtY"),N=y("OELB"),L=N.parsePercent,E=y("7hqr"),I=E.isDimensionStacked;function o(l){return l.get("stack")||"__ec_stack_"+l.seriesIndex}function m(l,a){return a.dim+l.model.componentIndex}function f(l,a,r){var u={},e=s(D.filter(a.getSeriesByType(l),function(n){return!a.isSeriesFiltered(n)&&n.coordinateSystem&&n.coordinateSystem.type==="polar"}));a.eachSeriesByType(l,function(n){if(n.coordinateSystem.type!=="polar")return;var i=n.getData(),c=n.coordinateSystem,d=c.getBaseAxis(),h=m(c,d),p=o(n),g=e[h][p],v=g.offset,A=g.width,x=c.getOtherAxis(d),b=n.coordinateSystem.cx,w=n.coordinateSystem.cy,S=n.get("barMinHeight")||0,T=n.get("barMinAngle")||0;u[p]=u[p]||[];for(var C=i.mapDimension(x.dim),O=i.mapDimension(d.dim),_=I(i,C),M=d.dim!=="radius"||!n.get("roundCap",!0),k=x.getExtent()[0],R=0,B=i.count();R<B;R++){var P=i.get(C,R),U=i.get(O,R),j=P>=0?"p":"n",H=k;_&&(u[p][U]||(u[p][U]={p:k,n:k}),H=u[p][U][j]);var W,G,V,Z;if(x.dim==="radius"){var Y=x.dataToRadius(P)-k,Q=d.dataToAngle(U);Math.abs(Y)<S&&(Y=(Y<0?-1:1)*S),W=H,G=H+Y,V=Q-v,Z=V-A,_&&(u[p][U][j]=G)}else{var oe=x.dataToAngle(P,M)-k,ue=d.dataToRadius(U);Math.abs(oe)<T&&(oe=(oe<0?-1:1)*T),W=ue+v,G=W+A,V=H,Z=H+oe,_&&(u[p][U][j]=Z)}i.setItemLayout(R,{cx:b,cy:w,r0:W,r:G,startAngle:-V*Math.PI/180,endAngle:-Z*Math.PI/180})}},this)}function s(l,a){var r={};D.each(l,function(e,n){var i=e.getData(),c=e.coordinateSystem,d=c.getBaseAxis(),h=m(c,d),p=d.getExtent(),g=d.type==="category"?d.getBandWidth():Math.abs(p[1]-p[0])/i.count(),v=r[h]||{bandWidth:g,remainedWidth:g,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},A=v.stacks;r[h]=v;var x=o(e);A[x]||v.autoWidthCount++,A[x]=A[x]||{width:0,maxWidth:0};var b=L(e.get("barWidth"),g),w=L(e.get("barMaxWidth"),g),S=e.get("barGap"),T=e.get("barCategoryGap");b&&!A[x].width&&(b=Math.min(v.remainedWidth,b),A[x].width=b,v.remainedWidth-=b),w&&(A[x].maxWidth=w),S!=null&&(v.gap=S),T!=null&&(v.categoryGap=T)});var u={};return D.each(r,function(e,n){u[n]={};var i=e.stacks,c=e.bandWidth,d=L(e.categoryGap,c),h=L(e.gap,1),p=e.remainedWidth,g=e.autoWidthCount,v=(p-d)/(g+(g-1)*h);v=Math.max(v,0),D.each(i,function(w,S){var T=w.maxWidth;T&&T<v&&(T=Math.min(T,p),w.width&&(T=Math.min(T,w.width)),p-=T,w.width=T,g--)}),v=(p-d)/(g+(g-1)*h),v=Math.max(v,0);var A=0,x;D.each(i,function(w,S){w.width||(w.width=v),x=w,A+=w.width*(1+h)}),x&&(A-=x.width*h);var b=-A/2;D.each(i,function(w,S){u[n][S]=u[n][S]||{offset:b,width:w.width},b+=w.width*(1+h)})}),u}var t=f;fe.exports=t},HjOm:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D={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"},N=D;z.default=N},Hw7h:function(fe,z,y){var D=y("y+Vt"),N=D.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(L,E){var I=Math.cos,o=Math.sin,m=E.r,f=E.width,s=E.angle,t=E.x-I(s)*f*(f>=m/3?1:2),l=E.y-o(s)*f*(f>=m/3?1:2);s=E.angle-Math.PI/2,L.moveTo(t,l),L.lineTo(E.x+I(s)*f,E.y+o(s)*f),L.lineTo(E.x+I(E.angle)*m,E.y+o(E.angle)*m),L.lineTo(E.x-I(s)*f,E.y-o(s)*f),L.lineTo(t,l);return}});fe.exports=N},Hxpc:function(fe,z,y){var D=y("bYtY"),N=y("4NO4"),L=y("bLfw"),E=y("Qxkt"),I=y("cCMj"),o=y("7uqq"),m=L.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(s){L.prototype.init.apply(this,arguments),N.defaultEmphasis(s,"label",["show"])},optionUpdated:function(){var s=this.option,t=this;s.regions=o.getFilledRegions(s.regions,s.map,s.nameMap),this._optionModelMap=D.reduce(s.regions||[],function(l,a){return a.name&&l.set(a.name,new E(a,t)),l},D.createHashMap()),this.updateSelectedMap(s.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(s){return this._optionModelMap.get(s)||new E(null,this,this.ecModel)},getFormattedLabel:function(s,t){var l=this.getRegionModel(s),a=l.get("label"+(t==="normal"?".":t+".")+"formatter"),r={name:s};if(typeof a=="function")return r.status=t,a(r);if(typeof a=="string")return a.replace("{a}",s!=null?s:"")},setZoom:function(s){this.option.zoom=s},setCenter:function(s){this.option.center=s}});D.mixin(m,I);var f=m;fe.exports=f},"I+77":function(fe,z,y){var D=y("ProS");y("h54F"),y("lwQL"),y("10cm");var N=y("Z1r0"),L=y("f5Yq"),E=y("KUOm"),I=y("3m61"),o=y("01d+"),m=y("rdor"),f=y("WGYa"),s=y("ewwo");D.registerProcessor(N),D.registerVisual(L("graph","circle",null)),D.registerVisual(E),D.registerVisual(I),D.registerLayout(o),D.registerLayout(D.PRIORITY.VISUAL.POST_CHART_LAYOUT,m),D.registerLayout(f),D.registerCoordinateSystem("graphView",{create:s})},"I+Bx":function(fe,z,y){var D=y("bYtY"),N=y("eIcI"),L=y("ieMj"),E=y("OELB"),I=y("aX7z"),o=I.getScaleExtent,m=I.niceScaleExtent,f=y("IDmD"),s=y("jCoz");function t(a,r,u){this._model=a,this.dimensions=[],this._indicatorAxes=D.map(a.getIndicatorModels(),function(e,n){var i="indicator_"+n,c=new N(i,e.get("axisType")==="log"?new s:new L);return c.name=e.get("name"),c.model=e,e.axis=c,this.dimensions.push(i),c},this),this.resize(a,u),this.cx,this.cy,this.r,this.r0,this.startAngle}t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(a,r){var u=this._indicatorAxes[r];return this.coordToPoint(u.dataToCoord(a),r)},t.prototype.coordToPoint=function(a,r){var u=this._indicatorAxes[r],e=u.angle,n=this.cx+a*Math.cos(e),i=this.cy-a*Math.sin(e);return[n,i]},t.prototype.pointToData=function(a){var r=a[0]-this.cx,u=a[1]-this.cy,e=Math.sqrt(r*r+u*u);r/=e,u/=e;for(var n=Math.atan2(-u,r),i=Infinity,c,d=-1,h=0;h<this._indicatorAxes.length;h++){var p=this._indicatorAxes[h],g=Math.abs(n-p.angle);g<i&&(c=p,d=h,i=g)}return[d,+(c&&c.coordToData(e))]},t.prototype.resize=function(a,r){var u=a.get("center"),e=r.getWidth(),n=r.getHeight(),i=Math.min(e,n)/2;this.cx=E.parsePercent(u[0],e),this.cy=E.parsePercent(u[1],n),this.startAngle=a.get("startAngle")*Math.PI/180;var c=a.get("radius");(typeof c=="string"||typeof c=="number")&&(c=[0,c]),this.r0=E.parsePercent(c[0],i),this.r=E.parsePercent(c[1],i),D.each(this._indicatorAxes,function(d,h){d.setExtent(this.r0,this.r);var p=this.startAngle+h*Math.PI*2/this._indicatorAxes.length;p=Math.atan2(Math.sin(p),Math.cos(p)),d.angle=p},this)},t.prototype.update=function(a,r){var u=this._indicatorAxes,e=this._model;D.each(u,function(c){c.scale.setExtent(Infinity,-Infinity)}),a.eachSeriesByType("radar",function(c,d){if(c.get("coordinateSystem")!=="radar"||a.getComponent("radar",c.get("radarIndex"))!==e)return;var h=c.getData();D.each(u,function(p){p.scale.unionExtentFromData(h,h.mapDimension(p.dim))})},this);var n=e.get("splitNumber");function i(c){var d=Math.pow(10,Math.floor(Math.log(c)/Math.LN10)),h=c/d;return h===2?h=5:h*=2,h*d}D.each(u,function(c,d){var h=o(c.scale,c.model).extent;m(c.scale,c.model);var p=c.model,g=c.scale,v=p.getMin(),A=p.getMax(),x=g.getInterval();if(v!=null&&A!=null)g.setExtent(+v,+A),g.setInterval((A-v)/n);else if(v!=null){var b;do b=v+x*n,g.setExtent(+v,b),g.setInterval(x),x=i(x);while(b<h[1]&&isFinite(b)&&isFinite(h[1]))}else if(A!=null){var w;do w=A-x*n,g.setExtent(w,+A),g.setInterval(x),x=i(x);while(w>h[0]&&isFinite(w)&&isFinite(h[0]))}else{var S=g.getTicks().length-1;S>n&&(x=i(x));var b=Math.ceil(h[1]/x)*x,w=E.round(b-x*n);g.setExtent(w,b),g.setInterval(x)}})},t.dimensions=[],t.create=function(a,r){var u=[];return a.eachComponent("radar",function(e){var n=new t(e,a,r);u.push(n),e.coordinateSystem=n}),a.eachSeriesByType("radar",function(e){e.get("coordinateSystem")==="radar"&&(e.coordinateSystem=u[e.get("radarIndex")||0])}),u},f.register("radar",t);var l=t;fe.exports=l},"I3/A":function(fe,z,y){var D=y("bYtY"),N=y("YXkt"),L=y("c2i1"),E=y("Mdki"),I=y("sdST"),o=y("IDmD"),m=y("MwEJ");function f(s,t,l,a,r){for(var u=new L(a),e=0;e<s.length;e++)u.addNode(D.retrieve(s[e].id,s[e].name,e),e);for(var n=[],i=[],c=0,e=0;e<t.length;e++){var d=t[e],h=d.source,p=d.target;u.addEdge(h,p,c)&&(i.push(d),n.push(D.retrieve(d.id,h+" > "+p)),c++)}var g=l.get("coordinateSystem"),v;if(g==="cartesian2d"||g==="polar")v=m(s,l);else{var A=o.get(g),x=A&&A.type!=="view"?A.dimensions||[]:[];D.indexOf(x,"value")<0&&x.concat(["value"]);var b=I(s,{coordDimensions:x});v=new N(b,l),v.initData(s)}var w=new N(["value"],l);return w.initData(i,n),r&&r(v,w),E({mainData:v,struct:u,structAttr:"graph",datas:{node:v,edge:w},datasAttr:{node:"data",edge:"edgeData"}}),u.update(),u}fe.exports=f},I8Z2:function(fe,z,y){"use strict";y.d(z,"a",function(){return E}),y.d(z,"b",function(){return r}),y.d(z,"c",function(){return e});var D=y("q1tI"),N=function(){var n=function(c,d){return n=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])},n(c,d)};return function(i,c){n(i,c);function d(){this.constructor=i}i.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}(),L=D.createContext(null),E=function(n){N(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.render=function(){return D.createElement(L.Provider,{value:this.props.store},this.props.children)},i}(D.Component),I=y("Gytx"),o=y.n(I),m=y("2mql"),f=y.n(m),s=function(){var n=function(c,d){return n=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])},n(c,d)};return function(i,c){n(i,c);function d(){this.constructor=i}i.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}}(),t=function(){return t=Object.assign||function(n){for(var i,c=1,d=arguments.length;c<d;c++){i=arguments[c];for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&(n[h]=i[h])}return n},t.apply(this,arguments)};function l(n){return n.displayName||n.name||"Component"}var a=function(){return{}};function r(n,i){i===void 0&&(i={});var c=!!n,d=n||a;return function(p){var g=function(A){s(x,A);function x(b,w){var S=A.call(this,b,w)||this;return S.unsubscribe=null,S.handleChange=function(){if(!S.unsubscribe)return;var T=d(S.store.getState(),S.props);S.setState({subscribed:T})},S.store=S.context,S.state={subscribed:d(S.store.getState(),b),store:S.store,props:b},S}return x.getDerivedStateFromProps=function(b,w){return n&&n.length===2&&b!==w.props?{subscribed:d(w.store.getState(),b),props:b}:{props:b}},x.prototype.componentDidMount=function(){this.trySubscribe()},x.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},x.prototype.shouldComponentUpdate=function(b,w){return!o()(this.props,b)||!o()(this.state.subscribed,w.subscribed)},x.prototype.trySubscribe=function(){c&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},x.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},x.prototype.render=function(){var b=t(t(t({},this.props),this.state.subscribed),{store:this.store});return D.createElement(p,t({},b,{ref:this.props.miniStoreForwardedRef}))},x.displayName="Connect("+l(p)+")",x.contextType=L,x}(D.Component);if(i.forwardRef){var v=D.forwardRef(function(A,x){return D.createElement(g,t({},A,{miniStoreForwardedRef:x}))});return f()(v,p)}return f()(g,p)}}var u=function(){return u=Object.assign||function(n){for(var i,c=1,d=arguments.length;c<d;c++){i=arguments[c];for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&(n[h]=i[h])}return n},u.apply(this,arguments)};function e(n){var i=n,c=[];function d(g){i=u(u({},i),g);for(var v=0;v<c.length;v++)c[v]()}function h(){return i}function p(g){return c.push(g),function(){var A=c.indexOf(g);c.splice(A,1)}}return{setState:d,getState:h,subscribe:p}}},"I9Y+":function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("4xFK")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="DoubleRightOutlined";var f=E.forwardRef(m);z.default=f},ICMv:function(fe,z,y){var D=y("bYtY"),N={getMin:function(L){var E=this.option,I=!L&&E.rangeStart!=null?E.rangeStart:E.min;return this.axis&&I!=null&&I!=="dataMin"&&typeof I!="function"&&!D.eqNaN(I)&&(I=this.axis.scale.parse(I)),I},getMax:function(L){var E=this.option,I=!L&&E.rangeEnd!=null?E.rangeEnd:E.max;return this.axis&&I!=null&&I!=="dataMax"&&typeof I!="function"&&!D.eqNaN(I)&&(I=this.axis.scale.parse(I)),I},getNeedCrossZero:function(){var L=this.option;return L.rangeStart!=null||L.rangeEnd!=null?!1:!L.scale},getCoordSysModel:D.noop,setRange:function(L,E){this.option.rangeStart=L,this.option.rangeEnd=E},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};fe.exports=N},IDmD:function(fe,z,y){var D=y("bYtY"),N={};function L(){this._coordinateSystems=[]}L.prototype={constructor:L,create:function(I,o){var m=[];D.each(N,function(f,s){var t=f.create(I,o);m=m.concat(t||[])}),this._coordinateSystems=m},update:function(I,o){D.each(this._coordinateSystems,function(m){m.update&&m.update(I,o)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},L.register=function(I,o){N[I]=o},L.get=function(I){return N[I]};var E=L;fe.exports=E},IMiH:function(fe,z,y){var D=y("Sj9i"),N=y("QBsz"),L=y("4mN7"),E=y("mFDi"),I=y("LPTA"),o=I.devicePixelRatio,m={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},f=[],s=[],t=[],l=[],a=Math.min,r=Math.max,u=Math.cos,e=Math.sin,n=Math.sqrt,i=Math.abs,c=typeof Float32Array!="undefined",d=function(g){this._saveData=!(g||!1),this._saveData&&(this.data=[]),this._ctx=null};d.prototype={constructor:d,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(g,v,A){A=A||0,this._ux=i(A/o/g)||0,this._uy=i(A/o/v)||0},getContext:function(){return this._ctx},beginPath:function(g){return this._ctx=g,g&&g.beginPath(),g&&(this.dpr=g.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(g,v){return this.addData(m.M,g,v),this._ctx&&this._ctx.moveTo(g,v),this._x0=g,this._y0=v,this._xi=g,this._yi=v,this},lineTo:function(g,v){var A=i(g-this._xi)>this._ux||i(v-this._yi)>this._uy||this._len<5;return this.addData(m.L,g,v),this._ctx&&A&&(this._needsDash()?this._dashedLineTo(g,v):this._ctx.lineTo(g,v)),A&&(this._xi=g,this._yi=v),this},bezierCurveTo:function(g,v,A,x,b,w){return this.addData(m.C,g,v,A,x,b,w),this._ctx&&(this._needsDash()?this._dashedBezierTo(g,v,A,x,b,w):this._ctx.bezierCurveTo(g,v,A,x,b,w)),this._xi=b,this._yi=w,this},quadraticCurveTo:function(g,v,A,x){return this.addData(m.Q,g,v,A,x),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(g,v,A,x):this._ctx.quadraticCurveTo(g,v,A,x)),this._xi=A,this._yi=x,this},arc:function(g,v,A,x,b,w){return this.addData(m.A,g,v,A,A,x,b-x,0,w?0:1),this._ctx&&this._ctx.arc(g,v,A,x,b,w),this._xi=u(b)*A+g,this._yi=e(b)*A+v,this},arcTo:function(g,v,A,x,b){return this._ctx&&this._ctx.arcTo(g,v,A,x,b),this},rect:function(g,v,A,x){return this._ctx&&this._ctx.rect(g,v,A,x),this.addData(m.R,g,v,A,x),this},closePath:function(){this.addData(m.Z);var g=this._ctx,v=this._x0,A=this._y0;return g&&(this._needsDash()&&this._dashedLineTo(v,A),g.closePath()),this._xi=v,this._yi=A,this},fill:function(g){g&&g.fill(),this.toStatic()},stroke:function(g){g&&g.stroke(),this.toStatic()},setLineDash:function(g){if(g instanceof Array){this._lineDash=g,this._dashIdx=0;for(var v=0,A=0;A<g.length;A++)v+=g[A];this._dashSum=v}return this},setLineDashOffset:function(g){return this._dashOffset=g,this},len:function(){return this._len},setData:function(g){var v=g.length;!(this.data&&this.data.length===v)&&c&&(this.data=new Float32Array(v));for(var A=0;A<v;A++)this.data[A]=g[A];this._len=v},appendPath:function(g){g instanceof Array||(g=[g]);for(var v=g.length,A=0,x=this._len,b=0;b<v;b++)A+=g[b].len();c&&this.data instanceof Float32Array&&(this.data=new Float32Array(x+A));for(var b=0;b<v;b++)for(var w=g[b].data,S=0;S<w.length;S++)this.data[x++]=w[S];this._len=x},addData:function(g){if(!this._saveData)return;var v=this.data;this._len+arguments.length>v.length&&(this._expandData(),v=this.data);for(var A=0;A<arguments.length;A++)v[this._len++]=arguments[A];this._prevCmd=g},_expandData:function(){if(!(this.data instanceof Array)){for(var g=[],v=0;v<this._len;v++)g[v]=this.data[v];this.data=g}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(g,v){var A=this._dashSum,x=this._dashOffset,b=this._lineDash,w=this._ctx,S=this._xi,T=this._yi,C=g-S,O=v-T,_=n(C*C+O*O),M=S,k=T,R,B=b.length,P;for(C/=_,O/=_,x<0&&(x=A+x),x%=A,M-=x*C,k-=x*O;C>0&&M<=g||C<0&&M>=g||C===0&&(O>0&&k<=v||O<0&&k>=v);){if(P=this._dashIdx,R=b[P],M+=C*R,k+=O*R,this._dashIdx=(P+1)%B,C>0&&M<S||C<0&&M>S||O>0&&k<T||O<0&&k>T)continue;w[P%2?"moveTo":"lineTo"](C>=0?a(M,g):r(M,g),O>=0?a(k,v):r(k,v))}C=M-g,O=k-v,this._dashOffset=-n(C*C+O*O)},_dashedBezierTo:function(g,v,A,x,b,w){var S=this._dashSum,T=this._dashOffset,C=this._lineDash,O=this._ctx,_=this._xi,M=this._yi,k,R,B,P=D.cubicAt,U=0,j=this._dashIdx,H=C.length,W,G,V=0;for(T<0&&(T=S+T),T%=S,k=0;k<1;k+=.1)R=P(_,g,A,b,k+.1)-P(_,g,A,b,k),B=P(M,v,x,w,k+.1)-P(M,v,x,w,k),U+=n(R*R+B*B);for(;j<H&&!(V+=C[j],V>T);j++);for(k=(V-T)/U;k<=1;)W=P(_,g,A,b,k),G=P(M,v,x,w,k),j%2?O.moveTo(W,G):O.lineTo(W,G),k+=C[j]/U,j=(j+1)%H;j%2!==0&&O.lineTo(b,w),R=b-W,B=w-G,this._dashOffset=-n(R*R+B*B)},_dashedQuadraticTo:function(g,v,A,x){var b=A,w=x;A=(A+2*g)/3,x=(x+2*v)/3,g=(this._xi+2*g)/3,v=(this._yi+2*v)/3,this._dashedBezierTo(g,v,A,x,b,w)},toStatic:function(){var g=this.data;g instanceof Array&&(g.length=this._len,c&&(this.data=new Float32Array(g)))},getBoundingRect:function(){f[0]=f[1]=t[0]=t[1]=Number.MAX_VALUE,s[0]=s[1]=l[0]=l[1]=-Number.MAX_VALUE;for(var g=this.data,v=0,A=0,x=0,b=0,w=0;w<g.length;){var S=g[w++];w===1&&(v=g[w],A=g[w+1],x=v,b=A);switch(S){case m.M:x=g[w++],b=g[w++],v=x,A=b,t[0]=x,t[1]=b,l[0]=x,l[1]=b;break;case m.L:L.fromLine(v,A,g[w],g[w+1],t,l),v=g[w++],A=g[w++];break;case m.C:L.fromCubic(v,A,g[w++],g[w++],g[w++],g[w++],g[w],g[w+1],t,l),v=g[w++],A=g[w++];break;case m.Q:L.fromQuadratic(v,A,g[w++],g[w++],g[w],g[w+1],t,l),v=g[w++],A=g[w++];break;case m.A:var T=g[w++],C=g[w++],O=g[w++],_=g[w++],M=g[w++],k=g[w++]+M;w+=1;var R=1-g[w++];w===1&&(x=u(M)*O+T,b=e(M)*_+C),L.fromArc(T,C,O,_,M,k,R,t,l),v=u(k)*O+T,A=e(k)*_+C;break;case m.R:x=v=g[w++],b=A=g[w++];var B=g[w++],P=g[w++];L.fromLine(x,b,x+B,b+P,t,l);break;case m.Z:v=x,A=b;break}N.min(f,f,t),N.max(s,s,l)}return w===0&&(f[0]=f[1]=s[0]=s[1]=0),new E(f[0],f[1],s[0]-f[0],s[1]-f[1])},rebuildPath:function(g){for(var v=this.data,A,x,b,w,S,T,C=this._ux,O=this._uy,_=this._len,M=0;M<_;){var k=v[M++];M===1&&(b=v[M],w=v[M+1],A=b,x=w);switch(k){case m.M:A=b=v[M++],x=w=v[M++],g.moveTo(b,w);break;case m.L:S=v[M++],T=v[M++],(i(S-b)>C||i(T-w)>O||M===_-1)&&(g.lineTo(S,T),b=S,w=T);break;case m.C:g.bezierCurveTo(v[M++],v[M++],v[M++],v[M++],v[M++],v[M++]),b=v[M-2],w=v[M-1];break;case m.Q:g.quadraticCurveTo(v[M++],v[M++],v[M++],v[M++]),b=v[M-2],w=v[M-1];break;case m.A:var R=v[M++],B=v[M++],P=v[M++],U=v[M++],j=v[M++],H=v[M++],W=v[M++],G=v[M++],V=P>U?P:U,Z=P>U?1:P/U,Y=P>U?U/P:1,Q=Math.abs(P-U)>.001,oe=j+H;Q?(g.translate(R,B),g.rotate(W),g.scale(Z,Y),g.arc(0,0,V,j,oe,1-G),g.scale(1/Z,1/Y),g.rotate(-W),g.translate(-R,-B)):g.arc(R,B,V,j,oe,1-G),M===1&&(A=u(j)*P+R,x=e(j)*U+B),b=u(oe)*P+R,w=e(oe)*U+B;break;case m.R:A=b=v[M],x=w=v[M+1],g.rect(v[M++],v[M++],v[M++],v[M++]);break;case m.Z:g.closePath(),b=A,w=x}}}},d.CMD=m;var h=d;fe.exports=h},IUWy:function(fe,z){var y={};function D(L,E){y[L]=E}function N(L){return y[L]}z.register=D,z.get=N},IWNH:function(fe,z,y){var D=y("T4UG"),N=y("Bsck"),L=y("7aKB"),E=L.encodeHTML,I=y("Qxkt"),o=D.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(m){var f={name:m.name,children:m.data},s=m.leaves||{},t=new I(s,this,this.ecModel),l=N.createTree(f,this,{},a);function a(n){n.wrapMethod("getItemModel",function(i,c){var d=l.getNodeByDataIndex(c);return(!d.children.length||!d.isExpand)&&(i.parentModel=t),i})}var r=0;l.eachNode("preorder",function(n){n.depth>r&&(r=n.depth)});var u=m.expandAndCollapse,e=u&&m.initialTreeDepth>=0?m.initialTreeDepth:r;return l.root.eachNode("preorder",function(n){var i=n.hostTree.data.getRawDataItem(n.dataIndex);n.isExpand=i&&i.collapsed!=null?!i.collapsed:n.depth<=e}),l.data},getOrient:function(){var m=this.get("orient");return m==="horizontal"?m="LR":m==="vertical"&&(m="TB"),m},setZoom:function(m){this.option.zoom=m},setCenter:function(m){this.option.center=m},formatTooltip:function(m){for(var f=this.getData().tree,s=f.root.children[0],t=f.getNodeByDataIndex(m),l=t.getValue(),a=t.name;t&&t!==s;)a=t.parentNode.name+"."+a,t=t.parentNode;return E(a+(isNaN(l)||l==null?"":" : "+l))},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}});fe.exports=o},IWp7:function(fe,z,y){var D=y("bYtY"),N=y("OELB"),L=y("7aKB"),E=y("lE7J"),I=y("ieMj"),o=I.prototype,m=Math.ceil,f=Math.floor,s=1e3,t=s*60,l=t*60,a=l*24,r=function(i,c,d,h){for(;d<h;){var p=d+h>>>1;i[p][1]<c?d=p+1:h=p}return d},u=I.extend({type:"time",getLabel:function(i){var c=this._stepLvl,d=new Date(i);return L.formatTime(c[0],d,this.getSetting("useUTC"))},niceExtent:function(i){var c=this._extent;if(c[0]===c[1]&&(c[0]-=a,c[1]+=a),c[1]===-Infinity&&c[0]===Infinity){var d=new Date;c[1]=+new Date(d.getFullYear(),d.getMonth(),d.getDate()),c[0]=c[1]-a}this.niceTicks(i.splitNumber,i.minInterval,i.maxInterval);var h=this._interval;i.fixMin||(c[0]=N.round(f(c[0]/h)*h)),i.fixMax||(c[1]=N.round(m(c[1]/h)*h))},niceTicks:function(i,c,d){i=i||10;var h=this._extent,p=h[1]-h[0],g=p/i;c!=null&&g<c&&(g=c),d!=null&&g>d&&(g=d);var v=e.length,A=r(e,g,0,v),x=e[Math.min(A,v-1)],b=x[1];if(x[0]==="year"){var w=p/b,S=N.nice(w/i,!0);b*=S}var T=this.getSetting("useUTC")?0:new Date(+h[0]||+h[1]).getTimezoneOffset()*60*1e3,C=[Math.round(m((h[0]-T)/b)*b+T),Math.round(f((h[1]-T)/b)*b+T)];E.fixExtent(C,h),this._stepLvl=x,this._interval=b,this._niceExtent=C},parse:function(i){return+N.parseDate(i)}});D.each(["contain","normalize"],function(i){u.prototype[i]=function(c){return o[i].call(this,this.parse(c))}});var e=[["hh:mm:ss",s],["hh:mm:ss",s*5],["hh:mm:ss",s*10],["hh:mm:ss",s*15],["hh:mm:ss",s*30],[`hh:mm
|
|
|
MM-dd`,t],[`hh:mm
|
|
|
MM-dd`,t*5],[`hh:mm
|
|
|
MM-dd`,t*10],[`hh:mm
|
|
|
MM-dd`,t*15],[`hh:mm
|
|
|
MM-dd`,t*30],[`hh:mm
|
|
|
MM-dd`,l],[`hh:mm
|
|
|
MM-dd`,l*2],[`hh:mm
|
|
|
MM-dd`,l*6],[`hh:mm
|
|
|
MM-dd`,l*12],[`MM-dd
|
|
|
yyyy`,a],[`MM-dd
|
|
|
yyyy`,a*2],[`MM-dd
|
|
|
yyyy`,a*3],[`MM-dd
|
|
|
yyyy`,a*4],[`MM-dd
|
|
|
yyyy`,a*5],[`MM-dd
|
|
|
yyyy`,a*6],["week",a*7],[`MM-dd
|
|
|
yyyy`,a*10],["week",a*14],["week",a*21],["month",a*31],["week",a*42],["month",a*62],["week",a*70],["quarter",a*95],["month",a*31*4],["month",a*31*5],["half-year",a*380/2],["month",a*31*8],["month",a*31*10],["year",a*380]];u.create=function(i){return new u({useUTC:i.ecModel.get("useUTC")})};var n=u;fe.exports=n},IXuL:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("MwEJ"),E=y("T4UG"),I=E.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(o,m){return L(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}});fe.exports=I},IXyC:function(fe,z,y){var D=y("bYtY"),N=y("bLfw");y("3zoK");var L=N.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(){N.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(E){var I=this.option;E&&D.merge(I,E,!0),this._initDimensions()},contains:function(E,I){var o=E.get("parallelIndex");return o!=null&&I.getComponent("parallel",o)===this},setAxisExpand:function(E){D.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(I){E.hasOwnProperty(I)&&(this.option[I]=E[I])},this)},_initDimensions:function(){var E=this.dimensions=[],I=this.parallelAxisIndex=[],o=D.filter(this.dependentModels.parallelAxis,function(m){return(m.get("parallelIndex")||0)===this.componentIndex},this);D.each(o,function(m){E.push("dim"+m.get("dim")),I.push(m.componentIndex)})}});fe.exports=L},Ib8C:function(fe,z,y){(function(D){(function(N,L){fe.exports=z=L()})(this,function(){var N=N||function(L,E){var I;if(typeof window!="undefined"&&window.crypto&&(I=window.crypto),typeof self!="undefined"&&self.crypto&&(I=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(I=globalThis.crypto),!I&&typeof window!="undefined"&&window.msCrypto&&(I=window.msCrypto),!I&&typeof D!="undefined"&&D.crypto&&(I=D.crypto),!I&&!0)try{I=y(4)}catch(d){}var o=function(){if(I){if(typeof I.getRandomValues=="function")try{return I.getRandomValues(new Uint32Array(1))[0]}catch(h){}if(typeof I.randomBytes=="function")try{return I.randomBytes(4).readInt32LE()}catch(h){}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function d(){}return function(h){var p;return d.prototype=h,p=new d,d.prototype=null,p}}(),f={},s=f.lib={},t=s.Base=function(){return{extend:function(h){var p=m(this);return h&&p.mixIn(h),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var p in h)h.hasOwnProperty(p)&&(this[p]=h[p]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=s.WordArray=t.extend({init:function(h,p){h=this.words=h||[],p!=E?this.sigBytes=p:this.sigBytes=h.length*4},toString:function(h){return(h||r).stringify(this)},concat:function(h){var p=this.words,g=h.words,v=this.sigBytes,A=h.sigBytes;if(this.clamp(),v%4)for(var x=0;x<A;x++){var b=g[x>>>2]>>>24-x%4*8&255;p[v+x>>>2]|=b<<24-(v+x)%4*8}else for(var w=0;w<A;w+=4)p[v+w>>>2]=g[w>>>2];return this.sigBytes+=A,this},clamp:function(){var h=this.words,p=this.sigBytes;h[p>>>2]&=4294967295<<32-p%4*8,h.length=L.ceil(p/4)},clone:function(){var h=t.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var p=[],g=0;g<h;g+=4)p.push(o());return new l.init(p,h)}}),a=f.enc={},r=a.Hex={stringify:function(h){for(var p=h.words,g=h.sigBytes,v=[],A=0;A<g;A++){var x=p[A>>>2]>>>24-A%4*8&255;v.push((x>>>4).toString(16)),v.push((x&15).toString(16))}return v.join("")},parse:function(h){for(var p=h.length,g=[],v=0;v<p;v+=2)g[v>>>3]|=parseInt(h.substr(v,2),16)<<24-v%8*4;return new l.init(g,p/2)}},u=a.Latin1={stringify:function(h){for(var p=h.words,g=h.sigBytes,v=[],A=0;A<g;A++){var x=p[A>>>2]>>>24-A%4*8&255;v.push(String.fromCharCode(x))}return v.join("")},parse:function(h){for(var p=h.length,g=[],v=0;v<p;v++)g[v>>>2]|=(h.charCodeAt(v)&255)<<24-v%4*8;return new l.init(g,p)}},e=a.Utf8={stringify:function(h){try{return decodeURIComponent(escape(u.stringify(h)))}catch(p){throw new Error("Malformed UTF-8 data")}},parse:function(h){return u.parse(unescape(encodeURIComponent(h)))}},n=s.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=e.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var p,g=this._data,v=g.words,A=g.sigBytes,x=this.blockSize,b=x*4,w=A/b;h?w=L.ceil(w):w=L.max((w|0)-this._minBufferSize,0);var S=w*x,T=L.min(S*4,A);if(S){for(var C=0;C<S;C+=x)this._doProcessBlock(v,C);p=v.splice(0,S),g.sigBytes-=T}return new l.init(p,T)},clone:function(){var h=t.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0}),i=s.Hasher=n.extend({cfg:t.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){n.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){h&&this._append(h);var p=this._doFinalize();return p},blockSize:512/32,_createHelper:function(h){return function(p,g){return new h.init(g).finalize(p)}},_createHmacHelper:function(h){return function(p,g){return new c.HMAC.init(h,g).finalize(p)}}}),c=f.algo={};return f}(Math);return N})}).call(this,y("yLpj"))},Iq15:function(fe,z,y){var D=y("nVVt"),N=y("dWSS"),L=y("dQei"),E={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},I={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G18:1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,G15_MASK:1<<14|1<<12|1<<10|1<<4|1<<1,getBCHTypeInfo:function(m){for(var f=m<<10;I.getBCHDigit(f)-I.getBCHDigit(I.G15)>=0;)f^=I.G15<<I.getBCHDigit(f)-I.getBCHDigit(I.G15);return(m<<10|f)^I.G15_MASK},getBCHTypeNumber:function(m){for(var f=m<<12;I.getBCHDigit(f)-I.getBCHDigit(I.G18)>=0;)f^=I.G18<<I.getBCHDigit(f)-I.getBCHDigit(I.G18);return m<<12|f},getBCHDigit:function(m){for(var f=0;m!=0;)f++,m>>>=1;return f},getPatternPosition:function(m){return I.PATTERN_POSITION_TABLE[m-1]},getMask:function(m,f,s){switch(m){case E.PATTERN000:return(f+s)%2==0;case E.PATTERN001:return f%2==0;case E.PATTERN010:return s%3==0;case E.PATTERN011:return(f+s)%3==0;case E.PATTERN100:return(Math.floor(f/2)+Math.floor(s/3))%2==0;case E.PATTERN101:return f*s%2+f*s%3==0;case E.PATTERN110:return(f*s%2+f*s%3)%2==0;case E.PATTERN111:return(f*s%3+(f+s)%2)%2==0;default:throw new Error("bad maskPattern:"+m)}},getErrorCorrectPolynomial:function(m){for(var f=new N([1],0),s=0;s<m;s++)f=f.multiply(new N([1,L.gexp(s)],0));return f},getLengthInBits:function(m,f){if(1<=f&&f<10)switch(m){case D.MODE_NUMBER:return 10;case D.MODE_ALPHA_NUM:return 9;case D.MODE_8BIT_BYTE:return 8;case D.MODE_KANJI:return 8;default:throw new Error("mode:"+m)}else if(f<27)switch(m){case D.MODE_NUMBER:return 12;case D.MODE_ALPHA_NUM:return 11;case D.MODE_8BIT_BYTE:return 16;case D.MODE_KANJI:return 10;default:throw new Error("mode:"+m)}else if(f<41)switch(m){case D.MODE_NUMBER:return 14;case D.MODE_ALPHA_NUM:return 13;case D.MODE_8BIT_BYTE:return 16;case D.MODE_KANJI:return 12;default:throw new Error("mode:"+m)}else throw new Error("type:"+f)},getLostPoint:function(m){for(var f=m.getModuleCount(),s=0,t=0;t<f;t++)for(var l=0;l<f;l++){for(var a=0,r=m.isDark(t,l),u=-1;u<=1;u++){if(t+u<0||f<=t+u)continue;for(var e=-1;e<=1;e++){if(l+e<0||f<=l+e)continue;if(u==0&&e==0)continue;r==m.isDark(t+u,l+e)&&a++}}a>5&&(s+=3+a-5)}for(var t=0;t<f-1;t++)for(var l=0;l<f-1;l++){var n=0;m.isDark(t,l)&&n++,m.isDark(t+1,l)&&n++,m.isDark(t,l+1)&&n++,m.isDark(t+1,l+1)&&n++,(n==0||n==4)&&(s+=3)}for(var t=0;t<f;t++)for(var l=0;l<f-6;l++)m.isDark(t,l)&&!m.isDark(t,l+1)&&m.isDark(t,l+2)&&m.isDark(t,l+3)&&m.isDark(t,l+4)&&!m.isDark(t,l+5)&&m.isDark(t,l+6)&&(s+=40);for(var l=0;l<f;l++)for(var t=0;t<f-6;t++)m.isDark(t,l)&&!m.isDark(t+1,l)&&m.isDark(t+2,l)&&m.isDark(t+3,l)&&m.isDark(t+4,l)&&!m.isDark(t+5,l)&&m.isDark(t+6,l)&&(s+=40);for(var i=0,l=0;l<f;l++)for(var t=0;t<f;t++)m.isDark(t,l)&&i++;var c=Math.abs(100*i/f/f-50)/5;return s+=c*10,s}};fe.exports=I},ItGF:function(fe,z){var y={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?y={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?y={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?y={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:y=N(navigator.userAgent);var D=y;function N(L){var E={},I={},o=L.match(/Firefox\/([\d.]+)/),m=L.match(/MSIE\s([\d.]+)/)||L.match(/Trident\/.+?rv:(([\d.]+))/),f=L.match(/Edge\/([\d.]+)/),s=/micromessenger/i.test(L);return o&&(I.firefox=!0,I.version=o[1]),m&&(I.ie=!0,I.version=m[1]),f&&(I.edge=!0,I.version=f[1]),s&&(I.weChat=!0),{browser:I,os:E,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!I.ie&&!I.edge,pointerEventsSupported:"onpointerdown"in window&&(I.edge||I.ie&&I.version>=11),domSupported:typeof document!="undefined"}}fe.exports=D},ItS6:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=y("eP3c"),N=L(y("1q3G"));function L(f){return f&&f.__esModule?f:{default:f}}function E(f,s){if(!(f instanceof s))throw new TypeError("Cannot call a class as a function")}function I(f,s){for(var t=0;t<s.length;t++){var l=s[t];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(f,l.key,l)}}function o(f,s,t){return s&&I(f.prototype,s),t&&I(f,t),f}var m=function(){function f(){E(this,f),this.strm=new N.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,D.inflateInit)(this.strm,this.windowBits)}return o(f,[{key:"setInput",value:function(t){t?(this.strm.input=t,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(t){t>this.chunkSize&&(this.chunkSize=t,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=t;var l=(0,D.inflate)(this.strm,0);if(l<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=t)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,D.inflateReset)(this.strm)}}]),f}();z.default=m},Itpr:function(fe,z,y){var D=y("+TT/");function N(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[e],i,c;i=n.pop();)if(c=i.children,i.isExpand&&c.length)for(var d=c.length,h=d-1;h>=0;h--){var p=c[h];p.hierNode={defaultAncestor:null,ancestor:p,prelim:0,modifier:0,change:0,shift:0,i:h,thread:null},n.push(p)}}function L(e,n){var i=e.isExpand?e.children:[],c=e.parentNode.children,d=e.hierNode.i?c[e.hierNode.i-1]:null;if(i.length){f(e);var h=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;d?(e.hierNode.prelim=d.hierNode.prelim+n(e,d),e.hierNode.modifier=e.hierNode.prelim-h):e.hierNode.prelim=h}else d&&(e.hierNode.prelim=d.hierNode.prelim+n(e,d));e.parentNode.hierNode.defaultAncestor=s(e,d,e.parentNode.hierNode.defaultAncestor||c[0],n)}function E(e){var n=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:n},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function I(e){return arguments.length?e:u}function o(e,n){var i={};return e-=Math.PI/2,i.x=n*Math.cos(e),i.y=n*Math.sin(e),i}function m(e,n){return D.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function f(e){for(var n=e.children,i=n.length,c=0,d=0;--i>=0;){var h=n[i];h.hierNode.prelim+=c,h.hierNode.modifier+=c,d+=h.hierNode.change,c+=h.hierNode.shift+d}}function s(e,n,i,c){if(n){for(var d=e,h=e,p=h.parentNode.children[0],g=n,v=d.hierNode.modifier,A=h.hierNode.modifier,x=p.hierNode.modifier,b=g.hierNode.modifier;g=t(g),h=l(h),g&&h;){d=t(d),p=l(p),d.hierNode.ancestor=e;var w=g.hierNode.prelim+b-h.hierNode.prelim-A+c(g,h);w>0&&(r(a(g,e,i),e,w),A+=w,v+=w),b+=g.hierNode.modifier,A+=h.hierNode.modifier,v+=d.hierNode.modifier,x+=p.hierNode.modifier}g&&!t(d)&&(d.hierNode.thread=g,d.hierNode.modifier+=b-v),h&&!l(p)&&(p.hierNode.thread=h,p.hierNode.modifier+=A-x,i=e)}return i}function t(e){var n=e.children;return n.length&&e.isExpand?n[n.length-1]:e.hierNode.thread}function l(e){var n=e.children;return n.length&&e.isExpand?n[0]:e.hierNode.thread}function a(e,n,i){return e.hierNode.ancestor.parentNode===n.parentNode?e.hierNode.ancestor:i}function r(e,n,i){var c=i/(n.hierNode.i-e.hierNode.i);n.hierNode.change-=c,n.hierNode.shift+=i,n.hierNode.modifier+=i,n.hierNode.prelim+=i,e.hierNode.change+=c}function u(e,n){return e.parentNode===n.parentNode?1:2}z.init=N,z.firstWalk=L,z.secondWalk=E,z.separation=I,z.radialCoordinate=o,z.getViewRect=m},IwbS:function(fe,z,y){var D=y("bYtY"),N=y("NC18"),L=y("Qe9p"),E=y("Fofx"),I=y("QBsz"),o=y("y+Vt"),m=y("DN4a"),f=y("Dagg");z.Image=f;var s=y("4fz+");z.Group=s;var t=y("dqUG");z.Text=t;var l=y("2fw6");z.Circle=l;var a=y("SqI9");z.Sector=a;var r=y("RXMa");z.Ring=r;var u=y("h7HQ");z.Polygon=u;var e=y("1Jh7");z.Polyline=e;var n=y("x6Kt");z.Rect=n;var i=y("yxFR");z.Line=i;var c=y("rA99");z.BezierCurve=c;var d=y("jTL6");z.Arc=d;var h=y("1MYJ");z.CompoundPath=h;var p=y("SKnc");z.LinearGradient=p;var g=y("3e3G");z.RadialGradient=g;var v=y("mFDi");z.BoundingRect=v;var A=y("OS9S");z.IncrementalDisplayable=A;var x=y("nPnh"),b=Math.max,w=Math.min,S={},T=1,C={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},O="emphasis",_="normal",M=1,k={},R={};function B(lt){return o.extend(lt)}function P(lt,qe){return N.extendFromString(lt,qe)}function U(lt,qe){R[lt]=qe}function j(lt){if(R.hasOwnProperty(lt))return R[lt]}function H(lt,qe,tr,xr){var Ar=N.createFromString(lt,qe);return tr&&(xr==="center"&&(tr=G(tr,Ar.getBoundingRect())),Z(Ar,tr)),Ar}function W(lt,qe,tr){var xr=new f({style:{image:lt,x:qe.x,y:qe.y,width:qe.width,height:qe.height},onload:function(Ar){if(tr==="center"){var fr={width:Ar.width,height:Ar.height};xr.setStyle(G(qe,fr))}}});return xr}function G(lt,qe){var tr=qe.width/qe.height,xr=lt.height*tr,Ar;xr<=lt.width?Ar=lt.height:(xr=lt.width,Ar=xr/tr);var fr=lt.x+lt.width/2,vn=lt.y+lt.height/2;return{x:fr-xr/2,y:vn-Ar/2,width:xr,height:Ar}}var V=N.mergePath;function Z(lt,qe){if(!lt.applyTransform)return;var tr=lt.getBoundingRect(),xr=tr.calculateTransform(qe);lt.applyTransform(xr)}function Y(lt){return x.subPixelOptimizeLine(lt.shape,lt.shape,lt.style),lt}function Q(lt){return x.subPixelOptimizeRect(lt.shape,lt.shape,lt.style),lt}var oe=x.subPixelOptimize;function ue(lt){return lt!=null&<!=="none"}var Le=D.createHashMap(),me=0;function Ie(lt){if(typeof lt!="string")return lt;var qe=Le.get(lt);return qe||(qe=L.lift(lt,-.1),me<1e4&&(Le.set(lt,qe),me++)),qe}function X(lt){if(!lt.__hoverStlDirty)return;lt.__hoverStlDirty=!1;var qe=lt.__hoverStl;if(!qe){lt.__cachedNormalStl=lt.__cachedNormalZ2=null;return}var tr=lt.__cachedNormalStl={};lt.__cachedNormalZ2=lt.z2;var xr=lt.style;for(var Ar in qe)qe[Ar]!=null&&(tr[Ar]=xr[Ar]);tr.fill=xr.fill,tr.stroke=xr.stroke}function q(lt){var qe=lt.__hoverStl;if(!qe||lt.__highlighted)return;var tr=lt.__zr,xr=lt.useHoverLayer&&tr&&tr.painter.type==="canvas";if(lt.__highlighted=xr?"layer":"plain",lt.isGroup||!tr&<.useHoverLayer)return;var Ar=lt,fr=lt.style;xr&&(Ar=tr.addHover(lt),fr=Ar.style),Et(fr),xr||X(Ar),fr.extendFrom(qe),We(fr,qe,"fill"),We(fr,qe,"stroke"),St(fr),xr||(lt.dirty(!1),lt.z2+=T)}function We(lt,qe,tr){!ue(qe[tr])&&ue(lt[tr])&&(lt[tr]=Ie(lt[tr]))}function $(lt){var qe=lt.__highlighted;if(!qe)return;if(lt.__highlighted=!1,lt.isGroup)return;if(qe==="layer")lt.__zr&<.__zr.removeHover(lt);else{var tr=lt.style,xr=lt.__cachedNormalStl;xr&&(Et(tr),lt.setStyle(xr),St(tr));var Ar=lt.__cachedNormalZ2;Ar!=null&<.z2-Ar===T&&(lt.z2=Ar)}}function J(lt,qe,tr){var xr=_,Ar=_,fr;lt.__highlighted&&(xr=O,fr=!0),qe(lt,tr),lt.__highlighted&&(Ar=O,fr=!0),lt.isGroup&<.traverse(function(vn){!vn.isGroup&&qe(vn,tr)}),fr&<.__highDownOnUpdate&<.__highDownOnUpdate(xr,Ar)}function le(lt,qe){qe=lt.__hoverStl=qe!==!1&&(lt.hoverStyle||qe||{}),lt.__hoverStlDirty=!0,lt.__highlighted&&(lt.__cachedNormalStl=null,$(lt),q(lt))}function de(lt){!Ee(this,lt)&&!this.__highByOuter&&J(this,q)}function Ne(lt){!Ee(this,lt)&&!this.__highByOuter&&J(this,$)}function we(lt){this.__highByOuter|=1<<(lt||0),J(this,q)}function De(lt){!(this.__highByOuter&=~(1<<(lt||0)))&&J(this,$)}function Ee(lt,qe){return lt.__highDownSilentOnTouch&&qe.zrByTouch}function ce(lt,qe){ne(lt,!0),J(lt,le,qe)}function ne(lt,qe){var tr=qe===!1;if(lt.__highDownSilentOnTouch=lt.highDownSilentOnTouch,lt.__highDownOnUpdate=lt.highDownOnUpdate,!tr||lt.__highDownDispatcher){var xr=tr?"off":"on";lt[xr]("mouseover",de)[xr]("mouseout",Ne),lt[xr]("emphasis",we)[xr]("normal",De),lt.__highByOuter=lt.__highByOuter||0,lt.__highDownDispatcher=!tr}}function ee(lt){return!!(lt&<.__highDownDispatcher)}function Ae(lt){var qe=k[lt];return qe==null&&M<=32&&(qe=k[lt]=M++),qe}function Ve(lt,qe,tr,xr,Ar,fr,vn){Ar=Ar||S;var $r=Ar.labelFetcher,Ln=Ar.labelDataIndex,tt=Ar.labelDimIndex,nt=Ar.labelProp,Te=tr.getShallow("show"),Me=xr.getShallow("show"),Xe;(Te||Me)&&($r&&(Xe=$r.getFormattedLabel(Ln,"normal",null,tt,nt)),Xe==null&&(Xe=D.isFunction(Ar.defaultText)?Ar.defaultText(Ln,Ar):Ar.defaultText));var at=Te?Xe:null,zt=Me?D.retrieve2($r?$r.getFormattedLabel(Ln,"emphasis",null,tt,nt):null,Xe):null;(at!=null||zt!=null)&&(Oe(lt,tr,fr,Ar),Oe(qe,xr,vn,Ar,!0)),lt.text=at,qe.text=zt}function Ke(lt,qe,tr){var xr=lt.style;qe&&(Et(xr),lt.setStyle(qe),St(xr)),xr=lt.__hoverStl,tr&&xr&&(Et(xr),D.extend(xr,tr),St(xr))}function Oe(lt,qe,tr,xr,Ar){return Fe(lt,qe,xr,Ar),tr&&D.extend(lt,tr),lt}function it(lt,qe,tr){var xr={isRectText:!0},Ar;tr===!1?Ar=!0:xr.autoColor=tr,Fe(lt,qe,xr,Ar)}function Fe(lt,qe,tr,xr){if(tr=tr||S,tr.isRectText){var Ar;tr.getTextPosition?Ar=tr.getTextPosition(qe,xr):(Ar=qe.getShallow("position")||(xr?null:"inside"),Ar==="outside"&&(Ar="top")),lt.textPosition=Ar,lt.textOffset=qe.getShallow("offset");var fr=qe.getShallow("rotate");fr!=null&&(fr*=Math.PI/180),lt.textRotation=fr,lt.textDistance=D.retrieve2(qe.getShallow("distance"),xr?null:5)}var vn=qe.ecModel,$r=vn&&vn.option.textStyle,Ln=ft(qe),tt;if(Ln){tt={};for(var nt in Ln)if(Ln.hasOwnProperty(nt)){var Te=qe.getModel(["rich",nt]);At(tt[nt]={},Te,$r,tr,xr)}}return lt.rich=tt,At(lt,qe,$r,tr,xr,!0),tr.forceRich&&!tr.textStyle&&(tr.textStyle={}),lt}function ft(lt){for(var qe;lt&<!==lt.ecModel;){var tr=(lt.option||S).rich;if(tr){qe=qe||{};for(var xr in tr)tr.hasOwnProperty(xr)&&(qe[xr]=1)}lt=lt.parentModel}return qe}function At(lt,qe,tr,xr,Ar,fr){tr=!Ar&&tr||S,lt.textFill=bt(qe.getShallow("color"),xr)||tr.color,lt.textStroke=bt(qe.getShallow("textBorderColor"),xr)||tr.textBorderColor,lt.textStrokeWidth=D.retrieve2(qe.getShallow("textBorderWidth"),tr.textBorderWidth),Ar||(fr&&(lt.insideRollbackOpt=xr,St(lt)),lt.textFill==null&&(lt.textFill=xr.autoColor)),lt.fontStyle=qe.getShallow("fontStyle")||tr.fontStyle,lt.fontWeight=qe.getShallow("fontWeight")||tr.fontWeight,lt.fontSize=qe.getShallow("fontSize")||tr.fontSize,lt.fontFamily=qe.getShallow("fontFamily")||tr.fontFamily,lt.textAlign=qe.getShallow("align"),lt.textVerticalAlign=qe.getShallow("verticalAlign")||qe.getShallow("baseline"),lt.textLineHeight=qe.getShallow("lineHeight"),lt.textWidth=qe.getShallow("width"),lt.textHeight=qe.getShallow("height"),lt.textTag=qe.getShallow("tag"),(!fr||!xr.disableBox)&&(lt.textBackgroundColor=bt(qe.getShallow("backgroundColor"),xr),lt.textPadding=qe.getShallow("padding"),lt.textBorderColor=bt(qe.getShallow("borderColor"),xr),lt.textBorderWidth=qe.getShallow("borderWidth"),lt.textBorderRadius=qe.getShallow("borderRadius"),lt.textBoxShadowColor=qe.getShallow("shadowColor"),lt.textBoxShadowBlur=qe.getShallow("shadowBlur"),lt.textBoxShadowOffsetX=qe.getShallow("shadowOffsetX"),lt.textBoxShadowOffsetY=qe.getShallow("shadowOffsetY")),lt.textShadowColor=qe.getShallow("textShadowColor")||tr.textShadowColor,lt.textShadowBlur=qe.getShallow("textShadowBlur")||tr.textShadowBlur,lt.textShadowOffsetX=qe.getShallow("textShadowOffsetX")||tr.textShadowOffsetX,lt.textShadowOffsetY=qe.getShallow("textShadowOffsetY")||tr.textShadowOffsetY}function bt(lt,qe){return lt!=="auto"?lt:qe&&qe.autoColor?qe.autoColor:null}function St(lt){var qe=lt.textPosition,tr=lt.insideRollbackOpt,xr;if(tr&<.textFill==null){var Ar=tr.autoColor,fr=tr.isRectText,vn=tr.useInsideStyle,$r=vn!==!1&&(vn===!0||fr&&qe&&typeof qe=="string"&&qe.indexOf("inside")>=0),Ln=!$r&&Ar!=null;($r||Ln)&&(xr={textFill:lt.textFill,textStroke:lt.textStroke,textStrokeWidth:lt.textStrokeWidth}),$r&&(lt.textFill="#fff",lt.textStroke==null&&(lt.textStroke=Ar,lt.textStrokeWidth==null&&(lt.textStrokeWidth=2))),Ln&&(lt.textFill=Ar)}lt.insideRollback=xr}function Et(lt){var qe=lt.insideRollback;qe&&(lt.textFill=qe.textFill,lt.textStroke=qe.textStroke,lt.textStrokeWidth=qe.textStrokeWidth,lt.insideRollback=null)}function je(lt,qe){var tr=qe&&qe.getModel("textStyle");return D.trim([lt.fontStyle||tr&&tr.getShallow("fontStyle")||"",lt.fontWeight||tr&&tr.getShallow("fontWeight")||"",(lt.fontSize||tr&&tr.getShallow("fontSize")||12)+"px",lt.fontFamily||tr&&tr.getShallow("fontFamily")||"sans-serif"].join(" "))}function pe(lt,qe,tr,xr,Ar,fr){typeof Ar=="function"&&(fr=Ar,Ar=null);var vn=xr&&xr.isAnimationEnabled();if(vn){var $r=lt?"Update":"",Ln=xr.getShallow("animationDuration"+$r),tt=xr.getShallow("animationEasing"+$r),nt=xr.getShallow("animationDelay"+$r);typeof nt=="function"&&(nt=nt(Ar,xr.getAnimationDelayParams?xr.getAnimationDelayParams(qe,Ar):null)),typeof Ln=="function"&&(Ln=Ln(Ar)),Ln>0?qe.animateTo(tr,Ln,nt||0,tt,fr,!!fr):(qe.stopAnimation(),qe.attr(tr),fr&&fr())}else qe.stopAnimation(),qe.attr(tr),fr&&fr()}function ie(lt,qe,tr,xr,Ar){pe(!0,lt,qe,tr,xr,Ar)}function st(lt,qe,tr,xr,Ar){pe(!1,lt,qe,tr,xr,Ar)}function Qe(lt,qe){for(var tr=E.identity([]);lt&<!==qe;)E.mul(tr,lt.getLocalTransform(),tr),lt=lt.parent;return tr}function ve(lt,qe,tr){return qe&&!D.isArrayLike(qe)&&(qe=m.getLocalTransform(qe)),tr&&(qe=E.invert([],qe)),I.applyTransform([],lt,qe)}function Bt(lt,qe,tr){var xr=qe[4]===0||qe[5]===0||qe[0]===0?1:Math.abs(2*qe[4]/qe[0]),Ar=qe[4]===0||qe[5]===0||qe[2]===0?1:Math.abs(2*qe[4]/qe[2]),fr=[lt==="left"?-xr:lt==="right"?xr:0,lt==="top"?-Ar:lt==="bottom"?Ar:0];return fr=ve(fr,qe,tr),Math.abs(fr[0])>Math.abs(fr[1])?fr[0]>0?"right":"left":fr[1]>0?"bottom":"top"}function qt(lt,qe,tr,xr){if(!lt||!qe)return;function Ar($r){var Ln={};return $r.traverse(function(tt){!tt.isGroup&&tt.anid&&(Ln[tt.anid]=tt)}),Ln}function fr($r){var Ln={position:I.clone($r.position),rotation:$r.rotation};return $r.shape&&(Ln.shape=D.extend({},$r.shape)),Ln}var vn=Ar(lt);qe.traverse(function($r){if(!$r.isGroup&&$r.anid){var Ln=vn[$r.anid];if(Ln){var tt=fr($r);$r.attr(fr(Ln)),ie($r,tt,tr,$r.dataIndex)}}})}function ct(lt,qe){return D.map(lt,function(tr){var xr=tr[0];xr=b(xr,qe.x),xr=w(xr,qe.x+qe.width);var Ar=tr[1];return Ar=b(Ar,qe.y),Ar=w(Ar,qe.y+qe.height),[xr,Ar]})}function Wt(lt,qe){var tr=b(lt.x,qe.x),xr=w(lt.x+lt.width,qe.x+qe.width),Ar=b(lt.y,qe.y),fr=w(lt.y+lt.height,qe.y+qe.height);if(xr>=tr&&fr>=Ar)return{x:tr,y:Ar,width:xr-tr,height:fr-Ar}}function or(lt,qe,tr){qe=D.extend({rectHover:!0},qe);var xr=qe.style={strokeNoScale:!0};if(tr=tr||{x:-1,y:-1,width:2,height:2},lt)return lt.indexOf("image://")===0?(xr.image=lt.slice(8),D.defaults(xr,tr),new f(qe)):H(lt.replace("path://",""),qe,tr,"center")}function Fr(lt,qe,tr,xr,Ar){for(var fr=0,vn=Ar[Ar.length-1];fr<Ar.length;fr++){var $r=Ar[fr];if(er(lt,qe,tr,xr,$r[0],$r[1],vn[0],vn[1]))return!0;vn=$r}}function er(lt,qe,tr,xr,Ar,fr,vn,$r){var Ln=tr-lt,tt=xr-qe,nt=vn-Ar,Te=$r-fr,Me=nr(nt,Te,Ln,tt);if(Ot(Me))return!1;var Xe=lt-Ar,at=qe-fr,zt=nr(Xe,at,Ln,tt)/Me;if(zt<0||zt>1)return!1;var kt=nr(Xe,at,nt,Te)/Me;return!(kt<0||kt>1)}function nr(lt,qe,tr,xr){return lt*xr-tr*qe}function Ot(lt){return lt<=1e-6&<>=-1e-6}U("circle",l),U("sector",a),U("ring",r),U("polygon",u),U("polyline",e),U("rect",n),U("line",i),U("bezierCurve",c),U("arc",d),z.Z2_EMPHASIS_LIFT=T,z.CACHED_LABEL_STYLE_PROPERTIES=C,z.extendShape=B,z.extendPath=P,z.registerShape=U,z.getShapeClass=j,z.makePath=H,z.makeImage=W,z.mergePath=V,z.resizePath=Z,z.subPixelOptimizeLine=Y,z.subPixelOptimizeRect=Q,z.subPixelOptimize=oe,z.setElementHoverStyle=le,z.setHoverStyle=ce,z.setAsHighDownDispatcher=ne,z.isHighDownDispatcher=ee,z.getHighlightDigit=Ae,z.setLabelStyle=Ve,z.modifyLabelStyle=Ke,z.setTextStyle=Oe,z.setText=it,z.getFont=je,z.updateProps=ie,z.initProps=st,z.getTransform=Qe,z.applyTransform=ve,z.transformDirection=Bt,z.groupTransition=qt,z.clipPointsByRect=ct,z.clipRectByRect=Wt,z.createIcon=or,z.linePolygonIntersect=Fr,z.lineLineIntersect=er},IyUQ:function(fe,z,y){var D=y("bYtY"),N=y("YH21"),L=y("IwbS"),E=y("iLNv"),I=y("fc+c"),o=y("OELB"),m=y("+TT/"),f=y("72pK"),s=L.Rect,t=o.linearMap,l=o.asc,a=D.bind,r=D.each,u=7,e=1,n=30,i="horizontal",c="vertical",d=5,h=["line","bar","candlestick","scatter"],p=I.extend({type:"dataZoom.slider",init:function(x,b){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=b},render:function(x,b,w,S){if(p.superApply(this,"render",arguments),E.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=x.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!S||S.type!=="dataZoom"||S.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){p.superApply(this,"remove",arguments),E.clear(this,"_dispatchZoomAction")},dispose:function(){p.superApply(this,"dispose",arguments),E.clear(this,"_dispatchZoomAction")},_buildView:function(){var x=this.group;x.removeAll(),this._resetLocation(),this._resetInterval();var b=this._displayables.barGroup=new L.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),x.add(b),this._positionGroup()},_resetLocation:function(){var x=this.dataZoomModel,b=this.api,w=this._findCoordRect(),S={width:b.getWidth(),height:b.getHeight()},T=this._orient===i?{right:S.width-w.x-w.width,top:S.height-n-u,width:w.width,height:n}:{right:u,top:w.y,width:n,height:w.height},C=m.getLayoutParams(x.option);D.each(["right","top","width","height"],function(_){C[_]==="ph"&&(C[_]=T[_])});var O=m.getLayoutRect(C,S,x.padding);this._location={x:O.x,y:O.y},this._size=[O.width,O.height],this._orient===c&&this._size.reverse()},_positionGroup:function(){var x=this.group,b=this._location,w=this._orient,S=this.dataZoomModel.getFirstTargetAxisModel(),T=S&&S.get("inverse"),C=this._displayables.barGroup,O=(this._dataShadowInfo||{}).otherAxisInverse;C.attr(w===i&&!T?{scale:O?[1,1]:[1,-1]}:w===i&&T?{scale:O?[-1,1]:[-1,-1]}:w===c&&!T?{scale:O?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:O?[-1,-1]:[-1,1],rotation:Math.PI/2});var _=x.getBoundingRect([C]);x.attr("position",[b.x-_.x,b.y-_.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var x=this.dataZoomModel,b=this._size,w=this._displayables.barGroup;w.add(new s({silent:!0,shape:{x:0,y:0,width:b[0],height:b[1]},style:{fill:x.get("backgroundColor")},z2:-40})),w.add(new s({shape:{x:0,y:0,width:b[0],height:b[1]},style:{fill:"transparent"},z2:0,onclick:D.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var x=this._dataShadowInfo=this._prepareDataShadowInfo();if(!x)return;var b=this._size,w=x.series,S=w.getRawData(),T=w.getShadowDim?w.getShadowDim():x.otherDim;if(T==null)return;var C=S.getDataExtent(T),O=(C[1]-C[0])*.3;C=[C[0]-O,C[1]+O];var _=[0,b[1]],M=[0,b[0]],k=[[b[0],0],[0,0]],R=[],B=M[1]/(S.count()-1),P=0,U=Math.round(S.count()/b[0]),j;S.each([T],function(W,G){if(U>0&&G%U){P+=B;return}var V=W==null||isNaN(W)||W==="",Z=V?0:t(W,C,_,!0);V&&!j&&G?(k.push([k[k.length-1][0],0]),R.push([R[R.length-1][0],0])):!V&&j&&(k.push([P,0]),R.push([P,0])),k.push([P,Z]),R.push([P,Z]),P+=B,j=V});var H=this.dataZoomModel;this._displayables.barGroup.add(new L.Polygon({shape:{points:k},style:D.defaults({fill:H.get("dataBackgroundColor")},H.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new L.Polyline({shape:{points:R},style:H.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var x=this.dataZoomModel,b=x.get("showDataShadow");if(b===!1)return;var w,S=this.ecModel;return x.eachTargetAxis(function(T,C){var O=x.getAxisProxy(T.name,C).getTargetSeriesModels();D.each(O,function(_){if(w)return;if(b!==!0&&D.indexOf(h,_.get("type"))<0)return;var M=S.getComponent(T.axis,C).axis,k=g(T.name),R,B=_.coordinateSystem;k!=null&&B.getOtherAxis&&(R=B.getOtherAxis(M).inverse),k=_.getData().mapDimension(k),w={thisAxis:M,series:_,thisDim:T.name,otherDim:k,otherAxisInverse:R}},this)},this),w},_renderHandle:function(){var x=this._displayables,b=x.handles=[],w=x.handleLabels=[],S=this._displayables.barGroup,T=this._size,C=this.dataZoomModel;S.add(x.filler=new s({draggable:!0,cursor:v(this._orient),drift:a(this._onDragMove,this,"all"),ondragstart:a(this._showDataInfo,this,!0),ondragend:a(this._onDragEnd,this),onmouseover:a(this._showDataInfo,this,!0),onmouseout:a(this._showDataInfo,this,!1),style:{fill:C.get("fillerColor"),textPosition:"inside"}})),S.add(new s({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:T[0],height:T[1]},style:{stroke:C.get("dataBackgroundColor")||C.get("borderColor"),lineWidth:e,fill:"rgba(0,0,0,0)"}})),r([0,1],function(O){var _=L.createIcon(C.get("handleIcon"),{cursor:v(this._orient),draggable:!0,drift:a(this._onDragMove,this,O),ondragend:a(this._onDragEnd,this),onmouseover:a(this._showDataInfo,this,!0),onmouseout:a(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),M=_.getBoundingRect();this._handleHeight=o.parsePercent(C.get("handleSize"),this._size[1]),this._handleWidth=M.width/M.height*this._handleHeight,_.setStyle(C.getModel("handleStyle").getItemStyle());var k=C.get("handleColor");k!=null&&(_.style.fill=k),S.add(b[O]=_);var R=C.textStyleModel;this.group.add(w[O]=new L.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:R.getTextColor(),textFont:R.getFont()},z2:10}))},this)},_resetInterval:function(){var x=this._range=this.dataZoomModel.getPercentRange(),b=this._getViewExtent();this._handleEnds=[t(x[0],[0,100],b,!0),t(x[1],[0,100],b,!0)]},_updateInterval:function(x,b){var w=this.dataZoomModel,S=this._handleEnds,T=this._getViewExtent(),C=w.findRepresentativeAxisProxy().getMinMaxSpan(),O=[0,100];f(b,S,T,w.get("zoomLock")?"all":x,C.minSpan!=null?t(C.minSpan,O,T,!0):null,C.maxSpan!=null?t(C.maxSpan,O,T,!0):null);var _=this._range,M=this._range=l([t(S[0],T,O,!0),t(S[1],T,O,!0)]);return!_||_[0]!==M[0]||_[1]!==M[1]},_updateView:function(x){var b=this._displayables,w=this._handleEnds,S=l(w.slice()),T=this._size;r([0,1],function(C){var O=b.handles[C],_=this._handleHeight;O.attr({scale:[_/2,_/2],position:[w[C],T[1]/2-_/2]})},this),b.filler.setShape({x:S[0],y:0,width:S[1]-S[0],height:T[1]}),this._updateDataInfo(x)},_updateDataInfo:function(x){var b=this.dataZoomModel,w=this._displayables,S=w.handleLabels,T=this._orient,C=["",""];if(b.get("showDetail")){var O=b.findRepresentativeAxisProxy();if(O){var _=O.getAxisModel().axis,M=this._range,k=x?O.calculateDataWindow({start:M[0],end:M[1]}).valueWindow:O.getDataValueWindow();C=[this._formatLabel(k[0],_),this._formatLabel(k[1],_)]}}var R=l(this._handleEnds.slice());B.call(this,0),B.call(this,1);function B(P){var U=L.getTransform(w.handles[P].parent,this.group),j=L.transformDirection(P===0?"right":"left",U),H=this._handleWidth/2+d,W=L.applyTransform([R[P]+(P===0?-H:H),this._size[1]/2],U);S[P].setStyle({x:W[0],y:W[1],textVerticalAlign:T===i?"middle":j,textAlign:T===i?j:"center",text:C[P]})}},_formatLabel:function(x,b){var w=this.dataZoomModel,S=w.get("labelFormatter"),T=w.get("labelPrecision");(T==null||T==="auto")&&(T=b.getPixelPrecision());var C=x==null||isNaN(x)?"":b.type==="category"||b.type==="time"?b.scale.getLabel(Math.round(x)):x.toFixed(Math.min(T,20));return D.isFunction(S)?S(x,C):D.isString(S)?S.replace("{value}",C):C},_showDataInfo:function(x){x=this._dragging||x;var b=this._displayables.handleLabels;b[0].attr("invisible",!x),b[1].attr("invisible",!x)},_onDragMove:function(x,b,w,S){this._dragging=!0,N.stop(S.event);var T=this._displayables.barGroup.getLocalTransform(),C=L.applyTransform([b,w],T,!0),O=this._updateInterval(x,C[0]),_=this.dataZoomModel.get("realtime");this._updateView(!_),O&&_&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var x=this.dataZoomModel.get("realtime");!x&&this._dispatchZoomAction()},_onClickPanelClick:function(x){var b=this._size,w=this._displayables.barGroup.transformCoordToLocal(x.offsetX,x.offsetY);if(w[0]<0||w[0]>b[0]||w[1]<0||w[1]>b[1])return;var S=this._handleEnds,T=(S[0]+S[1])/2,C=this._updateInterval("all",w[0]-T);this._updateView(),C&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var x=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:x[0],end:x[1]})},_findCoordRect:function(){var x;if(r(this.getTargetCoordInfo(),function(S){if(!x&&S.length){var T=S[0].model.coordinateSystem;x=T.getRect&&T.getRect()}}),!x){var b=this.api.getWidth(),w=this.api.getHeight();x={x:b*.2,y:w*.2,width:b*.6,height:w*.6}}return x}});function g(x){var b={x:"y",y:"x",radius:"angle",angle:"radius"};return b[x]}function v(x){return x==="vertical"?"ns-resize":"ew-resize"}var A=p;fe.exports=A},IzEo:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("lnY3"),E=y.n(L),I=y("Znn+"),o=y("14J3"),m=y("jCWc")},J66h:function(fe,z,y){(function(D){var N,L;(function(E,I){fe.exports=I(E)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof D!="undefined"?D:this,function(E){"use strict";E=E||{};var I=E.Base64,o="2.6.4",m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=function(_){for(var M={},k=0,R=_.length;k<R;k++)M[_.charAt(k)]=k;return M}(m),s=String.fromCharCode,t=function(M){if(M.length<2){var k=M.charCodeAt(0);return k<128?M:k<2048?s(192|k>>>6)+s(128|k&63):s(224|k>>>12&15)+s(128|k>>>6&63)+s(128|k&63)}else{var k=65536+(M.charCodeAt(0)-55296)*1024+(M.charCodeAt(1)-56320);return s(240|k>>>18&7)+s(128|k>>>12&63)+s(128|k>>>6&63)+s(128|k&63)}},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,a=function(M){return M.replace(l,t)},r=function(M){var k=[0,2,1][M.length%3],R=M.charCodeAt(0)<<16|(M.length>1?M.charCodeAt(1):0)<<8|(M.length>2?M.charCodeAt(2):0),B=[m.charAt(R>>>18),m.charAt(R>>>12&63),k>=2?"=":m.charAt(R>>>6&63),k>=1?"=":m.charAt(R&63)];return B.join("")},u=E.btoa&&typeof E.btoa=="function"?function(_){return E.btoa(_)}:function(_){if(_.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return _.replace(/[\s\S]{1,3}/g,r)},e=function(M){return u(a(String(M)))},n=function(M){return M.replace(/[+\/]/g,function(k){return k=="+"?"-":"_"}).replace(/=/g,"")},i=function(M,k){return k?n(e(M)):e(M)},c=function(M){return i(M,!0)},d;E.Uint8Array&&(d=function(M,k){for(var R="",B=0,P=M.length;B<P;B+=3){var U=M[B],j=M[B+1],H=M[B+2],W=U<<16|j<<8|H;R+=m.charAt(W>>>18)+m.charAt(W>>>12&63)+(typeof j!="undefined"?m.charAt(W>>>6&63):"=")+(typeof H!="undefined"?m.charAt(W&63):"=")}return k?n(R):R});var h=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,p=function(M){switch(M.length){case 4:var k=(7&M.charCodeAt(0))<<18|(63&M.charCodeAt(1))<<12|(63&M.charCodeAt(2))<<6|63&M.charCodeAt(3),R=k-65536;return s((R>>>10)+55296)+s((R&1023)+56320);case 3:return s((15&M.charCodeAt(0))<<12|(63&M.charCodeAt(1))<<6|63&M.charCodeAt(2));default:return s((31&M.charCodeAt(0))<<6|63&M.charCodeAt(1))}},g=function(M){return M.replace(h,p)},v=function(M){var k=M.length,R=k%4,B=(k>0?f[M.charAt(0)]<<18:0)|(k>1?f[M.charAt(1)]<<12:0)|(k>2?f[M.charAt(2)]<<6:0)|(k>3?f[M.charAt(3)]:0),P=[s(B>>>16),s(B>>>8&255),s(B&255)];return P.length-=[0,0,2,1][R],P.join("")},A=E.atob&&typeof E.atob=="function"?function(_){return E.atob(_)}:function(_){return _.replace(/\S{1,4}/g,v)},x=function(M){return A(String(M).replace(/[^A-Za-z0-9\+\/]/g,""))},b=function(M){return g(A(M))},w=function(M){return String(M).replace(/[-_]/g,function(k){return k=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},S=function(M){return b(w(M))},T;E.Uint8Array&&(T=function(M){return Uint8Array.from(x(w(M)),function(k){return k.charCodeAt(0)})});var C=function(){var M=E.Base64;return E.Base64=I,M};if(E.Base64={VERSION:o,atob:x,btoa:u,fromBase64:S,toBase64:i,utob:a,encode:i,encodeURI:c,btou:g,decode:S,noConflict:C,fromUint8Array:d,toUint8Array:T},typeof Object.defineProperty=="function"){var O=function(M){return{value:M,enumerable:!1,writable:!0,configurable:!0}};E.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",O(function(){return S(this)})),Object.defineProperty(String.prototype,"toBase64",O(function(_){return i(this,_)})),Object.defineProperty(String.prototype,"toBase64URI",O(function(){return i(this,!0)}))}}return E.Meteor&&(Base64=E.Base64),fe.exports?fe.exports.Base64=E.Base64:!(N=[],L=function(){return E.Base64}.apply(z,N),L!==void 0&&(fe.exports=L)),{Base64:E.Base64}})}).call(this,y("yLpj"))},JEkh:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("bYtY"),I=y("ItGF"),o=y("4NO4"),m=y("7aKB"),f=y("OKJ2"),s=m.addCommas,t=m.encodeHTML;function l(u){o.defaultEmphasis(u,"label",["show"])}var a=L.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(u,e,n){this.mergeDefaultAndTheme(u,n),this._mergeOption(u,n,!1,!0)},isAnimationEnabled:function(){if(I.node)return!1;var u=this.__hostSeries;return this.getShallow("animation")&&u&&u.isAnimationEnabled()},mergeOption:function(u,e){this._mergeOption(u,e,!1,!1)},_mergeOption:function(u,e,n,i){var c=this.constructor,d=this.mainType+"Model";n||e.eachSeries(function(h){var p=h.get(this.mainType,!0),g=h[d];if(!p||!p.data){h[d]=null;return}g?g._mergeOption(p,e,!0):(i&&l(p),E.each(p.data,function(v){v instanceof Array?(l(v[0]),l(v[1])):l(v)}),g=new c(p,this,e),E.extend(g,{mainType:this.mainType,seriesIndex:h.seriesIndex,name:h.name,createdBySelf:!0}),g.__hostSeries=h),h[d]=g},this)},formatTooltip:function(u){var e=this.getData(),n=this.getRawValue(u),i=E.isArray(n)?E.map(n,s).join(", "):s(n),c=e.getName(u),d=t(this.name);return(n!=null||c)&&(d+="<br />"),c&&(d+=t(c),n!=null&&(d+=" : ")),n!=null&&(d+=t(i)),d},getData:function(){return this._data},setData:function(u){this._data=u}});E.mixin(a,f);var r=a;fe.exports=r},JGo8:function(fe,z,y){},JLnu:function(fe,z,y){var D=y("+TT/"),N=y("OELB"),L=N.parsePercent,E=N.linearMap;function I(s,t){return D.getLayoutRect(s.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function o(s,t){for(var l=s.mapDimension("value"),a=s.mapArray(l,function(i){return i}),r=[],u=t==="ascending",e=0,n=s.count();e<n;e++)r[e]=e;return typeof t=="function"?r.sort(t):t!=="none"&&r.sort(function(i,c){return u?a[i]-a[c]:a[c]-a[i]}),r}function m(s){s.each(function(t){var l=s.getItemModel(t),a=l.getModel("label"),r=a.get("position"),u=l.getModel("labelLine"),e=s.getItemLayout(t),n=e.points,i=r==="inner"||r==="inside"||r==="center"||r==="insideLeft"||r==="insideRight",c,d,h,p;if(i)r==="insideLeft"?(d=(n[0][0]+n[3][0])/2+5,h=(n[0][1]+n[3][1])/2,c="left"):r==="insideRight"?(d=(n[1][0]+n[2][0])/2-5,h=(n[1][1]+n[2][1])/2,c="right"):(d=(n[0][0]+n[1][0]+n[2][0]+n[3][0])/4,h=(n[0][1]+n[1][1]+n[2][1]+n[3][1])/4,c="center"),p=[[d,h],[d,h]];else{var g,v,A,x=u.get("length");r==="left"?(g=(n[3][0]+n[0][0])/2,v=(n[3][1]+n[0][1])/2,A=g-x,d=A-5,c="right"):r==="right"?(g=(n[1][0]+n[2][0])/2,v=(n[1][1]+n[2][1])/2,A=g+x,d=A+5,c="left"):r==="rightTop"?(g=n[1][0],v=n[1][1],A=g+x,d=A+5,c="top"):r==="rightBottom"?(g=n[2][0],v=n[2][1],A=g+x,d=A+5,c="bottom"):r==="leftTop"?(g=n[0][0],v=n[1][1],A=g-x,d=A-5,c="right"):r==="leftBottom"?(g=n[3][0],v=n[2][1],A=g-x,d=A-5,c="right"):(g=(n[1][0]+n[2][0])/2,v=(n[1][1]+n[2][1])/2,A=g+x,d=A+5,c="left");var b=v;p=[[g,v],[A,b]],h=b}e.label={linePoints:p,x:d,y:h,verticalAlign:"middle",textAlign:c,inside:i}})}function f(s,t,l){s.eachSeriesByType("funnel",function(a){var r=a.getData(),u=r.mapDimension("value"),e=a.get("sort"),n=I(a,t),i=o(r,e),c=[L(a.get("minSize"),n.width),L(a.get("maxSize"),n.width)],d=r.getDataExtent(u),h=a.get("min"),p=a.get("max");h==null&&(h=Math.min(d[0],0)),p==null&&(p=d[1]);var g=a.get("funnelAlign"),v=a.get("gap"),A=(n.height-v*(r.count()-1))/r.count(),x=n.y,b=function(k,R){var B=r.get(u,k)||0,P=E(B,[h,p],c,!0),U;switch(g){case"left":U=n.x;break;case"center":U=n.x+(n.width-P)/2;break;case"right":U=n.x+n.width-P;break}return[[U,R],[U+P,R]]};e==="ascending"&&(A=-A,v=-v,x+=n.height,i=i.reverse());for(var w=0;w<i.length;w++){var S=i[w],T=i[w+1],C=r.getItemModel(S),O=C.get("itemStyle.height");O==null?O=A:(O=L(O,n.height),e==="ascending"&&(O=-O));var _=b(S,x),M=b(T,x+O);x+=O+v,r.setItemLayout(S,{points:_.concat(M.slice().reverse())})}m(r)})}fe.exports=f},JSwD:function(fe,z,y){"use strict";function D(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(c){return typeof c}:D=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},D(n)}Object.defineProperty(z,"__esModule",{value:!0}),z.default=e;var N=E(y("6BzB"));function L(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return L=function(){return n},n}function E(n){if(n&&n.__esModule)return n;if(n===null||D(n)!=="object"&&typeof n!="function")return{default:n};var i=L();if(i&&i.has(n))return i.get(n);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in n)if(Object.prototype.hasOwnProperty.call(n,h)){var p=d?Object.getOwnPropertyDescriptor(n,h):null;p&&(p.get||p.set)?Object.defineProperty(c,h,p):c[h]=n[h]}return c.default=n,i&&i.set(n,c),c}var I=15,o=852,m=592,f=0,s=1,t=2,l=[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],a=[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],u=[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 e(n,i,c,d,h,p,g,v){var A=v.bits,x=0,b=0,w=0,S=0,T=0,C=0,O=0,_=0,M=0,k=0,R,B,P,U,j,H=null,W=0,G,V=new N.Buf16(I+1),Z=new N.Buf16(I+1),Y=null,Q=0,oe,ue,Le;for(x=0;x<=I;x++)V[x]=0;for(b=0;b<d;b++)V[i[c+b]]++;for(T=A,S=I;S>=1&&!(V[S]!==0);S--);if(T>S&&(T=S),S===0)return h[p++]=1<<24|64<<16|0,h[p++]=1<<24|64<<16|0,v.bits=1,0;for(w=1;w<S&&!(V[w]!==0);w++);for(T<w&&(T=w),_=1,x=1;x<=I;x++)if(_<<=1,_-=V[x],_<0)return-1;if(_>0&&(n===f||S!==1))return-1;for(Z[1]=0,x=1;x<I;x++)Z[x+1]=Z[x]+V[x];for(b=0;b<d;b++)i[c+b]!==0&&(g[Z[i[c+b]]++]=b);if(n===f?(H=Y=g,G=19):n===s?(H=l,W-=257,Y=a,Q-=257,G=256):(H=r,Y=u,G=-1),k=0,b=0,x=w,j=p,C=T,O=0,P=-1,M=1<<T,U=M-1,n===s&&M>o||n===t&&M>m)return 1;for(;;){oe=x-O,g[b]<G?(ue=0,Le=g[b]):g[b]>G?(ue=Y[Q+g[b]],Le=H[W+g[b]]):(ue=32+64,Le=0),R=1<<x-O,B=1<<C,w=B;do B-=R,h[j+(k>>O)+B]=oe<<24|ue<<16|Le|0;while(B!==0);for(R=1<<x-1;k&R;)R>>=1;if(R!==0?(k&=R-1,k+=R):k=0,b++,--V[x]===0){if(x===S)break;x=i[c+g[b]]}if(x>T&&(k&U)!==P){for(O===0&&(O=T),j+=w,C=x-O,_=1<<C;C+O<S&&!(_-=V[C+O],_<=0);)C++,_<<=1;if(M+=1<<C,n===s&&M>o||n===t&&M>m)return 1;P=k&U,h[P]=T<<24|C<<16|j-p|0}}return k!==0&&(h[j+k]=x-O<<24|64<<16|0),v.bits=T,0}},JVwQ:function(fe,z,y){var D=y("ProS"),N=y("1NG9"),L=N.Polygon,E=y("IwbS"),I=y("bYtY"),o=I.bind,m=I.extend,f=y("gPAo"),s=D.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(l,a,r){var u=l.getData(),e=this.group,n=l.getLayerSeries(),i=u.getLayout("layoutInfo"),c=i.rect,d=i.boundaryGap;e.attr("position",[0,c.y+d[0]]);function h(A){return A.name}var p=new f(this._layersSeries||[],n,h,h),g={};p.add(o(v,this,"add")).update(o(v,this,"update")).remove(o(v,this,"remove")).execute();function v(A,x,b){var w=this._layers;if(A==="remove"){e.remove(w[x]);return}for(var S=[],T=[],C,O=n[x].indices,_=0;_<O.length;_++){var M=u.getItemLayout(O[_]),k=M.x,R=M.y0,B=M.y;S.push([k,R]),T.push([k,R+B]),C=u.getItemVisual(O[_],"color")}var P,U,j=u.getItemLayout(O[0]),H=u.getItemModel(O[_-1]),W=H.getModel("label"),G=W.get("margin");if(A==="add"){var V=g[x]=new E.Group;P=new L({shape:{points:S,stackedOnPoints:T,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),U=new E.Text({style:{x:j.x-G,y:j.y0+j.y/2}}),V.add(P),V.add(U),e.add(V),P.setClipPath(t(P.getBoundingRect(),l,function(){P.removeClipPath()}))}else{var V=w[b];P=V.childAt(0),U=V.childAt(1),e.add(V),g[x]=V,E.updateProps(P,{shape:{points:S,stackedOnPoints:T}},l),E.updateProps(U,{style:{x:j.x-G,y:j.y0+j.y/2}},l)}var Z=H.getModel("emphasis.itemStyle"),Y=H.getModel("itemStyle");E.setTextStyle(U.style,W,{text:W.get("show")?l.getFormattedLabel(O[_-1],"normal")||u.getName(O[_-1]):null,textVerticalAlign:"middle"}),P.setStyle(m({fill:C},Y.getItemStyle(["color"]))),E.setHoverStyle(P,Z.getItemStyle())}this._layersSeries=n,this._layers=g},dispose:function(){}});function t(l,a,r){var u=new E.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return E.initProps(u,{shape:{width:l.width+20,height:l.height+20}},a,r),u}fe.exports=s},JgUQ:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},JsLm:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("lwsE"),o=y.n(I),m=y("W8MJ"),f=y.n(m),s=y("PJYZ"),t=y.n(s),l=y("7W2i"),a=y.n(l),r=y("LQ03"),u=y.n(r),e=y("q1tI"),n=y("i8i4"),i=y("TSYQ"),c=y.n(i),d=y("zT1h"),h=y("cDf5"),p=y.n(h),g=y("BGR+"),v=y("t23M"),A=y("H84U"),x=y("RIqP"),b=y.n(x),w=y("xEkU"),S=y.n(w);function T($){var J,le=function(we){return function(){J=null,$.apply(void 0,b()(we))}},de=function(){if(J==null){for(var we=arguments.length,De=new Array(we),Ee=0;Ee<we;Ee++)De[Ee]=arguments[Ee];J=S()(le(De))}};return de.cancel=function(){return S.a.cancel(J)},de}function C(){return function($,J,le){var de=le.value,Ne=!1;return{configurable:!0,get:function(){if(Ne||this===$.prototype||this.hasOwnProperty(J))return de;var De=T(de.bind(this));return Ne=!0,Object.defineProperty(this,J,{value:De,configurable:!0,writable:!0}),Ne=!1,De}}}}function O($){return $!==window?$.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function _($,J,le){return le!==void 0&&J.top>$.top-le?le+J.top:void 0}function M($,J,le){if(le!==void 0&&J.bottom<$.bottom+le){var de=window.innerHeight-J.bottom;return le+de}return}var k=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],R=[];function B(){return R}function P($,J){if(!$)return;var le=R.find(function(de){return de.target===$});le?le.affixList.push(J):(le={target:$,affixList:[J],eventHandlers:{}},R.push(le),k.forEach(function(de){le.eventHandlers[de]=Object(d.a)($,de,function(){le.affixList.forEach(function(Ne){Ne.lazyUpdatePosition()})})}))}function U($){var J=R.find(function(le){var de=le.affixList.some(function(Ne){return Ne===$});return de&&(le.affixList=le.affixList.filter(function(Ne){return Ne!==$})),de});J&&J.affixList.length===0&&(R=R.filter(function(le){return le!==J}),k.forEach(function(le){var de=J.eventHandlers[le];de&&de.remove&&de.remove()}))}var j=function($,J,le,de){var Ne=arguments.length,we=Ne<3?J:de===null?de=Object.getOwnPropertyDescriptor(J,le):de,De;if((typeof Reflect=="undefined"?"undefined":p()(Reflect))==="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate($,J,le,de);else for(var Ee=$.length-1;Ee>=0;Ee--)(De=$[Ee])&&(we=(Ne<3?De(we):Ne>3?De(J,le,we):De(J,le))||we);return Ne>3&&we&&Object.defineProperty(J,le,we),we};function H(){return typeof window!="undefined"?window:null}var W;(function($){$[$.None=0]="None",$[$.Prepare=1]="Prepare"})(W||(W={}));var G=function($){a()(le,$);var J=u()(le);function le(){var de;return o()(this,le),de=J.apply(this,arguments),de.state={status:W.None,lastAffix:!1,prevTarget:null},de.getOffsetTop=function(){var Ne=de.props.offsetBottom,we=de.props.offsetTop;return Ne===void 0&&we===void 0&&(we=0),we},de.getOffsetBottom=function(){return de.props.offsetBottom},de.savePlaceholderNode=function(Ne){de.placeholderNode=Ne},de.saveFixedNode=function(Ne){de.fixedNode=Ne},de.measure=function(){var Ne=de.state,we=Ne.status,De=Ne.lastAffix,Ee=de.props.onChange,ce=de.getTargetFunc();if(we!==W.Prepare||!de.fixedNode||!de.placeholderNode||!ce)return;var ne=de.getOffsetTop(),ee=de.getOffsetBottom(),Ae=ce();if(!Ae)return;var Ve={status:W.None},Ke=O(Ae),Oe=O(de.placeholderNode),it=_(Oe,Ke,ne),Fe=M(Oe,Ke,ee);it!==void 0?(Ve.affixStyle={position:"fixed",top:it,width:Oe.width,height:Oe.height},Ve.placeholderStyle={width:Oe.width,height:Oe.height}):Fe!==void 0&&(Ve.affixStyle={position:"fixed",bottom:Fe,width:Oe.width,height:Oe.height},Ve.placeholderStyle={width:Oe.width,height:Oe.height}),Ve.lastAffix=!!Ve.affixStyle,Ee&&De!==Ve.lastAffix&&Ee(Ve.lastAffix),de.setState(Ve)},de.prepareMeasure=function(){if(de.setState({status:W.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var Ne},de.render=function(){var Ne=de.context.getPrefixCls,we=de.state,De=we.affixStyle,Ee=we.placeholderStyle,ce=de.props,ne=ce.prefixCls,ee=ce.children,Ae=c()(E()({},Ne("affix",ne),De)),Ve=Object(g.default)(de.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return e.createElement(v.a,{onResize:function(){de.updatePosition()}},e.createElement("div",N()({},Ve,{ref:de.savePlaceholderNode}),De&&e.createElement("div",{style:Ee,"aria-hidden":"true"}),e.createElement("div",{className:Ae,ref:de.saveFixedNode,style:De},e.createElement(v.a,{onResize:function(){de.updatePosition()}},ee))))},de}return f()(le,[{key:"getTargetFunc",value:function(){var Ne=this.context.getTargetContainer,we=this.props.target;return we!==void 0?we:Ne||H}},{key:"componentDidMount",value:function(){var Ne=this,we=this.getTargetFunc();we&&(this.timeout=setTimeout(function(){P(we(),Ne),Ne.updatePosition()}))}},{key:"componentDidUpdate",value:function(Ne){var we=this.state.prevTarget,De=this.getTargetFunc(),Ee=null;De&&(Ee=De()||null),we!==Ee&&(U(this),Ee&&(P(Ee,this),this.updatePosition()),this.setState({prevTarget:Ee})),(Ne.offsetTop!==this.props.offsetTop||Ne.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),U(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var Ne=this.getTargetFunc(),we=this.state.affixStyle;if(Ne&&we){var De=this.getOffsetTop(),Ee=this.getOffsetBottom(),ce=Ne();if(ce&&this.placeholderNode){var ne=O(ce),ee=O(this.placeholderNode),Ae=_(ee,ne,De),Ve=M(ee,ne,Ee);if(Ae!==void 0&&we.top===Ae||Ve!==void 0&&we.bottom===Ve)return}}this.prepareMeasure()}}]),le}(e.Component);G.contextType=A.b,j([C()],G.prototype,"updatePosition",null),j([C()],G.prototype,"lazyUpdatePosition",null);var V=G,Z=y("zAh6"),Y=y("i6bk"),Q=e.createContext(null),oe=Q;function ue(){return window}function Le($,J){if(!$.getClientRects().length)return 0;var le=$.getBoundingClientRect();return le.width||le.height?J===window?(J=$.ownerDocument.documentElement,le.top-J.clientTop):le.top-J.getBoundingClientRect().top:le.top}var me=/#(\S+)$/,Ie=function($){a()(le,$);var J=u()(le);function le(){var de;return o()(this,le),de=J.apply(this,arguments),de.state={activeLink:null},de.links=[],de.registerLink=function(Ne){de.links.includes(Ne)||de.links.push(Ne)},de.unregisterLink=function(Ne){var we=de.links.indexOf(Ne);we!==-1&&de.links.splice(we,1)},de.getContainer=function(){var Ne=de.context.getTargetContainer,we=de.props.getContainer,De=we||Ne||ue;return De()},de.handleScrollTo=function(Ne){var we=de.props,De=we.offsetTop,Ee=we.targetOffset;de.setCurrentActiveLink(Ne);var ce=de.getContainer(),ne=Object(Y.a)(ce,!0),ee=me.exec(Ne);if(!ee)return;var Ae=document.getElementById(ee[1]);if(!Ae)return;var Ve=Le(Ae,ce),Ke=ne+Ve;Ke-=Ee!==void 0?Ee:De||0,de.animating=!0,Object(Z.a)(Ke,{callback:function(){de.animating=!1},getContainer:de.getContainer})},de.saveInkNode=function(Ne){de.inkNode=Ne},de.setCurrentActiveLink=function(Ne){var we=de.state.activeLink,De=de.props.onChange;we!==Ne&&(de.setState({activeLink:Ne}),De&&De(Ne))},de.handleScroll=function(){if(de.animating)return;var Ne=de.props,we=Ne.offsetTop,De=Ne.bounds,Ee=Ne.targetOffset,ce=de.getCurrentAnchor(Ee!==void 0?Ee:we||0,De);de.setCurrentActiveLink(ce)},de.updateInk=function(){var Ne=t()(de),we=Ne.prefixCls,De=n.findDOMNode(t()(de)),Ee=De.getElementsByClassName("".concat(we,"-link-title-active"))[0];Ee&&(de.inkNode.style.top="".concat(Ee.offsetTop+Ee.clientHeight/2-4.5,"px"))},de.render=function(){var Ne=de.context,we=Ne.getPrefixCls,De=Ne.direction,Ee=de.props,ce=Ee.prefixCls,ne=Ee.className,ee=ne===void 0?"":ne,Ae=Ee.style,Ve=Ee.offsetTop,Ke=Ee.affix,Oe=Ee.showInkInFixed,it=Ee.children,Fe=de.state.activeLink,ft=we("anchor",ce);de.prefixCls=ft;var At=c()("".concat(ft,"-ink-ball"),{visible:Fe}),bt=c()(ee,"".concat(ft,"-wrapper"),E()({},"".concat(ft,"-rtl"),De==="rtl")),St=c()(ft,{fixed:!Ke&&!Oe}),Et=N()({maxHeight:Ve?"calc(100vh - ".concat(Ve,"px)"):"100vh"},Ae),je=e.createElement("div",{className:bt,style:Et},e.createElement("div",{className:St},e.createElement("div",{className:"".concat(ft,"-ink")},e.createElement("span",{className:At,ref:de.saveInkNode})),it));return e.createElement(oe.Provider,{value:{registerLink:de.registerLink,unregisterLink:de.unregisterLink,activeLink:de.state.activeLink,scrollTo:de.handleScrollTo,onClick:de.props.onClick}},Ke?e.createElement(V,{offsetTop:Ve,target:de.getContainer},je):je)},de}return f()(le,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(d.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var Ne=this.getContainer();this.scrollContainer!==Ne&&(this.scrollContainer=Ne,this.scrollEvent.remove(),this.scrollEvent=Object(d.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,De=this.props.getCurrentAnchor;if(typeof De=="function")return De();var Ee=[],ce=this.getContainer();if(this.links.forEach(function(ee){var Ae=me.exec(ee.toString());if(!Ae)return;var Ve=document.getElementById(Ae[1]);if(Ve){var Ke=Le(Ve,ce);Ke<Ne+we&&Ee.push({link:ee,top:Ke})}}),Ee.length){var ne=Ee.reduce(function(ee,Ae){return Ae.top>ee.top?Ae:ee});return ne.link}return""}}]),le}(e.Component);Ie.defaultProps={affix:!0,showInkInFixed:!1},Ie.contextType=A.b;var X=function($){a()(le,$);var J=u()(le);function le(){var de;return o()(this,le),de=J.apply(this,arguments),de.handleClick=function(Ne){var we=de.context,De=we.scrollTo,Ee=we.onClick,ce=de.props,ne=ce.href,ee=ce.title;Ee&&Ee(Ne,{title:ee,href:ne}),De(ne)},de.renderAnchorLink=function(Ne){var we=Ne.getPrefixCls,De=de.props,Ee=De.prefixCls,ce=De.href,ne=De.title,ee=De.children,Ae=De.className,Ve=De.target,Ke=we("anchor",Ee),Oe=de.context.activeLink===ce,it=c()(Ae,"".concat(Ke,"-link"),E()({},"".concat(Ke,"-link-active"),Oe)),Fe=c()("".concat(Ke,"-link-title"),E()({},"".concat(Ke,"-link-title-active"),Oe));return e.createElement("div",{className:it},e.createElement("a",{className:Fe,href:ce,title:typeof ne=="string"?ne:"",target:Ve,onClick:de.handleClick},ne),ee)},de}return f()(le,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(Ne){var we=Ne.href,De=this.props.href;we!==De&&(this.context.unregisterLink(we),this.context.registerLink(De))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return e.createElement(A.a,null,this.renderAnchorLink)}}]),le}(e.Component);X.defaultProps={href:"#"},X.contextType=oe;var q=X;Ie.Link=q;var We=z.a=Ie},JuEJ:function(fe,z,y){var D=y("bYtY"),N=y("4NO4"),L=D.each,E=D.isObject,I=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function o(e){var n=e&&e.itemStyle;if(!n)return;for(var i=0,c=I.length;i<c;i++){var d=I[i],h=n.normal,p=n.emphasis;h&&h[d]&&(e[d]=e[d]||{},e[d].normal?D.merge(e[d].normal,h[d]):e[d].normal=h[d],h[d]=null),p&&p[d]&&(e[d]=e[d]||{},e[d].emphasis?D.merge(e[d].emphasis,p[d]):e[d].emphasis=p[d],p[d]=null)}}function m(e,n,i){if(e&&e[n]&&(e[n].normal||e[n].emphasis)){var c=e[n].normal,d=e[n].emphasis;c&&(i?(e[n].normal=e[n].emphasis=null,D.defaults(e[n],c)):e[n]=c),d&&(e.emphasis=e.emphasis||{},e.emphasis[n]=d)}}function f(e){m(e,"itemStyle"),m(e,"lineStyle"),m(e,"areaStyle"),m(e,"label"),m(e,"labelLine"),m(e,"upperLabel"),m(e,"edgeLabel")}function s(e,n){var i=E(e)&&e[n],c=E(i)&&i.textStyle;if(c)for(var d=0,h=N.TEXT_STYLE_OPTIONS.length;d<h;d++){var n=N.TEXT_STYLE_OPTIONS[d];c.hasOwnProperty(n)&&(i[n]=c[n])}}function t(e){e&&(f(e),s(e,"label"),e.emphasis&&s(e.emphasis,"label"))}function l(e){if(!E(e))return;o(e),f(e),s(e,"label"),s(e,"upperLabel"),s(e,"edgeLabel"),e.emphasis&&(s(e.emphasis,"label"),s(e.emphasis,"upperLabel"),s(e.emphasis,"edgeLabel"));var n=e.markPoint;n&&(o(n),t(n));var i=e.markLine;i&&(o(i),t(i));var c=e.markArea;c&&t(c);var d=e.data;if(e.type==="graph"){d=d||e.nodes;var h=e.links||e.edges;if(h&&!D.isTypedArray(h))for(var p=0;p<h.length;p++)t(h[p]);D.each(e.categories,function(A){f(A)})}if(d&&!D.isTypedArray(d))for(var p=0;p<d.length;p++)t(d[p]);var n=e.markPoint;if(n&&n.data)for(var g=n.data,p=0;p<g.length;p++)t(g[p]);var i=e.markLine;if(i&&i.data)for(var v=i.data,p=0;p<v.length;p++)D.isArray(v[p])?(t(v[p][0]),t(v[p][1])):t(v[p]);e.type==="gauge"?(s(e,"axisLabel"),s(e,"title"),s(e,"detail")):e.type==="treemap"?(m(e.breadcrumb,"itemStyle"),D.each(e.levels,function(A){f(A)})):e.type==="tree"&&f(e.leaves)}function a(e){return D.isArray(e)?e:e?[e]:[]}function r(e){return(D.isArray(e)?e[0]:e)||{}}function u(e,n){L(a(e.series),function(c){E(c)&&l(c)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];n&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),L(i,function(c){L(a(e[c]),function(d){d&&(s(d,"axisLabel"),s(d.axisPointer,"label"))})}),L(a(e.parallel),function(c){var d=c&&c.parallelAxisDefault;s(d,"axisLabel"),s(d&&d.axisPointer,"label")}),L(a(e.calendar),function(c){m(c,"itemStyle"),s(c,"dayLabel"),s(c,"monthLabel"),s(c,"yearLabel")}),L(a(e.radar),function(c){s(c,"name")}),L(a(e.geo),function(c){E(c)&&(t(c),L(a(c.regions),function(d){t(d)}))}),L(a(e.timeline),function(c){t(c),m(c,"label"),m(c,"itemStyle"),m(c,"controlStyle",!0);var d=c.data;D.isArray(d)&&D.each(d,function(h){D.isObject(h)&&(m(h,"label"),m(h,"itemStyle"))})}),L(a(e.toolbox),function(c){m(c,"iconStyle"),L(c.feature,function(d){m(d,"iconStyle")})}),s(r(e.axisPointer),"label"),s(r(e.tooltip).axisPointer,"label")}fe.exports=u},K2GJ:function(fe,z,y){var D=y("fW2E"),N=y("gut8"),L=N.ContextCachedBy,E=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],I=function(r){this.extendFrom(r,!1)};function o(a,r,u){var e=r.x==null?0:r.x,n=r.x2==null?1:r.x2,i=r.y==null?0:r.y,c=r.y2==null?0:r.y2;r.global||(e=e*u.width+u.x,n=n*u.width+u.x,i=i*u.height+u.y,c=c*u.height+u.y),e=isNaN(e)?0:e,n=isNaN(n)?1:n,i=isNaN(i)?0:i,c=isNaN(c)?0:c;var d=a.createLinearGradient(e,i,n,c);return d}function m(a,r,u){var e=u.width,n=u.height,i=Math.min(e,n),c=r.x==null?.5:r.x,d=r.y==null?.5:r.y,h=r.r==null?.5:r.r;r.global||(c=c*e+u.x,d=d*n+u.y,h=h*i);var p=a.createRadialGradient(c,d,0,c,d,h);return p}I.prototype={constructor:I,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(r,u,e){var n=this,i=e&&e.style,c=!i||r.__attrCachedBy!==L.STYLE_BIND;r.__attrCachedBy=L.STYLE_BIND;for(var d=0;d<E.length;d++){var h=E[d],p=h[0];(c||n[p]!==i[p])&&(r[p]=D(r,p,n[p]||h[1]))}if((c||n.fill!==i.fill)&&(r.fillStyle=n.fill),(c||n.stroke!==i.stroke)&&(r.strokeStyle=n.stroke),(c||n.opacity!==i.opacity)&&(r.globalAlpha=n.opacity==null?1:n.opacity),(c||n.blend!==i.blend)&&(r.globalCompositeOperation=n.blend||"source-over"),this.hasStroke()){var g=n.lineWidth;r.lineWidth=g/(this.strokeNoScale&&u&&u.getLineScale?u.getLineScale():1)}},hasFill:function(){var r=this.fill;return r!=null&&r!=="none"},hasStroke:function(){var r=this.stroke;return r!=null&&r!=="none"&&this.lineWidth>0},extendFrom:function(r,u){if(r)for(var e in r)r.hasOwnProperty(e)&&(u===!0||(u===!1?!this.hasOwnProperty(e):r[e]!=null))&&(this[e]=r[e])},set:function(r,u){typeof r=="string"?this[r]=u:this.extendFrom(r,!0)},clone:function(){var r=new this.constructor;return r.extendFrom(this,!0),r},getGradient:function(r,u,e){for(var n=u.type==="radial"?m:o,i=n(r,u,e),c=u.colorStops,d=0;d<c.length;d++)i.addColorStop(c[d].offset,c[d].color);return i}};for(var f=I.prototype,s=0;s<E.length;s++){var t=E[s];t[0]in f||(f[t[0]]=t[1])}I.getGradient=f.getGradient;var l=I;fe.exports=l},K3mO:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("3y9D"),y("WYAk"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.Base,I=L.WordArray,o=N.algo,m=o.MD5,f=o.EvpKDF=E.extend({cfg:E.extend({keySize:128/32,hasher:m,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,l){for(var a,r=this.cfg,u=r.hasher.create(),e=I.create(),n=e.words,i=r.keySize,c=r.iterations;n.length<i;){a&&u.update(a),a=u.update(t).finalize(l),u.reset();for(var d=1;d<c;d++)a=u.finalize(a),u.reset();e.concat(a)}return e.sigBytes=i*4,e}});N.EvpKDF=function(s,t,l){return f.create(l).compute(s,t)}}(),D.EvpKDF})},K4ya:function(fe,z,y){var D=y("bYtY"),N=y("XxSj"),L=D.each;function E(s){if(s){for(var t in s)if(s.hasOwnProperty(t))return!0}}function I(s,t,l){var a={};return L(t,function(u){var e=a[u]=r();L(s[u],function(n,i){if(!N.isValidType(i))return;var c={type:i,visual:n};l&&l(c,u),e[i]=new N(c),i==="opacity"&&(c=D.clone(c),c.type="colorAlpha",e.__hidden.__alphaForOpacity=new N(c))})}),a;function r(){var u=function(){};u.prototype.__hidden=u.prototype;var e=new u;return e}}function o(s,t,l){var a;D.each(l,function(r){t.hasOwnProperty(r)&&E(t[r])&&(a=!0)}),a&&D.each(l,function(r){t.hasOwnProperty(r)&&E(t[r])?s[r]=D.clone(t[r]):delete s[r]})}function m(s,t,l,a,r,u){var e={};D.each(s,function(h){var p=N.prepareVisualTypes(t[h]);e[h]=p});var n;function i(h){return l.getItemVisual(n,h)}function c(h,p){l.setItemVisual(n,h,p)}u==null?l.each(d):l.each([u],d);function d(h,p){n=u==null?h:p;var g=l.getRawDataItem(n);if(g&&g.visualMap===!1)return;for(var v=a.call(r,h),A=t[v],x=e[v],b=0,w=x.length;b<w;b++){var S=x[b];A[S]&&A[S].applyVisual(h,i,c)}}}function f(s,t,l,a){var r={};D.each(s,function(e){var n=N.prepareVisualTypes(t[e]);r[e]=n});function u(e,n){a!=null&&(a=n.getDimension(a));function i(S){return n.getItemVisual(d,S)}function c(S,T){n.setItemVisual(d,S,T)}for(var d;(d=e.next())!=null;){var h=n.getRawDataItem(d);if(h&&h.visualMap===!1)continue;for(var p=a!=null?n.get(a,d,!0):d,g=l(p),v=t[g],A=r[g],x=0,b=A.length;x<b;x++){var w=A[x];v[w]&&v[w].applyVisual(p,i,c)}}}return{progress:u}}z.createVisualMappings=I,z.replaceVisualOption=o,z.applyVisual=m,z.incrementalApplyVisual=f},KCsZ:function(fe,z,y){var D=y("bYtY");function N(L){for(var E=0;E<L.length;E++)L[E][1]||(L[E][1]=L[E][0]);return function(I,o,m){for(var f={},s=0;s<L.length;s++){var t=L[s][1];if(o&&D.indexOf(o,t)>=0||m&&D.indexOf(m,t)<0)continue;var l=I.getShallow(t);l!=null&&(f[L[s][0]]=l)}return f}}fe.exports=N},KPFz:function(fe,z,y){},KQeH:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},KS52:function(fe,z,y){var D=y("OELB"),N=D.parsePercent,L=D.linearMap,E=y("+TT/"),I=y("u3DP"),o=y("bYtY"),m=Math.PI*2,f=Math.PI/180;function s(l,a){return E.getLayoutRect(l.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function t(l,a,r,u){a.eachSeriesByType(l,function(e){var n=e.getData(),i=n.mapDimension("value"),c=s(e,r),d=e.get("center"),h=e.get("radius");o.isArray(h)||(h=[0,h]),o.isArray(d)||(d=[d,d]);var p=N(c.width,r.getWidth()),g=N(c.height,r.getHeight()),v=Math.min(p,g),A=N(d[0],p)+c.x,x=N(d[1],g)+c.y,b=N(h[0],v/2),w=N(h[1],v/2),S=-e.get("startAngle")*f,T=e.get("minAngle")*f,C=0;n.each(i,function(G){!isNaN(G)&&C++});var O=n.getSum(i),_=Math.PI/(O||C)*2,M=e.get("clockwise"),k=e.get("roseType"),R=e.get("stillShowZeroSum"),B=n.getDataExtent(i);B[0]=0;var P=m,U=0,j=S,H=M?1:-1;if(n.each(i,function(G,V){var Z;if(isNaN(G)){n.setItemLayout(V,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:A,cy:x,r0:b,r:k?NaN:w,viewRect:c});return}k!=="area"?Z=O===0&&R?_:G*_:Z=m/C,Z<T?(Z=T,P-=T):U+=G;var Y=j+H*Z;n.setItemLayout(V,{angle:Z,startAngle:j,endAngle:Y,clockwise:M,cx:A,cy:x,r0:b,r:k?L(G,B,[b,w]):w,viewRect:c}),j=Y}),P<m&&C)if(P<=.001){var W=m/C;n.each(i,function(G,V){if(!isNaN(G)){var Z=n.getItemLayout(V);Z.angle=W,Z.startAngle=S+H*V*W,Z.endAngle=S+H*(V+1)*W}})}else _=P/U,j=S,n.each(i,function(G,V){if(!isNaN(G)){var Z=n.getItemLayout(V),Y=Z.angle===T?T:G*_;Z.startAngle=j,Z.endAngle=j+H*Y,j+=H*Y}});I(e,w,c.width,c.height,c.x,c.y)})}fe.exports=t},KUOm:function(fe,z){function y(D){var N={};D.eachSeriesByType("graph",function(L){var E=L.getCategoriesData(),I=L.getData(),o={};E.each(function(m){var f=E.getName(m);o["ec-"+f]=m;var s=E.getItemModel(m),t=s.get("itemStyle.color")||L.getColorFromPalette(f,N);E.setItemVisual(m,"color",t);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],a=0;a<l.length;a++){var r=s.getShallow(l[a],!0);r!=null&&E.setItemVisual(m,l[a],r)}}),E.count()&&I.each(function(m){var f=I.getItemModel(m),s=f.getShallow("category");if(s!=null){typeof s=="string"&&(s=o["ec-"+s]);for(var t=["color","opacity","symbol","symbolSize","symbolKeepAspect"],l=0;l<t.length;l++)I.getItemVisual(m,t[l],!0)==null&&I.setItemVisual(m,t[l],E.getItemVisual(s,t[l]))}})})}fe.exports=y},Kagy:function(fe,z){var y={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:""}}}};fe.exports=y},KamJ:function(fe,z,y){var D=y("ProS"),N=y("szbU");y("vF/C"),y("qwVE"),y("BuqR"),y("AE9C"),y("1u/T"),D.registerPreprocessor(N)},KmBX:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("CP8R")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="FilterFilled";var f=E.forwardRef(m);z.default=f},KmYQ:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return D.pad.ZeroPadding={pad:function(L,E){var I=E*4;L.clamp(),L.sigBytes+=I-(L.sigBytes%I||I)},unpad:function(L){for(var E=L.words,I=L.sigBytes-1,I=L.sigBytes-1;I>=0;I--)if(E[I>>>2]>>>24-I%4*8&255){L.sigBytes=I+1;break}}},D.pad.ZeroPadding})},"KpQ+":function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("E/ki")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="ClockCircleOutlined";var f=E.forwardRef(m);z.default=f},KrTs:function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("cDf5"),E=y.n(L),I=y("pVnL"),o=y.n(I),m=y("q1tI"),f=y("UmKh"),s=y("TSYQ"),t=y.n(s),l=y("J4zp"),a=y.n(l),r=y("H84U"),u=y("0n0R"),e=function(w,S){var T={};for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&S.indexOf(C)<0&&(T[C]=w[C]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,C=Object.getOwnPropertySymbols(w);O<C.length;O++)S.indexOf(C[O])<0&&Object.prototype.propertyIsEnumerable.call(w,C[O])&&(T[C[O]]=w[C[O]]);return T};function n(w){return w?w.toString().split("").reverse().map(function(S){var T=Number(S);return isNaN(T)?S:T}):[]}function i(w,S){for(var T=[],C=0;C<30;C++)T.push(m.createElement("p",{key:C.toString(),className:t()(S,{current:w===C})},C%10));return T}var c=function(S){var T=S.prefixCls,C=S.count,O=S.className,_=S.style,M=S.title,k=S.component,R=k===void 0?"sup":k,B=S.displayComponent,P=S.onAnimated,U=P===void 0?function(){}:P,j=e(S,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),H=m.useState(!0),W=a()(H,2),G=W[0],V=W[1],Z=m.useState(C),Y=a()(Z,2),Q=Y[0],oe=Y[1],ue=m.useState(C),Le=a()(ue,2),me=Le[0],Ie=Le[1],X=m.useState(C),q=a()(X,2),We=q[0],$=q[1],J=m.useContext(r.b),le=J.getPrefixCls,de=le("scroll-number",T);me!==C&&(V(!0),Ie(C)),m.useEffect(function(){$(Q);var ce;return G&&(ce=setTimeout(function(){V(!1),oe(C),U()})),function(){ce&&clearTimeout(ce)}},[G,C,U]);var Ne=function(ne,ee){var Ae=Math.abs(Number(Q)),Ve=Math.abs(Number(We)),Ke=Math.abs(n(Q)[ee]),Oe=Math.abs(n(Ve)[ee]);return G?10+ne:Ae>Ve?Ke>=Oe?10+ne:20+ne:Ke<=Oe?10+ne:ne},we=function(ne,ee){if(typeof ne=="number"){var Ae=Ne(ne,ee),Ve=G||n(We)[ee]===void 0;return m.createElement("span",{className:"".concat(de,"-only"),style:{transition:Ve?"none":void 0,msTransform:"translateY(".concat(-Ae*100,"%)"),WebkitTransform:"translateY(".concat(-Ae*100,"%)"),transform:"translateY(".concat(-Ae*100,"%)")},key:ee},i(Ae,"".concat(de,"-only-unit")))}return m.createElement("span",{key:"symbol",className:"".concat(de,"-symbol")},ne)},De=function(){return Q&&Number(Q)%1===0?n(Q).map(function(ne,ee){return we(ne,ee)}).reverse():Q},Ee=o()(o()({},j),{style:_,className:t()(de,O),title:M});return _&&_.borderColor&&(Ee.style=o()(o()({},_),{boxShadow:"0 0 0 1px ".concat(_.borderColor," inset")})),B?Object(u.a)(B,{className:t()("".concat(de,"-custom-component"),B.props&&B.props.className)}):m.createElement(R,Ee,De())},d=c,h=y("09Wf");function p(w){return h.a.indexOf(w)!==-1}var g=function(S){var T,C=S.className,O=S.prefixCls,_=S.style,M=S.color,k=S.children,R=S.text,B=S.placement,P=B===void 0?"end":B,U=m.useContext(r.b),j=U.getPrefixCls,H=U.direction,W=j("ribbon",O),G=p(M),V=t()(W,C,"".concat(W,"-placement-").concat(P),(T={},N()(T,"".concat(W,"-rtl"),H==="rtl"),N()(T,"".concat(W,"-color-").concat(M),G),T)),Z={},Y={};return M&&!G&&(Z.background=M,Y.color=M),m.createElement("div",{className:"".concat(W,"-wrapper")},k,m.createElement("div",{className:V,style:o()(o()({},Z),_)},R,m.createElement("div",{className:"".concat(W,"-corner"),style:Y})))},v=g,A=function(w,S){var T={};for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&S.indexOf(C)<0&&(T[C]=w[C]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,C=Object.getOwnPropertySymbols(w);O<C.length;O++)S.indexOf(C[O])<0&&Object.prototype.propertyIsEnumerable.call(w,C[O])&&(T[C[O]]=w[C[O]]);return T},x=function(S){var T,C,O=S.prefixCls,_=S.scrollNumberPrefixCls,M=S.children,k=S.status,R=S.text,B=S.color,P=S.count,U=P===void 0?null:P,j=S.overflowCount,H=j===void 0?99:j,W=S.dot,G=W===void 0?!1:W,V=S.size,Z=V===void 0?"default":V,Y=S.title,Q=S.offset,oe=S.style,ue=S.className,Le=S.showZero,me=Le===void 0?!1:Le,Ie=A(S,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),X=m.useContext(r.b),q=X.getPrefixCls,We=X.direction,$=q("badge",O),J=function(){var At=U>H?"".concat(H,"+"):U;return At},le=function(){return!!k||!!B},de=function(){var At=J();return At==="0"||At===0},Ne=function(){return G&&!de()||le()},we=function(){return Ne()?"":J()},De=function(){return Y||(typeof U=="string"||typeof U=="number"?U:void 0)},Ee=function(){return We==="rtl"?Q?o()({left:parseInt(Q[0],10),marginTop:Q[1]},oe):oe:Q?o()({right:-parseInt(Q[0],10),marginTop:Q[1]},oe):oe},ce=function(){var At=we(),bt=At==null||At==="";return(bt||de()&&!me)&&!Ne()},ne=function(){var At=ce();return At||!R?null:m.createElement("span",{className:"".concat($,"-status-text")},R)},ee=function(){var At=U;return!At||E()(At)!=="object"?void 0:Object(u.a)(At,{style:o()(o()({},Ee()),At.props&&At.props.style)})},Ae=function(){var At,bt=q("scroll-number",_),St=we(),Et=Ne(),je=ce(),pe=t()((At={},N()(At,"".concat($,"-dot"),Et),N()(At,"".concat($,"-count"),!Et),N()(At,"".concat($,"-count-sm"),Z==="small"),N()(At,"".concat($,"-multiple-words"),!Et&&U&&U.toString&&U.toString().length>1),N()(At,"".concat($,"-status-").concat(k),!!k),N()(At,"".concat($,"-status-").concat(B),p(B)),At)),ie=Ee();return B&&!p(B)&&(ie=ie||{},ie.background=B),je?null:m.createElement(d,{prefixCls:bt,"data-show":!je,className:pe,count:St,displayComponent:ee(),title:De(),style:ie,key:"scrollNumber"})},Ve=t()((T={},N()(T,"".concat($,"-status-dot"),le()),N()(T,"".concat($,"-status-").concat(k),!!k),N()(T,"".concat($,"-status-").concat(B),p(B)),T)),Ke={};B&&!p(B)&&(Ke.background=B);var Oe=t()(ue,$,(C={},N()(C,"".concat($,"-status"),le()),N()(C,"".concat($,"-not-a-wrapper"),!M),N()(C,"".concat($,"-rtl"),We==="rtl"),C));if(!M&&le()){var it=Ee(),Fe=it&&it.color;return m.createElement("span",o()({},Ie,{className:Oe,style:it}),m.createElement("span",{className:Ve,style:Ke}),m.createElement("span",{style:{color:Fe},className:"".concat($,"-status-text")},R))}return m.createElement("span",o()({},Ie,{className:Oe}),M,m.createElement(f.a,{component:"",showProp:"data-show",transitionName:M?"".concat($,"-zoom"):"",transitionAppear:!0},Ae()),ne())};x.Ribbon=v;var b=z.a=x},Kvyg:function(fe,z,y){},KxBF:function(fe,z){function y(D,N,L){var E=-1,I=D.length;N<0&&(N=-N>I?0:I+N),L=L>I?I:L,L<0&&(L+=I),I=N>L?0:L-N>>>0,N>>>=0;for(var o=Array(I);++E<I;)o[E]=D[E+N];return o}fe.exports=y},KxFI:function(fe,z,y){},KxfA:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=L.isTypedArray,I=L.extend,o=L.assert,m=L.each,f=L.isObject,s=y("4NO4"),t=s.getDataItemValue,l=s.isDataItemOption,a=y("OELB"),r=a.parseDate,u=y("7G+c"),e=y("k9D9"),n=e.SOURCE_FORMAT_TYPED_ARRAY,i=e.SOURCE_FORMAT_ARRAY_ROWS,c=e.SOURCE_FORMAT_ORIGINAL,d=e.SOURCE_FORMAT_OBJECT_ROWS;function h(M,k){u.isInstance(M)||(M=u.seriesDataToSource(M)),this._source=M;var R=this._data=M.data,B=M.sourceFormat;B===n&&(this._offset=0,this._dimSize=k,this._data=R);var P=g[B===i?B+"_"+M.seriesLayoutBy:B];I(this,P)}var p=h.prototype;p.pure=!1,p.persistent=!0,p.getSource=function(){return this._source};var g={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(M){return this._data[M+this._source.startIndex]},appendData:x},arrayRows_row:{pure:!0,count:function(){var M=this._data[0];return M?Math.max(0,M.length-this._source.startIndex):0},getItem:function(M){M+=this._source.startIndex;for(var k=[],R=this._data,B=0;B<R.length;B++){var P=R[B];k.push(P?P[M]:null)}return k},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:v,getItem:A,appendData:x},keyedColumns:{pure:!0,count:function(){var M=this._source.dimensionsDefine[0].name,k=this._data[M];return k?k.length:0},getItem:function(M){for(var k=[],R=this._source.dimensionsDefine,B=0;B<R.length;B++){var P=this._data[R[B].name];k.push(P?P[M]:null)}return k},appendData:function(M){var k=this._data;m(M,function(R,B){for(var P=k[B]||(k[B]=[]),U=0;U<(R||[]).length;U++)P.push(R[U])})}},original:{count:v,getItem:A,appendData:x},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(M,k){M=M-this._offset,k=k||[];for(var R=this._dimSize*M,B=0;B<this._dimSize;B++)k[B]=this._data[R+B];return k},appendData:function(M){this._data=M},clean:function(){this._offset+=this.count(),this._data=null}}};function v(){return this._data.length}function A(M){return this._data[M]}function x(M){for(var k=0;k<M.length;k++)this._data.push(M[k])}var b={arrayRows:w,objectRows:function(M,k,R,B){return R!=null?M[B]:M},keyedColumns:w,original:function(M,k,R,B){var P=t(M);return R==null||!(P instanceof Array)?P:P[R]},typedArray:w};function w(M,k,R,B){return R!=null?M[R]:M}var S={arrayRows:T,objectRows:function(M,k,R,B){return C(M[k],this._dimensionInfos[k])},keyedColumns:T,original:function(M,k,R,B){var P=M&&(M.value==null?M:M.value);return!this._rawData.pure&&l(M)&&(this.hasItemOption=!0),C(P instanceof Array?P[B]:P,this._dimensionInfos[k])},typedArray:function(M,k,R,B){return M[B]}};function T(M,k,R,B){return C(M[B],this._dimensionInfos[k])}function C(M,k){var R=k&&k.type;if(R==="ordinal"){var B=k&&k.ordinalMeta;return B?B.parseAndCollect(M):M}return R==="time"&&typeof M!="number"&&M!=null&&M!=="-"&&(M=+r(M)),M==null||M===""?NaN:+M}function O(M,k,R){if(!M)return;var B=M.getRawDataItem(k);if(B==null)return;var P=M.getProvider().getSource().sourceFormat,U,j,H=M.getDimensionInfo(R);return H&&(U=H.name,j=H.index),b[P](B,k,j,U)}function _(M,k,R){if(!M)return;var B=M.getProvider().getSource().sourceFormat;if(B!==c&&B!==d)return;var P=M.getRawDataItem(k);if(B===c&&!f(P)&&(P=null),P)return P[R]}z.DefaultDataProvider=h,z.defaultDimValueGetters=S,z.retrieveRawValue=O,z.retrieveRawAttr=_},L0Ub:function(fe,z,y){var D=y("bYtY"),N=D.each,L=D.createHashMap,E=D.assert,I=y("Tghj"),o=I.__DEV__,m=L(["tooltip","label","itemName","itemId","seriesName"]);function f(a){var r={},u=r.encode={},e=L(),n=[],i=[],c=r.userOutput={dimensionNames:a.dimensions.slice(),encode:{}};N(a.dimensions,function(v){var A=a.getDimensionInfo(v),x=A.coordDim;if(x){var b=A.coordDimIndex;s(u,x)[b]=v,A.isExtraCoord||(e.set(x,1),l(A.type)&&(n[0]=v),s(c.encode,x)[b]=A.index),A.defaultTooltip&&i.push(v)}m.each(function(w,S){var T=s(u,S),C=A.otherDims[S];C!=null&&C!==!1&&(T[C]=A.name)})});var d=[],h={};e.each(function(v,A){var x=u[A];h[A]=x[0],d=d.concat(x)}),r.dataDimsOnCoord=d,r.encodeFirstDimNotExtra=h;var p=u.label;p&&p.length&&(n=p.slice());var g=u.tooltip;return g&&g.length?i=g.slice():i.length||(i=n.slice()),u.defaultedLabel=n,u.defaultedTooltip=i,r}function s(a,r){return a.hasOwnProperty(r)||(a[r]=[]),a[r]}function t(a){return a==="category"?"ordinal":a==="time"?"time":"float"}function l(a){return!(a==="ordinal"||a==="time")}z.OTHER_DIMENSIONS=m,z.summarizeDimensions=f,z.getDimensionTypeByAxis=t},L3Oj:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("HjIi");y("HM/N"),y("9eas"),y("eS4l"),y("y4/Y"),y("as94"),D.registerLayout(N.curry(L,"bar")),D.extendComponentView({type:"polar"})},L41K:function(fe,z,y){"use strict";y.d(z,"a",function(){return U});var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("lwsE"),o=y.n(I),m=y("W8MJ"),f=y.n(m),s=y("7W2i"),t=y.n(s),l=y("LQ03"),a=y.n(l),r=y("q1tI"),u=y.n(r),e=y("BGR+"),n=y("VTBJ"),i=y("rePB"),c=y("Ff2n"),d=y("1OyB"),h=y("vuIU"),p=y("Ji7U"),g=y("LK+K"),v=y("Zm9Q"),A=y("TSYQ"),x=y.n(A),b=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function w(j){return typeof j=="string"}var S=function(j){Object(p.a)(W,j);var H=Object(g.a)(W);function W(){var G;return Object(d.a)(this,W),G=H.apply(this,arguments),G.onClick=function(){var V=G.props,Z=V.onClick,Y=V.onStepClick,Q=V.stepIndex;Z&&Z.apply(void 0,arguments),Y(Q)},G}return Object(h.a)(W,[{key:"renderIconNode",value:function(){var V,Z=this.props,Y=Z.prefixCls,Q=Z.progressDot,oe=Z.stepIcon,ue=Z.stepNumber,Le=Z.status,me=Z.title,Ie=Z.description,X=Z.icon,q=Z.iconPrefix,We=Z.icons,$,J=x()("".concat(Y,"-icon"),"".concat(q,"icon"),(V={},Object(i.a)(V,"".concat(q,"icon-").concat(X),X&&w(X)),Object(i.a)(V,"".concat(q,"icon-check"),!X&&Le==="finish"&&(We&&!We.finish||!We)),Object(i.a)(V,"".concat(q,"icon-cross"),!X&&Le==="error"&&(We&&!We.error||!We)),V)),le=r.createElement("span",{className:"".concat(Y,"-icon-dot")});return Q?typeof Q=="function"?$=r.createElement("span",{className:"".concat(Y,"-icon")},Q(le,{index:ue-1,status:Le,title:me,description:Ie})):$=r.createElement("span",{className:"".concat(Y,"-icon")},le):X&&!w(X)?$=r.createElement("span",{className:"".concat(Y,"-icon")},X):We&&We.finish&&Le==="finish"?$=r.createElement("span",{className:"".concat(Y,"-icon")},We.finish):We&&We.error&&Le==="error"?$=r.createElement("span",{className:"".concat(Y,"-icon")},We.error):X||Le==="finish"||Le==="error"?$=r.createElement("span",{className:J}):$=r.createElement("span",{className:"".concat(Y,"-icon")},ue),oe&&($=oe({index:ue-1,status:Le,title:me,description:Ie,node:$})),$}},{key:"render",value:function(){var V,Z=this.props,Y=Z.className,Q=Z.prefixCls,oe=Z.style,ue=Z.active,Le=Z.status,me=Le===void 0?"wait":Le,Ie=Z.iconPrefix,X=Z.icon,q=Z.wrapperStyle,We=Z.stepNumber,$=Z.disabled,J=Z.description,le=Z.title,de=Z.subTitle,Ne=Z.progressDot,we=Z.stepIcon,De=Z.tailContent,Ee=Z.icons,ce=Z.stepIndex,ne=Z.onStepClick,ee=Z.onClick,Ae=Object(c.a)(Z,b),Ve=x()("".concat(Q,"-item"),"".concat(Q,"-item-").concat(me),Y,(V={},Object(i.a)(V,"".concat(Q,"-item-custom"),X),Object(i.a)(V,"".concat(Q,"-item-active"),ue),Object(i.a)(V,"".concat(Q,"-item-disabled"),$===!0),V)),Ke=Object(n.a)({},oe),Oe={};return ne&&!$&&(Oe.role="button",Oe.tabIndex=0,Oe.onClick=this.onClick),r.createElement("div",Object.assign({},Ae,{className:Ve,style:Ke}),r.createElement("div",Object.assign({onClick:ee},Oe,{className:"".concat(Q,"-item-container")}),r.createElement("div",{className:"".concat(Q,"-item-tail")},De),r.createElement("div",{className:"".concat(Q,"-item-icon")},this.renderIconNode()),r.createElement("div",{className:"".concat(Q,"-item-content")},r.createElement("div",{className:"".concat(Q,"-item-title")},le,de&&r.createElement("div",{title:typeof de=="string"?de:void 0,className:"".concat(Q,"-item-subtitle")},de)),J&&r.createElement("div",{className:"".concat(Q,"-item-description")},J))))}}]),W}(r.Component),T=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],C=function(j){Object(p.a)(W,j);var H=Object(g.a)(W);function W(){var G;return Object(d.a)(this,W),G=H.apply(this,arguments),G.onStepClick=function(V){var Z=G.props,Y=Z.onChange,Q=Z.current;Y&&Q!==V&&Y(V)},G}return Object(h.a)(W,[{key:"render",value:function(){var V,Z=this,Y=this.props,Q=Y.prefixCls,oe=Y.style,ue=oe===void 0?{}:oe,Le=Y.className,me=Y.children,Ie=Y.direction,X=Y.type,q=Y.labelPlacement,We=Y.iconPrefix,$=Y.status,J=Y.size,le=Y.current,de=Y.progressDot,Ne=Y.stepIcon,we=Y.initial,De=Y.icons,Ee=Y.onChange,ce=Object(c.a)(Y,T),ne=X==="navigation",ee=de?"vertical":q,Ae=x()(Q,"".concat(Q,"-").concat(Ie),Le,(V={},Object(i.a)(V,"".concat(Q,"-").concat(J),J),Object(i.a)(V,"".concat(Q,"-label-").concat(ee),Ie==="horizontal"),Object(i.a)(V,"".concat(Q,"-dot"),!!de),Object(i.a)(V,"".concat(Q,"-navigation"),ne),V));return u.a.createElement("div",Object.assign({className:Ae,style:ue},ce),Object(v.a)(me).map(function(Ve,Ke){var Oe=we+Ke,it=Object(n.a)({stepNumber:"".concat(Oe+1),stepIndex:Oe,key:Oe,prefixCls:Q,iconPrefix:We,wrapperStyle:ue,progressDot:de,stepIcon:Ne,icons:De,onStepClick:Ee&&Z.onStepClick},Ve.props);return $==="error"&&Ke===le-1&&(it.className="".concat(Q,"-next-error")),Ve.props.status||(Oe===le?it.status=$:Oe<le?it.status="finish":it.status="wait"),it.active=Oe===le,Object(r.cloneElement)(Ve,it)}))}}]),W}(u.a.Component);C.Step=S,C.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var O=C,_=y("NAnI"),M=y.n(_),k=y("V/uB"),R=y.n(k),B=y("H84U"),P=y("CFYs"),U=function(j){t()(W,j);var H=a()(W);function W(){var G;return o()(this,W),G=H.apply(this,arguments),G.renderSteps=function(V){var Z=V.getPrefixCls,Y=V.direction,Q=Z("steps",G.props.prefixCls),oe=Z("",G.props.iconPrefix),ue=G.props,Le=ue.percent,me=ue.size,Ie=x()(G.props.className,E()({},"".concat(Q,"-rtl"),Y==="rtl")),X={finish:r.createElement(M.a,{className:"".concat(Q,"-finish-icon")}),error:r.createElement(R.a,{className:"".concat(Q,"-error-icon")})},q=function($){var J=$.node,le=$.status;if(le==="process"&&Le!==void 0){var de=me==="small"?32:40,Ne=r.createElement("div",{className:"".concat(Q,"-progress-icon")},r.createElement(P.a,{type:"circle",percent:Le,width:de,strokeWidth:4,format:function(){return null}}),J);return Ne}return J};return r.createElement(O,N()({icons:X},Object(e.default)(G.props,["progress"]),{stepIcon:q,prefixCls:Q,iconPrefix:oe,className:Ie}))},G}return f()(W,[{key:"render",value:function(){return r.createElement(B.a,null,this.renderSteps)}}]),W}(r.Component);U.Step=O.Step,U.defaultProps={current:0}},L5E0:function(fe,z){var y=["itemStyle","borderColor"];function D(N,L){var E=N.get("color");N.eachRawSeriesByType("boxplot",function(I){var o=E[I.seriesIndex%E.length],m=I.getData();m.setVisual({legendSymbol:"roundRect",color:I.get(y)||o}),N.isSeriesFiltered(I)||m.each(function(f){var s=m.getItemModel(f);m.setItemVisual(f,{color:s.get(y,!0)})})})}fe.exports=D},LBfv:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=N.createHashMap,E=N.each;D.registerProcessor({getTargetSeries:function(I){var o=L();return I.eachComponent("dataZoom",function(m){m.eachTargetAxis(function(f,s,t){var l=t.getAxisProxy(f.name,s);E(l.getTargetSeriesModels(),function(a){o.set(a.uid,a)})})}),o},modifyOutputEnd:!0,overallReset:function(I,o){I.eachComponent("dataZoom",function(m){m.eachTargetAxis(function(f,s,t){t.getAxisProxy(f.name,s).reset(t,o)}),m.eachTargetAxis(function(f,s,t){t.getAxisProxy(f.name,s).filterData(t,o)})}),I.eachComponent("dataZoom",function(m){var f=m.findRepresentativeAxisProxy(),s=f.getDataPercentWindow(),t=f.getDataValueWindow();m.setCalculatedRange({start:s[0],end:s[1],startValue:t[0],endValue:t[1]})})}})},LCi9:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;function D(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function N(h,p){for(var g=0;g<p.length;g++){var v=p[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function L(h,p,g){return p&&N(h.prototype,p),g&&N(h,g),h}var E=0,I=1,o=2,m=4,f=8,s=16,t=32,l=64,a=127,r=50,u=90,e=250,n=1e3,i=1e3,c=50,d=function(){function h(){D(this,h),this._target=null,this._state=a,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return L(h,[{key:"attach",value:function(g){this.detach(),this._target=g,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(g){var v;g.stopPropagation(),g.preventDefault();switch(g.type){case"touchstart":v=this._touchStart;break;case"touchmove":v=this._touchMove;break;case"touchend":case"touchcancel":v=this._touchEnd;break}for(var A=0;A<g.changedTouches.length;A++){var x=g.changedTouches[A];v.call(this,x.identifier,x.clientX,x.clientY)}}},{key:"_touchStart",value:function(g,v,A){if(this._hasDetectedGesture()||this._state===E){this._ignored.push(g);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>e){this._state=E,this._ignored.push(g);return}if(this._waitingRelease){this._state=E,this._ignored.push(g);return}this._tracked.push({id:g,started:Date.now(),active:!0,firstX:v,firstY:A,lastX:v,lastY:A,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(I|f|s),this._stopLongpressTimeout();break;case 3:this._state&=~(o|t|l);break;default:this._state=E}}},{key:"_touchMove",value:function(g,v,A){var x=this._tracked.find(function(O){return O.id===g});if(x===void 0)return;x.lastX=v,x.lastY=A;var b=v-x.firstX,w=A-x.firstY;if((x.firstX!==x.lastX||x.firstY!==x.lastY)&&(x.angle=Math.atan2(w,b)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(b,w)<r)return;if(this._state&=~(I|o|m|s),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~f),this._tracked.length!==2&&(this._state&=~(t|l)),this._tracked.length===2){var S=this._tracked.find(function(O){return O.id!==g}),T=Math.hypot(S.firstX-S.lastX,S.firstY-S.lastY);if(T>r){var C=Math.abs(x.angle-S.angle);C=Math.abs((C+180)%360-180),C>u?this._state&=~t:this._state&=~l,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(g,v,A){if(this._ignored.indexOf(g)!==-1){this._ignored.splice(this._ignored.indexOf(g),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=a,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=E),!this._hasDetectedGesture()&&(this._state&=~(f|t|l),this._state&=~s,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(o|m);break;case 2:this._state&=~(I|m);break}}if(this._waitingRelease){Date.now()-this._releaseStart>e&&(this._state=E),this._tracked.some(function(w){return Date.now()-w.started>n})&&(this._state=E);var x=this._tracked.find(function(w){return w.id===g});if(x.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==E)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var b=0;b<this._tracked.length;b++)this._tracked[b].active&&this._ignored.push(this._tracked[b].id);this._tracked=[],this._state=E,this._ignored.indexOf(g)!==-1&&this._ignored.splice(this._ignored.indexOf(g),1),this._ignored.length===0&&(this._state=a,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===E||this._state&this._state-1?!1:!(this._state&(I|o|m)&&this._tracked.some(function(g){return g.active}))}},{key:"_startLongpressTimeout",value:function(){var g=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return g._longpressTimeout()},i)}},{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=s,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var g=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return g._twoTouchTimeout()},c)}},{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 g=this._getAverageMovement(),v=Math.abs(g.x),A=Math.abs(g.y),x=this._getAverageDistance(),b=Math.abs(Math.hypot(x.first.x,x.first.y)-Math.hypot(x.last.x,x.last.y));A<b&&v<b?this._state=l:this._state=t,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(g){var v={type:this._stateToGesture(this._state)},A=this._getPosition(),x=A.last;g==="gesturestart"&&(x=A.first);switch(this._state){case t:case l:x=A.first;break}if(v.clientX=x.x,v.clientY=x.y,this._state===l){var b=this._getAverageDistance();g==="gesturestart"?(v.magnitudeX=b.first.x,v.magnitudeY=b.first.y):(v.magnitudeX=b.last.x,v.magnitudeY=b.last.y)}else if(this._state===t)if(g==="gesturestart")v.magnitudeX=0,v.magnitudeY=0;else{var w=this._getAverageMovement();v.magnitudeX=w.x,v.magnitudeY=w.y}var S=new CustomEvent(g,{detail:v});this._target.dispatchEvent(S)}},{key:"_stateToGesture",value:function(g){switch(g){case I:return"onetap";case o:return"twotap";case m:return"threetap";case f:return"drag";case s:return"longpress";case t:return"twodrag";case l:return"pinch"}throw new Error("Unknown gesture state: "+g)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var g=this._tracked.length,v=0,A=0,x=0,b=0,w=0;w<this._tracked.length;w++)v+=this._tracked[w].firstX,A+=this._tracked[w].firstY,x+=this._tracked[w].lastX,b+=this._tracked[w].lastY;return{first:{x:v/g,y:A/g},last:{x:x/g,y:b/g}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var g,v;g=v=0;for(var A=this._tracked.length,x=0;x<this._tracked.length;x++)g+=this._tracked[x].lastX-this._tracked[x].firstX,v+=this._tracked[x].lastY-this._tracked[x].firstY;return{x:g/A,y:v/A}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var g=this._tracked[0],v=this._tracked[this._tracked.length-1],A=Math.abs(v.firstX-g.firstX),x=Math.abs(v.firstY-g.firstY),b=Math.abs(v.lastX-g.lastX),w=Math.abs(v.lastY-g.lastY);return{first:{x:A,y:x},last:{x:b,y:w}}}}]),h}();z.default=d},LPTA:function(fe,z){var y=1;typeof window!="undefined"&&(y=Math.max(window.devicePixelRatio||1,1));var D=0,N=y;z.debugMode=D,z.devicePixelRatio=N},LPzL:function(fe,z,y){var D=y("ProS");y("QzjZ"),y("vL6D"),y("xiyX"),y("y4/Y"),y("8Th4"),D.extendComponentView({type:"single"})},LSTS:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D=function(){function a(r,u){for(var e=0;e<u.length;e++){var n=u[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,u,e){return u&&a(r.prototype,u),e&&a(r,e),r}}(),N=y("q1tI"),L=o(N),E=y("17x9"),I=o(E);function o(a){return a&&a.__esModule?a:{default:a}}function m(a,r){var u={};for(var e in a){if(r.indexOf(e)>=0)continue;if(!Object.prototype.hasOwnProperty.call(a,e))continue;u[e]=a[e]}return u}function f(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function s(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function t(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var l=function(a){t(r,a);function r(u){f(this,r);var e=s(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,u));return e.scrollListener=e.scrollListener.bind(e),e.eventListenerOptions=e.eventListenerOptions.bind(e),e.mousewheelListener=e.mousewheelListener.bind(e),e}return D(r,[{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 e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,n={get passive(){e=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch(i){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;this.props.useWindow===!1&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;this.props.useWindow===!1&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var n=this.props.getScrollParent&&this.props.getScrollParent();return n!=null?n:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!e)return;var n=window;this.props.useWindow===!1&&(n=e),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(e){e.deltaY===1&&!this.isPassiveSupported()&&e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,n=window,i=this.getParentElement(e),c=void 0;if(this.props.useWindow){var d=document.documentElement||document.body.parentNode||document.body,h=n.pageYOffset!==void 0?n.pageYOffset:d.scrollTop;this.props.isReverse?c=h:c=this.calculateOffset(e,h)}else this.props.isReverse?c=i.scrollTop:c=e.scrollHeight-i.scrollTop-i.clientHeight;c<Number(this.props.threshold)&&e&&e.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=i.scrollHeight,this.beforeScrollTop=i.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,n){return e?this.calculateTopPosition(e)+(e.offsetHeight-n-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,n=this.filterProps(this.props),i=n.children,c=n.element,d=n.hasMore,h=n.initialLoad,p=n.isReverse,g=n.loader,v=n.loadMore,A=n.pageStart,x=n.ref,b=n.threshold,w=n.useCapture,S=n.useWindow,T=n.getScrollParent,C=m(n,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);C.ref=function(_){e.scrollComponent=_,x&&x(_)};var O=[i];return d&&(g?p?O.unshift(g):O.push(g):this.defaultLoader&&(p?O.unshift(this.defaultLoader):O.push(this.defaultLoader))),L.default.createElement(c,C,O)}}]),r}(N.Component);l.propTypes={children:I.default.node.isRequired,element:I.default.node,hasMore:I.default.bool,initialLoad:I.default.bool,isReverse:I.default.bool,loader:I.default.node,loadMore:I.default.func.isRequired,pageStart:I.default.number,ref:I.default.func,getScrollParent:I.default.func,threshold:I.default.number,useCapture:I.default.bool,useWindow:I.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},z.default=l,fe.exports=z.default},Lerx:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("Mds0"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},Llu2:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="DeliveredProcedureOutlined";var m=z.a=N.forwardRef(o)},Lo0S:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.initLogging=o,z.getLogging=m,z.Error=z.Warn=z.Info=z.Debug=void 0;var D="warn",N=function(){};z.Debug=N;var L=function(){};z.Info=L;var E=function(){};z.Warn=E;var I=function(){};z.Error=I;function o(f){if(typeof f=="undefined"?f=D:D=f,z.Debug=N=z.Info=L=z.Warn=E=z.Error=I=function(){},typeof window.console!="undefined")switch(f){case"debug":z.Debug=N=console.debug.bind(window.console);case"info":z.Info=L=console.info.bind(window.console);case"warn":z.Warn=E=console.warn.bind(window.console);case"error":z.Error=I=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+f+"'")}}function m(){return D}o()},LtfV:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="InboxOutlined";var m=z.a=N.forwardRef(o)},Lyp1:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="QuestionCircleOutlined";var m=z.a=N.forwardRef(o)},LzGr:function(fe,z,y){var D=y("ProS"),N=y("rnVJ");y("EMyp"),y("8x+h"),y("wt3j"),y("uOyE"),y("/stD"),D.registerPreprocessor(N)},MBQ8:function(fe,z,y){var D=y("T4UG"),N=y("MwEJ"),L=D.extend({type:"series.__base_bar__",getInitialData:function(E,I){return N(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(E){var I=this.coordinateSystem;if(I){var o=I.dataToPoint(I.clampData(E)),m=this.getData(),f=m.getLayout("offset"),s=m.getLayout("size"),t=I.getBaseAxis().isHorizontal()?0:1;return o[t]+=f+s/2,o}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:{}}});fe.exports=L},MEGo:function(fe,z,y){var D=y("4fz+"),N=y("Dagg"),L=y("dqUG"),E=y("2fw6"),I=y("x6Kt"),o=y("rmlV"),m=y("yxFR"),f=y("y+Vt"),s=y("h7HQ"),t=y("1Jh7"),l=y("SKnc"),a=y("K2GJ"),r=y("Fofx"),u=y("NC18"),e=u.createFromString,n=y("bYtY"),i=n.isString,c=n.extend,d=n.defaults,h=n.trim,p=n.each,g=/[\s,]+/;function v(H){if(i(H)){var W=new DOMParser;H=W.parseFromString(H,"text/xml")}for(H.nodeType===9&&(H=H.firstChild);H.nodeName.toLowerCase()!=="svg"||H.nodeType!==1;)H=H.nextSibling;return H}function A(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}A.prototype.parse=function(H,W){W=W||{};var G=v(H);if(!G)throw new Error("Illegal svg");var V=new D;this._root=V;var Z=G.getAttribute("viewBox")||"",Y=parseFloat(G.getAttribute("width")||W.width),Q=parseFloat(G.getAttribute("height")||W.height);isNaN(Y)&&(Y=null),isNaN(Q)&&(Q=null),O(G,V,null,!0);for(var oe=G.firstChild;oe;)this._parseNode(oe,V),oe=oe.nextSibling;var ue,Le;if(Z){var me=h(Z).split(g);me.length>=4&&(ue={x:parseFloat(me[0]||0),y:parseFloat(me[1]||0),width:parseFloat(me[2]),height:parseFloat(me[3])})}if(ue&&Y!=null&&Q!=null&&(Le=U(ue,Y,Q),!W.ignoreViewBox)){var Ie=V;V=new D,V.add(Ie),Ie.scale=Le.scale.slice(),Ie.position=Le.position.slice()}return!W.ignoreRootClip&&Y!=null&&Q!=null&&V.setClipPath(new I({shape:{x:0,y:0,width:Y,height:Q}})),{root:V,width:Y,height:Q,viewBoxRect:ue,viewBoxTransform:Le}},A.prototype._parseNode=function(H,W){var G=H.nodeName.toLowerCase();G==="defs"?this._isDefine=!0:G==="text"&&(this._isText=!0);var V;if(this._isDefine){var Z=b[G];if(Z){var Y=Z.call(this,H),Q=H.getAttribute("id");Q&&(this._defs[Q]=Y)}}else{var Z=x[G];Z&&(V=Z.call(this,H,W),W.add(V))}for(var oe=H.firstChild;oe;)oe.nodeType===1&&this._parseNode(oe,V),oe.nodeType===3&&this._isText&&this._parseText(oe,V),oe=oe.nextSibling;G==="defs"?this._isDefine=!1:G==="text"&&(this._isText=!1)},A.prototype._parseText=function(H,W){if(H.nodeType===1){var G=H.getAttribute("dx")||0,V=H.getAttribute("dy")||0;this._textX+=parseFloat(G),this._textY+=parseFloat(V)}var Z=new L({style:{text:H.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});S(W,Z),O(H,Z,this._defs);var Y=Z.style.fontSize;Y&&Y<9&&(Z.style.fontSize=9,Z.scale=Z.scale||[1,1],Z.scale[0]*=Y/9,Z.scale[1]*=Y/9);var Q=Z.getBoundingRect();return this._textX+=Q.width,W.add(Z),Z};var x={g:function(W,G){var V=new D;return S(G,V),O(W,V,this._defs),V},rect:function(W,G){var V=new I;return S(G,V),O(W,V,this._defs),V.setShape({x:parseFloat(W.getAttribute("x")||0),y:parseFloat(W.getAttribute("y")||0),width:parseFloat(W.getAttribute("width")||0),height:parseFloat(W.getAttribute("height")||0)}),V},circle:function(W,G){var V=new E;return S(G,V),O(W,V,this._defs),V.setShape({cx:parseFloat(W.getAttribute("cx")||0),cy:parseFloat(W.getAttribute("cy")||0),r:parseFloat(W.getAttribute("r")||0)}),V},line:function(W,G){var V=new m;return S(G,V),O(W,V,this._defs),V.setShape({x1:parseFloat(W.getAttribute("x1")||0),y1:parseFloat(W.getAttribute("y1")||0),x2:parseFloat(W.getAttribute("x2")||0),y2:parseFloat(W.getAttribute("y2")||0)}),V},ellipse:function(W,G){var V=new o;return S(G,V),O(W,V,this._defs),V.setShape({cx:parseFloat(W.getAttribute("cx")||0),cy:parseFloat(W.getAttribute("cy")||0),rx:parseFloat(W.getAttribute("rx")||0),ry:parseFloat(W.getAttribute("ry")||0)}),V},polygon:function(W,G){var V=W.getAttribute("points");V&&(V=T(V));var Z=new s({shape:{points:V||[]}});return S(G,Z),O(W,Z,this._defs),Z},polyline:function(W,G){var V=new f;S(G,V),O(W,V,this._defs);var Z=W.getAttribute("points");Z&&(Z=T(Z));var Y=new t({shape:{points:Z||[]}});return Y},image:function(W,G){var V=new N;return S(G,V),O(W,V,this._defs),V.setStyle({image:W.getAttribute("xlink:href"),x:W.getAttribute("x"),y:W.getAttribute("y"),width:W.getAttribute("width"),height:W.getAttribute("height")}),V},text:function(W,G){var V=W.getAttribute("x")||0,Z=W.getAttribute("y")||0,Y=W.getAttribute("dx")||0,Q=W.getAttribute("dy")||0;this._textX=parseFloat(V)+parseFloat(Y),this._textY=parseFloat(Z)+parseFloat(Q);var oe=new D;return S(G,oe),O(W,oe,this._defs),oe},tspan:function(W,G){var V=W.getAttribute("x"),Z=W.getAttribute("y");V!=null&&(this._textX=parseFloat(V)),Z!=null&&(this._textY=parseFloat(Z));var Y=W.getAttribute("dx")||0,Q=W.getAttribute("dy")||0,oe=new D;return S(G,oe),O(W,oe,this._defs),this._textX+=Y,this._textY+=Q,oe},path:function(W,G){var V=W.getAttribute("d")||"",Z=e(V);return S(G,Z),O(W,Z,this._defs),Z}},b={lineargradient:function(W){var G=parseInt(W.getAttribute("x1")||0,10),V=parseInt(W.getAttribute("y1")||0,10),Z=parseInt(W.getAttribute("x2")||10,10),Y=parseInt(W.getAttribute("y2")||0,10),Q=new l(G,V,Z,Y);return w(W,Q),Q},radialgradient:function(W){}};function w(H,W){for(var G=H.firstChild;G;){if(G.nodeType===1){var V=G.getAttribute("offset");V.indexOf("%")>0?V=parseInt(V,10)/100:V?V=parseFloat(V):V=0;var Z=G.getAttribute("stop-color")||"#000000";W.addColorStop(V,Z)}G=G.nextSibling}}function S(H,W){H&&H.__inheritedStyle&&(W.__inheritedStyle||(W.__inheritedStyle={}),d(W.__inheritedStyle,H.__inheritedStyle))}function T(H){for(var W=h(H).split(g),G=[],V=0;V<W.length;V+=2){var Z=parseFloat(W[V]),Y=parseFloat(W[V+1]);G.push([Z,Y])}return G}var C={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 O(H,W,G,V){var Z=W.__inheritedStyle||{},Y=W.type==="text";if(H.nodeType===1&&(R(H,W),c(Z,P(H)),!V)){for(var Q in C)if(C.hasOwnProperty(Q)){var oe=H.getAttribute(Q);oe!=null&&(Z[C[Q]]=oe)}}var ue=Y?"textFill":"fill",Le=Y?"textStroke":"stroke";W.style=W.style||new a;var me=W.style;Z.fill!=null&&me.set(ue,M(Z.fill,G)),Z.stroke!=null&&me.set(Le,M(Z.stroke,G)),p(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Ie){var X=Ie==="lineWidth"&&Y?"textStrokeWidth":Ie;Z[Ie]!=null&&me.set(X,parseFloat(Z[Ie]))}),(!Z.textBaseline||Z.textBaseline==="auto")&&(Z.textBaseline="alphabetic"),Z.textBaseline==="alphabetic"&&(Z.textBaseline="bottom"),Z.textAlign==="start"&&(Z.textAlign="left"),Z.textAlign==="end"&&(Z.textAlign="right"),p(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Ie){Z[Ie]!=null&&me.set(Ie,Z[Ie])}),Z.lineDash&&(W.style.lineDash=h(Z.lineDash).split(g)),me[Le]&&me[Le]!=="none"&&(W[Le]=!0),W.__inheritedStyle=Z}var _=/url\(\s*#(.*?)\)/;function M(H,W){var G=W&&H&&H.match(_);if(G){var V=h(G[1]),Z=W[V];return Z}return H}var k=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function R(H,W){var G=H.getAttribute("transform");if(G){G=G.replace(/,/g," ");var V=null,Z=[];G.replace(k,function(ue,Le,me){Z.push(Le,me)});for(var Y=Z.length-1;Y>0;Y-=2){var Q=Z[Y],oe=Z[Y-1];V=V||r.create();switch(oe){case"translate":Q=h(Q).split(g),r.translate(V,V,[parseFloat(Q[0]),parseFloat(Q[1]||0)]);break;case"scale":Q=h(Q).split(g),r.scale(V,V,[parseFloat(Q[0]),parseFloat(Q[1]||Q[0])]);break;case"rotate":Q=h(Q).split(g),r.rotate(V,V,parseFloat(Q[0]));break;case"skew":Q=h(Q).split(g),console.warn("Skew transform is not supported yet");break;case"matrix":var Q=h(Q).split(g);V[0]=parseFloat(Q[0]),V[1]=parseFloat(Q[1]),V[2]=parseFloat(Q[2]),V[3]=parseFloat(Q[3]),V[4]=parseFloat(Q[4]),V[5]=parseFloat(Q[5]);break}}W.setLocalTransform(V)}}var B=/([^\s:;]+)\s*:\s*([^:;]+)/g;function P(H){var W=H.getAttribute("style"),G={};if(!W)return G;var V={};B.lastIndex=0;for(var Z;(Z=B.exec(W))!=null;)V[Z[1]]=Z[2];for(var Y in C)C.hasOwnProperty(Y)&&V[Y]!=null&&(G[C[Y]]=V[Y]);return G}function U(H,W,G){var V=W/H.width,Z=G/H.height,Y=Math.min(V,Z),Q=[Y,Y],oe=[-(H.x+H.width/2)*Y+W/2,-(H.y+H.height/2)*Y+G/2];return{scale:Q,position:oe}}function j(H,W){var G=new A;return G.parse(H,W)}z.parseXML=v,z.makeViewBoxTransform=U,z.parseSVG=j},MFOe:function(fe,z,y){(function(D){var N=o(),L=m(),E=f(),I=typeof window!="undefined"?window:D;fe.exports={assign:N,create:L,trim:E,bind:s,slice:t,each:l,map:a,pluck:r,isList:u,isFunction:e,isObject:n,Global:I};function o(){return Object.assign?Object.assign:function(c,d,h,p){for(var g=1;g<arguments.length;g++)l(Object(arguments[g]),function(v,A){c[A]=v});return c}}function m(){if(Object.create)return function(d,h,p,g){var v=t(arguments,1);return N.apply(this,[Object.create(d)].concat(v))};var i=function(){};return function(d,h,p,g){var v=t(arguments,1);return i.prototype=d,N.apply(this,[new i].concat(v))}}function f(){return String.prototype.trim?function(c){return String.prototype.trim.call(c)}:function(c){return c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function s(i,c){return function(){return c.apply(i,Array.prototype.slice.call(arguments,0))}}function t(i,c){return Array.prototype.slice.call(i,c||0)}function l(i,c){r(i,function(d,h){return c(d,h),!1})}function a(i,c){var d=u(i)?[]:{};return r(i,function(h,p){return d[p]=c(h,p),!1}),d}function r(i,c){if(u(i)){for(var d=0;d<i.length;d++)if(c(i[d],d))return i[d]}else for(var h in i)if(i.hasOwnProperty(h)&&c(i[h],h))return i[h]}function u(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function e(i){return i&&{}.toString.call(i)==="[object Function]"}function n(i){return i&&{}.toString.call(i)==="[object Object]"}}).call(this,y("yLpj"))},MH26:function(fe,z,y){var D=y("bYtY"),N=y("YXkt"),L=y("OELB"),E=y("kj2x"),I=y("c8qY"),o=y("iPDy"),m=y("7hqr"),f=m.getStackedDimension,s=function(n,i,c,d){var h=n.getData(),p=d.type;if(!D.isArray(d)&&(p==="min"||p==="max"||p==="average"||p==="median"||d.xAxis!=null||d.yAxis!=null)){var g,v;if(d.yAxis!=null||d.xAxis!=null)g=i.getAxis(d.yAxis!=null?"y":"x"),v=D.retrieve(d.yAxis,d.xAxis);else{var A=E.getAxisInfo(d,h,i,n);g=A.valueAxis;var x=f(h,A.valueDataDim);v=E.numCalculate(h,x,p)}var b=g.dim==="x"?0:1,w=1-b,S=D.clone(d),T={};S.type=null,S.coord=[],T.coord=[],S.coord[w]=-Infinity,T.coord[w]=Infinity;var C=c.get("precision");C>=0&&typeof v=="number"&&(v=+v.toFixed(Math.min(C,20))),S.coord[b]=T.coord[b]=v,d=[S,T,{type:p,valueIndex:d.valueIndex,value:v}]}return d=[E.dataTransform(n,d[0]),E.dataTransform(n,d[1]),D.extend({},d[2])],d[2].type=d[2].type||"",D.merge(d[2],d[0]),D.merge(d[2],d[1]),d};function t(n){return!isNaN(n)&&!isFinite(n)}function l(n,i,c,d){var h=1-n,p=d.dimensions[n];return t(i[h])&&t(c[h])&&i[n]===c[n]&&d.getAxis(p).containData(i[n])}function a(n,i){if(n.type==="cartesian2d"){var c=i[0].coord,d=i[1].coord;if(c&&d&&(l(1,c,d,n)||l(0,c,d,n)))return!0}return E.dataFilter(n,i[0])&&E.dataFilter(n,i[1])}function r(n,i,c,d,h){var p=d.coordinateSystem,g=n.getItemModel(i),v,A=L.parsePercent(g.get("x"),h.getWidth()),x=L.parsePercent(g.get("y"),h.getHeight());if(!isNaN(A)&&!isNaN(x))v=[A,x];else{if(d.getMarkerPosition)v=d.getMarkerPosition(n.getValues(n.dimensions,i));else{var b=p.dimensions,w=n.get(b[0],i),S=n.get(b[1],i);v=p.dataToPoint([w,S])}if(p.type==="cartesian2d"){var T=p.getAxis("x"),C=p.getAxis("y"),b=p.dimensions;t(n.get(b[0],i))?v[0]=T.toGlobalCoord(T.getExtent()[c?0:1]):t(n.get(b[1],i))&&(v[1]=C.toGlobalCoord(C.getExtent()[c?0:1]))}isNaN(A)||(v[0]=A),isNaN(x)||(v[1]=x)}n.setItemLayout(i,v)}var u=o.extend({type:"markLine",updateTransform:function(n,i,c){i.eachSeries(function(d){var h=d.markLineModel;if(h){var p=h.getData(),g=h.__from,v=h.__to;g.each(function(A){r(g,A,!0,d,c),r(v,A,!1,d,c)}),p.each(function(A){p.setItemLayout(A,[g.getItemLayout(A),v.getItemLayout(A)])}),this.markerGroupMap.get(d.id).updateLayout()}},this)},renderSeries:function(n,i,c,d){var h=n.coordinateSystem,p=n.id,g=n.getData(),v=this.markerGroupMap,A=v.get(p)||v.set(p,new I);this.group.add(A.group);var x=e(h,n,i),b=x.from,w=x.to,S=x.line;i.__from=b,i.__to=w,i.setData(S);var T=i.get("symbol"),C=i.get("symbolSize");D.isArray(T)||(T=[T,T]),typeof C=="number"&&(C=[C,C]),x.from.each(function(_){O(b,_,!0),O(w,_,!1)}),S.each(function(_){var M=S.getItemModel(_).get("lineStyle.color");S.setItemVisual(_,{color:M||b.getItemVisual(_,"color")}),S.setItemLayout(_,[b.getItemLayout(_),w.getItemLayout(_)]),S.setItemVisual(_,{fromSymbolSize:b.getItemVisual(_,"symbolSize"),fromSymbol:b.getItemVisual(_,"symbol"),toSymbolSize:w.getItemVisual(_,"symbolSize"),toSymbol:w.getItemVisual(_,"symbol")})}),A.updateData(S),x.line.eachItemGraphicEl(function(_,M){_.traverse(function(k){k.dataModel=i})});function O(_,M,k){var R=_.getItemModel(M);r(_,M,k,n,d),_.setItemVisual(M,{symbolSize:R.get("symbolSize")||C[k?0:1],symbol:R.get("symbol",!0)||T[k?0:1],color:R.get("itemStyle.color")||g.getVisual("color")})}A.__keep=!0,A.group.silent=i.get("silent")||n.get("silent")}});function e(n,i,c){var d;n?d=D.map(n&&n.dimensions,function(x){var b=i.getData().getDimensionInfo(i.getData().mapDimension(x))||{};return D.defaults({name:x},b)}):d=[{name:"value",type:"float"}];var h=new N(d,c),p=new N(d,c),g=new N([],c),v=D.map(c.get("data"),D.curry(s,i,n,c));n&&(v=D.filter(v,D.curry(a,n)));var A=n?E.dimValueGetter:function(x){return x.value};return h.initData(D.map(v,function(x){return x[0]}),null,A),p.initData(D.map(v,function(x){return x[1]}),null,A),g.initData(D.map(v,function(x){return x[2]})),g.hasItemOption=!0,{from:h,to:p,line:g}}fe.exports=u},MHoB:function(fe,z,y){var D=y("bYtY"),N=y("6uqw"),L=y("OELB"),E=[20,140],I=N.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(f,s){I.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){I.superApply(this,"resetItemSize",arguments);var f=this.itemSize;this._orient==="horizontal"&&f.reverse(),(f[0]==null||isNaN(f[0]))&&(f[0]=E[0]),(f[1]==null||isNaN(f[1]))&&(f[1]=E[1])},_resetRange:function(){var f=this.getExtent(),s=this.option.range;!s||s.auto?(f.auto=1,this.option.range=f):D.isArray(s)&&(s[0]>s[1]&&s.reverse(),s[0]=Math.max(s[0],f[0]),s[1]=Math.min(s[1],f[1]))},completeVisualOption:function(){N.prototype.completeVisualOption.apply(this,arguments),D.each(this.stateList,function(f){var s=this.option.controller[f].symbolSize;s&&s[0]!==s[1]&&(s[0]=0)},this)},setSelected:function(f){this.option.range=f.slice(),this._resetRange()},getSelected:function(){var f=this.getExtent(),s=L.asc((this.get("range")||[]).slice());return s[0]>f[1]&&(s[0]=f[1]),s[1]>f[1]&&(s[1]=f[1]),s[0]<f[0]&&(s[0]=f[0]),s[1]<f[0]&&(s[1]=f[0]),s},getValueState:function(f){var s=this.option.range,t=this.getExtent();return(s[0]<=t[0]||s[0]<=f)&&(s[1]>=t[1]||f<=s[1])?"inRange":"outOfRange"},findTargetDataIndices:function(f){var s=[];return this.eachTargetSeries(function(t){var l=[],a=t.getData();a.each(this.getDataDimension(a),function(r,u){f[0]<=r&&r<=f[1]&&l.push(u)},this),s.push({seriesId:t.id,dataIndex:l})},this),s},getVisualMeta:function(f){var s=o(this,"outOfRange",this.getExtent()),t=o(this,"inRange",this.option.range.slice()),l=[];function a(d,h){l.push({value:d,color:f(d,h)})}for(var r=0,u=0,e=t.length,n=s.length;u<n&&(!t.length||s[u]<=t[0]);u++)s[u]<t[r]&&a(s[u],"outOfRange");for(var i=1;r<e;r++,i=0)i&&l.length&&a(t[r],"outOfRange"),a(t[r],"inRange");for(var i=1;u<n;u++)(!t.length||t[t.length-1]<s[u])&&(i&&(l.length&&a(l[l.length-1].value,"outOfRange"),i=0),a(s[u],"outOfRange"));var c=l.length;return{stops:l,outerColors:[c?l[0].color:"transparent",c?l[c-1].color:"transparent"]}}});function o(f,s,t){if(t[0]===t[1])return t.slice();for(var l=200,a=(t[1]-t[0])/l,r=t[0],u=[],e=0;e<=l&&r<t[1];e++)u.push(r),r+=a;return u.push(t[1]),u}var m=I;fe.exports=m},MHtr:function(fe,z,y){var D=y("bYtY");function N(E,I){var o=this.getAxis(),m=I instanceof Array?I[0]:I,f=(E instanceof Array?E[0]:E)/2;return o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(m-f)-o.dataToCoord(m+f))}function L(E){var I=E.getRect();return{coordSys:{type:"singleAxis",x:I.x,y:I.y,width:I.width,height:I.height},api:{coord:function(o){return E.dataToPoint(o)},size:D.bind(N,E)}}}fe.exports=L},MJZm:function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("q1tI"),o=y("fAei"),m=y("TSYQ"),f=y.n(m),s=y("RIqP"),t=y.n(s),l=y("J4zp"),a=y.n(l),r=y("sEfC"),u=y.n(r),e=y("OZM5"),n=y("815F"),i=y("vk+C"),c=y.n(i),d=y("Vy0f"),h=y.n(d),p=y("kGiB"),g=y.n(p),v=y("H84U"),A;(function(j){j[j.None=0]="None",j[j.Start=1]="Start",j[j.End=2]="End"})(A||(A={}));function x(j,H){function W(G){var V=G.key,Z=G.children;H(V,G)!==!1&&x(Z||[],H)}j.forEach(W)}function b(j){var H=j.treeData,W=j.expandedKeys,G=j.startKey,V=j.endKey,Z=[],Y=A.None;if(G&&G===V)return[G];if(!G||!V)return[];function Q(oe){return oe===G||oe===V}return x(H,function(oe){if(Y===A.End)return!1;if(Q(oe)){if(Z.push(oe),Y===A.None)Y=A.Start;else if(Y===A.Start)return Y=A.End,!1}else Y===A.Start&&Z.push(oe);return!(W.indexOf(oe)===-1)}),Z}function w(j,H){var W=t()(H),G=[];return x(j,function(V,Z){var Y=W.indexOf(V);return Y!==-1&&(G.push(Z),W.splice(Y,1)),!!W.length}),G}var S=function(j,H){var W={};for(var G in j)Object.prototype.hasOwnProperty.call(j,G)&&H.indexOf(G)<0&&(W[G]=j[G]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,G=Object.getOwnPropertySymbols(j);V<G.length;V++)H.indexOf(G[V])<0&&Object.prototype.propertyIsEnumerable.call(j,G[V])&&(W[G[V]]=j[G[V]]);return W};function T(j){var H=j.isLeaf,W=j.expanded;return H?I.createElement(c.a,null):W?I.createElement(h.a,null):I.createElement(g.a,null)}function C(j){var H=j.treeData,W=j.children;return H||Object(n.c)(W)}var O=function(H,W){var G=H.defaultExpandAll,V=H.defaultExpandParent,Z=H.defaultExpandedKeys,Y=S(H,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),Q=I.useRef(),oe=I.useRef(),ue=I.createRef();I.useImperativeHandle(W,function(){return ue.current});var Le=function(){var At=Object(n.a)(C(Y)),bt=At.keyEntities,St;return G?St=Object.keys(bt):V?St=Object(e.e)(Y.expandedKeys||Z,bt):St=Y.expandedKeys||Z,St},me=I.useState(Y.selectedKeys||Y.defaultSelectedKeys||[]),Ie=a()(me,2),X=Ie[0],q=Ie[1],We=I.useState(Le()),$=a()(We,2),J=$[0],le=$[1];I.useEffect(function(){"selectedKeys"in Y&&q(Y.selectedKeys)},[Y.selectedKeys]),I.useEffect(function(){"expandedKeys"in Y&&le(Y.expandedKeys)},[Y.expandedKeys]);var de=function(At,bt){var St=bt.isLeaf;if(St||At.shiftKey||At.metaKey||At.ctrlKey)return;ue.current.onNodeExpand(At,bt)},Ne=u()(de,200,{leading:!0}),we=function(At,bt){return"expandedKeys"in Y||le(At),Y.onExpand?Y.onExpand(At,bt):void 0},De=function(At,bt){var St=Y.expandAction;St==="click"&&Ne(At,bt),Y.onClick&&Y.onClick(At,bt)},Ee=function(At,bt){var St=Y.expandAction;St==="doubleClick"&&Ne(At,bt),Y.onDoubleClick&&Y.onDoubleClick(At,bt)},ce=function(At,bt){var St=Y.multiple,Et=bt.node,je=bt.nativeEvent,pe=Et.key,ie=pe===void 0?"":pe,st=C(Y),Qe=E()(E()({},bt),{selected:!0}),ve=je.ctrlKey||je.metaKey,Bt=je.shiftKey,qt;St&&ve?(qt=At,Q.current=ie,oe.current=qt,Qe.selectedNodes=w(st,qt)):St&&Bt?(qt=Array.from(new Set([].concat(t()(oe.current||[]),t()(b({treeData:st,expandedKeys:J,startKey:ie,endKey:Q.current}))))),Qe.selectedNodes=w(st,qt)):(qt=[ie],Q.current=ie,oe.current=qt,Qe.selectedNodes=w(st,qt)),Y.onSelect&&Y.onSelect(qt,Qe),"selectedKeys"in Y||q(qt)},ne=I.useContext(v.b),ee=ne.getPrefixCls,Ae=ne.direction,Ve=Y.prefixCls,Ke=Y.className,Oe=S(Y,["prefixCls","className"]),it=ee("tree",Ve),Fe=f()("".concat(it,"-directory"),Ke,N()({},"".concat(it,"-directory-rtl"),Ae==="rtl"));return I.createElement(P,E()({icon:T,ref:ue,blockNode:!0},Oe,{prefixCls:it,className:Fe,expandedKeys:J,selectedKeys:X,onSelect:ce,onClick:De,onDoubleClick:Ee,onExpand:we}))},_=I.forwardRef(O);_.displayName="DirectoryTree",_.defaultProps={showIcon:!0,expandAction:"click"};var M=_,k=y("EXcs"),R=y("2jpz"),B=I.forwardRef(function(j,H){var W,G=I.useContext(v.b),V=G.getPrefixCls,Z=G.direction,Y=G.virtual,Q=j.prefixCls,oe=j.className,ue=j.showIcon,Le=j.showLine,me=j.switcherIcon,Ie=j.blockNode,X=j.children,q=j.checkable,We=E()(E()({},j),{showLine:Boolean(Le)}),$=V("tree",Q);return I.createElement(o.b,E()({itemHeight:20,ref:H,virtual:Y},We,{prefixCls:$,className:f()(oe,(W={},N()(W,"".concat($,"-icon-hide"),!ue),N()(W,"".concat($,"-block-node"),Ie),N()(W,"".concat($,"-rtl"),Z==="rtl"),W)),checkable:q&&I.createElement("span",{className:"".concat($,"-checkbox-inner")}),switcherIcon:function(le){return Object(R.a)($,me,Le,le)}}),X)});B.TreeNode=o.a,B.DirectoryTree=M,B.defaultProps={checkable:!1,showIcon:!1,motion:E()(E()({},k.a),{motionAppear:!1}),blockNode:!1};var P=B,U=z.a=P},MKOG:function(fe,z,y){var D=y("bYtY"),N=y("YH21"),L=N.Dispatcher,E=y("mLcG"),I=y("Bq2U"),o=function(s){s=s||{},this.stage=s.stage||{},this.onframe=s.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,L.call(this)};o.prototype={constructor:o,addClip:function(s){this._clips.push(s)},addAnimator:function(s){s.animation=this;for(var t=s.getClips(),l=0;l<t.length;l++)this.addClip(t[l])},removeClip:function(s){var t=D.indexOf(this._clips,s);t>=0&&this._clips.splice(t,1)},removeAnimator:function(s){for(var t=s.getClips(),l=0;l<t.length;l++)this.removeClip(t[l]);s.animation=null},_update:function(){for(var s=new Date().getTime()-this._pausedTime,t=s-this._time,l=this._clips,a=l.length,r=[],u=[],e=0;e<a;e++){var n=l[e],i=n.step(s,t);i&&(r.push(i),u.push(n))}for(var e=0;e<a;)l[e]._needsRemove?(l[e]=l[a-1],l.pop(),a--):e++;a=r.length;for(var e=0;e<a;e++)u[e].fire(r[e]);this._time=s,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var s=this;this._running=!0;function t(){s._running&&(E(t),!s._paused&&s._update())}E(t)},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(s,t){t=t||{};var l=new I(s,t.loop,t.getter,t.setter);return this.addAnimator(l),l}},D.mixin(o,L);var m=o;fe.exports=m},MRoa:function(fe,z,y){var D=y("ProS");y("0Bwj"),y("W2nI"),y("vcCh");var N=y("gawk"),L=y("Dg8C");D.registerLayout(N),D.registerVisual(L)},MT78:function(fe,z,y){var D=y("ProS");(function(){for(var L in D){if(D==null||!D.hasOwnProperty(L)||L==="default"||L==="__esModule")return;z[L]=D[L]}})();var N=y("txkQ");(function(){for(var L in N){if(N==null||!N.hasOwnProperty(L)||L==="default"||L==="__esModule")return;z[L]=N[L]}})(),y("A1Ka"),y("75ce"),y("lLGD"),y("wDdD"),y("Fa/5"),y("jett"),y("Z1wy"),y("75ev"),y("2uGb"),y("I+77"),y("B+YJ"),y("pLH3"),y("CBdT"),y("MRoa"),y("+lIL"),y("CF2D"),y("ERHi"),y("p+If"),y("XOKv"),y("qt/9"),y("bBL8"),y("1xaR"),y("4Feb"),y("zRKj"),y("L3Oj"),y("0HBW"),y("LPzL"),y("8waO"),y("k5C7"),y("f1nB"),y("sRwP"),y("AH3D"),y("y4/Y"),y("LzGr"),y("Ynxi"),y("7pVf"),y("2w7y"),y("laiN"),y("fjKi"),y("C0tN"),y("0o9m"),y("Cm0C"),y("f3JH"),y("5NHt"),y("VFCP"),y("dBmv"),y("KamJ"),y("8XDt"),y("juDX")},MXD1:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("Kvyg"),E=y.n(L)},MZdM:function(fe,z,y){"use strict";function D(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(e){return typeof e}:D=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(r)}Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var N=f(y("Lo0S")),L=o(y("N/zr")),E=y("GdRQ"),I=y("GQ8N");function o(r){return r&&r.__esModule?r:{default:r}}function m(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return m=function(){return r},r}function f(r){if(r&&r.__esModule)return r;if(r===null||D(r)!=="object"&&typeof r!="function")return{default:r};var u=m();if(u&&u.has(r))return u.get(r);var e={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){var c=n?Object.getOwnPropertyDescriptor(r,i):null;c&&(c.get||c.set)?Object.defineProperty(e,i,c):e[i]=r[i]}return e.default=r,u&&u.set(r,e),e}function s(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}function t(r,u){for(var e=0;e<u.length;e++){var n=u[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function l(r,u,e){return u&&t(r.prototype,u),e&&t(r,e),r}var a=function(){function r(u){if(s(this,r),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,N.Debug(">> Display.constructor"),this._target=u,!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},N.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),N.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return l(r,[{key:"viewportChangePos",value:function(e,n){var i=this._viewportLoc;e=Math.floor(e),n=Math.floor(n),this._clipViewport||(e=-i.w,n=-i.h);var c=i.x+i.w-1,d=i.y+i.h-1;if(e<0&&i.x+e<0&&(e=-i.x),c+e>=this._fbWidth&&(e-=c+e-this._fbWidth+1),i.y+n<0&&(n=-i.y),d+n>=this._fbHeight&&(n-=d+n-this._fbHeight+1),e===0&&n===0)return;N.Debug("viewportChange deltaX: "+e+", deltaY: "+n),i.x+=e,i.y+=n,this._damage(i.x,i.y,i.w,i.h),this.flip()}},{key:"viewportChangeSize",value:function(e,n){(!this._clipViewport||typeof e=="undefined"||typeof n=="undefined")&&(N.Debug("Setting viewport to full display region"),e=this._fbWidth,n=this._fbHeight),e=Math.floor(e),n=Math.floor(n),e>this._fbWidth&&(e=this._fbWidth),n>this._fbHeight&&(n=this._fbHeight);var i=this._viewportLoc;if(i.w!==e||i.h!==n){i.w=e,i.h=n;var c=this._target;c.width=e,c.height=n,this.viewportChangePos(0,0),this._damage(i.x,i.y,i.w,i.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(e){return this._scale===0?0:(0,I.toSigned32bit)(e/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(e){return this._scale===0?0:(0,I.toSigned32bit)(e/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(e,n){this._prevDrawStyle="",this._fbWidth=e,this._fbHeight=n;var i=this._backbuffer;if(i.width!==e||i.height!==n){var c=null;i.width>0&&i.height>0&&(c=this._drawCtx.getImageData(0,0,i.width,i.height)),i.width!==e&&(i.width=e),i.height!==n&&(i.height=n),c&&this._drawCtx.putImageData(c,0,0)}var d=this._viewportLoc;this.viewportChangeSize(d.w,d.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(e,n,i,c){e<this._damageBounds.left&&(this._damageBounds.left=e),n<this._damageBounds.top&&(this._damageBounds.top=n),e+i>this._damageBounds.right&&(this._damageBounds.right=e+i),n+c>this._damageBounds.bottom&&(this._damageBounds.bottom=n+c)}},{key:"flip",value:function(e){if(this._renderQ.length!==0&&!e)this._renderQPush({type:"flip"});else{var n=this._damageBounds.left,i=this._damageBounds.top,c=this._damageBounds.right-n,d=this._damageBounds.bottom-i,h=n-this._viewportLoc.x,p=i-this._viewportLoc.y;h<0&&(c+=h,n-=h,h=0),p<0&&(d+=p,i-=p,p=0),h+c>this._viewportLoc.w&&(c=this._viewportLoc.w-h),p+d>this._viewportLoc.h&&(d=this._viewportLoc.h-p),c>0&&d>0&&this._targetCtx.drawImage(this._backbuffer,n,i,c,d,h,p,c,d),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(e,n,i,c,d,h){this._renderQ.length!==0&&!h?this._renderQPush({type:"fill",x:e,y:n,width:i,height:c,color:d}):(this._setFillColor(d),this._drawCtx.fillRect(e,n,i,c),this._damage(e,n,i,c))}},{key:"copyImage",value:function(e,n,i,c,d,h,p){this._renderQ.length!==0&&!p?this._renderQPush({type:"copy",oldX:e,oldY:n,x:i,y:c,width:d,height:h}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,e,n,d,h,i,c,d,h),this._damage(i,c,d,h))}},{key:"imageRect",value:function(e,n,i,c,d,h){if(i===0||c===0)return;var p=new Image;p.src="data: "+d+";base64,"+L.default.encode(h),this._renderQPush({type:"img",img:p,x:e,y:n,width:i,height:c})}},{key:"startTile",value:function(e,n,i,c,d){this._tileX=e,this._tileY=n,i===16&&c===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(i,c);for(var h=d[2],p=d[1],g=d[0],v=this._tile.data,A=0;A<i*c*4;A+=4)v[A]=h,v[A+1]=p,v[A+2]=g,v[A+3]=255}},{key:"subTile",value:function(e,n,i,c,d){for(var h=d[2],p=d[1],g=d[0],v=e+i,A=n+c,x=this._tile.data,b=this._tile.width,w=n;w<A;w++)for(var S=e;S<v;S++){var T=(S+w*b)*4;x[T]=h,x[T+1]=p,x[T+2]=g,x[T+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(e,n,i,c,d,h,p){if(this._renderQ.length!==0&&!p){var g=new Uint8Array(i*c*4);g.set(new Uint8Array(d.buffer,0,g.length)),this._renderQPush({type:"blit",data:g,x:e,y:n,width:i,height:c})}else this._bgrxImageData(e,n,i,c,d,h)}},{key:"blitRgbImage",value:function(e,n,i,c,d,h,p){if(this._renderQ.length!==0&&!p){var g=new Uint8Array(i*c*3);g.set(new Uint8Array(d.buffer,0,g.length)),this._renderQPush({type:"blitRgb",data:g,x:e,y:n,width:i,height:c})}else this._rgbImageData(e,n,i,c,d,h)}},{key:"blitRgbxImage",value:function(e,n,i,c,d,h,p){if(this._renderQ.length!==0&&!p){var g=new Uint8Array(i*c*4);g.set(new Uint8Array(d.buffer,0,g.length)),this._renderQPush({type:"blitRgbx",data:g,x:e,y:n,width:i,height:c})}else this._rgbxImageData(e,n,i,c,d,h)}},{key:"drawImage",value:function(e,n,i){this._drawCtx.drawImage(e,n,i),this._damage(n,i,e.width,e.height)}},{key:"autoscale",value:function(e,n){var i;if(e===0||n===0)i=0;else{var c=this._viewportLoc,d=e/n,h=c.w/c.h;h>=d?i=e/c.w:i=n/c.h}this._rescale(i)}},{key:"_rescale",value:function(e){this._scale=e;var n=this._viewportLoc,i=e*n.w+"px",c=e*n.h+"px";(this._target.style.width!==i||this._target.style.height!==c)&&(this._target.style.width=i,this._target.style.height=c)}},{key:"_setFillColor",value:function(e){var n="rgb("+e[2]+","+e[1]+","+e[0]+")";n!==this._prevDrawStyle&&(this._drawCtx.fillStyle=n,this._prevDrawStyle=n)}},{key:"_rgbImageData",value:function(e,n,i,c,d,h){for(var p=this._drawCtx.createImageData(i,c),g=p.data,v=0,A=h;v<i*c*4;v+=4,A+=3)g[v]=d[A],g[v+1]=d[A+1],g[v+2]=d[A+2],g[v+3]=255;this._drawCtx.putImageData(p,e,n),this._damage(e,n,p.width,p.height)}},{key:"_bgrxImageData",value:function(e,n,i,c,d,h){for(var p=this._drawCtx.createImageData(i,c),g=p.data,v=0,A=h;v<i*c*4;v+=4,A+=4)g[v]=d[A+2],g[v+1]=d[A+1],g[v+2]=d[A],g[v+3]=255;this._drawCtx.putImageData(p,e,n),this._damage(e,n,p.width,p.height)}},{key:"_rgbxImageData",value:function(e,n,i,c,d,h){var p;E.supportsImageMetadata?p=new ImageData(new Uint8ClampedArray(d.buffer,d.byteOffset,i*c*4),i,c):(p=this._drawCtx.createImageData(i,c),p.data.set(new Uint8ClampedArray(d.buffer,d.byteOffset,i*c*4))),this._drawCtx.putImageData(p,e,n),this._damage(e,n,p.width,p.height)}},{key:"_renderQPush",value:function(e){this._renderQ.push(e),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 e=!0;e&&this._renderQ.length>0;){var n=this._renderQ[0];switch(n.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(n.oldX,n.oldY,n.x,n.y,n.width,n.height,!0);break;case"fill":this.fillRect(n.x,n.y,n.width,n.height,n.color,!0);break;case"blit":this.blitImage(n.x,n.y,n.width,n.height,n.data,0,!0);break;case"blitRgb":this.blitRgbImage(n.x,n.y,n.width,n.height,n.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(n.x,n.y,n.width,n.height,n.data,0,!0);break;case"img":if(n.img.complete&&n.img.width!==0&&n.img.height!==0){if(n.img.width!==n.width||n.img.height!==n.height){N.Error("Decoded image has incorrect dimensions. Got "+n.img.width+"x"+n.img.height+". Expected "+n.width+"x"+n.height+".");return}this.drawImage(n.img,n.x,n.y)}else n.img._noVNCDisplay=this,n.img.addEventListener("load",this._resumeRenderQ),e=!1;break}e&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(e){this._rescale(e)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(e){this._clipViewport=e;var n=this._viewportLoc;this.viewportChangeSize(n.w,n.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),r}();z.default=a},Mdki:function(fe,z,y){var D=y("bYtY"),N=D.each,L="\0__link_datas",E="\0__link_mainData";function I(u){var e=u.mainData,n=u.datas;n||(n={main:e},u.datasAttr={main:"data"}),u.datas=u.mainData=null,l(e,n,u),N(n,function(i){N(e.TRANSFERABLE_METHODS,function(c){i.wrapMethod(c,D.curry(o,u))})}),e.wrapMethod("cloneShallow",D.curry(f,u)),N(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,D.curry(m,u))}),D.assert(n[e.dataType]===e)}function o(u,e){if(t(this)){var n=D.extend({},this[L]);n[this.dataType]=e,l(e,n,u)}else a(e,this.dataType,this[E],u);return e}function m(u,e){return u.struct&&u.struct.update(this),e}function f(u,e){return N(e[L],function(n,i){n!==e&&a(n.cloneShallow(),i,e,u)}),e}function s(u){var e=this[E];return u==null||e==null?e:e[L][u]}function t(u){return u[E]===u}function l(u,e,n){u[L]={},N(e,function(i,c){a(i,c,u,n)})}function a(u,e,n,i){n[L][e]=u,u[E]=n,u.dataType=e,i.struct&&(u[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=u),u.getLinkedData=s}var r=I;fe.exports=r},Mds0:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("8IMR")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="StarFilled";var f=E.forwardRef(m);z.default=f},Mgri:function(fe,z,y){for(var D=y("bYtY"),N=y("8nly"),L=[126,25],E=[[[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]]],I=0;I<E.length;I++)for(var o=0;o<E[I].length;o++)E[I][o][0]/=10.5,E[I][o][1]/=-10.5/.75,E[I][o][0]+=L[0],E[I][o][1]+=L[1];function m(f,s){f==="china"&&s.push(new N("\u5357\u6D77\u8BF8\u5C9B",D.map(E,function(t){return{type:"polygon",exterior:t}}),L))}fe.exports=m},MlIO:function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){return function(N){var L=D,E=L.lib,I=E.Base,o=E.WordArray,m=L.x64={},f=m.Word=I.extend({init:function(l,a){this.high=l,this.low=a}}),s=m.WordArray=I.extend({init:function(l,a){l=this.words=l||[],a!=N?this.sigBytes=a:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,a=l.length,r=[],u=0;u<a;u++){var e=l[u];r.push(e.high),r.push(e.low)}return o.create(r,this.sigBytes)},clone:function(){for(var l=I.clone.call(this),a=l.words=this.words.slice(0),r=a.length,u=0;u<r;u++)a[u]=a[u].clone();return l}})}(),D})},Mmt2:function(fe,z,y){"use strict";function D(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(r){return typeof r}:D=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},D(l)}Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var N=E(y("Lo0S"));function L(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return L=function(){return l},l}function E(l){if(l&&l.__esModule)return l;if(l===null||D(l)!=="object"&&typeof l!="function")return{default:l};var a=L();if(a&&a.has(l))return a.get(l);var r={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)){var n=u?Object.getOwnPropertyDescriptor(l,e):null;n&&(n.get||n.set)?Object.defineProperty(r,e,n):r[e]=l[e]}return r.default=l,a&&a.set(l,r),r}function I(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){for(var r=0;r<a.length;r++){var u=a[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function m(l,a,r){return a&&o(l.prototype,a),r&&o(l,r),l}var f=!1,s=40*1024*1024,t=function(){function l(){I(this,l),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 m(l,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(r){this._rQi+=r}},{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(r){for(var u=0,e=r-1;e>=0;e--)u+=this._rQ[this._rQi++]<<e*8;return u}},{key:"rQshiftStr",value:function(r){typeof r=="undefined"&&(r=this.rQlen);for(var u="",e=0;e<r;e+=4096){var n=this.rQshiftBytes(Math.min(4096,r-e));u+=String.fromCharCode.apply(null,n)}return u}},{key:"rQshiftBytes",value:function(r){return typeof r=="undefined"&&(r=this.rQlen),this._rQi+=r,new Uint8Array(this._rQ.buffer,this._rQi-r,r)}},{key:"rQshiftTo",value:function(r,u){u===void 0&&(u=this.rQlen),r.set(new Uint8Array(this._rQ.buffer,this._rQi,u)),this._rQi+=u}},{key:"rQslice",value:function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+r,u-r)}},{key:"rQwait",value:function(r,u,e){if(this.rQlen<u){if(e){if(this._rQi<e)throw new Error("rQwait cannot backup "+e+" bytes");this._rQi-=e}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(r){this._sQ.set(r,this._sQlen),this._sQlen+=r.length,this.flush()}},{key:"sendString",value:function(r){this.send(r.split("").map(function(u){return u.charCodeAt(0)}))}},{key:"off",value:function(r){this._eventHandlers[r]=function(){}}},{key:"on",value:function(r,u){this._eventHandlers[r]=u}},{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(r,u){var e=this;this.init(),this._websocket=new WebSocket(r,u),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){N.Debug(">> WebSock.onopen"),e._websocket.protocol&&N.Info("Server choose sub-protocol: "+e._websocket.protocol),e._eventHandlers.open(),N.Debug("<< WebSock.onopen")},this._websocket.onclose=function(n){N.Debug(">> WebSock.onclose"),e._eventHandlers.close(n),N.Debug("<< WebSock.onclose")},this._websocket.onerror=function(n){N.Debug(">> WebSock.onerror: "+n),e._eventHandlers.error(n),N.Debug("<< WebSock.onerror: "+n)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(N.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(r){var u=(this._rQlen-this._rQi+r)*8,e=this._rQbufferSize<u;if(e&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,u)),this._rQbufferSize>s&&(this._rQbufferSize=s,this._rQbufferSize-this.rQlen<r))throw new Error("Receive Queue buffer exceeded "+s+" bytes, and the new message could not fit");if(e){var n=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(n,this._rQi,this._rQlen-this._rQi))}else f?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(r){var u=new Uint8Array(r);u.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(u.length),this._rQ.set(u,this._rQlen),this._rQlen+=u.length}},{key:"_recvMessage",value:function(r){this._DecodeMessage(r.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):N.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(r){this._rQi=r}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),l}();z.default=t},MqEG:function(fe,z,y){var D=y("bYtY"),N=y("fc+c"),L=y("72pK"),E=y("VXYp"),I=D.bind,o=N.extend({type:"dataZoom.inside",init:function(l,a){this._range},render:function(l,a,r,u){o.superApply(this,"render",arguments),this._range=l.getPercentRange(),D.each(this.getTargetCoordInfo(),function(e,n){var i=D.map(e,function(c){return E.generateCoordId(c.model)});D.each(e,function(c){var d=c.model,h={};D.each(["pan","zoom","scrollMove"],function(p){h[p]=I(m[p],this,c,n)},this),E.register(r,{coordId:E.generateCoordId(d),allCoordIds:i,containsPoint:function(p,g,v){return d.coordinateSystem.containPoint([g,v])},dataZoomId:l.id,dataZoomModel:l,getRange:h})},this)},this)},dispose:function(){E.unregister(this.api,this.dataZoomModel.id),o.superApply(this,"dispose",arguments),this._range=null}}),m={zoom:function(l,a,r,u){var e=this._range,n=e.slice(),i=l.axisModels[0];if(!i)return;var c=s[a](null,[u.originX,u.originY],i,r,l),d=(c.signal>0?c.pixelStart+c.pixelLength-c.pixel:c.pixel-c.pixelStart)/c.pixelLength*(n[1]-n[0])+n[0],h=Math.max(1/u.scale,0);n[0]=(n[0]-d)*h+d,n[1]=(n[1]-d)*h+d;var p=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(L(0,n,[0,100],0,p.minSpan,p.maxSpan),this._range=n,e[0]!==n[0]||e[1]!==n[1])return n},pan:f(function(l,a,r,u,e,n){var i=s[u]([n.oldX,n.oldY],[n.newX,n.newY],a,e,r);return i.signal*(l[1]-l[0])*i.pixel/i.pixelLength}),scrollMove:f(function(l,a,r,u,e,n){var i=s[u]([0,0],[n.scrollDelta,n.scrollDelta],a,e,r);return i.signal*(l[1]-l[0])*n.scrollDelta})};function f(l){return function(a,r,u,e){var n=this._range,i=n.slice(),c=a.axisModels[0];if(!c)return;var d=l(i,c,a,r,u,e);if(L(d,i,[0,100],"all"),this._range=i,n[0]!==i[0]||n[1]!==i[1])return i}}var s={grid:function(l,a,r,u,e){var n=r.axis,i={},c=e.model.coordinateSystem.getRect();return l=l||[0,0],n.dim==="x"?(i.pixel=a[0]-l[0],i.pixelLength=c.width,i.pixelStart=c.x,i.signal=n.inverse?1:-1):(i.pixel=a[1]-l[1],i.pixelLength=c.height,i.pixelStart=c.y,i.signal=n.inverse?-1:1),i},polar:function(l,a,r,u,e){var n=r.axis,i={},c=e.model.coordinateSystem,d=c.getRadiusAxis().getExtent(),h=c.getAngleAxis().getExtent();return l=l?c.pointToCoord(l):[0,0],a=c.pointToCoord(a),r.mainType==="radiusAxis"?(i.pixel=a[0]-l[0],i.pixelLength=d[1]-d[0],i.pixelStart=d[0],i.signal=n.inverse?1:-1):(i.pixel=a[1]-l[1],i.pixelLength=h[1]-h[0],i.pixelStart=h[0],i.signal=n.inverse?-1:1),i},singleAxis:function(l,a,r,u,e){var n=r.axis,i=e.model.coordinateSystem.getRect(),c={};return l=l||[0,0],n.orient==="horizontal"?(c.pixel=a[0]-l[0],c.pixelLength=i.width,c.pixelStart=i.x,c.signal=n.inverse?1:-1):(c.pixel=a[1]-l[1],c.pixelLength=i.height,c.pixelStart=i.y,c.signal=n.inverse?-1:1),c}},t=o;fe.exports=t},MwEJ:function(fe,z,y){var D=y("bYtY"),N=y("YXkt"),L=y("sdST"),E=y("k9D9"),I=E.SOURCE_FORMAT_ORIGINAL,o=y("L0Ub"),m=o.getDimensionTypeByAxis,f=y("4NO4"),s=f.getDataItemValue,t=y("IDmD"),l=y("i38C"),a=l.getCoordSysInfoBySeries,r=y("7G+c"),u=y("7hqr"),e=u.enableDataStack,n=y("D5nY"),i=n.makeSeriesEncodeForAxisCoordSys;function c(g,v,A){A=A||{},r.isInstance(g)||(g=r.seriesDataToSource(g));var x=v.get("coordinateSystem"),b=t.get(x),w=a(v),S;w&&(S=D.map(w.coordSysDims,function(R){var B={name:R},P=w.axisMap.get(R);if(P){var U=P.get("type");B.type=m(U)}return B})),S||(S=b&&(b.getDimensionsInfo?b.getDimensionsInfo():b.dimensions.slice())||["x","y"]);var T=L(g,{coordDimensions:S,generateCoord:A.generateCoord,encodeDefaulter:A.useEncodeDefaulter?D.curry(i,S,v):null}),C,O;w&&D.each(T,function(R,B){var P=R.coordDim,U=w.categoryAxisMap.get(P);U&&(C==null&&(C=B),R.ordinalMeta=U.getOrdinalMeta()),R.otherDims.itemName!=null&&(O=!0)}),!O&&C!=null&&(T[C].otherDims.itemName=0);var _=e(v,T),M=new N(T,v);M.setCalculationInfo(_);var k=C!=null&&d(g)?function(R,B,P,U){return U===C?P:this.defaultDimValueGetter(R,B,P,U)}:null;return M.hasItemOption=!1,M.initData(g,null,k),M}function d(g){if(g.sourceFormat===I){var v=h(g.data||[]);return v!=null&&!D.isArray(s(v))}}function h(g){for(var v=0;v<g.length&&g[v]==null;)v++;return g[v]}var p=c;fe.exports=p},Mylv:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("IwbS"),E=y("oVpE"),I=E.createSymbol,o=y("OELB"),m=o.parsePercent,f=o.isNumeric,s=y("56rv"),t=s.setLabel,l=["itemStyle","borderWidth"],a=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],r=new L.Circle,u=D.extendChartView({type:"pictorialBar",render:function(j,H,W){var G=this.group,V=j.getData(),Z=this._data,Y=j.coordinateSystem,Q=Y.getBaseAxis(),oe=!!Q.isHorizontal(),ue=Y.grid.getRect(),Le={ecSize:{width:W.getWidth(),height:W.getHeight()},seriesModel:j,coordSys:Y,coordSysExtent:[[ue.x,ue.x+ue.width],[ue.y,ue.y+ue.height]],isHorizontal:oe,valueDim:a[+oe],categoryDim:a[1-oe]};return V.diff(Z).add(function(me){if(!V.hasValue(me))return;var Ie=b(V,me),X=e(V,me,Ie,Le),q=C(V,Le,X);V.setItemGraphicEl(me,q),G.add(q),B(q,Le,X)}).update(function(me,Ie){var X=Z.getItemGraphicEl(Ie);if(!V.hasValue(me)){G.remove(X);return}var q=b(V,me),We=e(V,me,q,Le),$=M(V,We);X&&$!==X.__pictorialShapeStr&&(G.remove(X),V.setItemGraphicEl(me,null),X=null),X?O(X,Le,We):X=C(V,Le,We,!0),V.setItemGraphicEl(me,X),X.__pictorialSymbolMeta=We,G.add(X),B(X,Le,We)}).remove(function(me){var Ie=Z.getItemGraphicEl(me);Ie&&_(Z,me,Ie.__pictorialSymbolMeta.animationModel,Ie)}).execute(),this._data=V,this.group},dispose:N.noop,remove:function(j,H){var W=this.group,G=this._data;j.get("animation")?G&&G.eachItemGraphicEl(function(V){_(G,V.dataIndex,j,V)}):W.removeAll()}});function e(j,H,W,G){var V=j.getItemLayout(H),Z=W.get("symbolRepeat"),Y=W.get("symbolClip"),Q=W.get("symbolPosition")||"start",oe=W.get("symbolRotate"),ue=(oe||0)*Math.PI/180||0,Le=W.get("symbolPatternSize")||2,me=W.isAnimationEnabled(),Ie={dataIndex:H,layout:V,itemModel:W,symbolType:j.getItemVisual(H,"symbol")||"circle",color:j.getItemVisual(H,"color"),symbolClip:Y,symbolRepeat:Z,symbolRepeatDirection:W.get("symbolRepeatDirection"),symbolPatternSize:Le,rotation:ue,animationModel:me?W:null,hoverAnimation:me&&W.get("hoverAnimation"),z2:W.getShallow("z",!0)||0};n(W,Z,V,G,Ie),c(j,H,V,Z,Y,Ie.boundingLength,Ie.pxSign,Le,G,Ie),d(W,Ie.symbolScale,ue,G,Ie);var X=Ie.symbolSize,q=W.get("symbolOffset");return N.isArray(q)&&(q=[m(q[0],X[0]),m(q[1],X[1])]),h(W,X,V,Z,Y,q,Q,Ie.valueLineWidth,Ie.boundingLength,Ie.repeatCutLength,G,Ie),Ie}function n(j,H,W,G,V){var Z=G.valueDim,Y=j.get("symbolBoundingData"),Q=G.coordSys.getOtherAxis(G.coordSys.getBaseAxis()),oe=Q.toGlobalCoord(Q.dataToCoord(0)),ue=1-+(W[Z.wh]<=0),Le;if(N.isArray(Y)){var me=[i(Q,Y[0])-oe,i(Q,Y[1])-oe];me[1]<me[0]&&me.reverse(),Le=me[ue]}else Y!=null?Le=i(Q,Y)-oe:H?Le=G.coordSysExtent[Z.index][ue]-oe:Le=W[Z.wh];V.boundingLength=Le,H&&(V.repeatCutLength=W[Z.wh]),V.pxSign=Le>0?1:Le<0?-1:0}function i(j,H){return j.toGlobalCoord(j.dataToCoord(j.scale.parse(H)))}function c(j,H,W,G,V,Z,Y,Q,oe,ue){var Le=oe.valueDim,me=oe.categoryDim,Ie=Math.abs(W[me.wh]),X=j.getItemVisual(H,"symbolSize");N.isArray(X)?X=X.slice():(X==null&&(X="100%"),X=[X,X]),X[me.index]=m(X[me.index],Ie),X[Le.index]=m(X[Le.index],G?Ie:Math.abs(Z)),ue.symbolSize=X;var q=ue.symbolScale=[X[0]/Q,X[1]/Q];q[Le.index]*=(oe.isHorizontal?-1:1)*Y}function d(j,H,W,G,V){var Z=j.get(l)||0;Z&&(r.attr({scale:H.slice(),rotation:W}),r.updateTransform(),Z/=r.getLineScale(),Z*=H[G.valueDim.index]),V.valueLineWidth=Z}function h(j,H,W,G,V,Z,Y,Q,oe,ue,Le,me){var Ie=Le.categoryDim,X=Le.valueDim,q=me.pxSign,We=Math.max(H[X.index]+Q,0),$=We;if(G){var J=Math.abs(oe),le=N.retrieve(j.get("symbolMargin"),"15%")+"",de=!1;le.lastIndexOf("!")===le.length-1&&(de=!0,le=le.slice(0,le.length-1)),le=m(le,H[X.index]);var Ne=Math.max(We+le*2,0),we=de?0:le*2,De=f(G),Ee=De?G:P((J+we)/Ne),ce=J-Ee*We;le=ce/2/(de?Ee:Ee-1),Ne=We+le*2,we=de?0:le*2,!De&&G!=="fixed"&&(Ee=ue?P((Math.abs(ue)+we)/Ne):0),$=Ee*Ne-we,me.repeatTimes=Ee,me.symbolMargin=le}var ne=q*($/2),ee=me.pathPosition=[];ee[Ie.index]=W[Ie.wh]/2,ee[X.index]=Y==="start"?ne:Y==="end"?oe-ne:oe/2,Z&&(ee[0]+=Z[0],ee[1]+=Z[1]);var Ae=me.bundlePosition=[];Ae[Ie.index]=W[Ie.xy],Ae[X.index]=W[X.xy];var Ve=me.barRectShape=N.extend({},W);Ve[X.wh]=q*Math.max(Math.abs(W[X.wh]),Math.abs(ee[X.index]+ne)),Ve[Ie.wh]=W[Ie.wh];var Ke=me.clipShape={};Ke[Ie.xy]=-W[Ie.xy],Ke[Ie.wh]=Le.ecSize[Ie.wh],Ke[X.xy]=0,Ke[X.wh]=W[X.wh]}function p(j){var H=j.symbolPatternSize,W=I(j.symbolType,-H/2,-H/2,H,H,j.color);return W.attr({culling:!0}),W.type!=="image"&&W.setStyle({strokeNoScale:!0}),W}function g(j,H,W,G){var V=j.__pictorialBundle,Z=W.symbolSize,Y=W.valueLineWidth,Q=W.pathPosition,oe=H.valueDim,ue=W.repeatTimes||0,Le=0,me=Z[H.valueDim.index]+Y+W.symbolMargin*2;for(k(j,function(J){J.__pictorialAnimationIndex=Le,J.__pictorialRepeatTimes=ue,Le<ue?R(J,null,q(Le),W,G):R(J,null,{scale:[0,0]},W,G,function(){V.remove(J)}),T(J,W),Le++});Le<ue;Le++){var Ie=p(W);Ie.__pictorialAnimationIndex=Le,Ie.__pictorialRepeatTimes=ue,V.add(Ie);var X=q(Le);R(Ie,{position:X.position,scale:[0,0]},{scale:X.scale,rotation:X.rotation},W,G),Ie.on("mouseover",We).on("mouseout",$),T(Ie,W)}function q(J){var le=Q.slice(),de=W.pxSign,Ne=J;return(W.symbolRepeatDirection==="start"?de>0:de<0)&&(Ne=ue-1-J),le[oe.index]=me*(Ne-ue/2+.5)+Q[oe.index],{position:le,scale:W.symbolScale.slice(),rotation:W.rotation}}function We(){k(j,function(J){J.trigger("emphasis")})}function $(){k(j,function(J){J.trigger("normal")})}}function v(j,H,W,G){var V=j.__pictorialBundle,Z=j.__pictorialMainPath;Z?R(Z,null,{position:W.pathPosition.slice(),scale:W.symbolScale.slice(),rotation:W.rotation},W,G):(Z=j.__pictorialMainPath=p(W),V.add(Z),R(Z,{position:W.pathPosition.slice(),scale:[0,0],rotation:W.rotation},{scale:W.symbolScale.slice()},W,G),Z.on("mouseover",Y).on("mouseout",Q)),T(Z,W);function Y(){this.trigger("emphasis")}function Q(){this.trigger("normal")}}function A(j,H,W){var G=N.extend({},H.barRectShape),V=j.__pictorialBarRect;V?R(V,null,{shape:G},H,W):(V=j.__pictorialBarRect=new L.Rect({z2:2,shape:G,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),j.add(V))}function x(j,H,W,G){if(W.symbolClip){var V=j.__pictorialClipPath,Z=N.extend({},W.clipShape),Y=H.valueDim,Q=W.animationModel,oe=W.dataIndex;if(V)L.updateProps(V,{shape:Z},Q,oe);else{Z[Y.wh]=0,V=new L.Rect({shape:Z}),j.__pictorialBundle.setClipPath(V),j.__pictorialClipPath=V;var ue={};ue[Y.wh]=W.clipShape[Y.wh],L[G?"updateProps":"initProps"](V,{shape:ue},Q,oe)}}}function b(j,H){var W=j.getItemModel(H);return W.getAnimationDelayParams=w,W.isAnimationEnabled=S,W}function w(j){return{index:j.__pictorialAnimationIndex,count:j.__pictorialRepeatTimes}}function S(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function T(j,H){j.off("emphasis").off("normal");var W=H.symbolScale.slice();H.hoverAnimation&&j.on("emphasis",function(){this.animateTo({scale:[W[0]*1.1,W[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:W.slice()},400,"elasticOut")})}function C(j,H,W,G){var V=new L.Group,Z=new L.Group;return V.add(Z),V.__pictorialBundle=Z,Z.attr("position",W.bundlePosition.slice()),W.symbolRepeat?g(V,H,W):v(V,H,W),A(V,W,G),x(V,H,W,G),V.__pictorialShapeStr=M(j,W),V.__pictorialSymbolMeta=W,V}function O(j,H,W){var G=W.animationModel,V=W.dataIndex,Z=j.__pictorialBundle;L.updateProps(Z,{position:W.bundlePosition.slice()},G,V),W.symbolRepeat?g(j,H,W,!0):v(j,H,W,!0),A(j,W,!0),x(j,H,W,!0)}function _(j,H,W,G){var V=G.__pictorialBarRect;V&&(V.style.text=null);var Z=[];k(G,function(Y){Z.push(Y)}),G.__pictorialMainPath&&Z.push(G.__pictorialMainPath),G.__pictorialClipPath&&(W=null),N.each(Z,function(Y){L.updateProps(Y,{scale:[0,0]},W,H,function(){G.parent&&G.parent.remove(G)})}),j.setItemGraphicEl(H,null)}function M(j,H){return[j.getItemVisual(H.dataIndex,"symbol")||"none",!!H.symbolRepeat,!!H.symbolClip].join(":")}function k(j,H,W){N.each(j.__pictorialBundle.children(),function(G){G!==j.__pictorialBarRect&&H.call(W,G)})}function R(j,H,W,G,V,Z){H&&j.attr(H),G.symbolClip&&!V?W&&j.attr(W):W&&L[V?"updateProps":"initProps"](j,W,G.animationModel,G.dataIndex,Z)}function B(j,H,W){var G=W.color,V=W.dataIndex,Z=W.itemModel,Y=Z.getModel("itemStyle").getItemStyle(["color"]),Q=Z.getModel("emphasis.itemStyle").getItemStyle(),oe=Z.getShallow("cursor");k(j,function(Ie){Ie.setColor(G),Ie.setStyle(N.defaults({fill:G,opacity:W.opacity},Y)),L.setHoverStyle(Ie,Q),oe&&(Ie.cursor=oe),Ie.z2=W.z2});var ue={},Le=H.valueDim.posDesc[+(W.boundingLength>0)],me=j.__pictorialBarRect;t(me.style,ue,Z,G,H.seriesModel,V,Le),L.setHoverStyle(me,ue)}function P(j){var H=Math.round(j);return Math.abs(j-H)<1e-4?H:Math.ceil(j)}var U=u;fe.exports=U},"N/zr":function(fe,z,y){"use strict";function D(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(f){return typeof f}:D=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},D(o)}Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var N=E(y("Lo0S"));function L(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return L=function(){return o},o}function E(o){if(o&&o.__esModule)return o;if(o===null||D(o)!=="object"&&typeof o!="function")return{default:o};var m=L();if(m&&m.has(o))return m.get(o);var f={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in o)if(Object.prototype.hasOwnProperty.call(o,t)){var l=s?Object.getOwnPropertyDescriptor(o,t):null;l&&(l.get||l.set)?Object.defineProperty(f,t,l):f[t]=o[t]}return f.default=o,m&&m.set(o,f),f}var I={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(m){"use strict";for(var f="",s=m.length,t=s%3,l=0;l<s-2;l+=3)f+=this.toBase64Table[m[l]>>2],f+=this.toBase64Table[((m[l]&3)<<4)+(m[l+1]>>4)],f+=this.toBase64Table[((m[l+1]&15)<<2)+(m[l+2]>>6)],f+=this.toBase64Table[m[l+2]&63];var a=s-t;return t===2?(f+=this.toBase64Table[m[a]>>2],f+=this.toBase64Table[((m[a]&3)<<4)+(m[a+1]>>4)],f+=this.toBase64Table[(m[a+1]&15)<<2],f+=this.toBase64Table[64]):t===1&&(f+=this.toBase64Table[m[a]>>2],f+=this.toBase64Table[(m[a]&3)<<4],f+=this.toBase64Table[64],f+=this.toBase64Table[64]),f},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(m){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=m.indexOf("=")-f;s<0&&(s=m.length-f);for(var t=(s>>2)*3+Math.floor(s%4/1.5),l=new Array(t),a=0,r=0,u=0,e=f;e<m.length;e++){var n=this.toBinaryTable[m.charCodeAt(e)&127],i=m.charAt(e)===this.base64Pad;if(n===-1){N.Error("Illegal character code "+m.charCodeAt(e)+" at position "+e);continue}r=r<<6|n,a+=6,a>=8&&(a-=8,i||(l[u++]=r>>a&255),r&=(1<<a)-1)}if(a){var c=new Error("Corrupted base64 string");throw c.name="Base64-Error",c}return l}};z.default=I},N5BQ:function(fe,z,y){var D=y("OlYY"),N=D.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"}}}),L=N;fe.exports=L},NA0q:function(fe,z,y){var D=y("bYtY"),N=y("6Ic6"),L=y("TkdX"),E=y("gPAo"),I=y("7aKB"),o=I.windowOpen,m="sunburstRootToNode",f=N.extend({type:"sunburst",init:function(){},render:function(t,l,a,r){var u=this;this.seriesModel=t,this.api=a,this.ecModel=l;var e=t.getData(),n=e.tree.root,i=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),h=[];i.eachNode(function(S){h.push(S)});var p=this._oldChildren||[];if(A(h,p),w(n,i),r&&r.highlight&&r.highlight.piece){var g=t.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(g)}else if(r&&r.unhighlight){var v=this.virtualPiece;!v&&n.children.length&&(v=n.children[0].piece),v&&v.onNormal()}this._initEvents(),this._oldChildren=h;function A(S,T){if(S.length===0&&T.length===0)return;new E(T,S,C,C).add(O).update(O).remove(D.curry(O,null)).execute();function C(_){return _.getId()}function O(_,M){var k=_==null?null:S[_],R=M==null?null:T[M];x(k,R)}}function x(S,T){if(!d&&S&&!S.getValue()&&(S=null),S!==n&&T!==n){if(T&&T.piece)S?(T.piece.updateData(!1,S,"normal",t,l),e.setItemGraphicEl(S.dataIndex,T.piece)):b(T);else if(S){var C=new L(S,t,l);c.add(C),e.setItemGraphicEl(S.dataIndex,C)}}}function b(S){if(!S)return;S.piece&&(c.remove(S.piece),S.piece=null)}function w(S,T){if(T.depth>0){u.virtualPiece?u.virtualPiece.updateData(!1,S,"normal",t,l):(u.virtualPiece=new L(S,t,l),c.add(u.virtualPiece)),T.piece._onclickEvent&&T.piece.off("click",T.piece._onclickEvent);var C=function(O){u._rootToNode(T.parentNode)};T.piece._onclickEvent=C,u.virtualPiece.on("click",C)}else u.virtualPiece&&(c.remove(u.virtualPiece),u.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var t=this,l=function(a){var r=!1,u=t.seriesModel.getViewRoot();u.eachNode(function(e){if(!r&&e.piece&&e.piece.childAt(0)===a.target){var n=e.getModel().get("nodeClick");if(n==="rootToNode")t._rootToNode(e);else if(n==="link"){var i=e.getModel(),c=i.get("link");if(c){var d=i.get("target",!0)||"_blank";o(c,d)}}r=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",l),this.group._onclickEvent=l},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:m,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,l){var a=l.getData(),r=a.getItemLayout(0);if(r){var u=t[0]-r.cx,e=t[1]-r.cy,n=Math.sqrt(u*u+e*e);return n<=r.r&&n>=r.r0}}}),s=f;fe.exports=s},NAnI:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("wXyp"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},NBmB:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.encodingName=N,z.encodings=void 0;var D={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};z.encodings=D;function N(L){switch(L){case D.encodingRaw:return"Raw";case D.encodingCopyRect:return"CopyRect";case D.encodingRRE:return"RRE";case D.encodingHextile:return"Hextile";case D.encodingTight:return"Tight";case D.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+L+"]"}}},NC18:function(fe,z,y){var D=y("y+Vt"),N=y("IMiH"),L=y("7oTu"),E=Math.sqrt,I=Math.sin,o=Math.cos,m=Math.PI,f=function(h){return Math.sqrt(h[0]*h[0]+h[1]*h[1])},s=function(h,p){return(h[0]*p[0]+h[1]*p[1])/(f(h)*f(p))},t=function(h,p){return(h[0]*p[1]<h[1]*p[0]?-1:1)*Math.acos(s(h,p))};function l(d,h,p,g,v,A,x,b,w,S,T){var C=w*(m/180),O=o(C)*(d-p)/2+I(C)*(h-g)/2,_=-1*I(C)*(d-p)/2+o(C)*(h-g)/2,M=O*O/(x*x)+_*_/(b*b);M>1&&(x*=E(M),b*=E(M));var k=(v===A?-1:1)*E((x*x*(b*b)-x*x*(_*_)-b*b*(O*O))/(x*x*(_*_)+b*b*(O*O)))||0,R=k*x*_/b,B=k*-b*O/x,P=(d+p)/2+o(C)*R-I(C)*B,U=(h+g)/2+I(C)*R+o(C)*B,j=t([1,0],[(O-R)/x,(_-B)/b]),H=[(O-R)/x,(_-B)/b],W=[(-1*O-R)/x,(-1*_-B)/b],G=t(H,W);s(H,W)<=-1&&(G=m),s(H,W)>=1&&(G=0),A===0&&G>0&&(G=G-2*m),A===1&&G<0&&(G=G+2*m),T.addData(S,P,U,x,b,j,G,C,A)}var a=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,r=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(d){if(!d)return new N;for(var h=0,p=0,g=h,v=p,A,x=new N,b=N.CMD,w=d.match(a),S=0;S<w.length;S++){for(var T=w[S],C=T.charAt(0),O,_=T.match(r)||[],M=_.length,k=0;k<M;k++)_[k]=parseFloat(_[k]);for(var R=0;R<M;){var B,P,U,j,H,W,G,V=h,Z=p;switch(C){case"l":h+=_[R++],p+=_[R++],O=b.L,x.addData(O,h,p);break;case"L":h=_[R++],p=_[R++],O=b.L,x.addData(O,h,p);break;case"m":h+=_[R++],p+=_[R++],O=b.M,x.addData(O,h,p),g=h,v=p,C="l";break;case"M":h=_[R++],p=_[R++],O=b.M,x.addData(O,h,p),g=h,v=p,C="L";break;case"h":h+=_[R++],O=b.L,x.addData(O,h,p);break;case"H":h=_[R++],O=b.L,x.addData(O,h,p);break;case"v":p+=_[R++],O=b.L,x.addData(O,h,p);break;case"V":p=_[R++],O=b.L,x.addData(O,h,p);break;case"C":O=b.C,x.addData(O,_[R++],_[R++],_[R++],_[R++],_[R++],_[R++]),h=_[R-2],p=_[R-1];break;case"c":O=b.C,x.addData(O,_[R++]+h,_[R++]+p,_[R++]+h,_[R++]+p,_[R++]+h,_[R++]+p),h+=_[R-2],p+=_[R-1];break;case"S":B=h,P=p;var Y=x.len(),Q=x.data;A===b.C&&(B+=h-Q[Y-4],P+=p-Q[Y-3]),O=b.C,V=_[R++],Z=_[R++],h=_[R++],p=_[R++],x.addData(O,B,P,V,Z,h,p);break;case"s":B=h,P=p;var Y=x.len(),Q=x.data;A===b.C&&(B+=h-Q[Y-4],P+=p-Q[Y-3]),O=b.C,V=h+_[R++],Z=p+_[R++],h+=_[R++],p+=_[R++],x.addData(O,B,P,V,Z,h,p);break;case"Q":V=_[R++],Z=_[R++],h=_[R++],p=_[R++],O=b.Q,x.addData(O,V,Z,h,p);break;case"q":V=_[R++]+h,Z=_[R++]+p,h+=_[R++],p+=_[R++],O=b.Q,x.addData(O,V,Z,h,p);break;case"T":B=h,P=p;var Y=x.len(),Q=x.data;A===b.Q&&(B+=h-Q[Y-4],P+=p-Q[Y-3]),h=_[R++],p=_[R++],O=b.Q,x.addData(O,B,P,h,p);break;case"t":B=h,P=p;var Y=x.len(),Q=x.data;A===b.Q&&(B+=h-Q[Y-4],P+=p-Q[Y-3]),h+=_[R++],p+=_[R++],O=b.Q,x.addData(O,B,P,h,p);break;case"A":U=_[R++],j=_[R++],H=_[R++],W=_[R++],G=_[R++],V=h,Z=p,h=_[R++],p=_[R++],O=b.A,l(V,Z,h,p,W,G,U,j,H,O,x);break;case"a":U=_[R++],j=_[R++],H=_[R++],W=_[R++],G=_[R++],V=h,Z=p,h+=_[R++],p+=_[R++],O=b.A,l(V,Z,h,p,W,G,U,j,H,O,x);break}}(C==="z"||C==="Z")&&(O=b.Z,x.addData(O),h=g,p=v),A=O}return x.toStatic(),x}function e(d,h){var p=u(d);return h=h||{},h.buildPath=function(g){if(g.setData){g.setData(p.data);var v=g.getContext();v&&g.rebuildPath(v)}else{var v=g;p.rebuildPath(v)}},h.applyTransform=function(g){L(p,g),this.dirty(!0)},h}function n(d,h){return new D(e(d,h))}function i(d,h){return D.extend(e(d,h))}function c(d,h){for(var p=[],g=d.length,v=0;v<g;v++){var A=d[v];A.path||A.createPathProxy(),A.__dirtyPath&&A.buildPath(A.path,A.shape,!0),p.push(A.path)}var x=new D(h);return x.createPathProxy(),x.buildPath=function(b){b.appendPath(p);var w=b.getContext();w&&b.rebuildPath(w)},x}z.createFromString=n,z.extendFromString=i,z.mergePath=c},NFKh:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("MlIO"),y("F+F2"),y("qM6L"),y("ETIr"),y("wbyO"),y("cv67"),y("3y9D"),y("lPiR"),y("GRuw"),y("1uat"),y("uGsb"),y("5hvy"),y("ELcG"),y("WYAk"),y("e7zE"),y("K3mO"),y("OLod"),y("ALsQ"),y("9OqN"),y("qu8F"),y("S6kV"),y("gb/T"),y("qBft"),y("oRuE"),y("jO9C"),y("KmYQ"),y("uGxW"),y("bQjk"),y("wZgz"),y("pA7S"),y("w7YG"),y("E4JC"),y("PVpz"))})(this,function(D){return D})},NH9N:function(fe,z,y){var D=y("bYtY"),N=y("mFDi"),L=y("Fofx"),E=y("IwbS"),I=y("+TT/"),o=y("kzvK"),m=y("CMP+"),f=y("oVpE"),s=f.createSymbol,t=y("aX7z"),l=y("OELB"),a=y("7aKB"),r=a.encodeHTML,u=D.bind,e=D.each,n=Math.PI,i=o.extend({type:"timeline.slider",init:function(g,v){this.api=v,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(g,v,A,x){if(this.model=g,this.api=A,this.ecModel=v,this.group.removeAll(),g.get("show",!0)){var b=this._layout(g,A),w=this._createGroup("mainGroup"),S=this._createGroup("labelGroup"),T=this._axis=this._createAxis(b,g);g.formatTooltip=function(C){return r(T.scale.getLabel(C))},e(["AxisLine","AxisTick","Control","CurrentPointer"],function(C){this["_render"+C](b,w,T,g)},this),this._renderAxisLabel(b,S,T,g),this._position(b,g)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(g,v){var A=g.get("label.position"),x=g.get("orient"),b=c(g,v);A==null||A==="auto"?A=x==="horizontal"?b.y+b.height/2<v.getHeight()/2?"-":"+":b.x+b.width/2<v.getWidth()/2?"+":"-":isNaN(A)&&(A={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[x][A]);var w={horizontal:"center",vertical:A>=0||A==="+"?"left":"right"},S={horizontal:A>=0||A==="+"?"top":"bottom",vertical:"middle"},T={horizontal:0,vertical:n/2},C=x==="vertical"?b.height:b.width,O=g.getModel("controlStyle"),_=O.get("show",!0),M=_?O.get("itemSize"):0,k=_?O.get("itemGap"):0,R=M+k,B=g.get("label.rotate")||0;B=B*n/180;var P,U,j,H,W=O.get("position",!0),G=_&&O.get("showPlayBtn",!0),V=_&&O.get("showPrevBtn",!0),Z=_&&O.get("showNextBtn",!0),Y=0,Q=C;return W==="left"||W==="bottom"?(G&&(P=[0,0],Y+=R),V&&(U=[Y,0],Y+=R),Z&&(j=[Q-M,0],Q-=R)):(G&&(P=[Q-M,0],Q-=R),V&&(U=[0,0],Y+=R),Z&&(j=[Q-M,0],Q-=R)),H=[Y,Q],g.get("inverse")&&H.reverse(),{viewRect:b,mainLength:C,orient:x,rotation:T[x],labelRotation:B,labelPosOpt:A,labelAlign:g.get("label.align")||w[x],labelBaseline:g.get("label.verticalAlign")||g.get("label.baseline")||S[x],playPosition:P,prevBtnPosition:U,nextBtnPosition:j,axisExtent:H,controlSize:M,controlGap:k}},_position:function(g,v){var A=this._mainGroup,x=this._labelGroup,b=g.viewRect;if(g.orient==="vertical"){var w=L.create(),S=b.x,T=b.y+b.height;L.translate(w,w,[-S,-T]),L.rotate(w,w,-n/2),L.translate(w,w,[S,T]),b=b.clone(),b.applyTransform(w)}var C=U(b),O=U(A.getBoundingRect()),_=U(x.getBoundingRect()),M=A.position,k=x.position;k[0]=M[0]=C[0][0];var R=g.labelPosOpt;if(isNaN(R)){var B=R==="+"?0:1;j(M,O,C,1,B),j(k,_,C,1,1-B)}else{var B=R>=0?0:1;j(M,O,C,1,B),k[1]=M[1]+R}A.attr("position",M),x.attr("position",k),A.rotation=x.rotation=g.rotation,P(A),P(x);function P(H){var W=H.position;H.origin=[C[0][0]-W[0],C[1][0]-W[1]]}function U(H){return[[H.x,H.x+H.width],[H.y,H.y+H.height]]}function j(H,W,G,V,Z){H[V]+=G[V][Z]-W[V][Z]}},_createAxis:function(g,v){var A=v.getData(),x=v.get("axisType"),b=t.createScaleByModel(v,x);b.getTicks=function(){return A.mapArray(["value"],function(T){return T})};var w=A.getDataExtent("value");b.setExtent(w[0],w[1]),b.niceTicks();var S=new m("value",b,g.axisExtent,x);return S.model=v,S},_createGroup:function(g){var v=this["_"+g]=new E.Group;return this.group.add(v),v},_renderAxisLine:function(g,v,A,x){var b=A.getExtent();if(!x.get("lineStyle.show"))return;v.add(new E.Line({shape:{x1:b[0],y1:0,x2:b[1],y2:0},style:D.extend({lineCap:"round"},x.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(g,v,A,x){var b=x.getData(),w=A.scale.getTicks();e(w,function(S){var T=A.dataToCoord(S),C=b.getItemModel(S),O=C.getModel("itemStyle"),_=C.getModel("emphasis.itemStyle"),M={position:[T,0],onclick:u(this._changeTimeline,this,S)},k=h(C,O,v,M);E.setHoverStyle(k,_.getItemStyle()),C.get("tooltip")?(k.dataIndex=S,k.dataModel=x):k.dataIndex=k.dataModel=null},this)},_renderAxisLabel:function(g,v,A,x){var b=A.getLabelModel();if(!b.get("show"))return;var w=x.getData(),S=A.getViewLabels();e(S,function(T){var C=T.tickValue,O=w.getItemModel(C),_=O.getModel("label"),M=O.getModel("emphasis.label"),k=A.dataToCoord(T.tickValue),R=new E.Text({position:[k,0],rotation:g.labelRotation-g.rotation,onclick:u(this._changeTimeline,this,C),silent:!1});E.setTextStyle(R.style,_,{text:T.formattedLabel,textAlign:g.labelAlign,textVerticalAlign:g.labelBaseline}),v.add(R),E.setHoverStyle(R,E.setTextStyle({},M))},this)},_renderControl:function(g,v,A,x){var b=g.controlSize,w=g.rotation,S=x.getModel("controlStyle").getItemStyle(),T=x.getModel("emphasis.controlStyle").getItemStyle(),C=[0,-b/2,b,b],O=x.getPlayState(),_=x.get("inverse",!0);M(g.nextBtnPosition,"controlStyle.nextIcon",u(this._changeTimeline,this,_?"-":"+")),M(g.prevBtnPosition,"controlStyle.prevIcon",u(this._changeTimeline,this,_?"+":"-")),M(g.playPosition,"controlStyle."+(O?"stopIcon":"playIcon"),u(this._handlePlayClick,this,!O),!0);function M(k,R,B,P){if(!k)return;var U={position:k,origin:[b/2,0],rotation:P?-w:0,rectHover:!0,style:S,onclick:B},j=d(x,R,C,U);v.add(j),E.setHoverStyle(j,T)}},_renderCurrentPointer:function(g,v,A,x){var b=x.getData(),w=x.getCurrentIndex(),S=b.getItemModel(w).getModel("checkpointStyle"),T=this,C={onCreate:function(O){O.draggable=!0,O.drift=u(T._handlePointerDrag,T),O.ondragend=u(T._handlePointerDragend,T),p(O,w,A,x,!0)},onUpdate:function(O){p(O,w,A,x)}};this._currentPointer=h(S,S,this._mainGroup,{},this._currentPointer,C)},_handlePlayClick:function(g){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:g,from:this.uid})},_handlePointerDrag:function(g,v,A){this._clearTimer(),this._pointerChangeTimeline([A.offsetX,A.offsetY])},_handlePointerDragend:function(g){this._pointerChangeTimeline([g.offsetX,g.offsetY],!0)},_pointerChangeTimeline:function(g,v){var A=this._toAxisCoord(g)[0],x=this._axis,b=l.asc(x.getExtent().slice());A>b[1]&&(A=b[1]),A<b[0]&&(A=b[0]),this._currentPointer.position[0]=A,this._currentPointer.dirty();var w=this._findNearestTick(A),S=this.model;(v||w!==S.getCurrentIndex()&&S.get("realtime"))&&this._changeTimeline(w)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(u(g,this),this.model.get("playInterval")));function g(){var v=this.model;this._changeTimeline(v.getCurrentIndex()+(v.get("rewind",!0)?-1:1))}},_toAxisCoord:function(g){var v=this._mainGroup.getLocalTransform();return E.applyTransform(g,v,!0)},_findNearestTick:function(g){var v=this.model.getData(),A=Infinity,x,b=this._axis;return v.each(["value"],function(w,S){var T=b.dataToCoord(w),C=Math.abs(T-g);C<A&&(A=C,x=S)}),x},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(g){var v=this.model.getCurrentIndex();g==="+"?g=v+1:g==="-"&&(g=v-1),this.api.dispatchAction({type:"timelineChange",currentIndex:g,from:this.uid})}});function c(g,v){return I.getLayoutRect(g.getBoxLayoutParams(),{width:v.getWidth(),height:v.getHeight()},g.get("padding"))}function d(g,v,A,x){var b=E.makePath(g.get(v).replace(/^path:\/\//,""),D.clone(x||{}),new N(A[0],A[1],A[2],A[3]),"center");return b}function h(g,v,A,x,b,w){var S=v.get("color");if(b)b.setColor(S),A.add(b),w&&w.onUpdate(b);else{var T=g.get("symbol");b=s(T,-1,-1,2,2,S),b.setStyle("strokeNoScale",!0),A.add(b),w&&w.onCreate(b)}var C=v.getItemStyle(["color","symbol","symbolSize"]);b.setStyle(C),x=D.merge({rectHover:!0,z2:100},x,!0);var O=g.get("symbolSize");O=O instanceof Array?O.slice():[+O,+O],O[0]/=2,O[1]/=2,x.scale=O;var _=g.get("symbolOffset");if(_){var M=x.position=x.position||[0,0];M[0]+=l.parsePercent(_[0],O[0]),M[1]+=l.parsePercent(_[1],O[1])}var k=g.get("symbolRotate");return x.rotation=(k||0)*Math.PI/180||0,b.attr(x),b.updateTransform(),b}function p(g,v,A,x,b){if(g.dragging)return;var w=x.getModel("checkpointStyle"),S=A.dataToCoord(x.getData().get(["value"],v));b||!w.get("animation",!0)?g.attr({position:[S,0]}):(g.stopAnimation(!0),g.animateTo({position:[S,0]},w.get("animationDuration",!0),w.get("animationEasing",!0)))}fe.exports=i},NJEC:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("J4zp"),E=y.n(L),I=y("q1tI"),o=y.n(I),m=y("TSYQ"),f=y.n(m),s=y("sKbD"),t=y.n(s),l=y("4IlW"),a=y("3S7+"),r=y("2/Rp"),u=y("zvFY"),e=y("YMnH"),n=y("ZvpZ"),i=y("H84U"),c=y("bogI"),d=y("0n0R"),h=void 0,p=function(v,A){var x={};for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&A.indexOf(b)<0&&(x[b]=v[b]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(v);w<b.length;w++)A.indexOf(b[w])<0&&Object.prototype.propertyIsEnumerable.call(v,b[w])&&(x[b[w]]=v[b[w]]);return x},g=I.forwardRef(function(v,A){var x=I.useState(v.visible),b=E()(x,2),w=b[0],S=b[1];I.useEffect(function(){"visible"in v&&S(v.visible)},[v.visible]),I.useEffect(function(){"defaultVisible"in v&&S(v.defaultVisible)},[v.defaultVisible]);var T=function(oe,ue){"visible"in v||S(oe),v.onVisibleChange&&v.onVisibleChange(oe,ue)},C=function(oe){T(!1,oe),v.onConfirm&&v.onConfirm.call(h,oe)},O=function(oe){T(!1,oe),v.onCancel&&v.onCancel.call(h,oe)},_=function(oe){oe.keyCode===l.a.ESC&&w&&T(!1,oe)},M=function(oe){var ue=v.disabled;if(ue)return;T(oe)},k=function(oe,ue){var Le=v.okButtonProps,me=v.cancelButtonProps,Ie=v.title,X=v.cancelText,q=v.okText,We=v.okType,$=v.icon;return I.createElement("div",{className:"".concat(oe,"-inner-content")},I.createElement("div",{className:"".concat(oe,"-message")},$,I.createElement("div",{className:"".concat(oe,"-message-title")},Object(c.a)(Ie))),I.createElement("div",{className:"".concat(oe,"-buttons")},I.createElement(r.a,N()({onClick:O,size:"small"},me),X||ue.cancelText),I.createElement(r.a,N()({onClick:C},Object(u.a)(We),{size:"small"},Le),q||ue.okText)))},R=I.useContext(i.b),B=R.getPrefixCls,P=v.prefixCls,U=v.placement,j=v.children,H=v.overlayClassName,W=p(v,["prefixCls","placement","children","overlayClassName"]),G=B("popover",P),V=B("popconfirm",P),Z=f()(V,H),Y=I.createElement(e.a,{componentName:"Popconfirm",defaultLocale:n.a.Popconfirm},function(Q){return k(G,Q)});return I.createElement(a.a,N()({},W,{prefixCls:G,placement:U,onVisibleChange:M,visible:w,overlay:Y,overlayClassName:Z,ref:A}),Object(d.a)(j,{onKeyDown:function(oe){var ue,Le;(Le=j==null?void 0:(ue=j.props).onKeyDown)===null||Le===void 0||Le.call(ue,oe),_(oe)}}))});g.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:I.createElement(t.a,null),disabled:!1},z.a=g},NUBc:function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("q1tI"),o=y.n(I),m=y("wx14"),f=y("rePB"),s=y("VTBJ"),t=y("1OyB"),l=y("vuIU"),a=y("Ji7U"),r=y("LK+K"),u=y("TSYQ"),e=y.n(u),n=function(ue){var Le,me="".concat(ue.rootPrefixCls,"-item"),Ie=e()(me,"".concat(me,"-").concat(ue.page),(Le={},Object(f.a)(Le,"".concat(me,"-active"),ue.active),Object(f.a)(Le,ue.className,!!ue.className),Object(f.a)(Le,"".concat(me,"-disabled"),!ue.page),Le)),X=function(){ue.onClick(ue.page)},q=function($){ue.onKeyPress($,ue.onClick,ue.page)};return o.a.createElement("li",{title:ue.showTitle?ue.page:null,className:Ie,onClick:X,onKeyPress:q,tabIndex:"0"},ue.itemRender(ue.page,"page",o.a.createElement("a",{rel:"nofollow"},ue.page)))},i=n,c={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},d=function(oe){Object(a.a)(Le,oe);var ue=Object(r.a)(Le);function Le(){var me;Object(t.a)(this,Le);for(var Ie=arguments.length,X=new Array(Ie),q=0;q<Ie;q++)X[q]=arguments[q];return me=ue.call.apply(ue,[this].concat(X)),me.state={goInputText:""},me.buildOptionText=function(We){return"".concat(We," ").concat(me.props.locale.items_per_page)},me.changeSize=function(We){me.props.changeSize(Number(We))},me.handleChange=function(We){me.setState({goInputText:We.target.value})},me.handleBlur=function(We){var $=me.props,J=$.goButton,le=$.quickGo,de=$.rootPrefixCls,Ne=me.state.goInputText;if(J||Ne==="")return;if(We.relatedTarget&&(We.relatedTarget.className.indexOf("".concat(de,"-prev"))>=0||We.relatedTarget.className.indexOf("".concat(de,"-next"))>=0))return;me.setState({goInputText:""}),le(me.getValidValue())},me.go=function(We){var $=me.state.goInputText;if($==="")return;(We.keyCode===c.ENTER||We.type==="click")&&(me.setState({goInputText:""}),me.props.quickGo(me.getValidValue()))},me}return Object(l.a)(Le,[{key:"getValidValue",value:function(){var Ie=this.state,X=Ie.goInputText,q=Ie.current;return!X||isNaN(X)?q:Number(X)}},{key:"getPageSizeOptions",value:function(){var Ie=this.props,X=Ie.pageSize,q=Ie.pageSizeOptions;return q.some(function(We){return We.toString()===X.toString()})?q:q.concat([X.toString()]).sort(function(We,$){var J=isNaN(Number(We))?0:Number(We),le=isNaN(Number($))?0:Number($);return J-le})}},{key:"render",value:function(){var Ie=this,X=this.props,q=X.pageSize,We=X.locale,$=X.rootPrefixCls,J=X.changeSize,le=X.quickGo,de=X.goButton,Ne=X.selectComponentClass,we=X.buildOptionText,De=X.selectPrefixCls,Ee=X.disabled,ce=this.state.goInputText,ne="".concat($,"-options"),ee=Ne,Ae=null,Ve=null,Ke=null;if(!J&&!le)return null;var Oe=this.getPageSizeOptions();if(J&&ee){var it=Oe.map(function(Fe,ft){return o.a.createElement(ee.Option,{key:ft,value:Fe.toString()},(we||Ie.buildOptionText)(Fe))});Ae=o.a.createElement(ee,{disabled:Ee,prefixCls:De,showSearch:!1,className:"".concat(ne,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(q||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ft){return ft.parentNode}},it)}return le&&(de&&(Ke=typeof de=="boolean"?o.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ee,className:"".concat(ne,"-quick-jumper-button")},We.jump_to_confirm):o.a.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),Ve=o.a.createElement("div",{className:"".concat(ne,"-quick-jumper")},We.jump_to,o.a.createElement("input",{disabled:Ee,type:"text",value:ce,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),We.page,Ke)),o.a.createElement("li",{className:"".concat(ne)},Ae,Ve)}}]),Le}(o.a.Component);d.defaultProps={pageSizeOptions:["10","20","50","100"]};var h=d,p=y("N2Kk");function g(){}function v(oe){return typeof oe=="number"&&isFinite(oe)&&Math.floor(oe)===oe}function A(oe,ue,Le){return Le}function x(oe,ue,Le){var me=typeof oe=="undefined"?ue.pageSize:oe;return Math.floor((Le.total-1)/me)+1}var b=function(oe){Object(a.a)(Le,oe);var ue=Object(r.a)(Le);function Le(me){var Ie;Object(t.a)(this,Le),Ie=ue.call(this,me),Ie.getJumpPrevPage=function(){return Math.max(1,Ie.state.current-(Ie.props.showLessItems?3:5))},Ie.getJumpNextPage=function(){return Math.min(x(void 0,Ie.state,Ie.props),Ie.state.current+(Ie.props.showLessItems?3:5))},Ie.getItemIcon=function(J,le){var de=Ie.props.prefixCls,Ne=J||o.a.createElement("button",{type:"button","aria-label":le,className:"".concat(de,"-item-link")});return typeof J=="function"&&(Ne=o.a.createElement(J,Object(s.a)({},Ie.props))),Ne},Ie.savePaginationNode=function(J){Ie.paginationNode=J},Ie.isValid=function(J){return v(J)&&J!==Ie.state.current},Ie.shouldDisplayQuickJumper=function(){var J=Ie.props,le=J.showQuickJumper,de=J.pageSize,Ne=J.total;return Ne<=de?!1:le},Ie.handleKeyDown=function(J){(J.keyCode===c.ARROW_UP||J.keyCode===c.ARROW_DOWN)&&J.preventDefault()},Ie.handleKeyUp=function(J){var le=Ie.getValidValue(J),de=Ie.state.currentInputValue;le!==de&&Ie.setState({currentInputValue:le}),J.keyCode===c.ENTER?Ie.handleChange(le):J.keyCode===c.ARROW_UP?Ie.handleChange(le-1):J.keyCode===c.ARROW_DOWN&&Ie.handleChange(le+1)},Ie.changePageSize=function(J){var le=Ie.state.current,de=x(J,Ie.state,Ie.props);le=le>de?de:le,de===0&&(le=Ie.state.current),typeof J=="number"&&("pageSize"in Ie.props||Ie.setState({pageSize:J}),"current"in Ie.props||Ie.setState({current:le,currentInputValue:le})),Ie.props.onShowSizeChange(le,J),"onChange"in Ie.props&&Ie.props.onChange&&Ie.props.onChange(le,J)},Ie.handleChange=function(J){var le=Ie.props.disabled,de=J;if(Ie.isValid(de)&&!le){var Ne=x(void 0,Ie.state,Ie.props);de>Ne?de=Ne:de<1&&(de=1),"current"in Ie.props||Ie.setState({current:de,currentInputValue:de});var we=Ie.state.pageSize;return Ie.props.onChange(de,we),de}return Ie.state.current},Ie.prev=function(){Ie.hasPrev()&&Ie.handleChange(Ie.state.current-1)},Ie.next=function(){Ie.hasNext()&&Ie.handleChange(Ie.state.current+1)},Ie.jumpPrev=function(){Ie.handleChange(Ie.getJumpPrevPage())},Ie.jumpNext=function(){Ie.handleChange(Ie.getJumpNextPage())},Ie.hasPrev=function(){return Ie.state.current>1},Ie.hasNext=function(){return Ie.state.current<x(void 0,Ie.state,Ie.props)},Ie.runIfEnter=function(J,le){if(J.key==="Enter"||J.charCode===13){for(var de=arguments.length,Ne=new Array(de>2?de-2:0),we=2;we<de;we++)Ne[we-2]=arguments[we];le.apply(void 0,Ne)}},Ie.runIfEnterPrev=function(J){Ie.runIfEnter(J,Ie.prev)},Ie.runIfEnterNext=function(J){Ie.runIfEnter(J,Ie.next)},Ie.runIfEnterJumpPrev=function(J){Ie.runIfEnter(J,Ie.jumpPrev)},Ie.runIfEnterJumpNext=function(J){Ie.runIfEnter(J,Ie.jumpNext)},Ie.handleGoTO=function(J){(J.keyCode===c.ENTER||J.type==="click")&&Ie.handleChange(Ie.state.currentInputValue)};var X=me.onChange!==g,q="current"in me;q&&!X&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var We=me.defaultCurrent;"current"in me&&(We=me.current);var $=me.defaultPageSize;return"pageSize"in me&&($=me.pageSize),We=Math.min(We,x($,void 0,me)),Ie.state={current:We,currentInputValue:We,pageSize:$},Ie}return Object(l.a)(Le,[{key:"componentDidUpdate",value:function(Ie,X){var q=this.props.prefixCls;if(X.current!==this.state.current&&this.paginationNode){var We=this.paginationNode.querySelector(".".concat(q,"-item-").concat(X.current));We&&document.activeElement===We&&We.blur()}}},{key:"getValidValue",value:function(Ie){var X=Ie.target.value,q=x(void 0,this.state,this.props),We=this.state.currentInputValue,$;return X===""?$=X:isNaN(Number(X))?$=We:X>=q?$=q:$=Number(X),$}},{key:"getShowSizeChanger",value:function(){var Ie=this.props,X=Ie.showSizeChanger,q=Ie.total,We=Ie.totalBoundaryShowSizeChanger;return typeof X!="undefined"?X:q>We}},{key:"renderPrev",value:function(Ie){var X=this.props,q=X.prevIcon,We=X.itemRender,$=We(Ie,"prev",this.getItemIcon(q,"prev page")),J=!this.hasPrev();return Object(I.isValidElement)($)?Object(I.cloneElement)($,{disabled:J}):$}},{key:"renderNext",value:function(Ie){var X=this.props,q=X.nextIcon,We=X.itemRender,$=We(Ie,"next",this.getItemIcon(q,"next page")),J=!this.hasNext();return Object(I.isValidElement)($)?Object(I.cloneElement)($,{disabled:J}):$}},{key:"render",value:function(){var Ie=this,X=this.props,q=X.prefixCls,We=X.className,$=X.style,J=X.disabled,le=X.hideOnSinglePage,de=X.total,Ne=X.locale,we=X.showQuickJumper,De=X.showLessItems,Ee=X.showTitle,ce=X.showTotal,ne=X.simple,ee=X.itemRender,Ae=X.showPrevNextJumpers,Ve=X.jumpPrevIcon,Ke=X.jumpNextIcon,Oe=X.selectComponentClass,it=X.selectPrefixCls,Fe=X.pageSizeOptions,ft=this.state,At=ft.current,bt=ft.pageSize,St=ft.currentInputValue;if(le===!0&&de<=bt)return null;var Et=x(void 0,this.state,this.props),je=[],pe=null,ie=null,st=null,Qe=null,ve=null,Bt=we&&we.goButton,qt=De?1:2,ct=At-1>0?At-1:0,Wt=At+1<Et?At+1:Et,or=Object.keys(this.props).reduce(function(Ln,tt){return(tt.substr(0,5)==="data-"||tt.substr(0,5)==="aria-"||tt==="role")&&(Ln[tt]=Ie.props[tt]),Ln},{});if(ne)return Bt&&(typeof Bt=="boolean"?ve=o.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ne.jump_to_confirm):ve=o.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Bt),ve=o.a.createElement("li",{title:Ee?"".concat(Ne.jump_to).concat(At,"/").concat(Et):null,className:"".concat(q,"-simple-pager")},ve)),o.a.createElement("ul",Object(m.a)({className:e()(q,"".concat(q,"-simple"),Object(f.a)({},"".concat(q,"-disabled"),J),We),style:$,ref:this.savePaginationNode},or),o.a.createElement("li",{title:Ee?Ne.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:e()("".concat(q,"-prev"),Object(f.a)({},"".concat(q,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(ct)),o.a.createElement("li",{title:Ee?"".concat(At,"/").concat(Et):null,className:"".concat(q,"-simple-pager")},o.a.createElement("input",{type:"text",value:St,disabled:J,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),o.a.createElement("span",{className:"".concat(q,"-slash")},"/"),Et),o.a.createElement("li",{title:Ee?Ne.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:e()("".concat(q,"-next"),Object(f.a)({},"".concat(q,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Wt)),ve);if(Et<=3+qt*2){var Fr={locale:Ne,rootPrefixCls:q,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ee,itemRender:ee};Et||je.push(o.a.createElement(i,Object(m.a)({},Fr,{key:"noPager",page:Et,className:"".concat(q,"-disabled")})));for(var er=1;er<=Et;er+=1){var nr=At===er;je.push(o.a.createElement(i,Object(m.a)({},Fr,{key:er,page:er,active:nr})))}}else{var Ot=De?Ne.prev_3:Ne.prev_5,lt=De?Ne.next_3:Ne.next_5;Ae&&(pe=o.a.createElement("li",{title:Ee?Ot:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:e()("".concat(q,"-jump-prev"),Object(f.a)({},"".concat(q,"-jump-prev-custom-icon"),!!Ve))},ee(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ve,"prev page"))),ie=o.a.createElement("li",{title:Ee?lt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:e()("".concat(q,"-jump-next"),Object(f.a)({},"".concat(q,"-jump-next-custom-icon"),!!Ke))},ee(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ke,"next page")))),Qe=o.a.createElement(i,{locale:Ne,last:!0,rootPrefixCls:q,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Et,page:Et,active:!1,showTitle:Ee,itemRender:ee}),st=o.a.createElement(i,{locale:Ne,rootPrefixCls:q,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ee,itemRender:ee});var qe=Math.max(1,At-qt),tr=Math.min(At+qt,Et);At-1<=qt&&(tr=1+qt*2),Et-At<=qt&&(qe=Et-qt*2);for(var xr=qe;xr<=tr;xr+=1){var Ar=At===xr;je.push(o.a.createElement(i,{locale:Ne,rootPrefixCls:q,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:xr,page:xr,active:Ar,showTitle:Ee,itemRender:ee}))}At-1>=qt*2&&At!==1+2&&(je[0]=Object(I.cloneElement)(je[0],{className:"".concat(q,"-item-after-jump-prev")}),je.unshift(pe)),Et-At>=qt*2&&At!==Et-2&&(je[je.length-1]=Object(I.cloneElement)(je[je.length-1],{className:"".concat(q,"-item-before-jump-next")}),je.push(ie)),qe!==1&&je.unshift(st),tr!==Et&&je.push(Qe)}var fr=null;ce&&(fr=o.a.createElement("li",{className:"".concat(q,"-total-text")},ce(de,[de===0?0:(At-1)*bt+1,At*bt>de?de:At*bt])));var vn=!this.hasPrev()||!Et,$r=!this.hasNext()||!Et;return o.a.createElement("ul",Object(m.a)({className:e()(q,We,Object(f.a)({},"".concat(q,"-disabled"),J)),style:$,unselectable:"unselectable",ref:this.savePaginationNode},or),fr,o.a.createElement("li",{title:Ee?Ne.prev_page:null,onClick:this.prev,tabIndex:vn?null:0,onKeyPress:this.runIfEnterPrev,className:e()("".concat(q,"-prev"),Object(f.a)({},"".concat(q,"-disabled"),vn)),"aria-disabled":vn},this.renderPrev(ct)),je,o.a.createElement("li",{title:Ee?Ne.next_page:null,onClick:this.next,tabIndex:$r?null:0,onKeyPress:this.runIfEnterNext,className:e()("".concat(q,"-next"),Object(f.a)({},"".concat(q,"-disabled"),$r)),"aria-disabled":$r},this.renderNext(Wt)),o.a.createElement(h,{disabled:J,locale:Ne,rootPrefixCls:q,selectComponentClass:Oe,selectPrefixCls:it,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:At,pageSize:bt,pageSizeOptions:Fe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Bt}))}}],[{key:"getDerivedStateFromProps",value:function(Ie,X){var q={};if("current"in Ie&&(q.current=Ie.current,Ie.current!==X.current&&(q.currentInputValue=q.current)),"pageSize"in Ie&&Ie.pageSize!==X.pageSize){var We=X.current,$=x(Ie.pageSize,X,Ie);We=We>$?$:We,"current"in Ie||(q.current=We,q.currentInputValue=We),q.pageSize=Ie.pageSize}return q}}]),Le}(o.a.Component);b.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:g,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:g,locale:p.a,style:{},itemRender:A,totalBoundaryShowSizeChanger:50};var w=b,S=y("H4fg"),T=y("DFhj"),C=y.n(T),O=y("fEPi"),_=y.n(O),M=y("u9fO"),k=y.n(M),R=y("mO/d"),B=y.n(R),P=y("2fM7"),U=function(ue){return I.createElement(P.a,E()({size:"small"},ue))};U.Option=P.a.Option;var j=U,H=y("YMnH"),W=y("H84U"),G=y("5OYt"),V=function(oe,ue){var Le={};for(var me in oe)Object.prototype.hasOwnProperty.call(oe,me)&&ue.indexOf(me)<0&&(Le[me]=oe[me]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,me=Object.getOwnPropertySymbols(oe);Ie<me.length;Ie++)ue.indexOf(me[Ie])<0&&Object.prototype.propertyIsEnumerable.call(oe,me[Ie])&&(Le[me[Ie]]=oe[me[Ie]]);return Le},Z=function(ue){var Le=ue.prefixCls,me=ue.selectPrefixCls,Ie=ue.className,X=ue.size,q=ue.locale,We=V(ue,["prefixCls","selectPrefixCls","className","size","locale"]),$=Object(G.a)(),J=$.xs,le=I.useContext(W.b),de=le.getPrefixCls,Ne=le.direction,we=de("pagination",Le),De=function(){var ne=I.createElement("span",{className:"".concat(we,"-item-ellipsis")},"\u2022\u2022\u2022"),ee=I.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},I.createElement(C.a,null)),Ae=I.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},I.createElement(_.a,null)),Ve=I.createElement("a",{className:"".concat(we,"-item-link")},I.createElement("div",{className:"".concat(we,"-item-container")},I.createElement(k.a,{className:"".concat(we,"-item-link-icon")}),ne)),Ke=I.createElement("a",{className:"".concat(we,"-item-link")},I.createElement("div",{className:"".concat(we,"-item-container")},I.createElement(B.a,{className:"".concat(we,"-item-link-icon")}),ne));if(Ne==="rtl"){var Oe=[Ae,ee];ee=Oe[0],Ae=Oe[1];var it=[Ke,Ve];Ve=it[0],Ke=it[1]}return{prevIcon:ee,nextIcon:Ae,jumpPrevIcon:Ve,jumpNextIcon:Ke}},Ee=function(ne){var ee=E()(E()({},ne),q),Ae=X==="small"||!!(J&&!X&&We.responsive),Ve=de("select",me),Ke=e()(Ie,N()({mini:Ae},"".concat(we,"-rtl"),Ne==="rtl"));return I.createElement(w,E()({},We,{prefixCls:we,selectPrefixCls:Ve},De(),{className:Ke,selectComponentClass:Ae?j:P.a,locale:ee}))};return I.createElement(H.a,{componentName:"Pagination",defaultLocale:S.a},Ee)},Y=Z,Q=z.a=Y},NohK:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=function(L){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,I=null;return function(){for(var o=this,m=arguments.length,f=new Array(m),s=0;s<m;s++)f[s]=arguments[s];clearTimeout(I),I=setTimeout(function(){L.apply(o,f)},E)}};z.default=D},Nu4q:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={icon:function(L,E){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:L}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:E}},{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:E}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:E}},{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:L}}]}},name:"picture",theme:"twotone"};z.default=D},NvD2:function(fe,z,y){"use strict";y.d(z,"a",function(){return o});var D=y("Kwbf");function N(m,f){var s=new Set;return m.forEach(function(t){f.has(t)||s.add(t)}),s}function L(m){var f=m||{},s=f.disabled,t=f.disableCheckbox,l=f.checkable;return!!(s||t)||l===!1}function E(m,f,s,t){for(var l=new Set(m),a=new Set,r=0;r<=s;r+=1){var u=f.get(r)||new Set;u.forEach(function(c){var d=c.key,h=c.node,p=c.children,g=p===void 0?[]:p;l.has(d)&&!t(h)&&g.filter(function(v){return!t(v.node)}).forEach(function(v){l.add(v.key)})})}for(var e=new Set,n=s;n>=0;n-=1){var i=f.get(n)||new Set;i.forEach(function(c){var d=c.parent,h=c.node;if(t(h)||!c.parent||e.has(c.parent.key))return;if(t(c.parent.node)){e.add(d.key);return}var p=!0,g=!1;(d.children||[]).filter(function(v){return!t(v.node)}).forEach(function(v){var A=v.key,x=l.has(A);p&&!x&&(p=!1),!g&&(x||a.has(A))&&(g=!0)}),p&&l.add(d.key),g&&a.add(d.key),e.add(d.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(N(a,l))}}function I(m,f,s,t,l){for(var a=new Set(m),r=new Set(f),u=0;u<=t;u+=1){var e=s.get(u)||new Set;e.forEach(function(d){var h=d.key,p=d.node,g=d.children,v=g===void 0?[]:g;!a.has(h)&&!r.has(h)&&!l(p)&&v.filter(function(A){return!l(A.node)}).forEach(function(A){a.delete(A.key)})})}r=new Set;for(var n=new Set,i=t;i>=0;i-=1){var c=s.get(i)||new Set;c.forEach(function(d){var h=d.parent,p=d.node;if(l(p)||!d.parent||n.has(d.parent.key))return;if(l(d.parent.node)){n.add(h.key);return}var g=!0,v=!1;(h.children||[]).filter(function(A){return!l(A.node)}).forEach(function(A){var x=A.key,b=a.has(x);g&&!b&&(g=!1),!v&&(b||r.has(x))&&(v=!0)}),g||a.delete(h.key),v&&r.add(h.key),n.add(h.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(N(r,a))}}function o(m,f,s,t){var l=[],a;t?a=t:a=L;var r=new Set(m.filter(function(i){var c=!!s[i];return c||l.push(i),c})),u=new Map,e=0;Object.keys(s).forEach(function(i){var c=s[i],d=c.level,h=u.get(d);h||(h=new Set,u.set(d,h)),h.add(c),e=Math.max(e,d)}),Object(D.a)(!l.length,"Tree missing follow keys: ".concat(l.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var n;return f===!0?n=E(r,u,e,a):n=I(r,f.halfCheckedKeys,u,e,a),n}},"O/iA":function(fe,z,y){},O3gP:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("O/iA"),E=y.n(L),I=y("OaEy")},OELB:function(fe,z,y){var D=y("bYtY"),N=1e-4;function L(v){return v.replace(/^\s+|\s+$/g,"")}function E(v,A,x,b){var w=A[1]-A[0],S=x[1]-x[0];if(w===0)return S===0?x[0]:(x[0]+x[1])/2;if(b)if(w>0){if(v<=A[0])return x[0];if(v>=A[1])return x[1]}else{if(v>=A[0])return x[0];if(v<=A[1])return x[1]}else{if(v===A[0])return x[0];if(v===A[1])return x[1]}return(v-A[0])/w*S+x[0]}function I(v,A){switch(v){case"center":case"middle":v="50%";break;case"left":case"top":v="0%";break;case"right":case"bottom":v="100%";break}return typeof v=="string"?L(v).match(/%$/)?parseFloat(v)/100*A:parseFloat(v):v==null?NaN:+v}function o(v,A,x){return A==null&&(A=10),A=Math.min(Math.max(0,A),20),v=(+v).toFixed(A),x?v:+v}function m(v){return v.sort(function(A,x){return A-x}),v}function f(v){if(v=+v,isNaN(v))return 0;for(var A=1,x=0;Math.round(v*A)/A!==v;)A*=10,x++;return x}function s(v){var A=v.toString(),x=A.indexOf("e");if(x>0){var b=+A.slice(x+1);return b<0?-b:0}else{var w=A.indexOf(".");return w<0?0:A.length-1-w}}function t(v,A){var x=Math.log,b=Math.LN10,w=Math.floor(x(v[1]-v[0])/b),S=Math.round(x(Math.abs(A[1]-A[0]))/b),T=Math.min(Math.max(-w+S,0),20);return isFinite(T)?T:20}function l(v,A,x){if(!v[A])return 0;var b=D.reduce(v,function(P,U){return P+(isNaN(U)?0:U)},0);if(b===0)return 0;for(var w=Math.pow(10,x),S=D.map(v,function(P){return(isNaN(P)?0:P)/b*w*100}),T=w*100,C=D.map(S,function(P){return Math.floor(P)}),O=D.reduce(C,function(P,U){return P+U},0),_=D.map(S,function(P,U){return P-C[U]});O<T;){for(var M=Number.NEGATIVE_INFINITY,k=null,R=0,B=_.length;R<B;++R)_[R]>M&&(M=_[R],k=R);++C[k],_[k]=0,++O}return C[A]/w}var a=9007199254740991;function r(v){var A=Math.PI*2;return(v%A+A)%A}function u(v){return v>-N&&v<N}var e=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function n(v){if(v instanceof Date)return v;if(typeof v=="string"){var A=e.exec(v);if(!A)return new Date(NaN);if(A[8]){var x=+A[4]||0;return A[8].toUpperCase()!=="Z"&&(x-=A[8].slice(0,3)),new Date(Date.UTC(+A[1],+(A[2]||1)-1,+A[3]||1,x,+(A[5]||0),+A[6]||0,+A[7]||0))}else return new Date(+A[1],+(A[2]||1)-1,+A[3]||1,+A[4]||0,+(A[5]||0),+A[6]||0,+A[7]||0)}else if(v==null)return new Date(NaN);return new Date(Math.round(v))}function i(v){return Math.pow(10,c(v))}function c(v){if(v===0)return 0;var A=Math.floor(Math.log(v)/Math.LN10);return v/Math.pow(10,A)>=10&&A++,A}function d(v,A){var x=c(v),b=Math.pow(10,x),w=v/b,S;return A?w<1.5?S=1:w<2.5?S=2:w<4?S=3:w<7?S=5:S=10:w<1?S=1:w<2?S=2:w<3?S=3:w<5?S=5:S=10,v=S*b,x>=-20?+v.toFixed(x<0?-x:0):v}function h(v,A){var x=(v.length-1)*A+1,b=Math.floor(x),w=+v[b-1],S=x-b;return S?w+S*(v[b]-w):w}function p(v){v.sort(function(O,_){return C(O,_,0)?-1:1});for(var A=-Infinity,x=1,b=0;b<v.length;){for(var w=v[b].interval,S=v[b].close,T=0;T<2;T++)w[T]<=A&&(w[T]=A,S[T]=T?1:1-x),A=w[T],x=S[T];w[0]===w[1]&&S[0]*S[1]!==1?v.splice(b,1):b++}return v;function C(O,_,M){return O.interval[M]<_.interval[M]||O.interval[M]===_.interval[M]&&(O.close[M]-_.close[M]===(M?-1:1)||!M&&C(O,_,1))}}function g(v){return v-parseFloat(v)>=0}z.linearMap=E,z.parsePercent=I,z.round=o,z.asc=m,z.getPrecision=f,z.getPrecisionSafe=s,z.getPixelPrecision=t,z.getPercentWithPrecision=l,z.MAX_SAFE_INTEGER=a,z.remRadian=r,z.isRadianAroundZero=u,z.parseDate=n,z.quantity=i,z.quantityExponent=c,z.nice=d,z.quantile=h,z.reformIntervals=p,z.isNumeric=g},OKJ2:function(fe,z,y){var D=y("KxfA"),N=D.retrieveRawValue,L=y("7aKB"),E=L.getTooltipMarker,I=L.formatTpl,o=y("4NO4"),m=o.getTooltipRenderMode,f=/\{@(.+?)\}/g,s={getDataParams:function(t,l){var a=this.getData(l),r=this.getRawValue(t,l),u=a.getRawIndex(t),e=a.getName(t),n=a.getRawDataItem(t),i=a.getItemVisual(t,"color"),c=a.getItemVisual(t,"borderColor"),d=this.ecModel.getComponent("tooltip"),h=d&&d.get("renderMode"),p=m(h),g=this.mainType,v=g==="series",A=a.userOutput;return{componentType:g,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:e,dataIndex:u,data:n,dataType:l,value:r,color:i,borderColor:c,dimensionNames:A?A.dimensionNames:null,encode:A?A.encode:null,marker:E({color:i,renderMode:p}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,l,a,r,u){l=l||"normal";var e=this.getData(a),n=e.getItemModel(t),i=this.getDataParams(t,a);r!=null&&i.value instanceof Array&&(i.value=i.value[r]);var c=n.get(l==="normal"?[u||"label","formatter"]:[l,u||"label","formatter"]);if(typeof c=="function")return i.status=l,i.dimensionIndex=r,c(i);if(typeof c=="string"){var d=I(c,i);return d.replace(f,function(h,p){var g=p.length;return p.charAt(0)==="["&&p.charAt(g-1)==="]"&&(p=+p.slice(1,g-1)),N(e,t,p)})}},getRawValue:function(t,l){return N(this.getData(l),t)},formatTooltip:function(){}};fe.exports=s},OLod:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("K3mO"))})(this,function(D){D.lib.Cipher||function(N){var L=D,E=L.lib,I=E.Base,o=E.WordArray,m=E.BufferedBlockAlgorithm,f=L.enc,s=f.Utf8,t=f.Base64,l=L.algo,a=l.EvpKDF,r=E.Cipher=m.extend({cfg:I.extend(),createEncryptor:function(T,C){return this.create(this._ENC_XFORM_MODE,T,C)},createDecryptor:function(T,C){return this.create(this._DEC_XFORM_MODE,T,C)},init:function(T,C,O){this.cfg=this.cfg.extend(O),this._xformMode=T,this._key=C,this.reset()},reset:function(){m.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var C=this._doFinalize();return C},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function S(T){return typeof T=="string"?w:A}return function(T){return{encrypt:function(O,_,M){return S(_).encrypt(T,O,_,M)},decrypt:function(O,_,M){return S(_).decrypt(T,O,_,M)}}}}()}),u=E.StreamCipher=r.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1}),e=L.mode={},n=E.BlockCipherMode=I.extend({createEncryptor:function(T,C){return this.Encryptor.create(T,C)},createDecryptor:function(T,C){return this.Decryptor.create(T,C)},init:function(T,C){this._cipher=T,this._iv=C}}),i=e.CBC=function(){var S=n.extend();S.Encryptor=S.extend({processBlock:function(O,_){var M=this._cipher,k=M.blockSize;T.call(this,O,_,k),M.encryptBlock(O,_),this._prevBlock=O.slice(_,_+k)}}),S.Decryptor=S.extend({processBlock:function(O,_){var M=this._cipher,k=M.blockSize,R=O.slice(_,_+k);M.decryptBlock(O,_),T.call(this,O,_,k),this._prevBlock=R}});function T(C,O,_){var M,k=this._iv;k?(M=k,this._iv=N):M=this._prevBlock;for(var R=0;R<_;R++)C[O+R]^=M[R]}return S}(),c=L.pad={},d=c.Pkcs7={pad:function(T,C){for(var O=C*4,_=O-T.sigBytes%O,M=_<<24|_<<16|_<<8|_,k=[],R=0;R<_;R+=4)k.push(M);var B=o.create(k,_);T.concat(B)},unpad:function(T){var C=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=C}},h=E.BlockCipher=r.extend({cfg:r.cfg.extend({mode:i,padding:d}),reset:function(){var T;r.reset.call(this);var C=this.cfg,O=C.iv,_=C.mode;this._xformMode==this._ENC_XFORM_MODE?T=_.createEncryptor:(T=_.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,O&&O.words):(this._mode=T.call(_,this,O&&O.words),this._mode.__creator=T)},_doProcessBlock:function(T,C){this._mode.processBlock(T,C)},_doFinalize:function(){var T,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),C.unpad(T)),T},blockSize:128/32}),p=E.CipherParams=I.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),g=L.format={},v=g.OpenSSL={stringify:function(T){var C,O=T.ciphertext,_=T.salt;return _?C=o.create([1398893684,1701076831]).concat(_).concat(O):C=O,C.toString(t)},parse:function(T){var C,O=t.parse(T),_=O.words;return _[0]==1398893684&&_[1]==1701076831&&(C=o.create(_.slice(2,4)),_.splice(0,4),O.sigBytes-=16),p.create({ciphertext:O,salt:C})}},A=E.SerializableCipher=I.extend({cfg:I.extend({format:v}),encrypt:function(T,C,O,_){_=this.cfg.extend(_);var M=T.createEncryptor(O,_),k=M.finalize(C),R=M.cfg;return p.create({ciphertext:k,key:O,iv:R.iv,algorithm:T,mode:R.mode,padding:R.padding,blockSize:T.blockSize,formatter:_.format})},decrypt:function(T,C,O,_){_=this.cfg.extend(_),C=this._parse(C,_.format);var M=T.createDecryptor(O,_).finalize(C.ciphertext);return M},_parse:function(T,C){return typeof T=="string"?C.parse(T,this):T}}),x=L.kdf={},b=x.OpenSSL={execute:function(T,C,O,_){_||(_=o.random(64/8));var M=a.create({keySize:C+O}).compute(T,_),k=o.create(M.words.slice(C),O*4);return M.sigBytes=C*4,p.create({key:M,iv:k,salt:_})}},w=E.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:b}),encrypt:function(T,C,O,_){_=this.cfg.extend(_);var M=_.kdf.execute(O,T.keySize,T.ivSize);_.iv=M.iv;var k=A.encrypt.call(this,T,C,M.key,_);return k.mixIn(M),k},decrypt:function(T,C,O,_){_=this.cfg.extend(_),C=this._parse(C,_.format);var M=_.kdf.execute(O,T.keySize,T.ivSize,C.salt);_.iv=M.iv;var k=A.decrypt.call(this,T,C,M.key,_);return k}})}()})},OPEp:function(fe,z,y){},OQFs:function(fe,z,y){var D=y("KCsZ"),N=D([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),L={getLineStyle:function(E){var I=N(this,E);return I.lineDash=this.getLineDash(I.lineWidth),I},getLineDash:function(E){E==null&&(E=1);var I=this.get("type"),o=Math.max(E,2),m=E*4;return I==="solid"||I==null?!1:I==="dashed"?[m,m]:[o,o]}};fe.exports=L},OS9S:function(fe,z,y){var D=y("bYtY"),N=D.inherits,L=y("Gev7"),E=y("mFDi");function I(f){L.call(this,f),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}I.prototype.incremental=!0,I.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},I.prototype.addDisplayable=function(f,s){s?this._temporaryDisplayables.push(f):this._displayables.push(f),this.dirty()},I.prototype.addDisplayables=function(f,s){s=s||!1;for(var t=0;t<f.length;t++)this.addDisplayable(f[t],s)},I.prototype.eachPendingDisplayable=function(f){for(var s=this._cursor;s<this._displayables.length;s++)f&&f(this._displayables[s]);for(var s=0;s<this._temporaryDisplayables.length;s++)f&&f(this._temporaryDisplayables[s])},I.prototype.update=function(){this.updateTransform();for(var f=this._cursor;f<this._displayables.length;f++){var s=this._displayables[f];s.parent=this,s.update(),s.parent=null}for(var f=0;f<this._temporaryDisplayables.length;f++){var s=this._temporaryDisplayables[f];s.parent=this,s.update(),s.parent=null}},I.prototype.brush=function(f,s){for(var t=this._cursor;t<this._displayables.length;t++){var l=this._displayables[t];l.beforeBrush&&l.beforeBrush(f),l.brush(f,t===this._cursor?null:this._displayables[t-1]),l.afterBrush&&l.afterBrush(f)}this._cursor=t;for(var t=0;t<this._temporaryDisplayables.length;t++){var l=this._temporaryDisplayables[t];l.beforeBrush&&l.beforeBrush(f),l.brush(f,t===0?null:this._temporaryDisplayables[t-1]),l.afterBrush&&l.afterBrush(f)}this._temporaryDisplayables=[],this.notClear=!0};var o=[];I.prototype.getBoundingRect=function(){if(!this._rect){for(var f=new E(Infinity,Infinity,-Infinity,-Infinity),s=0;s<this._displayables.length;s++){var t=this._displayables[s],l=t.getBoundingRect().clone();t.needLocalTransform()&&l.applyTransform(t.getLocalTransform(o)),f.union(l)}this._rect=f}return this._rect},I.prototype.contain=function(f,s){var t=this.transformCoordToLocal(f,s),l=this.getBoundingRect();if(l.contain(t[0],t[1]))for(var a=0;a<this._displayables.length;a++){var r=this._displayables[a];if(r.contain(f,s))return!0}return!1},N(I,L);var m=I;fe.exports=m},OUJF:function(fe,z,y){var D=y("ProS"),N=y("bYtY");D.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(L,E){var I=E.getComponent("timeline");return I&&L.currentIndex!=null&&(I.setCurrentIndex(L.currentIndex),!I.get("loop",!0)&&I.isIndexMax()&&I.setPlayState(!1)),E.resetOption("timeline"),N.defaults({currentIndex:I.option.currentIndex},L)}),D.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(L,E){var I=E.getComponent("timeline");I&&L.playState!=null&&I.setPlayState(L.playState)})},OXB0:function(fe,z,y){var D=y("T4UG"),N=y("MwEJ"),L=y("IDmD"),E=D.extend({type:"series.heatmap",getInitialData:function(I,o){return N(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var I=L.get(this.get("coordinateSystem"));if(I&&I.dimensions)return I.dimensions[0]==="lng"&&I.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});fe.exports=E},OZM5:function(fe,z,y){"use strict";y.d(z,"b",function(){return t}),y.d(z,"a",function(){return l}),y.d(z,"k",function(){return a}),y.d(z,"h",function(){return r}),y.d(z,"i",function(){return u}),y.d(z,"g",function(){return e}),y.d(z,"c",function(){return n}),y.d(z,"d",function(){return i}),y.d(z,"j",function(){return h}),y.d(z,"e",function(){return p}),y.d(z,"f",function(){return g});var D=y("KQm4"),N=y("U8pU"),L=y("Ff2n"),E=y("q1tI"),I=y.n(E),o=y("Kwbf"),m=y("WaYH"),f=.25,s=2;function t(v,A){var x=v.slice(),b=x.indexOf(A);return b>=0&&x.splice(b,1),x}function l(v,A){var x=v.slice();return x.indexOf(A)===-1&&x.push(A),x}function a(v){return v.split("-")}function r(v,A){return"".concat(v,"-").concat(A)}function u(v){return v&&v.type&&v.type.isTreeNode}function e(v,A){var x=[v],b=A[v];function w(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];S.forEach(function(T){var C=T.key,O=T.children;x.push(C),w(O)})}return w(b.children),x}function n(v,A){var x=v.clientY,b=A.selectHandle.getBoundingClientRect(),w=b.top,S=b.bottom,T=b.height,C=Math.max(T*f,s);return x<=w+C?-1:x>=S-C?1:0}function i(v,A){if(!v)return;var x=A.multiple;return x?v.slice():v.length?[v[0]]:v}var c=function(A){return A};function d(v,A){if(!v)return[];var x=A||{},b=x.processProps,w=b===void 0?c:b,S=Array.isArray(v)?v:[v];return S.map(function(T){var C=T.children,O=Object(L.a)(T,["children"]),_=d(C,A);return I.a.createElement(m.a,Object.assign({},w(O)),_)})}function h(v){if(!v)return null;var A;if(Array.isArray(v))A={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(N.a)(v)==="object")A={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return A}function p(v,A){var x=new Set;function b(w){if(x.has(w))return;var S=A[w];if(!S)return;x.add(w);var T=S.parent,C=S.node;if(C.disabled)return;T&&b(T.key)}return(v||[]).forEach(function(w){b(w)}),Object(D.a)(x)}function g(v){var A={};return Object.keys(v).forEach(function(x){(x.startsWith("data-")||x.startsWith("aria-"))&&(A[x]=v[x])}),A}},OaEy:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("bKJz"),E=y.n(L),I=y("R9oj")},Ol7k:function(fe,z,y){"use strict";var D=y("PKem"),N=y("ZX9x");D.b.Sider=N.b,z.a=D.b},OlYY:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("bYtY"),I=y("ItGF"),o=y("4NO4"),m=y("UOVi"),f=y("zDms"),s=E.each,t=m.eachAxisDim,l=L.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(e,n,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var c=a(e);this.settledOption=c,this.mergeDefaultAndTheme(e,i),this.doInit(c)},mergeOption:function(e){var n=a(e);E.merge(this.option,e,!0),E.merge(this.settledOption,n,!0),this.doInit(n)},doInit:function(e){var n=this.option;I.canvasSupported||(n.realtime=!1),this._setDefaultThrottle(e),r(this,e);var i=this.settledOption;s([["start","startValue"],["end","endValue"]],function(c,d){this._rangePropMode[d]==="value"&&(n[c[0]]=i[c[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis(function(n,i,c,d){var h=this.dependentModels[n.axis][i],p=h.__dzAxisProxy||(h.__dzAxisProxy=new f(n.name,i,this,d));e[n.name+"_"+i]=p},this)},_resetTarget:function(){var e=this.option,n=this._judgeAutoMode();t(function(i){var c=i.axisIndex;e[c]=o.normalizeToArray(e[c])},this),n==="axisIndex"?this._autoSetAxisIndex():n==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,n=!1;t(function(c){e[c.axisIndex]!=null&&(n=!0)},this);var i=e.orient;if(i==null&&n)return"orient";if(!n)return i==null&&(e.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var e=!0,n=this.get("orient",!0),i=this.option,c=this.dependentModels;if(e){var d=n==="vertical"?"y":"x";c[d+"Axis"].length?(i[d+"AxisIndex"]=[0],e=!1):s(c.singleAxis,function(h){e&&h.get("orient",!0)===n&&(i.singleAxisIndex=[h.componentIndex],e=!1)})}e&&t(function(h){if(!e)return;var p=[],g=this.dependentModels[h.axis];if(g.length&&!p.length)for(var v=0,A=g.length;v<A;v++)g[v].get("type")==="category"&&p.push(v);i[h.axisIndex]=p,p.length&&(e=!1)},this),e&&this.ecModel.eachSeries(function(h){this._isSeriesHasAllAxesTypeOf(h,"value")&&t(function(p){var g=i[p.axisIndex],v=h.get(p.axisIndex),A=h.get(p.axisId),x=h.ecModel.queryComponents({mainType:p.axis,index:v,id:A})[0];v=x.componentIndex,E.indexOf(g,v)<0&&g.push(v)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(n){!e&&(e=n.name)},this),this.option.orient=e==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,n){var i=!0;return t(function(c){var d=e.get(c.axisIndex),h=this.dependentModels[c.axis][d];(!h||h.get("type")!==n)&&(i=!1)},this),i},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return t(function(n){if(e==null){var i=this.get(n.axisIndex);i.length&&(e=this.dependentModels[n.axis][i[0]])}},this),e},eachTargetAxis:function(e,n){var i=this.ecModel;t(function(c){s(this.get(c.axisIndex),function(d){e.call(n,c,d,this,i)},this)},this)},getAxisProxy:function(e,n){return this._axisProxies[e+"_"+n]},getAxisModel:function(e,n){var i=this.getAxisProxy(e,n);return i&&i.getAxisModel()},setRawRange:function(e){var n=this.option,i=this.settledOption;s([["start","startValue"],["end","endValue"]],function(c){(e[c[0]]!=null||e[c[1]]!=null)&&(n[c[0]]=i[c[0]]=e[c[0]],n[c[1]]=i[c[1]]=e[c[1]])},this),r(this,e)},setCalculatedRange:function(e){var n=this.option;s(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var n=this._axisProxies;for(var i in n)if(n.hasOwnProperty(i)&&n[i].hostedBy(this))return n[i];for(var i in n)if(n.hasOwnProperty(i)&&!n[i].hostedBy(this))return n[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});function a(e){var n={};return s(["start","end","startValue","endValue","throttle"],function(i){e.hasOwnProperty(i)&&(n[i]=e[i])}),n}function r(e,n){var i=e._rangePropMode,c=e.get("rangeMode");s([["start","startValue"],["end","endValue"]],function(d,h){var p=n[d[0]]!=null,g=n[d[1]]!=null;p&&!g?i[h]="percent":!p&&g?i[h]="value":c?i[h]=c[h]:p&&(i[h]="percent")})}var u=l;fe.exports=u},OnYD:function(fe,z,y){},"Oy/b":function(fe,z,y){(function(N,L){fe.exports=L()})(typeof self!="undefined"?self:this,function(){return function(D){var N={};function L(E){if(N[E])return N[E].exports;var I=N[E]={i:E,l:!1,exports:{}};return D[E].call(I.exports,I,I.exports,L),I.l=!0,I.exports}return L.m=D,L.c=N,L.d=function(E,I,o){L.o(E,I)||Object.defineProperty(E,I,{enumerable:!0,get:o})},L.r=function(E){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},L.t=function(E,I){if(I&1&&(E=L(E)),I&8)return E;if(I&4&&typeof E=="object"&&E&&E.__esModule)return E;var o=Object.create(null);if(L.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:E}),I&2&&typeof E!="string")for(var m in E)L.d(o,m,function(f){return E[f]}.bind(null,m));return o},L.n=function(E){var I=E&&E.__esModule?function(){return E.default}:function(){return E};return L.d(I,"a",I),I},L.o=function(E,I){return Object.prototype.hasOwnProperty.call(E,I)},L.p="",L(L.s=1)}([function(D,N,L){},function(D,N,L){"use strict";L.r(N);var E=L(0),I=function(){function vt(se,ye,Se){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=se,this.start=ye,this.end=Se}return vt.range=function(ye,Se){return Se?!ye||!ye.loc||!Se.loc||ye.loc.lexer!==Se.loc.lexer?null:new vt(ye.loc.lexer,ye.loc.start,Se.loc.end):ye&&ye.loc},vt}(),o=function(){function vt(ye,Se){this.text=void 0,this.loc=void 0,this.text=ye,this.loc=Se}var se=vt.prototype;return se.range=function(Se,Ue){return new vt(Ue,I.range(this,Se))},vt}(),m=function vt(se,ye){this.position=void 0;var Se="KaTeX parse error: "+se,Ue,ht=ye&&ye.loc;if(ht&&ht.start<=ht.end){var Nt=ht.lexer.input;Ue=ht.start;var br=ht.end;Ue===Nt.length?Se+=" at end of input: ":Se+=" at position "+(Ue+1)+": ";var Or=Nt.slice(Ue,br).replace(/[^]/g,"$&\u0332"),Zr;Ue>15?Zr="\u2026"+Nt.slice(Ue-15,Ue):Zr=Nt.slice(0,Ue);var Tn;br+15<Nt.length?Tn=Nt.slice(br,br+15)+"\u2026":Tn=Nt.slice(br),Se+=Zr+Or+Tn}var Hn=new Error(Se);return Hn.name="ParseError",Hn.__proto__=vt.prototype,Hn.position=Ue,Hn};m.prototype.__proto__=Error.prototype;var f=m,s=function(se,ye){return se.indexOf(ye)!==-1},t=function(se,ye){return se===void 0?ye:se},l=/([A-Z])/g,a=function(se){return se.replace(l,"-$1").toLowerCase()},r={"&":"&",">":">","<":"<",'"':""","'":"'"},u=/[&><"']/g;function e(vt){return String(vt).replace(u,function(se){return r[se]})}var n=function vt(se){return se.type==="ordgroup"||se.type==="color"?se.body.length===1?vt(se.body[0]):se:se.type==="font"?vt(se.body):se},i=function(se){var ye=n(se);return ye.type==="mathord"||ye.type==="textord"||ye.type==="atom"},c=function(se){if(!se)throw new Error("Expected non-null, but got "+String(se));return se},d=function(se){var ye=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(se);return ye!=null?ye[1]:"_relative"},h={contains:s,deflt:t,escape:e,hyphenate:a,getBaseElem:n,isCharacterBox:i,protocolFromUrl:d},p=function(){function vt(ye){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,ye=ye||{},this.displayMode=h.deflt(ye.displayMode,!1),this.output=h.deflt(ye.output,"htmlAndMathml"),this.leqno=h.deflt(ye.leqno,!1),this.fleqn=h.deflt(ye.fleqn,!1),this.throwOnError=h.deflt(ye.throwOnError,!0),this.errorColor=h.deflt(ye.errorColor,"#cc0000"),this.macros=ye.macros||{},this.minRuleThickness=Math.max(0,h.deflt(ye.minRuleThickness,0)),this.colorIsTextColor=h.deflt(ye.colorIsTextColor,!1),this.strict=h.deflt(ye.strict,"warn"),this.trust=h.deflt(ye.trust,!1),this.maxSize=Math.max(0,h.deflt(ye.maxSize,Infinity)),this.maxExpand=Math.max(0,h.deflt(ye.maxExpand,1e3))}var se=vt.prototype;return se.reportNonstrict=function(Se,Ue,ht){var Nt=this.strict;if(typeof Nt=="function"&&(Nt=Nt(Se,Ue,ht)),!Nt||Nt==="ignore")return;if(Nt===!0||Nt==="error")throw new f("LaTeX-incompatible input and strict mode is set to 'error': "+(Ue+" ["+Se+"]"),ht);Nt==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Ue+" ["+Se+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Nt+"': "+Ue+" ["+Se+"]"))},se.useStrictBehavior=function(Se,Ue,ht){var Nt=this.strict;if(typeof Nt=="function")try{Nt=Nt(Se,Ue,ht)}catch(br){Nt="error"}return!Nt||Nt==="ignore"?!1:Nt===!0||Nt==="error"?!0:Nt==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Ue+" ["+Se+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Nt+"': "+Ue+" ["+Se+"]")),!1)},se.isTrusted=function(Se){Se.url&&!Se.protocol&&(Se.protocol=h.protocolFromUrl(Se.url));var Ue=typeof this.trust=="function"?this.trust(Se):this.trust;return Boolean(Ue)},vt}(),g=function(){function vt(ye,Se,Ue){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=ye,this.size=Se,this.cramped=Ue}var se=vt.prototype;return se.sup=function(){return O[_[this.id]]},se.sub=function(){return O[M[this.id]]},se.fracNum=function(){return O[k[this.id]]},se.fracDen=function(){return O[R[this.id]]},se.cramp=function(){return O[B[this.id]]},se.text=function(){return O[P[this.id]]},se.isTight=function(){return this.size>=2},vt}(),v=0,A=1,x=2,b=3,w=4,S=5,T=6,C=7,O=[new g(v,0,!1),new g(A,0,!0),new g(x,1,!1),new g(b,1,!0),new g(w,2,!1),new g(S,2,!0),new g(T,3,!1),new g(C,3,!0)],_=[w,S,w,S,T,C,T,C],M=[S,S,S,S,C,C,C,C],k=[x,b,w,S,T,C,T,C],R=[b,b,S,S,C,C,C,C],B=[A,A,b,b,S,S,C,C],P=[v,A,x,b,x,b,x,b],U={DISPLAY:O[v],TEXT:O[x],SCRIPT:O[w],SCRIPTSCRIPT:O[T]},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 H(vt){for(var se=0;se<j.length;se++)for(var ye=j[se],Se=0;Se<ye.blocks.length;Se++){var Ue=ye.blocks[Se];if(vt>=Ue[0]&&vt<=Ue[1])return ye.name}return null}var W=[];j.forEach(function(vt){return vt.blocks.forEach(function(se){return W.push.apply(W,se)})});function G(vt){for(var se=0;se<W.length;se+=2)if(vt>=W[se]&&vt<=W[se+1])return!0;return!1}var V=80,Z=function(se,ye){return"M95,"+(622+se+ye)+`
|
|
|
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)+" "+ye+"h400000v"+(40+se)+"h-400000z"},Y=function(se,ye){return"M263,"+(601+se+ye)+`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)+" "+ye+"h400000v"+(40+se)+"h-400000z"},Q=function(se,ye){return"M983 "+(10+se+ye)+`
|
|
|
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)+" "+ye+"h400000v"+(40+se)+"h-400000z"},oe=function(se,ye){return"M424,"+(2398+se+ye)+`
|
|
|
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)+" "+ye+`
|
|
|
h400000v`+(40+se)+"h-400000z"},ue=function(se,ye){return"M473,"+(2713+se+ye)+`
|
|
|
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)+" "+ye+"h400000v"+(40+se)+"H1017.7z"},Le=function(se,ye,Se){var Ue=Se-54-ye-se;return"M702 "+(se+ye)+"H400000"+(40+se)+`
|
|
|
H742v`+Ue+`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 `+ye+"H400000v"+(40+se)+"H742z"},me=function(se,ye,Se){ye=1e3*ye;var Ue="";switch(se){case"sqrtMain":Ue=Z(ye,V);break;case"sqrtSize1":Ue=Y(ye,V);break;case"sqrtSize2":Ue=Q(ye,V);break;case"sqrtSize3":Ue=oe(ye,V);break;case"sqrtSize4":Ue=ue(ye,V);break;case"sqrtTall":Ue=Le(ye,V,Se)}return Ue},Ie={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`},X=function(){function vt(ye){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=ye,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var se=vt.prototype;return se.hasClass=function(Se){return h.contains(this.classes,Se)},se.toNode=function(){for(var Se=document.createDocumentFragment(),Ue=0;Ue<this.children.length;Ue++)Se.appendChild(this.children[Ue].toNode());return Se},se.toMarkup=function(){for(var Se="",Ue=0;Ue<this.children.length;Ue++)Se+=this.children[Ue].toMarkup();return Se},se.toText=function(){var Se=function(ht){return ht.toText()};return this.children.map(Se).join("")},vt}(),q=function(se){return se.filter(function(ye){return ye}).join(" ")},We=function(se,ye,Se){if(this.classes=se||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=Se||{},ye){ye.style.isTight()&&this.classes.push("mtight");var Ue=ye.getColor();Ue&&(this.style.color=Ue)}},$=function(se){var ye=document.createElement(se);ye.className=q(this.classes);for(var Se in this.style)this.style.hasOwnProperty(Se)&&(ye.style[Se]=this.style[Se]);for(var Ue in this.attributes)this.attributes.hasOwnProperty(Ue)&&ye.setAttribute(Ue,this.attributes[Ue]);for(var ht=0;ht<this.children.length;ht++)ye.appendChild(this.children[ht].toNode());return ye},J=function(se){var ye="<"+se;this.classes.length&&(ye+=' class="'+h.escape(q(this.classes))+'"');var Se="";for(var Ue in this.style)this.style.hasOwnProperty(Ue)&&(Se+=h.hyphenate(Ue)+":"+this.style[Ue]+";");Se&&(ye+=' style="'+h.escape(Se)+'"');for(var ht in this.attributes)this.attributes.hasOwnProperty(ht)&&(ye+=" "+ht+'="'+h.escape(this.attributes[ht])+'"');ye+=">";for(var Nt=0;Nt<this.children.length;Nt++)ye+=this.children[Nt].toMarkup();return ye+="</"+se+">",ye},le=function(){function vt(ye,Se,Ue,ht){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,We.call(this,ye,Ue,ht),this.children=Se||[]}var se=vt.prototype;return se.setAttribute=function(Se,Ue){this.attributes[Se]=Ue},se.hasClass=function(Se){return h.contains(this.classes,Se)},se.toNode=function(){return $.call(this,"span")},se.toMarkup=function(){return J.call(this,"span")},vt}(),de=function(){function vt(ye,Se,Ue,ht){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,We.call(this,Se,ht),this.children=Ue||[],this.setAttribute("href",ye)}var se=vt.prototype;return se.setAttribute=function(Se,Ue){this.attributes[Se]=Ue},se.hasClass=function(Se){return h.contains(this.classes,Se)},se.toNode=function(){return $.call(this,"a")},se.toMarkup=function(){return J.call(this,"a")},vt}(),Ne=function(){function vt(ye,Se,Ue){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=ye,this.classes=["mord"],this.style=Ue}var se=vt.prototype;return se.hasClass=function(Se){return h.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 Ue in this.style)this.style.hasOwnProperty(Ue)&&(Se.style[Ue]=this.style[Ue]);return Se},se.toMarkup=function(){var Se="<img src='"+this.src+" 'alt='"+this.alt+"' ",Ue="";for(var ht in this.style)this.style.hasOwnProperty(ht)&&(Ue+=h.hyphenate(ht)+":"+this.style[ht]+";");return Ue&&(Se+=' style="'+h.escape(Ue)+'"'),Se+="'/>",Se},vt}(),we={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},De=function(){function vt(ye,Se,Ue,ht,Nt,br,Or,Zr){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=ye,this.height=Se||0,this.depth=Ue||0,this.italic=ht||0,this.skew=Nt||0,this.width=br||0,this.classes=Or||[],this.style=Zr||{},this.maxFontSize=0;var Tn=H(this.text.charCodeAt(0));Tn&&this.classes.push(Tn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=we[this.text])}var se=vt.prototype;return se.hasClass=function(Se){return h.contains(this.classes,Se)},se.toNode=function(){var Se=document.createTextNode(this.text),Ue=null;this.italic>0&&(Ue=document.createElement("span"),Ue.style.marginRight=this.italic+"em"),this.classes.length>0&&(Ue=Ue||document.createElement("span"),Ue.className=q(this.classes));for(var ht in this.style)this.style.hasOwnProperty(ht)&&(Ue=Ue||document.createElement("span"),Ue.style[ht]=this.style[ht]);return Ue?(Ue.appendChild(Se),Ue):Se},se.toMarkup=function(){var Se=!1,Ue="<span";this.classes.length&&(Se=!0,Ue+=' class="',Ue+=h.escape(q(this.classes)),Ue+='"');var ht="";this.italic>0&&(ht+="margin-right:"+this.italic+"em;");for(var Nt in this.style)this.style.hasOwnProperty(Nt)&&(ht+=h.hyphenate(Nt)+":"+this.style[Nt]+";");ht&&(Se=!0,Ue+=' style="'+h.escape(ht)+'"');var br=h.escape(this.text);return Se?(Ue+=">",Ue+=br,Ue+="</span>",Ue):br},vt}(),Ee=function(){function vt(ye,Se){this.children=void 0,this.attributes=void 0,this.children=ye||[],this.attributes=Se||{}}var se=vt.prototype;return se.toNode=function(){var Se="http://www.w3.org/2000/svg",Ue=document.createElementNS(Se,"svg");for(var ht in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,ht)&&Ue.setAttribute(ht,this.attributes[ht]);for(var Nt=0;Nt<this.children.length;Nt++)Ue.appendChild(this.children[Nt].toNode());return Ue},se.toMarkup=function(){var Se="<svg";for(var Ue in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ue)&&(Se+=" "+Ue+"='"+this.attributes[Ue]+"'");Se+=">";for(var ht=0;ht<this.children.length;ht++)Se+=this.children[ht].toMarkup();return Se+="</svg>",Se},vt}(),ce=function(){function vt(ye,Se){this.pathName=void 0,this.alternate=void 0,this.pathName=ye,this.alternate=Se}var se=vt.prototype;return se.toNode=function(){var Se="http://www.w3.org/2000/svg",Ue=document.createElementNS(Se,"path");return this.alternate?Ue.setAttribute("d",this.alternate):Ue.setAttribute("d",Ie[this.pathName]),Ue},se.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Ie[this.pathName]+"'/>"},vt}(),ne=function(){function vt(ye){this.attributes=void 0,this.attributes=ye||{}}var se=vt.prototype;return se.toNode=function(){var Se="http://www.w3.org/2000/svg",Ue=document.createElementNS(Se,"line");for(var ht in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,ht)&&Ue.setAttribute(ht,this.attributes[ht]);return Ue},se.toMarkup=function(){var Se="<line";for(var Ue in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ue)&&(Se+=" "+Ue+"='"+this.attributes[Ue]+"'");return Se+="/>",Se},vt}();function ee(vt){if(vt instanceof De)return vt;throw new Error("Expected symbolNode but got "+String(vt)+".")}function Ae(vt){if(vt instanceof le)return vt;throw new Error("Expected span<HtmlDomNode> but got "+String(vt)+".")}var Ve={"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]}},Ke={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]},Oe={\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 it(vt,se){Ve[vt]=se}function Fe(vt,se,ye){if(!Ve[se])throw new Error("Font metrics not found for font: "+se+".");var Se=vt.charCodeAt(0),Ue=Ve[se][Se];if(!Ue&&vt[0]in Oe&&(Se=Oe[vt[0]].charCodeAt(0),Ue=Ve[se][Se]),!Ue&&ye==="text"&&(G(Se)&&(Ue=Ve[se][77])),Ue)return{depth:Ue[0],height:Ue[1],italic:Ue[2],skew:Ue[3],width:Ue[4]}}var ft={};function At(vt){var se;if(vt>=5?se=0:vt>=3?se=1:se=2,!ft[se]){var ye=ft[se]={cssEmPerMu:Ke.quad[se]/18};for(var Se in Ke)Ke.hasOwnProperty(Se)&&(ye[Se]=Ke[Se][se])}return ft[se]}var bt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},St={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Et={math:{},text:{}},je=Et;function pe(vt,se,ye,Se,Ue,ht){Et[vt][Ue]={font:se,group:ye,replace:Se},ht&&Se&&(Et[vt][Se]=Et[vt][Ue])}var ie="math",st="text",Qe="main",ve="ams",Bt="accent-token",qt="bin",ct="close",Wt="inner",or="mathord",Fr="op-token",er="open",nr="punct",Ot="rel",lt="spacing",qe="textord";pe(ie,Qe,Ot,"\u2261","\\equiv",!0),pe(ie,Qe,Ot,"\u227A","\\prec",!0),pe(ie,Qe,Ot,"\u227B","\\succ",!0),pe(ie,Qe,Ot,"\u223C","\\sim",!0),pe(ie,Qe,Ot,"\u22A5","\\perp"),pe(ie,Qe,Ot,"\u2AAF","\\preceq",!0),pe(ie,Qe,Ot,"\u2AB0","\\succeq",!0),pe(ie,Qe,Ot,"\u2243","\\simeq",!0),pe(ie,Qe,Ot,"\u2223","\\mid",!0),pe(ie,Qe,Ot,"\u226A","\\ll",!0),pe(ie,Qe,Ot,"\u226B","\\gg",!0),pe(ie,Qe,Ot,"\u224D","\\asymp",!0),pe(ie,Qe,Ot,"\u2225","\\parallel"),pe(ie,Qe,Ot,"\u22C8","\\bowtie",!0),pe(ie,Qe,Ot,"\u2323","\\smile",!0),pe(ie,Qe,Ot,"\u2291","\\sqsubseteq",!0),pe(ie,Qe,Ot,"\u2292","\\sqsupseteq",!0),pe(ie,Qe,Ot,"\u2250","\\doteq",!0),pe(ie,Qe,Ot,"\u2322","\\frown",!0),pe(ie,Qe,Ot,"\u220B","\\ni",!0),pe(ie,Qe,Ot,"\u221D","\\propto",!0),pe(ie,Qe,Ot,"\u22A2","\\vdash",!0),pe(ie,Qe,Ot,"\u22A3","\\dashv",!0),pe(ie,Qe,Ot,"\u220B","\\owns"),pe(ie,Qe,nr,".","\\ldotp"),pe(ie,Qe,nr,"\u22C5","\\cdotp"),pe(ie,Qe,qe,"#","\\#"),pe(st,Qe,qe,"#","\\#"),pe(ie,Qe,qe,"&","\\&"),pe(st,Qe,qe,"&","\\&"),pe(ie,Qe,qe,"\u2135","\\aleph",!0),pe(ie,Qe,qe,"\u2200","\\forall",!0),pe(ie,Qe,qe,"\u210F","\\hbar",!0),pe(ie,Qe,qe,"\u2203","\\exists",!0),pe(ie,Qe,qe,"\u2207","\\nabla",!0),pe(ie,Qe,qe,"\u266D","\\flat",!0),pe(ie,Qe,qe,"\u2113","\\ell",!0),pe(ie,Qe,qe,"\u266E","\\natural",!0),pe(ie,Qe,qe,"\u2663","\\clubsuit",!0),pe(ie,Qe,qe,"\u2118","\\wp",!0),pe(ie,Qe,qe,"\u266F","\\sharp",!0),pe(ie,Qe,qe,"\u2662","\\diamondsuit",!0),pe(ie,Qe,qe,"\u211C","\\Re",!0),pe(ie,Qe,qe,"\u2661","\\heartsuit",!0),pe(ie,Qe,qe,"\u2111","\\Im",!0),pe(ie,Qe,qe,"\u2660","\\spadesuit",!0),pe(st,Qe,qe,"\xA7","\\S",!0),pe(st,Qe,qe,"\xB6","\\P",!0),pe(ie,Qe,qe,"\u2020","\\dag"),pe(st,Qe,qe,"\u2020","\\dag"),pe(st,Qe,qe,"\u2020","\\textdagger"),pe(ie,Qe,qe,"\u2021","\\ddag"),pe(st,Qe,qe,"\u2021","\\ddag"),pe(st,Qe,qe,"\u2021","\\textdaggerdbl"),pe(ie,Qe,ct,"\u23B1","\\rmoustache",!0),pe(ie,Qe,er,"\u23B0","\\lmoustache",!0),pe(ie,Qe,ct,"\u27EF","\\rgroup",!0),pe(ie,Qe,er,"\u27EE","\\lgroup",!0),pe(ie,Qe,qt,"\u2213","\\mp",!0),pe(ie,Qe,qt,"\u2296","\\ominus",!0),pe(ie,Qe,qt,"\u228E","\\uplus",!0),pe(ie,Qe,qt,"\u2293","\\sqcap",!0),pe(ie,Qe,qt,"\u2217","\\ast"),pe(ie,Qe,qt,"\u2294","\\sqcup",!0),pe(ie,Qe,qt,"\u25EF","\\bigcirc"),pe(ie,Qe,qt,"\u2219","\\bullet"),pe(ie,Qe,qt,"\u2021","\\ddagger"),pe(ie,Qe,qt,"\u2240","\\wr",!0),pe(ie,Qe,qt,"\u2A3F","\\amalg"),pe(ie,Qe,qt,"&","\\And"),pe(ie,Qe,Ot,"\u27F5","\\longleftarrow",!0),pe(ie,Qe,Ot,"\u21D0","\\Leftarrow",!0),pe(ie,Qe,Ot,"\u27F8","\\Longleftarrow",!0),pe(ie,Qe,Ot,"\u27F6","\\longrightarrow",!0),pe(ie,Qe,Ot,"\u21D2","\\Rightarrow",!0),pe(ie,Qe,Ot,"\u27F9","\\Longrightarrow",!0),pe(ie,Qe,Ot,"\u2194","\\leftrightarrow",!0),pe(ie,Qe,Ot,"\u27F7","\\longleftrightarrow",!0),pe(ie,Qe,Ot,"\u21D4","\\Leftrightarrow",!0),pe(ie,Qe,Ot,"\u27FA","\\Longleftrightarrow",!0),pe(ie,Qe,Ot,"\u21A6","\\mapsto",!0),pe(ie,Qe,Ot,"\u27FC","\\longmapsto",!0),pe(ie,Qe,Ot,"\u2197","\\nearrow",!0),pe(ie,Qe,Ot,"\u21A9","\\hookleftarrow",!0),pe(ie,Qe,Ot,"\u21AA","\\hookrightarrow",!0),pe(ie,Qe,Ot,"\u2198","\\searrow",!0),pe(ie,Qe,Ot,"\u21BC","\\leftharpoonup",!0),pe(ie,Qe,Ot,"\u21C0","\\rightharpoonup",!0),pe(ie,Qe,Ot,"\u2199","\\swarrow",!0),pe(ie,Qe,Ot,"\u21BD","\\leftharpoondown",!0),pe(ie,Qe,Ot,"\u21C1","\\rightharpoondown",!0),pe(ie,Qe,Ot,"\u2196","\\nwarrow",!0),pe(ie,Qe,Ot,"\u21CC","\\rightleftharpoons",!0),pe(ie,ve,Ot,"\u226E","\\nless",!0),pe(ie,ve,Ot,"\uE010","\\@nleqslant"),pe(ie,ve,Ot,"\uE011","\\@nleqq"),pe(ie,ve,Ot,"\u2A87","\\lneq",!0),pe(ie,ve,Ot,"\u2268","\\lneqq",!0),pe(ie,ve,Ot,"\uE00C","\\@lvertneqq"),pe(ie,ve,Ot,"\u22E6","\\lnsim",!0),pe(ie,ve,Ot,"\u2A89","\\lnapprox",!0),pe(ie,ve,Ot,"\u2280","\\nprec",!0),pe(ie,ve,Ot,"\u22E0","\\npreceq",!0),pe(ie,ve,Ot,"\u22E8","\\precnsim",!0),pe(ie,ve,Ot,"\u2AB9","\\precnapprox",!0),pe(ie,ve,Ot,"\u2241","\\nsim",!0),pe(ie,ve,Ot,"\uE006","\\@nshortmid"),pe(ie,ve,Ot,"\u2224","\\nmid",!0),pe(ie,ve,Ot,"\u22AC","\\nvdash",!0),pe(ie,ve,Ot,"\u22AD","\\nvDash",!0),pe(ie,ve,Ot,"\u22EA","\\ntriangleleft"),pe(ie,ve,Ot,"\u22EC","\\ntrianglelefteq",!0),pe(ie,ve,Ot,"\u228A","\\subsetneq",!0),pe(ie,ve,Ot,"\uE01A","\\@varsubsetneq"),pe(ie,ve,Ot,"\u2ACB","\\subsetneqq",!0),pe(ie,ve,Ot,"\uE017","\\@varsubsetneqq"),pe(ie,ve,Ot,"\u226F","\\ngtr",!0),pe(ie,ve,Ot,"\uE00F","\\@ngeqslant"),pe(ie,ve,Ot,"\uE00E","\\@ngeqq"),pe(ie,ve,Ot,"\u2A88","\\gneq",!0),pe(ie,ve,Ot,"\u2269","\\gneqq",!0),pe(ie,ve,Ot,"\uE00D","\\@gvertneqq"),pe(ie,ve,Ot,"\u22E7","\\gnsim",!0),pe(ie,ve,Ot,"\u2A8A","\\gnapprox",!0),pe(ie,ve,Ot,"\u2281","\\nsucc",!0),pe(ie,ve,Ot,"\u22E1","\\nsucceq",!0),pe(ie,ve,Ot,"\u22E9","\\succnsim",!0),pe(ie,ve,Ot,"\u2ABA","\\succnapprox",!0),pe(ie,ve,Ot,"\u2246","\\ncong",!0),pe(ie,ve,Ot,"\uE007","\\@nshortparallel"),pe(ie,ve,Ot,"\u2226","\\nparallel",!0),pe(ie,ve,Ot,"\u22AF","\\nVDash",!0),pe(ie,ve,Ot,"\u22EB","\\ntriangleright"),pe(ie,ve,Ot,"\u22ED","\\ntrianglerighteq",!0),pe(ie,ve,Ot,"\uE018","\\@nsupseteqq"),pe(ie,ve,Ot,"\u228B","\\supsetneq",!0),pe(ie,ve,Ot,"\uE01B","\\@varsupsetneq"),pe(ie,ve,Ot,"\u2ACC","\\supsetneqq",!0),pe(ie,ve,Ot,"\uE019","\\@varsupsetneqq"),pe(ie,ve,Ot,"\u22AE","\\nVdash",!0),pe(ie,ve,Ot,"\u2AB5","\\precneqq",!0),pe(ie,ve,Ot,"\u2AB6","\\succneqq",!0),pe(ie,ve,Ot,"\uE016","\\@nsubseteqq"),pe(ie,ve,qt,"\u22B4","\\unlhd"),pe(ie,ve,qt,"\u22B5","\\unrhd"),pe(ie,ve,Ot,"\u219A","\\nleftarrow",!0),pe(ie,ve,Ot,"\u219B","\\nrightarrow",!0),pe(ie,ve,Ot,"\u21CD","\\nLeftarrow",!0),pe(ie,ve,Ot,"\u21CF","\\nRightarrow",!0),pe(ie,ve,Ot,"\u21AE","\\nleftrightarrow",!0),pe(ie,ve,Ot,"\u21CE","\\nLeftrightarrow",!0),pe(ie,ve,Ot,"\u25B3","\\vartriangle"),pe(ie,ve,qe,"\u210F","\\hslash"),pe(ie,ve,qe,"\u25BD","\\triangledown"),pe(ie,ve,qe,"\u25CA","\\lozenge"),pe(ie,ve,qe,"\u24C8","\\circledS"),pe(ie,ve,qe,"\xAE","\\circledR"),pe(st,ve,qe,"\xAE","\\circledR"),pe(ie,ve,qe,"\u2221","\\measuredangle",!0),pe(ie,ve,qe,"\u2204","\\nexists"),pe(ie,ve,qe,"\u2127","\\mho"),pe(ie,ve,qe,"\u2132","\\Finv",!0),pe(ie,ve,qe,"\u2141","\\Game",!0),pe(ie,ve,qe,"\u2035","\\backprime"),pe(ie,ve,qe,"\u25B2","\\blacktriangle"),pe(ie,ve,qe,"\u25BC","\\blacktriangledown"),pe(ie,ve,qe,"\u25A0","\\blacksquare"),pe(ie,ve,qe,"\u29EB","\\blacklozenge"),pe(ie,ve,qe,"\u2605","\\bigstar"),pe(ie,ve,qe,"\u2222","\\sphericalangle",!0),pe(ie,ve,qe,"\u2201","\\complement",!0),pe(ie,ve,qe,"\xF0","\\eth",!0),pe(ie,ve,qe,"\u2571","\\diagup"),pe(ie,ve,qe,"\u2572","\\diagdown"),pe(ie,ve,qe,"\u25A1","\\square"),pe(ie,ve,qe,"\u25A1","\\Box"),pe(ie,ve,qe,"\u25CA","\\Diamond"),pe(ie,ve,qe,"\xA5","\\yen",!0),pe(st,ve,qe,"\xA5","\\yen",!0),pe(ie,ve,qe,"\u2713","\\checkmark",!0),pe(st,ve,qe,"\u2713","\\checkmark"),pe(ie,ve,qe,"\u2136","\\beth",!0),pe(ie,ve,qe,"\u2138","\\daleth",!0),pe(ie,ve,qe,"\u2137","\\gimel",!0),pe(ie,ve,qe,"\u03DD","\\digamma",!0),pe(ie,ve,qe,"\u03F0","\\varkappa"),pe(ie,ve,er,"\u250C","\\ulcorner",!0),pe(ie,ve,ct,"\u2510","\\urcorner",!0),pe(ie,ve,er,"\u2514","\\llcorner",!0),pe(ie,ve,ct,"\u2518","\\lrcorner",!0),pe(ie,ve,Ot,"\u2266","\\leqq",!0),pe(ie,ve,Ot,"\u2A7D","\\leqslant",!0),pe(ie,ve,Ot,"\u2A95","\\eqslantless",!0),pe(ie,ve,Ot,"\u2272","\\lesssim",!0),pe(ie,ve,Ot,"\u2A85","\\lessapprox",!0),pe(ie,ve,Ot,"\u224A","\\approxeq",!0),pe(ie,ve,qt,"\u22D6","\\lessdot"),pe(ie,ve,Ot,"\u22D8","\\lll",!0),pe(ie,ve,Ot,"\u2276","\\lessgtr",!0),pe(ie,ve,Ot,"\u22DA","\\lesseqgtr",!0),pe(ie,ve,Ot,"\u2A8B","\\lesseqqgtr",!0),pe(ie,ve,Ot,"\u2251","\\doteqdot"),pe(ie,ve,Ot,"\u2253","\\risingdotseq",!0),pe(ie,ve,Ot,"\u2252","\\fallingdotseq",!0),pe(ie,ve,Ot,"\u223D","\\backsim",!0),pe(ie,ve,Ot,"\u22CD","\\backsimeq",!0),pe(ie,ve,Ot,"\u2AC5","\\subseteqq",!0),pe(ie,ve,Ot,"\u22D0","\\Subset",!0),pe(ie,ve,Ot,"\u228F","\\sqsubset",!0),pe(ie,ve,Ot,"\u227C","\\preccurlyeq",!0),pe(ie,ve,Ot,"\u22DE","\\curlyeqprec",!0),pe(ie,ve,Ot,"\u227E","\\precsim",!0),pe(ie,ve,Ot,"\u2AB7","\\precapprox",!0),pe(ie,ve,Ot,"\u22B2","\\vartriangleleft"),pe(ie,ve,Ot,"\u22B4","\\trianglelefteq"),pe(ie,ve,Ot,"\u22A8","\\vDash",!0),pe(ie,ve,Ot,"\u22AA","\\Vvdash",!0),pe(ie,ve,Ot,"\u2323","\\smallsmile"),pe(ie,ve,Ot,"\u2322","\\smallfrown"),pe(ie,ve,Ot,"\u224F","\\bumpeq",!0),pe(ie,ve,Ot,"\u224E","\\Bumpeq",!0),pe(ie,ve,Ot,"\u2267","\\geqq",!0),pe(ie,ve,Ot,"\u2A7E","\\geqslant",!0),pe(ie,ve,Ot,"\u2A96","\\eqslantgtr",!0),pe(ie,ve,Ot,"\u2273","\\gtrsim",!0),pe(ie,ve,Ot,"\u2A86","\\gtrapprox",!0),pe(ie,ve,qt,"\u22D7","\\gtrdot"),pe(ie,ve,Ot,"\u22D9","\\ggg",!0),pe(ie,ve,Ot,"\u2277","\\gtrless",!0),pe(ie,ve,Ot,"\u22DB","\\gtreqless",!0),pe(ie,ve,Ot,"\u2A8C","\\gtreqqless",!0),pe(ie,ve,Ot,"\u2256","\\eqcirc",!0),pe(ie,ve,Ot,"\u2257","\\circeq",!0),pe(ie,ve,Ot,"\u225C","\\triangleq",!0),pe(ie,ve,Ot,"\u223C","\\thicksim"),pe(ie,ve,Ot,"\u2248","\\thickapprox"),pe(ie,ve,Ot,"\u2AC6","\\supseteqq",!0),pe(ie,ve,Ot,"\u22D1","\\Supset",!0),pe(ie,ve,Ot,"\u2290","\\sqsupset",!0),pe(ie,ve,Ot,"\u227D","\\succcurlyeq",!0),pe(ie,ve,Ot,"\u22DF","\\curlyeqsucc",!0),pe(ie,ve,Ot,"\u227F","\\succsim",!0),pe(ie,ve,Ot,"\u2AB8","\\succapprox",!0),pe(ie,ve,Ot,"\u22B3","\\vartriangleright"),pe(ie,ve,Ot,"\u22B5","\\trianglerighteq"),pe(ie,ve,Ot,"\u22A9","\\Vdash",!0),pe(ie,ve,Ot,"\u2223","\\shortmid"),pe(ie,ve,Ot,"\u2225","\\shortparallel"),pe(ie,ve,Ot,"\u226C","\\between",!0),pe(ie,ve,Ot,"\u22D4","\\pitchfork",!0),pe(ie,ve,Ot,"\u221D","\\varpropto"),pe(ie,ve,Ot,"\u25C0","\\blacktriangleleft"),pe(ie,ve,Ot,"\u2234","\\therefore",!0),pe(ie,ve,Ot,"\u220D","\\backepsilon"),pe(ie,ve,Ot,"\u25B6","\\blacktriangleright"),pe(ie,ve,Ot,"\u2235","\\because",!0),pe(ie,ve,Ot,"\u22D8","\\llless"),pe(ie,ve,Ot,"\u22D9","\\gggtr"),pe(ie,ve,qt,"\u22B2","\\lhd"),pe(ie,ve,qt,"\u22B3","\\rhd"),pe(ie,ve,Ot,"\u2242","\\eqsim",!0),pe(ie,Qe,Ot,"\u22C8","\\Join"),pe(ie,ve,Ot,"\u2251","\\Doteq",!0),pe(ie,ve,qt,"\u2214","\\dotplus",!0),pe(ie,ve,qt,"\u2216","\\smallsetminus"),pe(ie,ve,qt,"\u22D2","\\Cap",!0),pe(ie,ve,qt,"\u22D3","\\Cup",!0),pe(ie,ve,qt,"\u2A5E","\\doublebarwedge",!0),pe(ie,ve,qt,"\u229F","\\boxminus",!0),pe(ie,ve,qt,"\u229E","\\boxplus",!0),pe(ie,ve,qt,"\u22C7","\\divideontimes",!0),pe(ie,ve,qt,"\u22C9","\\ltimes",!0),pe(ie,ve,qt,"\u22CA","\\rtimes",!0),pe(ie,ve,qt,"\u22CB","\\leftthreetimes",!0),pe(ie,ve,qt,"\u22CC","\\rightthreetimes",!0),pe(ie,ve,qt,"\u22CF","\\curlywedge",!0),pe(ie,ve,qt,"\u22CE","\\curlyvee",!0),pe(ie,ve,qt,"\u229D","\\circleddash",!0),pe(ie,ve,qt,"\u229B","\\circledast",!0),pe(ie,ve,qt,"\u22C5","\\centerdot"),pe(ie,ve,qt,"\u22BA","\\intercal",!0),pe(ie,ve,qt,"\u22D2","\\doublecap"),pe(ie,ve,qt,"\u22D3","\\doublecup"),pe(ie,ve,qt,"\u22A0","\\boxtimes",!0),pe(ie,ve,Ot,"\u21E2","\\dashrightarrow",!0),pe(ie,ve,Ot,"\u21E0","\\dashleftarrow",!0),pe(ie,ve,Ot,"\u21C7","\\leftleftarrows",!0),pe(ie,ve,Ot,"\u21C6","\\leftrightarrows",!0),pe(ie,ve,Ot,"\u21DA","\\Lleftarrow",!0),pe(ie,ve,Ot,"\u219E","\\twoheadleftarrow",!0),pe(ie,ve,Ot,"\u21A2","\\leftarrowtail",!0),pe(ie,ve,Ot,"\u21AB","\\looparrowleft",!0),pe(ie,ve,Ot,"\u21CB","\\leftrightharpoons",!0),pe(ie,ve,Ot,"\u21B6","\\curvearrowleft",!0),pe(ie,ve,Ot,"\u21BA","\\circlearrowleft",!0),pe(ie,ve,Ot,"\u21B0","\\Lsh",!0),pe(ie,ve,Ot,"\u21C8","\\upuparrows",!0),pe(ie,ve,Ot,"\u21BF","\\upharpoonleft",!0),pe(ie,ve,Ot,"\u21C3","\\downharpoonleft",!0),pe(ie,ve,Ot,"\u22B8","\\multimap",!0),pe(ie,ve,Ot,"\u21AD","\\leftrightsquigarrow",!0),pe(ie,ve,Ot,"\u21C9","\\rightrightarrows",!0),pe(ie,ve,Ot,"\u21C4","\\rightleftarrows",!0),pe(ie,ve,Ot,"\u21A0","\\twoheadrightarrow",!0),pe(ie,ve,Ot,"\u21A3","\\rightarrowtail",!0),pe(ie,ve,Ot,"\u21AC","\\looparrowright",!0),pe(ie,ve,Ot,"\u21B7","\\curvearrowright",!0),pe(ie,ve,Ot,"\u21BB","\\circlearrowright",!0),pe(ie,ve,Ot,"\u21B1","\\Rsh",!0),pe(ie,ve,Ot,"\u21CA","\\downdownarrows",!0),pe(ie,ve,Ot,"\u21BE","\\upharpoonright",!0),pe(ie,ve,Ot,"\u21C2","\\downharpoonright",!0),pe(ie,ve,Ot,"\u21DD","\\rightsquigarrow",!0),pe(ie,ve,Ot,"\u21DD","\\leadsto"),pe(ie,ve,Ot,"\u21DB","\\Rrightarrow",!0),pe(ie,ve,Ot,"\u21BE","\\restriction"),pe(ie,Qe,qe,"\u2018","`"),pe(ie,Qe,qe,"$","\\$"),pe(st,Qe,qe,"$","\\$"),pe(st,Qe,qe,"$","\\textdollar"),pe(ie,Qe,qe,"%","\\%"),pe(st,Qe,qe,"%","\\%"),pe(ie,Qe,qe,"_","\\_"),pe(st,Qe,qe,"_","\\_"),pe(st,Qe,qe,"_","\\textunderscore"),pe(ie,Qe,qe,"\u2220","\\angle",!0),pe(ie,Qe,qe,"\u221E","\\infty",!0),pe(ie,Qe,qe,"\u2032","\\prime"),pe(ie,Qe,qe,"\u25B3","\\triangle"),pe(ie,Qe,qe,"\u0393","\\Gamma",!0),pe(ie,Qe,qe,"\u0394","\\Delta",!0),pe(ie,Qe,qe,"\u0398","\\Theta",!0),pe(ie,Qe,qe,"\u039B","\\Lambda",!0),pe(ie,Qe,qe,"\u039E","\\Xi",!0),pe(ie,Qe,qe,"\u03A0","\\Pi",!0),pe(ie,Qe,qe,"\u03A3","\\Sigma",!0),pe(ie,Qe,qe,"\u03A5","\\Upsilon",!0),pe(ie,Qe,qe,"\u03A6","\\Phi",!0),pe(ie,Qe,qe,"\u03A8","\\Psi",!0),pe(ie,Qe,qe,"\u03A9","\\Omega",!0),pe(ie,Qe,qe,"A","\u0391"),pe(ie,Qe,qe,"B","\u0392"),pe(ie,Qe,qe,"E","\u0395"),pe(ie,Qe,qe,"Z","\u0396"),pe(ie,Qe,qe,"H","\u0397"),pe(ie,Qe,qe,"I","\u0399"),pe(ie,Qe,qe,"K","\u039A"),pe(ie,Qe,qe,"M","\u039C"),pe(ie,Qe,qe,"N","\u039D"),pe(ie,Qe,qe,"O","\u039F"),pe(ie,Qe,qe,"P","\u03A1"),pe(ie,Qe,qe,"T","\u03A4"),pe(ie,Qe,qe,"X","\u03A7"),pe(ie,Qe,qe,"\xAC","\\neg",!0),pe(ie,Qe,qe,"\xAC","\\lnot"),pe(ie,Qe,qe,"\u22A4","\\top"),pe(ie,Qe,qe,"\u22A5","\\bot"),pe(ie,Qe,qe,"\u2205","\\emptyset"),pe(ie,ve,qe,"\u2205","\\varnothing"),pe(ie,Qe,or,"\u03B1","\\alpha",!0),pe(ie,Qe,or,"\u03B2","\\beta",!0),pe(ie,Qe,or,"\u03B3","\\gamma",!0),pe(ie,Qe,or,"\u03B4","\\delta",!0),pe(ie,Qe,or,"\u03F5","\\epsilon",!0),pe(ie,Qe,or,"\u03B6","\\zeta",!0),pe(ie,Qe,or,"\u03B7","\\eta",!0),pe(ie,Qe,or,"\u03B8","\\theta",!0),pe(ie,Qe,or,"\u03B9","\\iota",!0),pe(ie,Qe,or,"\u03BA","\\kappa",!0),pe(ie,Qe,or,"\u03BB","\\lambda",!0),pe(ie,Qe,or,"\u03BC","\\mu",!0),pe(ie,Qe,or,"\u03BD","\\nu",!0),pe(ie,Qe,or,"\u03BE","\\xi",!0),pe(ie,Qe,or,"\u03BF","\\omicron",!0),pe(ie,Qe,or,"\u03C0","\\pi",!0),pe(ie,Qe,or,"\u03C1","\\rho",!0),pe(ie,Qe,or,"\u03C3","\\sigma",!0),pe(ie,Qe,or,"\u03C4","\\tau",!0),pe(ie,Qe,or,"\u03C5","\\upsilon",!0),pe(ie,Qe,or,"\u03D5","\\phi",!0),pe(ie,Qe,or,"\u03C7","\\chi",!0),pe(ie,Qe,or,"\u03C8","\\psi",!0),pe(ie,Qe,or,"\u03C9","\\omega",!0),pe(ie,Qe,or,"\u03B5","\\varepsilon",!0),pe(ie,Qe,or,"\u03D1","\\vartheta",!0),pe(ie,Qe,or,"\u03D6","\\varpi",!0),pe(ie,Qe,or,"\u03F1","\\varrho",!0),pe(ie,Qe,or,"\u03C2","\\varsigma",!0),pe(ie,Qe,or,"\u03C6","\\varphi",!0),pe(ie,Qe,qt,"\u2217","*"),pe(ie,Qe,qt,"+","+"),pe(ie,Qe,qt,"\u2212","-"),pe(ie,Qe,qt,"\u22C5","\\cdot",!0),pe(ie,Qe,qt,"\u2218","\\circ"),pe(ie,Qe,qt,"\xF7","\\div",!0),pe(ie,Qe,qt,"\xB1","\\pm",!0),pe(ie,Qe,qt,"\xD7","\\times",!0),pe(ie,Qe,qt,"\u2229","\\cap",!0),pe(ie,Qe,qt,"\u222A","\\cup",!0),pe(ie,Qe,qt,"\u2216","\\setminus"),pe(ie,Qe,qt,"\u2227","\\land"),pe(ie,Qe,qt,"\u2228","\\lor"),pe(ie,Qe,qt,"\u2227","\\wedge",!0),pe(ie,Qe,qt,"\u2228","\\vee",!0),pe(ie,Qe,qe,"\u221A","\\surd"),pe(ie,Qe,er,"(","("),pe(ie,Qe,er,"[","["),pe(ie,Qe,er,"\u27E8","\\langle",!0),pe(ie,Qe,er,"\u2223","\\lvert"),pe(ie,Qe,er,"\u2225","\\lVert"),pe(ie,Qe,ct,")",")"),pe(ie,Qe,ct,"]","]"),pe(ie,Qe,ct,"?","?"),pe(ie,Qe,ct,"!","!"),pe(ie,Qe,ct,"\u27E9","\\rangle",!0),pe(ie,Qe,ct,"\u2223","\\rvert"),pe(ie,Qe,ct,"\u2225","\\rVert"),pe(ie,Qe,Ot,"=","="),pe(ie,Qe,Ot,"<","<"),pe(ie,Qe,Ot,">",">"),pe(ie,Qe,Ot,":",":"),pe(ie,Qe,Ot,"\u2248","\\approx",!0),pe(ie,Qe,Ot,"\u2245","\\cong",!0),pe(ie,Qe,Ot,"\u2265","\\ge"),pe(ie,Qe,Ot,"\u2265","\\geq",!0),pe(ie,Qe,Ot,"\u2190","\\gets"),pe(ie,Qe,Ot,">","\\gt"),pe(ie,Qe,Ot,"\u2208","\\in",!0),pe(ie,Qe,Ot,"\uE020","\\@not"),pe(ie,Qe,Ot,"\u2282","\\subset",!0),pe(ie,Qe,Ot,"\u2283","\\supset",!0),pe(ie,Qe,Ot,"\u2286","\\subseteq",!0),pe(ie,Qe,Ot,"\u2287","\\supseteq",!0),pe(ie,ve,Ot,"\u2288","\\nsubseteq",!0),pe(ie,ve,Ot,"\u2289","\\nsupseteq",!0),pe(ie,Qe,Ot,"\u22A8","\\models"),pe(ie,Qe,Ot,"\u2190","\\leftarrow",!0),pe(ie,Qe,Ot,"\u2264","\\le"),pe(ie,Qe,Ot,"\u2264","\\leq",!0),pe(ie,Qe,Ot,"<","\\lt"),pe(ie,Qe,Ot,"\u2192","\\rightarrow",!0),pe(ie,Qe,Ot,"\u2192","\\to"),pe(ie,ve,Ot,"\u2271","\\ngeq",!0),pe(ie,ve,Ot,"\u2270","\\nleq",!0),pe(ie,Qe,lt,"\xA0","\\ "),pe(ie,Qe,lt,"\xA0","~"),pe(ie,Qe,lt,"\xA0","\\space"),pe(ie,Qe,lt,"\xA0","\\nobreakspace"),pe(st,Qe,lt,"\xA0","\\ "),pe(st,Qe,lt,"\xA0","~"),pe(st,Qe,lt,"\xA0","\\space"),pe(st,Qe,lt,"\xA0","\\nobreakspace"),pe(ie,Qe,lt,null,"\\nobreak"),pe(ie,Qe,lt,null,"\\allowbreak"),pe(ie,Qe,nr,",",","),pe(ie,Qe,nr,";",";"),pe(ie,ve,qt,"\u22BC","\\barwedge",!0),pe(ie,ve,qt,"\u22BB","\\veebar",!0),pe(ie,Qe,qt,"\u2299","\\odot",!0),pe(ie,Qe,qt,"\u2295","\\oplus",!0),pe(ie,Qe,qt,"\u2297","\\otimes",!0),pe(ie,Qe,qe,"\u2202","\\partial",!0),pe(ie,Qe,qt,"\u2298","\\oslash",!0),pe(ie,ve,qt,"\u229A","\\circledcirc",!0),pe(ie,ve,qt,"\u22A1","\\boxdot",!0),pe(ie,Qe,qt,"\u25B3","\\bigtriangleup"),pe(ie,Qe,qt,"\u25BD","\\bigtriangledown"),pe(ie,Qe,qt,"\u2020","\\dagger"),pe(ie,Qe,qt,"\u22C4","\\diamond"),pe(ie,Qe,qt,"\u22C6","\\star"),pe(ie,Qe,qt,"\u25C3","\\triangleleft"),pe(ie,Qe,qt,"\u25B9","\\triangleright"),pe(ie,Qe,er,"{","\\{"),pe(st,Qe,qe,"{","\\{"),pe(st,Qe,qe,"{","\\textbraceleft"),pe(ie,Qe,ct,"}","\\}"),pe(st,Qe,qe,"}","\\}"),pe(st,Qe,qe,"}","\\textbraceright"),pe(ie,Qe,er,"{","\\lbrace"),pe(ie,Qe,ct,"}","\\rbrace"),pe(ie,Qe,er,"[","\\lbrack"),pe(st,Qe,qe,"[","\\lbrack"),pe(ie,Qe,ct,"]","\\rbrack"),pe(st,Qe,qe,"]","\\rbrack"),pe(ie,Qe,er,"(","\\lparen"),pe(ie,Qe,ct,")","\\rparen"),pe(st,Qe,qe,"<","\\textless"),pe(st,Qe,qe,">","\\textgreater"),pe(ie,Qe,er,"\u230A","\\lfloor",!0),pe(ie,Qe,ct,"\u230B","\\rfloor",!0),pe(ie,Qe,er,"\u2308","\\lceil",!0),pe(ie,Qe,ct,"\u2309","\\rceil",!0),pe(ie,Qe,qe,"\\","\\backslash"),pe(ie,Qe,qe,"\u2223","|"),pe(ie,Qe,qe,"\u2223","\\vert"),pe(st,Qe,qe,"|","\\textbar"),pe(ie,Qe,qe,"\u2225","\\|"),pe(ie,Qe,qe,"\u2225","\\Vert"),pe(st,Qe,qe,"\u2225","\\textbardbl"),pe(st,Qe,qe,"~","\\textasciitilde"),pe(st,Qe,qe,"\\","\\textbackslash"),pe(st,Qe,qe,"^","\\textasciicircum"),pe(ie,Qe,Ot,"\u2191","\\uparrow",!0),pe(ie,Qe,Ot,"\u21D1","\\Uparrow",!0),pe(ie,Qe,Ot,"\u2193","\\downarrow",!0),pe(ie,Qe,Ot,"\u21D3","\\Downarrow",!0),pe(ie,Qe,Ot,"\u2195","\\updownarrow",!0),pe(ie,Qe,Ot,"\u21D5","\\Updownarrow",!0),pe(ie,Qe,Fr,"\u2210","\\coprod"),pe(ie,Qe,Fr,"\u22C1","\\bigvee"),pe(ie,Qe,Fr,"\u22C0","\\bigwedge"),pe(ie,Qe,Fr,"\u2A04","\\biguplus"),pe(ie,Qe,Fr,"\u22C2","\\bigcap"),pe(ie,Qe,Fr,"\u22C3","\\bigcup"),pe(ie,Qe,Fr,"\u222B","\\int"),pe(ie,Qe,Fr,"\u222B","\\intop"),pe(ie,Qe,Fr,"\u222C","\\iint"),pe(ie,Qe,Fr,"\u222D","\\iiint"),pe(ie,Qe,Fr,"\u220F","\\prod"),pe(ie,Qe,Fr,"\u2211","\\sum"),pe(ie,Qe,Fr,"\u2A02","\\bigotimes"),pe(ie,Qe,Fr,"\u2A01","\\bigoplus"),pe(ie,Qe,Fr,"\u2A00","\\bigodot"),pe(ie,Qe,Fr,"\u222E","\\oint"),pe(ie,Qe,Fr,"\u222F","\\oiint"),pe(ie,Qe,Fr,"\u2230","\\oiiint"),pe(ie,Qe,Fr,"\u2A06","\\bigsqcup"),pe(ie,Qe,Fr,"\u222B","\\smallint"),pe(st,Qe,Wt,"\u2026","\\textellipsis"),pe(ie,Qe,Wt,"\u2026","\\mathellipsis"),pe(st,Qe,Wt,"\u2026","\\ldots",!0),pe(ie,Qe,Wt,"\u2026","\\ldots",!0),pe(ie,Qe,Wt,"\u22EF","\\@cdots",!0),pe(ie,Qe,Wt,"\u22F1","\\ddots",!0),pe(ie,Qe,qe,"\u22EE","\\varvdots"),pe(ie,Qe,Bt,"\u02CA","\\acute"),pe(ie,Qe,Bt,"\u02CB","\\grave"),pe(ie,Qe,Bt,"\xA8","\\ddot"),pe(ie,Qe,Bt,"~","\\tilde"),pe(ie,Qe,Bt,"\u02C9","\\bar"),pe(ie,Qe,Bt,"\u02D8","\\breve"),pe(ie,Qe,Bt,"\u02C7","\\check"),pe(ie,Qe,Bt,"^","\\hat"),pe(ie,Qe,Bt,"\u20D7","\\vec"),pe(ie,Qe,Bt,"\u02D9","\\dot"),pe(ie,Qe,Bt,"\u02DA","\\mathring"),pe(ie,Qe,or,"\u0131","\\imath",!0),pe(ie,Qe,or,"\u0237","\\jmath",!0),pe(st,Qe,qe,"\u0131","\\i",!0),pe(st,Qe,qe,"\u0237","\\j",!0),pe(st,Qe,qe,"\xDF","\\ss",!0),pe(st,Qe,qe,"\xE6","\\ae",!0),pe(st,Qe,qe,"\xE6","\\ae",!0),pe(st,Qe,qe,"\u0153","\\oe",!0),pe(st,Qe,qe,"\xF8","\\o",!0),pe(st,Qe,qe,"\xC6","\\AE",!0),pe(st,Qe,qe,"\u0152","\\OE",!0),pe(st,Qe,qe,"\xD8","\\O",!0),pe(st,Qe,Bt,"\u02CA","\\'"),pe(st,Qe,Bt,"\u02CB","\\`"),pe(st,Qe,Bt,"\u02C6","\\^"),pe(st,Qe,Bt,"\u02DC","\\~"),pe(st,Qe,Bt,"\u02C9","\\="),pe(st,Qe,Bt,"\u02D8","\\u"),pe(st,Qe,Bt,"\u02D9","\\."),pe(st,Qe,Bt,"\u02DA","\\r"),pe(st,Qe,Bt,"\u02C7","\\v"),pe(st,Qe,Bt,"\xA8",'\\"'),pe(st,Qe,Bt,"\u02DD","\\H"),pe(st,Qe,Bt,"\u25EF","\\textcircled");var tr={"--":!0,"---":!0,"``":!0,"''":!0};pe(st,Qe,qe,"\u2013","--"),pe(st,Qe,qe,"\u2013","\\textendash"),pe(st,Qe,qe,"\u2014","---"),pe(st,Qe,qe,"\u2014","\\textemdash"),pe(st,Qe,qe,"\u2018","`"),pe(st,Qe,qe,"\u2018","\\textquoteleft"),pe(st,Qe,qe,"\u2019","'"),pe(st,Qe,qe,"\u2019","\\textquoteright"),pe(st,Qe,qe,"\u201C","``"),pe(st,Qe,qe,"\u201C","\\textquotedblleft"),pe(st,Qe,qe,"\u201D","''"),pe(st,Qe,qe,"\u201D","\\textquotedblright"),pe(ie,Qe,qe,"\xB0","\\degree",!0),pe(st,Qe,qe,"\xB0","\\degree"),pe(st,Qe,qe,"\xB0","\\textdegree",!0),pe(ie,Qe,or,"\xA3","\\pounds"),pe(ie,Qe,or,"\xA3","\\mathsterling",!0),pe(st,Qe,or,"\xA3","\\pounds"),pe(st,Qe,or,"\xA3","\\textsterling",!0),pe(ie,ve,qe,"\u2720","\\maltese"),pe(st,ve,qe,"\u2720","\\maltese"),pe(st,Qe,lt,"\xA0","\\ "),pe(st,Qe,lt,"\xA0"," "),pe(st,Qe,lt,"\xA0","~");for(var xr='0123456789/@."',Ar=0;Ar<xr.length;Ar++){var fr=xr.charAt(Ar);pe(ie,Qe,qe,fr,fr)}for(var vn='0123456789!@*()-=+[]<>|";:?/.,',$r=0;$r<vn.length;$r++){var Ln=vn.charAt($r);pe(st,Qe,qe,Ln,Ln)}for(var tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",nt=0;nt<tt.length;nt++){var Te=tt.charAt(nt);pe(ie,Qe,or,Te,Te),pe(st,Qe,qe,Te,Te)}pe(ie,ve,qe,"C","\u2102"),pe(st,ve,qe,"C","\u2102"),pe(ie,ve,qe,"H","\u210D"),pe(st,ve,qe,"H","\u210D"),pe(ie,ve,qe,"N","\u2115"),pe(st,ve,qe,"N","\u2115"),pe(ie,ve,qe,"P","\u2119"),pe(st,ve,qe,"P","\u2119"),pe(ie,ve,qe,"Q","\u211A"),pe(st,ve,qe,"Q","\u211A"),pe(ie,ve,qe,"R","\u211D"),pe(st,ve,qe,"R","\u211D"),pe(ie,ve,qe,"Z","\u2124"),pe(st,ve,qe,"Z","\u2124"),pe(ie,Qe,or,"h","\u210E"),pe(st,Qe,or,"h","\u210E");for(var Me="",Xe=0;Xe<tt.length;Xe++){var at=tt.charAt(Xe);Me=String.fromCharCode(55349,56320+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me),Me=String.fromCharCode(55349,56372+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me),Me=String.fromCharCode(55349,56424+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me),Me=String.fromCharCode(55349,56580+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me),Me=String.fromCharCode(55349,56736+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me),Me=String.fromCharCode(55349,56788+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me),Me=String.fromCharCode(55349,56840+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me),Me=String.fromCharCode(55349,56944+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me),Xe<26&&(Me=String.fromCharCode(55349,56632+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me),Me=String.fromCharCode(55349,56476+Xe),pe(ie,Qe,or,at,Me),pe(st,Qe,qe,at,Me))}Me=String.fromCharCode(55349,56668),pe(ie,Qe,or,"k",Me),pe(st,Qe,qe,"k",Me);for(var zt=0;zt<10;zt++){var kt=zt.toString();Me=String.fromCharCode(55349,57294+zt),pe(ie,Qe,or,kt,Me),pe(st,Qe,qe,kt,Me),Me=String.fromCharCode(55349,57314+zt),pe(ie,Qe,or,kt,Me),pe(st,Qe,qe,kt,Me),Me=String.fromCharCode(55349,57324+zt),pe(ie,Qe,or,kt,Me),pe(st,Qe,qe,kt,Me),Me=String.fromCharCode(55349,57334+zt),pe(ie,Qe,or,kt,Me),pe(st,Qe,qe,kt,Me)}for(var Xt="\xC7\xD0\xDE\xE7\xFE",Dr=0;Dr<Xt.length;Dr++){var Pr=Xt.charAt(Dr);pe(ie,Qe,or,Pr,Pr),pe(st,Qe,qe,Pr,Pr)}pe(st,Qe,qe,"\xF0","\xF0"),pe(st,Qe,qe,"\u2013","\u2013"),pe(st,Qe,qe,"\u2014","\u2014"),pe(st,Qe,qe,"\u2018","\u2018"),pe(st,Qe,qe,"\u2019","\u2019"),pe(st,Qe,qe,"\u201C","\u201C"),pe(st,Qe,qe,"\u201D","\u201D");var cn=[["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"]],jt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],gt=function(se,ye){var Se=se.charCodeAt(0),Ue=se.charCodeAt(1),ht=(Se-55296)*1024+(Ue-56320)+65536,Nt=ye==="math"?0:1;if(119808<=ht&&ht<120484){var br=Math.floor((ht-119808)/26);return[cn[br][2],cn[br][Nt]]}else if(120782<=ht&&ht<=120831){var Or=Math.floor((ht-120782)/10);return[jt[Or][2],jt[Or][Nt]]}else{if(ht===120485||ht===120486)return[cn[0][2],cn[0][Nt]];if(120486<ht&&ht<120782)return["",""];throw new f("Unsupported character: "+se)}},dt=[[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]],Qt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Jt=function(se,ye){return ye.size<2?se:dt[se-1][ye.size-1]},xt=function(){function vt(ye){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=ye.style,this.color=ye.color,this.size=ye.size||vt.BASESIZE,this.textSize=ye.textSize||this.size,this.phantom=!!ye.phantom,this.font=ye.font||"",this.fontFamily=ye.fontFamily||"",this.fontWeight=ye.fontWeight||"",this.fontShape=ye.fontShape||"",this.sizeMultiplier=Qt[this.size-1],this.maxSize=ye.maxSize,this.minRuleThickness=ye.minRuleThickness,this._fontMetrics=void 0}var se=vt.prototype;return se.extend=function(Se){var Ue={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 ht in Se)Se.hasOwnProperty(ht)&&(Ue[ht]=Se[ht]);return new vt(Ue)},se.havingStyle=function(Se){return this.style===Se?this:this.extend({style:Se,size:Jt(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:Qt[Se-1]})},se.havingBaseStyle=function(Se){Se=Se||this.style.text();var Ue=Jt(vt.BASESIZE,Se);return this.size===Ue&&this.textSize===vt.BASESIZE&&this.style===Se?this:this.extend({style:Se,size:Ue})},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!==vt.BASESIZE?["sizing","reset-size"+this.size,"size"+vt.BASESIZE]:[]},se.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=At(this.size)),this._fontMetrics},se.getColor=function(){return this.phantom?"transparent":this.color},vt}();xt.BASESIZE=6;var Pt=xt,yt={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},Ut={ex:!0,em:!0,mu:!0},pr=function(se){return typeof se!="string"&&(se=se.unit),se in yt||se in Ut||se==="ex"},sr=function(se,ye){var Se;if(se.unit in yt)Se=yt[se.unit]/ye.fontMetrics().ptPerEm/ye.sizeMultiplier;else if(se.unit==="mu")Se=ye.fontMetrics().cssEmPerMu;else{var Ue;if(ye.style.isTight()?Ue=ye.havingStyle(ye.style.text()):Ue=ye,se.unit==="ex")Se=Ue.fontMetrics().xHeight;else if(se.unit==="em")Se=Ue.fontMetrics().quad;else throw new f("Invalid unit: '"+se.unit+"'");Ue!==ye&&(Se*=Ue.sizeMultiplier/ye.sizeMultiplier)}return Math.min(se.number*Se,ye.maxSize)},ir=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Yr=function(se,ye,Se){return je[Se][se]&&je[Se][se].replace&&(se=je[Se][se].replace),{value:se,metrics:Fe(se,ye,Se)}},Jr=function(se,ye,Se,Ue,ht){var Nt=Yr(se,ye,Se),br=Nt.metrics;se=Nt.value;var Or;if(br){var Zr=br.italic;(Se==="text"||Ue&&Ue.font==="mathit")&&(Zr=0),Or=new De(se,br.height,br.depth,Zr,br.skew,br.width,ht)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+se+"' in style '"+ye+"' and mode '"+Se+"'")),Or=new De(se,0,0,0,0,0,ht);if(Ue){Or.maxFontSize=Ue.sizeMultiplier,Ue.style.isTight()&&Or.classes.push("mtight");var Tn=Ue.getColor();Tn&&(Or.style.color=Tn)}return Or},In=function(se,ye,Se,Ue){return Ue===void 0&&(Ue=[]),Se.font==="boldsymbol"&&Yr(se,"Main-Bold",ye).metrics?Jr(se,"Main-Bold",ye,Se,Ue.concat(["mathbf"])):se==="\\"||je[ye][se].font==="main"?Jr(se,"Main-Regular",ye,Se,Ue):Jr(se,"AMS-Regular",ye,Se,Ue.concat(["amsrm"]))},Nn=function(se,ye,Se,Ue){return/[0-9]/.test(se.charAt(0))||h.contains(ir,se)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},zn=function(se,ye,Se,Ue){return h.contains(ir,se)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(se.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},ei=function(se,ye,Se,Ue){return Yr(se,"Math-BoldItalic",ye).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ai=function(se,ye,Se){var Ue=se.mode,ht=se.text,Nt=["mord"],br=Ue==="math"||Ue==="text"&&ye.font,Or=br?ye.font:ye.fontFamily;if(ht.charCodeAt(0)===55349){var Zr=gt(ht,Ue),Tn=Zr[0],Hn=Zr[1];return Jr(ht,Tn,Ue,ye,Nt.concat(Hn))}else if(Or){var si,xi;if(Or==="boldsymbol"||Or==="mathnormal"){var Ri=Or==="boldsymbol"?ei(ht,Ue,ye,Nt):zn(ht,Ue,ye,Nt);si=Ri.fontName,xi=[Ri.fontClass]}else h.contains(ir,ht)?(si="Main-Italic",xi=["mathit"]):br?(si=Nr[Or].fontName,xi=[Or]):(si=hr(Or,ye.fontWeight,ye.fontShape),xi=[Or,ye.fontWeight,ye.fontShape]);if(Yr(ht,si,Ue).metrics)return Jr(ht,si,Ue,ye,Nt.concat(xi));if(tr.hasOwnProperty(ht)&&si.substr(0,10)==="Typewriter"){for(var sa=[],ya=0;ya<ht.length;ya++)sa.push(Jr(ht[ya],si,Ue,ye,Nt.concat(xi)));return et(sa)}}if(Se==="mathord"){var Ja=Nn(ht,Ue,ye,Nt);return Jr(ht,Ja.fontName,Ue,ye,Nt.concat([Ja.fontClass]))}else if(Se==="textord"){var $a=je[Ue][ht]&&je[Ue][ht].font;if($a==="ams"){var to=hr("amsrm",ye.fontWeight,ye.fontShape);return Jr(ht,to,Ue,ye,Nt.concat("amsrm",ye.fontWeight,ye.fontShape))}else if($a==="main"||!$a){var _o=hr("textrm",ye.fontWeight,ye.fontShape);return Jr(ht,_o,Ue,ye,Nt.concat(ye.fontWeight,ye.fontShape))}else{var To=hr($a,ye.fontWeight,ye.fontShape);return Jr(ht,To,Ue,ye,Nt.concat(To,ye.fontWeight,ye.fontShape))}}else throw new Error("unexpected type: "+Se+" in makeOrd")},Pi=function(se,ye){if(q(se.classes)!==q(ye.classes)||se.skew!==ye.skew||se.maxFontSize!==ye.maxFontSize)return!1;for(var Se in se.style)if(se.style.hasOwnProperty(Se)&&se.style[Se]!==ye.style[Se])return!1;for(var Ue in ye.style)if(ye.style.hasOwnProperty(Ue)&&se.style[Ue]!==ye.style[Ue])return!1;return!0},$e=function(se){for(var ye=0;ye<se.length-1;ye++){var Se=se[ye],Ue=se[ye+1];Se instanceof De&&Ue instanceof De&&Pi(Se,Ue)&&(Se.text+=Ue.text,Se.height=Math.max(Se.height,Ue.height),Se.depth=Math.max(Se.depth,Ue.depth),Se.italic=Ue.italic,se.splice(ye+1,1),ye--)}return se},_e=function(se){for(var ye=0,Se=0,Ue=0,ht=0;ht<se.children.length;ht++){var Nt=se.children[ht];Nt.height>ye&&(ye=Nt.height),Nt.depth>Se&&(Se=Nt.depth),Nt.maxFontSize>Ue&&(Ue=Nt.maxFontSize)}se.height=ye,se.depth=Se,se.maxFontSize=Ue},Be=function(se,ye,Se,Ue){var ht=new le(se,ye,Se,Ue);return _e(ht),ht},He=function(se,ye,Se,Ue){return new le(se,ye,Se,Ue)},Je=function(se,ye,Se){var Ue=Be([se],[],ye);return Ue.height=Math.max(Se||ye.fontMetrics().defaultRuleThickness,ye.minRuleThickness),Ue.style.borderBottomWidth=Ue.height+"em",Ue.maxFontSize=1,Ue},Ye=function(se,ye,Se,Ue){var ht=new de(se,ye,Se,Ue);return _e(ht),ht},et=function(se){var ye=new X(se);return _e(ye),ye},wt=function(se,ye){return se instanceof X?Be([],[se],ye):se},ut=function(se){if(se.positionType==="individualShift"){for(var ye=se.children,Se=[ye[0]],Ue=-ye[0].shift-ye[0].elem.depth,ht=Ue,Nt=1;Nt<ye.length;Nt++){var br=-ye[Nt].shift-ht-ye[Nt].elem.depth,Or=br-(ye[Nt-1].elem.height+ye[Nt-1].elem.depth);ht=ht+br,Se.push({type:"kern",size:Or}),Se.push(ye[Nt])}return{children:Se,depth:Ue}}var Zr;if(se.positionType==="top"){for(var Tn=se.positionData,Hn=0;Hn<se.children.length;Hn++){var si=se.children[Hn];Tn-=si.type==="kern"?si.size:si.elem.height+si.elem.depth}Zr=Tn}else if(se.positionType==="bottom")Zr=-se.positionData;else{var xi=se.children[0];if(xi.type!=="elem")throw new Error('First child must have type "elem".');if(se.positionType==="shift")Zr=-xi.elem.depth-se.positionData;else if(se.positionType==="firstBaseline")Zr=-xi.elem.depth;else throw new Error("Invalid positionType "+se.positionType+".")}return{children:se.children,depth:Zr}},Ft=function(se,ye){for(var Se=ut(se),Ue=Se.children,ht=Se.depth,Nt=0,br=0;br<Ue.length;br++){var Or=Ue[br];if(Or.type==="elem"){var Zr=Or.elem;Nt=Math.max(Nt,Zr.maxFontSize,Zr.height)}}Nt+=2;var Tn=Be(["pstrut"],[]);Tn.style.height=Nt+"em";for(var Hn=[],si=ht,xi=ht,Ri=ht,sa=0;sa<Ue.length;sa++){var ya=Ue[sa];if(ya.type==="kern")Ri+=ya.size;else{var Ja=ya.elem,$a=ya.wrapperClasses||[],to=ya.wrapperStyle||{},_o=Be($a,[Tn,Ja],void 0,to);_o.style.top=-Nt-Ri-Ja.depth+"em",ya.marginLeft&&(_o.style.marginLeft=ya.marginLeft),ya.marginRight&&(_o.style.marginRight=ya.marginRight),Hn.push(_o),Ri+=Ja.height+Ja.depth}si=Math.min(si,Ri),xi=Math.max(xi,Ri)}var To=Be(["vlist"],Hn);To.style.height=xi+"em";var Ro;if(si<0){var go=Be([],[]),So=Be(["vlist"],[go]);So.style.height=-si+"em";var is=Be(["vlist-s"],[new De("\u200B")]);Ro=[Be(["vlist-r"],[To,is]),Be(["vlist-r"],[So])]}else Ro=[Be(["vlist-r"],[To])];var ts=Be(["vlist-t"],Ro);return Ro.length===2&&ts.classes.push("vlist-t2"),ts.height=xi,ts.depth=-si,ts},wr=function(se,ye){var Se=Be(["mspace"],[],ye),Ue=sr(se,ye);return Se.style.marginRight=Ue+"em",Se},hr=function(se,ye,Se){var Ue="";switch(se){case"amsrm":Ue="AMS";break;case"textrm":Ue="Main";break;case"textsf":Ue="SansSerif";break;case"texttt":Ue="Typewriter";break;default:Ue=se}var ht;return ye==="textbf"&&Se==="textit"?ht="BoldItalic":ye==="textbf"?ht="Bold":ye==="textit"?ht="Italic":ht="Regular",Ue+"-"+ht},Nr={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"}},Kt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},un=function(se,ye){var Se=Kt[se],Ue=Se[0],ht=Se[1],Nt=Se[2],br=new ce(Ue),Or=new Ee([br],{width:ht+"em",height:Nt+"em",style:"width:"+ht+"em",viewBox:"0 0 "+1e3*ht+" "+1e3*Nt,preserveAspectRatio:"xMinYMin"}),Zr=He(["overlay"],[Or],ye);return Zr.height=Nt,Zr.style.height=Nt+"em",Zr.style.width=ht+"em",Zr},ar={fontMap:Nr,makeSymbol:Jr,mathsym:In,makeSpan:Be,makeSvgSpan:He,makeLineSpan:Je,makeAnchor:Ye,makeFragment:et,wrapFragment:wt,makeVList:Ft,makeOrd:Ai,makeGlue:wr,staticSvg:un,svgData:Kt,tryCombineChars:$e};function Gr(vt,se){var ye=Br(vt,se);if(!ye)throw new Error("Expected node of type "+se+", but got "+(vt?"node of type "+vt.type:String(vt)));return ye}function Br(vt,se){return vt&&vt.type===se?vt:null}function gr(vt,se){var ye=Sn(vt,se);if(!ye)throw new Error('Expected node of type "atom" and family "'+se+'", but got '+(vt?vt.type==="atom"?"atom of family "+vt.family:"node of type "+vt.type:String(vt)));return ye}function Sn(vt,se){return vt&&vt.type==="atom"&&vt.family===se?vt:null}function Pn(vt){var se=ii(vt);if(!se)throw new Error("Expected node of symbol group type, but got "+(vt?"node of type "+vt.type:String(vt)));return se}function ii(vt){return vt&&(vt.type==="atom"||St.hasOwnProperty(vt.type))?vt:null}var oi={number:3,unit:"mu"},ti={number:4,unit:"mu"},bi={number:5,unit:"mu"},kn={mord:{mop:oi,mbin:ti,mrel:bi,minner:oi},mop:{mord:oi,mop:oi,mrel:bi,minner:oi},mbin:{mord:ti,mop:ti,mopen:ti,minner:ti},mrel:{mord:bi,mop:bi,mopen:bi,minner:bi},mopen:{},mclose:{mop:oi,mbin:ti,mrel:bi,minner:oi},mpunct:{mord:oi,mop:oi,mrel:bi,mopen:oi,mclose:oi,mpunct:oi,minner:oi},minner:{mord:oi,mop:oi,mbin:ti,mrel:bi,mopen:oi,mpunct:oi,minner:oi}},Ii={mord:{mop:oi},mop:{mord:oi,mop:oi},mbin:{},mrel:{},mopen:{},mclose:{mop:oi},mpunct:{},minner:{mop:oi}},gn={},Vr={},xn={};function tn(vt){for(var se=vt.type,ye=vt.names,Se=vt.props,Ue=vt.handler,ht=vt.htmlBuilder,Nt=vt.mathmlBuilder,br={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:Ue},Or=0;Or<ye.length;++Or)gn[ye[Or]]=br;se&&(ht&&(Vr[se]=ht),Nt&&(xn[se]=Nt))}function ui(vt){var se=vt.type,ye=vt.htmlBuilder,Se=vt.mathmlBuilder;tn({type:se,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:ye,mathmlBuilder:Se})}var qn=function(se){var ye=Br(se,"ordgroup");return ye?ye.body:[se]},wi=ar.makeSpan,Qn=["leftmost","mbin","mopen","mrel","mop","mpunct"],Hi=["rightmost","mrel","mclose","mpunct"],ri={display:U.DISPLAY,text:U.TEXT,script:U.SCRIPT,scriptscript:U.SCRIPTSCRIPT},Mi={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},dn=function(se,ye,Se,Ue){Ue===void 0&&(Ue=[null,null]);for(var ht=[],Nt=0;Nt<se.length;Nt++){var br=hi(se[Nt],ye);if(br instanceof X){var Or=br.children;ht.push.apply(ht,Or)}else ht.push(br)}if(!Se)return ht;var Zr=ye;if(se.length===1){var Tn=Br(se[0],"sizing")||Br(se[0],"styling");Tn&&(Tn.type==="sizing"?Zr=ye.havingSize(Tn.size):Tn.type==="styling"&&(Zr=ye.havingStyle(ri[Tn.style])))}var Hn=wi([Ue[0]||"leftmost"],[],ye),si=wi([Ue[1]||"rightmost"],[],ye);return Ur(ht,function(xi,Ri){var sa=Ri.classes[0],ya=xi.classes[0];sa==="mbin"&&h.contains(Hi,ya)?Ri.classes[0]="mord":ya==="mbin"&&h.contains(Qn,sa)&&(xi.classes[0]="mord")},{node:Hn},si),Ur(ht,function(xi,Ri){var sa=Gn(Ri),ya=Gn(xi),Ja=sa&&ya?xi.hasClass("mtight")?Ii[sa][ya]:kn[sa][ya]:null;if(Ja)return ar.makeGlue(Ja,Zr)},{node:Hn},si),ht},Ur=function vt(se,ye,Se,Ue){Ue&&se.push(Ue);for(var ht=0;ht<se.length;ht++){var Nt=se[ht],br=bn(Nt);if(br){vt(br.children,ye,Se);continue}if(Nt.classes[0]==="mspace")continue;var Or=ye(Nt,Se.node);Or&&(Se.insertAfter?Se.insertAfter(Or):(se.unshift(Or),ht++)),Se.node=Nt,Se.insertAfter=function(Zr){return function(Tn){se.splice(Zr+1,0,Tn),ht++}}(ht)}Ue&&se.pop()},bn=function(se){return se instanceof X||se instanceof de?se:null},Mn=function vt(se,ye){var Se=bn(se);if(Se){var Ue=Se.children;if(Ue.length){if(ye==="right")return vt(Ue[Ue.length-1],"right");if(ye==="left")return vt(Ue[0],"left")}}return se},Gn=function(se,ye){return se?(ye&&(se=Mn(se,ye)),Mi[se.classes[0]]||null):null},$n=function(se,ye){var Se=["nulldelimiter"].concat(se.baseSizingClasses());return wi(ye.concat(Se))},hi=function(se,ye,Se){if(!se)return wi();if(Vr[se.type]){var Ue=Vr[se.type](se,ye);if(Se&&ye.size!==Se.size){Ue=wi(ye.sizingClasses(Se),[Ue],ye);var ht=ye.sizeMultiplier/Se.sizeMultiplier;Ue.height*=ht,Ue.depth*=ht}return Ue}else throw new f("Got group of unknown type: '"+se.type+"'")};function fi(vt,se){var ye=wi(["base"],vt,se),Se=wi(["strut"]);return Se.style.height=ye.height+ye.depth+"em",Se.style.verticalAlign=-ye.depth+"em",ye.children.unshift(Se),ye}function gi(vt,se){var ye=null;vt.length===1&&vt[0].type==="tag"&&(ye=vt[0].tag,vt=vt[0].body);for(var Se=dn(vt,se,!0),Ue=[],ht=[],Nt=0;Nt<Se.length;Nt++)if(ht.push(Se[Nt]),Se[Nt].hasClass("mbin")||Se[Nt].hasClass("mrel")||Se[Nt].hasClass("allowbreak")){for(var br=!1;Nt<Se.length-1&&Se[Nt+1].hasClass("mspace")&&!Se[Nt+1].hasClass("newline");)Nt++,ht.push(Se[Nt]),Se[Nt].hasClass("nobreak")&&(br=!0);br||(Ue.push(fi(ht,se)),ht=[])}else Se[Nt].hasClass("newline")&&(ht.pop(),ht.length>0&&(Ue.push(fi(ht,se)),ht=[]),Ue.push(Se[Nt]));ht.length>0&&Ue.push(fi(ht,se));var Or;ye&&(Or=fi(dn(ye,se,!0)),Or.classes=["tag"],Ue.push(Or));var Zr=wi(["katex-html"],Ue);if(Zr.setAttribute("aria-hidden","true"),Or){var Tn=Or.children[0];Tn.style.height=Zr.height+Zr.depth+"em",Tn.style.verticalAlign=-Zr.depth+"em"}return Zr}function Wi(vt){return new X(vt)}var na=function(){function vt(ye,Se){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=ye,this.attributes={},this.children=Se||[]}var se=vt.prototype;return se.setAttribute=function(Se,Ue){this.attributes[Se]=Ue},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 Ue in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ue)&&Se.setAttribute(Ue,this.attributes[Ue]);for(var ht=0;ht<this.children.length;ht++)Se.appendChild(this.children[ht].toNode());return Se},se.toMarkup=function(){var Se="<"+this.type;for(var Ue in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ue)&&(Se+=" "+Ue+'="',Se+=h.escape(this.attributes[Ue]),Se+='"');Se+=">";for(var ht=0;ht<this.children.length;ht++)Se+=this.children[ht].toMarkup();return Se+="</"+this.type+">",Se},se.toText=function(){return this.children.map(function(Se){return Se.toText()}).join("")},vt}(),$i=function(){function vt(ye){this.text=void 0,this.text=ye}var se=vt.prototype;return se.toNode=function(){return document.createTextNode(this.text)},se.toMarkup=function(){return h.escape(this.toText())},se.toText=function(){return this.text},vt}(),Ha=function(){function vt(ye){this.width=void 0,this.character=void 0,this.width=ye,ye>=.05555&&ye<=.05556?this.character="\u200A":ye>=.1666&&ye<=.1667?this.character="\u2009":ye>=.2222&&ye<=.2223?this.character="\u2005":ye>=.2777&&ye<=.2778?this.character="\u2005\u200A":ye>=-.05556&&ye<=-.05555?this.character="\u200A\u2063":ye>=-.1667&&ye<=-.1666?this.character="\u2009\u2063":ye>=-.2223&&ye<=-.2222?this.character="\u205F\u2063":ye>=-.2778&&ye<=-.2777?this.character="\u2005\u2063":this.character=null}var se=vt.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:" "},vt}(),pi={MathNode:na,TextNode:$i,SpaceNode:Ha,newDocumentFragment:Wi},ln=function(se,ye,Se){return je[ye][se]&&je[ye][se].replace&&se.charCodeAt(0)!==55349&&!(tr.hasOwnProperty(se)&&Se&&(Se.fontFamily&&Se.fontFamily.substr(4,2)==="tt"||Se.font&&Se.font.substr(4,2)==="tt"))&&(se=je[ye][se].replace),new pi.TextNode(se)},_i=function(se){return se.length===1?se[0]:new pi.MathNode("mrow",se)},Ji=function(se,ye){if(ye.fontFamily==="texttt")return"monospace";if(ye.fontFamily==="textsf")return ye.fontShape==="textit"&&ye.fontWeight==="textbf"?"sans-serif-bold-italic":ye.fontShape==="textit"?"sans-serif-italic":ye.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(ye.fontShape==="textit"&&ye.fontWeight==="textbf")return"bold-italic";if(ye.fontShape==="textit")return"italic";if(ye.fontWeight==="textbf")return"bold";var Se=ye.font;if(!Se||Se==="mathnormal")return null;var Ue=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 ht=se.text;if(h.contains(["\\imath","\\jmath"],ht))return null;je[Ue][ht]&&je[Ue][ht].replace&&(ht=je[Ue][ht].replace);var Nt=ar.fontMap[Se].fontName;return Fe(ht,Nt,Ue)?ar.fontMap[Se].variant:null},Fi=function(se,ye,Se){if(se.length===1){var Ue=Vt(se[0],ye);return Se&&Ue instanceof na&&Ue.type==="mo"&&(Ue.setAttribute("lspace","0em"),Ue.setAttribute("rspace","0em")),[Ue]}for(var ht=[],Nt,br=0;br<se.length;br++){var Or=Vt(se[br],ye);if(Or instanceof na&&Nt instanceof na){if(Or.type==="mtext"&&Nt.type==="mtext"&&Or.getAttribute("mathvariant")===Nt.getAttribute("mathvariant")){var Zr;(Zr=Nt.children).push.apply(Zr,Or.children);continue}else if(Or.type==="mn"&&Nt.type==="mn"){var Tn;(Tn=Nt.children).push.apply(Tn,Or.children);continue}else if(Or.type==="mi"&&Or.children.length===1&&Nt.type==="mn"){var Hn=Or.children[0];if(Hn instanceof $i&&Hn.text==="."){var si;(si=Nt.children).push.apply(si,Or.children);continue}}else if(Nt.type==="mi"&&Nt.children.length===1){var xi=Nt.children[0];if(xi instanceof $i&&xi.text==="\u0338"&&(Or.type==="mo"||Or.type==="mi"||Or.type==="mn")){var Ri=Or.children[0];Ri instanceof $i&&Ri.text.length>0&&(Ri.text=Ri.text.slice(0,1)+"\u0338"+Ri.text.slice(1),ht.pop())}}}ht.push(Or),Nt=Or}return ht},ea=function(se,ye,Se){return _i(Fi(se,ye,Se))},Vt=function(se,ye){if(!se)return new pi.MathNode("mrow");if(xn[se.type]){var Se=xn[se.type](se,ye);return Se}else throw new f("Got group of unknown type: '"+se.type+"'")};function Xr(vt,se,ye,Se){var Ue=Fi(vt,ye),ht;Ue.length===1&&Ue[0]instanceof na&&h.contains(["mrow","mtable"],Ue[0].type)?ht=Ue[0]:ht=new pi.MathNode("mrow",Ue);var Nt=new pi.MathNode("annotation",[new pi.TextNode(se)]);Nt.setAttribute("encoding","application/x-tex");var br=new pi.MathNode("semantics",[ht,Nt]),Or=new pi.MathNode("math",[br]);Or.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Zr=Se?"katex":"katex-mathml";return ar.makeSpan([Zr],[Or])}var nn=function(se){return new Pt({style:se.displayMode?U.DISPLAY:U.TEXT,maxSize:se.maxSize,minRuleThickness:se.minRuleThickness})},fn=function(se,ye){if(ye.displayMode){var Se=["katex-display"];ye.leqno&&Se.push("leqno"),ye.fleqn&&Se.push("fleqn"),se=ar.makeSpan(Se,[se])}return se},Ze=function(se,ye,Se){var Ue=nn(Se),ht;if(Se.output==="mathml")return Xr(se,ye,Ue,!0);if(Se.output==="html"){var Nt=gi(se,Ue);ht=ar.makeSpan(["katex"],[Nt])}else{var br=Xr(se,ye,Ue,!1),Or=gi(se,Ue);ht=ar.makeSpan(["katex"],[br,Or])}return fn(ht,Se)},Lt=function(se,ye,Se){var Ue=nn(Se),ht=gi(se,Ue),Nt=ar.makeSpan(["katex"],[ht]);return fn(Nt,Se)},cr=Ze,lr={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"},_r=function(se){var ye=new pi.MathNode("mo",[new pi.TextNode(lr[se.substr(1)])]);return ye.setAttribute("stretchy","true"),ye},Rr={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]},Wr=function(se){return se.type==="ordgroup"?se.body.length:1},on=function(se,ye){function Se(){var Or=4e5,Zr=se.label.substr(1);if(h.contains(["widehat","widecheck","widetilde","utilde"],Zr)){var Tn=se,Hn=Wr(Tn.base),si,xi,Ri;if(Hn>5)Zr==="widehat"||Zr==="widecheck"?(si=420,Or=2364,Ri=.42,xi=Zr+"4"):(si=312,Or=2340,Ri=.34,xi="tilde4");else{var sa=[1,1,2,2,3,3][Hn];Zr==="widehat"||Zr==="widecheck"?(Or=[0,1062,2364,2364,2364][sa],si=[0,239,300,360,420][sa],Ri=[0,.24,.3,.3,.36,.42][sa],xi=Zr+sa):(Or=[0,600,1033,2339,2340][sa],si=[0,260,286,306,312][sa],Ri=[0,.26,.286,.3,.306,.34][sa],xi="tilde"+sa)}var ya=new ce(xi),Ja=new Ee([ya],{width:"100%",height:Ri+"em",viewBox:"0 0 "+Or+" "+si,preserveAspectRatio:"none"});return{span:ar.makeSvgSpan([],[Ja],ye),minWidth:0,height:Ri}}else{var $a=[],to=Rr[Zr],_o=to[0],To=to[1],Ro=to[2],go=Ro/1e3,So=_o.length,is,ts;if(So===1){var Co=to[3];is=["hide-tail"],ts=[Co]}else if(So===2)is=["halfarrow-left","halfarrow-right"],ts=["xMinYMin","xMaxYMin"];else if(So===3)is=["brace-left","brace-center","brace-right"],ts=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+So+" children.");for(var Yi=0;Yi<So;Yi++){var Ds=new ce(_o[Yi]),Es=new Ee([Ds],{width:"400em",height:go+"em",viewBox:"0 0 "+Or+" "+Ro,preserveAspectRatio:ts[Yi]+" slice"}),as=ar.makeSvgSpan([is[Yi]],[Es],ye);if(So===1)return{span:as,minWidth:To,height:go};as.style.height=go+"em",$a.push(as)}return{span:ar.makeSpan(["stretchy"],$a,ye),minWidth:To,height:go}}}var Ue=Se(),ht=Ue.span,Nt=Ue.minWidth,br=Ue.height;return ht.height=br,ht.style.height=br+"em",Nt>0&&(ht.style.minWidth=Nt+"em"),ht},En=function(se,ye,Se,Ue){var ht,Nt=se.height+se.depth+2*Se;if(/fbox|color/.test(ye)){if(ht=ar.makeSpan(["stretchy",ye],[],Ue),ye==="fbox"){var br=Ue.color&&Ue.getColor();br&&(ht.style.borderColor=br)}}else{var Or=[];/^[bx]cancel$/.test(ye)&&Or.push(new ne({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(ye)&&Or.push(new ne({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Zr=new Ee(Or,{width:"100%",height:Nt+"em"});ht=ar.makeSvgSpan([],[Zr],Ue)}return ht.height=Nt,ht.style.height=Nt+"em",ht},An={encloseSpan:En,mathMLnode:_r,svgSpan:on},Rn=function(se,ye){var Se,Ue,ht=Br(se,"supsub"),Nt;ht?(Ue=Gr(ht.base,"accent"),Se=Ue.base,ht.base=Se,Nt=Ae(hi(ht,ye)),ht.base=Ue):(Ue=Gr(se,"accent"),Se=Ue.base);var br=hi(Se,ye.havingCrampedStyle()),Or=Ue.isShifty&&h.isCharacterBox(Se),Zr=0;if(Or){var Tn=h.getBaseElem(Se),Hn=hi(Tn,ye.havingCrampedStyle());Zr=ee(Hn).skew}var si=Math.min(br.height,ye.fontMetrics().xHeight),xi;if(Ue.isStretchy)xi=An.svgSpan(Ue,ye),xi=ar.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:br},{type:"elem",elem:xi,wrapperClasses:["svg-align"],wrapperStyle:Zr>0?{width:"calc(100% - "+2*Zr+"em)",marginLeft:2*Zr+"em"}:void 0}]},ye);else{var Ri,sa;Ue.label==="\\vec"?(Ri=ar.staticSvg("vec",ye),sa=ar.svgData.vec[1]):(Ri=ar.makeOrd({mode:Ue.mode,text:Ue.label},ye,"textord"),Ri=ee(Ri),Ri.italic=0,sa=Ri.width),xi=ar.makeSpan(["accent-body"],[Ri]);var ya=Ue.label==="\\textcircled";ya&&(xi.classes.push("accent-full"),si=br.height);var Ja=Zr;ya||(Ja-=sa/2),xi.style.left=Ja+"em",Ue.label==="\\textcircled"&&(xi.style.top=".2em"),xi=ar.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:br},{type:"kern",size:-si},{type:"elem",elem:xi}]},ye)}var $a=ar.makeSpan(["mord","accent"],[xi],ye);return Nt?(Nt.children[0]=$a,Nt.height=Math.max($a.height,Nt.height),Nt.classes[0]="mord",Nt):$a},Un=function(se,ye){var Se=se.isStretchy?An.mathMLnode(se.label):new pi.MathNode("mo",[ln(se.label,se.mode)]),Ue=new pi.MathNode("mover",[Vt(se.base,ye),Se]);return Ue.setAttribute("accent","true"),Ue},wn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(vt){return"\\"+vt}).join("|"));tn({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,ye){var Se=ye[0],Ue=!wn.test(se.funcName),ht=!Ue||se.funcName==="\\widehat"||se.funcName==="\\widetilde"||se.funcName==="\\widecheck";return{type:"accent",mode:se.parser.mode,label:se.funcName,isStretchy:Ue,isShifty:ht,base:Se}},htmlBuilder:Rn,mathmlBuilder:Un}),tn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(se,ye){var Se=ye[0];return{type:"accent",mode:se.parser.mode,label:se.funcName,isStretchy:!1,isShifty:!0,base:Se}},htmlBuilder:Rn,mathmlBuilder:Un}),tn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[0];return{type:"accentUnder",mode:Se.mode,label:Ue,base:ht}},htmlBuilder:function(se,ye){var Se=hi(se.base,ye),Ue=An.svgSpan(se,ye),ht=se.label==="\\utilde"?.12:0,Nt=ar.makeVList({positionType:"bottom",positionData:Ue.height+ht,children:[{type:"elem",elem:Ue,wrapperClasses:["svg-align"]},{type:"kern",size:ht},{type:"elem",elem:Se}]},ye);return ar.makeSpan(["mord","accentunder"],[Nt],ye)},mathmlBuilder:function(se,ye){var Se=An.mathMLnode(se.label),Ue=new pi.MathNode("munder",[Vt(se.base,ye),Se]);return Ue.setAttribute("accentunder","true"),Ue}});var _n=function(se){var ye=new pi.MathNode("mpadded",se?[se]:[]);return ye.setAttribute("width","+0.6em"),ye.setAttribute("lspace","0.3em"),ye};tn({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,ye,Se){var Ue=se.parser,ht=se.funcName;return{type:"xArrow",mode:Ue.mode,label:ht,body:ye[0],below:Se[0]}},htmlBuilder:function(se,ye){var Se=ye.style,Ue=ye.havingStyle(Se.sup()),ht=ar.wrapFragment(hi(se.body,Ue,ye),ye);ht.classes.push("x-arrow-pad");var Nt;se.below&&(Ue=ye.havingStyle(Se.sub()),Nt=ar.wrapFragment(hi(se.below,Ue,ye),ye),Nt.classes.push("x-arrow-pad"));var br=An.svgSpan(se,ye),Or=-ye.fontMetrics().axisHeight+.5*br.height,Zr=-ye.fontMetrics().axisHeight-.5*br.height-.111;(ht.depth>.25||se.label==="\\xleftequilibrium")&&(Zr-=ht.depth);var Tn;if(Nt){var Hn=-ye.fontMetrics().axisHeight+Nt.height+.5*br.height+.111;Tn=ar.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ht,shift:Zr},{type:"elem",elem:br,shift:Or},{type:"elem",elem:Nt,shift:Hn}]},ye)}else Tn=ar.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ht,shift:Zr},{type:"elem",elem:br,shift:Or}]},ye);return Tn.children[0].children[0].children[1].classes.push("svg-align"),ar.makeSpan(["mrel","x-arrow"],[Tn],ye)},mathmlBuilder:function(se,ye){var Se=An.mathMLnode(se.label),Ue;if(se.body){var ht=_n(Vt(se.body,ye));if(se.below){var Nt=_n(Vt(se.below,ye));Ue=new pi.MathNode("munderover",[Se,Nt,ht])}else Ue=new pi.MathNode("mover",[Se,ht])}else if(se.below){var br=_n(Vt(se.below,ye));Ue=new pi.MathNode("munder",[Se,br])}else Ue=_n(),Ue=new pi.MathNode("mover",[Se,Ue]);return Ue}}),tn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(se,ye){for(var Se=se.parser,Ue=Gr(ye[0],"ordgroup"),ht=Ue.body,Nt="",br=0;br<ht.length;br++){var Or=Gr(ht[br],"textord");Nt+=Or.text}var Zr=parseInt(Nt);if(isNaN(Zr))throw new f("\\@char has non-numeric argument "+Nt);return{type:"textord",mode:Se.mode,text:String.fromCharCode(Zr)}}});var Cn=function(se,ye){var Se=dn(se.body,ye.withColor(se.color),!1);return ar.makeFragment(Se)},Kn=function(se,ye){var Se=Fi(se.body,ye.withColor(se.color)),Ue=new pi.MathNode("mstyle",Se);return Ue.setAttribute("mathcolor",se.color),Ue};tn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(se,ye){var Se=se.parser,Ue=Gr(ye[0],"color-token").color,ht=ye[1];return{type:"color",mode:Se.mode,color:Ue,body:qn(ht)}},htmlBuilder:Cn,mathmlBuilder:Kn}),tn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(se,ye){var Se=se.parser,Ue=se.breakOnTokenText,ht=Gr(ye[0],"color-token").color;Se.gullet.macros.set("\\current@color",ht);var Nt=Se.parseExpression(!0,Ue);return{type:"color",mode:Se.mode,color:ht,body:Nt}},htmlBuilder:Cn,mathmlBuilder:Kn}),tn({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(se,ye,Se){var Ue=se.parser,ht=se.funcName,Nt=Se[0],br=ht==="\\cr",Or=!1;return br||(Ue.settings.displayMode&&Ue.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Or=!1:Or=!0),{type:"cr",mode:Ue.mode,newLine:Or,newRow:br,size:Nt&&Gr(Nt,"size").value}},htmlBuilder:function(se,ye){if(se.newRow)throw new f("\\cr valid only within a tabular/array environment");var Se=ar.makeSpan(["mspace"],[],ye);return se.newLine&&(Se.classes.push("newline"),se.size&&(Se.style.marginTop=sr(se.size,ye)+"em")),Se},mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mspace");return se.newLine&&(Se.setAttribute("linebreak","newline"),se.size&&Se.setAttribute("height",sr(se.size,ye)+"em")),Se}});var Yn=function(se,ye,Se){var Ue=je.math[se]&&je.math[se].replace,ht=Fe(Ue||se,ye,Se);if(!ht)throw new Error("Unsupported symbol "+se+" and font size "+ye+".");return ht},ni=function(se,ye,Se,Ue){var ht=Se.havingBaseStyle(ye),Nt=ar.makeSpan(Ue.concat(ht.sizingClasses(Se)),[se],Se),br=ht.sizeMultiplier/Se.sizeMultiplier;return Nt.height*=br,Nt.depth*=br,Nt.maxFontSize=ht.sizeMultiplier,Nt},yi=function(se,ye,Se){var Ue=ye.havingBaseStyle(Se),ht=(1-ye.sizeMultiplier/Ue.sizeMultiplier)*ye.fontMetrics().axisHeight;se.classes.push("delimcenter"),se.style.top=ht+"em",se.height-=ht,se.depth+=ht},li=function(se,ye,Se,Ue,ht,Nt){var br=ar.makeSymbol(se,"Main-Regular",ht,Ue),Or=ni(br,ye,Ue,Nt);return Se&&yi(Or,Ue,ye),Or},Oi=function(se,ye,Se,Ue){return ar.makeSymbol(se,"Size"+ye+"-Regular",Se,Ue)},ki=function(se,ye,Se,Ue,ht,Nt){var br=Oi(se,ye,ht,Ue),Or=ni(ar.makeSpan(["delimsizing","size"+ye],[br],Ue),U.TEXT,Ue,Nt);return Se&&yi(Or,Ue,U.TEXT),Or},Si=function(se,ye,Se){var Ue;ye==="Size1-Regular"?Ue="delim-size1":Ue="delim-size4";var ht=ar.makeSpan(["delimsizinginner",Ue],[ar.makeSpan([],[ar.makeSymbol(se,ye,Se)])]);return{type:"elem",elem:ht}},mi={type:"kern",size:-.005},Li=function(se,ye,Se,Ue,ht,Nt){var br,Or,Zr,Tn;br=Zr=Tn=se,Or=null;var Hn="Size1-Regular";se==="\\uparrow"?Zr=Tn="\u23D0":se==="\\Uparrow"?Zr=Tn="\u2016":se==="\\downarrow"?br=Zr="\u23D0":se==="\\Downarrow"?br=Zr="\u2016":se==="\\updownarrow"?(br="\\uparrow",Zr="\u23D0",Tn="\\downarrow"):se==="\\Updownarrow"?(br="\\Uparrow",Zr="\u2016",Tn="\\Downarrow"):se==="["||se==="\\lbrack"?(br="\u23A1",Zr="\u23A2",Tn="\u23A3",Hn="Size4-Regular"):se==="]"||se==="\\rbrack"?(br="\u23A4",Zr="\u23A5",Tn="\u23A6",Hn="Size4-Regular"):se==="\\lfloor"||se==="\u230A"?(Zr=br="\u23A2",Tn="\u23A3",Hn="Size4-Regular"):se==="\\lceil"||se==="\u2308"?(br="\u23A1",Zr=Tn="\u23A2",Hn="Size4-Regular"):se==="\\rfloor"||se==="\u230B"?(Zr=br="\u23A5",Tn="\u23A6",Hn="Size4-Regular"):se==="\\rceil"||se==="\u2309"?(br="\u23A4",Zr=Tn="\u23A5",Hn="Size4-Regular"):se==="("||se==="\\lparen"?(br="\u239B",Zr="\u239C",Tn="\u239D",Hn="Size4-Regular"):se===")"||se==="\\rparen"?(br="\u239E",Zr="\u239F",Tn="\u23A0",Hn="Size4-Regular"):se==="\\{"||se==="\\lbrace"?(br="\u23A7",Or="\u23A8",Tn="\u23A9",Zr="\u23AA",Hn="Size4-Regular"):se==="\\}"||se==="\\rbrace"?(br="\u23AB",Or="\u23AC",Tn="\u23AD",Zr="\u23AA",Hn="Size4-Regular"):se==="\\lgroup"||se==="\u27EE"?(br="\u23A7",Tn="\u23A9",Zr="\u23AA",Hn="Size4-Regular"):se==="\\rgroup"||se==="\u27EF"?(br="\u23AB",Tn="\u23AD",Zr="\u23AA",Hn="Size4-Regular"):se==="\\lmoustache"||se==="\u23B0"?(br="\u23A7",Tn="\u23AD",Zr="\u23AA",Hn="Size4-Regular"):(se==="\\rmoustache"||se==="\u23B1")&&(br="\u23AB",Tn="\u23A9",Zr="\u23AA",Hn="Size4-Regular");var si=Yn(br,Hn,ht),xi=si.height+si.depth,Ri=Yn(Zr,Hn,ht),sa=Ri.height+Ri.depth,ya=Yn(Tn,Hn,ht),Ja=ya.height+ya.depth,$a=0,to=1;if(Or!==null){var _o=Yn(Or,Hn,ht);$a=_o.height+_o.depth,to=2}var To=xi+Ja+$a,Ro=Math.max(0,Math.ceil((ye-To)/(to*sa))),go=To+Ro*to*sa,So=Ue.fontMetrics().axisHeight;Se&&(So*=Ue.sizeMultiplier);var is=go/2-So,ts=(Ro+1)*.005-sa,Co=[];if(Co.push(Si(Tn,Hn,ht)),Or===null)for(var Yi=0;Yi<Ro;Yi++)Co.push(mi),Co.push(Si(Zr,Hn,ht));else{for(var Ds=0;Ds<Ro;Ds++)Co.push(mi),Co.push(Si(Zr,Hn,ht));Co.push({type:"kern",size:ts}),Co.push(Si(Zr,Hn,ht)),Co.push(mi),Co.push(Si(Or,Hn,ht));for(var Es=0;Es<Ro;Es++)Co.push(mi),Co.push(Si(Zr,Hn,ht))}Co.push({type:"kern",size:ts}),Co.push(Si(Zr,Hn,ht)),Co.push(mi),Co.push(Si(br,Hn,ht));var as=Ue.havingBaseStyle(U.TEXT),Qo=ar.makeVList({positionType:"bottom",positionData:is,children:Co},as);return ni(ar.makeSpan(["delimsizing","mult"],[Qo],as),U.TEXT,Ue,Nt)},Wn=80,Di=.08,zi=function(se,ye,Se,Ue,ht){var Nt=me(se,Ue,Se),br=new ce(se,Nt),Or=new Ee([br],{width:"400em",height:ye+"em",viewBox:"0 0 400000 "+Se,preserveAspectRatio:"xMinYMin slice"});return ar.makeSvgSpan(["hide-tail"],[Or],ht)},yr=function(se,ye){var Se=ye.havingBaseSizing(),Ue=sn("\\surd",se*Se.sizeMultiplier,Kr,Se),ht=Se.sizeMultiplier,Nt=Math.max(0,ye.minRuleThickness-ye.fontMetrics().sqrtRuleThickness),br,Or=0,Zr=0,Tn=0,Hn;return Ue.type==="small"?(Tn=1e3+1e3*Nt+Wn,se<1?ht=1:se<1.4&&(ht=.7),Or=(1+Nt+Di)/ht,Zr=(1+Nt)/ht,br=zi("sqrtMain",Or,Tn,Nt,ye),br.style.minWidth="0.853em",Hn=.833/ht):Ue.type==="large"?(Tn=(1e3+Wn)*Gt[Ue.size],Zr=(Gt[Ue.size]+Nt)/ht,Or=(Gt[Ue.size]+Nt+Di)/ht,br=zi("sqrtSize"+Ue.size,Or,Tn,Nt,ye),br.style.minWidth="1.02em",Hn=1/ht):(Or=se+Nt+Di,Zr=se+Nt,Tn=Math.floor(1e3*se+Nt)+Wn,br=zi("sqrtTall",Or,Tn,Nt,ye),br.style.minWidth="0.742em",Hn=1.056),br.height=Zr,br.style.height=Or+"em",{span:br,advanceWidth:Hn,ruleWidth:(ye.fontMetrics().sqrtRuleThickness+Nt)*ht}},Mr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Qr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Ir=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Gt=[0,1.2,1.8,2.4,3],Sr=function(se,ye,Se,Ue,ht){if(se==="<"||se==="\\lt"||se==="\u27E8"?se="\\langle":(se===">"||se==="\\gt"||se==="\u27E9")&&(se="\\rangle"),h.contains(Mr,se)||h.contains(Ir,se))return ki(se,ye,!1,Se,Ue,ht);if(h.contains(Qr,se))return Li(se,Gt[ye],!1,Se,Ue,ht);throw new f("Illegal delimiter: '"+se+"'")},Zt=[{type:"small",style:U.SCRIPTSCRIPT},{type:"small",style:U.SCRIPT},{type:"small",style:U.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],jr=[{type:"small",style:U.SCRIPTSCRIPT},{type:"small",style:U.SCRIPT},{type:"small",style:U.TEXT},{type:"stack"}],Kr=[{type:"small",style:U.SCRIPTSCRIPT},{type:"small",style:U.SCRIPT},{type:"small",style:U.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],pn=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.")},sn=function(se,ye,Se,Ue){for(var ht=Math.min(2,3-Ue.style.size),Nt=ht;Nt<Se.length&&!(Se[Nt].type==="stack");Nt++){var br=Yn(se,pn(Se[Nt]),"math"),Or=br.height+br.depth;if(Se[Nt].type==="small"){var Zr=Ue.havingBaseStyle(Se[Nt].style);Or*=Zr.sizeMultiplier}if(Or>ye)return Se[Nt]}return Se[Se.length-1]},yn=function(se,ye,Se,Ue,ht,Nt){se==="<"||se==="\\lt"||se==="\u27E8"?se="\\langle":(se===">"||se==="\\gt"||se==="\u27E9")&&(se="\\rangle");var br;h.contains(Ir,se)?br=Zt:h.contains(Mr,se)?br=Kr:br=jr;var Or=sn(se,ye,br,Ue);return Or.type==="small"?li(se,Or.style,Se,Ue,ht,Nt):Or.type==="large"?ki(se,Or.size,Se,Ue,ht,Nt):Li(se,ye,Se,Ue,ht,Nt)},Fn=function(se,ye,Se,Ue,ht,Nt){var br=Ue.fontMetrics().axisHeight*Ue.sizeMultiplier,Or=901,Zr=5/Ue.fontMetrics().ptPerEm,Tn=Math.max(ye-br,Se+br),Hn=Math.max(Tn/500*Or,2*Tn-Zr);return yn(se,Hn,!0,Ue,ht,Nt)},Xn={sqrtImage:yr,sizedDelim:Sr,customSizedDelim:yn,leftRightDelim:Fn},Jn={"\\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}},Ti=["(","\\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 ta(vt,se){var ye=ii(vt);if(ye&&h.contains(Ti,ye.text))return ye;throw new f("Invalid delimiter: '"+(ye?ye.text:JSON.stringify(vt))+"' after '"+se.funcName+"'",vt)}tn({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,ye){var Se=ta(ye[0],se);return{type:"delimsizing",mode:se.parser.mode,size:Jn[se.funcName].size,mclass:Jn[se.funcName].mclass,delim:Se.text}},htmlBuilder:function(se,ye){return se.delim==="."?ar.makeSpan([se.mclass]):Xn.sizedDelim(se.delim,se.size,ye,se.mode,[se.mclass])},mathmlBuilder:function(se){var ye=[];se.delim!=="."&&ye.push(ln(se.delim,se.mode));var Se=new pi.MathNode("mo",ye);return se.mclass==="mopen"||se.mclass==="mclose"?Se.setAttribute("fence","true"):Se.setAttribute("fence","false"),Se}});function oa(vt){if(!vt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}tn({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(se,ye){var Se=se.parser.gullet.macros.get("\\current@color");if(Se&&typeof Se!="string")throw new f("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:se.parser.mode,delim:ta(ye[0],se).text,color:Se}}}),tn({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(se,ye){var Se=ta(ye[0],se),Ue=se.parser;++Ue.leftrightDepth;var ht=Ue.parseExpression(!1);--Ue.leftrightDepth,Ue.expect("\\right",!1);var Nt=Gr(Ue.parseFunction(),"leftright-right");return{type:"leftright",mode:Ue.mode,body:ht,left:Se.text,right:Nt.delim,rightColor:Nt.color}},htmlBuilder:function(se,ye){oa(se);for(var Se=dn(se.body,ye,!0,["mopen","mclose"]),Ue=0,ht=0,Nt=!1,br=0;br<Se.length;br++)Se[br].isMiddle?Nt=!0:(Ue=Math.max(Se[br].height,Ue),ht=Math.max(Se[br].depth,ht));Ue*=ye.sizeMultiplier,ht*=ye.sizeMultiplier;var Or;if(se.left==="."?Or=$n(ye,["mopen"]):Or=Xn.leftRightDelim(se.left,Ue,ht,ye,se.mode,["mopen"]),Se.unshift(Or),Nt)for(var Zr=1;Zr<Se.length;Zr++){var Tn=Se[Zr],Hn=Tn.isMiddle;Hn&&(Se[Zr]=Xn.leftRightDelim(Hn.delim,Ue,ht,Hn.options,se.mode,[]))}var si;if(se.right===".")si=$n(ye,["mclose"]);else{var xi=se.rightColor?ye.withColor(se.rightColor):ye;si=Xn.leftRightDelim(se.right,Ue,ht,xi,se.mode,["mclose"])}return Se.push(si),ar.makeSpan(["minner"],Se,ye)},mathmlBuilder:function(se,ye){oa(se);var Se=Fi(se.body,ye);if(se.left!=="."){var Ue=new pi.MathNode("mo",[ln(se.left,se.mode)]);Ue.setAttribute("fence","true"),Se.unshift(Ue)}if(se.right!=="."){var ht=new pi.MathNode("mo",[ln(se.right,se.mode)]);ht.setAttribute("fence","true"),se.rightColor&&ht.setAttribute("mathcolor",se.rightColor),Se.push(ht)}return _i(Se)}}),tn({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(se,ye){var Se=ta(ye[0],se);if(!se.parser.leftrightDepth)throw new f("\\middle without preceding \\left",Se);return{type:"middle",mode:se.parser.mode,delim:Se.text}},htmlBuilder:function(se,ye){var Se;if(se.delim===".")Se=$n(ye,[]);else{Se=Xn.sizedDelim(se.delim,1,ye,se.mode,[]);var Ue={delim:se.delim,options:ye};Se.isMiddle=Ue}return Se},mathmlBuilder:function(se,ye){var Se=se.delim==="\\vert"||se.delim==="|"?ln("|","text"):ln(se.delim,se.mode),Ue=new pi.MathNode("mo",[Se]);return Ue.setAttribute("fence","true"),Ue.setAttribute("lspace","0.05em"),Ue.setAttribute("rspace","0.05em"),Ue}});var da=function(se,ye){var Se=ar.wrapFragment(hi(se.body,ye),ye),Ue=se.label.substr(1),ht=ye.sizeMultiplier,Nt,br=0,Or=h.isCharacterBox(se.body);if(Ue==="sout")Nt=ar.makeSpan(["stretchy","sout"]),Nt.height=ye.fontMetrics().defaultRuleThickness/ht,br=-.5*ye.fontMetrics().xHeight;else{/cancel/.test(Ue)?Or||Se.classes.push("cancel-pad"):Se.classes.push("boxpad");var Zr=0,Tn=0;/box/.test(Ue)?(Tn=Math.max(ye.fontMetrics().fboxrule,ye.minRuleThickness),Zr=ye.fontMetrics().fboxsep+(Ue==="colorbox"?0:Tn)):Zr=Or?.2:0,Nt=An.encloseSpan(Se,Ue,Zr,ye),/fbox|boxed|fcolorbox/.test(Ue)&&(Nt.style.borderStyle="solid",Nt.style.borderWidth=Tn+"em"),br=Se.depth+Zr,se.backgroundColor&&(Nt.style.backgroundColor=se.backgroundColor,se.borderColor&&(Nt.style.borderColor=se.borderColor))}var Hn;return se.backgroundColor?Hn=ar.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Nt,shift:br},{type:"elem",elem:Se,shift:0}]},ye):Hn=ar.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Se,shift:0},{type:"elem",elem:Nt,shift:br,wrapperClasses:/cancel/.test(Ue)?["svg-align"]:[]}]},ye),/cancel/.test(Ue)&&(Hn.height=Se.height,Hn.depth=Se.depth),/cancel/.test(Ue)&&!Or?ar.makeSpan(["mord","cancel-lap"],[Hn],ye):ar.makeSpan(["mord"],[Hn],ye)},ca=function(se,ye){var Se=0,Ue=new pi.MathNode(se.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Vt(se.body,ye)]);switch(se.label){case"\\cancel":Ue.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Ue.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Ue.setAttribute("notation","horizontalstrike");break;case"\\fbox":Ue.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(Se=ye.fontMetrics().fboxsep*ye.fontMetrics().ptPerEm,Ue.setAttribute("width","+"+2*Se+"pt"),Ue.setAttribute("height","+"+2*Se+"pt"),Ue.setAttribute("lspace",Se+"pt"),Ue.setAttribute("voffset",Se+"pt"),se.label==="\\fcolorbox"){var ht=Math.max(ye.fontMetrics().fboxrule,ye.minRuleThickness);Ue.setAttribute("style","border: "+ht+"em solid "+String(se.borderColor))}break;case"\\xcancel":Ue.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return se.backgroundColor&&Ue.setAttribute("mathbackground",se.backgroundColor),Ue};tn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(se,ye,Se){var Ue=se.parser,ht=se.funcName,Nt=Gr(ye[0],"color-token").color,br=ye[1];return{type:"enclose",mode:Ue.mode,label:ht,backgroundColor:Nt,body:br}},htmlBuilder:da,mathmlBuilder:ca}),tn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(se,ye,Se){var Ue=se.parser,ht=se.funcName,Nt=Gr(ye[0],"color-token").color,br=Gr(ye[1],"color-token").color,Or=ye[2];return{type:"enclose",mode:Ue.mode,label:ht,backgroundColor:br,borderColor:Nt,body:Or}},htmlBuilder:da,mathmlBuilder:ca}),tn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(se,ye){var Se=se.parser;return{type:"enclose",mode:Se.mode,label:"\\fbox",body:ye[0]}}}),tn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(se,ye,Se){var Ue=se.parser,ht=se.funcName,Nt=ye[0];return{type:"enclose",mode:Ue.mode,label:ht,body:Nt}},htmlBuilder:da,mathmlBuilder:ca});var ma={};function Ui(vt){for(var se=vt.type,ye=vt.names,Se=vt.props,Ue=vt.handler,ht=vt.htmlBuilder,Nt=vt.mathmlBuilder,br={type:se,numArgs:Se.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Ue},Or=0;Or<ye.length;++Or)ma[ye[Or]]=br;ht&&(Vr[se]=ht),Nt&&(xn[se]=Nt)}function Ni(vt){var se=[];vt.consumeSpaces();for(var ye=vt.fetch().text;ye==="\\hline"||ye==="\\hdashline";)vt.consume(),se.push(ye==="\\hdashline"),vt.consumeSpaces(),ye=vt.fetch().text;return se}function ra(vt,se,ye){var Se=se.hskipBeforeAndAfter,Ue=se.addJot,ht=se.cols,Nt=se.arraystretch,br=se.colSeparationType;if(vt.gullet.beginGroup(),vt.gullet.macros.set("\\\\","\\cr"),!Nt){var Or=vt.gullet.expandMacroAsText("\\arraystretch");if(Or==null)Nt=1;else if(Nt=parseFloat(Or),!Nt||Nt<0)throw new f("Invalid \\arraystretch: "+Or)}vt.gullet.beginGroup();var Zr=[],Tn=[Zr],Hn=[],si=[];for(si.push(Ni(vt));;){var xi=vt.parseExpression(!1,"\\cr");vt.gullet.endGroup(),vt.gullet.beginGroup(),xi={type:"ordgroup",mode:vt.mode,body:xi},ye&&(xi={type:"styling",mode:vt.mode,style:ye,body:[xi]}),Zr.push(xi);var Ri=vt.fetch().text;if(Ri==="&")vt.consume();else if(Ri==="\\end"){Zr.length===1&&xi.type==="styling"&&xi.body[0].body.length===0&&Tn.pop(),si.length<Tn.length+1&&si.push([]);break}else if(Ri==="\\cr"){var sa=Gr(vt.parseFunction(),"cr");Hn.push(sa.size),si.push(Ni(vt)),Zr=[],Tn.push(Zr)}else throw new f("Expected & or \\\\ or \\cr or \\end",vt.nextToken)}return vt.gullet.endGroup(),vt.gullet.endGroup(),{type:"array",mode:vt.mode,addJot:Ue,arraystretch:Nt,body:Tn,cols:ht,rowGaps:Hn,hskipBeforeAndAfter:Se,hLinesBeforeRow:si,colSeparationType:br}}function qi(vt){return vt.substr(0,1)==="d"?"display":"text"}var Aa=function(se,ye){var Se,Ue,ht=se.body.length,Nt=se.hLinesBeforeRow,br=0,Or=new Array(ht),Zr=[],Tn=Math.max(ye.fontMetrics().arrayRuleWidth,ye.minRuleThickness),Hn=1/ye.fontMetrics().ptPerEm,si=5*Hn;if(se.colSeparationType&&se.colSeparationType==="small"){var xi=ye.havingStyle(U.SCRIPT).sizeMultiplier;si=.2778*(xi/ye.sizeMultiplier)}var Ri=12*Hn,sa=3*Hn,ya=se.arraystretch*Ri,Ja=.7*ya,$a=.3*ya,to=0;function _o(js){for(var Ga=0;Ga<js.length;++Ga)Ga>0&&(to+=.25),Zr.push({pos:to,isDashed:js[Ga]})}for(_o(Nt[0]),Se=0;Se<se.body.length;++Se){var To=se.body[Se],Ro=Ja,go=$a;br<To.length&&(br=To.length);var So=new Array(To.length);for(Ue=0;Ue<To.length;++Ue){var is=hi(To[Ue],ye);go<is.depth&&(go=is.depth),Ro<is.height&&(Ro=is.height),So[Ue]=is}var ts=se.rowGaps[Se],Co=0;ts&&(Co=sr(ts,ye),Co>0&&(Co+=$a,go<Co&&(go=Co),Co=0)),se.addJot&&(go+=sa),So.height=Ro,So.depth=go,to+=Ro,So.pos=to,to+=go+Co,Or[Se]=So,_o(Nt[Se+1])}var Yi=to/2+ye.fontMetrics().axisHeight,Ds=se.cols||[],Es=[],as,Qo;for(Ue=0,Qo=0;Ue<br||Qo<Ds.length;++Ue,++Qo){for(var hs=Ds[Qo]||{},vl=!0;hs.type==="separator";){if(vl||(as=ar.makeSpan(["arraycolsep"],[]),as.style.width=ye.fontMetrics().doubleRuleSep+"em",Es.push(as)),hs.separator==="|"||hs.separator===":"){var sl=hs.separator==="|"?"solid":"dashed",fs=ar.makeSpan(["vertical-separator"],[],ye);fs.style.height=to+"em",fs.style.borderRightWidth=Tn+"em",fs.style.borderRightStyle=sl,fs.style.margin="0 -"+Tn/2+"em",fs.style.verticalAlign=-(to-Yi)+"em",Es.push(fs)}else throw new f("Invalid separator type: "+hs.separator);Qo++,hs=Ds[Qo]||{},vl=!1}if(Ue>=br)continue;var Lo=void 0;(Ue>0||se.hskipBeforeAndAfter)&&(Lo=h.deflt(hs.pregap,si),Lo!==0&&(as=ar.makeSpan(["arraycolsep"],[]),as.style.width=Lo+"em",Es.push(as)));var ls=[];for(Se=0;Se<ht;++Se){var Zs=Or[Se],vs=Zs[Ue];if(!vs)continue;var Fs=Zs.pos-Yi;vs.depth=Zs.depth,vs.height=Zs.height,ls.push({type:"elem",elem:vs,shift:Fs})}ls=ar.makeVList({positionType:"individualShift",children:ls},ye),ls=ar.makeSpan(["col-align-"+(hs.align||"c")],[ls]),Es.push(ls),(Ue<br-1||se.hskipBeforeAndAfter)&&(Lo=h.deflt(hs.postgap,si),Lo!==0&&(as=ar.makeSpan(["arraycolsep"],[]),as.style.width=Lo+"em",Es.push(as)))}if(Or=ar.makeSpan(["mtable"],Es),Zr.length>0){for(var Us=ar.makeLineSpan("hline",ye,Tn),Rs=ar.makeLineSpan("hdashline",ye,Tn),al=[{type:"elem",elem:Or,shift:0}];Zr.length>0;){var $s=Zr.pop(),Ys=$s.pos-Yi;$s.isDashed?al.push({type:"elem",elem:Rs,shift:Ys}):al.push({type:"elem",elem:Us,shift:Ys})}Or=ar.makeVList({positionType:"individualShift",children:al},ye)}return ar.makeSpan(["mord"],[Or],ye)},Oa={c:"center ",l:"left ",r:"right "},Zi=function(se,ye){var Se=new pi.MathNode("mtable",se.body.map(function(to){return new pi.MathNode("mtr",to.map(function(_o){return new pi.MathNode("mtd",[Vt(_o,ye)])}))})),Ue=se.arraystretch===.5?.1:.16+se.arraystretch-1+(se.addJot?.09:0);Se.setAttribute("rowspacing",Ue+"em");var ht="",Nt="";if(se.cols){var br=se.cols,Or="",Zr=!1,Tn=0,Hn=br.length;br[0].type==="separator"&&(ht+="top ",Tn=1),br[br.length-1].type==="separator"&&(ht+="bottom ",Hn-=1);for(var si=Tn;si<Hn;si++)br[si].type==="align"?(Nt+=Oa[br[si].align],Zr&&(Or+="none "),Zr=!0):br[si].type==="separator"&&(Zr&&(Or+=br[si].separator==="|"?"solid ":"dashed ",Zr=!1));Se.setAttribute("columnalign",Nt.trim()),/[sd]/.test(Or)&&Se.setAttribute("columnlines",Or.trim())}if(se.colSeparationType==="align"){for(var xi=se.cols||[],Ri="",sa=1;sa<xi.length;sa++)Ri+=sa%2?"0em ":"1em ";Se.setAttribute("columnspacing",Ri.trim())}else se.colSeparationType==="alignat"?Se.setAttribute("columnspacing","0em"):se.colSeparationType==="small"?Se.setAttribute("columnspacing","0.2778em"):Se.setAttribute("columnspacing","1em");var ya="",Ja=se.hLinesBeforeRow;ht+=Ja[0].length>0?"left ":"",ht+=Ja[Ja.length-1].length>0?"right ":"";for(var $a=1;$a<Ja.length-1;$a++)ya+=Ja[$a].length===0?"none ":Ja[$a][0]?"dashed ":"solid ";return/[sd]/.test(ya)&&Se.setAttribute("rowlines",ya.trim()),ht!==""&&(Se=new pi.MathNode("menclose",[Se]),Se.setAttribute("notation",ht.trim())),se.arraystretch&&se.arraystretch<1&&(Se=new pi.MathNode("mstyle",[Se]),Se.setAttribute("scriptlevel","1")),Se},Gi=function(se,ye){var Se=[],Ue=ra(se.parser,{cols:Se,addJot:!0},"display"),ht,Nt=0,br={type:"ordgroup",mode:se.mode,body:[]},Or=Br(ye[0],"ordgroup");if(Or){for(var Zr="",Tn=0;Tn<Or.body.length;Tn++){var Hn=Gr(Or.body[Tn],"textord");Zr+=Hn.text}ht=Number(Zr),Nt=ht*2}var si=!Nt;Ue.body.forEach(function(ya){for(var Ja=1;Ja<ya.length;Ja+=2){var $a=Gr(ya[Ja],"styling"),to=Gr($a.body[0],"ordgroup");to.body.unshift(br)}if(si)Nt<ya.length&&(Nt=ya.length);else{var _o=ya.length/2;if(ht<_o)throw new f("Too many math in a row: "+("expected "+ht+", but got "+_o),ya[0])}});for(var xi=0;xi<Nt;++xi){var Ri="r",sa=0;xi%2===1?Ri="l":xi>0&&si&&(sa=1),Se[xi]={type:"align",align:Ri,pregap:sa,postgap:0}}return Ue.colSeparationType=si?"align":"alignat",Ue};Ui({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(se,ye){var Se=ii(ye[0]),Ue=Se?[ye[0]]:Gr(ye[0],"ordgroup").body,ht=Ue.map(function(br){var Or=Pn(br),Zr=Or.text;if("lcr".indexOf(Zr)!==-1)return{type:"align",align:Zr};if(Zr==="|")return{type:"separator",separator:"|"};if(Zr===":")return{type:"separator",separator:":"};throw new f("Unknown column alignment: "+Zr,br)}),Nt={cols:ht,hskipBeforeAndAfter:!0};return ra(se.parser,Nt,qi(se.envName))},htmlBuilder:Aa,mathmlBuilder:Zi}),Ui({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(se){var ye={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[se.envName],Se={hskipBeforeAndAfter:!1},Ue=ra(se.parser,Se,qi(se.envName));return ye?{type:"leftright",mode:se.mode,body:[Ue],left:ye[0],right:ye[1],rightColor:void 0}:Ue},htmlBuilder:Aa,mathmlBuilder:Zi}),Ui({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(se){var ye={arraystretch:.5},Se=ra(se.parser,ye,"script");return Se.colSeparationType="small",Se},htmlBuilder:Aa,mathmlBuilder:Zi}),Ui({type:"array",names:["subarray"],props:{numArgs:1},handler:function(se,ye){var Se=ii(ye[0]),Ue=Se?[ye[0]]:Gr(ye[0],"ordgroup").body,ht=Ue.map(function(br){var Or=Pn(br),Zr=Or.text;if("lc".indexOf(Zr)!==-1)return{type:"align",align:Zr};throw new f("Unknown column alignment: "+Zr,br)});if(ht.length>1)throw new f("{subarray} can contain only one column");var Nt={cols:ht,hskipBeforeAndAfter:!1,arraystretch:.5};if(Nt=ra(se.parser,Nt,"script"),Nt.body[0].length>1)throw new f("{subarray} can contain only one column");return Nt},htmlBuilder:Aa,mathmlBuilder:Zi}),Ui({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(se){var ye={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Se=ra(se.parser,ye,qi(se.envName));return{type:"leftright",mode:se.mode,body:[Se],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Aa,mathmlBuilder:Zi}),Ui({type:"array",names:["aligned"],props:{numArgs:0},handler:Gi,htmlBuilder:Aa,mathmlBuilder:Zi}),Ui({type:"array",names:["gathered"],props:{numArgs:0},handler:function(se){var ye={cols:[{type:"align",align:"c"}],addJot:!0};return ra(se.parser,ye,"display")},htmlBuilder:Aa,mathmlBuilder:Zi}),Ui({type:"array",names:["alignedat"],props:{numArgs:1},handler:Gi,htmlBuilder:Aa,mathmlBuilder:Zi}),tn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(se,ye){throw new f(se.funcName+" valid only within array environment")}});var La=ma,va=La;tn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[0];if(ht.type!=="ordgroup")throw new f("Invalid environment name",ht);for(var Nt="",br=0;br<ht.body.length;++br)Nt+=Gr(ht.body[br],"textord").text;if(Ue==="\\begin"){if(!va.hasOwnProperty(Nt))throw new f("No such environment: "+Nt,ht);var Or=va[Nt],Zr=Se.parseArguments("\\begin{"+Nt+"}",Or),Tn=Zr.args,Hn=Zr.optArgs,si={mode:Se.mode,envName:Nt,parser:Se},xi=Or.handler(si,Tn,Hn);Se.expect("\\end",!1);var Ri=Se.nextToken,sa=Gr(Se.parseFunction(),"environment");if(sa.name!==Nt)throw new f("Mismatch: \\begin{"+Nt+"} matched by \\end{"+sa.name+"}",Ri);return xi}return{type:"environment",mode:Se.mode,name:Nt,nameGroup:ht}}});var Ci=ar.makeSpan;function Sa(vt,se){var ye=dn(vt.body,se,!0);return Ci([vt.mclass],ye,se)}function Da(vt,se){var ye,Se=Fi(vt.body,se);return vt.mclass==="minner"?pi.newDocumentFragment(Se):(vt.mclass==="mord"?vt.isCharacterBox?(ye=Se[0],ye.type="mi"):ye=new pi.MathNode("mi",Se):(vt.isCharacterBox?(ye=Se[0],ye.type="mo"):ye=new pi.MathNode("mo",Se),vt.mclass==="mbin"?(ye.attributes.lspace="0.22em",ye.attributes.rspace="0.22em"):vt.mclass==="mpunct"?(ye.attributes.lspace="0em",ye.attributes.rspace="0.17em"):(vt.mclass==="mopen"||vt.mclass==="mclose")&&(ye.attributes.lspace="0em",ye.attributes.rspace="0em")),ye)}tn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[0];return{type:"mclass",mode:Se.mode,mclass:"m"+Ue.substr(5),body:qn(ht),isCharacterBox:h.isCharacterBox(ht)}},htmlBuilder:Sa,mathmlBuilder:Da});var Na=function(se){var ye=se.type==="ordgroup"&&se.body.length?se.body[0]:se;return ye.type==="atom"&&(ye.family==="bin"||ye.family==="rel")?"m"+ye.family:"mord"};tn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(se,ye){var Se=se.parser;return{type:"mclass",mode:Se.mode,mclass:Na(ye[0]),body:[ye[1]],isCharacterBox:h.isCharacterBox(ye[1])}}}),tn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[1],Nt=ye[0],br;Ue!=="\\stackrel"?br=Na(ht):br="mrel";var Or={type:"op",mode:ht.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Ue!=="\\stackrel",body:qn(ht)},Zr={type:"supsub",mode:Nt.mode,base:Or,sup:Ue==="\\underset"?null:Nt,sub:Ue==="\\underset"?Nt:null};return{type:"mclass",mode:Se.mode,mclass:br,body:[Zr],isCharacterBox:h.isCharacterBox(Zr)}},htmlBuilder:Sa,mathmlBuilder:Da});var Ua=function(se,ye){var Se=se.font,Ue=ye.withFont(Se);return hi(se.body,Ue)},Pa=function(se,ye){var Se=se.font,Ue=ye.withFont(Se);return Vt(se.body,Ue)},za={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};tn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[0],Nt=Ue;return Nt in za&&(Nt=za[Nt]),{type:"font",mode:Se.mode,font:Nt.slice(1),body:ht}},htmlBuilder:Ua,mathmlBuilder:Pa}),tn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(se,ye){var Se=se.parser,Ue=ye[0],ht=h.isCharacterBox(Ue);return{type:"mclass",mode:Se.mode,mclass:Na(Ue),body:[{type:"font",mode:Se.mode,font:"boldsymbol",body:Ue}],isCharacterBox:ht}}}),tn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=se.breakOnTokenText,Nt=Se.mode,br=Se.parseExpression(!0,ht),Or="math"+Ue.slice(1);return{type:"font",mode:Nt,font:Or,body:{type:"ordgroup",mode:Se.mode,body:br}}},htmlBuilder:Ua,mathmlBuilder:Pa});var xa=function(se,ye){var Se=ye;return se==="display"?Se=Se.id>=U.SCRIPT.id?Se.text():U.DISPLAY:se==="text"&&Se.size===U.DISPLAY.size?Se=U.TEXT:se==="script"?Se=U.SCRIPT:se==="scriptscript"&&(Se=U.SCRIPTSCRIPT),Se},ja=function(se,ye){var Se=xa(se.size,ye.style),Ue=Se.fracNum(),ht=Se.fracDen(),Nt;Nt=ye.havingStyle(Ue);var br=hi(se.numer,Nt,ye);if(se.continued){var Or=8.5/ye.fontMetrics().ptPerEm,Zr=3.5/ye.fontMetrics().ptPerEm;br.height=br.height<Or?Or:br.height,br.depth=br.depth<Zr?Zr:br.depth}Nt=ye.havingStyle(ht);var Tn=hi(se.denom,Nt,ye),Hn,si,xi;se.hasBarLine?(se.barSize?(si=sr(se.barSize,ye),Hn=ar.makeLineSpan("frac-line",ye,si)):Hn=ar.makeLineSpan("frac-line",ye),si=Hn.height,xi=Hn.height):(Hn=null,si=0,xi=ye.fontMetrics().defaultRuleThickness);var Ri,sa,ya;Se.size===U.DISPLAY.size||se.size==="display"?(Ri=ye.fontMetrics().num1,si>0?sa=3*xi:sa=7*xi,ya=ye.fontMetrics().denom1):(si>0?(Ri=ye.fontMetrics().num2,sa=xi):(Ri=ye.fontMetrics().num3,sa=3*xi),ya=ye.fontMetrics().denom2);var Ja;if(Hn){var to=ye.fontMetrics().axisHeight;Ri-br.depth-(to+.5*si)<sa&&(Ri+=sa-(Ri-br.depth-(to+.5*si))),to-.5*si-(Tn.height-ya)<sa&&(ya+=sa-(to-.5*si-(Tn.height-ya)));var _o=-(to-.5*si);Ja=ar.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Tn,shift:ya},{type:"elem",elem:Hn,shift:_o},{type:"elem",elem:br,shift:-Ri}]},ye)}else{var $a=Ri-br.depth-(Tn.height-ya);$a<sa&&(Ri+=.5*(sa-$a),ya+=.5*(sa-$a)),Ja=ar.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Tn,shift:ya},{type:"elem",elem:br,shift:-Ri}]},ye)}Nt=ye.havingStyle(Se),Ja.height*=Nt.sizeMultiplier/ye.sizeMultiplier,Ja.depth*=Nt.sizeMultiplier/ye.sizeMultiplier;var To;Se.size===U.DISPLAY.size?To=ye.fontMetrics().delim1:To=ye.fontMetrics().delim2;var Ro,go;return se.leftDelim==null?Ro=$n(ye,["mopen"]):Ro=Xn.customSizedDelim(se.leftDelim,To,!0,ye.havingStyle(Se),se.mode,["mopen"]),se.continued?go=ar.makeSpan([]):se.rightDelim==null?go=$n(ye,["mclose"]):go=Xn.customSizedDelim(se.rightDelim,To,!0,ye.havingStyle(Se),se.mode,["mclose"]),ar.makeSpan(["mord"].concat(Nt.sizingClasses(ye)),[Ro,ar.makeSpan(["mfrac"],[Ja]),go],ye)},io=function(se,ye){var Se=new pi.MathNode("mfrac",[Vt(se.numer,ye),Vt(se.denom,ye)]);if(!se.hasBarLine)Se.setAttribute("linethickness","0px");else if(se.barSize){var Ue=sr(se.barSize,ye);Se.setAttribute("linethickness",Ue+"em")}var ht=xa(se.size,ye.style);if(ht.size!==ye.style.size){Se=new pi.MathNode("mstyle",[Se]);var Nt=ht.size===U.DISPLAY.size?"true":"false";Se.setAttribute("displaystyle",Nt),Se.setAttribute("scriptlevel","0")}if(se.leftDelim!=null||se.rightDelim!=null){var br=[];if(se.leftDelim!=null){var Or=new pi.MathNode("mo",[new pi.TextNode(se.leftDelim.replace("\\",""))]);Or.setAttribute("fence","true"),br.push(Or)}if(br.push(Se),se.rightDelim!=null){var Zr=new pi.MathNode("mo",[new pi.TextNode(se.rightDelim.replace("\\",""))]);Zr.setAttribute("fence","true"),br.push(Zr)}return _i(br)}return Se};tn({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[0],Nt=ye[1],br,Or=null,Zr=null,Tn="auto";switch(Ue){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":br=!0;break;case"\\\\atopfrac":br=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":br=!1,Or="(",Zr=")";break;case"\\\\bracefrac":br=!1,Or="\\{",Zr="\\}";break;case"\\\\brackfrac":br=!1,Or="[",Zr="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Ue){case"\\cfrac":case"\\dfrac":case"\\dbinom":Tn="display";break;case"\\tfrac":case"\\tbinom":Tn="text";break}return{type:"genfrac",mode:Se.mode,continued:Ue==="\\cfrac",numer:ht,denom:Nt,hasBarLine:br,leftDelim:Or,rightDelim:Zr,size:Tn,barSize:null}},htmlBuilder:ja,mathmlBuilder:io}),tn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(se){var ye=se.parser,Se=se.funcName,Ue=se.token,ht;switch(Se){case"\\over":ht="\\frac";break;case"\\choose":ht="\\binom";break;case"\\atop":ht="\\\\atopfrac";break;case"\\brace":ht="\\\\bracefrac";break;case"\\brack":ht="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:ye.mode,replaceWith:ht,token:Ue}}});var ia=["display","text","script","scriptscript"],lo=function(se){var ye=null;return se.length>0&&(ye=se,ye=ye==="."?null:ye),ye};tn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(se,ye){var Se=se.parser,Ue=ye[4],ht=ye[5],Nt=Br(ye[0],"atom");Nt&&(Nt=gr(ye[0],"open"));var br=Nt?lo(Nt.text):null,Or=Br(ye[1],"atom");Or&&(Or=gr(ye[1],"close"));var Zr=Or?lo(Or.text):null,Tn=Gr(ye[2],"size"),Hn,si=null;Tn.isBlank?Hn=!0:(si=Tn.value,Hn=si.number>0);var xi="auto",Ri=Br(ye[3],"ordgroup");if(Ri){if(Ri.body.length>0){var sa=Gr(Ri.body[0],"textord");xi=ia[Number(sa.text)]}}else Ri=Gr(ye[3],"textord"),xi=ia[Number(Ri.text)];return{type:"genfrac",mode:Se.mode,numer:Ue,denom:ht,continued:!1,hasBarLine:Hn,barSize:si,leftDelim:br,rightDelim:Zr,size:xi}},htmlBuilder:ja,mathmlBuilder:io}),tn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=se.token;return{type:"infix",mode:Se.mode,replaceWith:"\\\\abovefrac",size:Gr(ye[0],"size").value,token:ht}}}),tn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[0],Nt=c(Gr(ye[1],"infix").size),br=ye[2],Or=Nt.number>0;return{type:"genfrac",mode:Se.mode,numer:ht,denom:br,continued:!1,hasBarLine:Or,barSize:Nt,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ja,mathmlBuilder:io});var Xa=function(se,ye){var Se=ye.style,Ue,ht,Nt=Br(se,"supsub");Nt?(Ue=Nt.sup?hi(Nt.sup,ye.havingStyle(Se.sup()),ye):hi(Nt.sub,ye.havingStyle(Se.sub()),ye),ht=Gr(Nt.base,"horizBrace")):ht=Gr(se,"horizBrace");var br=hi(ht.base,ye.havingBaseStyle(U.DISPLAY)),Or=An.svgSpan(ht,ye),Zr;if(ht.isOver?(Zr=ar.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:br},{type:"kern",size:.1},{type:"elem",elem:Or}]},ye),Zr.children[0].children[0].children[1].classes.push("svg-align")):(Zr=ar.makeVList({positionType:"bottom",positionData:br.depth+.1+Or.height,children:[{type:"elem",elem:Or},{type:"kern",size:.1},{type:"elem",elem:br}]},ye),Zr.children[0].children[0].children[0].classes.push("svg-align")),Ue){var Tn=ar.makeSpan(["mord",ht.isOver?"mover":"munder"],[Zr],ye);ht.isOver?Zr=ar.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Tn},{type:"kern",size:.2},{type:"elem",elem:Ue}]},ye):Zr=ar.makeVList({positionType:"bottom",positionData:Tn.depth+.2+Ue.height+Ue.depth,children:[{type:"elem",elem:Ue},{type:"kern",size:.2},{type:"elem",elem:Tn}]},ye)}return ar.makeSpan(["mord",ht.isOver?"mover":"munder"],[Zr],ye)},Ta=function(se,ye){var Se=An.mathMLnode(se.label);return new pi.MathNode(se.isOver?"mover":"munder",[Vt(se.base,ye),Se])};tn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(se,ye){var Se=se.parser,Ue=se.funcName;return{type:"horizBrace",mode:Se.mode,label:Ue,isOver:/^\\over/.test(Ue),base:ye[0]}},htmlBuilder:Xa,mathmlBuilder:Ta}),tn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=ye[1],ht=Gr(ye[0],"url").url;return Se.settings.isTrusted({command:"\\href",url:ht})?{type:"href",mode:Se.mode,href:ht,body:qn(Ue)}:Se.formatUnsupportedCmd("\\href")},htmlBuilder:function(se,ye){var Se=dn(se.body,ye,!1);return ar.makeAnchor(se.href,[],Se,ye)},mathmlBuilder:function(se,ye){var Se=ea(se.body,ye);return Se instanceof na||(Se=new na("mrow",[Se])),Se.setAttribute("href",se.href),Se}}),tn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=Gr(ye[0],"url").url;if(!Se.settings.isTrusted({command:"\\url",url:Ue}))return Se.formatUnsupportedCmd("\\url");for(var ht=[],Nt=0;Nt<Ue.length;Nt++){var br=Ue[Nt];br==="~"&&(br="\\textasciitilde"),ht.push({type:"textord",mode:"text",text:br})}var Or={type:"text",mode:Se.mode,font:"\\texttt",body:ht};return{type:"href",mode:Se.mode,href:Ue,body:qn(Or)}}}),tn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(se,ye){var Se=se.parser;return{type:"htmlmathml",mode:Se.mode,html:qn(ye[0]),mathml:qn(ye[1])}},htmlBuilder:function(se,ye){var Se=dn(se.html,ye,!1);return ar.makeFragment(Se)},mathmlBuilder:function(se,ye){return ea(se.mathml,ye)}});var Qa=function(se){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(se))return{number:+se,unit:"bp"};var ye=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(se);if(!ye)throw new f("Invalid size: '"+se+"' in \\includegraphics");var Se={number:+(ye[1]+ye[2]),unit:ye[3]};if(!pr(Se))throw new f("Invalid unit: '"+Se.unit+"' in \\includegraphics.");return Se};tn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(se,ye,Se){var Ue=se.parser,ht={number:0,unit:"em"},Nt={number:.9,unit:"em"},br={number:0,unit:"em"},Or="";if(Se[0])for(var Zr=Gr(Se[0],"raw").string,Tn=Zr.split(","),Hn=0;Hn<Tn.length;Hn++){var si=Tn[Hn].split("=");if(si.length===2){var xi=si[1].trim();switch(si[0].trim()){case"alt":Or=xi;break;case"width":ht=Qa(xi);break;case"height":Nt=Qa(xi);break;case"totalheight":br=Qa(xi);break;default:throw new f("Invalid key: '"+si[0]+"' in \\includegraphics.")}}}var Ri=Gr(ye[0],"url").url;return Or===""&&(Or=Ri,Or=Or.replace(/^.*[\\/]/,""),Or=Or.substring(0,Or.lastIndexOf("."))),Ue.settings.isTrusted({command:"\\includegraphics",url:Ri})?{type:"includegraphics",mode:Ue.mode,alt:Or,width:ht,height:Nt,totalheight:br,src:Ri}:Ue.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(se,ye){var Se=sr(se.height,ye),Ue=0;se.totalheight.number>0&&(Ue=sr(se.totalheight,ye)-Se,Ue=Number(Ue.toFixed(2)));var ht=0;se.width.number>0&&(ht=sr(se.width,ye));var Nt={height:Se+Ue+"em"};ht>0&&(Nt.width=ht+"em"),Ue>0&&(Nt.verticalAlign=-Ue+"em");var br=new Ne(se.src,se.alt,Nt);return br.height=Se,br.depth=Ue,br},mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mglyph",[]);Se.setAttribute("alt",se.alt);var Ue=sr(se.height,ye),ht=0;if(se.totalheight.number>0&&(ht=sr(se.totalheight,ye)-Ue,ht=ht.toFixed(2),Se.setAttribute("valign","-"+ht+"em")),Se.setAttribute("height",Ue+ht+"em"),se.width.number>0){var Nt=sr(se.width,ye);Se.setAttribute("width",Nt+"em")}return Se.setAttribute("src",se.src),Se}}),tn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=Gr(ye[0],"size");if(Se.settings.strict){var Nt=Ue[1]==="m",br=ht.value.unit==="mu";Nt?(br||Se.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ue+" supports only mu units, "+("not "+ht.value.unit+" units")),Se.mode!=="math"&&Se.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ue+" works only in math mode")):br&&Se.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ue+" doesn't support mu units")}return{type:"kern",mode:Se.mode,dimension:ht.value}},htmlBuilder:function(se,ye){return ar.makeGlue(se.dimension,ye)},mathmlBuilder:function(se,ye){var Se=sr(se.dimension,ye);return new pi.SpaceNode(Se)}}),tn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[0];return{type:"lap",mode:Se.mode,alignment:Ue.slice(5),body:ht}},htmlBuilder:function(se,ye){var Se;se.alignment==="clap"?(Se=ar.makeSpan([],[hi(se.body,ye)]),Se=ar.makeSpan(["inner"],[Se],ye)):Se=ar.makeSpan(["inner"],[hi(se.body,ye)]);var Ue=ar.makeSpan(["fix"],[]),ht=ar.makeSpan([se.alignment],[Se,Ue],ye),Nt=ar.makeSpan(["strut"]);return Nt.style.height=ht.height+ht.depth+"em",Nt.style.verticalAlign=-ht.depth+"em",ht.children.unshift(Nt),ht=ar.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ht}]},ye),ar.makeSpan(["mord"],[ht],ye)},mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mpadded",[Vt(se.body,ye)]);if(se.alignment!=="rlap"){var Ue=se.alignment==="llap"?"-1":"-0.5";Se.setAttribute("lspace",Ue+"width")}return Se.setAttribute("width","0px"),Se}}),tn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(se,ye){var Se=se.funcName,Ue=se.parser,ht=Ue.mode;Ue.switchMode("math");var Nt=Se==="\\("?"\\)":"$",br=Ue.parseExpression(!1,Nt);return Ue.expect(Nt),Ue.switchMode(ht),{type:"styling",mode:Ue.mode,style:"text",body:br}}}),tn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(se,ye){throw new f("Mismatched "+se.funcName)}});var Ra=function(se,ye){switch(ye.style.size){case U.DISPLAY.size:return se.display;case U.TEXT.size:return se.text;case U.SCRIPT.size:return se.script;case U.SCRIPTSCRIPT.size:return se.scriptscript;default:return se.text}};tn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(se,ye){var Se=se.parser;return{type:"mathchoice",mode:Se.mode,display:qn(ye[0]),text:qn(ye[1]),script:qn(ye[2]),scriptscript:qn(ye[3])}},htmlBuilder:function(se,ye){var Se=Ra(se,ye),Ue=dn(Se,ye,!1);return ar.makeFragment(Ue)},mathmlBuilder:function(se,ye){var Se=Ra(se,ye);return ea(Se,ye)}});var _a=function(se,ye,Se,Ue,ht,Nt,br){se=ar.makeSpan([],[se]);var Or,Zr;if(ye){var Tn=hi(ye,Ue.havingStyle(ht.sup()),Ue);Zr={elem:Tn,kern:Math.max(Ue.fontMetrics().bigOpSpacing1,Ue.fontMetrics().bigOpSpacing3-Tn.depth)}}if(Se){var Hn=hi(Se,Ue.havingStyle(ht.sub()),Ue);Or={elem:Hn,kern:Math.max(Ue.fontMetrics().bigOpSpacing2,Ue.fontMetrics().bigOpSpacing4-Hn.height)}}var si;if(Zr&&Or){var xi=Ue.fontMetrics().bigOpSpacing5+Or.elem.height+Or.elem.depth+Or.kern+se.depth+br;si=ar.makeVList({positionType:"bottom",positionData:xi,children:[{type:"kern",size:Ue.fontMetrics().bigOpSpacing5},{type:"elem",elem:Or.elem,marginLeft:-Nt+"em"},{type:"kern",size:Or.kern},{type:"elem",elem:se},{type:"kern",size:Zr.kern},{type:"elem",elem:Zr.elem,marginLeft:Nt+"em"},{type:"kern",size:Ue.fontMetrics().bigOpSpacing5}]},Ue)}else if(Or){var Ri=se.height-br;si=ar.makeVList({positionType:"top",positionData:Ri,children:[{type:"kern",size:Ue.fontMetrics().bigOpSpacing5},{type:"elem",elem:Or.elem,marginLeft:-Nt+"em"},{type:"kern",size:Or.kern},{type:"elem",elem:se}]},Ue)}else if(Zr){var sa=se.depth+br;si=ar.makeVList({positionType:"bottom",positionData:sa,children:[{type:"elem",elem:se},{type:"kern",size:Zr.kern},{type:"elem",elem:Zr.elem,marginLeft:Nt+"em"},{type:"kern",size:Ue.fontMetrics().bigOpSpacing5}]},Ue)}else return se;return ar.makeSpan(["mop","op-limits"],[si],Ue)},yo=["\\smallint"],ao=function(se,ye){var Se,Ue,ht=!1,Nt,br=Br(se,"supsub");br?(Se=br.sup,Ue=br.sub,Nt=Gr(br.base,"op"),ht=!0):Nt=Gr(se,"op");var Or=ye.style,Zr=!1;Or.size===U.DISPLAY.size&&Nt.symbol&&!h.contains(yo,Nt.name)&&(Zr=!0);var Tn;if(Nt.symbol){var Hn=Zr?"Size2-Regular":"Size1-Regular",si="";if((Nt.name==="\\oiint"||Nt.name==="\\oiiint")&&(si=Nt.name.substr(1),Nt.name=si==="oiint"?"\\iint":"\\iiint"),Tn=ar.makeSymbol(Nt.name,Hn,"math",ye,["mop","op-symbol",Zr?"large-op":"small-op"]),si.length>0){var xi=Tn.italic,Ri=ar.staticSvg(si+"Size"+(Zr?"2":"1"),ye);Tn=ar.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Tn,shift:0},{type:"elem",elem:Ri,shift:Zr?.08:0}]},ye),Nt.name="\\"+si,Tn.classes.unshift("mop"),Tn.italic=xi}}else if(Nt.body){var sa=dn(Nt.body,ye,!0);sa.length===1&&sa[0]instanceof De?(Tn=sa[0],Tn.classes[0]="mop"):Tn=ar.makeSpan(["mop"],ar.tryCombineChars(sa),ye)}else{for(var ya=[],Ja=1;Ja<Nt.name.length;Ja++)ya.push(ar.mathsym(Nt.name[Ja],Nt.mode,ye));Tn=ar.makeSpan(["mop"],ya,ye)}var $a=0,to=0;return(Tn instanceof De||Nt.name==="\\oiint"||Nt.name==="\\oiiint")&&!Nt.suppressBaseShift&&($a=(Tn.height-Tn.depth)/2-ye.fontMetrics().axisHeight,to=Tn.italic),ht?_a(Tn,Se,Ue,ye,Or,to,$a):($a&&(Tn.style.position="relative",Tn.style.top=$a+"em"),Tn)},bo=function(se,ye){var Se;if(se.symbol)Se=new na("mo",[ln(se.name,se.mode)]),h.contains(yo,se.name)&&Se.setAttribute("largeop","false");else if(se.body)Se=new na("mo",Fi(se.body,ye));else{Se=new na("mi",[new $i(se.name.slice(1))]);var Ue=new na("mo",[ln("\u2061","text")]);se.parentIsSupSub?Se=new na("mo",[Se,Ue]):Se=Wi([Se,Ue])}return Se},co={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};tn({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,ye){var Se=se.parser,Ue=se.funcName,ht=Ue;return ht.length===1&&(ht=co[ht]),{type:"op",mode:Se.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:ht}},htmlBuilder:ao,mathmlBuilder:bo}),tn({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(se,ye){var Se=se.parser,Ue=ye[0];return{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:qn(Ue)}},htmlBuilder:ao,mathmlBuilder:bo});var uo={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};tn({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 ye=se.parser,Se=se.funcName;return{type:"op",mode:ye.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:Se}},htmlBuilder:ao,mathmlBuilder:bo}),tn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(se){var ye=se.parser,Se=se.funcName;return{type:"op",mode:ye.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:Se}},htmlBuilder:ao,mathmlBuilder:bo}),tn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(se){var ye=se.parser,Se=se.funcName,Ue=Se;return Ue.length===1&&(Ue=uo[Ue]),{type:"op",mode:ye.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Ue}},htmlBuilder:ao,mathmlBuilder:bo});var Ya=function(se,ye){var Se,Ue,ht=!1,Nt,br=Br(se,"supsub");br?(Se=br.sup,Ue=br.sub,Nt=Gr(br.base,"operatorname"),ht=!0):Nt=Gr(se,"operatorname");var Or;if(Nt.body.length>0){for(var Zr=Nt.body.map(function(xi){var Ri=xi.text;return typeof Ri=="string"?{type:"textord",mode:xi.mode,text:Ri}:xi}),Tn=dn(Zr,ye.withFont("mathrm"),!0),Hn=0;Hn<Tn.length;Hn++){var si=Tn[Hn];si instanceof De&&(si.text=si.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Or=ar.makeSpan(["mop"],Tn,ye)}else Or=ar.makeSpan(["mop"],[],ye);return ht?_a(Or,Se,Ue,ye,ye.style,0,0):Or},eo=function(se,ye){for(var Se=Fi(se.body,ye.withFont("mathrm")),Ue=!0,ht=0;ht<Se.length;ht++){var Nt=Se[ht];if(!(Nt instanceof pi.SpaceNode))if(Nt instanceof pi.MathNode)switch(Nt.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var br=Nt.children[0];Nt.children.length===1&&br instanceof pi.TextNode?br.text=br.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Ue=!1;break}default:Ue=!1}else Ue=!1}if(Ue){var Or=Se.map(function(Hn){return Hn.toText()}).join("");Se=[new pi.TextNode(Or)]}var Zr=new pi.MathNode("mi",Se);Zr.setAttribute("mathvariant","normal");var Tn=new pi.MathNode("mo",[ln("\u2061","text")]);return se.parentIsSupSub?new pi.MathNode("mo",[Zr,Tn]):pi.newDocumentFragment([Zr,Tn])};tn({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[0];return{type:"operatorname",mode:Se.mode,body:qn(ht),alwaysHandleSupSub:Ue==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ya,mathmlBuilder:eo}),ui({type:"ordgroup",htmlBuilder:function(se,ye){return se.semisimple?ar.makeFragment(dn(se.body,ye,!1)):ar.makeSpan(["mord"],dn(se.body,ye,!0),ye)},mathmlBuilder:function(se,ye){return ea(se.body,ye,!0)}}),tn({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(se,ye){var Se=se.parser,Ue=ye[0];return{type:"overline",mode:Se.mode,body:Ue}},htmlBuilder:function(se,ye){var Se=hi(se.body,ye.havingCrampedStyle()),Ue=ar.makeLineSpan("overline-line",ye),ht=ye.fontMetrics().defaultRuleThickness,Nt=ar.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se},{type:"kern",size:3*ht},{type:"elem",elem:Ue},{type:"kern",size:ht}]},ye);return ar.makeSpan(["mord","overline"],[Nt],ye)},mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mo",[new pi.TextNode("\u203E")]);Se.setAttribute("stretchy","true");var Ue=new pi.MathNode("mover",[Vt(se.body,ye),Se]);return Ue.setAttribute("accent","true"),Ue}}),tn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=ye[0];return{type:"phantom",mode:Se.mode,body:qn(Ue)}},htmlBuilder:function(se,ye){var Se=dn(se.body,ye.withPhantom(),!1);return ar.makeFragment(Se)},mathmlBuilder:function(se,ye){var Se=Fi(se.body,ye);return new pi.MathNode("mphantom",Se)}}),tn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=ye[0];return{type:"hphantom",mode:Se.mode,body:Ue}},htmlBuilder:function(se,ye){var Se=ar.makeSpan([],[hi(se.body,ye.withPhantom())]);if(Se.height=0,Se.depth=0,Se.children)for(var Ue=0;Ue<Se.children.length;Ue++)Se.children[Ue].height=0,Se.children[Ue].depth=0;return Se=ar.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se}]},ye),ar.makeSpan(["mord"],[Se],ye)},mathmlBuilder:function(se,ye){var Se=Fi(qn(se.body),ye),Ue=new pi.MathNode("mphantom",Se),ht=new pi.MathNode("mpadded",[Ue]);return ht.setAttribute("height","0px"),ht.setAttribute("depth","0px"),ht}}),tn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=ye[0];return{type:"vphantom",mode:Se.mode,body:Ue}},htmlBuilder:function(se,ye){var Se=ar.makeSpan(["inner"],[hi(se.body,ye.withPhantom())]),Ue=ar.makeSpan(["fix"],[]);return ar.makeSpan(["mord","rlap"],[Se,Ue],ye)},mathmlBuilder:function(se,ye){var Se=Fi(qn(se.body),ye),Ue=new pi.MathNode("mphantom",Se),ht=new pi.MathNode("mpadded",[Ue]);return ht.setAttribute("width","0px"),ht}}),tn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=Gr(ye[0],"size").value,ht=ye[1];return{type:"raisebox",mode:Se.mode,dy:Ue,body:ht}},htmlBuilder:function(se,ye){var Se=hi(se.body,ye),Ue=sr(se.dy,ye);return ar.makeVList({positionType:"shift",positionData:-Ue,children:[{type:"elem",elem:Se}]},ye)},mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mpadded",[Vt(se.body,ye)]),Ue=se.dy.number+se.dy.unit;return Se.setAttribute("voffset",Ue),Se}}),tn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(se,ye,Se){var Ue=se.parser,ht=Se[0],Nt=Gr(ye[0],"size"),br=Gr(ye[1],"size");return{type:"rule",mode:Ue.mode,shift:ht&&Gr(ht,"size").value,width:Nt.value,height:br.value}},htmlBuilder:function(se,ye){var Se=ar.makeSpan(["mord","rule"],[],ye),Ue=sr(se.width,ye),ht=sr(se.height,ye),Nt=se.shift?sr(se.shift,ye):0;return Se.style.borderRightWidth=Ue+"em",Se.style.borderTopWidth=ht+"em",Se.style.bottom=Nt+"em",Se.width=Ue,Se.height=ht+Nt,Se.depth=-Nt,Se.maxFontSize=ht*1.125*ye.sizeMultiplier,Se},mathmlBuilder:function(se,ye){var Se=sr(se.width,ye),Ue=sr(se.height,ye),ht=se.shift?sr(se.shift,ye):0,Nt=ye.color&&ye.getColor()||"black",br=new pi.MathNode("mspace");br.setAttribute("mathbackground",Nt),br.setAttribute("width",Se+"em"),br.setAttribute("height",Ue+"em");var Or=new pi.MathNode("mpadded",[br]);return ht>=0?Or.setAttribute("height","+"+ht+"em"):(Or.setAttribute("height",ht+"em"),Or.setAttribute("depth","+"+-ht+"em")),Or.setAttribute("voffset",ht+"em"),Or}});function wa(vt,se,ye){for(var Se=dn(vt,se,!1),Ue=se.sizeMultiplier/ye.sizeMultiplier,ht=0;ht<Se.length;ht++){var Nt=Se[ht].classes.indexOf("sizing");Nt<0?Array.prototype.push.apply(Se[ht].classes,se.sizingClasses(ye)):Se[ht].classes[Nt+1]==="reset-size"+se.size&&(Se[ht].classes[Nt+1]="reset-size"+ye.size),Se[ht].height*=Ue,Se[ht].depth*=Ue}return ar.makeFragment(Se)}var ro=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],fo=function(se,ye){var Se=ye.havingSize(se.size);return wa(se.body,Se,ye)};tn({type:"sizing",names:ro,props:{numArgs:0,allowedInText:!0},handler:function(se,ye){var Se=se.breakOnTokenText,Ue=se.funcName,ht=se.parser,Nt=ht.parseExpression(!1,Se);return{type:"sizing",mode:ht.mode,size:ro.indexOf(Ue)+1,body:Nt}},htmlBuilder:fo,mathmlBuilder:function(se,ye){var Se=ye.havingSize(se.size),Ue=Fi(se.body,Se),ht=new pi.MathNode("mstyle",Ue);return ht.setAttribute("mathsize",Se.sizeMultiplier+"em"),ht}}),tn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(se,ye,Se){var Ue=se.parser,ht=!1,Nt=!1,br=Se[0]&&Gr(Se[0],"ordgroup");if(br)for(var Or="",Zr=0;Zr<br.body.length;++Zr){var Tn=br.body[Zr];if(Or=Tn.text,Or==="t")ht=!0;else if(Or==="b")Nt=!0;else{ht=!1,Nt=!1;break}}else ht=!0,Nt=!0;var Hn=ye[0];return{type:"smash",mode:Ue.mode,body:Hn,smashHeight:ht,smashDepth:Nt}},htmlBuilder:function(se,ye){var Se=ar.makeSpan([],[hi(se.body,ye)]);if(!se.smashHeight&&!se.smashDepth)return Se;if(se.smashHeight&&(Se.height=0,Se.children))for(var Ue=0;Ue<Se.children.length;Ue++)Se.children[Ue].height=0;if(se.smashDepth&&(Se.depth=0,Se.children))for(var ht=0;ht<Se.children.length;ht++)Se.children[ht].depth=0;var Nt=ar.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se}]},ye);return ar.makeSpan(["mord"],[Nt],ye)},mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mpadded",[Vt(se.body,ye)]);return se.smashHeight&&Se.setAttribute("height","0px"),se.smashDepth&&Se.setAttribute("depth","0px"),Se}}),tn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(se,ye,Se){var Ue=se.parser,ht=Se[0],Nt=ye[0];return{type:"sqrt",mode:Ue.mode,body:Nt,index:ht}},htmlBuilder:function(se,ye){var Se=hi(se.body,ye.havingCrampedStyle());Se.height===0&&(Se.height=ye.fontMetrics().xHeight),Se=ar.wrapFragment(Se,ye);var Ue=ye.fontMetrics(),ht=Ue.defaultRuleThickness,Nt=ht;ye.style.id<U.TEXT.id&&(Nt=ye.fontMetrics().xHeight);var br=ht+Nt/4,Or=Se.height+Se.depth+br+ht,Zr=Xn.sqrtImage(Or,ye),Tn=Zr.span,Hn=Zr.ruleWidth,si=Zr.advanceWidth,xi=Tn.height-Hn;xi>Se.height+Se.depth+br&&(br=(br+xi-Se.height-Se.depth)/2);var Ri=Tn.height-Se.height-br-Hn;Se.style.paddingLeft=si+"em";var sa=ar.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se,wrapperClasses:["svg-align"]},{type:"kern",size:-(Se.height+Ri)},{type:"elem",elem:Tn},{type:"kern",size:Hn}]},ye);if(se.index){var ya=ye.havingStyle(U.SCRIPTSCRIPT),Ja=hi(se.index,ya,ye),$a=.6*(sa.height-sa.depth),to=ar.makeVList({positionType:"shift",positionData:-$a,children:[{type:"elem",elem:Ja}]},ye),_o=ar.makeSpan(["root"],[to]);return ar.makeSpan(["mord","sqrt"],[_o,sa],ye)}else return ar.makeSpan(["mord","sqrt"],[sa],ye)},mathmlBuilder:function(se,ye){var Se=se.body,Ue=se.index;return Ue?new pi.MathNode("mroot",[Vt(Se,ye),Vt(Ue,ye)]):new pi.MathNode("msqrt",[Vt(Se,ye)])}});var Bi={display:U.DISPLAY,text:U.TEXT,script:U.SCRIPT,scriptscript:U.SCRIPTSCRIPT};tn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(se,ye){var Se=se.breakOnTokenText,Ue=se.funcName,ht=se.parser,Nt=ht.parseExpression(!0,Se),br=Ue.slice(1,Ue.length-5);return{type:"styling",mode:ht.mode,style:br,body:Nt}},htmlBuilder:function(se,ye){var Se=Bi[se.style],Ue=ye.havingStyle(Se).withFont("");return wa(se.body,Ue,ye)},mathmlBuilder:function(se,ye){var Se=Bi[se.style],Ue=ye.havingStyle(Se),ht=Fi(se.body,Ue),Nt=new pi.MathNode("mstyle",ht),br={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Or=br[se.style];return Nt.setAttribute("scriptlevel",Or[0]),Nt.setAttribute("displaystyle",Or[1]),Nt}});var Ma=function(se,ye){var Se=se.base;if(Se)if(Se.type==="op"){var Ue=Se.limits&&(ye.style.size===U.DISPLAY.size||Se.alwaysHandleSupSub);return Ue?ao:null}else if(Se.type==="operatorname"){var ht=Se.alwaysHandleSupSub&&(ye.style.size===U.DISPLAY.size||Se.limits);return ht?Ya:null}else{if(Se.type==="accent")return h.isCharacterBox(Se.base)?Rn:null;if(Se.type==="horizBrace"){var Nt=!se.sub;return Nt===Se.isOver?Xa:null}else return null}else return null};ui({type:"supsub",htmlBuilder:function(se,ye){var Se=Ma(se,ye);if(Se)return Se(se,ye);var Ue=se.base,ht=se.sup,Nt=se.sub,br=hi(Ue,ye),Or,Zr,Tn=ye.fontMetrics(),Hn=0,si=0,xi=Ue&&h.isCharacterBox(Ue);if(ht){var Ri=ye.havingStyle(ye.style.sup());Or=hi(ht,Ri,ye),xi||(Hn=br.height-Ri.fontMetrics().supDrop*Ri.sizeMultiplier/ye.sizeMultiplier)}if(Nt){var sa=ye.havingStyle(ye.style.sub());Zr=hi(Nt,sa,ye),xi||(si=br.depth+sa.fontMetrics().subDrop*sa.sizeMultiplier/ye.sizeMultiplier)}var ya;ye.style===U.DISPLAY?ya=Tn.sup1:ye.style.cramped?ya=Tn.sup3:ya=Tn.sup2;var Ja=ye.sizeMultiplier,$a=.5/Tn.ptPerEm/Ja+"em",to=null;if(Zr){var _o=se.base&&se.base.type==="op"&&se.base.name&&(se.base.name==="\\oiint"||se.base.name==="\\oiiint");(br instanceof De||_o)&&(to=-br.italic+"em")}var To;if(Or&&Zr){Hn=Math.max(Hn,ya,Or.depth+.25*Tn.xHeight),si=Math.max(si,Tn.sub2);var Ro=Tn.defaultRuleThickness,go=4*Ro;if(Hn-Or.depth-(Zr.height-si)<go){si=go-(Hn-Or.depth)+Zr.height;var So=.8*Tn.xHeight-(Hn-Or.depth);So>0&&(Hn+=So,si-=So)}var is=[{type:"elem",elem:Zr,shift:si,marginRight:$a,marginLeft:to},{type:"elem",elem:Or,shift:-Hn,marginRight:$a}];To=ar.makeVList({positionType:"individualShift",children:is},ye)}else if(Zr){si=Math.max(si,Tn.sub1,Zr.height-.8*Tn.xHeight);var ts=[{type:"elem",elem:Zr,marginLeft:to,marginRight:$a}];To=ar.makeVList({positionType:"shift",positionData:si,children:ts},ye)}else if(Or)Hn=Math.max(Hn,ya,Or.depth+.25*Tn.xHeight),To=ar.makeVList({positionType:"shift",positionData:-Hn,children:[{type:"elem",elem:Or,marginRight:$a}]},ye);else throw new Error("supsub must have either sup or sub.");var Co=Gn(br,"right")||"mord";return ar.makeSpan([Co],[br,ar.makeSpan(["msupsub"],[To])],ye)},mathmlBuilder:function(se,ye){var Se=!1,Ue,ht,Nt=Br(se.base,"horizBrace");Nt&&(ht=!!se.sup,ht===Nt.isOver&&(Se=!0,Ue=Nt.isOver)),se.base&&(se.base.type==="op"||se.base.type==="operatorname")&&(se.base.parentIsSupSub=!0);var br=[Vt(se.base,ye)];se.sub&&br.push(Vt(se.sub,ye)),se.sup&&br.push(Vt(se.sup,ye));var Or;if(Se)Or=Ue?"mover":"munder";else if(se.sub)if(se.sup){var Hn=se.base;Hn&&Hn.type==="op"&&Hn.limits&&ye.style===U.DISPLAY||Hn&&Hn.type==="operatorname"&&Hn.alwaysHandleSupSub&&(ye.style===U.DISPLAY||Hn.limits)?Or="munderover":Or="msubsup"}else{var Tn=se.base;Tn&&Tn.type==="op"&&Tn.limits&&(ye.style===U.DISPLAY||Tn.alwaysHandleSupSub)||Tn&&Tn.type==="operatorname"&&Tn.alwaysHandleSupSub&&(Tn.limits||ye.style===U.DISPLAY)?Or="munder":Or="msub"}else{var Zr=se.base;Zr&&Zr.type==="op"&&Zr.limits&&(ye.style===U.DISPLAY||Zr.alwaysHandleSupSub)||Zr&&Zr.type==="operatorname"&&Zr.alwaysHandleSupSub&&(Zr.limits||ye.style===U.DISPLAY)?Or="mover":Or="msup"}var si=new pi.MathNode(Or,br);return si}}),ui({type:"atom",htmlBuilder:function(se,ye){return ar.mathsym(se.text,se.mode,ye,["m"+se.family])},mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mo",[ln(se.text,se.mode)]);if(se.family==="bin"){var Ue=Ji(se,ye);Ue==="bold-italic"&&Se.setAttribute("mathvariant",Ue)}else se.family==="punct"?Se.setAttribute("separator","true"):(se.family==="open"||se.family==="close")&&Se.setAttribute("stretchy","false");return Se}});var Do={mi:"italic",mn:"normal",mtext:"normal"};ui({type:"mathord",htmlBuilder:function(se,ye){return ar.makeOrd(se,ye,"mathord")},mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mi",[ln(se.text,se.mode,ye)]),Ue=Ji(se,ye)||"italic";return Ue!==Do[Se.type]&&Se.setAttribute("mathvariant",Ue),Se}}),ui({type:"textord",htmlBuilder:function(se,ye){return ar.makeOrd(se,ye,"textord")},mathmlBuilder:function(se,ye){var Se=ln(se.text,se.mode,ye),Ue=Ji(se,ye)||"normal",ht;return se.mode==="text"?ht=new pi.MathNode("mtext",[Se]):/[0-9]/.test(se.text)?ht=new pi.MathNode("mn",[Se]):se.text==="\\prime"?ht=new pi.MathNode("mo",[Se]):ht=new pi.MathNode("mi",[Se]),Ue!==Do[ht.type]&&ht.setAttribute("mathvariant",Ue),ht}});var jo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Vo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ui({type:"spacing",htmlBuilder:function(se,ye){if(Vo.hasOwnProperty(se.text)){var Se=Vo[se.text].className||"";if(se.mode==="text"){var Ue=ar.makeOrd(se,ye,"textord");return Ue.classes.push(Se),Ue}else return ar.makeSpan(["mspace",Se],[ar.mathsym(se.text,se.mode,ye)],ye)}else{if(jo.hasOwnProperty(se.text))return ar.makeSpan(["mspace",jo[se.text]],[],ye);throw new f('Unknown type of space "'+se.text+'"')}},mathmlBuilder:function(se,ye){var Se;if(Vo.hasOwnProperty(se.text))Se=new pi.MathNode("mtext",[new pi.TextNode("\xA0")]);else{if(jo.hasOwnProperty(se.text))return new pi.MathNode("mspace");throw new f('Unknown type of space "'+se.text+'"')}return Se}});var Go=function(){var se=new pi.MathNode("mtd",[]);return se.setAttribute("width","50%"),se};ui({type:"tag",mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mtable",[new pi.MathNode("mtr",[Go(),new pi.MathNode("mtd",[ea(se.body,ye)]),Go(),new pi.MathNode("mtd",[ea(se.tag,ye)])])]);return Se.setAttribute("width","100%"),Se}});var wo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ia={"\\textbf":"textbf","\\textmd":"textmd"},Po={"\\textit":"textit","\\textup":"textup"},ds=function(se,ye){var Se=se.font;return Se?wo[Se]?ye.withTextFontFamily(wo[Se]):Ia[Se]?ye.withTextFontWeight(Ia[Se]):ye.withTextFontShape(Po[Se]):ye};tn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(se,ye){var Se=se.parser,Ue=se.funcName,ht=ye[0];return{type:"text",mode:Se.mode,body:qn(ht),font:Ue}},htmlBuilder:function(se,ye){var Se=ds(se,ye),Ue=dn(se.body,Se,!0);return ar.makeSpan(["mord","text"],ar.tryCombineChars(Ue),Se)},mathmlBuilder:function(se,ye){var Se=ds(se,ye);return ea(se.body,Se)}}),tn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(se,ye){var Se=se.parser;return{type:"underline",mode:Se.mode,body:ye[0]}},htmlBuilder:function(se,ye){var Se=hi(se.body,ye),Ue=ar.makeLineSpan("underline-line",ye),ht=ye.fontMetrics().defaultRuleThickness,Nt=ar.makeVList({positionType:"top",positionData:Se.height,children:[{type:"kern",size:ht},{type:"elem",elem:Ue},{type:"kern",size:3*ht},{type:"elem",elem:Se}]},ye);return ar.makeSpan(["mord","underline"],[Nt],ye)},mathmlBuilder:function(se,ye){var Se=new pi.MathNode("mo",[new pi.TextNode("\u203E")]);Se.setAttribute("stretchy","true");var Ue=new pi.MathNode("munder",[Vt(se.body,ye),Se]);return Ue.setAttribute("accentunder","true"),Ue}}),tn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(se,ye,Se){throw new f("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(se,ye){for(var Se=ho(se),Ue=[],ht=ye.havingStyle(ye.style.text()),Nt=0;Nt<Se.length;Nt++){var br=Se[Nt];br==="~"&&(br="\\textasciitilde"),Ue.push(ar.makeSymbol(br,"Typewriter-Regular",se.mode,ht,["mord","texttt"]))}return ar.makeSpan(["mord","text"].concat(ht.sizingClasses(ye)),ar.tryCombineChars(Ue),ht)},mathmlBuilder:function(se,ye){var Se=new pi.TextNode(ho(se)),Ue=new pi.MathNode("mtext",[Se]);return Ue.setAttribute("mathvariant","monospace"),Ue}});var ho=function(se){return se.body.replace(/ /g,se.star?"\u2423":"\xA0")},Oo=gn,Ka=Oo,Xo=`[ \r
|
|
|
]`,nl="\\\\[a-zA-Z@]+",Cs="\\\\[^\uD800-\uDFFF]",_s=""+nl+Xo+"*",xs=new RegExp("^("+nl+")"+Xo+"*$"),ps="[\u0300-\u036F]",Os=new RegExp(ps+"+$"),Ho="("+Xo+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(ps+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ps+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+_s)+("|"+Cs+")"),mo=function(){function vt(ye,Se){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=ye,this.settings=Se,this.tokenRegex=new RegExp(Ho,"g"),this.catcodes={"%":14}}var se=vt.prototype;return se.setCatcode=function(Se,Ue){this.catcodes[Se]=Ue},se.lex=function(){var Se=this.input,Ue=this.tokenRegex.lastIndex;if(Ue===Se.length)return new o("EOF",new I(this,Ue,Ue));var ht=this.tokenRegex.exec(Se);if(ht===null||ht.index!==Ue)throw new f("Unexpected character: '"+Se[Ue]+"'",new o(Se[Ue],new I(this,Ue,Ue+1)));var Nt=ht[2]||" ";if(this.catcodes[Nt]===14){var br=Se.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return br===-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=br+1,this.lex()}var Or=Nt.match(xs);return Or&&(Nt=Or[1]),new o(Nt,new I(this,Ue,this.tokenRegex.lastIndex))},vt}(),es=function(){function vt(ye,Se){ye===void 0&&(ye={}),Se===void 0&&(Se={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Se,this.builtins=ye,this.undefStack=[]}var se=vt.prototype;return se.beginGroup=function(){this.undefStack.push({})},se.endGroup=function(){if(this.undefStack.length===0)throw new f("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var Se=this.undefStack.pop();for(var Ue in Se)Se.hasOwnProperty(Ue)&&(Se[Ue]===void 0?delete this.current[Ue]:this.current[Ue]=Se[Ue])},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,Ue,ht){if(ht===void 0&&(ht=!1),ht){for(var Nt=0;Nt<this.undefStack.length;Nt++)delete this.undefStack[Nt][Se];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][Se]=Ue)}else{var br=this.undefStack[this.undefStack.length-1];br&&!br.hasOwnProperty(Se)&&(br[Se]=this.current[Se])}this.current[Se]=Ue},vt}(),Ko={},Bo=Ko;function zr(vt,se){Ko[vt]=se}zr("\\@firstoftwo",function(vt){var se=vt.consumeArgs(2);return{tokens:se[0],numArgs:0}}),zr("\\@secondoftwo",function(vt){var se=vt.consumeArgs(2);return{tokens:se[1],numArgs:0}}),zr("\\@ifnextchar",function(vt){var se=vt.consumeArgs(3),ye=vt.future();return se[0].length===1&&se[0][0].text===ye.text?{tokens:se[1],numArgs:0}:{tokens:se[2],numArgs:0}}),zr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),zr("\\TextOrMath",function(vt){var se=vt.consumeArgs(2);return vt.mode==="text"?{tokens:se[0],numArgs:0}:{tokens:se[1],numArgs:0}});var Yo={"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};zr("\\char",function(vt){var se=vt.popToken(),ye,Se="";if(se.text==="'")ye=8,se=vt.popToken();else if(se.text==='"')ye=16,se=vt.popToken();else if(se.text==="`")if(se=vt.popToken(),se.text[0]==="\\")Se=se.text.charCodeAt(1);else{if(se.text==="EOF")throw new f("\\char` missing argument");Se=se.text.charCodeAt(0)}else ye=10;if(ye){if(Se=Yo[se.text],Se==null||Se>=ye)throw new f("Invalid base-"+ye+" digit "+se.text);for(var Ue;(Ue=Yo[vt.future().text])!=null&&Ue<ye;)Se*=ye,Se+=Ue,vt.popToken()}return"\\@char{"+Se+"}"});var il=function(se,ye){var Se=se.consumeArgs(1)[0];if(Se.length!==1)throw new f("\\gdef's first argument must be a macro name");var Ue=Se[0].text,ht=0;for(Se=se.consumeArgs(1)[0];Se.length===1&&Se[0].text==="#";){if(Se=se.consumeArgs(1)[0],Se.length!==1)throw new f('Invalid argument number length "'+Se.length+'"');if(!/^[1-9]$/.test(Se[0].text))throw new f('Invalid argument number "'+Se[0].text+'"');if(ht++,parseInt(Se[0].text)!==ht)throw new f('Argument number "'+Se[0].text+'" out of order');Se=se.consumeArgs(1)[0]}return se.macros.set(Ue,{tokens:Se,numArgs:ht},ye),""};zr("\\gdef",function(vt){return il(vt,!0)}),zr("\\def",function(vt){return il(vt,!1)}),zr("\\global",function(vt){var se=vt.consumeArgs(1)[0];if(se.length!==1)throw new f("Invalid command after \\global");var ye=se[0].text;if(ye==="\\def")return il(vt,!0);throw new f("Invalid command '"+ye+"' after \\global")});var Ks=function(se,ye,Se){var Ue=se.consumeArgs(1)[0];if(Ue.length!==1)throw new f("\\newcommand's first argument must be a macro name");var ht=Ue[0].text,Nt=se.isDefined(ht);if(Nt&&!ye)throw new f("\\newcommand{"+ht+"} attempting to redefine "+(ht+"; use \\renewcommand"));if(!Nt&&!Se)throw new f("\\renewcommand{"+ht+"} when command "+ht+" does not yet exist; use \\newcommand");var br=0;if(Ue=se.consumeArgs(1)[0],Ue.length===1&&Ue[0].text==="["){for(var Or="",Zr=se.expandNextToken();Zr.text!=="]"&&Zr.text!=="EOF";)Or+=Zr.text,Zr=se.expandNextToken();if(!Or.match(/^\s*[0-9]+\s*$/))throw new f("Invalid number of arguments: "+Or);br=parseInt(Or),Ue=se.consumeArgs(1)[0]}return se.macros.set(ht,{tokens:Ue,numArgs:br}),""};zr("\\newcommand",function(vt){return Ks(vt,!1,!0)}),zr("\\renewcommand",function(vt){return Ks(vt,!0,!1)}),zr("\\providecommand",function(vt){return Ks(vt,!0,!0)}),zr("\\bgroup","{"),zr("\\egroup","}"),zr("\\lq","`"),zr("\\rq","'"),zr("\\aa","\\r a"),zr("\\AA","\\r A"),zr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),zr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),zr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),zr("\u212C","\\mathscr{B}"),zr("\u2130","\\mathscr{E}"),zr("\u2131","\\mathscr{F}"),zr("\u210B","\\mathscr{H}"),zr("\u2110","\\mathscr{I}"),zr("\u2112","\\mathscr{L}"),zr("\u2133","\\mathscr{M}"),zr("\u211B","\\mathscr{R}"),zr("\u212D","\\mathfrak{C}"),zr("\u210C","\\mathfrak{H}"),zr("\u2128","\\mathfrak{Z}"),zr("\\Bbbk","\\Bbb{k}"),zr("\xB7","\\cdotp"),zr("\\llap","\\mathllap{\\textrm{#1}}"),zr("\\rlap","\\mathrlap{\\textrm{#1}}"),zr("\\clap","\\mathclap{\\textrm{#1}}"),zr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),zr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),zr("\\ne","\\neq"),zr("\u2260","\\neq"),zr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),zr("\u2209","\\notin"),zr("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),zr("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),zr("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),zr("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),zr("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),zr("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),zr("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),zr("\u27C2","\\perp"),zr("\u203C","\\mathclose{!\\mkern-0.8mu!}"),zr("\u220C","\\notni"),zr("\u231C","\\ulcorner"),zr("\u231D","\\urcorner"),zr("\u231E","\\llcorner"),zr("\u231F","\\lrcorner"),zr("\xA9","\\copyright"),zr("\xAE","\\textregistered"),zr("\uFE0F","\\textregistered"),zr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),zr("\u22EE","\\vdots"),zr("\\varGamma","\\mathit{\\Gamma}"),zr("\\varDelta","\\mathit{\\Delta}"),zr("\\varTheta","\\mathit{\\Theta}"),zr("\\varLambda","\\mathit{\\Lambda}"),zr("\\varXi","\\mathit{\\Xi}"),zr("\\varPi","\\mathit{\\Pi}"),zr("\\varSigma","\\mathit{\\Sigma}"),zr("\\varUpsilon","\\mathit{\\Upsilon}"),zr("\\varPhi","\\mathit{\\Phi}"),zr("\\varPsi","\\mathit{\\Psi}"),zr("\\varOmega","\\mathit{\\Omega}"),zr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),zr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),zr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),zr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),zr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),zr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Ps={",":"\\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"};zr("\\dots",function(vt){var se="\\dotso",ye=vt.expandAfterFuture().text;return ye in Ps?se=Ps[ye]:ye.substr(0,4)==="\\not"?se="\\dotsb":ye in je.math&&(h.contains(["bin","rel"],je.math[ye].group)&&(se="\\dotsb")),se});var no={")":!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};zr("\\dotso",function(vt){var se=vt.future().text;return se in no?"\\ldots\\,":"\\ldots"}),zr("\\dotsc",function(vt){var se=vt.future().text;return se in no&&se!==","?"\\ldots\\,":"\\ldots"}),zr("\\cdots",function(vt){var se=vt.future().text;return se in no?"\\@cdots\\,":"\\@cdots"}),zr("\\dotsb","\\cdots"),zr("\\dotsm","\\cdots"),zr("\\dotsi","\\!\\cdots"),zr("\\dotsx","\\ldots\\,"),zr("\\DOTSI","\\relax"),zr("\\DOTSB","\\relax"),zr("\\DOTSX","\\relax"),zr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),zr("\\,","\\tmspace+{3mu}{.1667em}"),zr("\\thinspace","\\,"),zr("\\>","\\mskip{4mu}"),zr("\\:","\\tmspace+{4mu}{.2222em}"),zr("\\medspace","\\:"),zr("\\;","\\tmspace+{5mu}{.2777em}"),zr("\\thickspace","\\;"),zr("\\!","\\tmspace-{3mu}{.1667em}"),zr("\\negthinspace","\\!"),zr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),zr("\\negthickspace","\\tmspace-{5mu}{.277em}"),zr("\\enspace","\\kern.5em "),zr("\\enskip","\\hskip.5em\\relax"),zr("\\quad","\\hskip1em\\relax"),zr("\\qquad","\\hskip2em\\relax"),zr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),zr("\\tag@paren","\\tag@literal{({#1})}"),zr("\\tag@literal",function(vt){if(vt.macros.get("\\df@tag"))throw new f("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),zr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),zr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),zr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),zr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),zr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),zr("\\\\","\\newline"),zr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var vo=Ve["Main-Regular"]["T".charCodeAt(0)][1]-.7*Ve["Main-Regular"]["A".charCodeAt(0)][1]+"em";zr("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+vo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),zr("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+vo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),zr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),zr("\\@hspace","\\hskip #1\\relax"),zr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),zr("\\ordinarycolon",":"),zr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),zr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),zr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),zr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),zr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),zr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),zr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),zr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),zr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),zr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),zr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),zr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),zr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),zr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),zr("\u2237","\\dblcolon"),zr("\u2239","\\eqcolon"),zr("\u2254","\\coloneqq"),zr("\u2255","\\eqqcolon"),zr("\u2A74","\\Coloneqq"),zr("\\ratio","\\vcentcolon"),zr("\\coloncolon","\\dblcolon"),zr("\\colonequals","\\coloneqq"),zr("\\coloncolonequals","\\Coloneqq"),zr("\\equalscolon","\\eqqcolon"),zr("\\equalscoloncolon","\\Eqqcolon"),zr("\\colonminus","\\coloneq"),zr("\\coloncolonminus","\\Coloneq"),zr("\\minuscolon","\\eqcolon"),zr("\\minuscoloncolon","\\Eqcolon"),zr("\\coloncolonapprox","\\Colonapprox"),zr("\\coloncolonsim","\\Colonsim"),zr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),zr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),zr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),zr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),zr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),zr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),zr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),zr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),zr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),zr("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),zr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),zr("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),zr("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),zr("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),zr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),zr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),zr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),zr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),zr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),zr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),zr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),zr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),zr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),zr("\u27E6","\\llbracket"),zr("\u27E7","\\rrbracket"),zr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),zr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),zr("\u2983","\\lBrace"),zr("\u2984","\\rBrace"),zr("\\darr","\\downarrow"),zr("\\dArr","\\Downarrow"),zr("\\Darr","\\Downarrow"),zr("\\lang","\\langle"),zr("\\rang","\\rangle"),zr("\\uarr","\\uparrow"),zr("\\uArr","\\Uparrow"),zr("\\Uarr","\\Uparrow"),zr("\\N","\\mathbb{N}"),zr("\\R","\\mathbb{R}"),zr("\\Z","\\mathbb{Z}"),zr("\\alef","\\aleph"),zr("\\alefsym","\\aleph"),zr("\\Alpha","\\mathrm{A}"),zr("\\Beta","\\mathrm{B}"),zr("\\bull","\\bullet"),zr("\\Chi","\\mathrm{X}"),zr("\\clubs","\\clubsuit"),zr("\\cnums","\\mathbb{C}"),zr("\\Complex","\\mathbb{C}"),zr("\\Dagger","\\ddagger"),zr("\\diamonds","\\diamondsuit"),zr("\\empty","\\emptyset"),zr("\\Epsilon","\\mathrm{E}"),zr("\\Eta","\\mathrm{H}"),zr("\\exist","\\exists"),zr("\\harr","\\leftrightarrow"),zr("\\hArr","\\Leftrightarrow"),zr("\\Harr","\\Leftrightarrow"),zr("\\hearts","\\heartsuit"),zr("\\image","\\Im"),zr("\\infin","\\infty"),zr("\\Iota","\\mathrm{I}"),zr("\\isin","\\in"),zr("\\Kappa","\\mathrm{K}"),zr("\\larr","\\leftarrow"),zr("\\lArr","\\Leftarrow"),zr("\\Larr","\\Leftarrow"),zr("\\lrarr","\\leftrightarrow"),zr("\\lrArr","\\Leftrightarrow"),zr("\\Lrarr","\\Leftrightarrow"),zr("\\Mu","\\mathrm{M}"),zr("\\natnums","\\mathbb{N}"),zr("\\Nu","\\mathrm{N}"),zr("\\Omicron","\\mathrm{O}"),zr("\\plusmn","\\pm"),zr("\\rarr","\\rightarrow"),zr("\\rArr","\\Rightarrow"),zr("\\Rarr","\\Rightarrow"),zr("\\real","\\Re"),zr("\\reals","\\mathbb{R}"),zr("\\Reals","\\mathbb{R}"),zr("\\Rho","\\mathrm{P}"),zr("\\sdot","\\cdot"),zr("\\sect","\\S"),zr("\\spades","\\spadesuit"),zr("\\sub","\\subset"),zr("\\sube","\\subseteq"),zr("\\supe","\\supseteq"),zr("\\Tau","\\mathrm{T}"),zr("\\thetasym","\\vartheta"),zr("\\weierp","\\wp"),zr("\\Zeta","\\mathrm{Z}"),zr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),zr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),zr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),zr("\\blue","\\textcolor{##6495ed}{#1}"),zr("\\orange","\\textcolor{##ffa500}{#1}"),zr("\\pink","\\textcolor{##ff00af}{#1}"),zr("\\red","\\textcolor{##df0030}{#1}"),zr("\\green","\\textcolor{##28ae7b}{#1}"),zr("\\gray","\\textcolor{gray}{#1}"),zr("\\purple","\\textcolor{##9d38bd}{#1}"),zr("\\blueA","\\textcolor{##ccfaff}{#1}"),zr("\\blueB","\\textcolor{##80f6ff}{#1}"),zr("\\blueC","\\textcolor{##63d9ea}{#1}"),zr("\\blueD","\\textcolor{##11accd}{#1}"),zr("\\blueE","\\textcolor{##0c7f99}{#1}"),zr("\\tealA","\\textcolor{##94fff5}{#1}"),zr("\\tealB","\\textcolor{##26edd5}{#1}"),zr("\\tealC","\\textcolor{##01d1c1}{#1}"),zr("\\tealD","\\textcolor{##01a995}{#1}"),zr("\\tealE","\\textcolor{##208170}{#1}"),zr("\\greenA","\\textcolor{##b6ffb0}{#1}"),zr("\\greenB","\\textcolor{##8af281}{#1}"),zr("\\greenC","\\textcolor{##74cf70}{#1}"),zr("\\greenD","\\textcolor{##1fab54}{#1}"),zr("\\greenE","\\textcolor{##0d923f}{#1}"),zr("\\goldA","\\textcolor{##ffd0a9}{#1}"),zr("\\goldB","\\textcolor{##ffbb71}{#1}"),zr("\\goldC","\\textcolor{##ff9c39}{#1}"),zr("\\goldD","\\textcolor{##e07d10}{#1}"),zr("\\goldE","\\textcolor{##a75a05}{#1}"),zr("\\redA","\\textcolor{##fca9a9}{#1}"),zr("\\redB","\\textcolor{##ff8482}{#1}"),zr("\\redC","\\textcolor{##f9685d}{#1}"),zr("\\redD","\\textcolor{##e84d39}{#1}"),zr("\\redE","\\textcolor{##bc2612}{#1}"),zr("\\maroonA","\\textcolor{##ffbde0}{#1}"),zr("\\maroonB","\\textcolor{##ff92c6}{#1}"),zr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),zr("\\maroonD","\\textcolor{##ca337c}{#1}"),zr("\\maroonE","\\textcolor{##9e034e}{#1}"),zr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),zr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),zr("\\purpleC","\\textcolor{##aa87ff}{#1}"),zr("\\purpleD","\\textcolor{##7854ab}{#1}"),zr("\\purpleE","\\textcolor{##543b78}{#1}"),zr("\\mintA","\\textcolor{##f5f9e8}{#1}"),zr("\\mintB","\\textcolor{##edf2df}{#1}"),zr("\\mintC","\\textcolor{##e0e5cc}{#1}"),zr("\\grayA","\\textcolor{##f6f7f7}{#1}"),zr("\\grayB","\\textcolor{##f0f1f2}{#1}"),zr("\\grayC","\\textcolor{##e3e5e6}{#1}"),zr("\\grayD","\\textcolor{##d6d8da}{#1}"),zr("\\grayE","\\textcolor{##babec2}{#1}"),zr("\\grayF","\\textcolor{##888d93}{#1}"),zr("\\grayG","\\textcolor{##626569}{#1}"),zr("\\grayH","\\textcolor{##3b3e40}{#1}"),zr("\\grayI","\\textcolor{##21242c}{#1}"),zr("\\kaBlue","\\textcolor{##314453}{#1}"),zr("\\kaGreen","\\textcolor{##71B307}{#1}");var Fo={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ns=function(){function vt(ye,Se,Ue){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(ye),this.macros=new es(Bo,Se.macros),this.mode=Ue,this.stack=[]}var se=vt.prototype;return se.feed=function(Se){this.lexer=new mo(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 Ue;(Ue=this.stack).push.apply(Ue,Se)},se.consumeSpaces=function(){for(;;){var Se=this.future();if(Se.text===" ")this.stack.pop();else break}},se.consumeArgs=function(Se){for(var Ue=[],ht=0;ht<Se;++ht){this.consumeSpaces();var Nt=this.popToken();if(Nt.text==="{"){for(var br=[],Or=1;Or!==0;){var Zr=this.popToken();if(br.push(Zr),Zr.text==="{")++Or;else if(Zr.text==="}")--Or;else if(Zr.text==="EOF")throw new f("End of input in macro argument",Nt)}br.pop(),br.reverse(),Ue[ht]=br}else{if(Nt.text==="EOF")throw new f("End of input expecting macro argument");Ue[ht]=[Nt]}}return Ue},se.expandOnce=function(){var Se=this.popToken(),Ue=Se.text,ht=this._getExpansion(Ue);if(ht==null)return this.pushToken(Se),Se;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new f("Too many expansions: infinite loop or need to increase maxExpand setting");var Nt=ht.tokens;if(ht.numArgs){var br=this.consumeArgs(ht.numArgs);Nt=Nt.slice();for(var Or=Nt.length-1;Or>=0;--Or){var Zr=Nt[Or];if(Zr.text==="#"){if(Or===0)throw new f("Incomplete placeholder at end of macro body",Zr);if(Zr=Nt[--Or],Zr.text==="#")Nt.splice(Or+1,1);else if(/^[1-9]$/.test(Zr.text)){var Tn;(Tn=Nt).splice.apply(Tn,[Or,2].concat(br[+Zr.text-1]))}else throw new f("Not a valid argument number",Zr)}}}return this.pushTokens(Nt),Nt},se.expandAfterFuture=function(){return this.expandOnce(),this.future()},se.expandNextToken=function(){for(;;){var Se=this.expandOnce();if(Se instanceof o)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 Ue=[],ht=this.stack.length;for(this.pushToken(new o(Se));this.stack.length>ht;){var Nt=this.expandOnce();Nt instanceof o&&Ue.push(this.stack.pop())}return Ue},se.expandMacroAsText=function(Se){var Ue=this.expandMacro(Se);return Ue&&Ue.map(function(ht){return ht.text}).join("")},se._getExpansion=function(Se){var Ue=this.macros.get(Se);if(Ue==null)return Ue;var ht=typeof Ue=="function"?Ue(this):Ue;if(typeof ht=="string"){var Nt=0;if(ht.indexOf("#")!==-1)for(var br=ht.replace(/##/g,"");br.indexOf("#"+(Nt+1))!==-1;)++Nt;for(var Or=new mo(ht,this.settings),Zr=[],Tn=Or.lex();Tn.text!=="EOF";)Zr.push(Tn),Tn=Or.lex();Zr.reverse();var Hn={tokens:Zr,numArgs:Nt};return Hn}return ht},se.isDefined=function(Se){return this.macros.has(Se)||Ka.hasOwnProperty(Se)||je.math.hasOwnProperty(Se)||je.text.hasOwnProperty(Se)||Fo.hasOwnProperty(Se)},vt}(),ys={"\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"}},ms={\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"},Is=function(){function vt(ye,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(ye,Se,this.mode),this.settings=Se,this.leftrightDepth=0}var se=vt.prototype;return se.expect=function(Se,Ue){if(Ue===void 0&&(Ue=!0),this.fetch().text!==Se)throw new f("Expected '"+Se+"', got '"+this.fetch().text+"'",this.fetch());Ue&&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,Ue){for(var ht=[];;){this.mode==="math"&&this.consumeSpaces();var Nt=this.fetch();if(vt.endOfExpression.indexOf(Nt.text)!==-1)break;if(Ue&&Nt.text===Ue)break;if(Se&&Ka[Nt.text]&&Ka[Nt.text].infix)break;var br=this.parseAtom(Ue);if(!br)break;ht.push(br)}return this.mode==="text"&&this.formLigatures(ht),this.handleInfixNodes(ht)},se.handleInfixNodes=function(Se){for(var Ue=-1,ht,Nt=0;Nt<Se.length;Nt++){var br=Br(Se[Nt],"infix");if(br){if(Ue!==-1)throw new f("only one infix operator per group",br.token);Ue=Nt,ht=br.replaceWith}}if(Ue!==-1&&ht){var Or,Zr,Tn=Se.slice(0,Ue),Hn=Se.slice(Ue+1);Tn.length===1&&Tn[0].type==="ordgroup"?Or=Tn[0]:Or={type:"ordgroup",mode:this.mode,body:Tn},Hn.length===1&&Hn[0].type==="ordgroup"?Zr=Hn[0]:Zr={type:"ordgroup",mode:this.mode,body:Hn};var si;return ht==="\\\\abovefrac"?si=this.callFunction(ht,[Or,Se[Ue],Zr],[]):si=this.callFunction(ht,[Or,Zr],[]),[si]}else return Se},se.handleSupSubscript=function(Se){var Ue=this.fetch(),ht=Ue.text;this.consume();var Nt=this.parseGroup(Se,!1,vt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Nt)throw new f("Expected group after '"+ht+"'",Ue);return Nt},se.formatUnsupportedCmd=function(Se){for(var Ue=[],ht=0;ht<Se.length;ht++)Ue.push({type:"textord",mode:"text",text:Se[ht]});var Nt={type:"text",mode:this.mode,body:Ue},br={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Nt]};return br},se.parseAtom=function(Se){var Ue=this.parseGroup("atom",!1,null,Se);if(this.mode==="text")return Ue;for(var ht,Nt;;){this.consumeSpaces();var br=this.fetch();if(br.text==="\\limits"||br.text==="\\nolimits"){var Or=Br(Ue,"op");if(Or){var Zr=br.text==="\\limits";Or.limits=Zr,Or.alwaysHandleSupSub=!0}else if(Or=Br(Ue,"operatorname"),Or&&Or.alwaysHandleSupSub){var Tn=br.text==="\\limits";Or.limits=Tn}else throw new f("Limit controls must follow a math operator",br);this.consume()}else if(br.text==="^"){if(ht)throw new f("Double superscript",br);ht=this.handleSupSubscript("superscript")}else if(br.text==="_"){if(Nt)throw new f("Double subscript",br);Nt=this.handleSupSubscript("subscript")}else if(br.text==="'"){if(ht)throw new f("Double superscript",br);var Hn={type:"textord",mode:this.mode,text:"\\prime"},si=[Hn];for(this.consume();this.fetch().text==="'";)si.push(Hn),this.consume();this.fetch().text==="^"&&si.push(this.handleSupSubscript("superscript")),ht={type:"ordgroup",mode:this.mode,body:si}}else break}return ht||Nt?{type:"supsub",mode:this.mode,base:Ue,sup:ht,sub:Nt}:Ue},se.parseFunction=function(Se,Ue,ht){var Nt=this.fetch(),br=Nt.text,Or=Ka[br];if(!Or)return null;if(this.consume(),ht!=null&&Or.greediness<=ht)throw new f("Got function '"+br+"' with no arguments"+(Ue?" as "+Ue:""),Nt);if(this.mode==="text"&&!Or.allowedInText)throw new f("Can't use function '"+br+"' in text mode",Nt);if(this.mode==="math"&&Or.allowedInMath===!1)throw new f("Can't use function '"+br+"' in math mode",Nt);var Zr=this.parseArguments(br,Or),Tn=Zr.args,Hn=Zr.optArgs;return this.callFunction(br,Tn,Hn,Nt,Se)},se.callFunction=function(Se,Ue,ht,Nt,br){var Or={funcName:Se,parser:this,token:Nt,breakOnTokenText:br},Zr=Ka[Se];if(Zr&&Zr.handler)return Zr.handler(Or,Ue,ht);throw new f("No function handler for "+Se)},se.parseArguments=function(Se,Ue){var ht=Ue.numArgs+Ue.numOptionalArgs;if(ht===0)return{args:[],optArgs:[]};for(var Nt=Ue.greediness,br=[],Or=[],Zr=0;Zr<ht;Zr++){var Tn=Ue.argTypes&&Ue.argTypes[Zr],Hn=Zr<Ue.numOptionalArgs,si=Zr>0&&!Hn||Zr===0&&!Hn&&this.mode==="math",xi=this.parseGroupOfType("argument to '"+Se+"'",Tn,Hn,Nt,si);if(!xi){if(Hn){Or.push(null);continue}throw new f("Expected group after '"+Se+"'",this.fetch())}(Hn?Or:br).push(xi)}return{args:br,optArgs:Or}},se.parseGroupOfType=function(Se,Ue,ht,Nt,br){switch(Ue){case"color":return br&&this.consumeSpaces(),this.parseColorGroup(ht);case"size":return br&&this.consumeSpaces(),this.parseSizeGroup(ht);case"url":return this.parseUrlGroup(ht,br);case"math":case"text":return this.parseGroup(Se,ht,Nt,void 0,Ue,br);case"hbox":{var Or=this.parseGroup(Se,ht,Nt,void 0,"text",br);if(!Or)return Or;var Zr={type:"styling",mode:Or.mode,body:[Or],style:"text"};return Zr}case"raw":{if(br&&this.consumeSpaces(),ht&&this.fetch().text==="{")return null;var Tn=this.parseStringGroup("raw",ht,!0);if(Tn)return{type:"raw",mode:"text",string:Tn.text};throw new f("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(Se,ht,Nt,void 0,void 0,br);default:throw new f("Unknown group type as "+Se,this.fetch())}},se.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},se.parseStringGroup=function(Se,Ue,ht){var Nt=Ue?"[":"{",br=Ue?"]":"}",Or=this.fetch();if(Or.text!==Nt){if(Ue)return null;if(ht&&Or.text!=="EOF"&&/[^{}[\]]/.test(Or.text))return this.consume(),Or}var Zr=this.mode;this.mode="text",this.expect(Nt);for(var Tn="",Hn=this.fetch(),si=0,xi=Hn,Ri;(Ri=this.fetch()).text!==br||ht&&si>0;){switch(Ri.text){case"EOF":throw new f("Unexpected end of input in "+Se,Hn.range(xi,Tn));case Nt:si++;break;case br:si--;break}xi=Ri,Tn+=xi.text,this.consume()}return this.expect(br),this.mode=Zr,Hn.range(xi,Tn)},se.parseRegexGroup=function(Se,Ue){var ht=this.mode;this.mode="text";for(var Nt=this.fetch(),br=Nt,Or="",Zr;(Zr=this.fetch()).text!=="EOF"&&Se.test(Or+Zr.text);)br=Zr,Or+=br.text,this.consume();if(Or==="")throw new f("Invalid "+Ue+": '"+Nt.text+"'",Nt);return this.mode=ht,Nt.range(br,Or)},se.parseColorGroup=function(Se){var Ue=this.parseStringGroup("color",Se);if(!Ue)return null;var ht=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Ue.text);if(!ht)throw new f("Invalid color: '"+Ue.text+"'",Ue);var Nt=ht[0];return/^[0-9a-f]{6}$/i.test(Nt)&&(Nt="#"+Nt),{type:"color-token",mode:this.mode,color:Nt}},se.parseSizeGroup=function(Se){var Ue,ht=!1;if(!Se&&this.fetch().text!=="{"?Ue=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Ue=this.parseStringGroup("size",Se),!Ue)return null;!Se&&Ue.text.length===0&&(Ue.text="0pt",ht=!0);var Nt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Ue.text);if(!Nt)throw new f("Invalid size: '"+Ue.text+"'",Ue);var br={number:+(Nt[1]+Nt[2]),unit:Nt[3]};if(!pr(br))throw new f("Invalid unit: '"+br.unit+"'",Ue);return{type:"size",mode:this.mode,value:br,isBlank:ht}},se.parseUrlGroup=function(Se,Ue){this.gullet.lexer.setCatcode("%",13);var ht=this.parseStringGroup("url",Se,!0);if(this.gullet.lexer.setCatcode("%",14),!ht)return null;var Nt=ht.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Nt}},se.parseGroup=function(Se,Ue,ht,Nt,br,Or){var Zr=this.mode;br&&this.switchMode(br),Or&&this.consumeSpaces();var Tn=this.fetch(),Hn=Tn.text,si;if(Ue?Hn==="[":Hn==="{"||Hn==="\\begingroup"){this.consume();var xi=vt.endOfGroup[Hn];this.gullet.beginGroup();var Ri=this.parseExpression(!1,xi),sa=this.fetch();this.expect(xi),this.gullet.endGroup(),si={type:"ordgroup",mode:this.mode,loc:I.range(Tn,sa),body:Ri,semisimple:Hn==="\\begingroup"||void 0}}else if(Ue)si=null;else if(si=this.parseFunction(Nt,Se,ht)||this.parseSymbol(),si==null&&Hn[0]==="\\"&&!Fo.hasOwnProperty(Hn)){if(this.settings.throwOnError)throw new f("Undefined control sequence: "+Hn,Tn);si=this.formatUnsupportedCmd(Hn),this.consume()}return br&&this.switchMode(Zr),si},se.formLigatures=function(Se){for(var Ue=Se.length-1,ht=0;ht<Ue;++ht){var Nt=Se[ht],br=Nt.text;br==="-"&&Se[ht+1].text==="-"&&(ht+1<Ue&&Se[ht+2].text==="-"?(Se.splice(ht,3,{type:"textord",mode:"text",loc:I.range(Nt,Se[ht+2]),text:"---"}),Ue-=2):(Se.splice(ht,2,{type:"textord",mode:"text",loc:I.range(Nt,Se[ht+1]),text:"--"}),Ue-=1)),(br==="'"||br==="`")&&Se[ht+1].text===br&&(Se.splice(ht,2,{type:"textord",mode:"text",loc:I.range(Nt,Se[ht+1]),text:br+br}),Ue-=1)}},se.parseSymbol=function(){var Se=this.fetch(),Ue=Se.text;if(/^\\verb[^a-zA-Z]/.test(Ue)){this.consume();var ht=Ue.slice(5),Nt=ht.charAt(0)==="*";if(Nt&&(ht=ht.slice(1)),ht.length<2||ht.charAt(0)!==ht.slice(-1))throw new f(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return ht=ht.slice(1,-1),{type:"verb",mode:"text",body:ht,star:Nt}}ms.hasOwnProperty(Ue[0])&&!je[this.mode][Ue[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Ue[0]+'" used in math mode',Se),Ue=ms[Ue[0]]+Ue.substr(1));var br=Os.exec(Ue);br&&(Ue=Ue.substring(0,br.index),Ue==="i"?Ue="\u0131":Ue==="j"&&(Ue="\u0237"));var Or;if(je[this.mode][Ue]){this.settings.strict&&this.mode==="math"&&Xt.indexOf(Ue)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Ue[0]+'" used in math mode',Se);var Zr=je[this.mode][Ue].group,Tn=I.range(Se),Hn;if(bt.hasOwnProperty(Zr)){var si=Zr;Hn={type:"atom",mode:this.mode,family:si,loc:Tn,text:Ue}}else Hn={type:Zr,mode:this.mode,loc:Tn,text:Ue};Or=Hn}else if(Ue.charCodeAt(0)>=128)this.settings.strict&&(G(Ue.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Ue[0]+'" used in math mode',Se):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Ue[0]+'"'+(" ("+Ue.charCodeAt(0)+")"),Se)),Or={type:"textord",mode:"text",loc:I.range(Se),text:Ue};else return null;if(this.consume(),br)for(var xi=0;xi<br[0].length;xi++){var Ri=br[0][xi];if(!ys[Ri])throw new f("Unknown accent ' "+Ri+"'",Se);var sa=ys[Ri][this.mode];if(!sa)throw new f("Accent "+Ri+" unsupported in "+this.mode+" mode",Se);Or={type:"accent",mode:this.mode,loc:I.range(Se),label:sa,isStretchy:!1,isShifty:!0,base:Or}}return Or},vt}();Is.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Is.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Is.SUPSUB_GREEDINESS=1;var ol=function(se,ye){if(!(typeof se=="string"||se instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var Se=new Is(se,ye);delete Se.gullet.macros.current["\\df@tag"];var Ue=Se.parse();if(Se.gullet.macros.get("\\df@tag")){if(!ye.displayMode)throw new f("\\tag works only in display equations");Se.gullet.feed("\\df@tag"),Ue=[{type:"tag",mode:"text",body:Ue,tag:Se.parse()}]}return Ue},Ls=ol,Xs=function(se,ye,Se){ye.textContent="";var Ue=Tt(se,Se).toNode();ye.appendChild(Ue)};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."),Xs=function(){throw new f("KaTeX doesn't work in quirks mode.")}));var Bs=function(se,ye){var Se=Tt(se,ye).toMarkup();return Se},gs=function(se,ye){var Se=new p(ye);return Ls(se,Se)},Ns=function(se,ye,Se){if(Se.throwOnError||!(se instanceof f))throw se;var Ue=ar.makeSpan(["katex-error"],[new De(ye)]);return Ue.setAttribute("title",se.toString()),Ue.setAttribute("style","color:"+Se.errorColor),Ue},Tt=function(se,ye){var Se=new p(ye);try{var Ue=Ls(se,Se);return Ze(Ue,se,Se)}catch(ht){return Ns(ht,se,Se)}},Rt=function(se,ye){var Se=new p(ye);try{var Ue=Ls(se,Se);return Lt(Ue,se,Se)}catch(ht){return Ns(ht,se,Se)}},rn={version:"0.11.1",render:Xs,renderToString:Bs,ParseError:f,__parse:gs,__renderToDomTree:Tt,__renderToHTMLTree:Rt,__setFontMetrics:it,__defineSymbol:pe,__defineMacro:zr,__domTree:{Span:le,Anchor:de,SymbolNode:De,SvgNode:Ee,PathNode:ce,LineNode:ne}},On=N.default=rn}]).default})},P2fV:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("Q9mQ"),E=y("+L6B"),I=y("sE09"),o=y.n(I)},P2ho:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D={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};z.default=D},P47w:function(fe,z,y){var D=y("hydK"),N=D.createElement,L=y("IMiH"),E=y("mFDi"),I=y("Fofx"),o=y("6GrX"),m=y("pzxd"),f=y("dqUG"),s=L.CMD,t=Array.prototype.join,l="none",a=Math.round,r=Math.sin,u=Math.cos,e=Math.PI,n=Math.PI*2,i=180/e,c=1e-4;function d(H){return a(H*1e4)/1e4}function h(H){return H<c&&H>-c}function p(H,W){var G=W?H.textFill:H.fill;return G!=null&&G!==l}function g(H,W){var G=W?H.textStroke:H.stroke;return G!=null&&G!==l}function v(H,W){W&&A(H,"transform","matrix("+t.call(W,",")+")")}function A(H,W,G){(!G||G.type!=="linear"&&G.type!=="radial")&&H.setAttribute(W,G)}function x(H,W,G){H.setAttributeNS("http://www.w3.org/1999/xlink",W,G)}function b(H,W,G,V){if(p(W,G)){var Z=G?W.textFill:W.fill;Z=Z==="transparent"?l:Z,A(H,"fill",Z),A(H,"fill-opacity",W.fillOpacity!=null?W.fillOpacity*W.opacity:W.opacity)}else A(H,"fill",l);if(g(W,G)){var Y=G?W.textStroke:W.stroke;Y=Y==="transparent"?l:Y,A(H,"stroke",Y);var Q=G?W.textStrokeWidth:W.lineWidth,oe=!G&&W.strokeNoScale?V.getLineScale():1;A(H,"stroke-width",Q/oe),A(H,"paint-order",G?"stroke":"fill"),A(H,"stroke-opacity",W.strokeOpacity!=null?W.strokeOpacity:W.opacity);var ue=W.lineDash;ue?(A(H,"stroke-dasharray",W.lineDash.join(",")),A(H,"stroke-dashoffset",a(W.lineDashOffset||0))):A(H,"stroke-dasharray",""),W.lineCap&&A(H,"stroke-linecap",W.lineCap),W.lineJoin&&A(H,"stroke-linejoin",W.lineJoin),W.miterLimit&&A(H,"stroke-miterlimit",W.miterLimit)}else A(H,"stroke",l)}function w(H){for(var W=[],G=H.data,V=H.len(),Z=0;Z<V;){var Y=G[Z++],Q="",oe=0;switch(Y){case s.M:Q="M",oe=2;break;case s.L:Q="L",oe=2;break;case s.Q:Q="Q",oe=4;break;case s.C:Q="C",oe=6;break;case s.A:var ue=G[Z++],Le=G[Z++],me=G[Z++],Ie=G[Z++],X=G[Z++],q=G[Z++],We=G[Z++],$=G[Z++],J=Math.abs(q),le=h(J-n)||($?q>=n:-q>=n),de=q>0?q%n:q%n+n,Ne=!1;le?Ne=!0:h(J)?Ne=!1:Ne=de>=e===!!$;var we=d(ue+me*u(X)),De=d(Le+Ie*r(X));le&&($?q=n-1e-4:q=-n+1e-4,Ne=!0,Z===9&&W.push("M",we,De));var Ee=d(ue+me*u(X+q)),ce=d(Le+Ie*r(X+q));W.push("A",d(me),d(Ie),a(We*i),+Ne,+$,Ee,ce);break;case s.Z:Q="Z";break;case s.R:var Ee=d(G[Z++]),ce=d(G[Z++]),ne=d(G[Z++]),ee=d(G[Z++]);W.push("M",Ee,ce,"L",Ee+ne,ce,"L",Ee+ne,ce+ee,"L",Ee,ce+ee,"L",Ee,ce);break}Q&&W.push(Q);for(var Ae=0;Ae<oe;Ae++)W.push(d(G[Z++]))}return W.join(" ")}var S={};S.brush=function(H){var W=H.style,G=H.__svgEl;G||(G=N("path"),H.__svgEl=G),H.path||H.createPathProxy();var V=H.path;if(H.__dirtyPath){V.beginPath(),V.subPixelOptimize=!1,H.buildPath(V,H.shape),H.__dirtyPath=!1;var Z=w(V);Z.indexOf("NaN")<0&&A(G,"d",Z)}b(G,W,!1,H),v(G,H.transform),W.text!=null?R(H,H.getBoundingRect()):j(H)};var T={};T.brush=function(H){var W=H.style,G=W.image;if(G instanceof HTMLImageElement){var V=G.src;G=V}if(!G)return;var Z=W.x||0,Y=W.y||0,Q=W.width,oe=W.height,ue=H.__svgEl;ue||(ue=N("image"),H.__svgEl=ue),G!==H.__imageSrc&&(x(ue,"href",G),H.__imageSrc=G),A(ue,"width",Q),A(ue,"height",oe),A(ue,"x",Z),A(ue,"y",Y),v(ue,H.transform),W.text!=null?R(H,H.getBoundingRect()):j(H)};var C={},O=new E,_={},M=[],k={left:"start",right:"end",center:"middle",middle:"middle"},R=function(W,G){var V=W.style,Z=W.transform,Y=W instanceof f||V.transformText;W.__dirty&&m.normalizeTextStyle(V,!0);var Q=V.text;if(Q!=null&&(Q+=""),!m.needDrawText(Q,V))return;Q==null&&(Q=""),!Y&&Z&&(O.copy(G),O.applyTransform(Z),G=O);var oe=W.__textSvgEl;oe||(oe=N("text"),W.__textSvgEl=oe);var ue=oe.style,Le=V.font||o.DEFAULT_FONT,me=oe.__computedFont;Le!==oe.__styleFont&&(ue.font=oe.__styleFont=Le,me=oe.__computedFont=ue.font);var Ie=V.textPadding,X=V.textLineHeight,q=W.__textCotentBlock;(!q||W.__dirtyText)&&(q=W.__textCotentBlock=o.parsePlainText(Q,me,Ie,X,V.truncate));var We=q.outerHeight,$=q.lineHeight;m.getBoxPosition(_,W,V,G);var J=_.baseX,le=_.baseY,de=_.textAlign||"left",Ne=_.textVerticalAlign;B(oe,Y,Z,V,G,J,le);var we=o.adjustTextY(le,We,Ne),De=J,Ee=we;Ie&&(De=P(J,de,Ie),Ee+=Ie[0]),Ee+=$/2,b(oe,V,!0,W);var ce=q.canCacheByTextString,ne=W.__tspanList||(W.__tspanList=[]),ee=ne.length;if(ce&&W.__canCacheByTextString&&W.__text===Q){if(W.__dirtyText&&ee)for(var Ae=0;Ae<ee;++Ae)U(ne[Ae],de,De,Ee+Ae*$)}else{W.__text=Q,W.__canCacheByTextString=ce;for(var Ve=q.lines,Ke=Ve.length,Ae=0;Ae<Ke;Ae++){var Oe=ne[Ae],it=Ve[Ae];Oe?Oe.__zrText!==it&&(Oe.innerHTML="",Oe.appendChild(document.createTextNode(it))):(Oe=ne[Ae]=N("tspan"),oe.appendChild(Oe),Oe.appendChild(document.createTextNode(it))),U(Oe,de,De,Ee+Ae*$)}if(ee>Ke){for(;Ae<ee;Ae++)oe.removeChild(ne[Ae]);ne.length=Ke}}};function B(H,W,G,V,Z,Y,Q){I.identity(M),W&&G&&I.copy(M,G);var oe=V.textRotation;if(Z&&oe){var ue=V.textOrigin;ue==="center"?(Y=Z.width/2+Z.x,Q=Z.height/2+Z.y):ue&&(Y=ue[0]+Z.x,Q=ue[1]+Z.y),M[4]-=Y,M[5]-=Q,I.rotate(M,M,oe),M[4]+=Y,M[5]+=Q}v(H,M)}function P(H,W,G){return W==="right"?H-G[1]:W==="center"?H+G[3]/2-G[1]/2:H+G[3]}function U(H,W,G,V){A(H,"dominant-baseline","middle"),A(H,"text-anchor",k[W]),A(H,"x",G),A(H,"y",V)}function j(H){H&&H.__textSvgEl&&(H.__textSvgEl.parentNode&&H.__textSvgEl.parentNode.removeChild(H.__textSvgEl),H.__textSvgEl=null,H.__tspanList=[],H.__text=null)}C.drawRectText=R,C.brush=function(H){var W=H.style;W.text!=null?R(H,!1):j(H)},z.path=S,z.image=T,z.text=C},P4Qj:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.removeSensor=z.getSensor=void 0;var D=E(y("chpo")),N=y("FxDU"),L=y("24YM");function E(f){return f&&f.__esModule?f:{default:f}}var I={},o=function(s){var t=s.getAttribute(L.SizeSensorId);if(t&&I[t])return I[t];var l=(0,D.default)();s.setAttribute(L.SizeSensorId,l);var a=(0,N.createSensor)(s);return I[l]=a,a};z.getSensor=o;var m=function(s){var t=s.element.getAttribute(L.SizeSensorId);s.element.removeAttribute(L.SizeSensorId),s.destroy(),t&&I[t]&&delete I[t]};z.removeSensor=m},P5Jw:function(fe,z,y){"use strict";var D=y("rHrb"),N=D.CopyToClipboard;N.CopyToClipboard=N,fe.exports=N},PArb:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("q1tI"),o=y.n(I),m=y("TSYQ"),f=y.n(m),s=y("H84U"),t=function(a,r){var u={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(u[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(u[e[n]]=a[e[n]]);return u},l=function(r){return I.createElement(s.a,null,function(u){var e,n=u.getPrefixCls,i=u.direction,c=r.prefixCls,d=r.type,h=d===void 0?"horizontal":d,p=r.orientation,g=p===void 0?"center":p,v=r.className,A=r.children,x=r.dashed,b=r.plain,w=t(r,["prefixCls","type","orientation","className","children","dashed","plain"]),S=n("divider",c),T=g.length>0?"-".concat(g):g,C=!!A,O=f()(v,S,"".concat(S,"-").concat(h),(e={},E()(e,"".concat(S,"-with-text"),C),E()(e,"".concat(S,"-with-text").concat(T),C),E()(e,"".concat(S,"-dashed"),!!x),E()(e,"".concat(S,"-plain"),!!b),E()(e,"".concat(S,"-rtl"),i==="rtl"),e));return I.createElement("div",N()({className:O},w,{role:"separator"}),A&&I.createElement("span",{className:"".concat(S,"-inner-text")},A))})};z.a=l},PD8m:function(fe,z){fe.exports={name:"memoryStorage",read:D,write:N,each:L,remove:E,clearAll:I};var y={};function D(o){return y[o]}function N(o,m){y[o]=m}function L(o){for(var m in y)y.hasOwnProperty(m)&&o(y[m],m)}function E(o){delete y[o]}function I(o){y={}}},PKem:function(fe,z,y){"use strict";y.d(z,"a",function(){return p});var D=y("RIqP"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("pVnL"),o=y.n(I),m=y("lwsE"),f=y.n(m),s=y("W8MJ"),t=y.n(s),l=y("7W2i"),a=y.n(l),r=y("LQ03"),u=y.n(r),e=y("q1tI"),n=y.n(e),i=y("TSYQ"),c=y.n(i),d=y("H84U"),h=function(T,C){var O={};for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&C.indexOf(_)<0&&(O[_]=T[_]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,_=Object.getOwnPropertySymbols(T);M<_.length;M++)C.indexOf(_[M])<0&&Object.prototype.propertyIsEnumerable.call(T,_[M])&&(O[_[M]]=T[_[M]]);return O},p=e.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function g(T){var C=T.suffixCls,O=T.tagName,_=T.displayName;return function(M){var k;return k=function(R){a()(P,R);var B=u()(P);function P(){var U;return f()(this,P),U=B.apply(this,arguments),U.renderComponent=function(j){var H=j.getPrefixCls,W=U.props.prefixCls,G=H(C,W);return e.createElement(M,o()({prefixCls:G,tagName:O},U.props))},U}return t()(P,[{key:"render",value:function(){return e.createElement(d.a,null,this.renderComponent)}}]),P}(e.Component),k.displayName=_,k}}var v=function(C){var O=C.prefixCls,_=C.className,M=C.children,k=C.tagName,R=h(C,["prefixCls","className","children","tagName"]),B=c()(O,_);return e.createElement(k,o()({className:B},R),M)},A=function(T){a()(O,T);var C=u()(O);function O(){var _;return f()(this,O),_=C.apply(this,arguments),_.state={siders:[]},_.renderComponent=function(M){var k,R=M.direction,B=_.props,P=B.prefixCls,U=B.className,j=B.children,H=B.hasSider,W=B.tagName,G=h(B,["prefixCls","className","children","hasSider","tagName"]),V=c()(P,(k={},E()(k,"".concat(P,"-has-sider"),typeof H=="boolean"?H:_.state.siders.length>0),E()(k,"".concat(P,"-rtl"),R==="rtl"),k),U);return e.createElement(p.Provider,{value:{siderHook:_.getSiderHook()}},e.createElement(W,o()({className:V},G),j))},_}return t()(O,[{key:"getSiderHook",value:function(){var M=this;return{addSider:function(R){M.setState(function(B){return{siders:[].concat(N()(B.siders),[R])}})},removeSider:function(R){M.setState(function(B){return{siders:B.siders.filter(function(P){return P!==R})}})}}}},{key:"render",value:function(){return e.createElement(d.a,null,this.renderComponent)}}]),O}(e.Component),x=g({suffixCls:"layout",tagName:"section",displayName:"Layout"})(A),b=g({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(v),w=g({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(v),S=g({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(v);x.Header=b,x.Footer=w,x.Content=S,z.b=x},PNag:function(fe,z,y){var D=y("bYtY"),N=y("SKnc"),L=y("YH21"),E=y("crZl"),I=y("IwbS"),o=y("OELB"),m=y("72pK"),f=y("y7Aq"),s=y("4NO4"),t=o.linearMap,l=D.each,a=Math.min,r=Math.max,u=12,e=6,n=E.extend({type:"visualMap.continuous",init:function(){n.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(A,x,b,w){(!w||w.type!=="selectDataRange"||w.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var A=this.visualMapModel,x=this.group;this._orient=A.get("orient"),this._useHandle=A.get("calculable"),this._resetInterval(),this._renderBar(x);var b=A.get("text");this._renderEndsText(x,b,0),this._renderEndsText(x,b,1),this._updateView(!0),this.renderBackground(x),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(x)},_renderEndsText:function(A,x,b){if(!x)return;var w=x[1-b];w=w!=null?w+"":"";var S=this.visualMapModel,T=S.get("textGap"),C=S.itemSize,O=this._shapes.barGroup,_=this._applyTransform([C[0]/2,b===0?-T:C[1]+T],O),M=this._applyTransform(b===0?"bottom":"top",O),k=this._orient,R=this.visualMapModel.textStyleModel;this.group.add(new I.Text({style:{x:_[0],y:_[1],textVerticalAlign:k==="horizontal"?"middle":M,textAlign:k==="horizontal"?M:"center",text:w,textFont:R.getFont(),textFill:R.getTextColor()}}))},_renderBar:function(A){var x=this.visualMapModel,b=this._shapes,w=x.itemSize,S=this._orient,T=this._useHandle,C=f.getItemAlign(x,this.api,w),O=b.barGroup=this._createBarGroup(C);O.add(b.outOfRange=i()),O.add(b.inRange=i(null,T?g(this._orient):null,D.bind(this._dragHandle,this,"all",!1),D.bind(this._dragHandle,this,"all",!0)));var _=x.textStyleModel.getTextRect("\u56FD"),M=r(_.width,_.height);T&&(b.handleThumbs=[],b.handleLabels=[],b.handleLabelPoints=[],this._createHandle(O,0,w,M,S,C),this._createHandle(O,1,w,M,S,C)),this._createIndicator(O,w,M,S),A.add(O)},_createHandle:function(A,x,b,w,S){var T=D.bind(this._dragHandle,this,x,!1),C=D.bind(this._dragHandle,this,x,!0),O=i(c(x,w),g(this._orient),T,C);O.position[0]=b[0],A.add(O);var _=this.visualMapModel.textStyleModel,M=new I.Text({draggable:!0,drift:T,onmousemove:function(B){L.stop(B.event)},ondragend:C,style:{x:0,y:0,text:"",textFont:_.getFont(),textFill:_.getTextColor()}});this.group.add(M);var k=[S==="horizontal"?w/2:w*1.5,S==="horizontal"?x===0?-(w*1.5):w*1.5:x===0?-w/2:w/2],R=this._shapes;R.handleThumbs[x]=O,R.handleLabelPoints[x]=k,R.handleLabels[x]=M},_createIndicator:function(A,x,b,w){var S=i([[0,0]],"move");S.position[0]=x[0],S.attr({invisible:!0,silent:!0}),A.add(S);var T=this.visualMapModel.textStyleModel,C=new I.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:T.getFont(),textFill:T.getTextColor()}});this.group.add(C);var O=[w==="horizontal"?b/2:e+3,0],_=this._shapes;_.indicator=S,_.indicatorLabel=C,_.indicatorLabelPoint=O},_dragHandle:function(A,x,b,w){if(!this._useHandle)return;if(this._dragging=!x,!x){var S=this._applyTransform([b,w],this._shapes.barGroup,!0);this._updateInterval(A,S[1]),this._updateView()}x===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),x?!this._hovering&&this._clearHoverLinkToSeries():p(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[A],!1)},_resetInterval:function(){var A=this.visualMapModel,x=this._dataInterval=A.getSelected(),b=A.getExtent(),w=[0,A.itemSize[1]];this._handleEnds=[t(x[0],b,w,!0),t(x[1],b,w,!0)]},_updateInterval:function(A,x){x=x||0;var b=this.visualMapModel,w=this._handleEnds,S=[0,b.itemSize[1]];m(x,w,S,A,0);var T=b.getExtent();this._dataInterval=[t(w[0],S,T,!0),t(w[1],S,T,!0)]},_updateView:function(A){var x=this.visualMapModel,b=x.getExtent(),w=this._shapes,S=[0,x.itemSize[1]],T=A?S:this._handleEnds,C=this._createBarVisual(this._dataInterval,b,T,"inRange"),O=this._createBarVisual(b,b,S,"outOfRange");w.inRange.setStyle({fill:C.barColor,opacity:C.opacity}).setShape("points",C.barPoints),w.outOfRange.setStyle({fill:O.barColor,opacity:O.opacity}).setShape("points",O.barPoints),this._updateHandle(T,C)},_createBarVisual:function(A,x,b,w){var S={forceState:w,convertOpacityToAlpha:!0},T=this._makeColorGradient(A,S),C=[this.getControllerVisual(A[0],"symbolSize",S),this.getControllerVisual(A[1],"symbolSize",S)],O=this._createBarPoints(b,C);return{barColor:new N(0,0,0,1,T),barPoints:O,handlesColor:[T[0].color,T[T.length-1].color]}},_makeColorGradient:function(A,x){var b=100,w=[],S=(A[1]-A[0])/b;w.push({color:this.getControllerVisual(A[0],"color",x),offset:0});for(var T=1;T<b;T++){var C=A[0]+S*T;if(C>A[1])break;w.push({color:this.getControllerVisual(C,"color",x),offset:T/b})}return w.push({color:this.getControllerVisual(A[1],"color",x),offset:1}),w},_createBarPoints:function(A,x){var b=this.visualMapModel.itemSize;return[[b[0]-x[0],A[0]],[b[0],A[0]],[b[0],A[1]],[b[0]-x[1],A[1]]]},_createBarGroup:function(A){var x=this._orient,b=this.visualMapModel.get("inverse");return new I.Group(x==="horizontal"&&!b?{scale:A==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:x==="horizontal"&&b?{scale:A==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:x==="vertical"&&!b?{scale:A==="left"?[1,-1]:[-1,-1]}:{scale:A==="left"?[1,1]:[-1,1]})},_updateHandle:function(A,x){if(!this._useHandle)return;var b=this._shapes,w=this.visualMapModel,S=b.handleThumbs,T=b.handleLabels;l([0,1],function(C){var O=S[C];O.setStyle("fill",x.handlesColor[C]),O.position[1]=A[C];var _=I.applyTransform(b.handleLabelPoints[C],I.getTransform(O,this.group));T[C].setStyle({x:_[0],y:_[1],text:w.formatValueText(this._dataInterval[C]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?C===0?"bottom":"top":"left",b.barGroup)})},this)},_showIndicator:function(A,x,b,w){var S=this.visualMapModel,T=S.getExtent(),C=S.itemSize,O=[0,C[1]],_=t(A,T,O,!0),M=this._shapes,k=M.indicator;if(!k)return;k.position[1]=_,k.attr("invisible",!1),k.setShape("points",d(!!b,w,_,C[1]));var R={convertOpacityToAlpha:!0},B=this.getControllerVisual(A,"color",R);k.setStyle("fill",B);var P=I.applyTransform(M.indicatorLabelPoint,I.getTransform(k,this.group)),U=M.indicatorLabel;U.attr("invisible",!1);var j=this._applyTransform("left",M.barGroup),H=this._orient;U.setStyle({text:(b||"")+S.formatValueText(x),textVerticalAlign:H==="horizontal"?j:"middle",textAlign:H==="horizontal"?"center":j,x:P[0],y:P[1]})},_enableHoverLinkToSeries:function(){var A=this;this._shapes.barGroup.on("mousemove",function(x){if(A._hovering=!0,!A._dragging){var b=A.visualMapModel.itemSize,w=A._applyTransform([x.offsetX,x.offsetY],A._shapes.barGroup,!0,!0);w[1]=a(r(0,w[1]),b[1]),A._doHoverLinkToSeries(w[1],0<=w[0]&&w[0]<=b[0])}}).on("mouseout",function(){A._hovering=!1,!A._dragging&&A._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var A=this.api.getZr();this.visualMapModel.option.hoverLink?(A.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),A.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(A,x){var b=this.visualMapModel,w=b.itemSize;if(!b.option.hoverLink)return;var S=[0,w[1]],T=b.getExtent();A=a(r(S[0],A),S[1]);var C=h(b,T,S),O=[A-C,A+C],_=t(A,S,T,!0),M=[t(O[0],S,T,!0),t(O[1],S,T,!0)];O[0]<S[0]&&(M[0]=-Infinity),O[1]>S[1]&&(M[1]=Infinity),x&&(M[0]===-Infinity?this._showIndicator(_,M[1],"< ",C):M[1]===Infinity?this._showIndicator(_,M[0],"> ",C):this._showIndicator(_,_,"\u2248 ",C));var k=this._hoverLinkDataIndices,R=[];(x||p(b))&&(R=this._hoverLinkDataIndices=b.findTargetDataIndices(M));var B=s.compressBatches(k,R);this._dispatchHighDown("downplay",f.makeHighDownBatch(B[0],b)),this._dispatchHighDown("highlight",f.makeHighDownBatch(B[1],b))},_hoverLinkFromSeriesMouseOver:function(A){var x=A.target,b=this.visualMapModel;if(!x||x.dataIndex==null)return;var w=this.ecModel.getSeriesByIndex(x.seriesIndex);if(!b.isTargetSeries(w))return;var S=w.getData(x.dataType),T=S.get(b.getDataDimension(S),x.dataIndex,!0);isNaN(T)||this._showIndicator(T,T)},_hideIndicator:function(){var A=this._shapes;A.indicator&&A.indicator.attr("invisible",!0),A.indicatorLabel&&A.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var A=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",f.makeHighDownBatch(A,this.visualMapModel)),A.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var A=this.api.getZr();A.off("mouseover",this._hoverLinkFromSeriesMouseOver),A.off("mouseout",this._hideIndicator)},_applyTransform:function(A,x,b,w){var S=I.getTransform(x,w?null:this.group);return I[D.isArray(A)?"applyTransform":"transformDirection"](A,S,b)},_dispatchHighDown:function(A,x){x&&x.length&&this.api.dispatchAction({type:A,batch:x})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function i(A,x,b,w){return new I.Polygon({shape:{points:A},draggable:!!b,cursor:x,drift:b,onmousemove:function(S){L.stop(S.event)},ondragend:w})}function c(A,x){return A===0?[[0,0],[x,0],[x,-x]]:[[0,0],[x,0],[x,x]]}function d(A,x,b,w){return A?[[0,-a(x,r(b,0))],[e,0],[0,a(x,r(w-b,0))]]:[[0,0],[5,-5],[5,5]]}function h(A,x,b){var w=u/2,S=A.get("hoverLinkDataSize");return S&&(w=t(S,x,b,!0)/2),w}function p(A){var x=A.get("hoverLinkOnHandle");return!!(x==null?A.get("realtime"):x)}function g(A){return A==="vertical"?"ns-resize":"ew-resize"}var v=n;fe.exports=v},PQMj:function(fe,z,y){},PSzr:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},PVpz:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.StreamCipher,I=N.algo,o=[],m=[],f=[],s=I.RabbitLegacy=E.extend({_doReset:function(){var a=this._key.words,r=this.cfg.iv,u=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],e=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var n=0;n<4;n++)t.call(this);for(var n=0;n<8;n++)e[n]^=u[n+4&7];if(r){var i=r.words,c=i[0],d=i[1],h=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,p=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,g=h>>>16|p&4294901760,v=p<<16|h&65535;e[0]^=h,e[1]^=g,e[2]^=p,e[3]^=v,e[4]^=h,e[5]^=g,e[6]^=p,e[7]^=v;for(var n=0;n<4;n++)t.call(this)}},_doProcessBlock:function(a,r){var u=this._X;t.call(this),o[0]=u[0]^u[5]>>>16^u[3]<<16,o[1]=u[2]^u[7]>>>16^u[5]<<16,o[2]=u[4]^u[1]>>>16^u[7]<<16,o[3]=u[6]^u[3]>>>16^u[1]<<16;for(var e=0;e<4;e++)o[e]=(o[e]<<8|o[e]>>>24)&16711935|(o[e]<<24|o[e]>>>8)&4278255360,a[r+e]^=o[e]},blockSize:128/32,ivSize:64/32});function t(){for(var l=this._X,a=this._C,r=0;r<8;r++)m[r]=a[r];a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0<m[0]>>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0<m[1]>>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0<m[2]>>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0<m[3]>>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0<m[4]>>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0<m[5]>>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0<m[6]>>>0?1:0)|0,this._b=a[7]>>>0<m[7]>>>0?1:0;for(var r=0;r<8;r++){var u=l[r]+a[r],e=u&65535,n=u>>>16,i=((e*e>>>17)+e*n>>>15)+n*n,c=((u&4294901760)*u|0)+((u&65535)*u|0);f[r]=i^c}l[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,l[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,l[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,l[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,l[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,l[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,l[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,l[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}N.RabbitLegacy=E._createHelper(s)}(),D.RabbitLegacy})},ProS:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("aX58"),E=y("bYtY"),I=y("Qe9p"),o=y("ItGF"),m=y("BPZU"),f=y("H6uX"),s=y("fmMI"),t=y("hD7B"),l=y("IDmD"),a=y("ypgQ"),r=y("+wW9"),u=y("0V0F"),e=y("bLfw"),n=y("T4UG"),i=y("sS/r"),c=y("6Ic6"),d=y("IwbS"),h=y("4NO4"),p=y("iLNv"),g=p.throttle,v=y("/WM3"),A=y("uAnK"),x=y("mYwL"),b=y("af/B"),w=y("xTNl"),S=y("8hn6");y("A1Ka");var T=y("7DRL"),C=E.assert,O=E.each,_=E.isFunction,M=E.isObject,k=e.parseClassType,R="4.8.0",B={zrender:"4.3.1"},P=1,U=1e3,j=800,H=900,W=5e3,G=1e3,V=1100,Z=2e3,Y=3e3,Q=3500,oe=4e3,ue=5e3,Le={PROCESSOR:{FILTER:U,SERIES_FILTER:j,STATISTIC:W},VISUAL:{LAYOUT:G,PROGRESSIVE_LAYOUT:V,GLOBAL:Z,CHART:Y,POST_CHART_LAYOUT:Q,COMPONENT:oe,BRUSH:ue}},me="__flagInMainProcess",Ie="__optionUpdated",X=/^[a-zA-Z0-9_]+$/;function q(yt,Ut){return function(pr,sr,ir){if(!Ut&&this._disposed){At(this.id);return}pr=pr&&pr.toLowerCase(),f.prototype[yt].call(this,pr,sr,ir)}}function We(){f.call(this)}We.prototype.on=q("on",!0),We.prototype.off=q("off",!0),We.prototype.one=q("one",!0),E.mixin(We,f);function $(yt,Ut,pr){pr=pr||{},typeof Ut=="string"&&(Ut=ct[Ut]),this.id,this.group,this._dom=yt;var sr="canvas",ir=this._zr=L.init(yt,{renderer:pr.renderer||sr,devicePixelRatio:pr.devicePixelRatio,width:pr.width,height:pr.height});this._throttledZrFlush=g(E.bind(ir.flush,ir),17);var Ut=E.clone(Ut);Ut&&r(Ut,!0),this._theme=Ut,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new l;var Yr=this._api=je(this);function Jr(In,Nn){return In.__prio-Nn.__prio}m(qt,Jr),m(Qe,Jr),this._scheduler=new b(this,Yr,Qe,qt),f.call(this,this._ecEventProcessor=new pe),this._messageCenter=new We,this._initEvents(),this.resize=E.bind(this.resize,this),this._pendingActions=[],ir.animation.on("frame",this._onframe,this),ee(ir,this),E.setAsPrimitive(this)}var J=$.prototype;J._onframe=function(){if(this._disposed)return;var yt=this._scheduler;if(this[Ie]){var Ut=this[Ie].silent;this[me]=!0,Ne(this),de.update.call(this),this[me]=!1,this[Ie]=!1,ce.call(this,Ut),ne.call(this,Ut)}else if(yt.unfinished){var pr=P,sr=this._model,ir=this._api;yt.unfinished=!1;do{var Yr=+new Date;yt.performSeriesTasks(sr),yt.performDataProcessorTasks(sr),De(this,sr),yt.performVisualTasks(sr),it(this,this._model,ir,"remain"),pr-=+new Date-Yr}while(pr>0&&yt.unfinished);yt.unfinished||this._zr.flush()}},J.getDom=function(){return this._dom},J.getZr=function(){return this._zr},J.setOption=function(yt,Ut,pr){if(this._disposed){At(this.id);return}var sr;if(M(Ut)&&(pr=Ut.lazyUpdate,sr=Ut.silent,Ut=Ut.notMerge),this[me]=!0,!this._model||Ut){var ir=new a(this._api),Yr=this._theme,Jr=this._model=new s;Jr.scheduler=this._scheduler,Jr.init(null,null,Yr,ir)}this._model.setOption(yt,ve),pr?(this[Ie]={silent:sr},this[me]=!1):(Ne(this),de.update.call(this),this._zr.flush(),this[Ie]=!1,this[me]=!1,ce.call(this,sr),ne.call(this,sr))},J.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},J.getModel=function(){return this._model},J.getOption=function(){return this._model&&this._model.getOption()},J.getWidth=function(){return this._zr.getWidth()},J.getHeight=function(){return this._zr.getHeight()},J.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},J.getRenderedCanvas=function(yt){if(!o.canvasSupported)return;yt=yt||{},yt.pixelRatio=yt.pixelRatio||1,yt.backgroundColor=yt.backgroundColor||this._model.get("backgroundColor");var Ut=this._zr;return Ut.painter.getRenderedCanvas(yt)},J.getSvgDataURL=function(){if(!o.svgSupported)return;var yt=this._zr,Ut=yt.storage.getDisplayList();return E.each(Ut,function(pr){pr.stopAnimation(!0)}),yt.painter.toDataURL()},J.getDataURL=function(yt){if(this._disposed){At(this.id);return}yt=yt||{};var Ut=yt.excludeComponents,pr=this._model,sr=[],ir=this;O(Ut,function(Jr){pr.eachComponent({mainType:Jr},function(In){var Nn=ir._componentsMap[In.__viewId];Nn.group.ignore||(sr.push(Nn),Nn.group.ignore=!0)})});var Yr=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(yt).toDataURL("image/"+(yt&&yt.type||"png"));return O(sr,function(Jr){Jr.group.ignore=!1}),Yr},J.getConnectedDataURL=function(yt){if(this._disposed){At(this.id);return}if(!o.canvasSupported)return;var Ut=yt.type==="svg",pr=this.group,sr=Math.min,ir=Math.max,Yr=Infinity;if(Fr[pr]){var Jr=Yr,In=Yr,Nn=-Yr,zn=-Yr,ei=[],Ai=yt&&yt.pixelRatio||1;E.each(or,function(Je,Ye){if(Je.group===pr){var et=Ut?Je.getZr().painter.getSvgDom().innerHTML:Je.getRenderedCanvas(E.clone(yt)),wt=Je.getDom().getBoundingClientRect();Jr=sr(wt.left,Jr),In=sr(wt.top,In),Nn=ir(wt.right,Nn),zn=ir(wt.bottom,zn),ei.push({dom:et,left:wt.left,top:wt.top})}}),Jr*=Ai,In*=Ai,Nn*=Ai,zn*=Ai;var Pi=Nn-Jr,$e=zn-In,_e=E.createCanvas(),Be=L.init(_e,{renderer:Ut?"svg":"canvas"});if(Be.resize({width:Pi,height:$e}),Ut){var He="";return O(ei,function(Je){var Ye=Je.left-Jr,et=Je.top-In;He+='<g transform="translate('+Ye+","+et+')">'+Je.dom+"</g>"}),Be.painter.getSvgRoot().innerHTML=He,yt.connectedBackgroundColor&&Be.painter.setBackgroundColor(yt.connectedBackgroundColor),Be.refreshImmediately(),Be.painter.toDataURL()}else return yt.connectedBackgroundColor&&Be.add(new d.Rect({shape:{x:0,y:0,width:Pi,height:$e},style:{fill:yt.connectedBackgroundColor}})),O(ei,function(Je){var Ye=new d.Image({style:{x:Je.left*Ai-Jr,y:Je.top*Ai-In,image:Je.dom}});Be.add(Ye)}),Be.refreshImmediately(),_e.toDataURL("image/"+(yt&&yt.type||"png"))}else return this.getDataURL(yt)},J.convertToPixel=E.curry(le,"convertToPixel"),J.convertFromPixel=E.curry(le,"convertFromPixel");function le(yt,Ut,pr){if(this._disposed){At(this.id);return}var sr=this._model,ir=this._coordSysMgr.getCoordinateSystems(),Yr;Ut=h.parseFinder(sr,Ut);for(var Jr=0;Jr<ir.length;Jr++){var In=ir[Jr];if(In[yt]&&(Yr=In[yt](sr,Ut,pr))!=null)return Yr}}J.containPixel=function(yt,Ut){if(this._disposed){At(this.id);return}var pr=this._model,sr;return yt=h.parseFinder(pr,yt),E.each(yt,function(ir,Yr){Yr.indexOf("Models")>=0&&E.each(ir,function(Jr){var In=Jr.coordinateSystem;if(In&&In.containPoint)sr|=!!In.containPoint(Ut);else if(Yr==="seriesModels"){var Nn=this._chartsMap[Jr.__viewId];Nn&&Nn.containPoint&&(sr|=Nn.containPoint(Ut,Jr))}},this)},this),!!sr},J.getVisual=function(yt,Ut){var pr=this._model;yt=h.parseFinder(pr,yt,{defaultMainType:"series"});var sr=yt.seriesModel,ir=sr.getData(),Yr=yt.hasOwnProperty("dataIndexInside")?yt.dataIndexInside:yt.hasOwnProperty("dataIndex")?ir.indexOfRawIndex(yt.dataIndex):null;return Yr!=null?ir.getItemVisual(Yr,Ut):ir.getVisual(Ut)},J.getViewOfComponentModel=function(yt){return this._componentsMap[yt.__viewId]},J.getViewOfSeriesModel=function(yt){return this._chartsMap[yt.__viewId]};var de={prepareAndUpdate:function(yt){Ne(this),de.update.call(this,yt)},update:function(yt){var Ut=this._model,pr=this._api,sr=this._zr,ir=this._coordSysMgr,Yr=this._scheduler;if(!Ut)return;Yr.restoreData(Ut,yt),Yr.performSeriesTasks(Ut),ir.create(Ut,pr),Yr.performDataProcessorTasks(Ut,yt),De(this,Ut),ir.update(Ut,pr),Ve(Ut),Yr.performVisualTasks(Ut,yt),Ke(this,Ut,pr,yt);var Jr=Ut.get("backgroundColor")||"transparent";if(o.canvasSupported)sr.setBackgroundColor(Jr);else{var In=I.parse(Jr);Jr=I.stringify(In,"rgb"),In[3]===0&&(Jr="transparent")}Fe(Ut,pr)},updateTransform:function(yt){var Ut=this._model,pr=this,sr=this._api;if(!Ut)return;var ir=[];Ut.eachComponent(function(Jr,In){var Nn=pr.getViewOfComponentModel(In);if(Nn&&Nn.__alive)if(Nn.updateTransform){var zn=Nn.updateTransform(In,Ut,sr,yt);zn&&zn.update&&ir.push(Nn)}else ir.push(Nn)});var Yr=E.createHashMap();Ut.eachSeries(function(Jr){var In=pr._chartsMap[Jr.__viewId];if(In.updateTransform){var Nn=In.updateTransform(Jr,Ut,sr,yt);Nn&&Nn.update&&Yr.set(Jr.uid,1)}else Yr.set(Jr.uid,1)}),Ve(Ut),this._scheduler.performVisualTasks(Ut,yt,{setDirty:!0,dirtyMap:Yr}),it(pr,Ut,sr,yt,Yr),Fe(Ut,this._api)},updateView:function(yt){var Ut=this._model;if(!Ut)return;c.markUpdateMethod(yt,"updateView"),Ve(Ut),this._scheduler.performVisualTasks(Ut,yt,{setDirty:!0}),Ke(this,this._model,this._api,yt),Fe(Ut,this._api)},updateVisual:function(yt){de.update.call(this,yt)},updateLayout:function(yt){de.update.call(this,yt)}};function Ne(yt){var Ut=yt._model,pr=yt._scheduler;pr.restorePipelines(Ut),pr.prepareStageTasks(),Ae(yt,"component",Ut,pr),Ae(yt,"chart",Ut,pr),pr.plan()}function we(yt,Ut,pr,sr,ir){var Yr=yt._model;if(!sr){O(yt._componentsViews.concat(yt._chartsViews),zn);return}var Jr={};Jr[sr+"Id"]=pr[sr+"Id"],Jr[sr+"Index"]=pr[sr+"Index"],Jr[sr+"Name"]=pr[sr+"Name"];var In={mainType:sr,query:Jr};ir&&(In.subType=ir);var Nn=pr.excludeSeriesId;Nn!=null&&(Nn=E.createHashMap(h.normalizeToArray(Nn))),Yr&&Yr.eachComponent(In,function(ei){(!Nn||Nn.get(ei.id)==null)&&zn(yt[sr==="series"?"_chartsMap":"_componentsMap"][ei.__viewId])},yt);function zn(ei){ei&&ei.__alive&&ei[Ut]&&ei[Ut](ei.__model,Yr,yt._api,pr)}}J.resize=function(yt){if(this._disposed){At(this.id);return}this._zr.resize(yt);var Ut=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Ut)return;var pr=Ut.resetOption("media"),sr=yt&&yt.silent;this[me]=!0,pr&&Ne(this),de.update.call(this),this[me]=!1,ce.call(this,sr),ne.call(this,sr)};function De(yt,Ut){var pr=yt._chartsMap,sr=yt._scheduler;Ut.eachSeries(function(ir){sr.updateStreamModes(ir,pr[ir.__viewId])})}J.showLoading=function(yt,Ut){if(this._disposed){At(this.id);return}if(M(yt)&&(Ut=yt,yt=""),yt=yt||"default",this.hideLoading(),!Wt[yt])return;var pr=Wt[yt](this._api,Ut),sr=this._zr;this._loadingFX=pr,sr.add(pr)},J.hideLoading=function(){if(this._disposed){At(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},J.makeActionFromEvent=function(yt){var Ut=E.extend({},yt);return Ut.type=st[yt.type],Ut},J.dispatchAction=function(yt,Ut){if(this._disposed){At(this.id);return}if(M(Ut)||(Ut={silent:!!Ut}),!ie[yt.type])return;if(!this._model)return;if(this[me]){this._pendingActions.push(yt);return}Ee.call(this,yt,Ut.silent),Ut.flush?this._zr.flush(!0):Ut.flush!==!1&&o.browser.weChat&&this._throttledZrFlush(),ce.call(this,Ut.silent),ne.call(this,Ut.silent)};function Ee(yt,Ut){var pr=yt.type,sr=yt.escapeConnect,ir=ie[pr],Yr=ir.actionInfo,Jr=(Yr.update||"update").split(":"),In=Jr.pop();Jr=Jr[0]!=null&&k(Jr[0]),this[me]=!0;var Nn=[yt],zn=!1;yt.batch&&(zn=!0,Nn=E.map(yt.batch,function($e){return $e=E.defaults(E.extend({},$e),yt),$e.batch=null,$e}));var ei=[],Ai,Pi=pr==="highlight"||pr==="downplay";O(Nn,function($e){Ai=ir.action($e,this._model,this._api),Ai=Ai||E.extend({},$e),Ai.type=Yr.event||Ai.type,ei.push(Ai),Pi?we(this,In,$e,"series"):Jr&&we(this,In,$e,Jr.main,Jr.sub)},this),In!=="none"&&!Pi&&!Jr&&(this[Ie]?(Ne(this),de.update.call(this,yt),this[Ie]=!1):de[In].call(this,yt)),zn?Ai={type:Yr.event||pr,escapeConnect:sr,batch:ei}:Ai=ei[0],this[me]=!1,!Ut&&this._messageCenter.trigger(Ai.type,Ai)}function ce(yt){for(var Ut=this._pendingActions;Ut.length;){var pr=Ut.shift();Ee.call(this,pr,yt)}}function ne(yt){!yt&&this.trigger("updated")}function ee(yt,Ut){yt.on("rendered",function(){Ut.trigger("rendered"),yt.animation.isFinished()&&!Ut[Ie]&&!Ut._scheduler.unfinished&&!Ut._pendingActions.length&&Ut.trigger("finished")})}J.appendData=function(yt){if(this._disposed){At(this.id);return}var Ut=yt.seriesIndex,pr=this.getModel(),sr=pr.getSeriesByIndex(Ut);sr.appendData(yt),this._scheduler.unfinished=!0},J.on=q("on",!1),J.off=q("off",!1),J.one=q("one",!1);function Ae(yt,Ut,pr,sr){for(var ir=Ut==="component",Yr=ir?yt._componentsViews:yt._chartsViews,Jr=ir?yt._componentsMap:yt._chartsMap,In=yt._zr,Nn=yt._api,zn=0;zn<Yr.length;zn++)Yr[zn].__alive=!1;ir?pr.eachComponent(function(Pi,$e){Pi!=="series"&&ei($e)}):pr.eachSeries(ei);function ei(Pi){var $e="_ec_"+Pi.id+"_"+Pi.type,_e=Jr[$e];if(!_e){var Be=k(Pi.type),He=ir?i.getClass(Be.main,Be.sub):c.getClass(Be.sub);_e=new He,_e.init(pr,Nn),Jr[$e]=_e,Yr.push(_e),In.add(_e.group)}Pi.__viewId=_e.__id=$e,_e.__alive=!0,_e.__model=Pi,_e.group.__ecComponentInfo={mainType:Pi.mainType,index:Pi.componentIndex},!ir&&sr.prepareView(_e,Pi,pr,Nn)}for(var zn=0;zn<Yr.length;){var Ai=Yr[zn];Ai.__alive?zn++:(!ir&&Ai.renderTask.dispose(),In.remove(Ai.group),Ai.dispose(pr,Nn),Yr.splice(zn,1),delete Jr[Ai.__id],Ai.__id=Ai.group.__ecComponentInfo=null)}}function Ve(yt){yt.clearColorPalette(),yt.eachSeries(function(Ut){Ut.clearColorPalette()})}function Ke(yt,Ut,pr,sr){Oe(yt,Ut,pr,sr),O(yt._chartsViews,function(ir){ir.__alive=!1}),it(yt,Ut,pr,sr),O(yt._chartsViews,function(ir){ir.__alive||ir.remove(Ut,pr)})}function Oe(yt,Ut,pr,sr,ir){O(ir||yt._componentsViews,function(Yr){var Jr=Yr.__model;Yr.render(Jr,Ut,pr,sr),Et(Jr,Yr)})}function it(yt,Ut,pr,sr,ir){var Yr=yt._scheduler,Jr;Ut.eachSeries(function(In){var Nn=yt._chartsMap[In.__viewId];Nn.__alive=!0;var zn=Nn.renderTask;Yr.updatePayload(zn,sr),ir&&ir.get(In.uid)&&zn.dirty(),Jr|=zn.perform(Yr.getPerformArgs(zn)),Nn.group.silent=!!In.get("silent"),Et(In,Nn),St(In,Nn)}),Yr.unfinished|=Jr,bt(yt,Ut),A(yt._zr.dom,Ut)}function Fe(yt,Ut){O(Bt,function(pr){pr(yt,Ut)})}var ft=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];J._initEvents=function(){O(ft,function(yt){var Ut=function(pr){var sr=this.getModel(),ir=pr.target,Yr,Jr=yt==="globalout";if(Jr)Yr={};else if(ir&&ir.dataIndex!=null){var In=ir.dataModel||sr.getSeriesByIndex(ir.seriesIndex);Yr=In&&In.getDataParams(ir.dataIndex,ir.dataType,ir)||{}}else ir&&ir.eventData&&(Yr=E.extend({},ir.eventData));if(Yr){var Nn=Yr.componentType,zn=Yr.componentIndex;(Nn==="markLine"||Nn==="markPoint"||Nn==="markArea")&&(Nn="series",zn=Yr.seriesIndex);var ei=Nn&&zn!=null&&sr.getComponent(Nn,zn),Ai=ei&&this[ei.mainType==="series"?"_chartsMap":"_componentsMap"][ei.__viewId];Yr.event=pr,Yr.type=yt,this._ecEventProcessor.eventInfo={targetEl:ir,packedEvent:Yr,model:ei,view:Ai},this.trigger(yt,Yr)}};Ut.zrEventfulCallAtLast=!0,this._zr.on(yt,Ut,this)},this),O(st,function(yt,Ut){this._messageCenter.on(Ut,function(pr){this.trigger(Ut,pr)},this)},this)},J.isDisposed=function(){return this._disposed},J.clear=function(){if(this._disposed){At(this.id);return}this.setOption({series:[]},!0)},J.dispose=function(){if(this._disposed){At(this.id);return}this._disposed=!0,h.setAttribute(this.getDom(),Ot,"");var yt=this._api,Ut=this._model;O(this._componentsViews,function(pr){pr.dispose(Ut,yt)}),O(this._chartsViews,function(pr){pr.dispose(Ut,yt)}),this._zr.dispose(),delete or[this.id]},E.mixin($,f);function At(yt){}function bt(yt,Ut){var pr=yt._zr,sr=pr.storage,ir=0;sr.traverse(function(Yr){ir++}),ir>Ut.get("hoverLayerThreshold")&&!o.node&&Ut.eachSeries(function(Yr){if(Yr.preventUsingHoverLayer)return;var Jr=yt._chartsMap[Yr.__viewId];Jr.__alive&&Jr.group.traverse(function(In){In.useHoverLayer=!0})})}function St(yt,Ut){var pr=yt.get("blendMode")||null;Ut.group.traverse(function(sr){sr.isGroup||sr.style.blend!==pr&&sr.setStyle("blend",pr),sr.eachPendingDisplayable&&sr.eachPendingDisplayable(function(ir){ir.setStyle("blend",pr)})})}function Et(yt,Ut){var pr=yt.get("z"),sr=yt.get("zlevel");Ut.group.traverse(function(ir){ir.type!=="group"&&(pr!=null&&(ir.z=pr),sr!=null&&(ir.zlevel=sr))})}function je(yt){var Ut=yt._coordSysMgr;return E.extend(new t(yt),{getCoordinateSystems:E.bind(Ut.getCoordinateSystems,Ut),getComponentByElement:function(pr){for(;pr;){var sr=pr.__ecComponentInfo;if(sr!=null)return yt._model.getComponent(sr.mainType,sr.index);pr=pr.parent}}})}function pe(){this.eventInfo}pe.prototype={constructor:pe,normalizeQuery:function(yt){var Ut={},pr={},sr={};if(E.isString(yt)){var ir=k(yt);Ut.mainType=ir.main||null,Ut.subType=ir.sub||null}else{var Yr=["Index","Name","Id"],Jr={name:1,dataIndex:1,dataType:1};E.each(yt,function(In,Nn){for(var zn=!1,ei=0;ei<Yr.length;ei++){var Ai=Yr[ei],Pi=Nn.lastIndexOf(Ai);if(Pi>0&&Pi===Nn.length-Ai.length){var $e=Nn.slice(0,Pi);$e!=="data"&&(Ut.mainType=$e,Ut[Ai.toLowerCase()]=In,zn=!0)}}Jr.hasOwnProperty(Nn)&&(pr[Nn]=In,zn=!0),zn||(sr[Nn]=In)})}return{cptQuery:Ut,dataQuery:pr,otherQuery:sr}},filter:function(yt,Ut,pr){var sr=this.eventInfo;if(!sr)return!0;var ir=sr.targetEl,Yr=sr.packedEvent,Jr=sr.model,In=sr.view;if(!Jr||!In)return!0;var Nn=Ut.cptQuery,zn=Ut.dataQuery;return ei(Nn,Jr,"mainType")&&ei(Nn,Jr,"subType")&&ei(Nn,Jr,"index","componentIndex")&&ei(Nn,Jr,"name")&&ei(Nn,Jr,"id")&&ei(zn,Yr,"name")&&ei(zn,Yr,"dataIndex")&&ei(zn,Yr,"dataType")&&(!In.filterForExposedEvent||In.filterForExposedEvent(yt,Ut.otherQuery,ir,Yr));function ei(Ai,Pi,$e,_e){return Ai[$e]==null||Pi[_e||$e]===Ai[$e]}},afterTrigger:function(){this.eventInfo=null}};var ie={},st={},Qe=[],ve=[],Bt=[],qt=[],ct={},Wt={},or={},Fr={},er=new Date-0,nr=new Date-0,Ot="_echarts_instance_";function lt(yt){var Ut=0,pr=1,sr=2,ir="__connectUpdateStatus";function Yr(Jr,In){for(var Nn=0;Nn<Jr.length;Nn++){var zn=Jr[Nn];zn[ir]=In}}O(st,function(Jr,In){yt._messageCenter.on(In,function(Nn){if(Fr[yt.group]&&yt[ir]!==Ut){if(Nn&&Nn.escapeConnect)return;var zn=yt.makeActionFromEvent(Nn),ei=[];O(or,function(Ai){Ai!==yt&&Ai.group===yt.group&&ei.push(Ai)}),Yr(ei,Ut),O(ei,function(Ai){Ai[ir]!==pr&&Ai.dispatchAction(zn)}),Yr(ei,sr)}})})}function qe(yt,Ut,pr){var sr=vn(yt);if(sr)return sr;var ir=new $(yt,Ut,pr);return ir.id="ec_"+er++,or[ir.id]=ir,h.setAttribute(yt,Ot,ir.id),lt(ir),ir}function tr(yt){if(E.isArray(yt)){var Ut=yt;yt=null,O(Ut,function(pr){pr.group!=null&&(yt=pr.group)}),yt=yt||"g_"+nr++,O(Ut,function(pr){pr.group=yt})}return Fr[yt]=!0,yt}function xr(yt){Fr[yt]=!1}var Ar=xr;function fr(yt){typeof yt=="string"?yt=or[yt]:yt instanceof $||(yt=vn(yt)),yt instanceof $&&!yt.isDisposed()&&yt.dispose()}function vn(yt){return or[h.getAttribute(yt,Ot)]}function $r(yt){return or[yt]}function Ln(yt,Ut){ct[yt]=Ut}function tt(yt){ve.push(yt)}function nt(yt,Ut){Xt(Qe,yt,Ut,U)}function Te(yt){Bt.push(yt)}function Me(yt,Ut,pr){typeof Ut=="function"&&(pr=Ut,Ut="");var sr=M(yt)?yt.type:[yt,yt={event:Ut}][0];yt.event=(yt.event||sr).toLowerCase(),Ut=yt.event,C(X.test(sr)&&X.test(Ut)),ie[sr]||(ie[sr]={action:pr,actionInfo:yt}),st[Ut]=sr}function Xe(yt,Ut){l.register(yt,Ut)}function at(yt){var Ut=l.get(yt);if(Ut)return Ut.getDimensionsInfo?Ut.getDimensionsInfo():Ut.dimensions.slice()}function zt(yt,Ut){Xt(qt,yt,Ut,G,"layout")}function kt(yt,Ut){Xt(qt,yt,Ut,Y,"visual")}function Xt(yt,Ut,pr,sr,ir){(_(Ut)||M(Ut))&&(pr=Ut,Ut=sr);var Yr=b.wrapStageHandler(pr,ir);return Yr.__prio=Ut,Yr.__raw=pr,yt.push(Yr),Yr}function Dr(yt,Ut){Wt[yt]=Ut}function Pr(yt){return e.extend(yt)}function cn(yt){return i.extend(yt)}function jt(yt){return n.extend(yt)}function gt(yt){return c.extend(yt)}function dt(yt){E.$override("createCanvas",yt)}function Qt(yt,Ut,pr){T.registerMap(yt,Ut,pr)}function Jt(yt){var Ut=T.retrieveMap(yt);return Ut&&Ut[0]&&{geoJson:Ut[0].geoJSON,specialAreas:Ut[0].specialAreas}}kt(Z,v),tt(r),nt(H,u),Dr("default",x),Me({type:"highlight",event:"highlight",update:"highlight"},E.noop),Me({type:"downplay",event:"downplay",update:"downplay"},E.noop),Ln("light",w),Ln("dark",S);var xt={};z.version=R,z.dependencies=B,z.PRIORITY=Le,z.init=qe,z.connect=tr,z.disConnect=xr,z.disconnect=Ar,z.dispose=fr,z.getInstanceByDom=vn,z.getInstanceById=$r,z.registerTheme=Ln,z.registerPreprocessor=tt,z.registerProcessor=nt,z.registerPostUpdate=Te,z.registerAction=Me,z.registerCoordinateSystem=Xe,z.getCoordinateSystemDimensions=at,z.registerLayout=zt,z.registerVisual=kt,z.registerLoading=Dr,z.extendComponentModel=Pr,z.extendComponentView=cn,z.extendSeriesModel=jt,z.extendChartView=gt,z.setCanvasCreator=dt,z.registerMap=Qt,z.getMap=Jt,z.dataTool=xt;var Pt=y("txkQ");(function(){for(var yt in Pt)Pt.hasOwnProperty(yt)&&(z[yt]=Pt[yt])})()},Pw59:function(fe,z,y){"use strict";var D=y("q1tI"),N=y.n(D),L=Object(D.createContext)({});z.a=L},Q7if:function(fe,z,y){var D=y("JEkh"),N=D.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"}}}});fe.exports=N},Q9mQ:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("UADf"),E=y.n(L)},"QB+1":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("Ywus"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},QBsz:function(fe,z){var y=typeof Float32Array=="undefined"?Array:Float32Array;function D(b,w){var S=new y(2);return b==null&&(b=0),w==null&&(w=0),S[0]=b,S[1]=w,S}function N(b,w){return b[0]=w[0],b[1]=w[1],b}function L(b){var w=new y(2);return w[0]=b[0],w[1]=b[1],w}function E(b,w,S){return b[0]=w,b[1]=S,b}function I(b,w,S){return b[0]=w[0]+S[0],b[1]=w[1]+S[1],b}function o(b,w,S,T){return b[0]=w[0]+S[0]*T,b[1]=w[1]+S[1]*T,b}function m(b,w,S){return b[0]=w[0]-S[0],b[1]=w[1]-S[1],b}function f(b){return Math.sqrt(t(b))}var s=f;function t(b){return b[0]*b[0]+b[1]*b[1]}var l=t;function a(b,w,S){return b[0]=w[0]*S[0],b[1]=w[1]*S[1],b}function r(b,w,S){return b[0]=w[0]/S[0],b[1]=w[1]/S[1],b}function u(b,w){return b[0]*w[0]+b[1]*w[1]}function e(b,w,S){return b[0]=w[0]*S,b[1]=w[1]*S,b}function n(b,w){var S=f(w);return S===0?(b[0]=0,b[1]=0):(b[0]=w[0]/S,b[1]=w[1]/S),b}function i(b,w){return Math.sqrt((b[0]-w[0])*(b[0]-w[0])+(b[1]-w[1])*(b[1]-w[1]))}var c=i;function d(b,w){return(b[0]-w[0])*(b[0]-w[0])+(b[1]-w[1])*(b[1]-w[1])}var h=d;function p(b,w){return b[0]=-w[0],b[1]=-w[1],b}function g(b,w,S,T){return b[0]=w[0]+T*(S[0]-w[0]),b[1]=w[1]+T*(S[1]-w[1]),b}function v(b,w,S){var T=w[0],C=w[1];return b[0]=S[0]*T+S[2]*C+S[4],b[1]=S[1]*T+S[3]*C+S[5],b}function A(b,w,S){return b[0]=Math.min(w[0],S[0]),b[1]=Math.min(w[1],S[1]),b}function x(b,w,S){return b[0]=Math.max(w[0],S[0]),b[1]=Math.max(w[1],S[1]),b}z.create=D,z.copy=N,z.clone=L,z.set=E,z.add=I,z.scaleAndAdd=o,z.sub=m,z.len=f,z.length=s,z.lenSquare=t,z.lengthSquare=l,z.mul=a,z.div=r,z.dot=u,z.scale=e,z.normalize=n,z.distance=i,z.dist=c,z.distanceSquare=d,z.distSquare=h,z.negate=p,z.lerp=g,z.applyTransform=v,z.min=A,z.max=x},"QO+J":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.createSensor=void 0;var D=L(y("NohK")),N=y("24YM");function L(I){return I&&I.__esModule?I:{default:I}}var E=function(o){var m=void 0,f=[],s=function(){getComputedStyle(o).position==="static"&&(o.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",t),t()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",N.SensorClassName),e.setAttribute("tabindex",N.SensorTabIndex),e.type="text/html",o.appendChild(e),e.data="about:blank",e},t=(0,D.default)(function(){f.forEach(function(u){u(o)})}),l=function(e){m||(m=s()),f.indexOf(e)===-1&&f.push(e)},a=function(){m&&m.parentNode&&(m.contentDocument&&m.contentDocument.defaultView.removeEventListener("resize",t),m.parentNode.removeChild(m),m=void 0,f=[])},r=function(e){var n=f.indexOf(e);n!==-1&&f.splice(n,1),f.length===0&&m&&a()};return{element:o,bind:l,destroy:a,unbind:r}};z.createSensor=E},"QQZ/":function(fe,z,y){var D=y("Sq3C"),N=y("Z1HP"),L=y("Sxd8"),E=y("dt0z");function I(o,m,f){o=E(o),m=L(m);var s=m?N(o):0;return m&&s<m?D(m-s,f)+o:o}fe.exports=I},QUw5:function(fe,z,y){var D=y("OlYY"),N=D.extend({type:"dataZoom.select"});fe.exports=N},QV2g:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=D;function D(){for(var E,I=[],o=0;o<256;o++){E=o;for(var m=0;m<8;m++)E=E&1?3988292384^E>>>1:E>>>1;I[o]=E}return I}var N=D();function L(E,I,o,m){var f=N,s=m+o;E^=-1;for(var t=m;t<s;t++)E=E>>>8^f[(E^I[t])&255];return E^-1}},QbM5:function(fe,z,y){},Qe9p:function(fe,z,y){var D=y("1RvN"),N={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 L(w){return w=Math.round(w),w<0?0:w>255?255:w}function E(w){return w=Math.round(w),w<0?0:w>360?360:w}function I(w){return w<0?0:w>1?1:w}function o(w){return w.length&&w.charAt(w.length-1)==="%"?L(parseFloat(w)/100*255):L(parseInt(w,10))}function m(w){return w.length&&w.charAt(w.length-1)==="%"?I(parseFloat(w)/100):I(parseFloat(w))}function f(w,S,T){return T<0?T+=1:T>1&&(T-=1),T*6<1?w+(S-w)*T*6:T*2<1?S:T*3<2?w+(S-w)*(2/3-T)*6:w}function s(w,S,T){return w+(S-w)*T}function t(w,S,T,C,O){return w[0]=S,w[1]=T,w[2]=C,w[3]=O,w}function l(w,S){return w[0]=S[0],w[1]=S[1],w[2]=S[2],w[3]=S[3],w}var a=new D(20),r=null;function u(w,S){r&&l(r,S),r=a.put(w,r||S.slice())}function e(w,S){if(!w)return;S=S||[];var T=a.get(w);if(T)return l(S,T);w=w+"";var C=w.replace(/ /g,"").toLowerCase();if(C in N)return l(S,N[C]),u(w,S),S;if(C.charAt(0)==="#"){if(C.length===4){var O=parseInt(C.substr(1),16);if(!(O>=0&&O<=4095)){t(S,0,0,0,1);return}return t(S,(O&3840)>>4|(O&3840)>>8,O&240|(O&240)>>4,O&15|(O&15)<<4,1),u(w,S),S}else if(C.length===7){var O=parseInt(C.substr(1),16);if(!(O>=0&&O<=16777215)){t(S,0,0,0,1);return}return t(S,(O&16711680)>>16,(O&65280)>>8,O&255,1),u(w,S),S}return}var _=C.indexOf("("),M=C.indexOf(")");if(_!==-1&&M+1===C.length){var k=C.substr(0,_),R=C.substr(_+1,M-(_+1)).split(","),B=1;switch(k){case"rgba":if(R.length!==4){t(S,0,0,0,1);return}B=m(R.pop());case"rgb":if(R.length!==3){t(S,0,0,0,1);return}return t(S,o(R[0]),o(R[1]),o(R[2]),B),u(w,S),S;case"hsla":if(R.length!==4){t(S,0,0,0,1);return}return R[3]=m(R[3]),n(R,S),u(w,S),S;case"hsl":if(R.length!==3){t(S,0,0,0,1);return}return n(R,S),u(w,S),S;default:return}}t(S,0,0,0,1);return}function n(w,S){var T=(parseFloat(w[0])%360+360)%360/360,C=m(w[1]),O=m(w[2]),_=O<=.5?O*(C+1):O+C-O*C,M=O*2-_;return S=S||[],t(S,L(f(M,_,T+1/3)*255),L(f(M,_,T)*255),L(f(M,_,T-1/3)*255),1),w.length===4&&(S[3]=w[3]),S}function i(w){if(!w)return;var S=w[0]/255,T=w[1]/255,C=w[2]/255,O=Math.min(S,T,C),_=Math.max(S,T,C),M=_-O,k=(_+O)/2,R,B;if(M===0)R=0,B=0;else{k<.5?B=M/(_+O):B=M/(2-_-O);var P=((_-S)/6+M/2)/M,U=((_-T)/6+M/2)/M,j=((_-C)/6+M/2)/M;S===_?R=j-U:T===_?R=1/3+P-j:C===_&&(R=2/3+U-P),R<0&&(R+=1),R>1&&(R-=1)}var H=[R*360,B,k];return w[3]!=null&&H.push(w[3]),H}function c(w,S){var T=e(w);if(T){for(var C=0;C<3;C++)S<0?T[C]=T[C]*(1-S)|0:T[C]=(255-T[C])*S+T[C]|0,T[C]>255?T[C]=255:w[C]<0&&(T[C]=0);return b(T,T.length===4?"rgba":"rgb")}}function d(w){var S=e(w);if(S)return((1<<24)+(S[0]<<16)+(S[1]<<8)+ +S[2]).toString(16).slice(1)}function h(w,S,T){if(!(S&&S.length)||!(w>=0&&w<=1))return;T=T||[];var C=w*(S.length-1),O=Math.floor(C),_=Math.ceil(C),M=S[O],k=S[_],R=C-O;return T[0]=L(s(M[0],k[0],R)),T[1]=L(s(M[1],k[1],R)),T[2]=L(s(M[2],k[2],R)),T[3]=I(s(M[3],k[3],R)),T}var p=h;function g(w,S,T){if(!(S&&S.length)||!(w>=0&&w<=1))return;var C=w*(S.length-1),O=Math.floor(C),_=Math.ceil(C),M=e(S[O]),k=e(S[_]),R=C-O,B=b([L(s(M[0],k[0],R)),L(s(M[1],k[1],R)),L(s(M[2],k[2],R)),I(s(M[3],k[3],R))],"rgba");return T?{color:B,leftIndex:O,rightIndex:_,value:C}:B}var v=g;function A(w,S,T,C){if(w=e(w),w)return w=i(w),S!=null&&(w[0]=E(S)),T!=null&&(w[1]=m(T)),C!=null&&(w[2]=m(C)),b(n(w),"rgba")}function x(w,S){if(w=e(w),w&&S!=null)return w[3]=I(S),b(w,"rgba")}function b(w,S){if(!w||!w.length)return;var T=w[0]+","+w[1]+","+w[2];return(S==="rgba"||S==="hsva"||S==="hsla")&&(T+=","+w[3]),S+"("+T+")"}z.parse=e,z.lift=c,z.toHex=d,z.fastLerp=h,z.fastMapToColor=p,z.lerp=g,z.mapToColor=v,z.modifyHSL=A,z.modifyAlpha=x,z.stringify=b},Qi1f:function(fe,z,y){"use strict";y.d(z,"g",function(){return u}),y.d(z,"c",function(){return e}),y.d(z,"a",function(){return i}),y.d(z,"b",function(){return c}),y.d(z,"d",function(){return d}),y.d(z,"e",function(){return h}),y.d(z,"f",function(){return g});var D=y("VTBJ"),N=y("U8pU"),L=y("u3cA"),E=y("q1tI"),I=y.n(E),o=y("Kwbf"),m=y("MNnm"),f="rc-util-key";function s(v){if(v.attachTo)return v.attachTo;var A=document.querySelector("head");return A||document.body}function t(v){var A,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(m.a)())return null;var b=document.createElement("style");if((A=x.csp)===null||A===void 0?void 0:A.nonce){var w;b.nonce=(w=x.csp)===null||w===void 0?void 0:w.nonce}b.innerHTML=v;var S=s(x),T=S.firstChild;return x.prepend&&S.prepend?S.prepend(b):x.prepend&&T?S.insertBefore(b,T):S.appendChild(b),b}var l=new Map;function a(v,A){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=s(x);if(!l.has(b)){var w=t("",x),S=w.parentNode;l.set(b,S),S.removeChild(w)}var T=Array.from(l.get(b).children).find(function(k){return k.tagName==="STYLE"&&k[f]===A});if(T){var C,O;if(((C=x.csp)===null||C===void 0?void 0:C.nonce)&&T.nonce!==((O=x.csp)===null||O===void 0?void 0:O.nonce)){var _;T.nonce=(_=x.csp)===null||_===void 0?void 0:_.nonce}return T.innerHTML!==v&&(T.innerHTML=v),T}var M=t(v,x);return M[f]=A,M}var r=y("Pw59");function u(v,A){Object(o.a)(v,"[@ant-design/icons] ".concat(A))}function e(v){return Object(N.a)(v)==="object"&&typeof v.name=="string"&&typeof v.theme=="string"&&(Object(N.a)(v.icon)==="object"||typeof v.icon=="function")}function n(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(v).reduce(function(A,x){var b=v[x];switch(x){case"class":A.className=b,delete A.class;break;default:A[x]=b}return A},{})}function i(v,A,x){return x?I.a.createElement(v.tag,Object(D.a)(Object(D.a)({key:A},n(v.attrs)),x),(v.children||[]).map(function(b,w){return i(b,"".concat(A,"-").concat(v.tag,"-").concat(w))})):I.a.createElement(v.tag,Object(D.a)({key:A},n(v.attrs)),(v.children||[]).map(function(b,w){return i(b,"".concat(A,"-").concat(v.tag,"-").concat(w))}))}function c(v){return Object(L.generate)(v)[0]}function d(v){return v?Array.isArray(v)?v:[v]:[]}var h={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},p=`
|
|
|
.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);
|
|
|
}
|
|
|
}
|
|
|
`,g=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,x=Object(E.useContext)(r.a),b=x.csp;Object(E.useEffect)(function(){a(A,"@ant-design-icons",{prepend:!0,csp:b})},[])}},Qs3X:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("X+im"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},Qs9O:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},QuXc:function(fe,z){var y=function(L){this.colorStops=L||[]};y.prototype={constructor:y,addColorStop:function(L,E){this.colorStops.push({offset:L,color:E})}};var D=y;fe.exports=D},Qvb6:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("ItGF"),E=y("B9fm"),I=y("gvm7"),o=y("7aKB"),m=y("OELB"),f=y("IwbS"),s=y("Ez2D"),t=y("+TT/"),l=y("Qxkt"),a=y("F9bG"),r=y("aX7z"),u=y("/y7N"),e=y("4NO4"),n=e.getTooltipRenderMode,i=N.bind,c=N.each,d=m.parsePercent,h=new f.Rect({shape:{x:-1,y:-1,width:2,height:2}}),p=D.extendComponentView({type:"tooltip",init:function(S,T){if(L.node)return;var C=S.getComponent("tooltip"),O=C.get("renderMode");this._renderMode=n(O);var _;this._renderMode==="html"?(_=new E(T.getDom(),T,{appendToBody:C.get("appendToBody",!0)}),this._newLine="<br/>"):(_=new I(T),this._newLine=`
|
|
|
`),this._tooltipContent=_},render:function(S,T,C){if(L.node)return;this.group.removeAll(),this._tooltipModel=S,this._ecModel=T,this._api=C,this._lastDataByCoordSys=null,this._alwaysShowContent=S.get("alwaysShowContent");var O=this._tooltipContent;O.update(),O.setEnterable(S.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var S=this._tooltipModel,T=S.get("triggerOn");a.register("itemTooltip",this._api,i(function(C,O,_){T!=="none"&&(T.indexOf(C)>=0?this._tryShow(O,_):C==="leave"&&this._hide(_))},this))},_keepShow:function(){var S=this._tooltipModel,T=this._ecModel,C=this._api;if(this._lastX!=null&&this._lastY!=null&&S.get("triggerOn")!=="none"){var O=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!C.isDisposed()&&O.manuallyShowTip(S,T,C,{x:O._lastX,y:O._lastY})})}},manuallyShowTip:function(S,T,C,O){if(O.from===this.uid||L.node)return;var _=v(O,C);this._ticket="";var M=O.dataByCoordSys;if(O.tooltip&&O.x!=null&&O.y!=null){var k=h;k.position=[O.x,O.y],k.update(),k.tooltip=O.tooltip,this._tryShow({offsetX:O.x,offsetY:O.y,target:k},_)}else if(M)this._tryShow({offsetX:O.x,offsetY:O.y,position:O.position,dataByCoordSys:O.dataByCoordSys,tooltipOption:O.tooltipOption},_);else if(O.seriesIndex!=null){if(this._manuallyAxisShowTip(S,T,C,O))return;var R=s(O,T),B=R.point[0],P=R.point[1];B!=null&&P!=null&&this._tryShow({offsetX:B,offsetY:P,position:O.position,target:R.el},_)}else O.x!=null&&O.y!=null&&(C.dispatchAction({type:"updateAxisPointer",x:O.x,y:O.y}),this._tryShow({offsetX:O.x,offsetY:O.y,position:O.position,target:C.getZr().findHover(O.x,O.y).target},_))},manuallyHideTip:function(S,T,C,O){var _=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&_.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,O.from!==this.uid&&this._hide(v(O,C))},_manuallyAxisShowTip:function(S,T,C,O){var _=O.seriesIndex,M=O.dataIndex,k=T.getComponent("axisPointer").coordSysAxesInfo;if(_==null||M==null||k==null)return;var R=T.getSeriesByIndex(_);if(!R)return;var B=R.getData(),S=g([B.getItemModel(M),R,(R.coordinateSystem||{}).model,S]);return S.get("trigger")!=="axis"?void 0:(C.dispatchAction({type:"updateAxisPointer",seriesIndex:_,dataIndex:M,position:O.position}),!0)},_tryShow:function(S,T){var C=S.target,O=this._tooltipModel;if(!O)return;this._lastX=S.offsetX,this._lastY=S.offsetY;var _=S.dataByCoordSys;_&&_.length?this._showAxisTooltip(_,S):C&&C.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(S,C,T)):C&&C.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(S,C,T)):(this._lastDataByCoordSys=null,this._hide(T))},_showOrMove:function(S,T){var C=S.get("showDelay");T=N.bind(T,this),clearTimeout(this._showTimout),C>0?this._showTimout=setTimeout(T,C):T()},_showAxisTooltip:function(S,T){var C=this._ecModel,O=this._tooltipModel,_=[T.offsetX,T.offsetY],M=[],k=[],R=g([T.tooltipOption,O]),B=this._renderMode,P=this._newLine,U={};c(S,function(H){c(H.dataByAxis,function(W){var G=C.getComponent(W.axisDim+"Axis",W.axisIndex),V=W.value,Z=[];if(!G||V==null)return;var Y=u.getValueLabel(V,G.axis,C,W.seriesDataIndices,W.valueLabelOpt);N.each(W.seriesDataIndices,function(oe){var ue=C.getSeriesByIndex(oe.seriesIndex),Le=oe.dataIndexInside,me=ue&&ue.getDataParams(Le);if(me.axisDim=W.axisDim,me.axisIndex=W.axisIndex,me.axisType=W.axisType,me.axisId=W.axisId,me.axisValue=r.getAxisRawValue(G.axis,V),me.axisValueLabel=Y,me){k.push(me);var Ie=ue.formatTooltip(Le,!0,null,B),X;if(N.isObject(Ie)){X=Ie.html;var q=Ie.markers;N.merge(U,q)}else X=Ie;Z.push(X)}});var Q=Y;B!=="html"?M.push(Z.join(P)):M.push((Q?o.encodeHTML(Q)+P:"")+Z.join(P))})},this),M.reverse(),M=M.join(this._newLine+this._newLine);var j=T.position;this._showOrMove(R,function(){this._updateContentNotChangedOnAxis(S)?this._updatePosition(R,j,_[0],_[1],this._tooltipContent,k):this._showTooltipContent(R,M,k,Math.random(),_[0],_[1],j,void 0,U)})},_showSeriesItemTooltip:function(S,T,C){var O=this._ecModel,_=T.seriesIndex,M=O.getSeriesByIndex(_),k=T.dataModel||M,R=T.dataIndex,B=T.dataType,P=k.getData(B),U=g([P.getItemModel(R),k,M&&(M.coordinateSystem||{}).model,this._tooltipModel]),j=U.get("trigger");if(j!=null&&j!=="item")return;var H=k.getDataParams(R,B),W=k.formatTooltip(R,!1,B,this._renderMode),G,V;N.isObject(W)?(G=W.html,V=W.markers):(G=W,V=null);var Z="item_"+k.name+"_"+R;this._showOrMove(U,function(){this._showTooltipContent(U,G,H,Z,S.offsetX,S.offsetY,S.position,S.target,V)}),C({type:"showTip",dataIndexInside:R,dataIndex:P.getRawIndex(R),seriesIndex:_,from:this.uid})},_showComponentItemTooltip:function(S,T,C){var O=T.tooltip;if(typeof O=="string"){var _=O;O={content:_,formatter:_}}var M=new l(O,this._tooltipModel,this._ecModel),k=M.get("content"),R=Math.random();this._showOrMove(M,function(){this._showTooltipContent(M,k,M.get("formatterParams")||{},R,S.offsetX,S.offsetY,S.position,T)}),C({type:"showTip",from:this.uid})},_showTooltipContent:function(S,T,C,O,_,M,k,R,B){if(this._ticket="",!S.get("showContent")||!S.get("show"))return;var P=this._tooltipContent,U=S.get("formatter");k=k||S.get("position");var j=T;if(U&&typeof U=="string")j=o.formatTpl(U,C,!0);else if(typeof U=="function"){var H=i(function(W,G){W===this._ticket&&(P.setContent(G,B,S),this._updatePosition(S,k,_,M,P,C,R))},this);this._ticket=O,j=U(C,O,H)}P.setContent(j,B,S),P.show(S),this._updatePosition(S,k,_,M,P,C,R)},_updatePosition:function(S,T,C,O,_,M,k){var R=this._api.getWidth(),B=this._api.getHeight();T=T||S.get("position");var P=_.getSize(),U=S.get("align"),j=S.get("verticalAlign"),H=k&&k.getBoundingRect().clone();if(k&&H.applyTransform(k.transform),typeof T=="function"&&(T=T([C,O],M,_.el,H,{viewSize:[R,B],contentSize:P.slice()})),N.isArray(T))C=d(T[0],R),O=d(T[1],B);else if(N.isObject(T)){T.width=P[0],T.height=P[1];var W=t.getLayoutRect(T,{width:R,height:B});C=W.x,O=W.y,U=null,j=null}else if(typeof T=="string"&&k){var G=b(T,H,P);C=G[0],O=G[1]}else{var G=A(C,O,_,R,B,U?null:20,j?null:20);C=G[0],O=G[1]}if(U&&(C-=w(U)?P[0]/2:U==="right"?P[0]:0),j&&(O-=w(j)?P[1]/2:j==="bottom"?P[1]:0),S.get("confine")){var G=x(C,O,_,R,B);C=G[0],O=G[1]}_.moveTo(C,O)},_updateContentNotChangedOnAxis:function(S){var T=this._lastDataByCoordSys,C=!!T&&T.length===S.length;return C&&c(T,function(O,_){var M=O.dataByAxis||{},k=S[_]||{},R=k.dataByAxis||[];C&=M.length===R.length,C&&c(M,function(B,P){var U=R[P]||{},j=B.seriesDataIndices||[],H=U.seriesDataIndices||[];C&=B.value===U.value&&B.axisType===U.axisType&&B.axisId===U.axisId&&j.length===H.length,C&&c(j,function(W,G){var V=H[G];C&=W.seriesIndex===V.seriesIndex&&W.dataIndex===V.dataIndex})})}),this._lastDataByCoordSys=S,!!C},_hide:function(S){this._lastDataByCoordSys=null,S({type:"hideTip",from:this.uid})},dispose:function(S,T){if(L.node)return;this._tooltipContent.dispose(),a.unregister("itemTooltip",T)}});function g(S){for(var T=S.pop();S.length;){var C=S.pop();C&&(l.isInstance(C)&&(C=C.get("tooltip",!0)),typeof C=="string"&&(C={formatter:C}),T=new l(C,T,T.ecModel))}return T}function v(S,T){return S.dispatchAction||N.bind(T.dispatchAction,T)}function A(S,T,C,O,_,M,k){var R=C.getOuterSize(),B=R.width,P=R.height;return M!=null&&(S+B+M>O?S-=B+M:S+=M),k!=null&&(T+P+k>_?T-=P+k:T+=k),[S,T]}function x(S,T,C,O,_){var M=C.getOuterSize(),k=M.width,R=M.height;return S=Math.min(S+k,O)-k,T=Math.min(T+R,_)-R,S=Math.max(S,0),T=Math.max(T,0),[S,T]}function b(S,T,C){var O=C[0],_=C[1],M=5,k=0,R=0,B=T.width,P=T.height;switch(S){case"inside":k=T.x+B/2-O/2,R=T.y+P/2-_/2;break;case"top":k=T.x+B/2-O/2,R=T.y-_-M;break;case"bottom":k=T.x+B/2-O/2,R=T.y+P+M;break;case"left":k=T.x-O-M,R=T.y+P/2-_/2;break;case"right":k=T.x+B+M,R=T.y+P/2-_/2}return[k,R]}function w(S){return S==="center"||S==="middle"}fe.exports=p},Qxkt:function(fe,z,y){var D=y("bYtY"),N=y("ItGF"),L=y("4NO4"),E=L.makeInner,I=y("Yl7c"),o=I.enableClassExtend,m=I.enableClassCheck,f=y("OQFs"),s=y("m9t5"),t=y("/iHx"),l=y("VR9l"),a=D.mixin,r=E();function u(c,d,h){this.parentModel=d,this.ecModel=h,this.option=c}u.prototype={constructor:u,init:null,mergeOption:function(c){D.merge(this.option,c,!0)},get:function(c,d){return c==null?this.option:e(this.option,this.parsePath(c),!d&&n(this,c))},getShallow:function(c,d){var h=this.option,p=h==null?h:h[c],g=!d&&n(this,c);return p==null&&g&&(p=g.getShallow(c)),p},getModel:function(c,d){var h=c==null?this.option:e(this.option,c=this.parsePath(c)),p;return d=d||(p=n(this,c))&&p.getModel(c),new u(h,d,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var c=this.constructor;return new c(D.clone(this.option))},setReadOnly:function(c){},parsePath:function(c){return typeof c=="string"&&(c=c.split(".")),c},customizeGetParent:function(c){r(this).getParent=c},isAnimationEnabled:function(){if(!N.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function e(c,d,h){for(var p=0;p<d.length;p++){if(!d[p])continue;if(c=c&&typeof c=="object"?c[d[p]]:null,c==null)break}return c==null&&h&&(c=h.get(d)),c}function n(c,d){var h=r(c).getParent;return h?h.call(c,d):c.parentModel}o(u),m(u),a(u,f),a(u,s),a(u,t),a(u,l);var i=u;fe.exports=i},QyFq:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},QzjZ:function(fe,z,y){var D=y("S/Yl"),N=y("IDmD");function L(E,I){var o=[];return E.eachComponent("singleAxis",function(m,f){var s=new D(m,E,I);s.name="single_"+f,s.resize(m,I),m.coordinateSystem=s,o.push(s)}),E.eachSeries(function(m){if(m.get("coordinateSystem")==="singleAxis"){var f=E.queryComponents({mainType:"singleAxis",index:m.get("singleAxisIndex"),id:m.get("singleAxisId")})[0];m.coordinateSystem=f&&f.coordinateSystem}}),o}N.register("single",{create:L,dimensions:D.prototype.dimensions})},R4Th:function(fe,z,y){var D=y("ProS"),N=y("9wZj"),L=y("yO87"),E=y("Fofx"),I=y("h8O9"),o=D.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new N(L)},render:function(m,f,s){var t=m.getData(),l=this._symbolDraw;l.updateData(t),this.group.add(l.group)},updateTransform:function(m,f,s){var t=m.getData();this.group.dirty();var l=I().reset(m);l.progress&&l.progress({start:0,end:t.count()},t),this._symbolDraw.updateLayout(t)},_updateGroupTransform:function(m){var f=m.coordinateSystem;f&&f.getRoamTransform&&(this.group.transform=E.clone(f.getRoamTransform()),this.group.decomposeTransform())},remove:function(m,f){this._symbolDraw&&this._symbolDraw.remove(f)},dispose:function(){}});fe.exports=o},R9oj:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("pwpV"),E=y.n(L)},RBEP:function(fe,z,y){for(var D=y("ProS"),N=y("VaxA"),L=function(){},E=["treemapZoomToNode","treemapRender","treemapMove"],I=0;I<E.length;I++)D.registerAction({type:E[I],update:"updateView"},L);D.registerAction({type:"treemapRootToNode",update:"updateView"},function(o,m){m.eachComponent({mainType:"series",subType:"treemap",query:o},f);function f(s,t){var l=["treemapZoomToNode","treemapRootToNode"],a=N.retrieveTargetInfo(o,l,s);if(a){var r=s.getViewRoot();r&&(o.direction=N.aboveViewRoot(r,a.node)?"rollUp":"drillDown"),s.resetViewRoot(a.node)}}})},RCxd:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="ExclamationCircleOutlined";var m=z.a=N.forwardRef(o)},RDYZ:function(fe,z,y){var D=y("dMvE");function N(E){this._target=E.target,this._life=E.life||1e3,this._delay=E.delay||0,this._initialized=!1,this.loop=E.loop==null?!1:E.loop,this.gap=E.gap||0,this.easing=E.easing||"Linear",this.onframe=E.onframe,this.ondestroy=E.ondestroy,this.onrestart=E.onrestart,this._pausedTime=0,this._paused=!1}N.prototype={constructor:N,step:function(I,o){if(this._initialized||(this._startTime=I+this._delay,this._initialized=!0),this._paused){this._pausedTime+=o;return}var m=(I-this._startTime-this._pausedTime)/this._life;if(m<0)return;m=Math.min(m,1);var f=this.easing,s=typeof f=="string"?D[f]:f,t=typeof s=="function"?s(m):m;return this.fire("frame",t),m===1?this.loop?(this.restart(I),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(I){var o=(I-this._startTime-this._pausedTime)%this._life;this._startTime=I-o+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(I,o){I="on"+I,this[I]&&this[I](this._target,o)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var L=N;fe.exports=L},RELg:function(fe,z,y){var D=y("MFOe"),N=D.Global;fe.exports={name:"oldIE-userDataStorage",write:m,read:f,each:s,remove:t,clearAll:l};var L="storejs",E=N.document,I=u(),o=(N.navigator?N.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function m(e,n){if(o)return;var i=r(e);I(function(c){c.setAttribute(i,n),c.save(L)})}function f(e){if(o)return;var n=r(e),i=null;return I(function(c){i=c.getAttribute(n)}),i}function s(e){I(function(n){for(var i=n.XMLDocument.documentElement.attributes,c=i.length-1;c>=0;c--){var d=i[c];e(n.getAttribute(d.name),d.name)}})}function t(e){var n=r(e);I(function(i){i.removeAttribute(n),i.save(L)})}function l(){I(function(e){var n=e.XMLDocument.documentElement.attributes;e.load(L);for(var i=n.length-1;i>=0;i--)e.removeAttribute(n[i].name);e.save(L)})}var a=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function r(e){return e.replace(/^\d/,"___$&").replace(a,"___")}function u(){if(!E||!E.documentElement||!E.documentElement.addBehavior)return null;var e="script",n,i,c;try{i=new ActiveXObject("htmlfile"),i.open(),i.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),i.close(),n=i.w.frames[0].document,c=n.createElement("div")}catch(d){c=E.createElement("div"),n=E.body}return function(d){var h=[].slice.call(arguments,0);h.unshift(c),n.appendChild(c),c.addBehavior("#default#userData"),c.load(L),d.apply(this,h),n.removeChild(c);return}}},RPvy:function(fe,z,y){var D=y("ProS"),N=y("VaxA"),L="sunburstRootToNode";D.registerAction({type:L,update:"updateView"},function(o,m){m.eachComponent({mainType:"series",subType:"sunburst",query:o},f);function f(s,t){var l=N.retrieveTargetInfo(o,[L],s);if(l){var a=s.getViewRoot();a&&(o.direction=N.aboveViewRoot(a,l.node)?"rollUp":"drillDown"),s.resetViewRoot(l.node)}}});var E="sunburstHighlight";D.registerAction({type:E,update:"updateView"},function(o,m){m.eachComponent({mainType:"series",subType:"sunburst",query:o},f);function f(s,t){var l=N.retrieveTargetInfo(o,[E],s);l&&(o.highlight=l.node)}});var I="sunburstUnhighlight";D.registerAction({type:I,update:"updateView"},function(o,m){m.eachComponent({mainType:"series",subType:"sunburst",query:o},f);function f(s,t){o.unhighlight=!0}})},RSch:function(fe,z,y){var D=y("IwbS"),N=y("bYtY");function L(o,m,f){D.Group.call(this),this._createPolyline(o,m,f)}var E=L.prototype;E._createPolyline=function(o,m,f){var s=o.getItemLayout(m),t=new D.Polyline({shape:{points:s}});this.add(t),this._updateCommonStl(o,m,f)},E.updateData=function(o,m,f){var s=o.hostModel,t=this.childAt(0),l={shape:{points:o.getItemLayout(m)}};D.updateProps(t,l,s,m),this._updateCommonStl(o,m,f)},E._updateCommonStl=function(o,m,f){var s=this.childAt(0),t=o.getItemModel(m),l=o.getItemVisual(m,"color"),a=f&&f.lineStyle,r=f&&f.hoverLineStyle;(!f||o.hasItemOption)&&(a=t.getModel("lineStyle").getLineStyle(),r=t.getModel("emphasis.lineStyle").getLineStyle()),s.useStyle(N.defaults({strokeNoScale:!0,fill:"none",stroke:l},a)),s.hoverStyle=r,D.setHoverStyle(this)},E.updateLayout=function(o,m){var f=this.childAt(0);f.setShape("points",o.getItemLayout(m))},N.inherits(L,D.Group);var I=L;fe.exports=I},RXMa:function(fe,z,y){var D=y("y+Vt"),N=D.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(E,I){var o=I.cx,m=I.cy,f=Math.PI*2;E.moveTo(o+I.r,m),E.arc(o,m,I.r,0,f,!1),E.moveTo(o+I.r0,m),E.arc(o,m,I.r0,0,f,!0)}});fe.exports=N},RZPm:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("JgUQ")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="FileOutlined";var f=E.forwardRef(m);z.default=f},RlCK:function(fe,z,y){var D=y("ProS"),N=y("bYtY");function L(E,I,o){var m={},f=E==="toggleSelected",s;return o.eachComponent("legend",function(t){f&&s!=null?t[s?"select":"unSelect"](I.name):E==="allSelect"||E==="inverseSelect"?t[E]():(t[E](I.name),s=t.isSelected(I.name));var l=t.getData();N.each(l,function(a){var r=a.get("name");if(r===`
|
|
|
`||r==="")return;var u=t.isSelected(r);m.hasOwnProperty(r)?m[r]=m[r]&&u:m[r]=u})}),E==="allSelect"||E==="inverseSelect"?{selected:m}:{name:I.name,selected:m}}D.registerAction("legendToggleSelect","legendselectchanged",N.curry(L,"toggleSelected")),D.registerAction("legendAllSelect","legendselectall",N.curry(L,"allSelect")),D.registerAction("legendInverseSelect","legendinverseselect",N.curry(L,"inverseSelect")),D.registerAction("legendSelect","legendselected",N.curry(L,"select")),D.registerAction("legendUnSelect","legendunselected",N.curry(L,"unSelect"))},RotF:function(fe,z,y){fe.exports=y("LSTS")},Rx6q:function(fe,z){function y(D){var N=D.getRect(),L=D.getRangeInfo();return{coordSys:{type:"calendar",x:N.x,y:N.y,width:N.width,height:N.height,cellWidth:D.getCellWidth(),cellHeight:D.getCellHeight(),rangeInfo:{start:L.start,end:L.end,weeks:L.weeks,dayCount:L.allDay}},api:{coord:function(E,I){return D.dataToPoint(E,I)}}}}fe.exports=y},"S/Yl":function(fe,z,y){var D=y("Zvw2"),N=y("aX7z"),L=y("+TT/"),E=L.getLayoutRect,I=y("bYtY"),o=I.each;function m(s,t,l){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(s,t,l),this.model=s}m.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:m,_init:function(s,t,l){var a=this.dimension,r=new D(a,N.createScaleByModel(s),[0,0],s.get("type"),s.get("position")),u=r.type==="category";r.onBand=u&&s.get("boundaryGap"),r.inverse=s.get("inverse"),r.orient=s.get("orient"),s.axis=r,r.model=s,r.coordinateSystem=this,this._axis=r},update:function(s,t){s.eachSeries(function(l){if(l.coordinateSystem===this){var a=l.getData();o(a.mapDimension(this.dimension,!0),function(r){this._axis.scale.unionExtentFromData(a,r)},this),N.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(s,t){this._rect=E({left:s.get("left"),top:s.get("top"),right:s.get("right"),bottom:s.get("bottom"),width:s.get("width"),height:s.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var s=this._rect,t=this._axis,l=t.isHorizontal(),a=l?[0,s.width]:[0,s.height],r=t.reverse?1:0;t.setExtent(a[r],a[1-r]),this._updateAxisTransform(t,l?s.x:s.y)},_updateAxisTransform:function(s,t){var l=s.getExtent(),a=l[0]+l[1],r=s.isHorizontal();s.toGlobalCoord=r?function(u){return u+t}:function(u){return a-u+t},s.toLocalCoord=r?function(u){return u-t}:function(u){return a-u+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(s){var t=this.getRect(),l=this.getAxis(),a=l.orient;return a==="horizontal"?l.contain(l.toLocalCoord(s[0]))&&s[1]>=t.y&&s[1]<=t.y+t.height:l.contain(l.toLocalCoord(s[1]))&&s[0]>=t.y&&s[0]<=t.y+t.height},pointToData:function(s){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(s[t.orient==="horizontal"?0:1]))]},dataToPoint:function(s){var t=this.getAxis(),l=this.getRect(),a=[],r=t.orient==="horizontal"?0:1;return s instanceof Array&&(s=s[0]),a[r]=t.toGlobalCoord(t.dataToCoord(+s)),a[1-r]=r===0?l.y+l.height/2:l.x+l.width/2,a}};var f=m;fe.exports=f},S6kV:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return D.mode.OFB=function(){var N=D.lib.BlockCipherMode.extend(),L=N.Encryptor=N.extend({processBlock:function(I,o){var m=this._cipher,f=m.blockSize,s=this._iv,t=this._keystream;s&&(t=this._keystream=s.slice(0),this._iv=void 0),m.encryptBlock(t,0);for(var l=0;l<f;l++)I[o+l]^=t[l]}});return N.Decryptor=L,N}(),D.mode.OFB})},"SA+Z":function(fe,z,y){var D=y("wTVA"),N=y("EbDI"),L=y("ZhPi"),E=y("wkBT");function I(o){return D(o)||N(o)||L(o)||E()}fe.exports=I,fe.exports.__esModule=!0,fe.exports.default=fe.exports},"SA4+":function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("IwbS"),I=y("zYTA"),o=y("bYtY");function m(l,a,r){var u=l[1]-l[0];a=o.map(a,function(i){return{interval:[(i.interval[0]-l[0])/u,(i.interval[1]-l[0])/u]}});var e=a.length,n=0;return function(i){for(var c=n;c<e;c++){var d=a[c].interval;if(d[0]<=i&&i<=d[1]){n=c;break}}if(c===e)for(var c=n-1;c>=0;c--){var d=a[c].interval;if(d[0]<=i&&i<=d[1]){n=c;break}}return c>=0&&c<e&&r[c]}}function f(l,a){var r=l[1]-l[0];return a=[(a[0]-l[0])/r,(a[1]-l[0])/r],function(u){return u>=a[0]&&u<=a[1]}}function s(l){var a=l.dimensions;return a[0]==="lng"&&a[1]==="lat"}var t=L.extendChartView({type:"heatmap",render:function(l,a,r){var u;a.eachComponent("visualMap",function(n){n.eachTargetSeries(function(i){i===l&&(u=n)})}),this.group.removeAll(),this._incrementalDisplayable=null;var e=l.coordinateSystem;e.type==="cartesian2d"||e.type==="calendar"?this._renderOnCartesianAndCalendar(l,r,0,l.getData().count()):s(e)&&this._renderOnGeo(e,l,u,r)},incrementalPrepareRender:function(l,a,r){this.group.removeAll()},incrementalRender:function(l,a,r,u){var e=a.coordinateSystem;e&&this._renderOnCartesianAndCalendar(a,u,l.start,l.end,!0)},_renderOnCartesianAndCalendar:function(l,a,r,u,e){var n=l.coordinateSystem,i,c;if(n.type==="cartesian2d"){var d=n.getAxis("x"),h=n.getAxis("y");i=d.getBandWidth(),c=h.getBandWidth()}for(var p=this.group,g=l.getData(),v="itemStyle",A="emphasis.itemStyle",x="label",b="emphasis.label",w=l.getModel(v).getItemStyle(["color"]),S=l.getModel(A).getItemStyle(),T=l.getModel(x),C=l.getModel(b),O=n.type,_=O==="cartesian2d"?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=r;M<u;M++){var k;if(O==="cartesian2d"){if(isNaN(g.get(_[2],M)))continue;var R=n.dataToPoint([g.get(_[0],M),g.get(_[1],M)]);k=new E.Rect({shape:{x:Math.floor(Math.round(R[0])-i/2),y:Math.floor(Math.round(R[1])-c/2),width:Math.ceil(i),height:Math.ceil(c)},style:{fill:g.getItemVisual(M,"color"),opacity:g.getItemVisual(M,"opacity")}})}else{if(isNaN(g.get(_[1],M)))continue;k=new E.Rect({z2:1,shape:n.dataToRect([g.get(_[0],M)]).contentShape,style:{fill:g.getItemVisual(M,"color"),opacity:g.getItemVisual(M,"opacity")}})}var B=g.getItemModel(M);g.hasItemOption&&(w=B.getModel(v).getItemStyle(["color"]),S=B.getModel(A).getItemStyle(),T=B.getModel(x),C=B.getModel(b));var P=l.getRawValue(M),U="-";P&&P[2]!=null&&(U=P[2]),E.setLabelStyle(w,S,T,C,{labelFetcher:l,labelDataIndex:M,defaultText:U,isRectText:!0}),k.setStyle(w),E.setHoverStyle(k,g.hasItemOption?S:o.extend({},S)),k.incremental=e,e&&(k.useHoverLayer=!0),p.add(k),g.setItemGraphicEl(M,k)}},_renderOnGeo:function(l,a,r,u){var e=r.targetVisuals.inRange,n=r.targetVisuals.outOfRange,i=a.getData(),c=this._hmLayer||this._hmLayer||new I;c.blurSize=a.get("blurSize"),c.pointSize=a.get("pointSize"),c.minOpacity=a.get("minOpacity"),c.maxOpacity=a.get("maxOpacity");var d=l.getViewRect().clone(),h=l.getRoamTransform();d.applyTransform(h);var p=Math.max(d.x,0),g=Math.max(d.y,0),v=Math.min(d.width+d.x,u.getWidth()),A=Math.min(d.height+d.y,u.getHeight()),x=v-p,b=A-g,w=[i.mapDimension("lng"),i.mapDimension("lat"),i.mapDimension("value")],S=i.mapArray(w,function(_,M,k){var R=l.dataToPoint([_,M]);return R[0]-=p,R[1]-=g,R.push(k),R}),T=r.getExtent(),C=r.type==="visualMap.continuous"?f(T,r.option.range):m(T,r.getPieceList(),r.option.selected);c.update(S,x,b,e.color.getNormalizer(),{inRange:e.color.getColorMapper(),outOfRange:n.color.getColorMapper()},C);var O=new E.Image({style:{width:x,height:b,x:p,y:g,image:c.canvas},silent:!0});this.group.add(O)},dispose:function(){}});fe.exports=t},SA8n:function(fe,z,y){var D=y("Sj9i"),N=y("QBsz"),L=y("U/Mo"),E=L.getSymbolSize,I=[],o=[],m=[],f=D.quadraticAt,s=N.distSquare,t=Math.abs;function l(r,u,e){for(var n=r[0],i=r[1],c=r[2],d=Infinity,h,p=e*e,g=.1,v=.1;v<=.9;v+=.1){I[0]=f(n[0],i[0],c[0],v),I[1]=f(n[1],i[1],c[1],v);var A=t(s(I,u)-p);A<d&&(d=A,h=v)}for(var x=0;x<32;x++){var b=h+g;o[0]=f(n[0],i[0],c[0],h),o[1]=f(n[1],i[1],c[1],h),m[0]=f(n[0],i[0],c[0],b),m[1]=f(n[1],i[1],c[1],b);var A=s(o,u)-p;if(t(A)<.01)break;var w=s(m,u)-p;g/=2,A<0?w>=0?h=h+g:h=h-g:w>=0?h=h-g:h=h+g}return h}function a(r,u){var e=[],n=D.quadraticSubdivide,i=[[],[],[]],c=[[],[]],d=[];u/=2,r.eachEdge(function(h,p){var g=h.getLayout(),v=h.getVisual("fromSymbol"),A=h.getVisual("toSymbol");g.__original||(g.__original=[N.clone(g[0]),N.clone(g[1])],g[2]&&g.__original.push(N.clone(g[2])));var x=g.__original;if(g[2]!=null){if(N.copy(i[0],x[0]),N.copy(i[1],x[2]),N.copy(i[2],x[1]),v&&v!=="none"){var b=E(h.node1),w=l(i,x[0],b*u);n(i[0][0],i[1][0],i[2][0],w,e),i[0][0]=e[3],i[1][0]=e[4],n(i[0][1],i[1][1],i[2][1],w,e),i[0][1]=e[3],i[1][1]=e[4]}if(A&&A!=="none"){var b=E(h.node2),w=l(i,x[1],b*u);n(i[0][0],i[1][0],i[2][0],w,e),i[1][0]=e[1],i[2][0]=e[2],n(i[0][1],i[1][1],i[2][1],w,e),i[1][1]=e[1],i[2][1]=e[2]}N.copy(g[0],i[0]),N.copy(g[1],i[2]),N.copy(g[2],i[1])}else{if(N.copy(c[0],x[0]),N.copy(c[1],x[1]),N.sub(d,c[1],c[0]),N.normalize(d,d),v&&v!=="none"){var b=E(h.node1);N.scaleAndAdd(c[0],c[0],d,b*u)}if(A&&A!=="none"){var b=E(h.node2);N.scaleAndAdd(c[1],c[1],d,-b*u)}N.copy(g[0],c[0]),N.copy(g[1],c[1])}})}fe.exports=a},SJMd:function(fe,z){/**
|
|
|
* @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 y,D,N,L=!1,E,I;window.PR_SHOULD_USE_CONTINUATION=!0;var o,m;(function(){var f=window,s=["break,continue,do,else,for,if,return,while"],t=[s,"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"],l=[t,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],a=[l,"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"],r=[l,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],u=[l,"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"],e="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",n=[l,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],i="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",c=[s,"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"],d=[s,"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"],h=[s,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],p=[a,u,r,n,i,c,d,h],g=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,v="str",A="kwd",x="com",b="typ",w="lit",S="pun",T="pln",C="tag",O="dec",_="src",M="atn",k="atv",R="nocode",B="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function P($){for(var J=0,le=!1,de=!1,Ne=0,we=$.length;Ne<we;++Ne){var De=$[Ne];if(De.ignoreCase)de=!0;else if(/[a-z]/i.test(De.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){le=!0,de=!1;break}}var Ee={b:8,t:9,n:10,v:11,f:12,r:13};function ce(Ke){var Oe=Ke.charCodeAt(0);if(Oe!==92)return Oe;var it=Ke.charAt(1);return Oe=Ee[it],Oe||("0"<=it&&it<="7"?parseInt(Ke.substring(1),8):it==="u"||it==="x"?parseInt(Ke.substring(2),16):Ke.charCodeAt(1))}function ne(Ke){if(Ke<32)return(Ke<16?"\\x0":"\\x")+Ke.toString(16);var Oe=String.fromCharCode(Ke);return Oe==="\\"||Oe==="-"||Oe==="]"||Oe==="^"?"\\"+Oe:Oe}function ee(Ke){var Oe=Ke.substring(1,Ke.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),it=[],Fe=Oe[0]==="^",ft=["["];Fe&&ft.push("^");for(var At=Fe?1:0,bt=Oe.length;At<bt;++At){var St=Oe[At];if(/\\[bdsw]/i.test(St))ft.push(St);else{var Et=ce(St),je;At+2<bt&&Oe[At+1]==="-"?(je=ce(Oe[At+2]),At+=2):je=Et,it.push([Et,je]),je<65||Et>122||(je<65||Et>90||it.push([Math.max(65,Et)|32,Math.min(je,90)|32]),je<97||Et>122||it.push([Math.max(97,Et)&~32,Math.min(je,122)&~32]))}}it.sort(function(Qe,ve){return Qe[0]-ve[0]||ve[1]-Qe[1]});for(var pe=[],ie=[],At=0;At<it.length;++At){var st=it[At];st[0]<=ie[1]+1?ie[1]=Math.max(ie[1],st[1]):pe.push(ie=st)}for(var At=0;At<pe.length;++At){var st=pe[At];ft.push(ne(st[0])),st[1]>st[0]&&(st[1]+1>st[0]&&ft.push("-"),ft.push(ne(st[1])))}return ft.push("]"),ft.join("")}function Ae(Ke){for(var Oe=Ke.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),it=Oe.length,Fe=[],ft=0,At=0;ft<it;++ft){var bt=Oe[ft];if(bt==="(")++At;else if(bt.charAt(0)==="\\"){var St=+bt.substring(1);St&&(St<=At?Fe[St]=-1:Oe[ft]=ne(St))}}for(var ft=1;ft<Fe.length;++ft)Fe[ft]===-1&&(Fe[ft]=++J);for(var ft=0,At=0;ft<it;++ft){var bt=Oe[ft];if(bt==="(")++At,Fe[At]||(Oe[ft]="(?:");else if(bt.charAt(0)==="\\"){var St=+bt.substring(1);St&&St<=At&&(Oe[ft]="\\"+Fe[St])}}for(var ft=0;ft<it;++ft)Oe[ft]==="^"&&Oe[ft+1]!=="^"&&(Oe[ft]="");if(Ke.ignoreCase&&le)for(var ft=0;ft<it;++ft){var bt=Oe[ft],Et=bt.charAt(0);bt.length>=2&&Et==="["?Oe[ft]=ee(bt):Et!=="\\"&&(Oe[ft]=bt.replace(/[a-zA-Z]/g,function(ie){var st=ie.charCodeAt(0);return"["+String.fromCharCode(st&~32,st|32)+"]"}))}return Oe.join("")}for(var Ve=[],Ne=0,we=$.length;Ne<we;++Ne){var De=$[Ne];if(De.global||De.multiline)throw new Error(""+De);Ve.push("(?:"+Ae(De)+")")}return new RegExp(Ve.join("|"),de?"gi":"g")}function U($,J){var le=/(?:^|\s)nocode(?:\s|$)/,de=[],Ne=0,we=[],De=0;function Ee(ce){var ne=ce.nodeType;if(ne==1){if(le.test(ce.className))return;for(var ee=ce.firstChild;ee;ee=ee.nextSibling)Ee(ee);var Ae=ce.nodeName.toLowerCase();(Ae==="br"||Ae==="li")&&(de[De]=`
|
|
|
`,we[De<<1]=Ne++,we[De++<<1|1]=ce)}else if(ne==3||ne==4){var Ve=ce.nodeValue;Ve.length&&(J?Ve=Ve.replace(/\r\n?/g,`
|
|
|
`):Ve=Ve.replace(/[ \t\r\n]+/g," "),de[De]=Ve,we[De<<1]=Ne,Ne+=Ve.length,we[De++<<1|1]=ce)}}return Ee($),{sourceCode:de.join("").replace(/\n$/,""),spans:we}}function j($,J,le,de,Ne){if(!le)return;var we={sourceNode:$,pre:1,langExtension:null,numberLines:null,sourceCode:le,spans:null,basePos:J,decorations:null};de(we),Ne.push.apply(Ne,we.decorations)}var H=/\S/;function W($){for(var J=void 0,le=$.firstChild;le;le=le.nextSibling){var de=le.nodeType;J=de===1?J?$:le:de===3&&H.test(le.nodeValue)?$:J}return J===$?void 0:J}function G($,J){var le={},de;(function(){for(var De=$.concat(J),Ee=[],ce={},ne=0,ee=De.length;ne<ee;++ne){var Ae=De[ne],Ve=Ae[3];if(Ve)for(var Ke=Ve.length;--Ke>=0;)le[Ve.charAt(Ke)]=Ae;var Oe=Ae[1],it=""+Oe;ce.hasOwnProperty(it)||(Ee.push(Oe),ce[it]=null)}Ee.push(/[\0-\uffff]/),de=P(Ee)})();var Ne=J.length,we=function De(Ee){for(var ce=Ee.sourceCode,ne=Ee.basePos,ee=Ee.sourceNode,Ae=[ne,T],Ve=0,Ke=ce.match(de)||[],Oe={},it=0,Fe=Ke.length;it<Fe;++it){var ft=Ke[it],At=Oe[ft],bt=void 0,St;if(typeof At=="string")St=!1;else{var Et=le[ft.charAt(0)];if(Et)bt=ft.match(Et[1]),At=Et[0];else{for(var je=0;je<Ne;++je)if(Et=J[je],bt=ft.match(Et[1]),bt){At=Et[0];break}bt||(At=T)}St=At.length>=5&&At.substring(0,5)==="lang-",St&&!(bt&&typeof bt[1]=="string")&&(St=!1,At=_),St||(Oe[ft]=At)}var pe=Ve;if(Ve+=ft.length,!St)Ae.push(ne+pe,At);else{var ie=bt[1],st=ft.indexOf(ie),Qe=st+ie.length;bt[2]&&(Qe=ft.length-bt[2].length,st=Qe-ie.length);var ve=At.substring(5);j(ee,ne+pe,ft.substring(0,st),De,Ae),j(ee,ne+pe+st,ie,Le(ve,ie),Ae),j(ee,ne+pe+Qe,ft.substring(Qe),De,Ae)}}Ee.decorations=Ae};return we}function V($){var J=[],le=[];$.tripleQuotedStrings?J.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):$.multiLineStrings?J.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):J.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),$.verbatimStrings&&le.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var de=$.hashComments;de&&($.cStyleComments?(de>1?J.push([x,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):J.push([x,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),le.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):J.push([x,/^#[^\r\n]*/,null,"#"])),$.cStyleComments&&(le.push([x,/^\/\/[^\r\n]*/,null]),le.push([x,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ne=$.regexLiterals;if(Ne){var we=Ne>1?"":`
|
|
|
\r`,De=we?".":"[\\S\\s]",Ee="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+De+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+De+")*(?:\\x5D|$))+/";le.push(["lang-regex",RegExp("^"+B+"("+Ee+")")])}var ce=$.types;ce&&le.push([b,ce]);var ne=(""+$.keywords).replace(/^ | $/g,"");ne.length&&le.push([A,new RegExp("^(?:"+ne.replace(/[\s,]+/g,"|")+")\\b"),null]),J.push([T,/^\s+/,null,` \r
|
|
|
\xA0`]);var ee="^.[^\\s\\w.$@'\"`/\\\\]*";return $.regexLiterals&&(ee+="(?!s*/)"),le.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[b,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[T,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[T,/^\\[\s\S]?/,null],[S,new RegExp(ee),null]),G(J,le)}var Z=V({keywords:p,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Y($,J,le){for(var de=/(?:^|\s)nocode(?:\s|$)/,Ne=/\r\n?|\n/,we=$.ownerDocument,De=we.createElement("li");$.firstChild;)De.appendChild($.firstChild);var Ee=[De];function ce(Oe){var it=Oe.nodeType;if(it==1&&!de.test(Oe.className))if(Oe.nodeName==="br")ne(Oe),Oe.parentNode&&Oe.parentNode.removeChild(Oe);else for(var Fe=Oe.firstChild;Fe;Fe=Fe.nextSibling)ce(Fe);else if((it==3||it==4)&&le){var ft=Oe.nodeValue,At=ft.match(Ne);if(At){var bt=ft.substring(0,At.index);Oe.nodeValue=bt;var St=ft.substring(At.index+At[0].length);if(St){var Et=Oe.parentNode;Et.insertBefore(we.createTextNode(St),Oe.nextSibling)}ne(Oe),bt||Oe.parentNode.removeChild(Oe)}}}function ne(Oe){for(;!Oe.nextSibling;)if(Oe=Oe.parentNode,!Oe)return;function it(At,bt){var St=bt?At.cloneNode(!1):At,Et=At.parentNode;if(Et){var je=it(Et,1),pe=At.nextSibling;je.appendChild(St);for(var ie=pe;ie;ie=pe)pe=ie.nextSibling,je.appendChild(ie)}return St}for(var Fe=it(Oe.nextSibling,0),ft;(ft=Fe.parentNode)&&ft.nodeType===1;)Fe=ft;Ee.push(Fe)}for(var ee=0;ee<Ee.length;++ee)ce(Ee[ee]);J===(J|0)&&Ee[0].setAttribute("value",J);var Ae=we.createElement("ol");Ae.className="linenums";for(var Ve=Math.max(0,J-1|0)||0,ee=0,Ke=Ee.length;ee<Ke;++ee)De=Ee[ee],De.className="L"+(ee+Ve)%10,De.firstChild||De.appendChild(we.createTextNode("\xA0")),Ae.appendChild(De);$.appendChild(Ae)}function Q($){var J=/\bMSIE\s(\d+)/.exec(navigator.userAgent);J=J&&+J[1]<=8;var le=/\n/g,de=$.sourceCode,Ne=de.length,we=0,De=$.spans,Ee=De.length,ce=0,ne=$.decorations,ee=ne.length,Ae=0;ne[ee]=Ne;var Ve,Ke;for(Ke=Ve=0;Ke<ee;)ne[Ke]!==ne[Ke+2]?(ne[Ve++]=ne[Ke++],ne[Ve++]=ne[Ke++]):Ke+=2;for(ee=Ve,Ke=Ve=0;Ke<ee;){for(var Oe=ne[Ke],it=ne[Ke+1],Fe=Ke+2;Fe+2<=ee&&ne[Fe+1]===it;)Fe+=2;ne[Ve++]=Oe,ne[Ve++]=it,Ke=Fe}ee=ne.length=Ve;var ft=$.sourceNode,At="";ft&&(At=ft.style.display,ft.style.display="none");try{for(var bt=null;ce<Ee;){var St=De[ce],Et=De[ce+2]||Ne,je=ne[Ae+2]||Ne,Fe=Math.min(Et,je),pe=De[ce+1],ie;if(pe.nodeType!==1&&(ie=de.substring(we,Fe))){J&&(ie=ie.replace(le,"\r")),pe.nodeValue=ie;var st=pe.ownerDocument,Qe=st.createElement("span");Qe.className=ne[Ae+1];var ve=pe.parentNode;ve.replaceChild(Qe,pe),Qe.appendChild(pe),we<Et&&(De[ce+1]=pe=st.createTextNode(de.substring(Fe,Et)),ve.insertBefore(pe,Qe.nextSibling))}we=Fe,we>=Et&&(ce+=2),we>=je&&(Ae+=2)}}finally{ft&&(ft.style.display=At)}}var oe={};function ue($,J){for(var le=J.length;--le>=0;){var de=J[le];oe.hasOwnProperty(de)?f.console&&console.warn("cannot override language handler %s",de):oe[de]=$}}function Le($,J){return $&&oe.hasOwnProperty($)||($=/^\s*</.test(J)?"default-markup":"default-code"),oe[$]}ue(Z,["default-code"]),ue(G([],[[T,/^[^<?]+/],[O,/^<!\w[^>]*(?:>|$)/],[x,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[S,/^(?:<[%?]|[%?]>)/],["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"]),ue(G([[T,/^[\s]+/,null,` \r
|
|
|
`],[k,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[C,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[M,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[S,/^[=<>\/]+/],["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"]),ue(G([],[[k,/^[\s\S]+/]]),["uq.val"]),ue(V({keywords:a,hashComments:!0,cStyleComments:!0,types:g}),["c","cc","cpp","cxx","cyc","m"]),ue(V({keywords:"null,true,false"}),["json"]),ue(V({keywords:u,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:g}),["cs"]),ue(V({keywords:r,cStyleComments:!0}),["java"]),ue(V({keywords:h,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(V({keywords:c,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(V({keywords:i,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(V({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(V({keywords:n,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(V({keywords:e,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(G([],[[v,/^[\s\S]+/]]),["regex"]);function me($){var J=$.langExtension;try{var le=U($.sourceNode,$.pre),de=le.sourceCode;$.sourceCode=de,$.spans=le.spans,$.basePos=0,Le(J,de)($),Q($)}catch(Ne){f.console&&console.log(Ne&&Ne.stack||Ne)}}function Ie($,J,le){var de=le||!1,Ne=J||null,we=document.createElement("div");we.innerHTML="<pre>"+$+"</pre>",we=we.firstChild,de&&Y(we,de,!0);var De={langExtension:Ne,numberLines:de,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return me(De),we.innerHTML}function X($,J){var le=J||document.body,de=le.ownerDocument||document;function Ne(St){return le.getElementsByTagName(St)}for(var we=[Ne("pre"),Ne("code"),Ne("xmp")],De=[],Ee=0;Ee<we.length;++Ee)for(var ce=0,ne=we[Ee].length;ce<ne;++ce)De.push(we[Ee][ce]);we=null;var ee=Date;ee.now||(ee={now:function(){return+new Date}});var Ae=0,Ve=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ke=/\bprettyprint\b/,Oe=/\bprettyprinted\b/,it=/pre|xmp/i,Fe=/^code$/i,ft=/^(?:pre|code|xmp)$/i,At={};function bt(){for(var St=f.PR_SHOULD_USE_CONTINUATION?ee.now()+250:Infinity;Ae<De.length&&ee.now()<St;Ae++){for(var Et=De[Ae],je=At,pe=Et;pe=pe.previousSibling;){var ie=pe.nodeType,st=(ie===7||ie===8)&&pe.nodeValue;if(st?!/^\??prettify\b/.test(st):ie!==3||/\S/.test(pe.nodeValue))break;if(st){je={},st.replace(/\b(\w+)=([\w:.%+-]+)/g,function(qe,tr,xr){je[tr]=xr});break}}var Qe=Et.className;if((je!==At||Ke.test(Qe))&&!Oe.test(Qe)){for(var ve=!1,Bt=Et.parentNode;Bt;Bt=Bt.parentNode){var qt=Bt.tagName;if(ft.test(qt)&&Bt.className&&Ke.test(Bt.className)){ve=!0;break}}if(!ve){Et.className+=" prettyprinted";var ct=je.lang;if(!ct){ct=Qe.match(Ve);var Wt;!ct&&(Wt=W(Et))&&Fe.test(Wt.tagName)&&(ct=Wt.className.match(Ve)),ct&&(ct=ct[1])}var or;if(it.test(Et.tagName))or=1;else{var Fr=Et.currentStyle,er=de.defaultView,nr=Fr?Fr.whiteSpace:er&&er.getComputedStyle?er.getComputedStyle(Et,null).getPropertyValue("white-space"):0;or=nr&&nr.substring(0,3)==="pre"}var Ot=je.linenums;(Ot=Ot==="true"||+Ot)||(Ot=Qe.match(/\blinenums\b(?::(\d+))?/),Ot=Ot?Ot[1]&&Ot[1].length?+Ot[1]:!0:!1),Ot&&Y(Et,Ot,or);var lt={langExtension:ct,sourceNode:Et,numberLines:Ot,pre:or,sourceCode:null,basePos:null,spans:null,decorations:null};me(lt)}}}Ae<De.length?f.setTimeout(bt,250):typeof $=="function"&&$()}bt()}var q=f.PR={createSimpleLexer:G,registerLangHandler:ue,sourceDecorator:V,PR_ATTRIB_NAME:M,PR_ATTRIB_VALUE:k,PR_COMMENT:x,PR_DECLARATION:O,PR_KEYWORD:A,PR_LITERAL:w,PR_NOCODE:R,PR_PLAIN:T,PR_PUNCTUATION:S,PR_SOURCE:_,PR_STRING:v,PR_TAG:C,PR_TYPE:b,prettyPrintOne:L?f.prettyPrintOne=Ie:o=Ie,prettyPrint:m=L?f.prettyPrint=X:m=X},We=f.define;typeof We=="function"&&We.amd&&We("google-code-prettify",[],function(){return q})})()},SKnc:function(fe,z,y){var D=y("bYtY"),N=y("QuXc"),L=function(o,m,f,s,t,l){this.x=o==null?0:o,this.y=m==null?0:m,this.x2=f==null?1:f,this.y2=s==null?0:s,this.type="linear",this.global=l||!1,N.call(this,t)};L.prototype={constructor:L},D.inherits(L,N);var E=L;fe.exports=E},"SKx+":function(fe,z,y){var D=y("ProS"),N=D.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}}}),L=N;fe.exports=L},SMc4:function(fe,z,y){var D=y("bYtY"),N=y("bLfw"),L=y("nkfE"),E=y("ICMv"),I=N.extend({type:"cartesian2dAxis",axis:null,init:function(){I.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){I.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){I.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function o(s,t){return t.type||(t.data?"category":"value")}D.merge(I.prototype,E);var m={offset:0};L("x",I,o,m),L("y",I,o,m);var f=I;fe.exports=f},SRve:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},SUKs:function(fe,z,y){var D=y("LPTA"),N=D.debugMode,L=function(){};N===1&&(L=console.error);var E=L;fe.exports=E},SZEN:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.clientToElement=D;function D(N,L,E){var I=E.getBoundingClientRect(),o={x:0,y:0};return N<I.left?o.x=0:N>=I.right?o.x=I.width-1:o.x=N-I.left,L<I.top?o.y=0:L>=I.bottom?o.y=I.height-1:o.y=L-I.top,o}},Sdc0:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("q1tI"),o=y("rePB"),m=y("ODXe"),f=y("Ff2n"),s=y("TSYQ"),t=y.n(s),l=y("6cGi"),a=y("4IlW"),r=I.forwardRef(function(A,x){var b,w=A.prefixCls,S=w===void 0?"rc-switch":w,T=A.className,C=A.checked,O=A.defaultChecked,_=A.disabled,M=A.loadingIcon,k=A.checkedChildren,R=A.unCheckedChildren,B=A.onClick,P=A.onChange,U=A.onKeyDown,j=Object(f.a)(A,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),H=Object(l.a)(!1,{value:C,defaultValue:O}),W=Object(m.a)(H,2),G=W[0],V=W[1];function Z(ue,Le){var me=G;return _||(me=ue,V(me),P==null||P(me,Le)),me}function Y(ue){ue.which===a.a.LEFT?Z(!1,ue):ue.which===a.a.RIGHT&&Z(!0,ue),U==null||U(ue)}function Q(ue){var Le=Z(!G,ue);B==null||B(Le,ue)}var oe=t()(S,T,(b={},Object(o.a)(b,"".concat(S,"-checked"),G),Object(o.a)(b,"".concat(S,"-disabled"),_),b));return I.createElement("button",Object.assign({},j,{type:"button",role:"switch","aria-checked":G,disabled:_,className:oe,ref:x,onKeyDown:Y,onClick:Q}),M,I.createElement("span",{className:"".concat(S,"-inner")},G?k:R))});r.displayName="Switch";var u=r,e=y("gZBC"),n=y.n(e),i=y("g0mS"),c=y("H84U"),d=y("3Nzz"),h=y("uaoM"),p=function(A,x){var b={};for(var w in A)Object.prototype.hasOwnProperty.call(A,w)&&x.indexOf(w)<0&&(b[w]=A[w]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,w=Object.getOwnPropertySymbols(A);S<w.length;S++)x.indexOf(w[S])<0&&Object.prototype.propertyIsEnumerable.call(A,w[S])&&(b[w[S]]=A[w[S]]);return b},g=I.forwardRef(function(A,x){var b,w=A.prefixCls,S=A.size,T=A.loading,C=A.className,O=C===void 0?"":C,_=A.disabled,M=p(A,["prefixCls","size","loading","className","disabled"]);Object(h.a)("checked"in M||!("value"in M),"Switch","`value` is not a valid prop, do you mean `checked`?");var k=I.useContext(c.b),R=k.getPrefixCls,B=k.direction,P=I.useContext(d.b),U=R("switch",w),j=I.createElement("div",{className:"".concat(U,"-handle")},T&&I.createElement(n.a,{className:"".concat(U,"-loading-icon")})),H=t()(O,(b={},E()(b,"".concat(U,"-small"),(S||P)==="small"),E()(b,"".concat(U,"-loading"),T),E()(b,"".concat(U,"-rtl"),B==="rtl"),b));return I.createElement(i.a,{insertExtraNode:!0},I.createElement(u,N()({},M,{prefixCls:U,className:H,disabled:_||T,ref:x,loadingIcon:j})))});g.__ANT_SWITCH=!0,g.displayName="Switch";var v=z.a=g},SehX:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("2B6p"),E=L.updateCenterAndZoom;D.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(I,o){var m=I.componentType||"series";o.eachComponent({mainType:m,query:I},function(f){var s=f.coordinateSystem;if(s.type!=="geo")return;var t=E(s,I,f.get("scaleLimit"));f.setCenter&&f.setCenter(t.center),f.setZoom&&f.setZoom(t.zoom),m==="series"&&N.each(f.seriesGroup,function(l){l.setCenter(t.center),l.setZoom(t.zoom)})})})},SgGq:function(fe,z,y){var D=y("bYtY"),N=y("H6uX"),L=y("YH21"),E=y("pP6R");function I(e){this.pointerChecker,this._zr=e,this._opt={};var n=D.bind,i=n(o,this),c=n(m,this),d=n(f,this),h=n(s,this),p=n(t,this);N.call(this),this.setPointerChecker=function(g){this.pointerChecker=g},this.enable=function(g,v){this.disable(),this._opt=D.defaults(D.clone(v)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),g==null&&(g=!0),(g===!0||g==="move"||g==="pan")&&(e.on("mousedown",i),e.on("mousemove",c),e.on("mouseup",d)),(g===!0||g==="scale"||g==="zoom")&&(e.on("mousewheel",h),e.on("pinch",p))},this.disable=function(){e.off("mousedown",i),e.off("mousemove",c),e.off("mouseup",d),e.off("mousewheel",h),e.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}D.mixin(I,N);function o(e){if(L.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)return;var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}function m(e){if(!this._dragging||!r("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||E.isTaken(this._zr,"globalPan"))return;var n=e.offsetX,i=e.offsetY,c=this._x,d=this._y,h=n-c,p=i-d;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&L.stop(e.event),a(this,"pan","moveOnMouseMove",e,{dx:h,dy:p,oldX:c,oldY:d,newX:n,newY:i})}function f(e){L.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function s(e){var n=r("zoomOnMouseWheel",e,this._opt),i=r("moveOnMouseWheel",e,this._opt),c=e.wheelDelta,d=Math.abs(c),h=e.offsetX,p=e.offsetY;if(c===0||!n&&!i)return;if(n){var g=d>3?1.4:d>1?1.2:1.1,v=c>0?g:1/g;l(this,"zoom","zoomOnMouseWheel",e,{scale:v,originX:h,originY:p})}if(i){var A=Math.abs(c),x=(c>0?1:-1)*(A>3?.4:A>1?.15:.05);l(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:x,originX:h,originY:p})}}function t(e){if(E.isTaken(this._zr,"globalPan"))return;var n=e.pinchScale>1?1.1:1/1.1;l(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY})}function l(e,n,i,c,d){e.pointerChecker&&e.pointerChecker(c,d.originX,d.originY)&&(L.stop(c.event),a(e,n,i,c,d))}function a(e,n,i,c,d){d.isAvailableBehavior=D.bind(r,null,i,c),e.trigger(n,d)}function r(e,n,i){var c=i[e];return!e||c&&(!D.isString(c)||n.event[c+"Key"])}var u=I;fe.exports=u},SgaC:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;function D(I,o){if(!(I instanceof o))throw new TypeError("Cannot call a class as a function")}function N(I,o){for(var m=0;m<o.length;m++){var f=o[m];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(I,f.key,f)}}function L(I,o,m){return o&&N(I.prototype,o),m&&N(I,m),I}var E=function(){function I(){D(this,I),this._subrects=0}return L(I,[{key:"decodeRect",value:function(m,f,s,t,l,a,r){if(this._subrects===0){if(l.rQwait("RRE",4+4))return!1;this._subrects=l.rQshift32();var u=l.rQshiftBytes(4);a.fillRect(m,f,s,t,u)}for(;this._subrects>0;){if(l.rQwait("RRE",4+8))return!1;var e=l.rQshiftBytes(4),n=l.rQshift16(),i=l.rQshift16(),c=l.rQshift16(),d=l.rQshift16();a.fillRect(m+n,f+i,c,d,e),this._subrects--}return!0}}]),I}();z.default=E},Sj0X:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("XuBP")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="DownOutlined";var f=E.forwardRef(m);z.default=f},Sj9i:function(fe,z,y){var D=y("QBsz"),N=D.create,L=D.distSquare,E=Math.pow,I=Math.sqrt,o=1e-8,m=1e-4,f=I(3),s=1/3,t=N(),l=N(),a=N();function r(w){return w>-o&&w<o}function u(w){return w>o||w<-o}function e(w,S,T,C,O){var _=1-O;return _*_*(_*w+3*O*S)+O*O*(O*C+3*_*T)}function n(w,S,T,C,O){var _=1-O;return 3*(((S-w)*_+2*(T-S)*O)*_+(C-T)*O*O)}function i(w,S,T,C,O,_){var M=C+3*(S-T)-w,k=3*(T-S*2+w),R=3*(S-w),B=w-O,P=k*k-3*M*R,U=k*R-9*M*B,j=R*R-3*k*B,H=0;if(r(P)&&r(U))if(r(k))_[0]=0;else{var W=-R/k;W>=0&&W<=1&&(_[H++]=W)}else{var G=U*U-4*P*j;if(r(G)){var V=U/P,W=-k/M+V,Z=-V/2;W>=0&&W<=1&&(_[H++]=W),Z>=0&&Z<=1&&(_[H++]=Z)}else if(G>0){var Y=I(G),Q=P*k+1.5*M*(-U+Y),oe=P*k+1.5*M*(-U-Y);Q<0?Q=-E(-Q,s):Q=E(Q,s),oe<0?oe=-E(-oe,s):oe=E(oe,s);var W=(-k-(Q+oe))/(3*M);W>=0&&W<=1&&(_[H++]=W)}else{var ue=(2*P*k-3*M*U)/(2*I(P*P*P)),Le=Math.acos(ue)/3,me=I(P),Ie=Math.cos(Le),W=(-k-2*me*Ie)/(3*M),Z=(-k+me*(Ie+f*Math.sin(Le)))/(3*M),X=(-k+me*(Ie-f*Math.sin(Le)))/(3*M);W>=0&&W<=1&&(_[H++]=W),Z>=0&&Z<=1&&(_[H++]=Z),X>=0&&X<=1&&(_[H++]=X)}}return H}function c(w,S,T,C,O){var _=6*T-12*S+6*w,M=9*S+3*C-3*w-9*T,k=3*S-3*w,R=0;if(r(M)){if(u(_)){var B=-k/_;B>=0&&B<=1&&(O[R++]=B)}}else{var P=_*_-4*M*k;if(r(P))O[0]=-_/(2*M);else if(P>0){var U=I(P),B=(-_+U)/(2*M),j=(-_-U)/(2*M);B>=0&&B<=1&&(O[R++]=B),j>=0&&j<=1&&(O[R++]=j)}}return R}function d(w,S,T,C,O,_){var M=(S-w)*O+w,k=(T-S)*O+S,R=(C-T)*O+T,B=(k-M)*O+M,P=(R-k)*O+k,U=(P-B)*O+B;_[0]=w,_[1]=M,_[2]=B,_[3]=U,_[4]=U,_[5]=P,_[6]=R,_[7]=C}function h(w,S,T,C,O,_,M,k,R,B,P){var U,j=.005,H=Infinity,W,G,V,Z;t[0]=R,t[1]=B;for(var Y=0;Y<1;Y+=.05)l[0]=e(w,T,O,M,Y),l[1]=e(S,C,_,k,Y),V=L(t,l),V<H&&(U=Y,H=V);H=Infinity;for(var Q=0;Q<32&&!(j<m);Q++)W=U-j,G=U+j,l[0]=e(w,T,O,M,W),l[1]=e(S,C,_,k,W),V=L(l,t),W>=0&&V<H?(U=W,H=V):(a[0]=e(w,T,O,M,G),a[1]=e(S,C,_,k,G),Z=L(a,t),G<=1&&Z<H?(U=G,H=Z):j*=.5);return P&&(P[0]=e(w,T,O,M,U),P[1]=e(S,C,_,k,U)),I(H)}function p(w,S,T,C){var O=1-C;return O*(O*w+2*C*S)+C*C*T}function g(w,S,T,C){return 2*((1-C)*(S-w)+C*(T-S))}function v(w,S,T,C,O){var _=w-2*S+T,M=2*(S-w),k=w-C,R=0;if(r(_)){if(u(M)){var B=-k/M;B>=0&&B<=1&&(O[R++]=B)}}else{var P=M*M-4*_*k;if(r(P)){var B=-M/(2*_);B>=0&&B<=1&&(O[R++]=B)}else if(P>0){var U=I(P),B=(-M+U)/(2*_),j=(-M-U)/(2*_);B>=0&&B<=1&&(O[R++]=B),j>=0&&j<=1&&(O[R++]=j)}}return R}function A(w,S,T){var C=w+T-2*S;return C===0?.5:(w-S)/C}function x(w,S,T,C,O){var _=(S-w)*C+w,M=(T-S)*C+S,k=(M-_)*C+_;O[0]=w,O[1]=_,O[2]=k,O[3]=k,O[4]=M,O[5]=T}function b(w,S,T,C,O,_,M,k,R){var B,P=.005,U=Infinity;t[0]=M,t[1]=k;for(var j=0;j<1;j+=.05){l[0]=p(w,T,O,j),l[1]=p(S,C,_,j);var H=L(t,l);H<U&&(B=j,U=H)}U=Infinity;for(var W=0;W<32&&!(P<m);W++){var G=B-P,V=B+P;l[0]=p(w,T,O,G),l[1]=p(S,C,_,G);var H=L(l,t);if(G>=0&&H<U)B=G,U=H;else{a[0]=p(w,T,O,V),a[1]=p(S,C,_,V);var Z=L(a,t);V<=1&&Z<U?(B=V,U=Z):P*=.5}}return R&&(R[0]=p(w,T,O,B),R[1]=p(S,C,_,B)),I(U)}z.cubicAt=e,z.cubicDerivativeAt=n,z.cubicRootAt=i,z.cubicExtrema=c,z.cubicSubdivide=d,z.cubicProjectPoint=h,z.quadraticAt=p,z.quadraticDerivativeAt=g,z.quadraticRootAt=v,z.quadraticExtremum=A,z.quadraticSubdivide=x,z.quadraticProjectPoint=b},Sp2Z:function(fe,z,y){var D=y("3LNs"),N=y("/y7N"),L=y("AVZG"),E=y("Znkb"),I=D.extend({makeElOption:function(t,l,a,r,u){var e=a.axis,n=e.grid,i=r.get("type"),c=o(n,e).getOtherAxis(e).getGlobalExtent(),d=e.toGlobalCoord(e.dataToCoord(l,!0));if(i&&i!=="none"){var h=N.buildElStyle(r),p=m[i](e,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=L.layout(n.model,a);N.buildCartesianSingleLabelElOption(l,t,g,a,r,u)},getHandleTransform:function(t,l,a){var r=L.layout(l.axis.grid.model,l,{labelInside:!1});return r.labelMargin=a.get("handle.margin"),{position:N.getTransformedPosition(l.axis,t,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,l,a,r){var u=a.axis,e=u.grid,n=u.getGlobalExtent(!0),i=o(e,u).getOtherAxis(u).getGlobalExtent(),c=u.dim==="x"?0:1,d=t.position;d[c]+=l[c],d[c]=Math.min(n[1],d[c]),d[c]=Math.max(n[0],d[c]);var h=(i[1]+i[0])/2,p=[h,h];p[c]=d[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{position:d,rotation:t.rotation,cursorPoint:p,tooltipOption:g[c]}}});function o(t,l){var a={};return a[l.dim+"AxisIndex"]=l.index,t.getCartesian(a)}var m={line:function(t,l,a){var r=N.makeLineShape([l,a[0]],[l,a[1]],f(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,l,a){var r=Math.max(1,t.getBandWidth()),u=a[1]-a[0];return{type:"Rect",shape:N.makeRectShape([l-r/2,a[0]],[r,u],f(t))}}};function f(t){return t.dim==="x"?0:1}E.registerAxisPointerClass("CartesianAxisPointer",I);var s=I;fe.exports=s},Sq3C:function(fe,z,y){var D=y("sKgW"),N=y("zoYe"),L=y("wy8a"),E=y("quyA"),I=y("Z1HP"),o=y("Em2t"),m=Math.ceil;function f(s,t){t=t===void 0?" ":N(t);var l=t.length;if(l<2)return l?D(t,s):t;var a=D(t,m(s/I(t)));return E(t)?L(o(a),0,s).join(""):a.slice(0,s)}fe.exports=f},SqI9:function(fe,z,y){var D=y("y+Vt"),N=y("iXp4"),L=D.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:N(D.prototype.brush),buildPath:function(I,o){var m=o.cx,f=o.cy,s=Math.max(o.r0||0,0),t=Math.max(o.r,0),l=o.startAngle,a=o.endAngle,r=o.clockwise,u=Math.cos(l),e=Math.sin(l);I.moveTo(u*s+m,e*s+f),I.lineTo(u*t+m,e*t+f),I.arc(m,f,t,l,a,!r),I.lineTo(Math.cos(a)*s+m,Math.sin(a)*s+f),s!==0&&I.arc(m,f,s,a,l,r),I.closePath()}});fe.exports=L},SrGk:function(fe,z,y){var D=y("hydK"),N=D.createElement,L=y("bYtY"),E=y("y+Vt"),I=y("Dagg"),o=y("dqUG"),m=y("P47w"),f=m.path,s=m.image,t=m.text,l="0",a="1";function r(e,n,i,c,d){this._zrId=e,this._svgRoot=n,this._tagNames=typeof i=="string"?[i]:i,this._markLabel=c,this._domName=d||"_dom",this.nextId=0}r.prototype.createElement=N,r.prototype.getDefs=function(e){var n=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return i.length===0?e?(i=n.insertBefore(this.createElement("defs"),n.firstChild),i.contains||(i.contains=function(c){var d=i.children;if(!d)return!1;for(var h=d.length-1;h>=0;--h)if(d[h]===c)return!0;return!1}),i):null:i[0]},r.prototype.update=function(e,n){if(!e)return;var i=this.getDefs(!1);if(e[this._domName]&&i.contains(e[this._domName]))typeof n=="function"&&n(e);else{var c=this.add(e);c&&(e[this._domName]=c)}},r.prototype.addDom=function(e){var n=this.getDefs(!0);n.appendChild(e)},r.prototype.removeDom=function(e){var n=this.getDefs(!1);n&&e[this._domName]&&(n.removeChild(e[this._domName]),e[this._domName]=null)},r.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var n=[];return L.each(this._tagNames,function(i){var c=e.getElementsByTagName(i);n=n.concat([].slice.call(c))}),n},r.prototype.markAllUnused=function(){var e=this.getDoms(),n=this;L.each(e,function(i){i[n._markLabel]=l})},r.prototype.markUsed=function(e){e&&(e[this._markLabel]=a)},r.prototype.removeUnused=function(){var e=this.getDefs(!1);if(!e)return;var n=this.getDoms(),i=this;L.each(n,function(c){c[i._markLabel]!==a&&e.removeChild(c)})},r.prototype.getSvgProxy=function(e){return e instanceof E?f:e instanceof I?s:e instanceof o?t:f},r.prototype.getTextSvgElement=function(e){return e.__textSvgEl},r.prototype.getSvgElement=function(e){return e.__svgEl};var u=r;fe.exports=u},Swgg:function(fe,z,y){var D=y("fc+c"),N=D.extend({type:"dataZoom.select"});fe.exports=N},Sxd8:function(fe,z,y){var D=y("ZCgT");function N(L){var E=D(L),I=E%1;return E===E?I?E-I:E:0}fe.exports=N},T1rO:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("zdCA"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},T4UG:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("ItGF"),I=y("7aKB"),o=I.formatTime,m=I.encodeHTML,f=I.addCommas,s=I.getTooltipMarker,t=y("4NO4"),l=y("bLfw"),a=y("5Hur"),r=y("OKJ2"),u=y("+TT/"),e=u.getLayoutParams,n=u.mergeLayoutParam,i=y("9H2F"),c=i.createTask,d=y("D5nY"),h=d.prepareSource,p=d.getSource,g=y("KxfA"),v=g.retrieveRawValue,A=t.makeInner(),x=l.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(R,B,P,U){this.seriesIndex=this.componentIndex,this.dataTask=c({count:S,reset:T}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(R,P),h(this);var j=this.getInitialData(R,P);O(j,this),this.dataTask.context.data=j,A(this).dataBeforeProcessed=j,b(this)},mergeDefaultAndTheme:function(R,B){var P=this.layoutMode,U=P?e(R):{},j=this.subType;l.hasClass(j)&&(j+="Series"),L.merge(R,B.getTheme().get(this.subType)),L.merge(R,this.getDefaultOption()),t.defaultEmphasis(R,"label",["show"]),this.fillDataTextStyle(R.data),P&&n(R,U,P)},mergeOption:function(R,B){R=L.merge(this.option,R,!0),this.fillDataTextStyle(R.data);var P=this.layoutMode;P&&n(this.option,R,P),h(this);var U=this.getInitialData(R,B);O(U,this),this.dataTask.dirty(),this.dataTask.context.data=U,A(this).dataBeforeProcessed=U,b(this)},fillDataTextStyle:function(R){if(R&&!L.isTypedArray(R))for(var B=["show"],P=0;P<R.length;P++)R[P]&&R[P].label&&t.defaultEmphasis(R[P],"label",B)},getInitialData:function(){},appendData:function(R){var B=this.getRawData();B.appendData(R.data)},getData:function(R){var B=M(this);if(B){var P=B.context.data;return R==null?P:P.getLinkedData(R)}else return A(this).data},setData:function(R){var B=M(this);if(B){var P=B.context;P.data!==R&&B.modifyOutputEnd&&B.setOutputEnd(R.count()),P.outputData=R,B!==this.dataTask&&(P.data=R)}A(this).data=R},getSource:function(){return p(this)},getRawData:function(){return A(this).dataBeforeProcessed},getBaseAxis:function(){var R=this.coordinateSystem;return R&&R.getBaseAxis&&R.getBaseAxis()},formatTooltip:function(R,B,P,U){var j=this;U=U||"html";var H=U==="html"?"<br/>":`
|
|
|
`,W=U==="richText",G={},V=0;function Z(we){var De=L.reduce(we,function(Ae,Ve,Ke){var Oe=Q.getDimensionInfo(Ke);return Ae|=Oe&&Oe.tooltip!==!1&&Oe.displayName!=null},0),Ee=[];oe.length?L.each(oe,function(Ae){ce(v(Q,R,Ae),Ae)}):L.each(we,ce);function ce(Ae,Ve){var Ke=Q.getDimensionInfo(Ve);if(!Ke||Ke.otherDims.tooltip===!1)return;var Oe=Ke.type,it="sub"+j.seriesIndex+"at"+V,Fe=s({color:Ie,type:"subItem",renderMode:U,markerId:it}),ft=typeof Fe=="string"?Fe:Fe.content,At=(De?ft+m(Ke.displayName||"-")+": ":"")+m(Oe==="ordinal"?Ae+"":Oe==="time"?B?"":o("yyyy/MM/dd hh:mm:ss",Ae):f(Ae));At&&Ee.push(At),W&&(G[it]=Ie,++V)}var ne=De?W?`
|
|
|
`:"<br/>":"",ee=ne+Ee.join(ne||", ");return{renderMode:U,content:ee,style:G}}function Y(we){return{renderMode:U,content:m(f(we)),style:G}}var Q=this.getData(),oe=Q.mapDimension("defaultedTooltip",!0),ue=oe.length,Le=this.getRawValue(R),me=L.isArray(Le),Ie=Q.getItemVisual(R,"color");L.isObject(Ie)&&Ie.colorStops&&(Ie=(Ie.colorStops[0]||{}).color),Ie=Ie||"transparent";var X=ue>1||me&&!ue?Z(Le):Y(ue?v(Q,R,oe[0]):me?Le[0]:Le),q=X.content,We=j.seriesIndex+"at"+V,$=s({color:Ie,type:"item",renderMode:U,markerId:We});G[We]=Ie,++V;var J=Q.getName(R),le=this.name;t.isNameSpecified(this)||(le=""),le=le?m(le)+(B?": ":H):"";var de=typeof $=="string"?$:$.content,Ne=B?de+le+q:le+de+(J?m(J)+": "+q:q);return{html:Ne,markers:G}},isAnimationEnabled:function(){if(E.node)return!1;var R=this.getShallow("animation");return R&&(this.getData().count()>this.getShallow("animationThreshold")&&(R=!1)),R},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(R,B,P){var U=this.ecModel,j=a.getColorFromPalette.call(this,R,B,P);return j||(j=U.getColorFromPalette(R,B,P)),j},coordDimToDataDim:function(R){return this.getRawData().mapDimension(R,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});L.mixin(x,r),L.mixin(x,a);function b(R){var B=R.name;t.isNameSpecified(R)||(R.name=w(R)||B)}function w(R){var B=R.getRawData(),P=B.mapDimension("seriesName",!0),U=[];return L.each(P,function(j){var H=B.getDimensionInfo(j);H.displayName&&U.push(H.displayName)}),U.join(" ")}function S(R){return R.model.getRawData().count()}function T(R){var B=R.model;return B.setData(B.getRawData().cloneShallow()),C}function C(R,B){B.outputData&&R.end>B.outputData.count()&&B.model.getRawData().cloneShallow(B.outputData)}function O(R,B){L.each(R.CHANGABLE_METHODS,function(P){R.wrapMethod(P,L.curry(_,B))})}function _(R){var B=M(R);B&&B.setOutputEnd(this.count())}function M(R){var B=(R.ecModel||{}).scheduler,P=B&&B.getPipeline(R.uid);if(P){var U=P.currentTask;if(U){var j=U.agentStubMap;j&&(U=j.get(R.uid))}return U}}var k=x;fe.exports=k},T6xi:function(fe,z,y){var D=y("YgsL"),N=y("nCxF");function L(E,I,o){var m=I.points,f=I.smooth;if(m&&m.length>=2){if(f&&f!=="spline"){var s=N(m,f,o,I.smoothConstraint);E.moveTo(m[0][0],m[0][1]);for(var t=m.length,l=0;l<(o?t:t-1);l++){var a=s[l*2],r=s[l*2+1],u=m[(l+1)%t];E.bezierCurveTo(a[0],a[1],r[0],r[1],u[0],u[1])}}else{f==="spline"&&(m=D(m,o)),E.moveTo(m[0][0],m[0][1]);for(var l=1,e=m.length;l<e;l++)E.lineTo(m[l][0],m[l][1])}o&&E.closePath()}}z.buildPath=L},TIY9:function(fe,z,y){var D=y("bYtY"),N=D.each,L=y("vafp"),E=y("4NO4"),I=E.makeInner,o=y("Mgri"),m=y("F5Ls"),f=y("a9QJ"),s=y("p/La"),t=I(),l={load:function(r,u,e){var n=t(u).parsed;if(n)return n;var i=u.specialAreas||{},c=u.geoJSON,d;try{d=c?L(c,e):[]}catch(h){throw new Error(`Invalid geoJson format
|
|
|
`+h.message)}return o(r,d),N(d,function(h){var p=h.name;m(r,h),f(r,h),s(r,h);var g=i[p];g&&h.transformTo(g.left,g.top,g.width,g.height)}),t(u).parsed={regions:d,boundingRect:a(d)}}};function a(r){for(var u,e=0;e<r.length;e++){var n=r[e].getBoundingRect();u=u||n.clone(),u.union(n)}return u}fe.exports=l},TJmX:function(fe,z,y){var D=y("zM3Q"),N=["itemStyle","borderColor"],L=["itemStyle","borderColor0"],E=["itemStyle","color"],I=["itemStyle","color0"],o={seriesType:"candlestick",plan:D(),performRawSeries:!0,reset:function(m,f){var s=m.getData();if(s.setVisual({legendSymbol:"roundRect",colorP:a(1,m),colorN:a(-1,m),borderColorP:r(1,m),borderColorN:r(-1,m)}),f.isSeriesFiltered(m))return;var t=m.pipelineContext.large;return!t&&{progress:l};function l(u,e){for(var n;(n=u.next())!=null;){var i=e.getItemModel(n),c=e.getItemLayout(n).sign;e.setItemVisual(n,{color:a(c,i),borderColor:r(c,i)})}}function a(u,e){return e.get(u>0?E:I)}function r(u,e){return e.get(u>0?N:L)}}};fe.exports=o},TWL2:function(fe,z,y){var D=y("IwbS"),N=y("bYtY"),L=y("6Ic6");function E(s,t){D.Group.call(this);var l=new D.Polygon,a=new D.Polyline,r=new D.Text;this.add(l),this.add(a),this.add(r),this.highDownOnUpdate=function(u,e){e==="emphasis"?(a.ignore=a.hoverIgnore,r.ignore=r.hoverIgnore):(a.ignore=a.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(s,t,!0)}var I=E.prototype,o=["itemStyle","opacity"];I.updateData=function(s,t,l){var a=this.childAt(0),r=s.hostModel,u=s.getItemModel(t),e=s.getItemLayout(t),n=s.getItemModel(t).get(o);n=n==null?1:n,a.useStyle({}),l?(a.setShape({points:e.points}),a.setStyle({opacity:0}),D.initProps(a,{style:{opacity:n}},r,t)):D.updateProps(a,{style:{opacity:n},shape:{points:e.points}},r,t);var i=u.getModel("itemStyle"),c=s.getItemVisual(t,"color");a.setStyle(N.defaults({lineJoin:"round",fill:c},i.getItemStyle(["opacity"]))),a.hoverStyle=i.getModel("emphasis").getItemStyle(),this._updateLabel(s,t),D.setHoverStyle(this)},I._updateLabel=function(s,t){var l=this.childAt(1),a=this.childAt(2),r=s.hostModel,u=s.getItemModel(t),e=s.getItemLayout(t),n=e.label,i=s.getItemVisual(t,"color");D.updateProps(l,{shape:{points:n.linePoints||n.linePoints}},r,t),D.updateProps(a,{style:{x:n.x,y:n.y}},r,t),a.attr({rotation:n.rotation,origin:[n.x,n.y],z2:10});var c=u.getModel("label"),d=u.getModel("emphasis.label"),h=u.getModel("labelLine"),p=u.getModel("emphasis.labelLine"),i=s.getItemVisual(t,"color");D.setLabelStyle(a.style,a.hoverStyle={},c,d,{labelFetcher:s.hostModel,labelDataIndex:t,defaultText:s.getName(t),autoColor:i,useInsideStyle:!!n.inside},{textAlign:n.textAlign,textVerticalAlign:n.verticalAlign}),a.ignore=a.normalIgnore=!c.get("show"),a.hoverIgnore=!d.get("show"),l.ignore=l.normalIgnore=!h.get("show"),l.hoverIgnore=!p.get("show"),l.setStyle({stroke:i}),l.setStyle(h.getModel("lineStyle").getLineStyle()),l.hoverStyle=p.getModel("lineStyle").getLineStyle()},N.inherits(E,D.Group);var m=L.extend({type:"funnel",render:function(s,t,l){var a=s.getData(),r=this._data,u=this.group;a.diff(r).add(function(e){var n=new E(a,e);a.setItemGraphicEl(e,n),u.add(n)}).update(function(e,n){var i=r.getItemGraphicEl(n);i.updateData(a,e),u.add(i),a.setItemGraphicEl(e,i)}).remove(function(e){var n=r.getItemGraphicEl(e);u.remove(n)}).execute(),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),f=m;fe.exports=f},TYVI:function(fe,z,y){var D=y("5GtS"),N=y("T4UG"),L=N.extend({type:"series.gauge",getInitialData:function(I,o){return D(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}}}),E=L;fe.exports=E},Tghj:function(fe,z,y){(function(D){var N;typeof window!="undefined"?N=window.__DEV__:typeof D!="undefined"&&(N=D.__DEV__),typeof N=="undefined"&&(N=!0);var L=N;z.__DEV__=L}).call(this,y("yLpj"))},ThAp:function(fe,z,y){var D=y("bYtY"),N=y("5GtS"),L=y("T4UG"),E=y("7aKB"),I=E.encodeHTML,o=E.addCommas,m=y("cCMj"),f=y("KxfA"),s=f.retrieveRawAttr,t=y("W4dC"),l=y("D5nY"),a=l.makeSeriesEncodeForNameBased,r=L.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var n=N(this,{coordDimensions:["value"],encodeDefaulter:D.curry(a,this)}),i=n.mapDimension("value"),c=D.createHashMap(),d=[],h=[],p=0,g=n.count();p<g;p++){var v=n.getName(p);c.set(v,!0),d.push({name:v,value:n.get(i,p),selected:s(n,p,"selected")})}var A=t.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D.each(A.regions,function(x){var b=x.name;c.get(b)||(d.push({name:b}),h.push(b))}),this.updateSelectedMap(d),n.appendValues([],h),n},getHostGeoModel:function(){var e=this.option.geoIndex;return e!=null?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var n=this.getData();return n.get(n.mapDimension("value"),e)},getRegionModel:function(e){var n=this.getData();return n.getItemModel(n.indexOfName(e))},formatTooltip:function(e){for(var n=this.getData(),i=o(this.getRawValue(e)),c=n.getName(e),d=this.seriesGroup,h=[],p=0;p<d.length;p++){var g=d[p].originalData.indexOfName(c),v=n.mapDimension("value");isNaN(d[p].originalData.get(v,g))||h.push(I(d[p].name))}return h.join(", ")+"<br />"+I(c+" : "+i)},getTooltipPosition:function(e){if(e!=null){var n=this.getData().getName(e),i=this.coordinateSystem,c=i.getRegion(n);return c&&i.dataToPoint(c.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},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"}});D.mixin(r,m);var u=r;fe.exports=u},TkdX:function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},E=2,I=4;function o(r,u,e){N.Group.call(this);var n=new N.Sector({z2:E});n.seriesIndex=u.seriesIndex;var i=new N.Text({z2:I,silent:r.getModel("label").get("silent")});this.add(n),this.add(i),this.updateData(!0,r,"normal",u,e);function c(){i.ignore=i.hoverIgnore}function d(){i.ignore=i.normalIgnore}this.on("emphasis",c).on("normal",d).on("mouseover",c).on("mouseout",d)}var m=o.prototype;m.updateData=function(r,u,e,n,i){this.node=u,u.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var c=this.childAt(0);c.dataIndex=u.dataIndex;var d=u.getModel(),h=u.getLayout(),p=D.extend({},h);p.label=null;var g=s(u,n,i);a(u,n,g);var v=d.getModel("itemStyle").getItemStyle(),A;if(e==="normal")A=v;else{var x=d.getModel(e+".itemStyle").getItemStyle();A=D.merge(x,v)}A=D.defaults({lineJoin:"bevel",fill:A.fill||g},A),r?(c.setShape(p),c.shape.r=h.r0,N.updateProps(c,{shape:{r:h.r}},n,u.dataIndex),c.useStyle(A)):typeof A.fill=="object"&&A.fill.type||typeof c.style.fill=="object"&&c.style.fill.type?(N.updateProps(c,{shape:p},n),c.useStyle(A)):N.updateProps(c,{shape:p,style:A},n),this._updateLabel(n,g,e);var b=d.getShallow("cursor");if(b&&c.attr("cursor",b),r){var w=n.getShallow("highlightPolicy");this._initEvents(c,u,n,w)}this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel,N.setHoverStyle(this)},m.onEmphasis=function(r){var u=this;this.node.hostTree.root.eachNode(function(e){e.piece&&(u.node===e?e.piece.updateData(!1,e,"emphasis"):l(e,u.node,r)?e.piece.childAt(0).trigger("highlight"):r!==L.NONE&&e.piece.childAt(0).trigger("downplay"))})},m.onNormal=function(){this.node.hostTree.root.eachNode(function(r){r.piece&&r.piece.updateData(!1,r,"normal")})},m.onHighlight=function(){this.updateData(!1,this.node,"highlight")},m.onDownplay=function(){this.updateData(!1,this.node,"downplay")},m._updateLabel=function(r,u,e){var n=this.node.getModel(),i=n.getModel("label"),c=e==="normal"||e==="emphasis"?i:n.getModel(e+".label"),d=n.getModel("emphasis.label"),h=D.retrieve(r.getFormattedLabel(this.node.dataIndex,e,null,null,"label"),this.node.name);B("show")===!1&&(h="");var p=this.node.getLayout(),g=c.get("minAngle");g==null&&(g=i.get("minAngle")),g=g/180*Math.PI;var v=p.endAngle-p.startAngle;g!=null&&Math.abs(v)<g&&(h="");var A=this.childAt(1);N.setLabelStyle(A.style,A.hoverStyle||{},i,d,{defaultText:c.getShallow("show")?h:null,autoColor:u,useInsideStyle:!0});var x=(p.startAngle+p.endAngle)/2,b=Math.cos(x),w=Math.sin(x),S,T=B("position"),C=B("distance")||0,O=B("align");T==="outside"?(S=p.r+C,O=x>Math.PI/2?"right":"left"):!O||O==="center"?(S=(p.r+p.r0)/2,O="center"):O==="left"?(S=p.r0+C,x>Math.PI/2&&(O="right")):O==="right"&&(S=p.r-C,x>Math.PI/2&&(O="left")),A.attr("style",{text:h,textAlign:O,textVerticalAlign:B("verticalAlign")||"middle",opacity:B("opacity")});var _=S*b+p.cx,M=S*w+p.cy;A.attr("position",[_,M]);var k=B("rotate"),R=0;k==="radial"?(R=-x,R<-Math.PI/2&&(R+=Math.PI)):k==="tangential"?(R=Math.PI/2-x,R>Math.PI/2?R-=Math.PI:R<-Math.PI/2&&(R+=Math.PI)):typeof k=="number"&&(R=k*Math.PI/180),A.attr("rotation",R);function B(P){var U=c.get(P);return U==null?i.get(P):U}},m._initEvents=function(r,u,e,n){r.off("mouseover").off("mouseout").off("emphasis").off("normal");var i=this,c=function(){i.onEmphasis(n)},d=function(){i.onNormal()},h=function(){i.onDownplay()},p=function(){i.onHighlight()};e.isAnimationEnabled()&&r.on("mouseover",c).on("mouseout",d).on("emphasis",c).on("normal",d).on("downplay",h).on("highlight",p)},D.inherits(o,N.Group);var f=o;function s(r,u,e){var n=r.getVisual("color"),i=r.getVisual("visualMeta");(!i||i.length===0)&&(n=null);var c=r.getModel("itemStyle").get("color");if(c)return c;if(n)return n;if(r.depth===0)return e.option.color[0];var d=e.option.color.length;return c=e.option.color[t(r)%d],c}function t(r){for(var u=r;u.depth>1;)u=u.parentNode;var e=r.getAncestors()[0];return D.indexOf(e.children,u)}function l(r,u,e){return e===L.NONE?!1:e===L.SELF?r===u:e===L.ANCESTOR?r===u||r.isAncestorOf(u):r===u||r.isDescendantOf(u)}function a(r,u,e){var n=u.getData();n.setItemVisual(r.dataIndex,"color",e)}fe.exports=f},Tp9H:function(fe,z,y){var D=y("ItGF"),N=y("Kagy"),L=y("IUWy"),E=N.toolbox.saveAsImage;function I(f){this.model=f}I.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:E.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:E.lang.slice()},I.prototype.unusable=!D.canvasSupported;var o=I.prototype;o.onclick=function(f,s){var t=this.model,l=t.get("name")||f.get("title.0.text")||"echarts",a=s.getZr().painter.getType()==="svg",r=a?"svg":t.get("type",!0)||"png",u=s.getConnectedDataURL({type:r,backgroundColor:t.get("backgroundColor",!0)||f.get("backgroundColor")||"#fff",connectedBackgroundColor:t.get("connectedBackgroundColor"),excludeComponents:t.get("excludeComponents"),pixelRatio:t.get("pixelRatio")});if(typeof MouseEvent=="function"&&!D.browser.ie&&!D.browser.edge){var e=document.createElement("a");e.download=l+"."+r,e.target="_blank",e.href=u;var n=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});e.dispatchEvent(n)}else if(window.navigator.msSaveOrOpenBlob){for(var i=atob(u.split(",")[1]),c=i.length,d=new Uint8Array(c);c--;)d[c]=i.charCodeAt(c);var h=new Blob([d]);window.navigator.msSaveOrOpenBlob(h,l+"."+r)}else{var p=t.get("lang"),g='<body style="margin:0;"><img src="'+u+'" style="max-width:100%;" title="'+(p&&p[0]||"")+'" /></body>',v=window.open();v.document.write(g)}},L.register("saveAsImage",I);var m=I;fe.exports=m},"U/Mo":function(fe,z){function y(N){var L=N.coordinateSystem;if(L.type!=="view")return 1;var E=N.option.nodeScaleRatio,I=L.scale,o=I&&I[0]||1,m=L.getZoom(),f=(m-1)*E+1;return f/o}function D(N){var L=N.getVisual("symbolSize");return L instanceof Array&&(L=(L[0]+L[1])/2),+L}z.getNodeGlobalScale=y,z.getSymbolSize=D},UADf:function(fe,z,y){},UESt:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="RightOutlined";var m=z.a=N.forwardRef(o)},UOVi:function(fe,z,y){var D=y("bYtY"),N=y("7aKB"),L=["x","y","z","radius","angle","single"],E=["cartesian2d","polar","singleAxis"];function I(s){return D.indexOf(E,s)>=0}function o(s,t){s=s.slice();var l=D.map(s,N.capitalFirst);t=(t||[]).slice();var a=D.map(t,N.capitalFirst);return function(r,u){D.each(s,function(e,n){for(var i={name:e,capital:l[n]},c=0;c<t.length;c++)i[t[c]]=e+a[c];r.call(u,i)})}}var m=o(L,["axisIndex","axis","index","id"]);function f(s,t,l){return function(e){var n={nodes:[],records:{}};if(t(function(d){n.records[d.name]={}}),!e)return n;u(e,n);var i;do i=!1,s(c);while(i);function c(d){!a(d,n)&&r(d,n)&&(u(d,n),i=!0)}return n};function a(e,n){return D.indexOf(n.nodes,e)>=0}function r(e,n){var i=!1;return t(function(c){D.each(l(e,c)||[],function(d){n.records[c.name][d]&&(i=!0)})}),i}function u(e,n){n.nodes.push(e),t(function(i){D.each(l(e,i)||[],function(c){n.records[i.name][c]=!0})})}}z.isCoordSupported=I,z.createNameEach=o,z.eachAxisDim=m,z.createLinkedNodesFinder=f},Uc92:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},UmKh:function(fe,z,y){"use strict";var D=y("q1tI"),N=y.n(D),L=function(B){var P=B.prototype;if(!P||!P.isReactComponent)throw new Error("Can only polyfill class components");return typeof P.componentWillReceiveProps!="function"||N.a.Profiler&&(P.UNSAFE_componentWillReceiveProps=P.componentWillReceiveProps,delete P.componentWillReceiveProps),B},E=L;function I(R){var B=[];return N.a.Children.forEach(R,function(P){B.push(P)}),B}function o(R,B){var P=null;return R&&R.forEach(function(U){if(P)return;U&&U.key===B&&(P=U)}),P}function m(R,B,P){var U=null;return R&&R.forEach(function(j){if(j&&j.key===B&&j.props[P]){if(U)throw new Error("two child with same key for <rc-animate> children");U=j}}),U}function f(R,B,P){var U=0;return R&&R.forEach(function(j){if(U)return;U=j&&j.key===B&&!j.props[P]}),U}function s(R,B,P){var U=R.length===B.length;return U&&R.forEach(function(j,H){var W=B[H];j&&W&&((j&&!W||!j&&W||(j.key!==W.key||P&&j.props[P]!==W.props[P]))&&(U=!1))}),U}function t(R,B){var P=[],U={},j=[];return R.forEach(function(H){H&&o(B,H.key)?j.length&&(U[H.key]=j,j=[]):j.push(H)}),B.forEach(function(H){H&&Object.prototype.hasOwnProperty.call(U,H.key)&&(P=P.concat(U[H.key])),P.push(H)}),P=P.concat(j),P}var l=y("i8i4"),a=y.n(l),r=y("UwPn"),u={isAppearSupported:function(B){return B.transitionName&&B.transitionAppear||B.animation.appear},isEnterSupported:function(B){return B.transitionName&&B.transitionEnter||B.animation.enter},isLeaveSupported:function(B){return B.transitionName&&B.transitionLeave||B.animation.leave},allowAppearCallback:function(B){return B.transitionAppear||B.animation.appear},allowEnterCallback:function(B){return B.transitionEnter||B.animation.enter},allowLeaveCallback:function(B){return B.transitionLeave||B.animation.leave}},e=u,n=function(){function R(B,P){for(var U=0;U<P.length;U++){var j=P[U];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(B,j.key,j)}}return function(B,P,U){return P&&R(B.prototype,P),U&&R(B,U),B}}();function i(R,B){if(!(R instanceof B))throw new TypeError("Cannot call a class as a function")}function c(R,B){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:R}function d(R,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);R.prototype=Object.create(B&&B.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(R,B):R.__proto__=B)}var h={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},p=function(R){d(B,R);function B(){return i(this,B),c(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return n(B,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(U){e.isEnterSupported(this.props)?this.transition("enter",U):U()}},{key:"componentWillAppear",value:function(U){e.isAppearSupported(this.props)?this.transition("appear",U):U()}},{key:"componentWillLeave",value:function(U){e.isLeaveSupported(this.props)?this.transition("leave",U):U()}},{key:"transition",value:function(U,j){var H=this,W=a.a.findDOMNode(this),G=this.props,V=G.transitionName,Z=typeof V=="object";this.stop();var Y=function(){H.stopper=null,j()};if((r.b||!G.animation[U])&&V&&G[h[U]]){var Q=Z?V[U]:V+"-"+U,oe=Q+"-active";Z&&V[U+"Active"]&&(oe=V[U+"Active"]),this.stopper=Object(r.a)(W,{name:Q,active:oe},Y)}else this.stopper=G.animation[U](W,Y)}},{key:"stop",value:function(){var U=this.stopper;U&&(this.stopper=null,U.stop())}},{key:"render",value:function(){return this.props.children}}]),B}(N.a.Component),g=p,v=Object.assign||function(R){for(var B=1;B<arguments.length;B++){var P=arguments[B];for(var U in P)Object.prototype.hasOwnProperty.call(P,U)&&(R[U]=P[U])}return R},A=function(){function R(B,P){for(var U=0;U<P.length;U++){var j=P[U];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(B,j.key,j)}}return function(B,P,U){return P&&R(B.prototype,P),U&&R(B,U),B}}();function x(R,B,P){return B in R?Object.defineProperty(R,B,{value:P,enumerable:!0,configurable:!0,writable:!0}):R[B]=P,R}function b(R,B){if(!(R instanceof B))throw new TypeError("Cannot call a class as a function")}function w(R,B){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:R}function S(R,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);R.prototype=Object.create(B&&B.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(R,B):R.__proto__=B)}var T="rc_animate_"+Date.now();function C(R){var B=R.children;return N.a.isValidElement(B)&&!B.key?N.a.cloneElement(B,{key:T}):B}function O(){}var _=function(R){S(B,R);function B(P){b(this,B);var U=w(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,P));return M.call(U),U.currentlyAnimatingKeys={},U.keysToEnter=[],U.keysToLeave=[],U.state={children:I(C(P))},U.childrenRefs={},U}return A(B,[{key:"componentDidMount",value:function(){var U=this,j=this.props.showProp,H=this.state.children;j&&(H=H.filter(function(W){return!!W.props[j]})),H.forEach(function(W){W&&U.performAppear(W.key)})}},{key:"componentWillReceiveProps",value:function(U){var j=this;this.nextProps=U;var H=I(C(U)),W=this.props;W.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(Q){j.stop(Q)});var G=W.showProp,V=this.currentlyAnimatingKeys,Z=W.exclusive?I(C(W)):this.state.children,Y=[];G?(Z.forEach(function(Q){var oe=Q&&o(H,Q.key),ue=void 0;(!oe||!oe.props[G])&&Q.props[G]?ue=N.a.cloneElement(oe||Q,x({},G,!0)):ue=oe,ue&&Y.push(ue)}),H.forEach(function(Q){(!Q||!o(Z,Q.key))&&Y.push(Q)})):Y=t(Z,H),this.setState({children:Y}),H.forEach(function(Q){var oe=Q&&Q.key;if(Q&&V[oe])return;var ue=Q&&o(Z,oe);if(G){var Le=Q.props[G];if(ue){var me=m(Z,oe,G);!me&&Le&&j.keysToEnter.push(oe)}else Le&&j.keysToEnter.push(oe)}else ue||j.keysToEnter.push(oe)}),Z.forEach(function(Q){var oe=Q&&Q.key;if(Q&&V[oe])return;var ue=Q&&o(H,oe);if(G){var Le=Q.props[G];if(ue){var me=m(H,oe,G);!me&&Le&&j.keysToLeave.push(oe)}else Le&&j.keysToLeave.push(oe)}else ue||j.keysToLeave.push(oe)})}},{key:"componentDidUpdate",value:function(){var U=this.keysToEnter;this.keysToEnter=[],U.forEach(this.performEnter);var j=this.keysToLeave;this.keysToLeave=[],j.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(U,j){var H=this.props.showProp;return H?m(U,j,H):o(U,j)}},{key:"stop",value:function(U){delete this.currentlyAnimatingKeys[U];var j=this.childrenRefs[U];j&&j.stop()}},{key:"render",value:function(){var U=this,j=this.props;this.nextProps=j;var H=this.state.children,W=null;H&&(W=H.map(function(Z){if(Z==null)return Z;if(!Z.key)throw new Error("must set key for <rc-animate> children");return N.a.createElement(g,{key:Z.key,ref:function(Q){U.childrenRefs[Z.key]=Q},animation:j.animation,transitionName:j.transitionName,transitionEnter:j.transitionEnter,transitionAppear:j.transitionAppear,transitionLeave:j.transitionLeave},Z)}));var G=j.component;if(G){var V=j;return typeof G=="string"&&(V=v({className:j.className,style:j.style},j.componentProps)),N.a.createElement(G,V,W)}return W[0]||null}}]),B}(N.a.Component);_.isAnimate=!0,_.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:O,onEnter:O,onLeave:O,onAppear:O};var M=function(){var B=this;this.performEnter=function(P){B.childrenRefs[P]&&(B.currentlyAnimatingKeys[P]=!0,B.childrenRefs[P].componentWillEnter(B.handleDoneAdding.bind(B,P,"enter")))},this.performAppear=function(P){B.childrenRefs[P]&&(B.currentlyAnimatingKeys[P]=!0,B.childrenRefs[P].componentWillAppear(B.handleDoneAdding.bind(B,P,"appear")))},this.handleDoneAdding=function(P,U){var j=B.props;if(delete B.currentlyAnimatingKeys[P],j.exclusive&&j!==B.nextProps)return;var H=I(C(j));B.isValidChildByKey(H,P)?U==="appear"?e.allowAppearCallback(j)&&(j.onAppear(P),j.onEnd(P,!0)):e.allowEnterCallback(j)&&(j.onEnter(P),j.onEnd(P,!0)):B.performLeave(P)},this.performLeave=function(P){B.childrenRefs[P]&&(B.currentlyAnimatingKeys[P]=!0,B.childrenRefs[P].componentWillLeave(B.handleDoneLeaving.bind(B,P)))},this.handleDoneLeaving=function(P){var U=B.props;if(delete B.currentlyAnimatingKeys[P],U.exclusive&&U!==B.nextProps)return;var j=I(C(U));if(B.isValidChildByKey(j,P))B.performEnter(P);else{var H=function(){e.allowLeaveCallback(U)&&(U.onLeave(P),U.onEnd(P,!1))};s(B.state.children,j,U.showProp)?H():B.setState({children:j},H)}}},k=z.a=E(_)},UnoB:function(fe,z,y){var D=y("bYtY"),N=y("OELB");function L(o,m){o.eachSeriesByType("themeRiver",function(f){var s=f.getData(),t=f.coordinateSystem,l={},a=t.getRect();l.rect=a;var r=f.get("boundaryGap"),u=t.getAxis();if(l.boundaryGap=r,u.orient==="horizontal"){r[0]=N.parsePercent(r[0],a.height),r[1]=N.parsePercent(r[1],a.height);var e=a.height-r[0]-r[1];E(s,f,e)}else{r[0]=N.parsePercent(r[0],a.width),r[1]=N.parsePercent(r[1],a.width);var n=a.width-r[0]-r[1];E(s,f,n)}s.setLayout("layoutInfo",l)})}function E(o,m,f){if(!o.count())return;for(var s=m.coordinateSystem,t=m.getLayerSeries(),l=o.mapDimension("single"),a=o.mapDimension("value"),r=D.map(t,function(g){return D.map(g.indices,function(v){var A=s.dataToPoint(o.get(l,v));return A[1]=o.get(a,v),A})}),u=I(r),e=u.y0,n=f/u.max,i=t.length,c=t[0].indices.length,d,h=0;h<c;++h){d=e[h]*n,o.setItemLayout(t[0].indices[h],{layerIndex:0,x:r[0][h][0],y0:d,y:r[0][h][1]*n});for(var p=1;p<i;++p)d+=r[p-1][h][1]*n,o.setItemLayout(t[p].indices[h],{layerIndex:p,x:r[p][h][0],y0:d,y:r[p][h][1]*n})}}function I(o){for(var m=o.length,f=o[0].length,s=[],t=[],l=0,a,r={},u=0;u<f;++u){for(var e=0,a=0;e<m;++e)a+=o[e][u][1];a>l&&(l=a),s.push(a)}for(var n=0;n<f;++n)t[n]=(l-s[n])/2;l=0;for(var i=0;i<f;++i){var c=s[i]+t[i];c>l&&(l=c)}return r.y0=t,r.max=l,r}fe.exports=L},Urep:function(fe,z,y){},V7ic:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("digP")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="FileTwoTone";var f=E.forwardRef(m);z.default=f},VFCP:function(fe,z,y){y("dBmv"),y("KamJ")},VPsl:function(fe,z){function y(D){D.eachSeriesByType("map",function(N){var L=N.get("color"),E=N.getModel("itemStyle"),I=E.get("areaColor"),o=E.get("color")||L[N.seriesIndex%L.length];N.getData().setVisual({areaColor:I,color:o})})}fe.exports=y},VR9l:function(fe,z,y){var D=y("KCsZ"),N=D([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),L={getItemStyle:function(E,I){var o=N(this,E,I),m=this.getBorderLineDash();return m&&(o.lineDash=m),o},getBorderLineDash:function(){var E=this.get("borderType");return E==="solid"||E==null?null:E==="dashed"?[5,5]:[1,1]}};fe.exports=L},VSLf:function(fe,z,y){y("I+Bx"),y("F0hE"),y("bBKM")},VSMT:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.decodeUTF8=D,z.encodeUTF8=N;function D(L){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(L))}catch(I){if(I instanceof URIError&&E)return L;throw I}}function N(L){return unescape(encodeURIComponent(L))}},VXYp:function(fe,z,y){var D=y("bYtY"),N=y("SgGq"),L=y("iLNv"),E="\0_ec_dataZoom_roams";function I(r,u){var e=f(r),n=u.dataZoomId,i=u.coordId;D.each(e,function(h,p){var g=h.dataZoomInfos;g[n]&&D.indexOf(u.allCoordIds,i)<0&&(delete g[n],h.count--)}),t(e);var c=e[i];c||(c=e[i]={coordId:i,dataZoomInfos:{},count:0},c.controller=s(r,c),c.dispatchAction=D.curry(l,r)),!c.dataZoomInfos[n]&&c.count++,c.dataZoomInfos[n]=u;var d=a(c.dataZoomInfos);c.controller.enable(d.controlType,d.opt),c.controller.setPointerChecker(u.containsPoint),L.createOrUpdate(c,"dispatchAction",u.dataZoomModel.get("throttle",!0),"fixRate")}function o(r,u){var e=f(r);D.each(e,function(n){n.controller.dispose();var i=n.dataZoomInfos;i[u]&&(delete i[u],n.count--)}),t(e)}function m(r){return r.type+"\0_"+r.id}function f(r){var u=r.getZr();return u[E]||(u[E]={})}function s(r,u){var e=new N(r.getZr());return D.each(["pan","zoom","scrollMove"],function(n){e.on(n,function(i){var c=[];D.each(u.dataZoomInfos,function(d){if(!i.isAvailableBehavior(d.dataZoomModel.option))return;var h=(d.getRange||{})[n],p=h&&h(u.controller,i);!d.dataZoomModel.get("disabled",!0)&&p&&c.push({dataZoomId:d.dataZoomId,start:p[0],end:p[1]})}),c.length&&u.dispatchAction(c)})}),e}function t(r){D.each(r,function(u,e){u.count||(u.controller.dispose(),delete r[e])})}function l(r,u){r.dispatchAction({type:"dataZoom",batch:u})}function a(r){var u,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return D.each(r,function(c){var d=c.dataZoomModel,h=d.get("disabled",!0)?!1:d.get("zoomLock",!0)?"move":!0;n[e+h]>n[e+u]&&(u=h),i&=d.get("preventDefaultMouseMove",!0)}),{controlType:u,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}z.register=I,z.unregister=o,z.generateCoordId=m},VaxA:function(fe,z,y){var D=y("bYtY");function N(o,m,f){if(o&&D.indexOf(m,o.type)>=0){var s=f.getData().tree.root,t=o.targetNode;if(typeof t=="string"&&(t=s.getNodeById(t)),t&&s.contains(t))return{node:t};var l=o.targetNodeId;if(l!=null&&(t=s.getNodeById(l)))return{node:t}}}function L(o){for(var m=[];o;)o=o.parentNode,o&&m.push(o);return m.reverse()}function E(o,m){var f=L(o);return D.indexOf(f,m)>=0}function I(o,m){for(var f=[];o;){var s=o.dataIndex;f.push({name:o.name,dataIndex:s,value:m.getRawValue(s)}),o=o.parentNode}return f.reverse(),f}z.retrieveTargetInfo=N,z.getPathToRoot=L,z.aboveViewRoot=E,z.wrapTreePathInfo=I},Vi4m:function(fe,z,y){var D=y("bYtY");function N(E){E!=null&&D.extend(this,E),this.otherDims={}}var L=N;fe.exports=L},Vl3Y:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("J4zp"),E=y.n(L),I=y("lSNA"),o=y.n(I),m=y("q1tI"),f=y("TSYQ"),s=y.n(f),t=y("85Yc"),l=y("H84U"),a=y("BGR+"),r=m.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),u=m.createContext({updateItemErrors:function(){}}),e=function(Bt){var qt=Object(a.default)(Bt,["prefixCls"]);return m.createElement(t.FormProvider,qt)};function n(ve){return typeof ve=="object"&&ve!=null&&ve.nodeType===1}function i(ve,Bt){return(!Bt||ve!=="hidden")&&ve!=="visible"&&ve!=="clip"}function c(ve,Bt){if(ve.clientHeight<ve.scrollHeight||ve.clientWidth<ve.scrollWidth){var qt=getComputedStyle(ve,null);return i(qt.overflowY,Bt)||i(qt.overflowX,Bt)||function(ct){var Wt=function(or){if(!or.ownerDocument||!or.ownerDocument.defaultView)return null;try{return or.ownerDocument.defaultView.frameElement}catch(Fr){return null}}(ct);return!!Wt&&(Wt.clientHeight<ct.scrollHeight||Wt.clientWidth<ct.scrollWidth)}(ve)}return!1}function d(ve,Bt,qt,ct,Wt,or,Fr,er){return or<ve&&Fr>Bt||or>ve&&Fr<Bt?0:or<=ve&&er<=qt||Fr>=Bt&&er>=qt?or-ve-ct:Fr>Bt&&er<qt||or<ve&&er>qt?Fr-Bt+Wt:0}var h=function(ve,Bt){var qt=window,ct=Bt.scrollMode,Wt=Bt.block,or=Bt.inline,Fr=Bt.boundary,er=Bt.skipOverflowHiddenElements,nr=typeof Fr=="function"?Fr:function(Nn){return Nn!==Fr};if(!n(ve))throw new TypeError("Invalid target");for(var Ot=document.scrollingElement||document.documentElement,lt=[],qe=ve;n(qe)&&nr(qe);){if((qe=qe.parentElement)===Ot){lt.push(qe);break}qe!=null&&qe===document.body&&c(qe)&&!c(document.documentElement)||qe!=null&&c(qe,er)&<.push(qe)}for(var tr=qt.visualViewport?qt.visualViewport.width:innerWidth,xr=qt.visualViewport?qt.visualViewport.height:innerHeight,Ar=window.scrollX||pageXOffset,fr=window.scrollY||pageYOffset,vn=ve.getBoundingClientRect(),$r=vn.height,Ln=vn.width,tt=vn.top,nt=vn.right,Te=vn.bottom,Me=vn.left,Xe=Wt==="start"||Wt==="nearest"?tt:Wt==="end"?Te:tt+$r/2,at=or==="center"?Me+Ln/2:or==="end"?nt:Me,zt=[],kt=0;kt<lt.length;kt++){var Xt=lt[kt],Dr=Xt.getBoundingClientRect(),Pr=Dr.height,cn=Dr.width,jt=Dr.top,gt=Dr.right,dt=Dr.bottom,Qt=Dr.left;if(ct==="if-needed"&&tt>=0&&Me>=0&&Te<=xr&&nt<=tr&&tt>=jt&&Te<=dt&&Me>=Qt&&nt<=gt)return zt;var Jt=getComputedStyle(Xt),xt=parseInt(Jt.borderLeftWidth,10),Pt=parseInt(Jt.borderTopWidth,10),yt=parseInt(Jt.borderRightWidth,10),Ut=parseInt(Jt.borderBottomWidth,10),pr=0,sr=0,ir="offsetWidth"in Xt?Xt.offsetWidth-Xt.clientWidth-xt-yt:0,Yr="offsetHeight"in Xt?Xt.offsetHeight-Xt.clientHeight-Pt-Ut:0;if(Ot===Xt)pr=Wt==="start"?Xe:Wt==="end"?Xe-xr:Wt==="nearest"?d(fr,fr+xr,xr,Pt,Ut,fr+Xe,fr+Xe+$r,$r):Xe-xr/2,sr=or==="start"?at:or==="center"?at-tr/2:or==="end"?at-tr:d(Ar,Ar+tr,tr,xt,yt,Ar+at,Ar+at+Ln,Ln),pr=Math.max(0,pr+fr),sr=Math.max(0,sr+Ar);else{pr=Wt==="start"?Xe-jt-Pt:Wt==="end"?Xe-dt+Ut+Yr:Wt==="nearest"?d(jt,dt,Pr,Pt,Ut+Yr,Xe,Xe+$r,$r):Xe-(jt+Pr/2)+Yr/2,sr=or==="start"?at-Qt-xt:or==="center"?at-(Qt+cn/2)+ir/2:or==="end"?at-gt+yt+ir:d(Qt,gt,cn,xt,yt+ir,at,at+Ln,Ln);var Jr=Xt.scrollLeft,In=Xt.scrollTop;Xe+=In-(pr=Math.max(0,Math.min(In+pr,Xt.scrollHeight-Pr+Yr))),at+=Jr-(sr=Math.max(0,Math.min(Jr+sr,Xt.scrollWidth-cn+ir)))}zt.push({el:Xt,top:pr,left:sr})}return zt};function p(ve){return ve===Object(ve)&&Object.keys(ve).length!==0}function g(ve,Bt){Bt===void 0&&(Bt="auto");var qt="scrollBehavior"in document.body.style;ve.forEach(function(ct){var Wt=ct.el,or=ct.top,Fr=ct.left;Wt.scroll&&qt?Wt.scroll({top:or,left:Fr,behavior:Bt}):(Wt.scrollTop=or,Wt.scrollLeft=Fr)})}function v(ve){return ve===!1?{block:"end",inline:"nearest"}:p(ve)?ve:{block:"start",inline:"nearest"}}function A(ve,Bt){var qt=!ve.ownerDocument.documentElement.contains(ve);if(p(Bt)&&typeof Bt.behavior=="function")return Bt.behavior(qt?[]:h(ve,Bt));if(qt)return;var ct=v(Bt);return g(h(ve,ct),ct.behavior)}var x=A;function b(ve){return ve===void 0||ve===!1?[]:Array.isArray(ve)?ve:[ve]}function w(ve,Bt){if(!ve.length)return;var qt=ve.join("_");return Bt?"".concat(Bt,"_").concat(qt):qt}function S(ve){var Bt=b(ve);return Bt.join("_")}function T(ve){var Bt=Object(t.useForm)(),qt=E()(Bt,1),ct=qt[0],Wt=Object(m.useRef)({}),or=Object(m.useMemo)(function(){return ve||N()(N()({},ct),{__INTERNAL__:{itemRef:function(er){return function(nr){var Ot=S(er);nr?Wt.current[Ot]=nr:delete Wt.current[Ot]}}},scrollToField:function(er){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=b(er),lt=w(Ot,or.__INTERNAL__.name),qe=lt?document.getElementById(lt):null;qe&&x(qe,N()({scrollMode:"if-needed",block:"nearest"},nr))},getFieldInstance:function(er){var nr=S(er);return Wt.current[nr]}})},[ve,ct]);return[or]}var C=y("3Nzz"),O=function(ve,Bt){var qt={};for(var ct in ve)Object.prototype.hasOwnProperty.call(ve,ct)&&Bt.indexOf(ct)<0&&(qt[ct]=ve[ct]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,ct=Object.getOwnPropertySymbols(ve);Wt<ct.length;Wt++)Bt.indexOf(ct[Wt])<0&&Object.prototype.propertyIsEnumerable.call(ve,ct[Wt])&&(qt[ct[Wt]]=ve[ct[Wt]]);return qt},_=function(Bt,qt){var ct,Wt=m.useContext(C.b),or=m.useContext(l.b),Fr=or.getPrefixCls,er=or.direction,nr=Bt.name,Ot=Bt.prefixCls,lt=Bt.className,qe=lt===void 0?"":lt,tr=Bt.size,xr=tr===void 0?Wt:tr,Ar=Bt.form,fr=Bt.colon,vn=Bt.labelAlign,$r=Bt.labelCol,Ln=Bt.wrapperCol,tt=Bt.hideRequiredMark,nt=Bt.layout,Te=nt===void 0?"horizontal":nt,Me=Bt.scrollToFirstError,Xe=Bt.requiredMark,at=Bt.onFinishFailed,zt=O(Bt,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),kt=Object(m.useMemo)(function(){return Xe!==void 0?Xe:!tt},[tt,Xe]),Xt=Fr("form",Ot),Dr=s()(Xt,(ct={},o()(ct,"".concat(Xt,"-").concat(Te),!0),o()(ct,"".concat(Xt,"-hide-required-mark"),kt===!1),o()(ct,"".concat(Xt,"-rtl"),er==="rtl"),o()(ct,"".concat(Xt,"-").concat(xr),xr),ct),qe),Pr=T(Ar),cn=E()(Pr,1),jt=cn[0],gt=jt.__INTERNAL__;gt.name=nr;var dt=Object(m.useMemo)(function(){return{name:nr,labelAlign:vn,labelCol:$r,wrapperCol:Ln,vertical:Te==="vertical",colon:fr,requiredMark:kt,itemRef:gt.itemRef}},[nr,vn,$r,Ln,Te,fr,kt]);m.useImperativeHandle(qt,function(){return jt});var Qt=function(xt){at&&at(xt),Me&&xt.errorFields.length&&jt.scrollToField(xt.errorFields[0].name)};return m.createElement(C.a,{size:xr},m.createElement(r.Provider,{value:dt},m.createElement(t.default,N()({id:nr},zt,{onFinishFailed:Qt,form:jt,className:Dr}))))},M=m.forwardRef(_),k=M,R=y("cDf5"),B=y.n(R),P=y("RIqP"),U=y.n(P),j=y("Y+p1"),H=y.n(j),W=y("KW7l"),G=y("c+Xe"),V=y("qrJ5"),Z=y("CWQg"),Y=y("uaoM"),Q=y("/kpp"),oe=y("YMnH"),ue=y("ZvpZ"),Le=function(Bt){var qt=Bt.prefixCls,ct=Bt.label,Wt=Bt.htmlFor,or=Bt.labelCol,Fr=Bt.labelAlign,er=Bt.colon,nr=Bt.required,Ot=Bt.requiredMark,lt=Object(oe.b)("Form"),qe=E()(lt,1),tr=qe[0];return ct?m.createElement(r.Consumer,{key:"label"},function(xr){var Ar,fr=xr.vertical,vn=xr.labelAlign,$r=xr.labelCol,Ln=xr.colon,tt,nt=or||$r||{},Te=Fr||vn,Me="".concat(qt,"-item-label"),Xe=s()(Me,Te==="left"&&"".concat(Me,"-left"),nt.className),at=ct,zt=er===!0||Ln!==!1&&er!==!1,kt=zt&&!fr;kt&&typeof ct=="string"&&ct.trim()!==""&&(at=ct.replace(/[:|:]\s*$/,"")),Ot==="optional"&&!nr&&(at=m.createElement(m.Fragment,null,at,m.createElement("span",{className:"".concat(qt,"-item-optional")},(tr==null?void 0:tr.optional)||((tt=ue.a.Form)===null||tt===void 0?void 0:tt.optional))));var Xt=s()((Ar={},o()(Ar,"".concat(qt,"-item-required"),nr),o()(Ar,"".concat(qt,"-item-required-mark-optional"),Ot==="optional"),o()(Ar,"".concat(qt,"-item-no-colon"),!zt),Ar));return m.createElement(Q.a,N()({},nt,{className:Xe}),m.createElement("label",{htmlFor:Wt,className:Xt,title:typeof ct=="string"?ct:""},at))}):null},me=Le,Ie=y("gZBC"),X=y.n(Ie),q=y("kbBi"),We=y.n(q),$=y("J84W"),J=y.n($),le=y("sKbD"),de=y.n(le),Ne=y("YrtM"),we=y("8XRh"),De=y("hkKa");function Ee(ve,Bt,qt){var ct=m.useRef({errors:ve,visible:!!ve.length}),Wt=Object(De.a)(),or=function(){var er=ct.current.visible,nr=!!ve.length,Ot=ct.current.errors;ct.current.errors=ve,ct.current.visible=nr,er!==nr?Bt(nr):(Ot.length!==ve.length||Ot.some(function(lt,qe){return lt!==ve[qe]}))&&Wt()};return m.useEffect(function(){if(!qt){var Fr=setTimeout(or,10);return function(){return clearTimeout(Fr)}}},[ve]),qt&&or(),[ct.current.visible,ct.current.errors]}var ce={success:J.a,warning:de.a,error:We.a,validating:X.a},ne=function(Bt){var qt=Bt.prefixCls,ct=Bt.wrapperCol,Wt=Bt.children,or=Bt.help,Fr=Bt.errors,er=Bt.onDomErrorVisibleChange,nr=Bt.hasFeedback,Ot=Bt.validateStatus,lt=Bt.extra,qe=Object(De.a)(),tr="".concat(qt,"-item"),xr=m.useContext(r),Ar=ct||xr.wrapperCol||{},fr=s()("".concat(tr,"-control"),Ar.className),vn=Ee(Fr,function(at){at&&Promise.resolve().then(function(){er(!0)}),qe()},!!or),$r=E()(vn,2),Ln=$r[0],tt=$r[1];m.useEffect(function(){return function(){er(!1)}},[]);var nt=Object(Ne.a)(function(){return tt},Ln,function(at,zt){return zt}),Te=Ot&&ce[Ot],Me=nr&&Te?m.createElement("span",{className:"".concat(tr,"-children-icon")},m.createElement(Te,null)):null,Xe=N()({},xr);return delete Xe.labelCol,delete Xe.wrapperCol,m.createElement(r.Provider,{value:Xe},m.createElement(Q.a,N()({},Ar,{className:fr}),m.createElement("div",{className:"".concat(tr,"-control-input")},m.createElement("div",{className:"".concat(tr,"-control-input-content")},Wt),Me),m.createElement(we.default,{motionDeadline:500,visible:Ln,motionName:"show-help",onLeaveEnd:function(){er(!1)},motionAppear:!0,removeOnLeave:!0},function(at){var zt=at.className;return m.createElement("div",{className:s()("".concat(tr,"-explain"),zt),key:"help"},nt.map(function(kt,Xt){return m.createElement("div",{key:Xt,role:"alert"},kt)}))}),lt&&m.createElement("div",{className:"".concat(tr,"-extra")},lt)))},ee=ne,Ae=y("0n0R"),Ve=y("xEkU"),Ke=y.n(Ve);function Oe(ve){var Bt=m.useState(ve),qt=E()(Bt,2),ct=qt[0],Wt=qt[1],or=Object(m.useRef)(null),Fr=Object(m.useRef)([]),er=Object(m.useRef)(!1);m.useEffect(function(){return function(){er.current=!0,Ke.a.cancel(or.current)}},[]);function nr(Ot){if(er.current)return;or.current===null&&(Fr.current=[],or.current=Ke()(function(){or.current=null,Wt(function(lt){var qe=lt;return Fr.current.forEach(function(tr){qe=tr(qe)}),qe})})),Fr.current.push(Ot)}return[ct,nr]}function it(){var ve=m.useContext(r),Bt=ve.itemRef,qt=m.useRef({});function ct(Wt,or){var Fr=or&&B()(or)==="object"&&or.ref,er=Wt.join("_");return(qt.current.name!==er||qt.current.originRef!==Fr)&&(qt.current.name=er,qt.current.originRef=Fr,qt.current.ref=Object(G.a)(Bt(Wt),Fr)),qt.current.ref}return ct}var Fe=function(ve,Bt){var qt={};for(var ct in ve)Object.prototype.hasOwnProperty.call(ve,ct)&&Bt.indexOf(ct)<0&&(qt[ct]=ve[ct]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,ct=Object.getOwnPropertySymbols(ve);Wt<ct.length;Wt++)Bt.indexOf(ct[Wt])<0&&Object.prototype.propertyIsEnumerable.call(ve,ct[Wt])&&(qt[ct[Wt]]=ve[ct[Wt]]);return qt},ft=Object(Z.a)("success","warning","error","validating",""),At=m.memo(function(ve){var Bt=ve.children;return Bt},function(ve,Bt){return ve.value===Bt.value&&ve.update===Bt.update});function bt(ve){return ve===null&&Object(Y.a)(!1,"Form.Item","`null` is passed as `name` property"),!(ve==null)}function St(ve){var Bt=ve.name,qt=ve.fieldKey,ct=ve.noStyle,Wt=ve.dependencies,or=ve.prefixCls,Fr=ve.style,er=ve.className,nr=ve.shouldUpdate,Ot=ve.hasFeedback,lt=ve.help,qe=ve.rules,tr=ve.validateStatus,xr=ve.children,Ar=ve.required,fr=ve.label,vn=ve.trigger,$r=vn===void 0?"onChange":vn,Ln=ve.validateTrigger,tt=ve.hidden,nt=Fe(ve,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Te=m.useRef(!1),Me=m.useContext(l.b),Xe=Me.getPrefixCls,at=m.useContext(r),zt=at.name,kt=at.requiredMark,Xt=m.useContext(u),Dr=Xt.updateItemErrors,Pr=m.useState(!!lt),cn=E()(Pr,2),jt=cn[0],gt=cn[1],dt=m.useRef(tr),Qt=Oe({}),Jt=E()(Qt,2),xt=Jt[0],Pt=Jt[1],yt=m.useContext(W.b),Ut=yt.validateTrigger,pr=Ln!==void 0?Ln:Ut;function sr($e){Te.current||gt($e)}var ir=bt(Bt),Yr=m.useRef([]);m.useEffect(function(){return function(){Te.current=!0,Dr(Yr.current.join("__SPLIT__"),[])}},[]);var Jr=Xe("form",or),In=ct?Dr:function($e,_e){Pt(function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return H()(Be[$e],_e)?Be:N()(N()({},Be),o()({},$e,_e))})},Nn=it();function zn($e,_e,Be,He){var Je,Ye;if(ct&&!tt)return $e;var et=[];Object.keys(xt).forEach(function(wr){et=[].concat(U()(et),U()(xt[wr]||[]))});var wt;lt!=null?wt=b(lt):(wt=Be?Be.errors:[],wt=[].concat(U()(wt),U()(et)));var ut="";tr!==void 0?ut=tr:(Be==null?void 0:Be.validating)?ut="validating":((Ye=Be==null?void 0:Be.errors)===null||Ye===void 0?void 0:Ye.length)||et.length?ut="error":(Be==null?void 0:Be.touched)&&(ut="success"),jt&<&&(dt.current=ut);var Ft=(Je={},o()(Je,"".concat(Jr,"-item"),!0),o()(Je,"".concat(Jr,"-item-with-help"),jt||lt),o()(Je,"".concat(er),!!er),o()(Je,"".concat(Jr,"-item-has-feedback"),ut&&Ot),o()(Je,"".concat(Jr,"-item-has-success"),ut==="success"),o()(Je,"".concat(Jr,"-item-has-warning"),ut==="warning"),o()(Je,"".concat(Jr,"-item-has-error"),ut==="error"),o()(Je,"".concat(Jr,"-item-has-error-leave"),!lt&&jt&&dt.current==="error"),o()(Je,"".concat(Jr,"-item-is-validating"),ut==="validating"),o()(Je,"".concat(Jr,"-item-hidden"),tt),Je);return m.createElement(V.a,N()({className:s()(Ft),style:Fr,key:"row"},Object(a.default)(nt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),m.createElement(me,N()({htmlFor:_e,required:He,requiredMark:kt},ve,{prefixCls:Jr})),m.createElement(ee,N()({},ve,Be,{errors:wt,prefixCls:Jr,onDomErrorVisibleChange:sr,validateStatus:ut}),m.createElement(u.Provider,{value:{updateItemErrors:In}},$e)))}var ei=typeof xr=="function",Ai=m.useRef(0);if(Ai.current+=1,!ir&&!ei&&!Wt)return zn(xr);var Pi={};return typeof fr=="string"&&(Pi.label=fr),m.createElement(t.Field,N()({},ve,{messageVariables:Pi,trigger:$r,validateTrigger:pr,onReset:function(){sr(!1)}}),function($e,_e,Be){var He=_e.errors,Je=b(Bt).length&&_e?_e.name:[],Ye=w(Je,zt);if(ct){if(Yr.current=U()(Je),qt){var et=Array.isArray(qt)?qt:[qt];Yr.current=[].concat(U()(Je.slice(0,-1)),U()(et))}Dr(Yr.current.join("__SPLIT__"),He)}var wt=Ar!==void 0?Ar:!!(qe&&qe.some(function(Nr){if(Nr&&B()(Nr)==="object"&&Nr.required)return!0;if(typeof Nr=="function"){var Kt=Nr(Be);return Kt&&Kt.required}return!1})),ut=N()({},$e),Ft=null;if(Object(Y.a)(!(nr&&Wt),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(xr)&&ir)Object(Y.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),Ft=xr;else if(ei&&(!(nr||Wt)||ir))Object(Y.a)(!!(nr||Wt),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(Y.a)(!ir,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(Wt&&!ei&&!ir)Object(Y.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Ae.b)(xr)){Object(Y.a)(xr.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var wr=N()(N()({},xr.props),ut);wr.id||(wr.id=Ye),Object(G.c)(xr)&&(wr.ref=Nn(Je,xr));var hr=new Set([].concat(U()(b($r)),U()(b(pr))));hr.forEach(function(Nr){wr[Nr]=function(){for(var Kt,un,ar,Gr,Br,gr=arguments.length,Sn=new Array(gr),Pn=0;Pn<gr;Pn++)Sn[Pn]=arguments[Pn];(ar=ut[Nr])===null||ar===void 0||(Kt=ar).call.apply(Kt,[ut].concat(Sn)),(Br=(Gr=xr.props)[Nr])===null||Br===void 0||(un=Br).call.apply(un,[Gr].concat(Sn))}}),Ft=m.createElement(At,{value:ut[ve.valuePropName||"value"],update:Ai.current},Object(Ae.a)(xr,wr))}else ei&&(nr||Wt)&&!ir?Ft=xr(Be):(Object(Y.a)(!Je.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),Ft=xr);return zn(Ft,Ye,_e,wt)})}var Et=St,je=function(ve,Bt){var qt={};for(var ct in ve)Object.prototype.hasOwnProperty.call(ve,ct)&&Bt.indexOf(ct)<0&&(qt[ct]=ve[ct]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,ct=Object.getOwnPropertySymbols(ve);Wt<ct.length;Wt++)Bt.indexOf(ct[Wt])<0&&Object.prototype.propertyIsEnumerable.call(ve,ct[Wt])&&(qt[ct[Wt]]=ve[ct[Wt]]);return qt},pe=function(Bt){var qt=Bt.children,ct=je(Bt,["children"]);return Object(Y.a)(!!ct.name,"Form.List","Miss `name` prop."),m.createElement(t.List,ct,function(Wt,or){return qt(Wt.map(function(Fr){return N()(N()({},Fr),{fieldKey:Fr.key})}),or)})},ie=pe,st=k;st.Item=Et,st.List=ie,st.useForm=T,st.Provider=e,st.create=function(){Object(Y.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var Qe=z.a=st},VpOo:function(fe,z){function y(D,N){var L=N.x,E=N.y,I=N.width,o=N.height,m=N.r,f,s,t,l;I<0&&(L=L+I,I=-I),o<0&&(E=E+o,o=-o),typeof m=="number"?f=s=t=l=m:m instanceof Array?m.length===1?f=s=t=l=m[0]:m.length===2?(f=t=m[0],s=l=m[1]):m.length===3?(f=m[0],s=l=m[1],t=m[2]):(f=m[0],s=m[1],t=m[2],l=m[3]):f=s=t=l=0;var a;f+s>I&&(a=f+s,f*=I/a,s*=I/a),t+l>I&&(a=t+l,t*=I/a,l*=I/a),s+t>o&&(a=s+t,s*=o/a,t*=o/a),f+l>o&&(a=f+l,f*=o/a,l*=o/a),D.moveTo(L+f,E),D.lineTo(L+I-s,E),s!==0&&D.arc(L+I-s,E+s,s,-Math.PI/2,0),D.lineTo(L+I,E+o-t),t!==0&&D.arc(L+I-t,E+o-t,t,0,Math.PI/2),D.lineTo(L+l,E+o),l!==0&&D.arc(L+l,E+o-l,l,Math.PI/2,Math.PI),D.lineTo(L,E+f),f!==0&&D.arc(L+f,E+f,f,Math.PI,Math.PI*1.5)}z.buildPath=y},"VrN/":function(fe,z,y){(function(D,N){fe.exports=N()})(this,function(){"use strict";var D=navigator.userAgent,N=navigator.platform,L=/gecko\/\d/i.test(D),E=/MSIE \d/.test(D),I=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(D),o=/Edge\/(\d+)/.exec(D),m=E||I||o,f=m&&(E?document.documentMode||6:+(o||I)[1]),s=!o&&/WebKit\//.test(D),t=s&&/Qt\/\d+\.\d+/.test(D),l=!o&&/Chrome\//.test(D),a=/Opera\//.test(D),r=/Apple Computer/.test(navigator.vendor),u=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(D),e=/PhantomJS/.test(D),n=!o&&/AppleWebKit/.test(D)&&/Mobile\/\w+/.test(D),i=/Android/.test(D),c=n||i||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(D),d=n||/Mac/.test(N),h=/\bCrOS\b/.test(D),p=/win/i.test(N),g=a&&D.match(/Version\/(\d*\.\d*)/);g&&(g=Number(g[1])),g&&g>=15&&(a=!1,s=!0);var v=d&&(t||a&&(g==null||g<12.11)),A=L||m&&f>=9;function x(F){return new RegExp("(^|\\s)"+F+"(?:$|\\s)\\s*")}var b=function(K,te){var ae=K.className,he=x(te).exec(ae);if(he){var Pe=ae.slice(he.index+he[0].length);K.className=ae.slice(0,he.index)+(Pe?he[1]+Pe:"")}};function w(F){for(var K=F.childNodes.length;K>0;--K)F.removeChild(F.firstChild);return F}function S(F,K){return w(F).appendChild(K)}function T(F,K,te,ae){var he=document.createElement(F);if(te&&(he.className=te),ae&&(he.style.cssText=ae),typeof K=="string")he.appendChild(document.createTextNode(K));else if(K)for(var Pe=0;Pe<K.length;++Pe)he.appendChild(K[Pe]);return he}function C(F,K,te,ae){var he=T(F,K,te,ae);return he.setAttribute("role","presentation"),he}var O;document.createRange?O=function(K,te,ae,he){var Pe=document.createRange();return Pe.setEnd(he||K,ae),Pe.setStart(K,te),Pe}:O=function(K,te,ae){var he=document.body.createTextRange();try{he.moveToElementText(K.parentNode)}catch(Pe){return he}return he.collapse(!0),he.moveEnd("character",ae),he.moveStart("character",te),he};function _(F,K){if(K.nodeType==3&&(K=K.parentNode),F.contains)return F.contains(K);do if(K.nodeType==11&&(K=K.host),K==F)return!0;while(K=K.parentNode)}function M(){var F;try{F=document.activeElement}catch(K){F=document.body||null}for(;F&&F.shadowRoot&&F.shadowRoot.activeElement;)F=F.shadowRoot.activeElement;return F}function k(F,K){var te=F.className;x(K).test(te)||(F.className+=(te?" ":"")+K)}function R(F,K){for(var te=F.split(" "),ae=0;ae<te.length;ae++)te[ae]&&!x(te[ae]).test(K)&&(K+=" "+te[ae]);return K}var B=function(K){K.select()};n?B=function(K){K.selectionStart=0,K.selectionEnd=K.value.length}:m&&(B=function(K){try{K.select()}catch(te){}});function P(F){var K=Array.prototype.slice.call(arguments,1);return function(){return F.apply(null,K)}}function U(F,K,te){K||(K={});for(var ae in F)F.hasOwnProperty(ae)&&(te!==!1||!K.hasOwnProperty(ae))&&(K[ae]=F[ae]);return K}function j(F,K,te,ae,he){K==null&&(K=F.search(/[^\s\u00a0]/),K==-1&&(K=F.length));for(var Pe=ae||0,mt=he||0;;){var It=F.indexOf(" ",Pe);if(It<0||It>=K)return mt+(K-Pe);mt+=It-Pe,mt+=te-mt%te,Pe=It+1}}var H=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};H.prototype.onTimeout=function(F){F.id=0,F.time<=+new Date?F.f():setTimeout(F.handler,F.time-+new Date)},H.prototype.set=function(F,K){this.f=K;var te=+new Date+F;(!this.id||te<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,F),this.time=te)};function W(F,K){for(var te=0;te<F.length;++te)if(F[te]==K)return te;return-1}var G=50,V={toString:function(){return"CodeMirror.Pass"}},Z={scroll:!1},Y={origin:"*mouse"},Q={origin:"+move"};function oe(F,K,te){for(var ae=0,he=0;;){var Pe=F.indexOf(" ",ae);Pe==-1&&(Pe=F.length);var mt=Pe-ae;if(Pe==F.length||he+mt>=K)return ae+Math.min(mt,K-he);if(he+=Pe-ae,he+=te-he%te,ae=Pe+1,he>=K)return ae}}var ue=[""];function Le(F){for(;ue.length<=F;)ue.push(me(ue)+" ");return ue[F]}function me(F){return F[F.length-1]}function Ie(F,K){for(var te=[],ae=0;ae<F.length;ae++)te[ae]=K(F[ae],ae);return te}function X(F,K,te){for(var ae=0,he=te(K);ae<F.length&&te(F[ae])<=he;)ae++;F.splice(ae,0,K)}function q(){}function We(F,K){var te;return Object.create?te=Object.create(F):(q.prototype=F,te=new q),K&&U(K,te),te}var $=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(F){return/\w/.test(F)||F>"\x80"&&(F.toUpperCase()!=F.toLowerCase()||$.test(F))}function le(F,K){return K?K.source.indexOf("\\w")>-1&&J(F)?!0:K.test(F):J(F)}function de(F){for(var K in F)if(F.hasOwnProperty(K)&&F[K])return!1;return!0}var Ne=/[\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 we(F){return F.charCodeAt(0)>=768&&Ne.test(F)}function De(F,K,te){for(;(te<0?K>0:K<F.length)&&we(F.charAt(K));)K+=te;return K}function Ee(F,K,te){for(var ae=K>te?-1:1;;){if(K==te)return K;var he=(K+te)/2,Pe=ae<0?Math.ceil(he):Math.floor(he);if(Pe==K)return F(Pe)?K:te;F(Pe)?te=Pe:K=Pe+ae}}function ce(F,K,te,ae){if(!F)return ae(K,te,"ltr",0);for(var he=!1,Pe=0;Pe<F.length;++Pe){var mt=F[Pe];(mt.from<te&&mt.to>K||K==te&&mt.to==K)&&(ae(Math.max(mt.from,K),Math.min(mt.to,te),mt.level==1?"rtl":"ltr",Pe),he=!0)}he||ae(K,te,"ltr")}var ne=null;function ee(F,K,te){var ae;ne=null;for(var he=0;he<F.length;++he){var Pe=F[he];if(Pe.from<K&&Pe.to>K)return he;Pe.to==K&&(Pe.from!=Pe.to&&te=="before"?ae=he:ne=he),Pe.from==K&&(Pe.from!=Pe.to&&te!="before"?ae=he:ne=he)}return ae!=null?ae:ne}var Ae=function(){var F="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",K="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function te(rr){return rr<=247?F.charAt(rr):1424<=rr&&rr<=1524?"R":1536<=rr&&rr<=1785?K.charAt(rr-1536):1774<=rr&&rr<=2220?"r":8192<=rr&&rr<=8203?"w":rr==8204?"b":"L"}var ae=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,he=/[stwN]/,Pe=/[LRr]/,mt=/[Lb1n]/,It=/[1n]/;function Yt(rr,en,hn){this.level=rr,this.from=en,this.to=hn}return function(rr,en){var hn=en=="ltr"?"L":"R";if(rr.length==0||en=="ltr"&&!ae.test(rr))return!1;for(var Dn=rr.length,Bn=[],vi=0;vi<Dn;++vi)Bn.push(te(rr.charCodeAt(vi)));for(var Ki=0,Qi=hn;Ki<Dn;++Ki){var Xi=Bn[Ki];Xi=="m"?Bn[Ki]=Qi:Qi=Xi}for(var Vi=0,fa=hn;Vi<Dn;++Vi){var ba=Bn[Vi];ba=="1"&&fa=="r"?Bn[Vi]="n":Pe.test(ba)&&(fa=ba,ba=="r"&&(Bn[Vi]="R"))}for(var qa=1,Ba=Bn[0];qa<Dn-1;++qa){var Eo=Bn[qa];Eo=="+"&&Ba=="1"&&Bn[qa+1]=="1"?Bn[qa]="1":Eo==","&&Ba==Bn[qa+1]&&(Ba=="1"||Ba=="n")&&(Bn[qa]=Ba),Ba=Eo}for(var Wo=0;Wo<Dn;++Wo){var cs=Bn[Wo];if(cs==",")Bn[Wo]="N";else if(cs=="%"){var $o=void 0;for($o=Wo+1;$o<Dn&&Bn[$o]=="%";++$o);for(var Ms=Wo&&Bn[Wo-1]=="!"||$o<Dn&&Bn[$o]=="1"?"1":"N",Qs=Wo;Qs<$o;++Qs)Bn[Qs]=Ms;Wo=$o-1}}for(var Ts=0,Js=hn;Ts<Dn;++Ts){var ks=Bn[Ts];Js=="L"&&ks=="1"?Bn[Ts]="L":Pe.test(ks)&&(Js=ks)}for(var aa=0;aa<Dn;++aa)if(he.test(Bn[aa])){var os=void 0;for(os=aa+1;os<Dn&&he.test(Bn[os]);++os);for(var rs=(aa?Bn[aa-1]:hn)=="L",As=(os<Dn?Bn[os]:hn)=="L",Ac=rs==As?rs?"L":"R":hn,No=aa;No<os;++No)Bn[No]=Ac;aa=os-1}for(var Ao=[],ml,Gs=0;Gs<Dn;)if(mt.test(Bn[Gs])){var yc=Gs;for(++Gs;Gs<Dn&&mt.test(Bn[Gs]);++Gs);Ao.push(new Yt(0,yc,Gs))}else{var Dl=Gs,gl=Ao.length,Xl=en=="rtl"?1:0;for(++Gs;Gs<Dn&&Bn[Gs]!="L";++Gs);for(var rl=Dl;rl<Gs;)if(It.test(Bn[rl])){Dl<rl&&(Ao.splice(gl,0,new Yt(1,Dl,rl)),gl+=Xl);var Rl=rl;for(++rl;rl<Gs&&It.test(Bn[rl]);++rl);Ao.splice(gl,0,new Yt(2,Rl,rl)),gl+=Xl,Dl=rl}else++rl;Dl<Gs&&Ao.splice(gl,0,new Yt(1,Dl,Gs))}return en=="ltr"&&(Ao[0].level==1&&(ml=rr.match(/^\s+/))&&(Ao[0].from=ml[0].length,Ao.unshift(new Yt(0,0,ml[0].length))),me(Ao).level==1&&(ml=rr.match(/\s+$/))&&(me(Ao).to-=ml[0].length,Ao.push(new Yt(0,Dn-ml[0].length,Dn)))),en=="rtl"?Ao.reverse():Ao}}();function Ve(F,K){var te=F.order;return te==null&&(te=F.order=Ae(F.text,K)),te}var Ke=[],Oe=function(K,te,ae){if(K.addEventListener)K.addEventListener(te,ae,!1);else if(K.attachEvent)K.attachEvent("on"+te,ae);else{var he=K._handlers||(K._handlers={});he[te]=(he[te]||Ke).concat(ae)}};function it(F,K){return F._handlers&&F._handlers[K]||Ke}function Fe(F,K,te){if(F.removeEventListener)F.removeEventListener(K,te,!1);else if(F.detachEvent)F.detachEvent("on"+K,te);else{var ae=F._handlers,he=ae&&ae[K];if(he){var Pe=W(he,te);Pe>-1&&(ae[K]=he.slice(0,Pe).concat(he.slice(Pe+1)))}}}function ft(F,K){var te=it(F,K);if(!te.length)return;for(var ae=Array.prototype.slice.call(arguments,2),he=0;he<te.length;++he)te[he].apply(null,ae)}function At(F,K,te){return typeof K=="string"&&(K={type:K,preventDefault:function(){this.defaultPrevented=!0}}),ft(F,te||K.type,F,K),ie(K)||K.codemirrorIgnore}function bt(F){var K=F._handlers&&F._handlers.cursorActivity;if(!K)return;for(var te=F.curOp.cursorActivityHandlers||(F.curOp.cursorActivityHandlers=[]),ae=0;ae<K.length;++ae)W(te,K[ae])==-1&&te.push(K[ae])}function St(F,K){return it(F,K).length>0}function Et(F){F.prototype.on=function(K,te){Oe(this,K,te)},F.prototype.off=function(K,te){Fe(this,K,te)}}function je(F){F.preventDefault?F.preventDefault():F.returnValue=!1}function pe(F){F.stopPropagation?F.stopPropagation():F.cancelBubble=!0}function ie(F){return F.defaultPrevented!=null?F.defaultPrevented:F.returnValue==!1}function st(F){je(F),pe(F)}function Qe(F){return F.target||F.srcElement}function ve(F){var K=F.which;return K==null&&(F.button&1?K=1:F.button&2?K=3:F.button&4&&(K=2)),d&&F.ctrlKey&&K==1&&(K=3),K}var Bt=function(){if(m&&f<9)return!1;var F=T("div");return"draggable"in F||"dragDrop"in F}(),qt;function ct(F){if(qt==null){var K=T("span","\u200B");S(F,T("span",[K,document.createTextNode("x")])),F.firstChild.offsetHeight!=0&&(qt=K.offsetWidth<=1&&K.offsetHeight>2&&!(m&&f<8))}var te=qt?T("span","\u200B"):T("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return te.setAttribute("cm-text",""),te}var Wt;function or(F){if(Wt!=null)return Wt;var K=S(F,document.createTextNode("A\u062EA")),te=O(K,0,1).getBoundingClientRect(),ae=O(K,1,2).getBoundingClientRect();return w(F),!te||te.left==te.right?!1:Wt=ae.right-te.right<3}var Fr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(F){for(var K=0,te=[],ae=F.length;K<=ae;){var he=F.indexOf(`
|
|
|
`,K);he==-1&&(he=F.length);var Pe=F.slice(K,F.charAt(he-1)=="\r"?he-1:he),mt=Pe.indexOf("\r");mt!=-1?(te.push(Pe.slice(0,mt)),K+=mt+1):(te.push(Pe),K=he+1)}return te}:function(F){return F.split(/\r\n?|\n/)},er=window.getSelection?function(F){try{return F.selectionStart!=F.selectionEnd}catch(K){return!1}}:function(F){var K;try{K=F.ownerDocument.selection.createRange()}catch(te){}return!K||K.parentElement()!=F?!1:K.compareEndPoints("StartToEnd",K)!=0},nr=function(){var F=T("div");return"oncopy"in F?!0:(F.setAttribute("oncopy","return;"),typeof F.oncopy=="function")}(),Ot=null;function lt(F){if(Ot!=null)return Ot;var K=S(F,T("span","x")),te=K.getBoundingClientRect(),ae=O(K,0,1).getBoundingClientRect();return Ot=Math.abs(te.left-ae.left)>1}var qe={},tr={};function xr(F,K){arguments.length>2&&(K.dependencies=Array.prototype.slice.call(arguments,2)),qe[F]=K}function Ar(F,K){tr[F]=K}function fr(F){if(typeof F=="string"&&tr.hasOwnProperty(F))F=tr[F];else if(F&&typeof F.name=="string"&&tr.hasOwnProperty(F.name)){var K=tr[F.name];typeof K=="string"&&(K={name:K}),F=We(K,F),F.name=K.name}else{if(typeof F=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(F))return fr("application/xml");if(typeof F=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(F))return fr("application/json")}return typeof F=="string"?{name:F}:F||{name:"null"}}function vn(F,K){K=fr(K);var te=qe[K.name];if(!te)return vn(F,"text/plain");var ae=te(F,K);if($r.hasOwnProperty(K.name)){var he=$r[K.name];for(var Pe in he){if(!he.hasOwnProperty(Pe))continue;ae.hasOwnProperty(Pe)&&(ae["_"+Pe]=ae[Pe]),ae[Pe]=he[Pe]}}if(ae.name=K.name,K.helperType&&(ae.helperType=K.helperType),K.modeProps)for(var mt in K.modeProps)ae[mt]=K.modeProps[mt];return ae}var $r={};function Ln(F,K){var te=$r.hasOwnProperty(F)?$r[F]:$r[F]={};U(K,te)}function tt(F,K){if(K===!0)return K;if(F.copyState)return F.copyState(K);var te={};for(var ae in K){var he=K[ae];he instanceof Array&&(he=he.concat([])),te[ae]=he}return te}function nt(F,K){for(var te;F.innerMode&&!(te=F.innerMode(K),!te||te.mode==F);)K=te.state,F=te.mode;return te||{mode:F,state:K}}function Te(F,K,te){return F.startState?F.startState(K,te):!0}var Me=function(K,te,ae){this.pos=this.start=0,this.string=K,this.tabSize=te||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ae};Me.prototype.eol=function(){return this.pos>=this.string.length},Me.prototype.sol=function(){return this.pos==this.lineStart},Me.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Me.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Me.prototype.eat=function(F){var K=this.string.charAt(this.pos),te;if(typeof F=="string"?te=K==F:te=K&&(F.test?F.test(K):F(K)),te)return++this.pos,K},Me.prototype.eatWhile=function(F){for(var K=this.pos;this.eat(F););return this.pos>K},Me.prototype.eatSpace=function(){for(var F=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>F},Me.prototype.skipToEnd=function(){this.pos=this.string.length},Me.prototype.skipTo=function(F){var K=this.string.indexOf(F,this.pos);if(K>-1)return this.pos=K,!0},Me.prototype.backUp=function(F){this.pos-=F},Me.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)},Me.prototype.indentation=function(){return j(this.string,null,this.tabSize)-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},Me.prototype.match=function(F,K,te){if(typeof F=="string"){var ae=function(It){return te?It.toLowerCase():It},he=this.string.substr(this.pos,F.length);if(ae(he)==ae(F))return K!==!1&&(this.pos+=F.length),!0}else{var Pe=this.string.slice(this.pos).match(F);return Pe&&Pe.index>0?null:(Pe&&K!==!1&&(this.pos+=Pe[0].length),Pe)}},Me.prototype.current=function(){return this.string.slice(this.start,this.pos)},Me.prototype.hideFirstChars=function(F,K){this.lineStart+=F;try{return K()}finally{this.lineStart-=F}},Me.prototype.lookAhead=function(F){var K=this.lineOracle;return K&&K.lookAhead(F)},Me.prototype.baseToken=function(){var F=this.lineOracle;return F&&F.baseToken(this.pos)};function Xe(F,K){if(K-=F.first,K<0||K>=F.size)throw new Error("There is no line "+(K+F.first)+" in the document.");for(var te=F;!te.lines;)for(var ae=0;;++ae){var he=te.children[ae],Pe=he.chunkSize();if(K<Pe){te=he;break}K-=Pe}return te.lines[K]}function at(F,K,te){var ae=[],he=K.line;return F.iter(K.line,te.line+1,function(Pe){var mt=Pe.text;he==te.line&&(mt=mt.slice(0,te.ch)),he==K.line&&(mt=mt.slice(K.ch)),ae.push(mt),++he}),ae}function zt(F,K,te){var ae=[];return F.iter(K,te,function(he){ae.push(he.text)}),ae}function kt(F,K){var te=K-F.height;if(te)for(var ae=F;ae;ae=ae.parent)ae.height+=te}function Xt(F){if(F.parent==null)return null;for(var K=F.parent,te=W(K.lines,F),ae=K.parent;ae;K=ae,ae=ae.parent)for(var he=0;!(ae.children[he]==K);++he)te+=ae.children[he].chunkSize();return te+K.first}function Dr(F,K){var te=F.first;e:do{for(var ae=0;ae<F.children.length;++ae){var he=F.children[ae],Pe=he.height;if(K<Pe){F=he;continue e}K-=Pe,te+=he.chunkSize()}return te}while(!F.lines);for(var mt=0;mt<F.lines.length;++mt){var It=F.lines[mt],Yt=It.height;if(K<Yt)break;K-=Yt}return te+mt}function Pr(F,K){return K>=F.first&&K<F.first+F.size}function cn(F,K){return String(F.lineNumberFormatter(K+F.firstLineNumber))}function jt(F,K,te){if(te===void 0&&(te=null),!(this instanceof jt))return new jt(F,K,te);this.line=F,this.ch=K,this.sticky=te}function gt(F,K){return F.line-K.line||F.ch-K.ch}function dt(F,K){return F.sticky==K.sticky&>(F,K)==0}function Qt(F){return jt(F.line,F.ch)}function Jt(F,K){return gt(F,K)<0?K:F}function xt(F,K){return gt(F,K)<0?F:K}function Pt(F,K){return Math.max(F.first,Math.min(K,F.first+F.size-1))}function yt(F,K){if(K.line<F.first)return jt(F.first,0);var te=F.first+F.size-1;return K.line>te?jt(te,Xe(F,te).text.length):Ut(K,Xe(F,K.line).text.length)}function Ut(F,K){var te=F.ch;return te==null||te>K?jt(F.line,K):te<0?jt(F.line,0):F}function pr(F,K){for(var te=[],ae=0;ae<K.length;ae++)te[ae]=yt(F,K[ae]);return te}var sr=function(K,te){this.state=K,this.lookAhead=te},ir=function(K,te,ae,he){this.state=te,this.doc=K,this.line=ae,this.maxLookAhead=he||0,this.baseTokens=null,this.baseTokenPos=1};ir.prototype.lookAhead=function(F){var K=this.doc.getLine(this.line+F);return K!=null&&F>this.maxLookAhead&&(this.maxLookAhead=F),K},ir.prototype.baseToken=function(F){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=F;)this.baseTokenPos+=2;var K=this.baseTokens[this.baseTokenPos+1];return{type:K&&K.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-F}},ir.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ir.fromSaved=function(F,K,te){return K instanceof sr?new ir(F,tt(F.mode,K.state),te,K.lookAhead):new ir(F,tt(F.mode,K),te)},ir.prototype.save=function(F){var K=F!==!1?tt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new sr(K,this.maxLookAhead):K};function Yr(F,K,te,ae){var he=[F.state.modeGen],Pe={};_e(F,K.text,F.doc.mode,te,function(rr,en){return he.push(rr,en)},Pe,ae);for(var mt=te.state,It=function(en){te.baseTokens=he;var hn=F.state.overlays[en],Dn=1,Bn=0;te.state=!0,_e(F,K.text,hn.mode,te,function(vi,Ki){for(var Qi=Dn;Bn<vi;){var Xi=he[Dn];Xi>vi&&he.splice(Dn,1,vi,he[Dn+1],Xi),Dn+=2,Bn=Math.min(vi,Xi)}if(!Ki)return;if(hn.opaque)he.splice(Qi,Dn-Qi,vi,"overlay "+Ki),Dn=Qi+2;else for(;Qi<Dn;Qi+=2){var Vi=he[Qi+1];he[Qi+1]=(Vi?Vi+" ":"")+"overlay "+Ki}},Pe),te.state=mt,te.baseTokens=null,te.baseTokenPos=1},Yt=0;Yt<F.state.overlays.length;++Yt)It(Yt);return{styles:he,classes:Pe.bgClass||Pe.textClass?Pe:null}}function Jr(F,K,te){if(!K.styles||K.styles[0]!=F.state.modeGen){var ae=In(F,Xt(K)),he=K.text.length>F.options.maxHighlightLength&&tt(F.doc.mode,ae.state),Pe=Yr(F,K,ae);he&&(ae.state=he),K.stateAfter=ae.save(!he),K.styles=Pe.styles,Pe.classes?K.styleClasses=Pe.classes:K.styleClasses&&(K.styleClasses=null),te===F.doc.highlightFrontier&&(F.doc.modeFrontier=Math.max(F.doc.modeFrontier,++F.doc.highlightFrontier))}return K.styles}function In(F,K,te){var ae=F.doc,he=F.display;if(!ae.mode.startState)return new ir(ae,!0,K);var Pe=Be(F,K,te),mt=Pe>ae.first&&Xe(ae,Pe-1).stateAfter,It=mt?ir.fromSaved(ae,mt,Pe):new ir(ae,Te(ae.mode),Pe);return ae.iter(Pe,K,function(Yt){Nn(F,Yt.text,It);var rr=It.line;Yt.stateAfter=rr==K-1||rr%5==0||rr>=he.viewFrom&&rr<he.viewTo?It.save():null,It.nextLine()}),te&&(ae.modeFrontier=It.line),It}function Nn(F,K,te,ae){var he=F.doc.mode,Pe=new Me(K,F.options.tabSize,te);for(Pe.start=Pe.pos=ae||0,K==""&&zn(he,te.state);!Pe.eol();)ei(he,Pe,te.state),Pe.start=Pe.pos}function zn(F,K){if(F.blankLine)return F.blankLine(K);if(!F.innerMode)return;var te=nt(F,K);if(te.mode.blankLine)return te.mode.blankLine(te.state)}function ei(F,K,te,ae){for(var he=0;he<10;he++){ae&&(ae[0]=nt(F,te).mode);var Pe=F.token(K,te);if(K.pos>K.start)return Pe}throw new Error("Mode "+F.name+" failed to advance stream.")}var Ai=function(K,te,ae){this.start=K.start,this.end=K.pos,this.string=K.current(),this.type=te||null,this.state=ae};function Pi(F,K,te,ae){var he=F.doc,Pe=he.mode,mt;K=yt(he,K);var It=Xe(he,K.line),Yt=In(F,K.line,te),rr=new Me(It.text,F.options.tabSize,Yt),en;for(ae&&(en=[]);(ae||rr.pos<K.ch)&&!rr.eol();)rr.start=rr.pos,mt=ei(Pe,rr,Yt.state),ae&&en.push(new Ai(rr,mt,tt(he.mode,Yt.state)));return ae?en:new Ai(rr,mt,Yt.state)}function $e(F,K){if(F)for(;;){var te=F.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!te)break;F=F.slice(0,te.index)+F.slice(te.index+te[0].length);var ae=te[1]?"bgClass":"textClass";K[ae]==null?K[ae]=te[2]:new RegExp("(?:^|\\s)"+te[2]+"(?:$|\\s)").test(K[ae])||(K[ae]+=" "+te[2])}return F}function _e(F,K,te,ae,he,Pe,mt){var It=te.flattenSpans;It==null&&(It=F.options.flattenSpans);var Yt=0,rr=null,en=new Me(K,F.options.tabSize,ae),hn,Dn=F.options.addModeClass&&[null];for(K==""&&$e(zn(te,ae.state),Pe);!en.eol();){if(en.pos>F.options.maxHighlightLength?(It=!1,mt&&Nn(F,K,ae,en.pos),en.pos=K.length,hn=null):hn=$e(ei(te,en,ae.state,Dn),Pe),Dn){var Bn=Dn[0].name;Bn&&(hn="m-"+(hn?Bn+" "+hn:Bn))}if(!It||rr!=hn){for(;Yt<en.start;)Yt=Math.min(en.start,Yt+5e3),he(Yt,rr);rr=hn}en.start=en.pos}for(;Yt<en.pos;){var vi=Math.min(en.pos,Yt+5e3);he(vi,rr),Yt=vi}}function Be(F,K,te){for(var ae,he,Pe=F.doc,mt=te?-1:K-(F.doc.mode.innerMode?1e3:100),It=K;It>mt;--It){if(It<=Pe.first)return Pe.first;var Yt=Xe(Pe,It-1),rr=Yt.stateAfter;if(rr&&(!te||It+(rr instanceof sr?rr.lookAhead:0)<=Pe.modeFrontier))return It;var en=j(Yt.text,null,F.options.tabSize);(he==null||ae>en)&&(he=It-1,ae=en)}return he}function He(F,K){if(F.modeFrontier=Math.min(F.modeFrontier,K),F.highlightFrontier<K-10)return;for(var te=F.first,ae=K-1;ae>te;ae--){var he=Xe(F,ae).stateAfter;if(he&&(!(he instanceof sr)||ae+he.lookAhead<K)){te=ae+1;break}}F.highlightFrontier=Math.min(F.highlightFrontier,te)}var Je=!1,Ye=!1;function et(){Je=!0}function wt(){Ye=!0}function ut(F,K,te){this.marker=F,this.from=K,this.to=te}function Ft(F,K){if(F)for(var te=0;te<F.length;++te){var ae=F[te];if(ae.marker==K)return ae}}function wr(F,K){for(var te,ae=0;ae<F.length;++ae)F[ae]!=K&&(te||(te=[])).push(F[ae]);return te}function hr(F,K){F.markedSpans=F.markedSpans?F.markedSpans.concat([K]):[K],K.marker.attachLine(F)}function Nr(F,K,te){var ae;if(F)for(var he=0;he<F.length;++he){var Pe=F[he],mt=Pe.marker,It=Pe.from==null||(mt.inclusiveLeft?Pe.from<=K:Pe.from<K);if(It||Pe.from==K&&mt.type=="bookmark"&&(!te||!Pe.marker.insertLeft)){var Yt=Pe.to==null||(mt.inclusiveRight?Pe.to>=K:Pe.to>K);(ae||(ae=[])).push(new ut(mt,Pe.from,Yt?null:Pe.to))}}return ae}function Kt(F,K,te){var ae;if(F)for(var he=0;he<F.length;++he){var Pe=F[he],mt=Pe.marker,It=Pe.to==null||(mt.inclusiveRight?Pe.to>=K:Pe.to>K);if(It||Pe.from==K&&mt.type=="bookmark"&&(!te||Pe.marker.insertLeft)){var Yt=Pe.from==null||(mt.inclusiveLeft?Pe.from<=K:Pe.from<K);(ae||(ae=[])).push(new ut(mt,Yt?null:Pe.from-K,Pe.to==null?null:Pe.to-K))}}return ae}function un(F,K){if(K.full)return null;var te=Pr(F,K.from.line)&&Xe(F,K.from.line).markedSpans,ae=Pr(F,K.to.line)&&Xe(F,K.to.line).markedSpans;if(!te&&!ae)return null;var he=K.from.ch,Pe=K.to.ch,mt=gt(K.from,K.to)==0,It=Nr(te,he,mt),Yt=Kt(ae,Pe,mt),rr=K.text.length==1,en=me(K.text).length+(rr?he:0);if(It)for(var hn=0;hn<It.length;++hn){var Dn=It[hn];if(Dn.to==null){var Bn=Ft(Yt,Dn.marker);Bn?rr&&(Dn.to=Bn.to==null?null:Bn.to+en):Dn.to=he}}if(Yt)for(var vi=0;vi<Yt.length;++vi){var Ki=Yt[vi];if(Ki.to!=null&&(Ki.to+=en),Ki.from==null){var Qi=Ft(It,Ki.marker);Qi||(Ki.from=en,rr&&(It||(It=[])).push(Ki))}else Ki.from+=en,rr&&(It||(It=[])).push(Ki)}It&&(It=ar(It)),Yt&&Yt!=It&&(Yt=ar(Yt));var Xi=[It];if(!rr){var Vi=K.text.length-2,fa;if(Vi>0&&It)for(var ba=0;ba<It.length;++ba)It[ba].to==null&&(fa||(fa=[])).push(new ut(It[ba].marker,null,null));for(var qa=0;qa<Vi;++qa)Xi.push(fa);Xi.push(Yt)}return Xi}function ar(F){for(var K=0;K<F.length;++K){var te=F[K];te.from!=null&&te.from==te.to&&te.marker.clearWhenEmpty!==!1&&F.splice(K--,1)}return F.length?F:null}function Gr(F,K,te){var ae=null;if(F.iter(K.line,te.line+1,function(Bn){if(Bn.markedSpans)for(var vi=0;vi<Bn.markedSpans.length;++vi){var Ki=Bn.markedSpans[vi].marker;Ki.readOnly&&(!ae||W(ae,Ki)==-1)&&(ae||(ae=[])).push(Ki)}}),!ae)return null;for(var he=[{from:K,to:te}],Pe=0;Pe<ae.length;++Pe)for(var mt=ae[Pe],It=mt.find(0),Yt=0;Yt<he.length;++Yt){var rr=he[Yt];if(gt(rr.to,It.from)<0||gt(rr.from,It.to)>0)continue;var en=[Yt,1],hn=gt(rr.from,It.from),Dn=gt(rr.to,It.to);(hn<0||!mt.inclusiveLeft&&!hn)&&en.push({from:rr.from,to:It.from}),(Dn>0||!mt.inclusiveRight&&!Dn)&&en.push({from:It.to,to:rr.to}),he.splice.apply(he,en),Yt+=en.length-3}return he}function Br(F){var K=F.markedSpans;if(!K)return;for(var te=0;te<K.length;++te)K[te].marker.detachLine(F);F.markedSpans=null}function gr(F,K){if(!K)return;for(var te=0;te<K.length;++te)K[te].marker.attachLine(F);F.markedSpans=K}function Sn(F){return F.inclusiveLeft?-1:0}function Pn(F){return F.inclusiveRight?1:0}function ii(F,K){var te=F.lines.length-K.lines.length;if(te!=0)return te;var ae=F.find(),he=K.find(),Pe=gt(ae.from,he.from)||Sn(F)-Sn(K);if(Pe)return-Pe;var mt=gt(ae.to,he.to)||Pn(F)-Pn(K);return mt||K.id-F.id}function oi(F,K){var te=Ye&&F.markedSpans,ae;if(te)for(var he=void 0,Pe=0;Pe<te.length;++Pe)he=te[Pe],he.marker.collapsed&&(K?he.from:he.to)==null&&(!ae||ii(ae,he.marker)<0)&&(ae=he.marker);return ae}function ti(F){return oi(F,!0)}function bi(F){return oi(F,!1)}function kn(F,K){var te=Ye&&F.markedSpans,ae;if(te)for(var he=0;he<te.length;++he){var Pe=te[he];Pe.marker.collapsed&&(Pe.from==null||Pe.from<K)&&(Pe.to==null||Pe.to>K)&&(!ae||ii(ae,Pe.marker)<0)&&(ae=Pe.marker)}return ae}function Ii(F,K,te,ae,he){var Pe=Xe(F,K),mt=Ye&&Pe.markedSpans;if(mt)for(var It=0;It<mt.length;++It){var Yt=mt[It];if(!Yt.marker.collapsed)continue;var rr=Yt.marker.find(0),en=gt(rr.from,te)||Sn(Yt.marker)-Sn(he),hn=gt(rr.to,ae)||Pn(Yt.marker)-Pn(he);if(en>=0&&hn<=0||en<=0&&hn>=0)continue;if(en<=0&&(Yt.marker.inclusiveRight&&he.inclusiveLeft?gt(rr.to,te)>=0:gt(rr.to,te)>0)||en>=0&&(Yt.marker.inclusiveRight&&he.inclusiveLeft?gt(rr.from,ae)<=0:gt(rr.from,ae)<0))return!0}}function gn(F){for(var K;K=ti(F);)F=K.find(-1,!0).line;return F}function Vr(F){for(var K;K=bi(F);)F=K.find(1,!0).line;return F}function xn(F){for(var K,te;K=bi(F);)F=K.find(1,!0).line,(te||(te=[])).push(F);return te}function tn(F,K){var te=Xe(F,K),ae=gn(te);return te==ae?K:Xt(ae)}function ui(F,K){if(K>F.lastLine())return K;var te=Xe(F,K),ae;if(!qn(F,te))return K;for(;ae=bi(te);)te=ae.find(1,!0).line;return Xt(te)+1}function qn(F,K){var te=Ye&&K.markedSpans;if(te)for(var ae=void 0,he=0;he<te.length;++he){if(ae=te[he],!ae.marker.collapsed)continue;if(ae.from==null)return!0;if(ae.marker.widgetNode)continue;if(ae.from==0&&ae.marker.inclusiveLeft&&wi(F,K,ae))return!0}}function wi(F,K,te){if(te.to==null){var ae=te.marker.find(1,!0);return wi(F,ae.line,Ft(ae.line.markedSpans,te.marker))}if(te.marker.inclusiveRight&&te.to==K.text.length)return!0;for(var he=void 0,Pe=0;Pe<K.markedSpans.length;++Pe)if(he=K.markedSpans[Pe],he.marker.collapsed&&!he.marker.widgetNode&&he.from==te.to&&(he.to==null||he.to!=te.from)&&(he.marker.inclusiveLeft||te.marker.inclusiveRight)&&wi(F,K,he))return!0}function Qn(F){F=gn(F);for(var K=0,te=F.parent,ae=0;ae<te.lines.length;++ae){var he=te.lines[ae];if(he==F)break;K+=he.height}for(var Pe=te.parent;Pe;te=Pe,Pe=te.parent)for(var mt=0;mt<Pe.children.length;++mt){var It=Pe.children[mt];if(It==te)break;K+=It.height}return K}function Hi(F){if(F.height==0)return 0;for(var K=F.text.length,te,ae=F;te=ti(ae);){var he=te.find(0,!0);ae=he.from.line,K+=he.from.ch-he.to.ch}for(ae=F;te=bi(ae);){var Pe=te.find(0,!0);K-=ae.text.length-Pe.from.ch,ae=Pe.to.line,K+=ae.text.length-Pe.to.ch}return K}function ri(F){var K=F.display,te=F.doc;K.maxLine=Xe(te,te.first),K.maxLineLength=Hi(K.maxLine),K.maxLineChanged=!0,te.iter(function(ae){var he=Hi(ae);he>K.maxLineLength&&(K.maxLineLength=he,K.maxLine=ae)})}var Mi=function(K,te,ae){this.text=K,gr(this,te),this.height=ae?ae(this):1};Mi.prototype.lineNo=function(){return Xt(this)},Et(Mi);function dn(F,K,te,ae){F.text=K,F.stateAfter&&(F.stateAfter=null),F.styles&&(F.styles=null),F.order!=null&&(F.order=null),Br(F),gr(F,te);var he=ae?ae(F):1;he!=F.height&&kt(F,he)}function Ur(F){F.parent=null,Br(F)}var bn={},Mn={};function Gn(F,K){if(!F||/^\s*$/.test(F))return null;var te=K.addModeClass?Mn:bn;return te[F]||(te[F]=F.replace(/\S+/g,"cm-$&"))}function $n(F,K){var te=C("span",null,null,s?"padding-right: .1px":null),ae={pre:C("pre",[te],"CodeMirror-line"),content:te,col:0,pos:0,cm:F,trailingSpace:!1,splitSpaces:F.getOption("lineWrapping")};K.measure={};for(var he=0;he<=(K.rest?K.rest.length:0);he++){var Pe=he?K.rest[he-1]:K.line,mt=void 0;ae.pos=0,ae.addToken=fi,or(F.display.measure)&&(mt=Ve(Pe,F.doc.direction))&&(ae.addToken=Wi(ae.addToken,mt)),ae.map=[];var It=K!=F.display.externalMeasured&&Xt(Pe);$i(Pe,ae,Jr(F,Pe,It)),Pe.styleClasses&&(Pe.styleClasses.bgClass&&(ae.bgClass=R(Pe.styleClasses.bgClass,ae.bgClass||"")),Pe.styleClasses.textClass&&(ae.textClass=R(Pe.styleClasses.textClass,ae.textClass||""))),ae.map.length==0&&ae.map.push(0,0,ae.content.appendChild(ct(F.display.measure))),he==0?(K.measure.map=ae.map,K.measure.cache={}):((K.measure.maps||(K.measure.maps=[])).push(ae.map),(K.measure.caches||(K.measure.caches=[])).push({}))}if(s){var Yt=ae.content.lastChild;(/\bcm-tab\b/.test(Yt.className)||Yt.querySelector&&Yt.querySelector(".cm-tab"))&&(ae.content.className="cm-tab-wrap-hack")}return ft(F,"renderLine",F,K.line,ae.pre),ae.pre.className&&(ae.textClass=R(ae.pre.className,ae.textClass||"")),ae}function hi(F){var K=T("span","\u2022","cm-invalidchar");return K.title="\\u"+F.charCodeAt(0).toString(16),K.setAttribute("aria-label",K.title),K}function fi(F,K,te,ae,he,Pe,mt){if(!K)return;var It=F.splitSpaces?gi(K,F.trailingSpace):K,Yt=F.cm.state.specialChars,rr=!1,en;if(!Yt.test(K))F.col+=K.length,en=document.createTextNode(It),F.map.push(F.pos,F.pos+K.length,en),m&&f<9&&(rr=!0),F.pos+=K.length;else{en=document.createDocumentFragment();for(var hn=0;;){Yt.lastIndex=hn;var Dn=Yt.exec(K),Bn=Dn?Dn.index-hn:K.length-hn;if(Bn){var vi=document.createTextNode(It.slice(hn,hn+Bn));m&&f<9?en.appendChild(T("span",[vi])):en.appendChild(vi),F.map.push(F.pos,F.pos+Bn,vi),F.col+=Bn,F.pos+=Bn}if(!Dn)break;hn+=Bn+1;var Ki=void 0;if(Dn[0]==" "){var Qi=F.cm.options.tabSize,Xi=Qi-F.col%Qi;Ki=en.appendChild(T("span",Le(Xi),"cm-tab")),Ki.setAttribute("role","presentation"),Ki.setAttribute("cm-text"," "),F.col+=Xi}else Dn[0]=="\r"||Dn[0]==`
|
|
|
`?(Ki=en.appendChild(T("span",Dn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ki.setAttribute("cm-text",Dn[0]),F.col+=1):(Ki=F.cm.options.specialCharPlaceholder(Dn[0]),Ki.setAttribute("cm-text",Dn[0]),m&&f<9?en.appendChild(T("span",[Ki])):en.appendChild(Ki),F.col+=1);F.map.push(F.pos,F.pos+1,Ki),F.pos++}}if(F.trailingSpace=It.charCodeAt(K.length-1)==32,te||ae||he||rr||Pe||mt){var Vi=te||"";ae&&(Vi+=ae),he&&(Vi+=he);var fa=T("span",[en],Vi,Pe);if(mt)for(var ba in mt)mt.hasOwnProperty(ba)&&ba!="style"&&ba!="class"&&fa.setAttribute(ba,mt[ba]);return F.content.appendChild(fa)}F.content.appendChild(en)}function gi(F,K){if(F.length>1&&!/ /.test(F))return F;for(var te=K,ae="",he=0;he<F.length;he++){var Pe=F.charAt(he);Pe==" "&&te&&(he==F.length-1||F.charCodeAt(he+1)==32)&&(Pe="\xA0"),ae+=Pe,te=Pe==" "}return ae}function Wi(F,K){return function(te,ae,he,Pe,mt,It,Yt){he=he?he+" cm-force-border":"cm-force-border";for(var rr=te.pos,en=rr+ae.length;;){for(var hn=void 0,Dn=0;Dn<K.length&&!(hn=K[Dn],hn.to>rr&&hn.from<=rr);Dn++);if(hn.to>=en)return F(te,ae,he,Pe,mt,It,Yt);F(te,ae.slice(0,hn.to-rr),he,Pe,null,It,Yt),Pe=null,ae=ae.slice(hn.to-rr),rr=hn.to}}}function na(F,K,te,ae){var he=!ae&&te.widgetNode;he&&F.map.push(F.pos,F.pos+K,he),!ae&&F.cm.display.input.needsContentAttribute&&(he||(he=F.content.appendChild(document.createElement("span"))),he.setAttribute("cm-marker",te.id)),he&&(F.cm.display.input.setUneditable(he),F.content.appendChild(he)),F.pos+=K,F.trailingSpace=!1}function $i(F,K,te){var ae=F.markedSpans,he=F.text,Pe=0;if(!ae){for(var mt=1;mt<te.length;mt+=2)K.addToken(K,he.slice(Pe,Pe=te[mt]),Gn(te[mt+1],K.cm.options));return}for(var It=he.length,Yt=0,rr=1,en="",hn,Dn,Bn=0,vi,Ki,Qi,Xi,Vi;;){if(Bn==Yt){vi=Ki=Qi=Dn="",Vi=null,Xi=null,Bn=Infinity;for(var fa=[],ba=void 0,qa=0;qa<ae.length;++qa){var Ba=ae[qa],Eo=Ba.marker;if(Eo.type=="bookmark"&&Ba.from==Yt&&Eo.widgetNode)fa.push(Eo);else if(Ba.from<=Yt&&(Ba.to==null||Ba.to>Yt||Eo.collapsed&&Ba.to==Yt&&Ba.from==Yt)){if(Ba.to!=null&&Ba.to!=Yt&&Bn>Ba.to&&(Bn=Ba.to,Ki=""),Eo.className&&(vi+=" "+Eo.className),Eo.css&&(Dn=(Dn?Dn+";":"")+Eo.css),Eo.startStyle&&Ba.from==Yt&&(Qi+=" "+Eo.startStyle),Eo.endStyle&&Ba.to==Bn&&(ba||(ba=[])).push(Eo.endStyle,Ba.to),Eo.title&&((Vi||(Vi={})).title=Eo.title),Eo.attributes)for(var Wo in Eo.attributes)(Vi||(Vi={}))[Wo]=Eo.attributes[Wo];Eo.collapsed&&(!Xi||ii(Xi.marker,Eo)<0)&&(Xi=Ba)}else Ba.from>Yt&&Bn>Ba.from&&(Bn=Ba.from)}if(ba)for(var cs=0;cs<ba.length;cs+=2)ba[cs+1]==Bn&&(Ki+=" "+ba[cs]);if(!Xi||Xi.from==Yt)for(var $o=0;$o<fa.length;++$o)na(K,0,fa[$o]);if(Xi&&(Xi.from||0)==Yt){if(na(K,(Xi.to==null?It+1:Xi.to)-Yt,Xi.marker,Xi.from==null),Xi.to==null)return;Xi.to==Yt&&(Xi=!1)}}if(Yt>=It)break;for(var Ms=Math.min(It,Bn);;){if(en){var Qs=Yt+en.length;if(!Xi){var Ts=Qs>Ms?en.slice(0,Ms-Yt):en;K.addToken(K,Ts,hn?hn+vi:vi,Qi,Yt+Ts.length==Bn?Ki:"",Dn,Vi)}if(Qs>=Ms){en=en.slice(Ms-Yt),Yt=Ms;break}Yt=Qs,Qi=""}en=he.slice(Pe,Pe=te[rr++]),hn=Gn(te[rr++],K.cm.options)}}}function Ha(F,K,te){this.line=K,this.rest=xn(K),this.size=this.rest?Xt(me(this.rest))-te+1:1,this.node=this.text=null,this.hidden=qn(F,K)}function pi(F,K,te){for(var ae=[],he,Pe=K;Pe<te;Pe=he){var mt=new Ha(F.doc,Xe(F.doc,Pe),Pe);he=Pe+mt.size,ae.push(mt)}return ae}var ln=null;function _i(F){ln?ln.ops.push(F):F.ownsGroup=ln={ops:[F],delayedCallbacks:[]}}function Ji(F){var K=F.delayedCallbacks,te=0;do{for(;te<K.length;te++)K[te].call(null);for(var ae=0;ae<F.ops.length;ae++){var he=F.ops[ae];if(he.cursorActivityHandlers)for(;he.cursorActivityCalled<he.cursorActivityHandlers.length;)he.cursorActivityHandlers[he.cursorActivityCalled++].call(null,he.cm)}}while(te<K.length)}function Fi(F,K){var te=F.ownsGroup;if(!te)return;try{Ji(te)}finally{ln=null,K(te)}}var ea=null;function Vt(F,K){var te=it(F,K);if(!te.length)return;var ae=Array.prototype.slice.call(arguments,2),he;ln?he=ln.delayedCallbacks:ea?he=ea:(he=ea=[],setTimeout(Xr,0));for(var Pe=function(Yt){he.push(function(){return te[Yt].apply(null,ae)})},mt=0;mt<te.length;++mt)Pe(mt)}function Xr(){var F=ea;ea=null;for(var K=0;K<F.length;++K)F[K]()}function nn(F,K,te,ae){for(var he=0;he<K.changes.length;he++){var Pe=K.changes[he];Pe=="text"?cr(F,K):Pe=="gutter"?_r(F,K,te,ae):Pe=="class"?lr(F,K):Pe=="widget"&&Rr(F,K,ae)}K.changes=null}function fn(F){return F.node==F.text&&(F.node=T("div",null,null,"position: relative"),F.text.parentNode&&F.text.parentNode.replaceChild(F.node,F.text),F.node.appendChild(F.text),m&&f<8&&(F.node.style.zIndex=2)),F.node}function Ze(F,K){var te=K.bgClass?K.bgClass+" "+(K.line.bgClass||""):K.line.bgClass;if(te&&(te+=" CodeMirror-linebackground"),K.background)te?K.background.className=te:(K.background.parentNode.removeChild(K.background),K.background=null);else if(te){var ae=fn(K);K.background=ae.insertBefore(T("div",null,te),ae.firstChild),F.display.input.setUneditable(K.background)}}function Lt(F,K){var te=F.display.externalMeasured;return te&&te.line==K.line?(F.display.externalMeasured=null,K.measure=te.measure,te.built):$n(F,K)}function cr(F,K){var te=K.text.className,ae=Lt(F,K);K.text==K.node&&(K.node=ae.pre),K.text.parentNode.replaceChild(ae.pre,K.text),K.text=ae.pre,ae.bgClass!=K.bgClass||ae.textClass!=K.textClass?(K.bgClass=ae.bgClass,K.textClass=ae.textClass,lr(F,K)):te&&(K.text.className=te)}function lr(F,K){Ze(F,K),K.line.wrapClass?fn(K).className=K.line.wrapClass:K.node!=K.text&&(K.node.className="");var te=K.textClass?K.textClass+" "+(K.line.textClass||""):K.line.textClass;K.text.className=te||""}function _r(F,K,te,ae){if(K.gutter&&(K.node.removeChild(K.gutter),K.gutter=null),K.gutterBackground&&(K.node.removeChild(K.gutterBackground),K.gutterBackground=null),K.line.gutterClass){var he=fn(K);K.gutterBackground=T("div",null,"CodeMirror-gutter-background "+K.line.gutterClass,"left: "+(F.options.fixedGutter?ae.fixedPos:-ae.gutterTotalWidth)+"px; width: "+ae.gutterTotalWidth+"px"),F.display.input.setUneditable(K.gutterBackground),he.insertBefore(K.gutterBackground,K.text)}var Pe=K.line.gutterMarkers;if(F.options.lineNumbers||Pe){var mt=fn(K),It=K.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(F.options.fixedGutter?ae.fixedPos:-ae.gutterTotalWidth)+"px");if(F.display.input.setUneditable(It),mt.insertBefore(It,K.text),K.line.gutterClass&&(It.className+=" "+K.line.gutterClass),F.options.lineNumbers&&(!Pe||!Pe["CodeMirror-linenumbers"])&&(K.lineNumber=It.appendChild(T("div",cn(F.options,te),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ae.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+F.display.lineNumInnerWidth+"px"))),Pe)for(var Yt=0;Yt<F.display.gutterSpecs.length;++Yt){var rr=F.display.gutterSpecs[Yt].className,en=Pe.hasOwnProperty(rr)&&Pe[rr];en&&It.appendChild(T("div",[en],"CodeMirror-gutter-elt","left: "+ae.gutterLeft[rr]+"px; width: "+ae.gutterWidth[rr]+"px"))}}}function Rr(F,K,te){K.alignable&&(K.alignable=null);for(var ae=x("CodeMirror-linewidget"),he=K.node.firstChild,Pe=void 0;he;he=Pe)Pe=he.nextSibling,ae.test(he.className)&&K.node.removeChild(he);on(F,K,te)}function Wr(F,K,te,ae){var he=Lt(F,K);return K.text=K.node=he.pre,he.bgClass&&(K.bgClass=he.bgClass),he.textClass&&(K.textClass=he.textClass),lr(F,K),_r(F,K,te,ae),on(F,K,ae),K.node}function on(F,K,te){if(En(F,K.line,K,te,!0),K.rest)for(var ae=0;ae<K.rest.length;ae++)En(F,K.rest[ae],K,te,!1)}function En(F,K,te,ae,he){if(!K.widgets)return;for(var Pe=fn(te),mt=0,It=K.widgets;mt<It.length;++mt){var Yt=It[mt],rr=T("div",[Yt.node],"CodeMirror-linewidget"+(Yt.className?" "+Yt.className:""));Yt.handleMouseEvents||rr.setAttribute("cm-ignore-events","true"),An(Yt,rr,te,ae),F.display.input.setUneditable(rr),he&&Yt.above?Pe.insertBefore(rr,te.gutter||te.text):Pe.appendChild(rr),Vt(Yt,"redraw")}}function An(F,K,te,ae){if(F.noHScroll){(te.alignable||(te.alignable=[])).push(K);var he=ae.wrapperWidth;K.style.left=ae.fixedPos+"px",F.coverGutter||(he-=ae.gutterTotalWidth,K.style.paddingLeft=ae.gutterTotalWidth+"px"),K.style.width=he+"px"}F.coverGutter&&(K.style.zIndex=5,K.style.position="relative",F.noHScroll||(K.style.marginLeft=-ae.gutterTotalWidth+"px"))}function Rn(F){if(F.height!=null)return F.height;var K=F.doc.cm;if(!K)return 0;if(!_(document.body,F.node)){var te="position: relative;";F.coverGutter&&(te+="margin-left: -"+K.display.gutters.offsetWidth+"px;"),F.noHScroll&&(te+="width: "+K.display.wrapper.clientWidth+"px;"),S(K.display.measure,T("div",[F.node],null,te))}return F.height=F.node.parentNode.offsetHeight}function Un(F,K){for(var te=Qe(K);te!=F.wrapper;te=te.parentNode)if(!te||te.nodeType==1&&te.getAttribute("cm-ignore-events")=="true"||te.parentNode==F.sizer&&te!=F.mover)return!0}function wn(F){return F.lineSpace.offsetTop}function _n(F){return F.mover.offsetHeight-F.lineSpace.offsetHeight}function Cn(F){if(F.cachedPaddingH)return F.cachedPaddingH;var K=S(F.measure,T("pre","x","CodeMirror-line-like")),te=window.getComputedStyle?window.getComputedStyle(K):K.currentStyle,ae={left:parseInt(te.paddingLeft),right:parseInt(te.paddingRight)};return!isNaN(ae.left)&&!isNaN(ae.right)&&(F.cachedPaddingH=ae),ae}function Kn(F){return G-F.display.nativeBarWidth}function Yn(F){return F.display.scroller.clientWidth-Kn(F)-F.display.barWidth}function ni(F){return F.display.scroller.clientHeight-Kn(F)-F.display.barHeight}function yi(F,K,te){var ae=F.options.lineWrapping,he=ae&&Yn(F);if(!K.measure.heights||ae&&K.measure.width!=he){var Pe=K.measure.heights=[];if(ae){K.measure.width=he;for(var mt=K.text.firstChild.getClientRects(),It=0;It<mt.length-1;It++){var Yt=mt[It],rr=mt[It+1];Math.abs(Yt.bottom-rr.bottom)>2&&Pe.push((Yt.bottom+rr.top)/2-te.top)}}Pe.push(te.bottom-te.top)}}function li(F,K,te){if(F.line==K)return{map:F.measure.map,cache:F.measure.cache};for(var ae=0;ae<F.rest.length;ae++)if(F.rest[ae]==K)return{map:F.measure.maps[ae],cache:F.measure.caches[ae]};for(var he=0;he<F.rest.length;he++)if(Xt(F.rest[he])>te)return{map:F.measure.maps[he],cache:F.measure.caches[he],before:!0}}function Oi(F,K){K=gn(K);var te=Xt(K),ae=F.display.externalMeasured=new Ha(F.doc,K,te);ae.lineN=te;var he=ae.built=$n(F,ae);return ae.text=he.pre,S(F.display.lineMeasure,he.pre),ae}function ki(F,K,te,ae){return Li(F,mi(F,K),te,ae)}function Si(F,K){if(K>=F.display.viewFrom&&K<F.display.viewTo)return F.display.view[La(F,K)];var te=F.display.externalMeasured;if(te&&K>=te.lineN&&K<te.lineN+te.size)return te}function mi(F,K){var te=Xt(K),ae=Si(F,te);ae&&!ae.text?ae=null:ae&&ae.changes&&(nn(F,ae,te,qi(F)),F.curOp.forceUpdate=!0),ae||(ae=Oi(F,K));var he=li(ae,K,te);return{line:K,view:ae,rect:null,map:he.map,cache:he.cache,before:he.before,hasHeights:!1}}function Li(F,K,te,ae,he){K.before&&(te=-1);var Pe=te+(ae||""),mt;return K.cache.hasOwnProperty(Pe)?mt=K.cache[Pe]:(K.rect||(K.rect=K.view.text.getBoundingClientRect()),K.hasHeights||(yi(F,K.view,K.rect),K.hasHeights=!0),mt=yr(F,K,te,ae),mt.bogus||(K.cache[Pe]=mt)),{left:mt.left,right:mt.right,top:he?mt.rtop:mt.top,bottom:he?mt.rbottom:mt.bottom}}var Wn={left:0,right:0,top:0,bottom:0};function Di(F,K,te){for(var ae,he,Pe,mt,It,Yt,rr=0;rr<F.length;rr+=3)if(It=F[rr],Yt=F[rr+1],K<It?(he=0,Pe=1,mt="left"):K<Yt?(he=K-It,Pe=he+1):(rr==F.length-3||K==Yt&&F[rr+3]>K)&&(Pe=Yt-It,he=Pe-1,K>=Yt&&(mt="right")),he!=null){if(ae=F[rr+2],It==Yt&&te==(ae.insertLeft?"left":"right")&&(mt=te),te=="left"&&he==0)for(;rr&&F[rr-2]==F[rr-3]&&F[rr-1].insertLeft;)ae=F[(rr-=3)+2],mt="left";if(te=="right"&&he==Yt-It)for(;rr<F.length-3&&F[rr+3]==F[rr+4]&&!F[rr+5].insertLeft;)ae=F[(rr+=3)+2],mt="right";break}return{node:ae,start:he,end:Pe,collapse:mt,coverStart:It,coverEnd:Yt}}function zi(F,K){var te=Wn;if(K=="left")for(var ae=0;ae<F.length&&!((te=F[ae]).left!=te.right);ae++);else for(var he=F.length-1;he>=0&&!((te=F[he]).left!=te.right);he--);return te}function yr(F,K,te,ae){var he=Di(K.map,te,ae),Pe=he.node,mt=he.start,It=he.end,Yt=he.collapse,rr;if(Pe.nodeType==3){for(var en=0;en<4;en++){for(;mt&&we(K.line.text.charAt(he.coverStart+mt));)--mt;for(;he.coverStart+It<he.coverEnd&&we(K.line.text.charAt(he.coverStart+It));)++It;if(m&&f<9&&mt==0&&It==he.coverEnd-he.coverStart?rr=Pe.parentNode.getBoundingClientRect():rr=zi(O(Pe,mt,It).getClientRects(),ae),rr.left||rr.right||mt==0)break;It=mt,mt=mt-1,Yt="right"}m&&f<11&&(rr=Mr(F.display.measure,rr))}else{mt>0&&(Yt=ae="right");var hn;F.options.lineWrapping&&(hn=Pe.getClientRects()).length>1?rr=hn[ae=="right"?hn.length-1:0]:rr=Pe.getBoundingClientRect()}if(m&&f<9&&!mt&&(!rr||!rr.left&&!rr.right)){var Dn=Pe.parentNode.getClientRects()[0];Dn?rr={left:Dn.left,right:Dn.left+ra(F.display),top:Dn.top,bottom:Dn.bottom}:rr=Wn}for(var Bn=rr.top-K.rect.top,vi=rr.bottom-K.rect.top,Ki=(Bn+vi)/2,Qi=K.view.measure.heights,Xi=0;Xi<Qi.length-1&&!(Ki<Qi[Xi]);Xi++);var Vi=Xi?Qi[Xi-1]:0,fa=Qi[Xi],ba={left:(Yt=="right"?rr.right:rr.left)-K.rect.left,right:(Yt=="left"?rr.left:rr.right)-K.rect.left,top:Vi,bottom:fa};return!rr.left&&!rr.right&&(ba.bogus=!0),F.options.singleCursorHeightPerLine||(ba.rtop=Bn,ba.rbottom=vi),ba}function Mr(F,K){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!lt(F))return K;var te=screen.logicalXDPI/screen.deviceXDPI,ae=screen.logicalYDPI/screen.deviceYDPI;return{left:K.left*te,right:K.right*te,top:K.top*ae,bottom:K.bottom*ae}}function Qr(F){if(F.measure&&(F.measure.cache={},F.measure.heights=null,F.rest))for(var K=0;K<F.rest.length;K++)F.measure.caches[K]={}}function Ir(F){F.display.externalMeasure=null,w(F.display.lineMeasure);for(var K=0;K<F.display.view.length;K++)Qr(F.display.view[K])}function Gt(F){Ir(F),F.display.cachedCharWidth=F.display.cachedTextHeight=F.display.cachedPaddingH=null,F.options.lineWrapping||(F.display.maxLineChanged=!0),F.display.lineNumChars=null}function Sr(){return l&&i?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Zt(){return l&&i?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function jr(F){var K=0;if(F.widgets)for(var te=0;te<F.widgets.length;++te)F.widgets[te].above&&(K+=Rn(F.widgets[te]));return K}function Kr(F,K,te,ae,he){if(!he){var Pe=jr(K);te.top+=Pe,te.bottom+=Pe}if(ae=="line")return te;ae||(ae="local");var mt=Qn(K);if(ae=="local"?mt+=wn(F.display):mt-=F.display.viewOffset,ae=="page"||ae=="window"){var It=F.display.lineSpace.getBoundingClientRect();mt+=It.top+(ae=="window"?0:Zt());var Yt=It.left+(ae=="window"?0:Sr());te.left+=Yt,te.right+=Yt}return te.top+=mt,te.bottom+=mt,te}function pn(F,K,te){if(te=="div")return K;var ae=K.left,he=K.top;if(te=="page")ae-=Sr(),he-=Zt();else if(te=="local"||!te){var Pe=F.display.sizer.getBoundingClientRect();ae+=Pe.left,he+=Pe.top}var mt=F.display.lineSpace.getBoundingClientRect();return{left:ae-mt.left,top:he-mt.top}}function sn(F,K,te,ae,he){return ae||(ae=Xe(F.doc,K.line)),Kr(F,ae,ki(F,ae,K.ch,he),te)}function yn(F,K,te,ae,he,Pe){ae=ae||Xe(F.doc,K.line),he||(he=mi(F,ae));function mt(vi,Ki){var Qi=Li(F,he,vi,Ki?"right":"left",Pe);return Ki?Qi.left=Qi.right:Qi.right=Qi.left,Kr(F,ae,Qi,te)}var It=Ve(ae,F.doc.direction),Yt=K.ch,rr=K.sticky;if(Yt>=ae.text.length?(Yt=ae.text.length,rr="before"):Yt<=0&&(Yt=0,rr="after"),!It)return mt(rr=="before"?Yt-1:Yt,rr=="before");function en(vi,Ki,Qi){var Xi=It[Ki],Vi=Xi.level==1;return mt(Qi?vi-1:vi,Vi!=Qi)}var hn=ee(It,Yt,rr),Dn=ne,Bn=en(Yt,hn,rr=="before");return Dn!=null&&(Bn.other=en(Yt,Dn,rr!="before")),Bn}function Fn(F,K){var te=0;K=yt(F.doc,K),F.options.lineWrapping||(te=ra(F.display)*K.ch);var ae=Xe(F.doc,K.line),he=Qn(ae)+wn(F.display);return{left:te,right:te,top:he,bottom:he+ae.height}}function Xn(F,K,te,ae,he){var Pe=jt(F,K,te);return Pe.xRel=he,ae&&(Pe.outside=ae),Pe}function Jn(F,K,te){var ae=F.doc;if(te+=F.display.viewOffset,te<0)return Xn(ae.first,0,null,-1,-1);var he=Dr(ae,te),Pe=ae.first+ae.size-1;if(he>Pe)return Xn(ae.first+ae.size-1,Xe(ae,Pe).text.length,null,1,1);K<0&&(K=0);for(var mt=Xe(ae,he);;){var It=da(F,mt,he,K,te),Yt=kn(mt,It.ch+(It.xRel>0||It.outside>0?1:0));if(!Yt)return It;var rr=Yt.find(1);if(rr.line==he)return rr;mt=Xe(ae,he=rr.line)}}function Ti(F,K,te,ae){ae-=jr(K);var he=K.text.length,Pe=Ee(function(mt){return Li(F,te,mt-1).bottom<=ae},he,0);return he=Ee(function(mt){return Li(F,te,mt).top>ae},Pe,he),{begin:Pe,end:he}}function ta(F,K,te,ae){te||(te=mi(F,K));var he=Kr(F,K,Li(F,te,ae),"line").top;return Ti(F,K,te,he)}function oa(F,K,te,ae){return F.bottom<=te?!1:F.top>te?!0:(ae?F.left:F.right)>K}function da(F,K,te,ae,he){he-=Qn(K);var Pe=mi(F,K),mt=jr(K),It=0,Yt=K.text.length,rr=!0,en=Ve(K,F.doc.direction);if(en){var hn=(F.options.lineWrapping?ma:ca)(F,K,te,Pe,en,ae,he);rr=hn.level!=1,It=rr?hn.from:hn.to-1,Yt=rr?hn.to:hn.from-1}var Dn=null,Bn=null,vi=Ee(function(qa){var Ba=Li(F,Pe,qa);return Ba.top+=mt,Ba.bottom+=mt,oa(Ba,ae,he,!1)?(Ba.top<=he&&Ba.left<=ae&&(Dn=qa,Bn=Ba),!0):!1},It,Yt),Ki,Qi,Xi=!1;if(Bn){var Vi=ae-Bn.left<Bn.right-ae,fa=Vi==rr;vi=Dn+(fa?0:1),Qi=fa?"after":"before",Ki=Vi?Bn.left:Bn.right}else{!rr&&(vi==Yt||vi==It)&&vi++,Qi=vi==0?"after":vi==K.text.length?"before":Li(F,Pe,vi-(rr?1:0)).bottom+mt<=he==rr?"after":"before";var ba=yn(F,jt(te,vi,Qi),"line",K,Pe);Ki=ba.left,Xi=he<ba.top?-1:he>=ba.bottom?1:0}return vi=De(K.text,vi,1),Xn(te,vi,Qi,Xi,ae-Ki)}function ca(F,K,te,ae,he,Pe,mt){var It=Ee(function(hn){var Dn=he[hn],Bn=Dn.level!=1;return oa(yn(F,jt(te,Bn?Dn.to:Dn.from,Bn?"before":"after"),"line",K,ae),Pe,mt,!0)},0,he.length-1),Yt=he[It];if(It>0){var rr=Yt.level!=1,en=yn(F,jt(te,rr?Yt.from:Yt.to,rr?"after":"before"),"line",K,ae);oa(en,Pe,mt,!0)&&en.top>mt&&(Yt=he[It-1])}return Yt}function ma(F,K,te,ae,he,Pe,mt){var It=Ti(F,K,ae,mt),Yt=It.begin,rr=It.end;/\s/.test(K.text.charAt(rr-1))&&rr--;for(var en=null,hn=null,Dn=0;Dn<he.length;Dn++){var Bn=he[Dn];if(Bn.from>=rr||Bn.to<=Yt)continue;var vi=Bn.level!=1,Ki=Li(F,ae,vi?Math.min(rr,Bn.to)-1:Math.max(Yt,Bn.from)).right,Qi=Ki<Pe?Pe-Ki+1e9:Ki-Pe;(!en||hn>Qi)&&(en=Bn,hn=Qi)}return en||(en=he[he.length-1]),en.from<Yt&&(en={from:Yt,to:en.to,level:en.level}),en.to>rr&&(en={from:en.from,to:rr,level:en.level}),en}var Ui;function Ni(F){if(F.cachedTextHeight!=null)return F.cachedTextHeight;if(Ui==null){Ui=T("pre",null,"CodeMirror-line-like");for(var K=0;K<49;++K)Ui.appendChild(document.createTextNode("x")),Ui.appendChild(T("br"));Ui.appendChild(document.createTextNode("x"))}S(F.measure,Ui);var te=Ui.offsetHeight/50;return te>3&&(F.cachedTextHeight=te),w(F.measure),te||1}function ra(F){if(F.cachedCharWidth!=null)return F.cachedCharWidth;var K=T("span","xxxxxxxxxx"),te=T("pre",[K],"CodeMirror-line-like");S(F.measure,te);var ae=K.getBoundingClientRect(),he=(ae.right-ae.left)/10;return he>2&&(F.cachedCharWidth=he),he||10}function qi(F){for(var K=F.display,te={},ae={},he=K.gutters.clientLeft,Pe=K.gutters.firstChild,mt=0;Pe;Pe=Pe.nextSibling,++mt){var It=F.display.gutterSpecs[mt].className;te[It]=Pe.offsetLeft+Pe.clientLeft+he,ae[It]=Pe.clientWidth}return{fixedPos:Aa(K),gutterTotalWidth:K.gutters.offsetWidth,gutterLeft:te,gutterWidth:ae,wrapperWidth:K.wrapper.clientWidth}}function Aa(F){return F.scroller.getBoundingClientRect().left-F.sizer.getBoundingClientRect().left}function Oa(F){var K=Ni(F.display),te=F.options.lineWrapping,ae=te&&Math.max(5,F.display.scroller.clientWidth/ra(F.display)-3);return function(he){if(qn(F.doc,he))return 0;var Pe=0;if(he.widgets)for(var mt=0;mt<he.widgets.length;mt++)he.widgets[mt].height&&(Pe+=he.widgets[mt].height);return te?Pe+(Math.ceil(he.text.length/ae)||1)*K:Pe+K}}function Zi(F){var K=F.doc,te=Oa(F);K.iter(function(ae){var he=te(ae);he!=ae.height&&kt(ae,he)})}function Gi(F,K,te,ae){var he=F.display;if(!te&&Qe(K).getAttribute("cm-not-content")=="true")return null;var Pe,mt,It=he.lineSpace.getBoundingClientRect();try{Pe=K.clientX-It.left,mt=K.clientY-It.top}catch(hn){return null}var Yt=Jn(F,Pe,mt),rr;if(ae&&Yt.xRel>0&&(rr=Xe(F.doc,Yt.line).text).length==Yt.ch){var en=j(rr,rr.length,F.options.tabSize)-rr.length;Yt=jt(Yt.line,Math.max(0,Math.round((Pe-Cn(F.display).left)/ra(F.display))-en))}return Yt}function La(F,K){if(K>=F.display.viewTo)return null;if(K-=F.display.viewFrom,K<0)return null;for(var te=F.display.view,ae=0;ae<te.length;ae++)if(K-=te[ae].size,K<0)return ae}function va(F,K,te,ae){K==null&&(K=F.doc.first),te==null&&(te=F.doc.first+F.doc.size),ae||(ae=0);var he=F.display;if(ae&&te<he.viewTo&&(he.updateLineNumbers==null||he.updateLineNumbers>K)&&(he.updateLineNumbers=K),F.curOp.viewChanged=!0,K>=he.viewTo)Ye&&tn(F.doc,K)<he.viewTo&&Sa(F);else if(te<=he.viewFrom)Ye&&ui(F.doc,te+ae)>he.viewFrom?Sa(F):(he.viewFrom+=ae,he.viewTo+=ae);else if(K<=he.viewFrom&&te>=he.viewTo)Sa(F);else if(K<=he.viewFrom){var Pe=Da(F,te,te+ae,1);Pe?(he.view=he.view.slice(Pe.index),he.viewFrom=Pe.lineN,he.viewTo+=ae):Sa(F)}else if(te>=he.viewTo){var mt=Da(F,K,K,-1);mt?(he.view=he.view.slice(0,mt.index),he.viewTo=mt.lineN):Sa(F)}else{var It=Da(F,K,K,-1),Yt=Da(F,te,te+ae,1);It&&Yt?(he.view=he.view.slice(0,It.index).concat(pi(F,It.lineN,Yt.lineN)).concat(he.view.slice(Yt.index)),he.viewTo+=ae):Sa(F)}var rr=he.externalMeasured;rr&&(te<rr.lineN?rr.lineN+=ae:K<rr.lineN+rr.size&&(he.externalMeasured=null))}function Ci(F,K,te){F.curOp.viewChanged=!0;var ae=F.display,he=F.display.externalMeasured;if(he&&K>=he.lineN&&K<he.lineN+he.size&&(ae.externalMeasured=null),K<ae.viewFrom||K>=ae.viewTo)return;var Pe=ae.view[La(F,K)];if(Pe.node==null)return;var mt=Pe.changes||(Pe.changes=[]);W(mt,te)==-1&&mt.push(te)}function Sa(F){F.display.viewFrom=F.display.viewTo=F.doc.first,F.display.view=[],F.display.viewOffset=0}function Da(F,K,te,ae){var he=La(F,K),Pe,mt=F.display.view;if(!Ye||te==F.doc.first+F.doc.size)return{index:he,lineN:te};for(var It=F.display.viewFrom,Yt=0;Yt<he;Yt++)It+=mt[Yt].size;if(It!=K){if(ae>0){if(he==mt.length-1)return null;Pe=It+mt[he].size-K,he++}else Pe=It-K;K+=Pe,te+=Pe}for(;tn(F.doc,te)!=te;){if(he==(ae<0?0:mt.length-1))return null;te+=ae*mt[he-(ae<0?1:0)].size,he+=ae}return{index:he,lineN:te}}function Na(F,K,te){var ae=F.display,he=ae.view;he.length==0||K>=ae.viewTo||te<=ae.viewFrom?(ae.view=pi(F,K,te),ae.viewFrom=K):(ae.viewFrom>K?ae.view=pi(F,K,ae.viewFrom).concat(ae.view):ae.viewFrom<K&&(ae.view=ae.view.slice(La(F,K))),ae.viewFrom=K,ae.viewTo<te?ae.view=ae.view.concat(pi(F,ae.viewTo,te)):ae.viewTo>te&&(ae.view=ae.view.slice(0,La(F,te)))),ae.viewTo=te}function Ua(F){for(var K=F.display.view,te=0,ae=0;ae<K.length;ae++){var he=K[ae];!he.hidden&&(!he.node||he.changes)&&++te}return te}function Pa(F){F.display.input.showSelection(F.display.input.prepareSelection())}function za(F,K){K===void 0&&(K=!0);for(var te=F.doc,ae={},he=ae.cursors=document.createDocumentFragment(),Pe=ae.selection=document.createDocumentFragment(),mt=0;mt<te.sel.ranges.length;mt++){if(!K&&mt==te.sel.primIndex)continue;var It=te.sel.ranges[mt];if(It.from().line>=F.display.viewTo||It.to().line<F.display.viewFrom)continue;var Yt=It.empty();(Yt||F.options.showCursorWhenSelecting)&&xa(F,It.head,he),Yt||io(F,It,Pe)}return ae}function xa(F,K,te){var ae=yn(F,K,"div",null,null,!F.options.singleCursorHeightPerLine),he=te.appendChild(T("div","\xA0","CodeMirror-cursor"));if(he.style.left=ae.left+"px",he.style.top=ae.top+"px",he.style.height=Math.max(0,ae.bottom-ae.top)*F.options.cursorHeight+"px",ae.other){var Pe=te.appendChild(T("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Pe.style.display="",Pe.style.left=ae.other.left+"px",Pe.style.top=ae.other.top+"px",Pe.style.height=(ae.other.bottom-ae.other.top)*.85+"px"}}function ja(F,K){return F.top-K.top||F.left-K.left}function io(F,K,te){var ae=F.display,he=F.doc,Pe=document.createDocumentFragment(),mt=Cn(F.display),It=mt.left,Yt=Math.max(ae.sizerWidth,Yn(F)-ae.sizer.offsetLeft)-mt.right,rr=he.direction=="ltr";function en(fa,ba,qa,Ba){ba<0&&(ba=0),ba=Math.round(ba),Ba=Math.round(Ba),Pe.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+fa+`px;
|
|
|
top: `+ba+"px; width: "+(qa==null?Yt-fa:qa)+`px;
|
|
|
height: `+(Ba-ba)+"px"))}function hn(fa,ba,qa){var Ba=Xe(he,fa),Eo=Ba.text.length,Wo,cs;function $o(Ts,Js){return sn(F,jt(fa,Ts),"div",Ba,Js)}function Ms(Ts,Js,ks){var aa=ta(F,Ba,null,Ts),os=Js=="ltr"==(ks=="after")?"left":"right",rs=ks=="after"?aa.begin:aa.end-(/\s/.test(Ba.text.charAt(aa.end-1))?2:1);return $o(rs,os)[os]}var Qs=Ve(Ba,he.direction);return ce(Qs,ba||0,qa==null?Eo:qa,function(Ts,Js,ks,aa){var os=ks=="ltr",rs=$o(Ts,os?"left":"right"),As=$o(Js-1,os?"right":"left"),Ac=ba==null&&Ts==0,No=qa==null&&Js==Eo,Ao=aa==0,ml=!Qs||aa==Qs.length-1;if(As.top-rs.top<=3){var Gs=(rr?Ac:No)&&Ao,yc=(rr?No:Ac)&&ml,Dl=Gs?It:(os?rs:As).left,gl=yc?Yt:(os?As:rs).right;en(Dl,rs.top,gl-Dl,rs.bottom)}else{var Xl,rl,Rl,Mc;os?(Xl=rr&&Ac&&Ao?It:rs.left,rl=rr?Yt:Ms(Ts,ks,"before"),Rl=rr?It:Ms(Js,ks,"after"),Mc=rr&&No&&ml?Yt:As.right):(Xl=rr?Ms(Ts,ks,"before"):It,rl=!rr&&Ac&&Ao?Yt:rs.right,Rl=!rr&&No&&ml?It:As.left,Mc=rr?Ms(Js,ks,"after"):Yt),en(Xl,rs.top,rl-Xl,rs.bottom),rs.bottom<As.top&&en(It,rs.bottom,null,As.top),en(Rl,As.top,Mc-Rl,As.bottom)}(!Wo||ja(rs,Wo)<0)&&(Wo=rs),ja(As,Wo)<0&&(Wo=As),(!cs||ja(rs,cs)<0)&&(cs=rs),ja(As,cs)<0&&(cs=As)}),{start:Wo,end:cs}}var Dn=K.from(),Bn=K.to();if(Dn.line==Bn.line)hn(Dn.line,Dn.ch,Bn.ch);else{var vi=Xe(he,Dn.line),Ki=Xe(he,Bn.line),Qi=gn(vi)==gn(Ki),Xi=hn(Dn.line,Dn.ch,Qi?vi.text.length+1:null).end,Vi=hn(Bn.line,Qi?0:null,Bn.ch).start;Qi&&(Xi.top<Vi.top-2?(en(Xi.right,Xi.top,null,Xi.bottom),en(It,Vi.top,Vi.left,Vi.bottom)):en(Xi.right,Xi.top,Vi.left-Xi.right,Xi.bottom)),Xi.bottom<Vi.top&&en(It,Xi.bottom,null,Vi.top)}te.appendChild(Pe)}function ia(F){if(!F.state.focused)return;var K=F.display;clearInterval(K.blinker);var te=!0;K.cursorDiv.style.visibility="",F.options.cursorBlinkRate>0?K.blinker=setInterval(function(){F.hasFocus()||Qa(F),K.cursorDiv.style.visibility=(te=!te)?"":"hidden"},F.options.cursorBlinkRate):F.options.cursorBlinkRate<0&&(K.cursorDiv.style.visibility="hidden")}function lo(F){F.state.focused||(F.display.input.focus(),Ta(F))}function Xa(F){F.state.delayingBlurEvent=!0,setTimeout(function(){F.state.delayingBlurEvent&&(F.state.delayingBlurEvent=!1,Qa(F))},100)}function Ta(F,K){if(F.state.delayingBlurEvent&&(F.state.delayingBlurEvent=!1),F.options.readOnly=="nocursor")return;F.state.focused||(ft(F,"focus",F,K),F.state.focused=!0,k(F.display.wrapper,"CodeMirror-focused"),!F.curOp&&F.display.selForContextMenu!=F.doc.sel&&(F.display.input.reset(),s&&setTimeout(function(){return F.display.input.reset(!0)},20)),F.display.input.receivedFocus()),ia(F)}function Qa(F,K){if(F.state.delayingBlurEvent)return;F.state.focused&&(ft(F,"blur",F,K),F.state.focused=!1,b(F.display.wrapper,"CodeMirror-focused")),clearInterval(F.display.blinker),setTimeout(function(){F.state.focused||(F.display.shift=!1)},150)}function Ra(F){for(var K=F.display,te=K.lineDiv.offsetTop,ae=0;ae<K.view.length;ae++){var he=K.view[ae],Pe=F.options.lineWrapping,mt=void 0,It=0;if(he.hidden)continue;if(m&&f<8){var Yt=he.node.offsetTop+he.node.offsetHeight;mt=Yt-te,te=Yt}else{var rr=he.node.getBoundingClientRect();mt=rr.bottom-rr.top,!Pe&&he.text.firstChild&&(It=he.text.firstChild.getBoundingClientRect().right-rr.left-1)}var en=he.line.height-mt;if((en>.005||en<-.005)&&(kt(he.line,mt),_a(he.line),he.rest))for(var hn=0;hn<he.rest.length;hn++)_a(he.rest[hn]);if(It>F.display.sizerWidth){var Dn=Math.ceil(It/ra(F.display));Dn>F.display.maxLineLength&&(F.display.maxLineLength=Dn,F.display.maxLine=he.line,F.display.maxLineChanged=!0)}}}function _a(F){if(F.widgets)for(var K=0;K<F.widgets.length;++K){var te=F.widgets[K],ae=te.node.parentNode;ae&&(te.height=ae.offsetHeight)}}function yo(F,K,te){var ae=te&&te.top!=null?Math.max(0,te.top):F.scroller.scrollTop;ae=Math.floor(ae-wn(F));var he=te&&te.bottom!=null?te.bottom:ae+F.wrapper.clientHeight,Pe=Dr(K,ae),mt=Dr(K,he);if(te&&te.ensure){var It=te.ensure.from.line,Yt=te.ensure.to.line;It<Pe?(Pe=It,mt=Dr(K,Qn(Xe(K,It))+F.wrapper.clientHeight)):Math.min(Yt,K.lastLine())>=mt&&(Pe=Dr(K,Qn(Xe(K,Yt))-F.wrapper.clientHeight),mt=Yt)}return{from:Pe,to:Math.max(mt,Pe+1)}}function ao(F,K){if(At(F,"scrollCursorIntoView"))return;var te=F.display,ae=te.sizer.getBoundingClientRect(),he=null;if(K.top+ae.top<0?he=!0:K.bottom+ae.top>(window.innerHeight||document.documentElement.clientHeight)&&(he=!1),he!=null&&!e){var Pe=T("div","\u200B",null,`position: absolute;
|
|
|
top: `+(K.top-te.viewOffset-wn(F.display))+`px;
|
|
|
height: `+(K.bottom-K.top+Kn(F)+te.barHeight)+`px;
|
|
|
left: `+K.left+"px; width: "+Math.max(2,K.right-K.left)+"px;");F.display.lineSpace.appendChild(Pe),Pe.scrollIntoView(he),F.display.lineSpace.removeChild(Pe)}}function bo(F,K,te,ae){ae==null&&(ae=0);var he;!F.options.lineWrapping&&K==te&&(K=K.ch?jt(K.line,K.sticky=="before"?K.ch-1:K.ch,"after"):K,te=K.sticky=="before"?jt(K.line,K.ch+1,"before"):K);for(var Pe=0;Pe<5;Pe++){var mt=!1,It=yn(F,K),Yt=!te||te==K?It:yn(F,te);he={left:Math.min(It.left,Yt.left),top:Math.min(It.top,Yt.top)-ae,right:Math.max(It.left,Yt.left),bottom:Math.max(It.bottom,Yt.bottom)+ae};var rr=uo(F,he),en=F.doc.scrollTop,hn=F.doc.scrollLeft;if(rr.scrollTop!=null&&(Ma(F,rr.scrollTop),Math.abs(F.doc.scrollTop-en)>1&&(mt=!0)),rr.scrollLeft!=null&&(jo(F,rr.scrollLeft),Math.abs(F.doc.scrollLeft-hn)>1&&(mt=!0)),!mt)break}return he}function co(F,K){var te=uo(F,K);te.scrollTop!=null&&Ma(F,te.scrollTop),te.scrollLeft!=null&&jo(F,te.scrollLeft)}function uo(F,K){var te=F.display,ae=Ni(F.display);K.top<0&&(K.top=0);var he=F.curOp&&F.curOp.scrollTop!=null?F.curOp.scrollTop:te.scroller.scrollTop,Pe=ni(F),mt={};K.bottom-K.top>Pe&&(K.bottom=K.top+Pe);var It=F.doc.height+_n(te),Yt=K.top<ae,rr=K.bottom>It-ae;if(K.top<he)mt.scrollTop=Yt?0:K.top;else if(K.bottom>he+Pe){var en=Math.min(K.top,(rr?It:K.bottom)-Pe);en!=he&&(mt.scrollTop=en)}var hn=F.options.fixedGutter?0:te.gutters.offsetWidth,Dn=F.curOp&&F.curOp.scrollLeft!=null?F.curOp.scrollLeft:te.scroller.scrollLeft-hn,Bn=Yn(F)-te.gutters.offsetWidth,vi=K.right-K.left>Bn;return vi&&(K.right=K.left+Bn),K.left<10?mt.scrollLeft=0:K.left<Dn?mt.scrollLeft=Math.max(0,K.left+hn-(vi?0:10)):K.right>Bn+Dn-3&&(mt.scrollLeft=K.right+(vi?0:10)-Bn),mt}function Ya(F,K){if(K==null)return;fo(F),F.curOp.scrollTop=(F.curOp.scrollTop==null?F.doc.scrollTop:F.curOp.scrollTop)+K}function eo(F){fo(F);var K=F.getCursor();F.curOp.scrollToPos={from:K,to:K,margin:F.options.cursorScrollMargin}}function wa(F,K,te){(K!=null||te!=null)&&fo(F),K!=null&&(F.curOp.scrollLeft=K),te!=null&&(F.curOp.scrollTop=te)}function ro(F,K){fo(F),F.curOp.scrollToPos=K}function fo(F){var K=F.curOp.scrollToPos;if(K){F.curOp.scrollToPos=null;var te=Fn(F,K.from),ae=Fn(F,K.to);Bi(F,te,ae,K.margin)}}function Bi(F,K,te,ae){var he=uo(F,{left:Math.min(K.left,te.left),top:Math.min(K.top,te.top)-ae,right:Math.max(K.right,te.right),bottom:Math.max(K.bottom,te.bottom)+ae});wa(F,he.scrollLeft,he.scrollTop)}function Ma(F,K){if(Math.abs(F.doc.scrollTop-K)<2)return;L||Fo(F,{top:K}),Do(F,K,!0),L&&Fo(F),Bo(F,100)}function Do(F,K,te){if(K=Math.max(0,Math.min(F.display.scroller.scrollHeight-F.display.scroller.clientHeight,K)),F.display.scroller.scrollTop==K&&!te)return;F.doc.scrollTop=K,F.display.scrollbars.setScrollTop(K),F.display.scroller.scrollTop!=K&&(F.display.scroller.scrollTop=K)}function jo(F,K,te,ae){if(K=Math.max(0,Math.min(K,F.display.scroller.scrollWidth-F.display.scroller.clientWidth)),(te?K==F.doc.scrollLeft:Math.abs(F.doc.scrollLeft-K)<2)&&!ae)return;F.doc.scrollLeft=K,Is(F),F.display.scroller.scrollLeft!=K&&(F.display.scroller.scrollLeft=K),F.display.scrollbars.setScrollLeft(K)}function Vo(F){var K=F.display,te=K.gutters.offsetWidth,ae=Math.round(F.doc.height+_n(F.display));return{clientHeight:K.scroller.clientHeight,viewHeight:K.wrapper.clientHeight,scrollWidth:K.scroller.scrollWidth,clientWidth:K.scroller.clientWidth,viewWidth:K.wrapper.clientWidth,barLeft:F.options.fixedGutter?te:0,docHeight:ae,scrollHeight:ae+Kn(F)+K.barHeight,nativeBarWidth:K.nativeBarWidth,gutterWidth:te}}var Go=function(K,te,ae){this.cm=ae;var he=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Pe=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");he.tabIndex=Pe.tabIndex=-1,K(he),K(Pe),Oe(he,"scroll",function(){he.clientHeight&&te(he.scrollTop,"vertical")}),Oe(Pe,"scroll",function(){Pe.clientWidth&&te(Pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Go.prototype.update=function(F){var K=F.scrollWidth>F.clientWidth+1,te=F.scrollHeight>F.clientHeight+1,ae=F.nativeBarWidth;if(te){this.vert.style.display="block",this.vert.style.bottom=K?ae+"px":"0";var he=F.viewHeight-(K?ae:0);this.vert.firstChild.style.height=Math.max(0,F.scrollHeight-F.clientHeight+he)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(K){this.horiz.style.display="block",this.horiz.style.right=te?ae+"px":"0",this.horiz.style.left=F.barLeft+"px";var Pe=F.viewWidth-F.barLeft-(te?ae:0);this.horiz.firstChild.style.width=Math.max(0,F.scrollWidth-F.clientWidth+Pe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&F.clientHeight>0&&(ae==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:te?ae:0,bottom:K?ae:0}},Go.prototype.setScrollLeft=function(F){this.horiz.scrollLeft!=F&&(this.horiz.scrollLeft=F),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Go.prototype.setScrollTop=function(F){this.vert.scrollTop!=F&&(this.vert.scrollTop=F),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Go.prototype.zeroWidthHack=function(){var F=d&&!u?"12px":"18px";this.horiz.style.height=this.vert.style.width=F,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new H,this.disableVert=new H},Go.prototype.enableZeroWidthBar=function(F,K,te){F.style.pointerEvents="auto";function ae(){var he=F.getBoundingClientRect(),Pe=te=="vert"?document.elementFromPoint(he.right-1,(he.top+he.bottom)/2):document.elementFromPoint((he.right+he.left)/2,he.bottom-1);Pe!=F?F.style.pointerEvents="none":K.set(1e3,ae)}K.set(1e3,ae)},Go.prototype.clear=function(){var F=this.horiz.parentNode;F.removeChild(this.horiz),F.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function Ia(F,K){K||(K=Vo(F));var te=F.display.barWidth,ae=F.display.barHeight;Po(F,K);for(var he=0;he<4&&te!=F.display.barWidth||ae!=F.display.barHeight;he++)te!=F.display.barWidth&&F.options.lineWrapping&&Ra(F),Po(F,Vo(F)),te=F.display.barWidth,ae=F.display.barHeight}function Po(F,K){var te=F.display,ae=te.scrollbars.update(K);te.sizer.style.paddingRight=(te.barWidth=ae.right)+"px",te.sizer.style.paddingBottom=(te.barHeight=ae.bottom)+"px",te.heightForcer.style.borderBottom=ae.bottom+"px solid transparent",ae.right&&ae.bottom?(te.scrollbarFiller.style.display="block",te.scrollbarFiller.style.height=ae.bottom+"px",te.scrollbarFiller.style.width=ae.right+"px"):te.scrollbarFiller.style.display="",ae.bottom&&F.options.coverGutterNextToScrollbar&&F.options.fixedGutter?(te.gutterFiller.style.display="block",te.gutterFiller.style.height=ae.bottom+"px",te.gutterFiller.style.width=K.gutterWidth+"px"):te.gutterFiller.style.display=""}var ds={native:Go,null:wo};function ho(F){F.display.scrollbars&&(F.display.scrollbars.clear(),F.display.scrollbars.addClass&&b(F.display.wrapper,F.display.scrollbars.addClass)),F.display.scrollbars=new ds[F.options.scrollbarStyle](function(K){F.display.wrapper.insertBefore(K,F.display.scrollbarFiller),Oe(K,"mousedown",function(){F.state.focused&&setTimeout(function(){return F.display.input.focus()},0)}),K.setAttribute("cm-not-content","true")},function(K,te){te=="horizontal"?jo(F,K):Ma(F,K)},F),F.display.scrollbars.addClass&&k(F.display.wrapper,F.display.scrollbars.addClass)}var Oo=0;function Ka(F){F.curOp={cm:F,viewChanged:!1,startHeight:F.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:++Oo},_i(F.curOp)}function Xo(F){var K=F.curOp;K&&Fi(K,function(te){for(var ae=0;ae<te.ops.length;ae++)te.ops[ae].cm.curOp=null;nl(te)})}function nl(F){for(var K=F.ops,te=0;te<K.length;te++)Cs(K[te]);for(var ae=0;ae<K.length;ae++)_s(K[ae]);for(var he=0;he<K.length;he++)xs(K[he]);for(var Pe=0;Pe<K.length;Pe++)ps(K[Pe]);for(var mt=0;mt<K.length;mt++)Os(K[mt])}function Cs(F){var K=F.cm,te=K.display;il(K),F.updateMaxLine&&ri(K),F.mustUpdate=F.viewChanged||F.forceUpdate||F.scrollTop!=null||F.scrollToPos&&(F.scrollToPos.from.line<te.viewFrom||F.scrollToPos.to.line>=te.viewTo)||te.maxLineChanged&&K.options.lineWrapping,F.update=F.mustUpdate&&new Yo(K,F.mustUpdate&&{top:F.scrollTop,ensure:F.scrollToPos},F.forceUpdate)}function _s(F){F.updatedDisplay=F.mustUpdate&&no(F.cm,F.update)}function xs(F){var K=F.cm,te=K.display;F.updatedDisplay&&Ra(K),F.barMeasure=Vo(K),te.maxLineChanged&&!K.options.lineWrapping&&(F.adjustWidthTo=ki(K,te.maxLine,te.maxLine.text.length).left+3,K.display.sizerWidth=F.adjustWidthTo,F.barMeasure.scrollWidth=Math.max(te.scroller.clientWidth,te.sizer.offsetLeft+F.adjustWidthTo+Kn(K)+K.display.barWidth),F.maxScrollLeft=Math.max(0,te.sizer.offsetLeft+F.adjustWidthTo-Yn(K))),(F.updatedDisplay||F.selectionChanged)&&(F.preparedSelection=te.input.prepareSelection())}function ps(F){var K=F.cm;F.adjustWidthTo!=null&&(K.display.sizer.style.minWidth=F.adjustWidthTo+"px",F.maxScrollLeft<K.doc.scrollLeft&&jo(K,Math.min(K.display.scroller.scrollLeft,F.maxScrollLeft),!0),K.display.maxLineChanged=!1);var te=F.focus&&F.focus==M();F.preparedSelection&&K.display.input.showSelection(F.preparedSelection,te),(F.updatedDisplay||F.startHeight!=K.doc.height)&&Ia(K,F.barMeasure),F.updatedDisplay&&ms(K,F.barMeasure),F.selectionChanged&&ia(K),K.state.focused&&F.updateInput&&K.display.input.reset(F.typing),te&&lo(F.cm)}function Os(F){var K=F.cm,te=K.display,ae=K.doc;if(F.updatedDisplay&&vo(K,F.update),te.wheelStartX!=null&&(F.scrollTop!=null||F.scrollLeft!=null||F.scrollToPos)&&(te.wheelStartX=te.wheelStartY=null),F.scrollTop!=null&&Do(K,F.scrollTop,F.forceScroll),F.scrollLeft!=null&&jo(K,F.scrollLeft,!0,!0),F.scrollToPos){var he=bo(K,yt(ae,F.scrollToPos.from),yt(ae,F.scrollToPos.to),F.scrollToPos.margin);ao(K,he)}var Pe=F.maybeHiddenMarkers,mt=F.maybeUnhiddenMarkers;if(Pe)for(var It=0;It<Pe.length;++It)Pe[It].lines.length||ft(Pe[It],"hide");if(mt)for(var Yt=0;Yt<mt.length;++Yt)mt[Yt].lines.length&&ft(mt[Yt],"unhide");te.wrapper.offsetHeight&&(ae.scrollTop=K.display.scroller.scrollTop),F.changeObjs&&ft(K,"changes",K,F.changeObjs),F.update&&F.update.finish()}function Ho(F,K){if(F.curOp)return K();Ka(F);try{return K()}finally{Xo(F)}}function mo(F,K){return function(){if(F.curOp)return K.apply(F,arguments);Ka(F);try{return K.apply(F,arguments)}finally{Xo(F)}}}function es(F){return function(){if(this.curOp)return F.apply(this,arguments);Ka(this);try{return F.apply(this,arguments)}finally{Xo(this)}}}function Ko(F){return function(){var K=this.cm;if(!K||K.curOp)return F.apply(this,arguments);Ka(K);try{return F.apply(this,arguments)}finally{Xo(K)}}}function Bo(F,K){F.doc.highlightFrontier<F.display.viewTo&&F.state.highlight.set(K,P(zr,F))}function zr(F){var K=F.doc;if(K.highlightFrontier>=F.display.viewTo)return;var te=+new Date+F.options.workTime,ae=In(F,K.highlightFrontier),he=[];K.iter(ae.line,Math.min(K.first+K.size,F.display.viewTo+500),function(Pe){if(ae.line>=F.display.viewFrom){var mt=Pe.styles,It=Pe.text.length>F.options.maxHighlightLength?tt(K.mode,ae.state):null,Yt=Yr(F,Pe,ae,!0);It&&(ae.state=It),Pe.styles=Yt.styles;var rr=Pe.styleClasses,en=Yt.classes;en?Pe.styleClasses=en:rr&&(Pe.styleClasses=null);for(var hn=!mt||mt.length!=Pe.styles.length||rr!=en&&(!rr||!en||rr.bgClass!=en.bgClass||rr.textClass!=en.textClass),Dn=0;!hn&&Dn<mt.length;++Dn)hn=mt[Dn]!=Pe.styles[Dn];hn&&he.push(ae.line),Pe.stateAfter=ae.save(),ae.nextLine()}else Pe.text.length<=F.options.maxHighlightLength&&Nn(F,Pe.text,ae),Pe.stateAfter=ae.line%5==0?ae.save():null,ae.nextLine();if(+new Date>te)return Bo(F,F.options.workDelay),!0}),K.highlightFrontier=ae.line,K.modeFrontier=Math.max(K.modeFrontier,ae.line),he.length&&Ho(F,function(){for(var Pe=0;Pe<he.length;Pe++)Ci(F,he[Pe],"text")})}var Yo=function(K,te,ae){var he=K.display;this.viewport=te,this.visible=yo(he,K.doc,te),this.editorIsHidden=!he.wrapper.offsetWidth,this.wrapperHeight=he.wrapper.clientHeight,this.wrapperWidth=he.wrapper.clientWidth,this.oldDisplayWidth=Yn(K),this.force=ae,this.dims=qi(K),this.events=[]};Yo.prototype.signal=function(F,K){St(F,K)&&this.events.push(arguments)},Yo.prototype.finish=function(){for(var F=0;F<this.events.length;F++)ft.apply(null,this.events[F])};function il(F){var K=F.display;!K.scrollbarsClipped&&K.scroller.offsetWidth&&(K.nativeBarWidth=K.scroller.offsetWidth-K.scroller.clientWidth,K.heightForcer.style.height=Kn(F)+"px",K.sizer.style.marginBottom=-K.nativeBarWidth+"px",K.sizer.style.borderRightWidth=Kn(F)+"px",K.scrollbarsClipped=!0)}function Ks(F){if(F.hasFocus())return null;var K=M();if(!K||!_(F.display.lineDiv,K))return null;var te={activeElt:K};if(window.getSelection){var ae=window.getSelection();ae.anchorNode&&ae.extend&&_(F.display.lineDiv,ae.anchorNode)&&(te.anchorNode=ae.anchorNode,te.anchorOffset=ae.anchorOffset,te.focusNode=ae.focusNode,te.focusOffset=ae.focusOffset)}return te}function Ps(F){if(!F||!F.activeElt||F.activeElt==M())return;if(F.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(F.activeElt.nodeName)&&F.anchorNode&&_(document.body,F.anchorNode)&&_(document.body,F.focusNode)){var K=window.getSelection(),te=document.createRange();te.setEnd(F.anchorNode,F.anchorOffset),te.collapse(!1),K.removeAllRanges(),K.addRange(te),K.extend(F.focusNode,F.focusOffset)}}function no(F,K){var te=F.display,ae=F.doc;if(K.editorIsHidden)return Sa(F),!1;if(!K.force&&K.visible.from>=te.viewFrom&&K.visible.to<=te.viewTo&&(te.updateLineNumbers==null||te.updateLineNumbers>=te.viewTo)&&te.renderedView==te.view&&Ua(F)==0)return!1;ol(F)&&(Sa(F),K.dims=qi(F));var he=ae.first+ae.size,Pe=Math.max(K.visible.from-F.options.viewportMargin,ae.first),mt=Math.min(he,K.visible.to+F.options.viewportMargin);te.viewFrom<Pe&&Pe-te.viewFrom<20&&(Pe=Math.max(ae.first,te.viewFrom)),te.viewTo>mt&&te.viewTo-mt<20&&(mt=Math.min(he,te.viewTo)),Ye&&(Pe=tn(F.doc,Pe),mt=ui(F.doc,mt));var It=Pe!=te.viewFrom||mt!=te.viewTo||te.lastWrapHeight!=K.wrapperHeight||te.lastWrapWidth!=K.wrapperWidth;Na(F,Pe,mt),te.viewOffset=Qn(Xe(F.doc,te.viewFrom)),F.display.mover.style.top=te.viewOffset+"px";var Yt=Ua(F);if(!It&&Yt==0&&!K.force&&te.renderedView==te.view&&(te.updateLineNumbers==null||te.updateLineNumbers>=te.viewTo))return!1;var rr=Ks(F);return Yt>4&&(te.lineDiv.style.display="none"),ns(F,te.updateLineNumbers,K.dims),Yt>4&&(te.lineDiv.style.display=""),te.renderedView=te.view,Ps(rr),w(te.cursorDiv),w(te.selectionDiv),te.gutters.style.height=te.sizer.style.minHeight=0,It&&(te.lastWrapHeight=K.wrapperHeight,te.lastWrapWidth=K.wrapperWidth,Bo(F,400)),te.updateLineNumbers=null,!0}function vo(F,K){for(var te=K.viewport,ae=!0;;ae=!1){if(!ae||!F.options.lineWrapping||K.oldDisplayWidth==Yn(F)){if(te&&te.top!=null&&(te={top:Math.min(F.doc.height+_n(F.display)-ni(F),te.top)}),K.visible=yo(F.display,F.doc,te),K.visible.from>=F.display.viewFrom&&K.visible.to<=F.display.viewTo)break}else ae&&(K.visible=yo(F.display,F.doc,te));if(!no(F,K))break;Ra(F);var he=Vo(F);Pa(F),Ia(F,he),ms(F,he),K.force=!1}K.signal(F,"update",F),(F.display.viewFrom!=F.display.reportedViewFrom||F.display.viewTo!=F.display.reportedViewTo)&&(K.signal(F,"viewportChange",F,F.display.viewFrom,F.display.viewTo),F.display.reportedViewFrom=F.display.viewFrom,F.display.reportedViewTo=F.display.viewTo)}function Fo(F,K){var te=new Yo(F,K);if(no(F,te)){Ra(F),vo(F,te);var ae=Vo(F);Pa(F),Ia(F,ae),ms(F,ae),te.finish()}}function ns(F,K,te){var ae=F.display,he=F.options.lineNumbers,Pe=ae.lineDiv,mt=Pe.firstChild;function It(vi){var Ki=vi.nextSibling;return s&&d&&F.display.currentWheelTarget==vi?vi.style.display="none":vi.parentNode.removeChild(vi),Ki}for(var Yt=ae.view,rr=ae.viewFrom,en=0;en<Yt.length;en++){var hn=Yt[en];if(!hn.hidden)if(!hn.node||hn.node.parentNode!=Pe){var Dn=Wr(F,hn,rr,te);Pe.insertBefore(Dn,mt)}else{for(;mt!=hn.node;)mt=It(mt);var Bn=he&&K!=null&&K<=rr&&hn.lineNumber;hn.changes&&(W(hn.changes,"gutter")>-1&&(Bn=!1),nn(F,hn,rr,te)),Bn&&(w(hn.lineNumber),hn.lineNumber.appendChild(document.createTextNode(cn(F.options,rr)))),mt=hn.node.nextSibling}rr+=hn.size}for(;mt;)mt=It(mt)}function ys(F){var K=F.gutters.offsetWidth;F.sizer.style.marginLeft=K+"px"}function ms(F,K){F.display.sizer.style.minHeight=K.docHeight+"px",F.display.heightForcer.style.top=K.docHeight+"px",F.display.gutters.style.height=K.docHeight+F.display.barHeight+Kn(F)+"px"}function Is(F){var K=F.display,te=K.view;if(!K.alignWidgets&&(!K.gutters.firstChild||!F.options.fixedGutter))return;for(var ae=Aa(K)-K.scroller.scrollLeft+F.doc.scrollLeft,he=K.gutters.offsetWidth,Pe=ae+"px",mt=0;mt<te.length;mt++)if(!te[mt].hidden){F.options.fixedGutter&&(te[mt].gutter&&(te[mt].gutter.style.left=Pe),te[mt].gutterBackground&&(te[mt].gutterBackground.style.left=Pe));var It=te[mt].alignable;if(It)for(var Yt=0;Yt<It.length;Yt++)It[Yt].style.left=Pe}F.options.fixedGutter&&(K.gutters.style.left=ae+he+"px")}function ol(F){if(!F.options.lineNumbers)return!1;var K=F.doc,te=cn(F.options,K.first+K.size-1),ae=F.display;if(te.length!=ae.lineNumChars){var he=ae.measure.appendChild(T("div",[T("div",te)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Pe=he.firstChild.offsetWidth,mt=he.offsetWidth-Pe;return ae.lineGutter.style.width="",ae.lineNumInnerWidth=Math.max(Pe,ae.lineGutter.offsetWidth-mt)+1,ae.lineNumWidth=ae.lineNumInnerWidth+mt,ae.lineNumChars=ae.lineNumInnerWidth?te.length:-1,ae.lineGutter.style.width=ae.lineNumWidth+"px",ys(F.display),!0}return!1}function Ls(F,K){for(var te=[],ae=!1,he=0;he<F.length;he++){var Pe=F[he],mt=null;if(typeof Pe!="string"&&(mt=Pe.style,Pe=Pe.className),Pe=="CodeMirror-linenumbers")if(K)ae=!0;else continue;te.push({className:Pe,style:mt})}return K&&!ae&&te.push({className:"CodeMirror-linenumbers",style:null}),te}function Xs(F){var K=F.gutters,te=F.gutterSpecs;w(K),F.lineGutter=null;for(var ae=0;ae<te.length;++ae){var he=te[ae],Pe=he.className,mt=he.style,It=K.appendChild(T("div",null,"CodeMirror-gutter "+Pe));mt&&(It.style.cssText=mt),Pe=="CodeMirror-linenumbers"&&(F.lineGutter=It,It.style.width=(F.lineNumWidth||1)+"px")}K.style.display=te.length?"":"none",ys(F)}function Bs(F){Xs(F.display),va(F),Is(F)}function gs(F,K,te,ae){var he=this;this.input=te,he.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),he.scrollbarFiller.setAttribute("cm-not-content","true"),he.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),he.gutterFiller.setAttribute("cm-not-content","true"),he.lineDiv=C("div",null,"CodeMirror-code"),he.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),he.cursorDiv=T("div",null,"CodeMirror-cursors"),he.measure=T("div",null,"CodeMirror-measure"),he.lineMeasure=T("div",null,"CodeMirror-measure"),he.lineSpace=C("div",[he.measure,he.lineMeasure,he.selectionDiv,he.cursorDiv,he.lineDiv],null,"position: relative; outline: none");var Pe=C("div",[he.lineSpace],"CodeMirror-lines");he.mover=T("div",[Pe],null,"position: relative"),he.sizer=T("div",[he.mover],"CodeMirror-sizer"),he.sizerWidth=null,he.heightForcer=T("div",null,null,"position: absolute; height: "+G+"px; width: 1px;"),he.gutters=T("div",null,"CodeMirror-gutters"),he.lineGutter=null,he.scroller=T("div",[he.sizer,he.heightForcer,he.gutters],"CodeMirror-scroll"),he.scroller.setAttribute("tabIndex","-1"),he.wrapper=T("div",[he.scrollbarFiller,he.gutterFiller,he.scroller],"CodeMirror"),m&&f<8&&(he.gutters.style.zIndex=-1,he.scroller.style.paddingRight=0),!s&&!(L&&c)&&(he.scroller.draggable=!0),F&&(F.appendChild?F.appendChild(he.wrapper):F(he.wrapper)),he.viewFrom=he.viewTo=K.first,he.reportedViewFrom=he.reportedViewTo=K.first,he.view=[],he.renderedView=null,he.externalMeasured=null,he.viewOffset=0,he.lastWrapHeight=he.lastWrapWidth=0,he.updateLineNumbers=null,he.nativeBarWidth=he.barHeight=he.barWidth=0,he.scrollbarsClipped=!1,he.lineNumWidth=he.lineNumInnerWidth=he.lineNumChars=null,he.alignWidgets=!1,he.cachedCharWidth=he.cachedTextHeight=he.cachedPaddingH=null,he.maxLine=null,he.maxLineLength=0,he.maxLineChanged=!1,he.wheelDX=he.wheelDY=he.wheelStartX=he.wheelStartY=null,he.shift=!1,he.selForContextMenu=null,he.activeTouch=null,he.gutterSpecs=Ls(ae.gutters,ae.lineNumbers),Xs(he),te.init(he)}var Ns=0,Tt=null;m?Tt=-.53:L?Tt=15:l?Tt=-.7:r&&(Tt=-1/3);function Rt(F){var K=F.wheelDeltaX,te=F.wheelDeltaY;return K==null&&F.detail&&F.axis==F.HORIZONTAL_AXIS&&(K=F.detail),te==null&&F.detail&&F.axis==F.VERTICAL_AXIS?te=F.detail:te==null&&(te=F.wheelDelta),{x:K,y:te}}function rn(F){var K=Rt(F);return K.x*=Tt,K.y*=Tt,K}function On(F,K){var te=Rt(K),ae=te.x,he=te.y,Pe=F.display,mt=Pe.scroller,It=mt.scrollWidth>mt.clientWidth,Yt=mt.scrollHeight>mt.clientHeight;if(!(ae&&It||he&&Yt))return;if(he&&d&&s){e:for(var rr=K.target,en=Pe.view;rr!=mt;rr=rr.parentNode)for(var hn=0;hn<en.length;hn++)if(en[hn].node==rr){F.display.currentWheelTarget=rr;break e}}if(ae&&!L&&!a&&Tt!=null){he&&Yt&&Ma(F,Math.max(0,mt.scrollTop+he*Tt)),jo(F,Math.max(0,mt.scrollLeft+ae*Tt)),(!he||he&&Yt)&&je(K),Pe.wheelStartX=null;return}if(he&&Tt!=null){var Dn=he*Tt,Bn=F.doc.scrollTop,vi=Bn+Pe.wrapper.clientHeight;Dn<0?Bn=Math.max(0,Bn+Dn-50):vi=Math.min(F.doc.height,vi+Dn+50),Fo(F,{top:Bn,bottom:vi})}Ns<20&&(Pe.wheelStartX==null?(Pe.wheelStartX=mt.scrollLeft,Pe.wheelStartY=mt.scrollTop,Pe.wheelDX=ae,Pe.wheelDY=he,setTimeout(function(){if(Pe.wheelStartX==null)return;var Ki=mt.scrollLeft-Pe.wheelStartX,Qi=mt.scrollTop-Pe.wheelStartY,Xi=Qi&&Pe.wheelDY&&Qi/Pe.wheelDY||Ki&&Pe.wheelDX&&Ki/Pe.wheelDX;if(Pe.wheelStartX=Pe.wheelStartY=null,!Xi)return;Tt=(Tt*Ns+Xi)/(Ns+1),++Ns},200)):(Pe.wheelDX+=ae,Pe.wheelDY+=he))}var vt=function(K,te){this.ranges=K,this.primIndex=te};vt.prototype.primary=function(){return this.ranges[this.primIndex]},vt.prototype.equals=function(F){if(F==this)return!0;if(F.primIndex!=this.primIndex||F.ranges.length!=this.ranges.length)return!1;for(var K=0;K<this.ranges.length;K++){var te=this.ranges[K],ae=F.ranges[K];if(!dt(te.anchor,ae.anchor)||!dt(te.head,ae.head))return!1}return!0},vt.prototype.deepCopy=function(){for(var F=[],K=0;K<this.ranges.length;K++)F[K]=new se(Qt(this.ranges[K].anchor),Qt(this.ranges[K].head));return new vt(F,this.primIndex)},vt.prototype.somethingSelected=function(){for(var F=0;F<this.ranges.length;F++)if(!this.ranges[F].empty())return!0;return!1},vt.prototype.contains=function(F,K){K||(K=F);for(var te=0;te<this.ranges.length;te++){var ae=this.ranges[te];if(gt(K,ae.from())>=0&>(F,ae.to())<=0)return te}return-1};var se=function(K,te){this.anchor=K,this.head=te};se.prototype.from=function(){return xt(this.anchor,this.head)},se.prototype.to=function(){return Jt(this.anchor,this.head)},se.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ye(F,K,te){var ae=F&&F.options.selectionsMayTouch,he=K[te];K.sort(function(Dn,Bn){return gt(Dn.from(),Bn.from())}),te=W(K,he);for(var Pe=1;Pe<K.length;Pe++){var mt=K[Pe],It=K[Pe-1],Yt=gt(It.to(),mt.from());if(ae&&!mt.empty()?Yt>0:Yt>=0){var rr=xt(It.from(),mt.from()),en=Jt(It.to(),mt.to()),hn=It.empty()?mt.from()==mt.head:It.from()==It.head;Pe<=te&&--te,K.splice(--Pe,2,new se(hn?en:rr,hn?rr:en))}}return new vt(K,te)}function Se(F,K){return new vt([new se(F,K||F)],0)}function Ue(F){return F.text?jt(F.from.line+F.text.length-1,me(F.text).length+(F.text.length==1?F.from.ch:0)):F.to}function ht(F,K){if(gt(F,K.from)<0)return F;if(gt(F,K.to)<=0)return Ue(K);var te=F.line+K.text.length-(K.to.line-K.from.line)-1,ae=F.ch;return F.line==K.to.line&&(ae+=Ue(K).ch-K.to.ch),jt(te,ae)}function Nt(F,K){for(var te=[],ae=0;ae<F.sel.ranges.length;ae++){var he=F.sel.ranges[ae];te.push(new se(ht(he.anchor,K),ht(he.head,K)))}return ye(F.cm,te,F.sel.primIndex)}function br(F,K,te){return F.line==K.line?jt(te.line,F.ch-K.ch+te.ch):jt(te.line+(F.line-K.line),F.ch)}function Or(F,K,te){for(var ae=[],he=jt(F.first,0),Pe=he,mt=0;mt<K.length;mt++){var It=K[mt],Yt=br(It.from,he,Pe),rr=br(Ue(It),he,Pe);if(he=It.to,Pe=rr,te=="around"){var en=F.sel.ranges[mt],hn=gt(en.head,en.anchor)<0;ae[mt]=new se(hn?rr:Yt,hn?Yt:rr)}else ae[mt]=new se(Yt,Yt)}return new vt(ae,F.sel.primIndex)}function Zr(F){F.doc.mode=vn(F.options,F.doc.modeOption),Tn(F)}function Tn(F){F.doc.iter(function(K){K.stateAfter&&(K.stateAfter=null),K.styles&&(K.styles=null)}),F.doc.modeFrontier=F.doc.highlightFrontier=F.doc.first,Bo(F,100),F.state.modeGen++,F.curOp&&va(F)}function Hn(F,K){return K.from.ch==0&&K.to.ch==0&&me(K.text)==""&&(!F.cm||F.cm.options.wholeLineUpdateBefore)}function si(F,K,te,ae){function he(Vi){return te?te[Vi]:null}function Pe(Vi,fa,ba){dn(Vi,fa,ba,ae),Vt(Vi,"change",Vi,K)}function mt(Vi,fa){for(var ba=[],qa=Vi;qa<fa;++qa)ba.push(new Mi(rr[qa],he(qa),ae));return ba}var It=K.from,Yt=K.to,rr=K.text,en=Xe(F,It.line),hn=Xe(F,Yt.line),Dn=me(rr),Bn=he(rr.length-1),vi=Yt.line-It.line;if(K.full)F.insert(0,mt(0,rr.length)),F.remove(rr.length,F.size-rr.length);else if(Hn(F,K)){var Ki=mt(0,rr.length-1);Pe(hn,hn.text,Bn),vi&&F.remove(It.line,vi),Ki.length&&F.insert(It.line,Ki)}else if(en==hn)if(rr.length==1)Pe(en,en.text.slice(0,It.ch)+Dn+en.text.slice(Yt.ch),Bn);else{var Qi=mt(1,rr.length-1);Qi.push(new Mi(Dn+en.text.slice(Yt.ch),Bn,ae)),Pe(en,en.text.slice(0,It.ch)+rr[0],he(0)),F.insert(It.line+1,Qi)}else if(rr.length==1)Pe(en,en.text.slice(0,It.ch)+rr[0]+hn.text.slice(Yt.ch),he(0)),F.remove(It.line+1,vi);else{Pe(en,en.text.slice(0,It.ch)+rr[0],he(0)),Pe(hn,Dn+hn.text.slice(Yt.ch),Bn);var Xi=mt(1,rr.length-1);vi>1&&F.remove(It.line+1,vi-1),F.insert(It.line+1,Xi)}Vt(F,"change",F,K)}function xi(F,K,te){function ae(he,Pe,mt){if(he.linked)for(var It=0;It<he.linked.length;++It){var Yt=he.linked[It];if(Yt.doc==Pe)continue;var rr=mt&&Yt.sharedHist;if(te&&!rr)continue;K(Yt.doc,rr),ae(Yt.doc,he,rr)}}ae(F,null,!0)}function Ri(F,K){if(K.cm)throw new Error("This document is already in use.");F.doc=K,K.cm=F,Zi(F),Zr(F),sa(F),F.options.lineWrapping||ri(F),F.options.mode=K.modeOption,va(F)}function sa(F){(F.doc.direction=="rtl"?k:b)(F.display.lineDiv,"CodeMirror-rtl")}function ya(F){Ho(F,function(){sa(F),va(F)})}function Ja(F){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=F||1}function $a(F,K){var te={from:Qt(K.from),to:Ue(K),text:at(F,K.from,K.to)};return is(F,te,K.from.line,K.to.line+1),xi(F,function(ae){return is(ae,te,K.from.line,K.to.line+1)},!0),te}function to(F){for(;F.length;){var K=me(F);if(K.ranges)F.pop();else break}}function _o(F,K){if(K)return to(F.done),me(F.done);if(F.done.length&&!me(F.done).ranges)return me(F.done);if(F.done.length>1&&!F.done[F.done.length-2].ranges)return F.done.pop(),me(F.done)}function To(F,K,te,ae){var he=F.history;he.undone.length=0;var Pe=+new Date,mt,It;if((he.lastOp==ae||he.lastOrigin==K.origin&&K.origin&&(K.origin.charAt(0)=="+"&&he.lastModTime>Pe-(F.cm?F.cm.options.historyEventDelay:500)||K.origin.charAt(0)=="*"))&&(mt=_o(he,he.lastOp==ae)))It=me(mt.changes),gt(K.from,K.to)==0&>(K.from,It.to)==0?It.to=Ue(K):mt.changes.push($a(F,K));else{var Yt=me(he.done);for((!Yt||!Yt.ranges)&&So(F.sel,he.done),mt={changes:[$a(F,K)],generation:he.generation},he.done.push(mt);he.done.length>he.undoDepth;)he.done.shift(),he.done[0].ranges||he.done.shift()}he.done.push(te),he.generation=++he.maxGeneration,he.lastModTime=he.lastSelTime=Pe,he.lastOp=he.lastSelOp=ae,he.lastOrigin=he.lastSelOrigin=K.origin,It||ft(F,"historyAdded")}function Ro(F,K,te,ae){var he=K.charAt(0);return he=="*"||he=="+"&&te.ranges.length==ae.ranges.length&&te.somethingSelected()==ae.somethingSelected()&&new Date-F.history.lastSelTime<=(F.cm?F.cm.options.historyEventDelay:500)}function go(F,K,te,ae){var he=F.history,Pe=ae&&ae.origin;te==he.lastSelOp||Pe&&he.lastSelOrigin==Pe&&(he.lastModTime==he.lastSelTime&&he.lastOrigin==Pe||Ro(F,Pe,me(he.done),K))?he.done[he.done.length-1]=K:So(K,he.done),he.lastSelTime=+new Date,he.lastSelOrigin=Pe,he.lastSelOp=te,ae&&ae.clearRedo!==!1&&to(he.undone)}function So(F,K){var te=me(K);te&&te.ranges&&te.equals(F)||K.push(F)}function is(F,K,te,ae){var he=K["spans_"+F.id],Pe=0;F.iter(Math.max(F.first,te),Math.min(F.first+F.size,ae),function(mt){mt.markedSpans&&((he||(he=K["spans_"+F.id]={}))[Pe]=mt.markedSpans),++Pe})}function ts(F){if(!F)return null;for(var K,te=0;te<F.length;++te)F[te].marker.explicitlyCleared?K||(K=F.slice(0,te)):K&&K.push(F[te]);return K?K.length?K:null:F}function Co(F,K){var te=K["spans_"+F.id];if(!te)return null;for(var ae=[],he=0;he<K.text.length;++he)ae.push(ts(te[he]));return ae}function Yi(F,K){var te=Co(F,K),ae=un(F,K);if(!te)return ae;if(!ae)return te;for(var he=0;he<te.length;++he){var Pe=te[he],mt=ae[he];if(Pe&&mt){e:for(var It=0;It<mt.length;++It){for(var Yt=mt[It],rr=0;rr<Pe.length;++rr)if(Pe[rr].marker==Yt.marker)continue e;Pe.push(Yt)}}else mt&&(te[he]=mt)}return te}function Ds(F,K,te){for(var ae=[],he=0;he<F.length;++he){var Pe=F[he];if(Pe.ranges){ae.push(te?vt.prototype.deepCopy.call(Pe):Pe);continue}var mt=Pe.changes,It=[];ae.push({changes:It});for(var Yt=0;Yt<mt.length;++Yt){var rr=mt[Yt],en=void 0;if(It.push({from:rr.from,to:rr.to,text:rr.text}),K)for(var hn in rr)(en=hn.match(/^spans_(\d+)$/))&&(W(K,Number(en[1]))>-1&&(me(It)[hn]=rr[hn],delete rr[hn]))}}return ae}function Es(F,K,te,ae){if(ae){var he=F.anchor;if(te){var Pe=gt(K,he)<0;Pe!=gt(te,he)<0?(he=K,K=te):Pe!=gt(K,te)<0&&(K=te)}return new se(he,K)}else return new se(te||K,K)}function as(F,K,te,ae,he){he==null&&(he=F.cm&&(F.cm.display.shift||F.extend)),Lo(F,new vt([Es(F.sel.primary(),K,te,he)],0),ae)}function Qo(F,K,te){for(var ae=[],he=F.cm&&(F.cm.display.shift||F.extend),Pe=0;Pe<F.sel.ranges.length;Pe++)ae[Pe]=Es(F.sel.ranges[Pe],K[Pe],null,he);var mt=ye(F.cm,ae,F.sel.primIndex);Lo(F,mt,te)}function hs(F,K,te,ae){var he=F.sel.ranges.slice(0);he[K]=te,Lo(F,ye(F.cm,he,F.sel.primIndex),ae)}function vl(F,K,te,ae){Lo(F,Se(K,te),ae)}function sl(F,K,te){var ae={ranges:K.ranges,update:function(Pe){this.ranges=[];for(var mt=0;mt<Pe.length;mt++)this.ranges[mt]=new se(yt(F,Pe[mt].anchor),yt(F,Pe[mt].head))},origin:te&&te.origin};return ft(F,"beforeSelectionChange",F,ae),F.cm&&ft(F.cm,"beforeSelectionChange",F.cm,ae),ae.ranges!=K.ranges?ye(F.cm,ae.ranges,ae.ranges.length-1):K}function fs(F,K,te){var ae=F.history.done,he=me(ae);he&&he.ranges?(ae[ae.length-1]=K,ls(F,K,te)):Lo(F,K,te)}function Lo(F,K,te){ls(F,K,te),go(F,F.sel,F.cm?F.cm.curOp.id:NaN,te)}function ls(F,K,te){(St(F,"beforeSelectionChange")||F.cm&&St(F.cm,"beforeSelectionChange"))&&(K=sl(F,K,te));var ae=te&&te.bias||(gt(K.primary().head,F.sel.primary().head)<0?-1:1);Zs(F,Fs(F,K,ae,!0)),!(te&&te.scroll===!1)&&F.cm&&eo(F.cm)}function Zs(F,K){if(K.equals(F.sel))return;F.sel=K,F.cm&&(F.cm.curOp.updateInput=1,F.cm.curOp.selectionChanged=!0,bt(F.cm)),Vt(F,"cursorActivity",F)}function vs(F){Zs(F,Fs(F,F.sel,null,!1))}function Fs(F,K,te,ae){for(var he,Pe=0;Pe<K.ranges.length;Pe++){var mt=K.ranges[Pe],It=K.ranges.length==F.sel.ranges.length&&F.sel.ranges[Pe],Yt=Rs(F,mt.anchor,It&&It.anchor,te,ae),rr=Rs(F,mt.head,It&&It.head,te,ae);(he||Yt!=mt.anchor||rr!=mt.head)&&(he||(he=K.ranges.slice(0,Pe)),he[Pe]=new se(Yt,rr))}return he?ye(F.cm,he,K.primIndex):K}function Us(F,K,te,ae,he){var Pe=Xe(F,K.line);if(Pe.markedSpans)for(var mt=0;mt<Pe.markedSpans.length;++mt){var It=Pe.markedSpans[mt],Yt=It.marker,rr="selectLeft"in Yt?!Yt.selectLeft:Yt.inclusiveLeft,en="selectRight"in Yt?!Yt.selectRight:Yt.inclusiveRight;if((It.from==null||(rr?It.from<=K.ch:It.from<K.ch))&&(It.to==null||(en?It.to>=K.ch:It.to>K.ch))){if(he&&(ft(Yt,"beforeCursorEnter"),Yt.explicitlyCleared))if(Pe.markedSpans){--mt;continue}else break;if(!Yt.atomic)continue;if(te){var hn=Yt.find(ae<0?1:-1),Dn=void 0;if((ae<0?en:rr)&&(hn=al(F,hn,-ae,hn&&hn.line==K.line?Pe:null)),hn&&hn.line==K.line&&(Dn=gt(hn,te))&&(ae<0?Dn<0:Dn>0))return Us(F,hn,K,ae,he)}var Bn=Yt.find(ae<0?-1:1);return(ae<0?rr:en)&&(Bn=al(F,Bn,ae,Bn.line==K.line?Pe:null)),Bn?Us(F,Bn,K,ae,he):null}}return K}function Rs(F,K,te,ae,he){var Pe=ae||1,mt=Us(F,K,te,Pe,he)||!he&&Us(F,K,te,Pe,!0)||Us(F,K,te,-Pe,he)||!he&&Us(F,K,te,-Pe,!0);return mt||(F.cantEdit=!0,jt(F.first,0))}function al(F,K,te,ae){return te<0&&K.ch==0?K.line>F.first?yt(F,jt(K.line-1)):null:te>0&&K.ch==(ae||Xe(F,K.line)).text.length?K.line<F.first+F.size-1?jt(K.line+1,0):null:new jt(K.line,K.ch+te)}function $s(F){F.setSelection(jt(F.firstLine(),0),jt(F.lastLine()),Z)}function Ys(F,K,te){var ae={canceled:!1,from:K.from,to:K.to,text:K.text,origin:K.origin,cancel:function(){return ae.canceled=!0}};return te&&(ae.update=function(he,Pe,mt,It){he&&(ae.from=yt(F,he)),Pe&&(ae.to=yt(F,Pe)),mt&&(ae.text=mt),It!==void 0&&(ae.origin=It)}),ft(F,"beforeChange",F,ae),F.cm&&ft(F.cm,"beforeChange",F.cm,ae),ae.canceled?(F.cm&&(F.cm.curOp.updateInput=2),null):{from:ae.from,to:ae.to,text:ae.text,origin:ae.origin}}function js(F,K,te){if(F.cm){if(!F.cm.curOp)return mo(F.cm,js)(F,K,te);if(F.cm.state.suppressEdits)return}if((St(F,"beforeChange")||F.cm&&St(F.cm,"beforeChange"))&&(K=Ys(F,K,!0),!K))return;var ae=Je&&!te&&Gr(F,K.from,K.to);if(ae)for(var he=ae.length-1;he>=0;--he)Ga(F,{from:ae[he].from,to:ae[he].to,text:he?[""]:K.text,origin:K.origin});else Ga(F,K)}function Ga(F,K){if(K.text.length==1&&K.text[0]==""&>(K.from,K.to)==0)return;var te=Nt(F,K);To(F,K,te,F.cm?F.cm.curOp.id:NaN),oo(F,K,te,un(F,K));var ae=[];xi(F,function(he,Pe){!Pe&&W(ae,he.history)==-1&&(Uo(he.history,K),ae.push(he.history)),oo(he,K,null,un(he,K))})}function ga(F,K,te){var ae=F.cm&&F.cm.state.suppressEdits;if(ae&&!te)return;for(var he=F.history,Pe,mt=F.sel,It=K=="undo"?he.done:he.undone,Yt=K=="undo"?he.undone:he.done,rr=0;rr<It.length&&!(Pe=It[rr],te?Pe.ranges&&!Pe.equals(F.sel):!Pe.ranges);rr++);if(rr==It.length)return;for(he.lastOrigin=he.lastSelOrigin=null;;)if(Pe=It.pop(),Pe.ranges){if(So(Pe,Yt),te&&!Pe.equals(F.sel)){Lo(F,Pe,{clearRedo:!1});return}mt=Pe}else if(ae){It.push(Pe);return}else break;var en=[];So(mt,Yt),Yt.push({changes:en,generation:he.generation}),he.generation=Pe.generation||++he.maxGeneration;for(var hn=St(F,"beforeChange")||F.cm&&St(F.cm,"beforeChange"),Dn=function(Qi){var Xi=Pe.changes[Qi];if(Xi.origin=K,hn&&!Ys(F,Xi,!1))return It.length=0,{};en.push($a(F,Xi));var Vi=Qi?Nt(F,Xi):me(It);oo(F,Xi,Vi,Yi(F,Xi)),!Qi&&F.cm&&F.cm.scrollIntoView({from:Xi.from,to:Ue(Xi)});var fa=[];xi(F,function(ba,qa){!qa&&W(fa,ba.history)==-1&&(Uo(ba.history,Xi),fa.push(ba.history)),oo(ba,Xi,null,Yi(ba,Xi))})},Bn=Pe.changes.length-1;Bn>=0;--Bn){var vi=Dn(Bn);if(vi)return vi.v}}function Wa(F,K){if(K==0)return;if(F.first+=K,F.sel=new vt(Ie(F.sel.ranges,function(he){return new se(jt(he.anchor.line+K,he.anchor.ch),jt(he.head.line+K,he.head.ch))}),F.sel.primIndex),F.cm){va(F.cm,F.first,F.first-K,K);for(var te=F.cm.display,ae=te.viewFrom;ae<te.viewTo;ae++)Ci(F.cm,ae,"gutter")}}function oo(F,K,te,ae){if(F.cm&&!F.cm.curOp)return mo(F.cm,oo)(F,K,te,ae);if(K.to.line<F.first){Wa(F,K.text.length-1-(K.to.line-K.from.line));return}if(K.from.line>F.lastLine())return;if(K.from.line<F.first){var he=K.text.length-1-(F.first-K.from.line);Wa(F,he),K={from:jt(F.first,0),to:jt(K.to.line+he,K.to.ch),text:[me(K.text)],origin:K.origin}}var Pe=F.lastLine();K.to.line>Pe&&(K={from:K.from,to:jt(Pe,Xe(F,Pe).text.length),text:[K.text[0]],origin:K.origin}),K.removed=at(F,K.from,K.to),te||(te=Nt(F,K)),F.cm?Jo(F.cm,K,ae):si(F,K,ae),ls(F,te,Z),F.cantEdit&&Rs(F,jt(F.firstLine(),0))&&(F.cantEdit=!1)}function Jo(F,K,te){var ae=F.doc,he=F.display,Pe=K.from,mt=K.to,It=!1,Yt=Pe.line;F.options.lineWrapping||(Yt=Xt(gn(Xe(ae,Pe.line))),ae.iter(Yt,mt.line+1,function(Bn){if(Bn==he.maxLine)return It=!0,!0})),ae.sel.contains(K.from,K.to)>-1&&bt(F),si(ae,K,te,Oa(F)),F.options.lineWrapping||(ae.iter(Yt,Pe.line+K.text.length,function(Bn){var vi=Hi(Bn);vi>he.maxLineLength&&(he.maxLine=Bn,he.maxLineLength=vi,he.maxLineChanged=!0,It=!1)}),It&&(F.curOp.updateMaxLine=!0)),He(ae,Pe.line),Bo(F,400);var rr=K.text.length-(mt.line-Pe.line)-1;K.full?va(F):Pe.line==mt.line&&K.text.length==1&&!Hn(F.doc,K)?Ci(F,Pe.line,"text"):va(F,Pe.line,mt.line+1,rr);var en=St(F,"changes"),hn=St(F,"change");if(hn||en){var Dn={from:Pe,to:mt,text:K.text,removed:K.removed,origin:K.origin};hn&&Vt(F,"change",F,Dn),en&&(F.curOp.changeObjs||(F.curOp.changeObjs=[])).push(Dn)}F.display.selForContextMenu=null}function Hs(F,K,te,ae,he){var Pe;ae||(ae=te),gt(ae,te)<0&&(Pe=[ae,te],te=Pe[0],ae=Pe[1]),typeof K=="string"&&(K=F.splitLines(K)),js(F,{from:te,to:ae,text:K,origin:he})}function bs(F,K,te,ae){te<F.line?F.line+=ae:K<F.line&&(F.line=K,F.ch=0)}function ws(F,K,te,ae){for(var he=0;he<F.length;++he){var Pe=F[he],mt=!0;if(Pe.ranges){Pe.copied||(Pe=F[he]=Pe.deepCopy(),Pe.copied=!0);for(var It=0;It<Pe.ranges.length;It++)bs(Pe.ranges[It].anchor,K,te,ae),bs(Pe.ranges[It].head,K,te,ae);continue}for(var Yt=0;Yt<Pe.changes.length;++Yt){var rr=Pe.changes[Yt];if(te<rr.from.line)rr.from=jt(rr.from.line+ae,rr.from.ch),rr.to=jt(rr.to.line+ae,rr.to.ch);else if(K<=rr.to.line){mt=!1;break}}mt||(F.splice(0,he+1),he=0)}}function Uo(F,K){var te=K.from.line,ae=K.to.line,he=K.text.length-(ae-te)-1;ws(F.done,te,ae,he),ws(F.undone,te,ae,he)}function Io(F,K,te,ae){var he=K,Pe=K;return typeof K=="number"?Pe=Xe(F,Pt(F,K)):he=Xt(K),he==null?null:(ae(Pe,he)&&F.cm&&Ci(F.cm,he,te),Pe)}function Zo(F){this.lines=F,this.parent=null;for(var K=0,te=0;te<F.length;++te)F[te].parent=this,K+=F[te].height;this.height=K}Zo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(K,te){for(var ae=K,he=K+te;ae<he;++ae){var Pe=this.lines[ae];this.height-=Pe.height,Ur(Pe),Vt(Pe,"delete")}this.lines.splice(K,te)},collapse:function(K){K.push.apply(K,this.lines)},insertInner:function(K,te,ae){this.height+=ae,this.lines=this.lines.slice(0,K).concat(te).concat(this.lines.slice(K));for(var he=0;he<te.length;++he)te[he].parent=this},iterN:function(K,te,ae){for(var he=K+te;K<he;++K)if(ae(this.lines[K]))return!0}};function xo(F){this.children=F;for(var K=0,te=0,ae=0;ae<F.length;++ae){var he=F[ae];K+=he.chunkSize(),te+=he.height,he.parent=this}this.size=K,this.height=te,this.parent=null}xo.prototype={chunkSize:function(){return this.size},removeInner:function(K,te){this.size-=te;for(var ae=0;ae<this.children.length;++ae){var he=this.children[ae],Pe=he.chunkSize();if(K<Pe){var mt=Math.min(te,Pe-K),It=he.height;if(he.removeInner(K,mt),this.height-=It-he.height,Pe==mt&&(this.children.splice(ae--,1),he.parent=null),(te-=mt)==0)break;K=0}else K-=Pe}if(this.size-te<25&&(this.children.length>1||!(this.children[0]instanceof Zo))){var Yt=[];this.collapse(Yt),this.children=[new Zo(Yt)],this.children[0].parent=this}},collapse:function(K){for(var te=0;te<this.children.length;++te)this.children[te].collapse(K)},insertInner:function(K,te,ae){this.size+=te.length,this.height+=ae;for(var he=0;he<this.children.length;++he){var Pe=this.children[he],mt=Pe.chunkSize();if(K<=mt){if(Pe.insertInner(K,te,ae),Pe.lines&&Pe.lines.length>50){for(var It=Pe.lines.length%25+25,Yt=It;Yt<Pe.lines.length;){var rr=new Zo(Pe.lines.slice(Yt,Yt+=25));Pe.height-=rr.height,this.children.splice(++he,0,rr),rr.parent=this}Pe.lines=Pe.lines.slice(0,It),this.maybeSpill()}break}K-=mt}},maybeSpill:function(){if(this.children.length<=10)return;var K=this;do{var te=K.children.splice(K.children.length-5,5),ae=new xo(te);if(K.parent){K.size-=ae.size,K.height-=ae.height;var Pe=W(K.parent.children,K);K.parent.children.splice(Pe+1,0,ae)}else{var he=new xo(K.children);he.parent=K,K.children=[he,ae],K=he}ae.parent=K.parent}while(K.children.length>10);K.parent.maybeSpill()},iterN:function(K,te,ae){for(var he=0;he<this.children.length;++he){var Pe=this.children[he],mt=Pe.chunkSize();if(K<mt){var It=Math.min(te,mt-K);if(Pe.iterN(K,It,ae))return!0;if((te-=It)==0)break;K=0}else K-=mt}}};var Ws=function(K,te,ae){if(ae)for(var he in ae)ae.hasOwnProperty(he)&&(this[he]=ae[he]);this.doc=K,this.node=te};Ws.prototype.clear=function(){var F=this.doc.cm,K=this.line.widgets,te=this.line,ae=Xt(te);if(ae==null||!K)return;for(var he=0;he<K.length;++he)K[he]==this&&K.splice(he--,1);K.length||(te.widgets=null);var Pe=Rn(this);kt(te,Math.max(0,te.height-Pe)),F&&(Ho(F,function(){Sl(F,te,-Pe),Ci(F,ae,"widget")}),Vt(F,"lineWidgetCleared",F,this,ae))},Ws.prototype.changed=function(){var F=this,K=this.height,te=this.doc.cm,ae=this.line;this.height=null;var he=Rn(this)-K;if(!he)return;qn(this.doc,ae)||kt(ae,ae.height+he),te&&Ho(te,function(){te.curOp.forceUpdate=!0,Sl(te,ae,he),Vt(te,"lineWidgetChanged",te,F,Xt(ae))})},Et(Ws);function Sl(F,K,te){Qn(K)<(F.curOp&&F.curOp.scrollTop||F.doc.scrollTop)&&Ya(F,te)}function xl(F,K,te,ae){var he=new Ws(F,te,ae),Pe=F.cm;return Pe&&he.noHScroll&&(Pe.display.alignWidgets=!0),Io(F,K,"widget",function(mt){var It=mt.widgets||(mt.widgets=[]);if(he.insertAt==null?It.push(he):It.splice(Math.min(It.length-1,Math.max(0,he.insertAt)),0,he),he.line=mt,Pe&&!qn(F,mt)){var Yt=Qn(mt)<F.scrollTop;kt(mt,mt.height+Rn(he)),Yt&&Ya(Pe,he.height),Pe.curOp.forceUpdate=!0}return!0}),Pe&&Vt(Pe,"lineWidgetAdded",Pe,he,typeof K=="number"?K:Xt(K)),he}var Bl=0,el=function(K,te){this.lines=[],this.type=te,this.doc=K,this.id=++Bl};el.prototype.clear=function(){if(this.explicitlyCleared)return;var F=this.doc.cm,K=F&&!F.curOp;if(K&&Ka(F),St(this,"clear")){var te=this.find();te&&Vt(this,"clear",te.from,te.to)}for(var ae=null,he=null,Pe=0;Pe<this.lines.length;++Pe){var mt=this.lines[Pe],It=Ft(mt.markedSpans,this);F&&!this.collapsed?Ci(F,Xt(mt),"text"):F&&(It.to!=null&&(he=Xt(mt)),It.from!=null&&(ae=Xt(mt))),mt.markedSpans=wr(mt.markedSpans,It),It.from==null&&this.collapsed&&!qn(this.doc,mt)&&F&&kt(mt,Ni(F.display))}if(F&&this.collapsed&&!F.options.lineWrapping)for(var Yt=0;Yt<this.lines.length;++Yt){var rr=gn(this.lines[Yt]),en=Hi(rr);en>F.display.maxLineLength&&(F.display.maxLine=rr,F.display.maxLineLength=en,F.display.maxLineChanged=!0)}ae!=null&&F&&this.collapsed&&va(F,ae,he+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,F&&vs(F.doc)),F&&Vt(F,"markerCleared",F,this,ae,he),K&&Xo(F),this.parent&&this.parent.clear()},el.prototype.find=function(F,K){F==null&&this.type=="bookmark"&&(F=1);for(var te,ae,he=0;he<this.lines.length;++he){var Pe=this.lines[he],mt=Ft(Pe.markedSpans,this);if(mt.from!=null&&(te=jt(K?Pe:Xt(Pe),mt.from),F==-1))return te;if(mt.to!=null&&(ae=jt(K?Pe:Xt(Pe),mt.to),F==1))return ae}return te&&{from:te,to:ae}},el.prototype.changed=function(){var F=this,K=this.find(-1,!0),te=this,ae=this.doc.cm;if(!K||!ae)return;Ho(ae,function(){var he=K.line,Pe=Xt(K.line),mt=Si(ae,Pe);if(mt&&(Qr(mt),ae.curOp.selectionChanged=ae.curOp.forceUpdate=!0),ae.curOp.updateMaxLine=!0,!qn(te.doc,he)&&te.height!=null){var It=te.height;te.height=null;var Yt=Rn(te)-It;Yt&&kt(he,he.height+Yt)}Vt(ae,"markerChanged",ae,F)})},el.prototype.attachLine=function(F){if(!this.lines.length&&this.doc.cm){var K=this.doc.cm.curOp;(!K.maybeHiddenMarkers||W(K.maybeHiddenMarkers,this)==-1)&&(K.maybeUnhiddenMarkers||(K.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(F)},el.prototype.detachLine=function(F){if(this.lines.splice(W(this.lines,F),1),!this.lines.length&&this.doc.cm){var K=this.doc.cm.curOp;(K.maybeHiddenMarkers||(K.maybeHiddenMarkers=[])).push(this)}},Et(el);function _l(F,K,te,ae,he){if(ae&&ae.shared)return Uc(F,K,te,ae,he);if(F.cm&&!F.cm.curOp)return mo(F.cm,_l)(F,K,te,ae,he);var Pe=new el(F,he),mt=gt(K,te);if(ae&&U(ae,Pe,!1),mt>0||mt==0&&Pe.clearWhenEmpty!==!1)return Pe;if(Pe.replacedWith&&(Pe.collapsed=!0,Pe.widgetNode=C("span",[Pe.replacedWith],"CodeMirror-widget"),ae.handleMouseEvents||Pe.widgetNode.setAttribute("cm-ignore-events","true"),ae.insertLeft&&(Pe.widgetNode.insertLeft=!0)),Pe.collapsed){if(Ii(F,K.line,K,te,Pe)||K.line!=te.line&&Ii(F,te.line,K,te,Pe))throw new Error("Inserting collapsed marker partially overlapping an existing one");wt()}Pe.addToHistory&&To(F,{from:K,to:te,origin:"markText"},F.sel,NaN);var It=K.line,Yt=F.cm,rr;if(F.iter(It,te.line+1,function(hn){Yt&&Pe.collapsed&&!Yt.options.lineWrapping&&gn(hn)==Yt.display.maxLine&&(rr=!0),Pe.collapsed&&It!=K.line&&kt(hn,0),hr(hn,new ut(Pe,It==K.line?K.ch:null,It==te.line?te.ch:null)),++It}),Pe.collapsed&&F.iter(K.line,te.line+1,function(hn){qn(F,hn)&&kt(hn,0)}),Pe.clearOnEnter&&Oe(Pe,"beforeCursorEnter",function(){return Pe.clear()}),Pe.readOnly&&(et(),(F.history.done.length||F.history.undone.length)&&F.clearHistory()),Pe.collapsed&&(Pe.id=++Bl,Pe.atomic=!0),Yt){if(rr&&(Yt.curOp.updateMaxLine=!0),Pe.collapsed)va(Yt,K.line,te.line+1);else if(Pe.className||Pe.startStyle||Pe.endStyle||Pe.css||Pe.attributes||Pe.title)for(var en=K.line;en<=te.line;en++)Ci(Yt,en,"text");Pe.atomic&&vs(Yt.doc),Vt(Yt,"markerAdded",Yt,Pe)}return Pe}var Ol=function(K,te){this.markers=K,this.primary=te;for(var ae=0;ae<K.length;++ae)K[ae].parent=this};Ol.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var F=0;F<this.markers.length;++F)this.markers[F].clear();Vt(this,"clear")},Ol.prototype.find=function(F,K){return this.primary.find(F,K)},Et(Ol);function Uc(F,K,te,ae,he){ae=U(ae),ae.shared=!1;var Pe=[_l(F,K,te,ae,he)],mt=Pe[0],It=ae.widgetNode;return xi(F,function(Yt){It&&(ae.widgetNode=It.cloneNode(!0)),Pe.push(_l(Yt,yt(Yt,K),yt(Yt,te),ae,he));for(var rr=0;rr<Yt.linked.length;++rr)if(Yt.linked[rr].isParent)return;mt=me(Pe)}),new Ol(Pe,mt)}function ic(F){return F.findMarks(jt(F.first,0),F.clipPos(jt(F.lastLine())),function(K){return K.parent})}function Tc(F,K){for(var te=0;te<K.length;te++){var ae=K[te],he=ae.find(),Pe=F.clipPos(he.from),mt=F.clipPos(he.to);if(gt(Pe,mt)){var It=_l(F,Pe,mt,ae.primary,ae.primary.type);ae.markers.push(It),It.parent=ae}}}function ac(F){for(var K=function(he){var Pe=F[he],mt=[Pe.primary.doc];xi(Pe.primary.doc,function(rr){return mt.push(rr)});for(var It=0;It<Pe.markers.length;It++){var Yt=Pe.markers[It];W(mt,Yt.doc)==-1&&(Yt.parent=null,Pe.markers.splice(It--,1))}},te=0;te<F.length;te++)K(te)}var Hl=0,zs=function F(K,te,ae,he,Pe){if(!(this instanceof F))return new F(K,te,ae,he,Pe);ae==null&&(ae=0),xo.call(this,[new Zo([new Mi("",null)])]),this.first=ae,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ae;var mt=jt(ae,0);this.sel=Se(mt),this.history=new Ja(null),this.id=++Hl,this.modeOption=te,this.lineSep=he,this.direction=Pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof K=="string"&&(K=this.splitLines(K)),si(this,{from:mt,to:mt,text:K}),Lo(this,Se(mt),Z)};zs.prototype=We(xo.prototype,{constructor:zs,iter:function(K,te,ae){ae?this.iterN(K-this.first,te-K,ae):this.iterN(this.first,this.first+this.size,K)},insert:function(K,te){for(var ae=0,he=0;he<te.length;++he)ae+=te[he].height;this.insertInner(K-this.first,te,ae)},remove:function(K,te){this.removeInner(K-this.first,te)},getValue:function(K){var te=zt(this,this.first,this.first+this.size);return K===!1?te:te.join(K||this.lineSeparator())},setValue:Ko(function(F){var K=jt(this.first,0),te=this.first+this.size-1;js(this,{from:K,to:jt(te,Xe(this,te).text.length),text:this.splitLines(F),origin:"setValue",full:!0},!0),this.cm&&wa(this.cm,0,0),Lo(this,Se(K),Z)}),replaceRange:function(K,te,ae,he){te=yt(this,te),ae=ae?yt(this,ae):te,Hs(this,K,te,ae,he)},getRange:function(K,te,ae){var he=at(this,yt(this,K),yt(this,te));return ae===!1?he:he.join(ae||this.lineSeparator())},getLine:function(K){var te=this.getLineHandle(K);return te&&te.text},getLineHandle:function(K){if(Pr(this,K))return Xe(this,K)},getLineNumber:function(K){return Xt(K)},getLineHandleVisualStart:function(K){return typeof K=="number"&&(K=Xe(this,K)),gn(K)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(K){return yt(this,K)},getCursor:function(K){var te=this.sel.primary(),ae;return K==null||K=="head"?ae=te.head:K=="anchor"?ae=te.anchor:K=="end"||K=="to"||K===!1?ae=te.to():ae=te.from(),ae},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ko(function(F,K,te){vl(this,yt(this,typeof F=="number"?jt(F,K||0):F),null,te)}),setSelection:Ko(function(F,K,te){vl(this,yt(this,F),yt(this,K||F),te)}),extendSelection:Ko(function(F,K,te){as(this,yt(this,F),K&&yt(this,K),te)}),extendSelections:Ko(function(F,K){Qo(this,pr(this,F),K)}),extendSelectionsBy:Ko(function(F,K){var te=Ie(this.sel.ranges,F);Qo(this,pr(this,te),K)}),setSelections:Ko(function(F,K,te){if(!F.length)return;for(var ae=[],he=0;he<F.length;he++)ae[he]=new se(yt(this,F[he].anchor),yt(this,F[he].head));K==null&&(K=Math.min(F.length-1,this.sel.primIndex)),Lo(this,ye(this.cm,ae,K),te)}),addSelection:Ko(function(F,K,te){var ae=this.sel.ranges.slice(0);ae.push(new se(yt(this,F),yt(this,K||F))),Lo(this,ye(this.cm,ae,ae.length-1),te)}),getSelection:function(K){for(var te=this.sel.ranges,ae,he=0;he<te.length;he++){var Pe=at(this,te[he].from(),te[he].to());ae=ae?ae.concat(Pe):Pe}return K===!1?ae:ae.join(K||this.lineSeparator())},getSelections:function(K){for(var te=[],ae=this.sel.ranges,he=0;he<ae.length;he++){var Pe=at(this,ae[he].from(),ae[he].to());K!==!1&&(Pe=Pe.join(K||this.lineSeparator())),te[he]=Pe}return te},replaceSelection:function(K,te,ae){for(var he=[],Pe=0;Pe<this.sel.ranges.length;Pe++)he[Pe]=K;this.replaceSelections(he,te,ae||"+input")},replaceSelections:Ko(function(F,K,te){for(var ae=[],he=this.sel,Pe=0;Pe<he.ranges.length;Pe++){var mt=he.ranges[Pe];ae[Pe]={from:mt.from(),to:mt.to(),text:this.splitLines(F[Pe]),origin:te}}for(var It=K&&K!="end"&&Or(this,ae,K),Yt=ae.length-1;Yt>=0;Yt--)js(this,ae[Yt]);It?fs(this,It):this.cm&&eo(this.cm)}),undo:Ko(function(){ga(this,"undo")}),redo:Ko(function(){ga(this,"redo")}),undoSelection:Ko(function(){ga(this,"undo",!0)}),redoSelection:Ko(function(){ga(this,"redo",!0)}),setExtending:function(K){this.extend=K},getExtending:function(){return this.extend},historySize:function(){for(var K=this.history,te=0,ae=0,he=0;he<K.done.length;he++)K.done[he].ranges||++te;for(var Pe=0;Pe<K.undone.length;Pe++)K.undone[Pe].ranges||++ae;return{undo:te,redo:ae}},clearHistory:function(){var K=this;this.history=new Ja(this.history.maxGeneration),xi(this,function(te){return te.history=K.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(K){return K&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(K){return this.history.generation==(K||this.cleanGeneration)},getHistory:function(){return{done:Ds(this.history.done),undone:Ds(this.history.undone)}},setHistory:function(K){var te=this.history=new Ja(this.history.maxGeneration);te.done=Ds(K.done.slice(0),null,!0),te.undone=Ds(K.undone.slice(0),null,!0)},setGutterMarker:Ko(function(F,K,te){return Io(this,F,"gutter",function(ae){var he=ae.gutterMarkers||(ae.gutterMarkers={});return he[K]=te,!te&&de(he)&&(ae.gutterMarkers=null),!0})}),clearGutter:Ko(function(F){var K=this;this.iter(function(te){te.gutterMarkers&&te.gutterMarkers[F]&&Io(K,te,"gutter",function(){return te.gutterMarkers[F]=null,de(te.gutterMarkers)&&(te.gutterMarkers=null),!0})})}),lineInfo:function(K){var te;if(typeof K=="number"){if(!Pr(this,K))return null;if(te=K,K=Xe(this,K),!K)return null}else if(te=Xt(K),te==null)return null;return{line:te,handle:K,text:K.text,gutterMarkers:K.gutterMarkers,textClass:K.textClass,bgClass:K.bgClass,wrapClass:K.wrapClass,widgets:K.widgets}},addLineClass:Ko(function(F,K,te){return Io(this,F,K=="gutter"?"gutter":"class",function(ae){var he=K=="text"?"textClass":K=="background"?"bgClass":K=="gutter"?"gutterClass":"wrapClass";if(!ae[he])ae[he]=te;else{if(x(te).test(ae[he]))return!1;ae[he]+=" "+te}return!0})}),removeLineClass:Ko(function(F,K,te){return Io(this,F,K=="gutter"?"gutter":"class",function(ae){var he=K=="text"?"textClass":K=="background"?"bgClass":K=="gutter"?"gutterClass":"wrapClass",Pe=ae[he];if(Pe)if(te==null)ae[he]=null;else{var mt=Pe.match(x(te));if(!mt)return!1;var It=mt.index+mt[0].length;ae[he]=Pe.slice(0,mt.index)+(!mt.index||It==Pe.length?"":" ")+Pe.slice(It)||null}else return!1;return!0})}),addLineWidget:Ko(function(F,K,te){return xl(this,F,K,te)}),removeLineWidget:function(K){K.clear()},markText:function(K,te,ae){return _l(this,yt(this,K),yt(this,te),ae,ae&&ae.type||"range")},setBookmark:function(K,te){var ae={replacedWith:te&&(te.nodeType==null?te.widget:te),insertLeft:te&&te.insertLeft,clearWhenEmpty:!1,shared:te&&te.shared,handleMouseEvents:te&&te.handleMouseEvents};return K=yt(this,K),_l(this,K,K,ae,"bookmark")},findMarksAt:function(K){K=yt(this,K);var te=[],ae=Xe(this,K.line).markedSpans;if(ae)for(var he=0;he<ae.length;++he){var Pe=ae[he];(Pe.from==null||Pe.from<=K.ch)&&(Pe.to==null||Pe.to>=K.ch)&&te.push(Pe.marker.parent||Pe.marker)}return te},findMarks:function(K,te,ae){K=yt(this,K),te=yt(this,te);var he=[],Pe=K.line;return this.iter(K.line,te.line+1,function(mt){var It=mt.markedSpans;if(It)for(var Yt=0;Yt<It.length;Yt++){var rr=It[Yt];!(rr.to!=null&&Pe==K.line&&K.ch>=rr.to||rr.from==null&&Pe!=K.line||rr.from!=null&&Pe==te.line&&rr.from>=te.ch)&&(!ae||ae(rr.marker))&&he.push(rr.marker.parent||rr.marker)}++Pe}),he},getAllMarks:function(){var K=[];return this.iter(function(te){var ae=te.markedSpans;if(ae)for(var he=0;he<ae.length;++he)ae[he].from!=null&&K.push(ae[he].marker)}),K},posFromIndex:function(K){var te,ae=this.first,he=this.lineSeparator().length;return this.iter(function(Pe){var mt=Pe.text.length+he;if(mt>K)return te=K,!0;K-=mt,++ae}),yt(this,jt(ae,te))},indexFromPos:function(K){K=yt(this,K);var te=K.ch;if(K.line<this.first||K.ch<0)return 0;var ae=this.lineSeparator().length;return this.iter(this.first,K.line,function(he){te+=he.text.length+ae}),te},copy:function(K){var te=new zs(zt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return te.scrollTop=this.scrollTop,te.scrollLeft=this.scrollLeft,te.sel=this.sel,te.extend=!1,K&&(te.history.undoDepth=this.history.undoDepth,te.setHistory(this.getHistory())),te},linkedDoc:function(K){K||(K={});var te=this.first,ae=this.first+this.size;K.from!=null&&K.from>te&&(te=K.from),K.to!=null&&K.to<ae&&(ae=K.to);var he=new zs(zt(this,te,ae),K.mode||this.modeOption,te,this.lineSep,this.direction);return K.sharedHist&&(he.history=this.history),(this.linked||(this.linked=[])).push({doc:he,sharedHist:K.sharedHist}),he.linked=[{doc:this,isParent:!0,sharedHist:K.sharedHist}],Tc(he,ic(this)),he},unlinkDoc:function(K){if(K instanceof dr&&(K=K.doc),this.linked)for(var te=0;te<this.linked.length;++te){var ae=this.linked[te];if(ae.doc!=K)continue;this.linked.splice(te,1),K.unlinkDoc(this),ac(ic(this));break}if(K.history==this.history){var he=[K.id];xi(K,function(Pe){return he.push(Pe.id)},!0),K.history=new Ja(null),K.history.done=Ds(this.history.done,he),K.history.undone=Ds(this.history.undone,he)}},iterLinkedDocs:function(K){xi(this,K)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(K){return this.lineSep?K.split(this.lineSep):Fr(K)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Ko(function(F){if(F!="rtl"&&(F="ltr"),F==this.direction)return;this.direction=F,this.iter(function(K){return K.order=null}),this.cm&&ya(this.cm)})}),zs.prototype.eachLine=zs.prototype.iter;var tl=0;function ll(F){var K=this;if(sc(K),At(K,F)||Un(K.display,F))return;je(F),m&&(tl=+new Date);var te=Gi(K,F,!0),ae=F.dataTransfer.files;if(!te||K.isReadOnly())return;if(ae&&ae.length&&window.FileReader&&window.File)for(var he=ae.length,Pe=Array(he),mt=0,It=function(){++mt==he&&mo(K,function(){te=yt(K.doc,te);var vi={from:te,to:te,text:K.doc.splitLines(Pe.filter(function(Ki){return Ki!=null}).join(K.doc.lineSeparator())),origin:"paste"};js(K.doc,vi),fs(K.doc,Se(yt(K.doc,te),yt(K.doc,Ue(vi))))})()},Yt=function(vi,Ki){if(K.options.allowDropFileTypes&&W(K.options.allowDropFileTypes,vi.type)==-1){It();return}var Qi=new FileReader;Qi.onerror=function(){return It()},Qi.onload=function(){var Xi=Qi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Xi)){It();return}Pe[Ki]=Xi,It()},Qi.readAsText(vi)},rr=0;rr<ae.length;rr++)Yt(ae[rr],rr);else{if(K.state.draggingText&&K.doc.sel.contains(te)>-1){K.state.draggingText(F),setTimeout(function(){return K.display.input.focus()},20);return}try{var en=F.dataTransfer.getData("Text");if(en){var hn;if(K.state.draggingText&&!K.state.draggingText.copy&&(hn=K.listSelections()),ls(K.doc,Se(te,te)),hn)for(var Dn=0;Dn<hn.length;++Dn)Hs(K.doc,"",hn[Dn].anchor,hn[Dn].head,"drag");K.replaceSelection(en,"around","paste"),K.display.input.focus()}}catch(Bn){}}}function Fl(F,K){if(m&&(!F.state.draggingText||+new Date-tl<100)){st(K);return}if(At(F,K)||Un(F.display,K))return;if(K.dataTransfer.setData("Text",F.getSelection()),K.dataTransfer.effectAllowed="copyMove",K.dataTransfer.setDragImage&&!r){var te=T("img",null,null,"position: fixed; left: 0; top: 0;");te.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",a&&(te.width=te.height=1,F.display.wrapper.appendChild(te),te._top=te.offsetTop),K.dataTransfer.setDragImage(te,0,0),a&&te.parentNode.removeChild(te)}}function oc(F,K){var te=Gi(F,K);if(!te)return;var ae=document.createDocumentFragment();xa(F,te,ae),F.display.dragCursor||(F.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),F.display.lineSpace.insertBefore(F.display.dragCursor,F.display.cursorDiv)),S(F.display.dragCursor,ae)}function sc(F){F.display.dragCursor&&(F.display.lineSpace.removeChild(F.display.dragCursor),F.display.dragCursor=null)}function Ql(F){if(!document.getElementsByClassName)return;for(var K=document.getElementsByClassName("CodeMirror"),te=[],ae=0;ae<K.length;ae++){var he=K[ae].CodeMirror;he&&te.push(he)}te.length&&te[0].operation(function(){for(var Pe=0;Pe<te.length;Pe++)F(te[Pe])})}var Vs=!1;function lc(){if(Vs)return;cc(),Vs=!0}function cc(){var F;Oe(window,"resize",function(){F==null&&(F=setTimeout(function(){F=null,Ql(Cc)},100))}),Oe(window,"blur",function(){return Ql(Qa)})}function Cc(F){var K=F.display;K.cachedCharWidth=K.cachedTextHeight=K.cachedPaddingH=null,K.scrollbarsClipped=!1,F.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"},Ll=0;Ll<10;Ll++)Al[Ll+48]=Al[Ll+96]=String(Ll);for(var Kl=65;Kl<=90;Kl++)Al[Kl]=String.fromCharCode(Kl);for(var Jl=1;Jl<=12;Jl++)Al[Jl+111]=Al[Jl+63235]="F"+Jl;var El={};El.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"},El.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"},El.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"},El.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"]},El.default=d?El.macDefault:El.pcDefault;function jc(F){var K=F.split(/-(?!$)/);F=K[K.length-1];for(var te,ae,he,Pe,mt=0;mt<K.length-1;mt++){var It=K[mt];if(/^(cmd|meta|m)$/i.test(It))Pe=!0;else if(/^a(lt)?$/i.test(It))te=!0;else if(/^(c|ctrl|control)$/i.test(It))ae=!0;else if(/^s(hift)?$/i.test(It))he=!0;else throw new Error("Unrecognized modifier name: "+It)}return te&&(F="Alt-"+F),ae&&(F="Ctrl-"+F),Pe&&(F="Cmd-"+F),he&&(F="Shift-"+F),F}function Hc(F){var K={};for(var te in F)if(F.hasOwnProperty(te)){var ae=F[te];if(/^(name|fallthrough|(de|at)tach)$/.test(te))continue;if(ae=="..."){delete F[te];continue}for(var he=Ie(te.split(" "),jc),Pe=0;Pe<he.length;Pe++){var mt=void 0,It=void 0;Pe==he.length-1?(It=he.join(" "),mt=ae):(It=he.slice(0,Pe+1).join(" "),mt="...");var Yt=K[It];if(!Yt)K[It]=mt;else if(Yt!=mt)throw new Error("Inconsistent bindings for "+It)}delete F[te]}for(var rr in K)F[rr]=K[rr];return F}function yl(F,K,te,ae){K=Ss(K);var he=K.call?K.call(F,ae):K[F];if(he===!1)return"nothing";if(he==="...")return"multi";if(he!=null&&te(he))return"handled";if(K.fallthrough){if(Object.prototype.toString.call(K.fallthrough)!="[object Array]")return yl(F,K.fallthrough,te,ae);for(var Pe=0;Pe<K.fallthrough.length;Pe++){var mt=yl(F,K.fallthrough[Pe],te,ae);if(mt)return mt}}}function Zl(F){var K=typeof F=="string"?F:Al[F.keyCode];return K=="Ctrl"||K=="Alt"||K=="Shift"||K=="Mod"}function uc(F,K,te){var ae=F;return K.altKey&&ae!="Alt"&&(F="Alt-"+F),(v?K.metaKey:K.ctrlKey)&&ae!="Ctrl"&&(F="Ctrl-"+F),(v?K.ctrlKey:K.metaKey)&&ae!="Mod"&&(F="Cmd-"+F),!te&&K.shiftKey&&ae!="Shift"&&(F="Shift-"+F),F}function $l(F,K){if(a&&F.keyCode==34&&F.char)return!1;var te=Al[F.keyCode];return te==null||F.altGraphKey?!1:(F.keyCode==3&&F.code&&(te=F.code),uc(te,F,K))}function Ss(F){return typeof F=="string"?El[F]:F}function dl(F,K){for(var te=F.doc.sel.ranges,ae=[],he=0;he<te.length;he++){for(var Pe=K(te[he]);ae.length&>(Pe.from,me(ae).to)<=0;){var mt=ae.pop();if(gt(mt.from,Pe.from)<0){Pe.from=mt.from;break}}ae.push(Pe)}Ho(F,function(){for(var It=ae.length-1;It>=0;It--)Hs(F.doc,"",ae[It].from,ae[It].to,"+delete");eo(F)})}function Ul(F,K,te){var ae=De(F.text,K+te,te);return ae<0||ae>F.text.length?null:ae}function Ic(F,K,te){var ae=Ul(F,K.ch,te);return ae==null?null:new jt(K.line,ae,te<0?"after":"before")}function dc(F,K,te,ae,he){if(F){K.doc.direction=="rtl"&&(he=-he);var Pe=Ve(te,K.doc.direction);if(Pe){var mt=he<0?me(Pe):Pe[0],It=he<0==(mt.level==1),Yt=It?"after":"before",rr;if(mt.level>0||K.doc.direction=="rtl"){var en=mi(K,te);rr=he<0?te.text.length-1:0;var hn=Li(K,en,rr).top;rr=Ee(function(Dn){return Li(K,en,Dn).top==hn},he<0==(mt.level==1)?mt.from:mt.to-1,rr),Yt=="before"&&(rr=Ul(te,rr,1))}else rr=he<0?mt.to:mt.from;return new jt(ae,rr,Yt)}}return new jt(ae,he<0?te.text.length:0,he<0?"before":"after")}function Wl(F,K,te,ae){var he=Ve(K,F.doc.direction);if(!he)return Ic(K,te,ae);te.ch>=K.text.length?(te.ch=K.text.length,te.sticky="before"):te.ch<=0&&(te.ch=0,te.sticky="after");var Pe=ee(he,te.ch,te.sticky),mt=he[Pe];if(F.doc.direction=="ltr"&&mt.level%2==0&&(ae>0?mt.to>te.ch:mt.from<te.ch))return Ic(K,te,ae);var It=function(Vi,fa){return Ul(K,Vi instanceof jt?Vi.ch:Vi,fa)},Yt,rr=function(Vi){return F.options.lineWrapping?(Yt=Yt||mi(F,K),ta(F,K,Yt,Vi)):{begin:0,end:K.text.length}},en=rr(te.sticky=="before"?It(te,-1):te.ch);if(F.doc.direction=="rtl"||mt.level==1){var hn=mt.level==1==ae<0,Dn=It(te,hn?1:-1);if(Dn!=null&&(hn?Dn<=mt.to&&Dn<=en.end:Dn>=mt.from&&Dn>=en.begin)){var Bn=hn?"before":"after";return new jt(te.line,Dn,Bn)}}var vi=function(Vi,fa,ba){for(var qa=function($o,Ms){return Ms?new jt(te.line,It($o,1),"before"):new jt(te.line,$o,"after")};Vi>=0&&Vi<he.length;Vi+=fa){var Ba=he[Vi],Eo=fa>0==(Ba.level!=1),Wo=Eo?ba.begin:It(ba.end,-1);if(Ba.from<=Wo&&Wo<Ba.to)return qa(Wo,Eo);if(Wo=Eo?Ba.from:It(Ba.to,-1),ba.begin<=Wo&&Wo<ba.end)return qa(Wo,Eo)}},Ki=vi(Pe+ae,ae,en);if(Ki)return Ki;var Qi=ae>0?en.end:It(en.begin,-1);return Qi!=null&&!(ae>0&&Qi==K.text.length)&&(Ki=vi(ae>0?0:he.length-1,ae,rr(Qi)),Ki)?Ki:null}var zl={selectAll:$s,singleSelection:function(K){return K.setSelection(K.getCursor("anchor"),K.getCursor("head"),Z)},killLine:function(K){return dl(K,function(te){if(te.empty()){var ae=Xe(K.doc,te.head.line).text.length;return te.head.ch==ae&&te.head.line<K.lastLine()?{from:te.head,to:jt(te.head.line+1,0)}:{from:te.head,to:jt(te.head.line,ae)}}else return{from:te.from(),to:te.to()}})},deleteLine:function(K){return dl(K,function(te){return{from:jt(te.from().line,0),to:yt(K.doc,jt(te.to().line+1,0))}})},delLineLeft:function(K){return dl(K,function(te){return{from:jt(te.from().line,0),to:te.from()}})},delWrappedLineLeft:function(K){return dl(K,function(te){var ae=K.charCoords(te.head,"div").top+5,he=K.coordsChar({left:0,top:ae},"div");return{from:he,to:te.from()}})},delWrappedLineRight:function(K){return dl(K,function(te){var ae=K.charCoords(te.head,"div").top+5,he=K.coordsChar({left:K.display.lineDiv.offsetWidth+100,top:ae},"div");return{from:te.from(),to:he}})},undo:function(K){return K.undo()},redo:function(K){return K.redo()},undoSelection:function(K){return K.undoSelection()},redoSelection:function(K){return K.redoSelection()},goDocStart:function(K){return K.extendSelection(jt(K.firstLine(),0))},goDocEnd:function(K){return K.extendSelection(jt(K.lastLine()))},goLineStart:function(K){return K.extendSelectionsBy(function(te){return hc(K,te.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(K){return K.extendSelectionsBy(function(te){return Kc(K,te.head)},{origin:"+move",bias:1})},goLineEnd:function(K){return K.extendSelectionsBy(function(te){return _c(K,te.head.line)},{origin:"+move",bias:-1})},goLineRight:function(K){return K.extendSelectionsBy(function(te){var ae=K.cursorCoords(te.head,"div").top+5;return K.coordsChar({left:K.display.lineDiv.offsetWidth+100,top:ae},"div")},Q)},goLineLeft:function(K){return K.extendSelectionsBy(function(te){var ae=K.cursorCoords(te.head,"div").top+5;return K.coordsChar({left:0,top:ae},"div")},Q)},goLineLeftSmart:function(K){return K.extendSelectionsBy(function(te){var ae=K.cursorCoords(te.head,"div").top+5,he=K.coordsChar({left:0,top:ae},"div");return he.ch<K.getLine(he.line).search(/\S/)?Kc(K,te.head):he},Q)},goLineUp:function(K){return K.moveV(-1,"line")},goLineDown:function(K){return K.moveV(1,"line")},goPageUp:function(K){return K.moveV(-1,"page")},goPageDown:function(K){return K.moveV(1,"page")},goCharLeft:function(K){return K.moveH(-1,"char")},goCharRight:function(K){return K.moveH(1,"char")},goColumnLeft:function(K){return K.moveH(-1,"column")},goColumnRight:function(K){return K.moveH(1,"column")},goWordLeft:function(K){return K.moveH(-1,"word")},goGroupRight:function(K){return K.moveH(1,"group")},goGroupLeft:function(K){return K.moveH(-1,"group")},goWordRight:function(K){return K.moveH(1,"word")},delCharBefore:function(K){return K.deleteH(-1,"codepoint")},delCharAfter:function(K){return K.deleteH(1,"char")},delWordBefore:function(K){return K.deleteH(-1,"word")},delWordAfter:function(K){return K.deleteH(1,"word")},delGroupBefore:function(K){return K.deleteH(-1,"group")},delGroupAfter:function(K){return K.deleteH(1,"group")},indentAuto:function(K){return K.indentSelection("smart")},indentMore:function(K){return K.indentSelection("add")},indentLess:function(K){return K.indentSelection("subtract")},insertTab:function(K){return K.replaceSelection(" ")},insertSoftTab:function(K){for(var te=[],ae=K.listSelections(),he=K.options.tabSize,Pe=0;Pe<ae.length;Pe++){var mt=ae[Pe].from(),It=j(K.getLine(mt.line),mt.ch,he);te.push(Le(he-It%he))}K.replaceSelections(te)},defaultTab:function(K){K.somethingSelected()?K.indentSelection("add"):K.execCommand("insertTab")},transposeChars:function(K){return Ho(K,function(){for(var te=K.listSelections(),ae=[],he=0;he<te.length;he++){if(!te[he].empty())continue;var Pe=te[he].head,mt=Xe(K.doc,Pe.line).text;if(mt){if(Pe.ch==mt.length&&(Pe=new jt(Pe.line,Pe.ch-1)),Pe.ch>0)Pe=new jt(Pe.line,Pe.ch+1),K.replaceRange(mt.charAt(Pe.ch-1)+mt.charAt(Pe.ch-2),jt(Pe.line,Pe.ch-2),Pe,"+transpose");else if(Pe.line>K.doc.first){var It=Xe(K.doc,Pe.line-1).text;It&&(Pe=new jt(Pe.line,1),K.replaceRange(mt.charAt(0)+K.doc.lineSeparator()+It.charAt(It.length-1),jt(Pe.line-1,It.length-1),Pe,"+transpose"))}}ae.push(new se(Pe,Pe))}K.setSelections(ae)})},newlineAndIndent:function(K){return Ho(K,function(){for(var te=K.listSelections(),ae=te.length-1;ae>=0;ae--)K.replaceRange(K.doc.lineSeparator(),te[ae].anchor,te[ae].head,"+input");te=K.listSelections();for(var he=0;he<te.length;he++)K.indentLine(te[he].from().line,null,!0);eo(K)})},openLine:function(K){return K.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(K){return K.toggleOverwrite()}};function hc(F,K){var te=Xe(F.doc,K),ae=gn(te);return ae!=te&&(K=Xt(ae)),dc(!0,F,ae,K,1)}function _c(F,K){var te=Xe(F.doc,K),ae=Vr(te);return ae!=te&&(K=Xt(ae)),dc(!0,F,te,K,-1)}function Kc(F,K){var te=hc(F,K.line),ae=Xe(F.doc,te.line),he=Ve(ae,F.doc.direction);if(!he||he[0].level==0){var Pe=Math.max(te.ch,ae.text.search(/\S/)),mt=K.line==te.line&&K.ch<=Pe&&K.ch;return jt(te.line,mt?0:Pe,te.sticky)}return te}function hl(F,K,te){if(typeof K=="string"&&(K=zl[K],!K))return!1;F.display.input.ensurePolled();var ae=F.display.shift,he=!1;try{F.isReadOnly()&&(F.state.suppressEdits=!0),te&&(F.display.shift=!1),he=K(F)!=V}finally{F.display.shift=ae,F.state.suppressEdits=!1}return he}function fl(F,K,te){for(var ae=0;ae<F.state.keyMaps.length;ae++){var he=yl(K,F.state.keyMaps[ae],te,F);if(he)return he}return F.options.extraKeys&&yl(K,F.options.extraKeys,te,F)||yl(K,F.options.keyMap,te,F)}var Tl=new H;function ql(F,K,te,ae){var he=F.state.keySeq;if(he){if(Zl(K))return"handled";if(/\'$/.test(K)?F.state.keySeq=null:Tl.set(50,function(){F.state.keySeq==he&&(F.state.keySeq=null,F.display.input.reset())}),ec(F,he+" "+K,te,ae))return!0}return ec(F,K,te,ae)}function ec(F,K,te,ae){var he=fl(F,K,ae);return he=="multi"&&(F.state.keySeq=K),he=="handled"&&Vt(F,"keyHandled",F,K,te),(he=="handled"||he=="multi")&&(je(te),ia(F)),!!he}function bl(F,K){var te=$l(K,!0);return te?K.shiftKey&&!F.state.keySeq?ql(F,"Shift-"+te,K,function(ae){return hl(F,ae,!0)})||ql(F,te,K,function(ae){if(typeof ae=="string"?/^go[A-Z]/.test(ae):ae.motion)return hl(F,ae)}):ql(F,te,K,function(ae){return hl(F,ae)}):!1}function cl(F,K,te){return ql(F,"'"+te+"'",K,function(ae){return hl(F,ae,!0)})}var fc=null;function pc(F){var K=this;if(F.target&&F.target!=K.display.input.getField())return;if(K.curOp.focus=M(),At(K,F))return;m&&f<11&&F.keyCode==27&&(F.returnValue=!1);var te=F.keyCode;K.display.shift=te==16||F.shiftKey;var ae=bl(K,F);a&&(fc=ae?te:null,!ae&&te==88&&!nr&&(d?F.metaKey:F.ctrlKey)&&K.replaceSelection("",null,"cut")),L&&!d&&!ae&&te==46&&F.shiftKey&&!F.ctrlKey&&document.execCommand&&document.execCommand("cut"),te==18&&!/\bCodeMirror-crosshair\b/.test(K.display.lineDiv.className)&&Wc(K)}function Wc(F){var K=F.display.lineDiv;k(K,"CodeMirror-crosshair");function te(ae){(ae.keyCode==18||!ae.altKey)&&(b(K,"CodeMirror-crosshair"),Fe(document,"keyup",te),Fe(document,"mouseover",te))}Oe(document,"keyup",te),Oe(document,"mouseover",te)}function Oc(F){F.keyCode==16&&(this.doc.sel.shift=!1),At(this,F)}function Lc(F){var K=this;if(F.target&&F.target!=K.display.input.getField())return;if(Un(K.display,F)||At(K,F)||F.ctrlKey&&!F.altKey||d&&F.metaKey)return;var te=F.keyCode,ae=F.charCode;if(a&&te==fc){fc=null,je(F);return}if(a&&(!F.which||F.which<10)&&bl(K,F))return;var he=String.fromCharCode(ae==null?te:ae);if(he=="\b")return;if(cl(K,F,he))return;K.display.input.onKeyPress(F)}var zc=400,Vl=function(K,te,ae){this.time=K,this.pos=te,this.button=ae};Vl.prototype.compare=function(F,K,te){return this.time+zc>F&>(K,this.pos)==0&&te==this.button};var pl,Nl;function Gl(F,K){var te=+new Date;return Nl&&Nl.compare(te,F,K)?(pl=Nl=null,"triple"):pl&&pl.compare(te,F,K)?(Nl=new Vl(te,F,K),pl=null,"double"):(pl=new Vl(te,F,K),Nl=null,"single")}function jl(F){var K=this,te=K.display;if(At(K,F)||te.activeTouch&&te.input.supportsTouch())return;if(te.input.ensurePolled(),te.shift=F.shiftKey,Un(te,F)){s||(te.scroller.draggable=!1,setTimeout(function(){return te.scroller.draggable=!0},100));return}if(Rc(K,F))return;var ae=Gi(K,F),he=ve(F),Pe=ae?Gl(ae,he):"single";if(window.focus(),he==1&&K.state.selectingText&&K.state.selectingText(F),ae&&mc(K,he,ae,Pe,F))return;he==1?ae?Nc(K,ae,Pe,F):Qe(F)==te.scroller&&je(F):he==2?(ae&&as(K.doc,ae),setTimeout(function(){return te.input.focus()},20)):he==3&&(A?K.display.input.onContextMenu(F):Xa(K))}function mc(F,K,te,ae,he){var Pe="Click";return ae=="double"?Pe="Double"+Pe:ae=="triple"&&(Pe="Triple"+Pe),Pe=(K==1?"Left":K==2?"Middle":"Right")+Pe,ql(F,uc(Pe,he),he,function(mt){if(typeof mt=="string"&&(mt=zl[mt]),!mt)return!1;var It=!1;try{F.isReadOnly()&&(F.state.suppressEdits=!0),It=mt(F,te)!=V}finally{F.state.suppressEdits=!1}return It})}function Vc(F,K,te){var ae=F.getOption("configureMouse"),he=ae?ae(F,K,te):{};if(he.unit==null){var Pe=h?te.shiftKey&&te.metaKey:te.altKey;he.unit=Pe?"rectangle":K=="single"?"char":K=="double"?"word":"line"}return(he.extend==null||F.doc.extend)&&(he.extend=F.doc.extend||te.shiftKey),he.addNew==null&&(he.addNew=d?te.metaKey:te.ctrlKey),he.moveOnDrag==null&&(he.moveOnDrag=!(d?te.altKey:te.ctrlKey)),he}function Nc(F,K,te,ae){m?setTimeout(P(lo,F),0):F.curOp.focus=M();var he=Vc(F,te,ae),Pe=F.doc.sel,mt;F.options.dragDrop&&Bt&&!F.isReadOnly()&&te=="single"&&(mt=Pe.contains(K))>-1&&(gt((mt=Pe.ranges[mt]).from(),K)<0||K.xRel>0)&&(gt(mt.to(),K)>0||K.xRel<0)?eu(F,ae,K,he):Gc(F,ae,K,he)}function eu(F,K,te,ae){var he=F.display,Pe=!1,mt=mo(F,function(rr){s&&(he.scroller.draggable=!1),F.state.draggingText=!1,Fe(he.wrapper.ownerDocument,"mouseup",mt),Fe(he.wrapper.ownerDocument,"mousemove",It),Fe(he.scroller,"dragstart",Yt),Fe(he.scroller,"drop",mt),Pe||(je(rr),ae.addNew||as(F.doc,te,null,null,ae.extend),s&&!r||m&&f==9?setTimeout(function(){he.wrapper.ownerDocument.body.focus({preventScroll:!0}),he.input.focus()},20):he.input.focus())}),It=function(en){Pe=Pe||Math.abs(K.clientX-en.clientX)+Math.abs(K.clientY-en.clientY)>=10},Yt=function(){return Pe=!0};s&&(he.scroller.draggable=!0),F.state.draggingText=mt,mt.copy=!ae.moveOnDrag,he.scroller.dragDrop&&he.scroller.dragDrop(),Oe(he.wrapper.ownerDocument,"mouseup",mt),Oe(he.wrapper.ownerDocument,"mousemove",It),Oe(he.scroller,"dragstart",Yt),Oe(he.scroller,"drop",mt),Xa(F),setTimeout(function(){return he.input.focus()},20)}function Dc(F,K,te){if(te=="char")return new se(K,K);if(te=="word")return F.findWordAt(K);if(te=="line")return new se(jt(K.line,0),yt(F.doc,jt(K.line+1,0)));var ae=te(F,K);return new se(ae.from,ae.to)}function Gc(F,K,te,ae){var he=F.display,Pe=F.doc;je(K);var mt,It,Yt=Pe.sel,rr=Yt.ranges;if(ae.addNew&&!ae.extend?(It=Pe.sel.contains(te),It>-1?mt=rr[It]:mt=new se(te,te)):(mt=Pe.sel.primary(),It=Pe.sel.primIndex),ae.unit=="rectangle")ae.addNew||(mt=new se(te,te)),te=Gi(F,K,!0,!0),It=-1;else{var en=Dc(F,te,ae.unit);ae.extend?mt=Es(mt,en.anchor,en.head,ae.extend):mt=en}ae.addNew?It==-1?(It=rr.length,Lo(Pe,ye(F,rr.concat([mt]),It),{scroll:!1,origin:"*mouse"})):rr.length>1&&rr[It].empty()&&ae.unit=="char"&&!ae.extend?(Lo(Pe,ye(F,rr.slice(0,It).concat(rr.slice(It+1)),0),{scroll:!1,origin:"*mouse"}),Yt=Pe.sel):hs(Pe,It,mt,Y):(It=0,Lo(Pe,new vt([mt],0),Y),Yt=Pe.sel);var hn=te;function Dn(fa){if(gt(hn,fa)==0)return;if(hn=fa,ae.unit=="rectangle"){for(var ba=[],qa=F.options.tabSize,Ba=j(Xe(Pe,te.line).text,te.ch,qa),Eo=j(Xe(Pe,fa.line).text,fa.ch,qa),Wo=Math.min(Ba,Eo),cs=Math.max(Ba,Eo),$o=Math.min(te.line,fa.line),Ms=Math.min(F.lastLine(),Math.max(te.line,fa.line));$o<=Ms;$o++){var Qs=Xe(Pe,$o).text,Ts=oe(Qs,Wo,qa);Wo==cs?ba.push(new se(jt($o,Ts),jt($o,Ts))):Qs.length>Ts&&ba.push(new se(jt($o,Ts),jt($o,oe(Qs,cs,qa))))}ba.length||ba.push(new se(te,te)),Lo(Pe,ye(F,Yt.ranges.slice(0,It).concat(ba),It),{origin:"*mouse",scroll:!1}),F.scrollIntoView(fa)}else{var Js=mt,ks=Dc(F,fa,ae.unit),aa=Js.anchor,os;gt(ks.anchor,aa)>0?(os=ks.head,aa=xt(Js.from(),ks.anchor)):(os=ks.anchor,aa=Jt(Js.to(),ks.head));var rs=Yt.ranges.slice(0);rs[It]=Xc(F,new se(yt(Pe,aa),os)),Lo(Pe,ye(F,rs,It),Y)}}var Bn=he.wrapper.getBoundingClientRect(),vi=0;function Ki(fa){var ba=++vi,qa=Gi(F,fa,!0,ae.unit=="rectangle");if(!qa)return;if(gt(qa,hn)!=0){F.curOp.focus=M(),Dn(qa);var Ba=yo(he,Pe);(qa.line>=Ba.to||qa.line<Ba.from)&&setTimeout(mo(F,function(){vi==ba&&Ki(fa)}),150)}else{var Eo=fa.clientY<Bn.top?-20:fa.clientY>Bn.bottom?20:0;Eo&&setTimeout(mo(F,function(){if(vi!=ba)return;he.scroller.scrollTop+=Eo,Ki(fa)}),50)}}function Qi(fa){F.state.selectingText=!1,vi=Infinity,fa&&(je(fa),he.input.focus()),Fe(he.wrapper.ownerDocument,"mousemove",Xi),Fe(he.wrapper.ownerDocument,"mouseup",Vi),Pe.history.lastSelOrigin=null}var Xi=mo(F,function(fa){fa.buttons===0||!ve(fa)?Qi(fa):Ki(fa)}),Vi=mo(F,Qi);F.state.selectingText=Vi,Oe(he.wrapper.ownerDocument,"mousemove",Xi),Oe(he.wrapper.ownerDocument,"mouseup",Vi)}function Xc(F,K){var te=K.anchor,ae=K.head,he=Xe(F.doc,te.line);if(gt(te,ae)==0&&te.sticky==ae.sticky)return K;var Pe=Ve(he);if(!Pe)return K;var mt=ee(Pe,te.ch,te.sticky),It=Pe[mt];if(It.from!=te.ch&&It.to!=te.ch)return K;var Yt=mt+(It.from==te.ch==(It.level!=1)?0:1);if(Yt==0||Yt==Pe.length)return K;var rr;if(ae.line!=te.line)rr=(ae.line-te.line)*(F.doc.direction=="ltr"?1:-1)>0;else{var en=ee(Pe,ae.ch,ae.sticky),hn=en-mt||(ae.ch-te.ch)*(It.level==1?-1:1);en==Yt-1||en==Yt?rr=hn<0:rr=hn>0}var Dn=Pe[Yt+(rr?-1:0)],Bn=rr==(Dn.level==1),vi=Bn?Dn.from:Dn.to,Ki=Bn?"after":"before";return te.ch==vi&&te.sticky==Ki?K:new se(new jt(te.line,vi,Ki),ae)}function Yc(F,K,te,ae){var he,Pe;if(K.touches)he=K.touches[0].clientX,Pe=K.touches[0].clientY;else try{he=K.clientX,Pe=K.clientY}catch(Dn){return!1}if(he>=Math.floor(F.display.gutters.getBoundingClientRect().right))return!1;ae&&je(K);var mt=F.display,It=mt.lineDiv.getBoundingClientRect();if(Pe>It.bottom||!St(F,te))return ie(K);Pe-=It.top-mt.viewOffset;for(var Yt=0;Yt<F.display.gutterSpecs.length;++Yt){var rr=mt.gutters.childNodes[Yt];if(rr&&rr.getBoundingClientRect().right>=he){var en=Dr(F.doc,Pe),hn=F.display.gutterSpecs[Yt];return ft(F,te,F,en,hn.className,K),ie(K)}}}function Rc(F,K){return Yc(F,K,"gutterClick",!0)}function gc(F,K){if(Un(F.display,K)||wl(F,K))return;if(At(F,K,"contextmenu"))return;A||F.display.input.onContextMenu(K)}function wl(F,K){return St(F,"gutterContextMenu")?Yc(F,K,"gutterContextMenu",!1):!1}function vc(F){F.display.wrapper.className=F.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+F.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Gt(F)}var Cl={toString:function(){return"CodeMirror.Init"}},tc={},be={};function ze(F){var K=F.optionHandlers;function te(ae,he,Pe,mt){F.defaults[ae]=he,Pe&&(K[ae]=mt?function(It,Yt,rr){rr!=Cl&&Pe(It,Yt,rr)}:Pe)}F.defineOption=te,F.Init=Cl,te("value","",function(ae,he){return ae.setValue(he)},!0),te("mode",null,function(ae,he){ae.doc.modeOption=he,Zr(ae)},!0),te("indentUnit",2,Zr,!0),te("indentWithTabs",!1),te("smartIndent",!0),te("tabSize",4,function(ae){Tn(ae),Gt(ae),va(ae)},!0),te("lineSeparator",null,function(ae,he){if(ae.doc.lineSep=he,!he)return;var Pe=[],mt=ae.doc.first;ae.doc.iter(function(Yt){for(var rr=0;;){var en=Yt.text.indexOf(he,rr);if(en==-1)break;rr=en+he.length,Pe.push(jt(mt,en))}mt++});for(var It=Pe.length-1;It>=0;It--)Hs(ae.doc,he,Pe[It],jt(Pe[It].line,Pe[It].ch+he.length))}),te("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ae,he,Pe){ae.state.specialChars=new RegExp(he.source+(he.test(" ")?"":"| "),"g"),Pe!=Cl&&ae.refresh()}),te("specialCharPlaceholder",hi,function(ae){return ae.refresh()},!0),te("electricChars",!0),te("inputStyle",c?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),te("spellcheck",!1,function(ae,he){return ae.getInputField().spellcheck=he},!0),te("autocorrect",!1,function(ae,he){return ae.getInputField().autocorrect=he},!0),te("autocapitalize",!1,function(ae,he){return ae.getInputField().autocapitalize=he},!0),te("rtlMoveVisually",!p),te("wholeLineUpdateBefore",!0),te("theme","default",function(ae){vc(ae),Bs(ae)},!0),te("keyMap","default",function(ae,he,Pe){var mt=Ss(he),It=Pe!=Cl&&Ss(Pe);It&&It.detach&&It.detach(ae,mt),mt.attach&&mt.attach(ae,It||null)}),te("extraKeys",null),te("configureMouse",null),te("lineWrapping",!1,Ht,!0),te("gutters",[],function(ae,he){ae.display.gutterSpecs=Ls(he,ae.options.lineNumbers),Bs(ae)},!0),te("fixedGutter",!0,function(ae,he){ae.display.gutters.style.left=he?Aa(ae.display)+"px":"0",ae.refresh()},!0),te("coverGutterNextToScrollbar",!1,function(ae){return Ia(ae)},!0),te("scrollbarStyle","native",function(ae){ho(ae),Ia(ae),ae.display.scrollbars.setScrollTop(ae.doc.scrollTop),ae.display.scrollbars.setScrollLeft(ae.doc.scrollLeft)},!0),te("lineNumbers",!1,function(ae,he){ae.display.gutterSpecs=Ls(ae.options.gutters,he),Bs(ae)},!0),te("firstLineNumber",1,Bs,!0),te("lineNumberFormatter",function(ae){return ae},Bs,!0),te("showCursorWhenSelecting",!1,Pa,!0),te("resetSelectionOnContextMenu",!0),te("lineWiseCopyCut",!0),te("pasteLinesPerSelection",!0),te("selectionsMayTouch",!1),te("readOnly",!1,function(ae,he){he=="nocursor"&&(Qa(ae),ae.display.input.blur()),ae.display.input.readOnlyChanged(he)}),te("screenReaderLabel",null,function(ae,he){he=he===""?null:he,ae.display.input.screenReaderLabelChanged(he)}),te("disableInput",!1,function(ae,he){he||ae.display.input.reset()},!0),te("dragDrop",!0,pt),te("allowDropFileTypes",null),te("cursorBlinkRate",530),te("cursorScrollMargin",0),te("cursorHeight",1,Pa,!0),te("singleCursorHeightPerLine",!0,Pa,!0),te("workTime",100),te("workDelay",100),te("flattenSpans",!0,Tn,!0),te("addModeClass",!1,Tn,!0),te("pollInterval",100),te("undoDepth",200,function(ae,he){return ae.doc.history.undoDepth=he}),te("historyEventDelay",1250),te("viewportMargin",10,function(ae){return ae.refresh()},!0),te("maxHighlightLength",1e4,Tn,!0),te("moveInputWithCursor",!0,function(ae,he){he||ae.display.input.resetPosition()}),te("tabindex",null,function(ae,he){return ae.display.input.getField().tabIndex=he||""}),te("autofocus",null),te("direction","ltr",function(ae,he){return ae.doc.setDirection(he)},!0),te("phrases",null)}function pt(F,K,te){var ae=te&&te!=Cl;if(!K!=!ae){var he=F.display.dragFunctions,Pe=K?Oe:Fe;Pe(F.display.scroller,"dragstart",he.start),Pe(F.display.scroller,"dragenter",he.enter),Pe(F.display.scroller,"dragover",he.over),Pe(F.display.scroller,"dragleave",he.leave),Pe(F.display.scroller,"drop",he.drop)}}function Ht(F){F.options.lineWrapping?(k(F.display.wrapper,"CodeMirror-wrap"),F.display.sizer.style.minWidth="",F.display.sizerWidth=null):(b(F.display.wrapper,"CodeMirror-wrap"),ri(F)),Zi(F),va(F),Gt(F),setTimeout(function(){return Ia(F)},100)}function dr(F,K){var te=this;if(!(this instanceof dr))return new dr(F,K);this.options=K=K?U(K):{},U(tc,K,!1);var ae=K.value;typeof ae=="string"?ae=new zs(ae,K.mode,null,K.lineSeparator,K.direction):K.mode&&(ae.modeOption=K.mode),this.doc=ae;var he=new dr.inputStyles[K.inputStyle](this),Pe=this.display=new gs(F,ae,he,K);Pe.wrapper.CodeMirror=this,vc(this),K.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ho(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 H,keySeq:null,specialChars:null},K.autofocus&&!c&&Pe.input.focus(),m&&f<11&&setTimeout(function(){return te.display.input.reset(!0)},20),Cr(this),lc(),Ka(this),this.curOp.forceUpdate=!0,Ri(this,ae),K.autofocus&&!c||this.hasFocus()?setTimeout(function(){te.hasFocus()&&!te.state.focused&&Ta(te)},20):Qa(this);for(var mt in be)be.hasOwnProperty(mt)&&be[mt](this,K[mt],Cl);ol(this),K.finishInit&&K.finishInit(this);for(var It=0;It<Re.length;++It)Re[It](this);Xo(this),s&&K.lineWrapping&&getComputedStyle(Pe.lineDiv).textRendering=="optimizelegibility"&&(Pe.lineDiv.style.textRendering="auto")}dr.defaults=tc,dr.optionHandlers=be;function Cr(F){var K=F.display;Oe(K.scroller,"mousedown",mo(F,jl)),m&&f<11?Oe(K.scroller,"dblclick",mo(F,function(Yt){if(At(F,Yt))return;var rr=Gi(F,Yt);if(!rr||Rc(F,Yt)||Un(F.display,Yt))return;je(Yt);var en=F.findWordAt(rr);as(F.doc,en.anchor,en.head)})):Oe(K.scroller,"dblclick",function(Yt){return At(F,Yt)||je(Yt)}),Oe(K.scroller,"contextmenu",function(Yt){return gc(F,Yt)}),Oe(K.input.getField(),"contextmenu",function(Yt){K.scroller.contains(Yt.target)||gc(F,Yt)});var te,ae={end:0};function he(){K.activeTouch&&(te=setTimeout(function(){return K.activeTouch=null},1e3),ae=K.activeTouch,ae.end=+new Date)}function Pe(Yt){if(Yt.touches.length!=1)return!1;var rr=Yt.touches[0];return rr.radiusX<=1&&rr.radiusY<=1}function mt(Yt,rr){if(rr.left==null)return!0;var en=rr.left-Yt.left,hn=rr.top-Yt.top;return en*en+hn*hn>20*20}Oe(K.scroller,"touchstart",function(Yt){if(!At(F,Yt)&&!Pe(Yt)&&!Rc(F,Yt)){K.input.ensurePolled(),clearTimeout(te);var rr=+new Date;K.activeTouch={start:rr,moved:!1,prev:rr-ae.end<=300?ae:null},Yt.touches.length==1&&(K.activeTouch.left=Yt.touches[0].pageX,K.activeTouch.top=Yt.touches[0].pageY)}}),Oe(K.scroller,"touchmove",function(){K.activeTouch&&(K.activeTouch.moved=!0)}),Oe(K.scroller,"touchend",function(Yt){var rr=K.activeTouch;if(rr&&!Un(K,Yt)&&rr.left!=null&&!rr.moved&&new Date-rr.start<300){var en=F.coordsChar(K.activeTouch,"page"),hn;!rr.prev||mt(rr,rr.prev)?hn=new se(en,en):!rr.prev.prev||mt(rr,rr.prev.prev)?hn=F.findWordAt(en):hn=new se(jt(en.line,0),yt(F.doc,jt(en.line+1,0))),F.setSelection(hn.anchor,hn.head),F.focus(),je(Yt)}he()}),Oe(K.scroller,"touchcancel",he),Oe(K.scroller,"scroll",function(){K.scroller.clientHeight&&(Ma(F,K.scroller.scrollTop),jo(F,K.scroller.scrollLeft,!0),ft(F,"scroll",F))}),Oe(K.scroller,"mousewheel",function(Yt){return On(F,Yt)}),Oe(K.scroller,"DOMMouseScroll",function(Yt){return On(F,Yt)}),Oe(K.wrapper,"scroll",function(){return K.wrapper.scrollTop=K.wrapper.scrollLeft=0}),K.dragFunctions={enter:function(rr){At(F,rr)||st(rr)},over:function(rr){At(F,rr)||(oc(F,rr),st(rr))},start:function(rr){return Fl(F,rr)},drop:mo(F,ll),leave:function(rr){At(F,rr)||sc(F)}};var It=K.input.getField();Oe(It,"keyup",function(Yt){return Oc.call(F,Yt)}),Oe(It,"keydown",mo(F,pc)),Oe(It,"keypress",mo(F,Lc)),Oe(It,"focus",function(Yt){return Ta(F,Yt)}),Oe(It,"blur",function(Yt){return Qa(F,Yt)})}var Re=[];dr.defineInitHook=function(F){return Re.push(F)};function re(F,K,te,ae){var he=F.doc,Pe;te==null&&(te="add"),te=="smart"&&(he.mode.indent?Pe=In(F,K).state:te="prev");var mt=F.options.tabSize,It=Xe(he,K),Yt=j(It.text,null,mt);It.stateAfter&&(It.stateAfter=null);var rr=It.text.match(/^\s*/)[0],en;if(!ae&&!/\S/.test(It.text))en=0,te="not";else if(te=="smart"&&(en=he.mode.indent(Pe,It.text.slice(rr.length),It.text),en==V||en>150)){if(!ae)return;te="prev"}te=="prev"?K>he.first?en=j(Xe(he,K-1).text,null,mt):en=0:te=="add"?en=Yt+F.options.indentUnit:te=="subtract"?en=Yt-F.options.indentUnit:typeof te=="number"&&(en=Yt+te),en=Math.max(0,en);var hn="",Dn=0;if(F.options.indentWithTabs)for(var Bn=Math.floor(en/mt);Bn;--Bn)Dn+=mt,hn+=" ";if(Dn<en&&(hn+=Le(en-Dn)),hn!=rr)return Hs(he,hn,jt(K,0),jt(K,rr.length),"+input"),It.stateAfter=null,!0;for(var vi=0;vi<he.sel.ranges.length;vi++){var Ki=he.sel.ranges[vi];if(Ki.head.line==K&&Ki.head.ch<rr.length){var Qi=jt(K,rr.length);hs(he,vi,new se(Qi,Qi));break}}}var xe=null;function Ge(F){xe=F}function ot(F,K,te,ae,he){var Pe=F.doc;F.display.shift=!1,ae||(ae=Pe.sel);var mt=+new Date-200,It=he=="paste"||F.state.pasteIncoming>mt,Yt=Fr(K),rr=null;if(It&&ae.ranges.length>1)if(xe&&xe.text.join(`
|
|
|
`)==K){if(ae.ranges.length%xe.text.length==0){rr=[];for(var en=0;en<xe.text.length;en++)rr.push(Pe.splitLines(xe.text[en]))}}else Yt.length==ae.ranges.length&&F.options.pasteLinesPerSelection&&(rr=Ie(Yt,function(Xi){return[Xi]}));for(var hn=F.curOp.updateInput,Dn=ae.ranges.length-1;Dn>=0;Dn--){var Bn=ae.ranges[Dn],vi=Bn.from(),Ki=Bn.to();Bn.empty()&&(te&&te>0?vi=jt(vi.line,vi.ch-te):F.state.overwrite&&!It?Ki=jt(Ki.line,Math.min(Xe(Pe,Ki.line).text.length,Ki.ch+me(Yt).length)):It&&xe&&xe.lineWise&&xe.text.join(`
|
|
|
`)==Yt.join(`
|
|
|
`)&&(vi=Ki=jt(vi.line,0)));var Qi={from:vi,to:Ki,text:rr?rr[Dn%rr.length]:Yt,origin:he||(It?"paste":F.state.cutIncoming>mt?"cut":"+input")};js(F.doc,Qi),Vt(F,"inputRead",F,Qi)}K&&!It&&_t(F,K),eo(F),F.curOp.updateInput<2&&(F.curOp.updateInput=hn),F.curOp.typing=!0,F.state.pasteIncoming=F.state.cutIncoming=-1}function Ct(F,K){var te=F.clipboardData&&F.clipboardData.getData("Text");if(te)return F.preventDefault(),!K.isReadOnly()&&!K.options.disableInput&&Ho(K,function(){return ot(K,te,0,null,"paste")}),!0}function _t(F,K){if(!F.options.electricChars||!F.options.smartIndent)return;for(var te=F.doc.sel,ae=te.ranges.length-1;ae>=0;ae--){var he=te.ranges[ae];if(he.head.ch>100||ae&&te.ranges[ae-1].head.line==he.head.line)continue;var Pe=F.getModeAt(he.head),mt=!1;if(Pe.electricChars){for(var It=0;It<Pe.electricChars.length;It++)if(K.indexOf(Pe.electricChars.charAt(It))>-1){mt=re(F,he.head.line,"smart");break}}else Pe.electricInput&&(Pe.electricInput.test(Xe(F.doc,he.head.line).text.slice(0,he.head.ch))&&(mt=re(F,he.head.line,"smart")));mt&&Vt(F,"electricInput",F,he.head.line)}}function Dt(F){for(var K=[],te=[],ae=0;ae<F.doc.sel.ranges.length;ae++){var he=F.doc.sel.ranges[ae].head.line,Pe={anchor:jt(he,0),head:jt(he+1,0)};te.push(Pe),K.push(F.getRange(Pe.anchor,Pe.head))}return{text:K,ranges:te}}function vr(F,K,te,ae){F.setAttribute("autocorrect",te?"":"off"),F.setAttribute("autocapitalize",ae?"":"off"),F.setAttribute("spellcheck",!!K)}function Lr(){var F=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),K=T("div",[F],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return s?F.style.width="1000px":F.setAttribute("wrap","off"),n&&(F.style.border="1px solid black"),vr(F),K}function mr(F){var K=F.optionHandlers,te=F.helpers={};F.prototype={constructor:F,focus:function(){window.focus(),this.display.input.focus()},setOption:function(he,Pe){var mt=this.options,It=mt[he];if(mt[he]==Pe&&he!="mode")return;mt[he]=Pe,K.hasOwnProperty(he)&&mo(this,K[he])(this,Pe,It),ft(this,"optionChange",this,he)},getOption:function(he){return this.options[he]},getDoc:function(){return this.doc},addKeyMap:function(he,Pe){this.state.keyMaps[Pe?"push":"unshift"](Ss(he))},removeKeyMap:function(he){for(var Pe=this.state.keyMaps,mt=0;mt<Pe.length;++mt)if(Pe[mt]==he||Pe[mt].name==he)return Pe.splice(mt,1),!0},addOverlay:es(function(ae,he){var Pe=ae.token?ae:F.getMode(this.options,ae);if(Pe.startState)throw new Error("Overlays may not be stateful.");X(this.state.overlays,{mode:Pe,modeSpec:ae,opaque:he&&he.opaque,priority:he&&he.priority||0},function(mt){return mt.priority}),this.state.modeGen++,va(this)}),removeOverlay:es(function(ae){for(var he=this.state.overlays,Pe=0;Pe<he.length;++Pe){var mt=he[Pe].modeSpec;if(mt==ae||typeof ae=="string"&&mt.name==ae){he.splice(Pe,1),this.state.modeGen++,va(this);return}}}),indentLine:es(function(ae,he,Pe){typeof he!="string"&&typeof he!="number"&&(he==null?he=this.options.smartIndent?"smart":"prev":he=he?"add":"subtract"),Pr(this.doc,ae)&&re(this,ae,he,Pe)}),indentSelection:es(function(ae){for(var he=this.doc.sel.ranges,Pe=-1,mt=0;mt<he.length;mt++){var It=he[mt];if(It.empty())It.head.line>Pe&&(re(this,It.head.line,ae,!0),Pe=It.head.line,mt==this.doc.sel.primIndex&&eo(this));else{var Yt=It.from(),rr=It.to(),en=Math.max(Pe,Yt.line);Pe=Math.min(this.lastLine(),rr.line-(rr.ch?0:1))+1;for(var hn=en;hn<Pe;++hn)re(this,hn,ae);var Dn=this.doc.sel.ranges;Yt.ch==0&&he.length==Dn.length&&Dn[mt].from().ch>0&&hs(this.doc,mt,new se(Yt,Dn[mt].to()),Z)}}}),getTokenAt:function(he,Pe){return Pi(this,he,Pe)},getLineTokens:function(he,Pe){return Pi(this,jt(he),Pe,!0)},getTokenTypeAt:function(he){he=yt(this.doc,he);var Pe=Jr(this,Xe(this.doc,he.line)),mt=0,It=(Pe.length-1)/2,Yt=he.ch,rr;if(Yt==0)rr=Pe[2];else for(;;){var en=mt+It>>1;if((en?Pe[en*2-1]:0)>=Yt)It=en;else if(Pe[en*2+1]<Yt)mt=en+1;else{rr=Pe[en*2+2];break}}var hn=rr?rr.indexOf("overlay "):-1;return hn<0?rr:hn==0?null:rr.slice(0,hn-1)},getModeAt:function(he){var Pe=this.doc.mode;return Pe.innerMode?F.innerMode(Pe,this.getTokenAt(he).state).mode:Pe},getHelper:function(he,Pe){return this.getHelpers(he,Pe)[0]},getHelpers:function(he,Pe){var mt=[];if(!te.hasOwnProperty(Pe))return mt;var It=te[Pe],Yt=this.getModeAt(he);if(typeof Yt[Pe]=="string")It[Yt[Pe]]&&mt.push(It[Yt[Pe]]);else if(Yt[Pe])for(var rr=0;rr<Yt[Pe].length;rr++){var en=It[Yt[Pe][rr]];en&&mt.push(en)}else Yt.helperType&&It[Yt.helperType]?mt.push(It[Yt.helperType]):It[Yt.name]&&mt.push(It[Yt.name]);for(var hn=0;hn<It._global.length;hn++){var Dn=It._global[hn];Dn.pred(Yt,this)&&W(mt,Dn.val)==-1&&mt.push(Dn.val)}return mt},getStateAfter:function(he,Pe){var mt=this.doc;return he=Pt(mt,he==null?mt.first+mt.size-1:he),In(this,he+1,Pe).state},cursorCoords:function(he,Pe){var mt,It=this.doc.sel.primary();return he==null?mt=It.head:typeof he=="object"?mt=yt(this.doc,he):mt=he?It.from():It.to(),yn(this,mt,Pe||"page")},charCoords:function(he,Pe){return sn(this,yt(this.doc,he),Pe||"page")},coordsChar:function(he,Pe){return he=pn(this,he,Pe||"page"),Jn(this,he.left,he.top)},lineAtHeight:function(he,Pe){return he=pn(this,{top:he,left:0},Pe||"page").top,Dr(this.doc,he+this.display.viewOffset)},heightAtLine:function(he,Pe,mt){var It=!1,Yt;if(typeof he=="number"){var rr=this.doc.first+this.doc.size-1;he<this.doc.first?he=this.doc.first:he>rr&&(he=rr,It=!0),Yt=Xe(this.doc,he)}else Yt=he;return Kr(this,Yt,{top:0,left:0},Pe||"page",mt||It).top+(It?this.doc.height-Qn(Yt):0)},defaultTextHeight:function(){return Ni(this.display)},defaultCharWidth:function(){return ra(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(he,Pe,mt,It,Yt){var rr=this.display;he=yn(this,yt(this.doc,he));var en=he.bottom,hn=he.left;if(Pe.style.position="absolute",Pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Pe),rr.sizer.appendChild(Pe),It=="over")en=he.top;else if(It=="above"||It=="near"){var Dn=Math.max(rr.wrapper.clientHeight,this.doc.height),Bn=Math.max(rr.sizer.clientWidth,rr.lineSpace.clientWidth);(It=="above"||he.bottom+Pe.offsetHeight>Dn)&&he.top>Pe.offsetHeight?en=he.top-Pe.offsetHeight:he.bottom+Pe.offsetHeight<=Dn&&(en=he.bottom),hn+Pe.offsetWidth>Bn&&(hn=Bn-Pe.offsetWidth)}Pe.style.top=en+"px",Pe.style.left=Pe.style.right="",Yt=="right"?(hn=rr.sizer.clientWidth-Pe.offsetWidth,Pe.style.right="0px"):(Yt=="left"?hn=0:Yt=="middle"&&(hn=(rr.sizer.clientWidth-Pe.offsetWidth)/2),Pe.style.left=hn+"px"),mt&&co(this,{left:hn,top:en,right:hn+Pe.offsetWidth,bottom:en+Pe.offsetHeight})},triggerOnKeyDown:es(pc),triggerOnKeyPress:es(Lc),triggerOnKeyUp:Oc,triggerOnMouseDown:es(jl),execCommand:function(he){if(zl.hasOwnProperty(he))return zl[he].call(null,this)},triggerElectric:es(function(ae){_t(this,ae)}),findPosH:function(he,Pe,mt,It){var Yt=1;Pe<0&&(Yt=-1,Pe=-Pe);for(var rr=yt(this.doc,he),en=0;en<Pe&&!(rr=ur(this.doc,rr,Yt,mt,It),rr.hitSide);++en);return rr},moveH:es(function(ae,he){var Pe=this;this.extendSelectionsBy(function(mt){return Pe.display.shift||Pe.doc.extend||mt.empty()?ur(Pe.doc,mt.head,ae,he,Pe.options.rtlMoveVisually):ae<0?mt.from():mt.to()},Q)}),deleteH:es(function(ae,he){var Pe=this.doc.sel,mt=this.doc;Pe.somethingSelected()?mt.replaceSelection("",null,"+delete"):dl(this,function(It){var Yt=ur(mt,It.head,ae,he,!1);return ae<0?{from:Yt,to:It.head}:{from:It.head,to:Yt}})}),findPosV:function(he,Pe,mt,It){var Yt=1,rr=It;Pe<0&&(Yt=-1,Pe=-Pe);for(var en=yt(this.doc,he),hn=0;hn<Pe;++hn){var Dn=yn(this,en,"div");if(rr==null?rr=Dn.left:Dn.left=rr,en=Tr(this,Dn,Yt,mt),en.hitSide)break}return en},moveV:es(function(ae,he){var Pe=this,mt=this.doc,It=[],Yt=!this.display.shift&&!mt.extend&&mt.sel.somethingSelected();if(mt.extendSelectionsBy(function(en){if(Yt)return ae<0?en.from():en.to();var hn=yn(Pe,en.head,"div");en.goalColumn!=null&&(hn.left=en.goalColumn),It.push(hn.left);var Dn=Tr(Pe,hn,ae,he);return he=="page"&&en==mt.sel.primary()&&Ya(Pe,sn(Pe,Dn,"div").top-hn.top),Dn},Q),It.length)for(var rr=0;rr<mt.sel.ranges.length;rr++)mt.sel.ranges[rr].goalColumn=It[rr]}),findWordAt:function(he){var Pe=this.doc,mt=Xe(Pe,he.line).text,It=he.ch,Yt=he.ch;if(mt){var rr=this.getHelper(he,"wordChars");(he.sticky=="before"||Yt==mt.length)&&It?--It:++Yt;for(var en=mt.charAt(It),hn=le(en,rr)?function(Dn){return le(Dn,rr)}:/\s/.test(en)?function(Dn){return/\s/.test(Dn)}:function(Dn){return!/\s/.test(Dn)&&!le(Dn)};It>0&&hn(mt.charAt(It-1));)--It;for(;Yt<mt.length&&hn(mt.charAt(Yt));)++Yt}return new se(jt(he.line,It),jt(he.line,Yt))},toggleOverwrite:function(he){if(he!=null&&he==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?k(this.display.cursorDiv,"CodeMirror-overwrite"):b(this.display.cursorDiv,"CodeMirror-overwrite"),ft(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==M()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:es(function(ae,he){wa(this,ae,he)}),getScrollInfo:function(){var he=this.display.scroller;return{left:he.scrollLeft,top:he.scrollTop,height:he.scrollHeight-Kn(this)-this.display.barHeight,width:he.scrollWidth-Kn(this)-this.display.barWidth,clientHeight:ni(this),clientWidth:Yn(this)}},scrollIntoView:es(function(ae,he){ae==null?(ae={from:this.doc.sel.primary().head,to:null},he==null&&(he=this.options.cursorScrollMargin)):typeof ae=="number"?ae={from:jt(ae,0),to:null}:ae.from==null&&(ae={from:ae,to:null}),ae.to||(ae.to=ae.from),ae.margin=he||0,ae.from.line!=null?ro(this,ae):Bi(this,ae.from,ae.to,ae.margin)}),setSize:es(function(ae,he){var Pe=this,mt=function(rr){return typeof rr=="number"||/^\d+$/.test(String(rr))?rr+"px":rr};ae!=null&&(this.display.wrapper.style.width=mt(ae)),he!=null&&(this.display.wrapper.style.height=mt(he)),this.options.lineWrapping&&Ir(this);var It=this.display.viewFrom;this.doc.iter(It,this.display.viewTo,function(Yt){if(Yt.widgets){for(var rr=0;rr<Yt.widgets.length;rr++)if(Yt.widgets[rr].noHScroll){Ci(Pe,It,"widget");break}}++It}),this.curOp.forceUpdate=!0,ft(this,"refresh",this)}),operation:function(he){return Ho(this,he)},startOperation:function(){return Ka(this)},endOperation:function(){return Xo(this)},refresh:es(function(){var ae=this.display.cachedTextHeight;va(this),this.curOp.forceUpdate=!0,Gt(this),wa(this,this.doc.scrollLeft,this.doc.scrollTop),ys(this.display),(ae==null||Math.abs(ae-Ni(this.display))>.5||this.options.lineWrapping)&&Zi(this),ft(this,"refresh",this)}),swapDoc:es(function(ae){var he=this.doc;return he.cm=null,this.state.selectingText&&this.state.selectingText(),Ri(this,ae),Gt(this),this.display.input.reset(),wa(this,ae.scrollLeft,ae.scrollTop),this.curOp.forceScroll=!0,Vt(this,"swapDoc",this,he),he}),phrase:function(he){var Pe=this.options.phrases;return Pe&&Object.prototype.hasOwnProperty.call(Pe,he)?Pe[he]:he},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}},Et(F),F.registerHelper=function(ae,he,Pe){te.hasOwnProperty(ae)||(te[ae]=F[ae]={_global:[]}),te[ae][he]=Pe},F.registerGlobalHelper=function(ae,he,Pe,mt){F.registerHelper(ae,he,mt),te[ae]._global.push({pred:Pe,val:mt})}}function ur(F,K,te,ae,he){var Pe=K,mt=te,It=Xe(F,K.line),Yt=he&&F.direction=="rtl"?-te:te;function rr(){var Vi=K.line+Yt;return Vi<F.first||Vi>=F.first+F.size?!1:(K=new jt(Vi,K.ch,K.sticky),It=Xe(F,Vi))}function en(Vi){var fa;if(ae=="codepoint"){var ba=It.text.charCodeAt(K.ch+(ae>0?0:-1));isNaN(ba)?fa=null:fa=new jt(K.line,Math.max(0,Math.min(It.text.length,K.ch+te*(ba>=55296&&ba<56320?2:1))),-te)}else he?fa=Wl(F.cm,It,K,te):fa=Ic(It,K,te);if(fa==null)if(!Vi&&rr())K=dc(he,F.cm,It,K.line,Yt);else return!1;else K=fa;return!0}if(ae=="char"||ae=="codepoint")en();else if(ae=="column")en(!0);else if(ae=="word"||ae=="group")for(var hn=null,Dn=ae=="group",Bn=F.cm&&F.cm.getHelper(K,"wordChars"),vi=!0;!(te<0&&!en(!vi));vi=!1){var Ki=It.text.charAt(K.ch)||`
|
|
|
`,Qi=le(Ki,Bn)?"w":Dn&&Ki==`
|
|
|
`?"n":!Dn||/\s/.test(Ki)?null:"p";if(Dn&&!vi&&!Qi&&(Qi="s"),hn&&hn!=Qi){te<0&&(te=1,en(),K.sticky="after");break}if(Qi&&(hn=Qi),te>0&&!en(!vi))break}var Xi=Rs(F,K,Pe,mt,!0);return dt(Pe,Xi)&&(Xi.hitSide=!0),Xi}function Tr(F,K,te,ae){var he=F.doc,Pe=K.left,mt;if(ae=="page"){var It=Math.min(F.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Yt=Math.max(It-.5*Ni(F.display),3);mt=(te>0?K.bottom:K.top)+te*Yt}else ae=="line"&&(mt=te>0?K.bottom+3:K.top-3);for(var rr;!(rr=Jn(F,Pe,mt),!rr.outside);){if(te<0?mt<=0:mt>=he.height){rr.hitSide=!0;break}mt+=te*5}return rr}var kr=function(K){this.cm=K,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};kr.prototype.init=function(F){var K=this,te=this,ae=te.cm,he=te.div=F.lineDiv;vr(he,ae.options.spellcheck,ae.options.autocorrect,ae.options.autocapitalize);function Pe(It){for(var Yt=It.target;Yt;Yt=Yt.parentNode){if(Yt==he)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Yt.className))break}return!1}Oe(he,"paste",function(It){if(!Pe(It)||At(ae,It)||Ct(It,ae))return;f<=11&&setTimeout(mo(ae,function(){return K.updateFromDOM()}),20)}),Oe(he,"compositionstart",function(It){K.composing={data:It.data,done:!1}}),Oe(he,"compositionupdate",function(It){K.composing||(K.composing={data:It.data,done:!1})}),Oe(he,"compositionend",function(It){K.composing&&(It.data!=K.composing.data&&K.readFromDOMSoon(),K.composing.done=!0)}),Oe(he,"touchstart",function(){return te.forceCompositionEnd()}),Oe(he,"input",function(){K.composing||K.readFromDOMSoon()});function mt(It){if(!Pe(It)||At(ae,It))return;if(ae.somethingSelected())Ge({lineWise:!1,text:ae.getSelections()}),It.type=="cut"&&ae.replaceSelection("",null,"cut");else if(ae.options.lineWiseCopyCut){var Yt=Dt(ae);Ge({lineWise:!0,text:Yt.text}),It.type=="cut"&&ae.operation(function(){ae.setSelections(Yt.ranges,0,Z),ae.replaceSelection("",null,"cut")})}else return;if(It.clipboardData){It.clipboardData.clearData();var rr=xe.text.join(`
|
|
|
`);if(It.clipboardData.setData("Text",rr),It.clipboardData.getData("Text")==rr){It.preventDefault();return}}var en=Lr(),hn=en.firstChild;ae.display.lineSpace.insertBefore(en,ae.display.lineSpace.firstChild),hn.value=xe.text.join(`
|
|
|
`);var Dn=document.activeElement;B(hn),setTimeout(function(){ae.display.lineSpace.removeChild(en),Dn.focus(),Dn==he&&te.showPrimarySelection()},50)}Oe(he,"copy",mt),Oe(he,"cut",mt)},kr.prototype.screenReaderLabelChanged=function(F){F?this.div.setAttribute("aria-label",F):this.div.removeAttribute("aria-label")},kr.prototype.prepareSelection=function(){var F=za(this.cm,!1);return F.focus=document.activeElement==this.div,F},kr.prototype.showSelection=function(F,K){if(!F||!this.cm.display.view.length)return;(F.focus||K)&&this.showPrimarySelection(),this.showMultipleSelections(F)},kr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},kr.prototype.showPrimarySelection=function(){var F=this.getSelection(),K=this.cm,te=K.doc.sel.primary(),ae=te.from(),he=te.to();if(K.display.viewTo==K.display.viewFrom||ae.line>=K.display.viewTo||he.line<K.display.viewFrom){F.removeAllRanges();return}var Pe=di(K,F.anchorNode,F.anchorOffset),mt=di(K,F.focusNode,F.focusOffset);if(Pe&&!Pe.bad&&mt&&!mt.bad&>(xt(Pe,mt),ae)==0&>(Jt(Pe,mt),he)==0)return;var It=K.display.view,Yt=ae.line>=K.display.viewFrom&&an(K,ae)||{node:It[0].measure.map[2],offset:0},rr=he.line<K.display.viewTo&&an(K,he);if(!rr){var en=It[It.length-1].measure,hn=en.maps?en.maps[en.maps.length-1]:en.map;rr={node:hn[hn.length-1],offset:hn[hn.length-2]-hn[hn.length-3]}}if(!Yt||!rr){F.removeAllRanges();return}var Dn=F.rangeCount&&F.getRangeAt(0),Bn;try{Bn=O(Yt.node,Yt.offset,rr.offset,rr.node)}catch(vi){}Bn&&(!L&&K.state.focused?(F.collapse(Yt.node,Yt.offset),Bn.collapsed||(F.removeAllRanges(),F.addRange(Bn))):(F.removeAllRanges(),F.addRange(Bn)),Dn&&F.anchorNode==null?F.addRange(Dn):L&&this.startGracePeriod()),this.rememberSelection()},kr.prototype.startGracePeriod=function(){var F=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){F.gracePeriod=!1,F.selectionChanged()&&F.cm.operation(function(){return F.cm.curOp.selectionChanged=!0})},20)},kr.prototype.showMultipleSelections=function(F){S(this.cm.display.cursorDiv,F.cursors),S(this.cm.display.selectionDiv,F.selection)},kr.prototype.rememberSelection=function(){var F=this.getSelection();this.lastAnchorNode=F.anchorNode,this.lastAnchorOffset=F.anchorOffset,this.lastFocusNode=F.focusNode,this.lastFocusOffset=F.focusOffset},kr.prototype.selectionInEditor=function(){var F=this.getSelection();if(!F.rangeCount)return!1;var K=F.getRangeAt(0).commonAncestorContainer;return _(this.div,K)},kr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},kr.prototype.blur=function(){this.div.blur()},kr.prototype.getField=function(){return this.div},kr.prototype.supportsTouch=function(){return!0},kr.prototype.receivedFocus=function(){var F=this;this.selectionInEditor()?this.pollSelection():Ho(this.cm,function(){return F.cm.curOp.selectionChanged=!0});function K(){F.cm.state.focused&&(F.pollSelection(),F.polling.set(F.cm.options.pollInterval,K))}this.polling.set(this.cm.options.pollInterval,K)},kr.prototype.selectionChanged=function(){var F=this.getSelection();return F.anchorNode!=this.lastAnchorNode||F.anchorOffset!=this.lastAnchorOffset||F.focusNode!=this.lastFocusNode||F.focusOffset!=this.lastFocusOffset},kr.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var F=this.getSelection(),K=this.cm;if(i&&l&&this.cm.display.gutterSpecs.length&&jn(F.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var te=di(K,F.anchorNode,F.anchorOffset),ae=di(K,F.focusNode,F.focusOffset);te&&ae&&Ho(K,function(){Lo(K.doc,Se(te,ae),Z),(te.bad||ae.bad)&&(K.curOp.selectionChanged=!0)})},kr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var F=this.cm,K=F.display,te=F.doc.sel.primary(),ae=te.from(),he=te.to();if(ae.ch==0&&ae.line>F.firstLine()&&(ae=jt(ae.line-1,Xe(F.doc,ae.line-1).length)),he.ch==Xe(F.doc,he.line).text.length&&he.line<F.lastLine()&&(he=jt(he.line+1,0)),ae.line<K.viewFrom||he.line>K.viewTo-1)return!1;var Pe,mt,It;ae.line==K.viewFrom||(Pe=La(F,ae.line))==0?(mt=Xt(K.view[0].line),It=K.view[0].node):(mt=Xt(K.view[Pe].line),It=K.view[Pe-1].node.nextSibling);var Yt=La(F,he.line),rr,en;if(Yt==K.view.length-1?(rr=K.viewTo-1,en=K.lineDiv.lastChild):(rr=Xt(K.view[Yt+1].line)-1,en=K.view[Yt+1].node.previousSibling),!It)return!1;for(var hn=F.doc.splitLines(Ei(F,It,en,mt,rr)),Dn=at(F.doc,jt(mt,0),jt(rr,Xe(F.doc,rr).text.length));hn.length>1&&Dn.length>1;)if(me(hn)==me(Dn))hn.pop(),Dn.pop(),rr--;else if(hn[0]==Dn[0])hn.shift(),Dn.shift(),mt++;else break;for(var Bn=0,vi=0,Ki=hn[0],Qi=Dn[0],Xi=Math.min(Ki.length,Qi.length);Bn<Xi&&Ki.charCodeAt(Bn)==Qi.charCodeAt(Bn);)++Bn;for(var Vi=me(hn),fa=me(Dn),ba=Math.min(Vi.length-(hn.length==1?Bn:0),fa.length-(Dn.length==1?Bn:0));vi<ba&&Vi.charCodeAt(Vi.length-vi-1)==fa.charCodeAt(fa.length-vi-1);)++vi;if(hn.length==1&&Dn.length==1&&mt==ae.line)for(;Bn&&Bn>ae.ch&&Vi.charCodeAt(Vi.length-vi-1)==fa.charCodeAt(fa.length-vi-1);)Bn--,vi++;hn[hn.length-1]=Vi.slice(0,Vi.length-vi).replace(/^\u200b+/,""),hn[0]=hn[0].slice(Bn).replace(/\u200b+$/,"");var qa=jt(mt,Bn),Ba=jt(rr,Dn.length?me(Dn).length-vi:0);if(hn.length>1||hn[0]||gt(qa,Ba))return Hs(F.doc,hn,qa,Ba,"+input"),!0},kr.prototype.ensurePolled=function(){this.forceCompositionEnd()},kr.prototype.reset=function(){this.forceCompositionEnd()},kr.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},kr.prototype.readFromDOMSoon=function(){var F=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(F.readDOMTimeout=null,F.composing)if(F.composing.done)F.composing=null;else return;F.updateFromDOM()},80)},kr.prototype.updateFromDOM=function(){var F=this;(this.cm.isReadOnly()||!this.pollContent())&&Ho(this.cm,function(){return va(F.cm)})},kr.prototype.setUneditable=function(F){F.contentEditable="false"},kr.prototype.onKeyPress=function(F){if(F.charCode==0||this.composing)return;F.preventDefault(),this.cm.isReadOnly()||mo(this.cm,ot)(this.cm,String.fromCharCode(F.charCode==null?F.keyCode:F.charCode),0)},kr.prototype.readOnlyChanged=function(F){this.div.contentEditable=String(F!="nocursor")},kr.prototype.onContextMenu=function(){},kr.prototype.resetPosition=function(){},kr.prototype.needsContentAttribute=!0;function an(F,K){var te=Si(F,K.line);if(!te||te.hidden)return null;var ae=Xe(F.doc,K.line),he=li(te,ae,K.line),Pe=Ve(ae,F.doc.direction),mt="left";if(Pe){var It=ee(Pe,K.ch);mt=It%2?"right":"left"}var Yt=Di(he.map,K.ch,mt);return Yt.offset=Yt.collapse=="right"?Yt.end:Yt.start,Yt}function jn(F){for(var K=F;K;K=K.parentNode)if(/CodeMirror-gutter-wrapper/.test(K.className))return!0;return!1}function Vn(F,K){return K&&(F.bad=!0),F}function Ei(F,K,te,ae,he){var Pe="",mt=!1,It=F.doc.lineSeparator(),Yt=!1;function rr(Bn){return function(vi){return vi.id==Bn}}function en(){mt&&(Pe+=It,Yt&&(Pe+=It),mt=Yt=!1)}function hn(Bn){Bn&&(en(),Pe+=Bn)}function Dn(Bn){if(Bn.nodeType==1){var vi=Bn.getAttribute("cm-text");if(vi){hn(vi);return}var Ki=Bn.getAttribute("cm-marker"),Qi;if(Ki){var Xi=F.findMarks(jt(ae,0),jt(he+1,0),rr(+Ki));Xi.length&&(Qi=Xi[0].find(0))&&hn(at(F.doc,Qi.from,Qi.to).join(It));return}if(Bn.getAttribute("contenteditable")=="false")return;var Vi=/^(pre|div|p|li|table|br)$/i.test(Bn.nodeName);if(!/^br$/i.test(Bn.nodeName)&&Bn.textContent.length==0)return;Vi&&en();for(var fa=0;fa<Bn.childNodes.length;fa++)Dn(Bn.childNodes[fa]);/^(pre|p)$/i.test(Bn.nodeName)&&(Yt=!0),Vi&&(mt=!0)}else Bn.nodeType==3&&hn(Bn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Dn(K),K==te);)K=K.nextSibling,Yt=!1;return Pe}function di(F,K,te){var ae;if(K==F.display.lineDiv){if(ae=F.display.lineDiv.childNodes[te],!ae)return Vn(F.clipPos(jt(F.display.viewTo-1)),!0);K=null,te=0}else for(ae=K;;ae=ae.parentNode){if(!ae||ae==F.display.lineDiv)return null;if(ae.parentNode&&ae.parentNode==F.display.lineDiv)break}for(var he=0;he<F.display.view.length;he++){var Pe=F.display.view[he];if(Pe.node==ae)return ua(Pe,K,te)}}function ua(F,K,te){var ae=F.text.firstChild,he=!1;if(!K||!_(ae,K))return Vn(jt(Xt(F.line),0),!0);if(K==ae&&(he=!0,K=ae.childNodes[te],te=0,!K)){var Pe=F.rest?me(F.rest):F.line;return Vn(jt(Xt(Pe),Pe.text.length),he)}var mt=K.nodeType==3?K:null,It=K;for(!mt&&K.childNodes.length==1&&K.firstChild.nodeType==3&&(mt=K.firstChild,te&&(te=mt.nodeValue.length));It.parentNode!=ae;)It=It.parentNode;var Yt=F.measure,rr=Yt.maps;function en(Qi,Xi,Vi){for(var fa=-1;fa<(rr?rr.length:0);fa++)for(var ba=fa<0?Yt.map:rr[fa],qa=0;qa<ba.length;qa+=3){var Ba=ba[qa+2];if(Ba==Qi||Ba==Xi){var Eo=Xt(fa<0?F.line:F.rest[fa]),Wo=ba[qa]+Vi;return(Vi<0||Ba!=Qi)&&(Wo=ba[qa+(Vi?1:0)]),jt(Eo,Wo)}}}var hn=en(mt,It,te);if(hn)return Vn(hn,he);for(var Dn=It.nextSibling,Bn=mt?mt.nodeValue.length-te:0;Dn;Dn=Dn.nextSibling){if(hn=en(Dn,Dn.firstChild,0),hn)return Vn(jt(hn.line,hn.ch-Bn),he);Bn+=Dn.textContent.length}for(var vi=It.previousSibling,Ki=te;vi;vi=vi.previousSibling){if(hn=en(vi,vi.firstChild,-1),hn)return Vn(jt(hn.line,hn.ch+Ki),he);Ki+=vi.textContent.length}}var ji=function(K){this.cm=K,this.prevInput="",this.pollingFast=!1,this.polling=new H,this.hasSelection=!1,this.composing=null};ji.prototype.init=function(F){var K=this,te=this,ae=this.cm;this.createField(F);var he=this.textarea;F.wrapper.insertBefore(this.wrapper,F.wrapper.firstChild),n&&(he.style.width="0px"),Oe(he,"input",function(){m&&f>=9&&K.hasSelection&&(K.hasSelection=null),te.poll()}),Oe(he,"paste",function(mt){if(At(ae,mt)||Ct(mt,ae))return;ae.state.pasteIncoming=+new Date,te.fastPoll()});function Pe(mt){if(At(ae,mt))return;if(ae.somethingSelected())Ge({lineWise:!1,text:ae.getSelections()});else if(ae.options.lineWiseCopyCut){var It=Dt(ae);Ge({lineWise:!0,text:It.text}),mt.type=="cut"?ae.setSelections(It.ranges,null,Z):(te.prevInput="",he.value=It.text.join(`
|
|
|
`),B(he))}else return;mt.type=="cut"&&(ae.state.cutIncoming=+new Date)}Oe(he,"cut",Pe),Oe(he,"copy",Pe),Oe(F.scroller,"paste",function(mt){if(Un(F,mt)||At(ae,mt))return;if(!he.dispatchEvent){ae.state.pasteIncoming=+new Date,te.focus();return}var It=new Event("paste");It.clipboardData=mt.clipboardData,he.dispatchEvent(It)}),Oe(F.lineSpace,"selectstart",function(mt){Un(F,mt)||je(mt)}),Oe(he,"compositionstart",function(){var mt=ae.getCursor("from");te.composing&&te.composing.range.clear(),te.composing={start:mt,range:ae.markText(mt,ae.getCursor("to"),{className:"CodeMirror-composing"})}}),Oe(he,"compositionend",function(){te.composing&&(te.poll(),te.composing.range.clear(),te.composing=null)})},ji.prototype.createField=function(F){this.wrapper=Lr(),this.textarea=this.wrapper.firstChild},ji.prototype.screenReaderLabelChanged=function(F){F?this.textarea.setAttribute("aria-label",F):this.textarea.removeAttribute("aria-label")},ji.prototype.prepareSelection=function(){var F=this.cm,K=F.display,te=F.doc,ae=za(F);if(F.options.moveInputWithCursor){var he=yn(F,te.sel.primary().head,"div"),Pe=K.wrapper.getBoundingClientRect(),mt=K.lineDiv.getBoundingClientRect();ae.teTop=Math.max(0,Math.min(K.wrapper.clientHeight-10,he.top+mt.top-Pe.top)),ae.teLeft=Math.max(0,Math.min(K.wrapper.clientWidth-10,he.left+mt.left-Pe.left))}return ae},ji.prototype.showSelection=function(F){var K=this.cm,te=K.display;S(te.cursorDiv,F.cursors),S(te.selectionDiv,F.selection),F.teTop!=null&&(this.wrapper.style.top=F.teTop+"px",this.wrapper.style.left=F.teLeft+"px")},ji.prototype.reset=function(F){if(this.contextMenuPending||this.composing)return;var K=this.cm;if(K.somethingSelected()){this.prevInput="";var te=K.getSelection();this.textarea.value=te,K.state.focused&&B(this.textarea),m&&f>=9&&(this.hasSelection=te)}else F||(this.prevInput=this.textarea.value="",m&&f>=9&&(this.hasSelection=null))},ji.prototype.getField=function(){return this.textarea},ji.prototype.supportsTouch=function(){return!1},ji.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!c||M()!=this.textarea))try{this.textarea.focus()}catch(F){}},ji.prototype.blur=function(){this.textarea.blur()},ji.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ji.prototype.receivedFocus=function(){this.slowPoll()},ji.prototype.slowPoll=function(){var F=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){F.poll(),F.cm.state.focused&&F.slowPoll()})},ji.prototype.fastPoll=function(){var F=!1,K=this;K.pollingFast=!0;function te(){var ae=K.poll();!ae&&!F?(F=!0,K.polling.set(60,te)):(K.pollingFast=!1,K.slowPoll())}K.polling.set(20,te)},ji.prototype.poll=function(){var F=this,K=this.cm,te=this.textarea,ae=this.prevInput;if(this.contextMenuPending||!K.state.focused||er(te)&&!ae&&!this.composing||K.isReadOnly()||K.options.disableInput||K.state.keySeq)return!1;var he=te.value;if(he==ae&&!K.somethingSelected())return!1;if(m&&f>=9&&this.hasSelection===he||d&&/[\uf700-\uf7ff]/.test(he))return K.display.input.reset(),!1;if(K.doc.sel==K.display.selForContextMenu){var Pe=he.charCodeAt(0);if(Pe==8203&&!ae&&(ae="\u200B"),Pe==8666)return this.reset(),this.cm.execCommand("undo")}for(var mt=0,It=Math.min(ae.length,he.length);mt<It&&ae.charCodeAt(mt)==he.charCodeAt(mt);)++mt;return Ho(K,function(){ot(K,he.slice(mt),ae.length-mt,null,F.composing?"*compose":null),he.length>1e3||he.indexOf(`
|
|
|
`)>-1?te.value=F.prevInput="":F.prevInput=he,F.composing&&(F.composing.range.clear(),F.composing.range=K.markText(F.composing.start,K.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ji.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ji.prototype.onKeyPress=function(){m&&f>=9&&(this.hasSelection=null),this.fastPoll()},ji.prototype.onContextMenu=function(F){var K=this,te=K.cm,ae=te.display,he=K.textarea;K.contextMenuPending&&K.contextMenuPending();var Pe=Gi(te,F),mt=ae.scroller.scrollTop;if(!Pe||a)return;var It=te.options.resetSelectionOnContextMenu;It&&te.doc.sel.contains(Pe)==-1&&mo(te,Lo)(te.doc,Se(Pe),Z);var Yt=he.style.cssText,rr=K.wrapper.style.cssText,en=K.wrapper.offsetParent.getBoundingClientRect();K.wrapper.style.cssText="position: static",he.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(F.clientY-en.top-5)+"px; left: "+(F.clientX-en.left-5)+`px;
|
|
|
z-index: 1000; background: `+(m?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var hn;s&&(hn=window.scrollY),ae.input.focus(),s&&window.scrollTo(null,hn),ae.input.reset(),te.somethingSelected()||(he.value=K.prevInput=" "),K.contextMenuPending=Bn,ae.selForContextMenu=te.doc.sel,clearTimeout(ae.detectingSelectAll);function Dn(){if(he.selectionStart!=null){var Ki=te.somethingSelected(),Qi="\u200B"+(Ki?he.value:"");he.value="\u21DA",he.value=Qi,K.prevInput=Ki?"":"\u200B",he.selectionStart=1,he.selectionEnd=Qi.length,ae.selForContextMenu=te.doc.sel}}function Bn(){if(K.contextMenuPending!=Bn)return;if(K.contextMenuPending=!1,K.wrapper.style.cssText=rr,he.style.cssText=Yt,m&&f<9&&ae.scrollbars.setScrollTop(ae.scroller.scrollTop=mt),he.selectionStart!=null){(!m||m&&f<9)&&Dn();var Ki=0,Qi=function Xi(){ae.selForContextMenu==te.doc.sel&&he.selectionStart==0&&he.selectionEnd>0&&K.prevInput=="\u200B"?mo(te,$s)(te):Ki++<10?ae.detectingSelectAll=setTimeout(Xi,500):(ae.selForContextMenu=null,ae.input.reset())};ae.detectingSelectAll=setTimeout(Qi,200)}}if(m&&f>=9&&Dn(),A){st(F);var vi=function Ki(){Fe(window,"mouseup",Ki),setTimeout(Bn,20)};Oe(window,"mouseup",vi)}else setTimeout(Bn,50)},ji.prototype.readOnlyChanged=function(F){F||this.reset(),this.textarea.disabled=F=="nocursor",this.textarea.readOnly=!!F},ji.prototype.setUneditable=function(){},ji.prototype.needsContentAttribute=!1;function Ca(F,K){if(K=K?U(K):{},K.value=F.value,!K.tabindex&&F.tabIndex&&(K.tabindex=F.tabIndex),!K.placeholder&&F.placeholder&&(K.placeholder=F.placeholder),K.autofocus==null){var te=M();K.autofocus=te==F||F.getAttribute("autofocus")!=null&&te==document.body}function ae(){F.value=It.getValue()}var he;if(F.form&&(Oe(F.form,"submit",ae),!K.leaveSubmitMethodAlone)){var Pe=F.form;he=Pe.submit;try{var mt=Pe.submit=function(){ae(),Pe.submit=he,Pe.submit(),Pe.submit=mt}}catch(Yt){}}K.finishInit=function(Yt){Yt.save=ae,Yt.getTextArea=function(){return F},Yt.toTextArea=function(){Yt.toTextArea=isNaN,ae(),F.parentNode.removeChild(Yt.getWrapperElement()),F.style.display="",F.form&&(Fe(F.form,"submit",ae),!K.leaveSubmitMethodAlone&&typeof F.form.submit=="function"&&(F.form.submit=he))}},F.style.display="none";var It=dr(function(Yt){return F.parentNode.insertBefore(Yt,F.nextSibling)},K);return It}function ha(F){F.off=Fe,F.on=Oe,F.wheelEventPixels=rn,F.Doc=zs,F.splitLines=Fr,F.countColumn=j,F.findColumn=oe,F.isWordChar=J,F.Pass=V,F.signal=ft,F.Line=Mi,F.changeEnd=Ue,F.scrollbarModel=ds,F.Pos=jt,F.cmpPos=gt,F.modes=qe,F.mimeModes=tr,F.resolveMode=fr,F.getMode=vn,F.modeExtensions=$r,F.extendMode=Ln,F.copyState=tt,F.startState=Te,F.innerMode=nt,F.commands=zl,F.keyMap=El,F.keyName=$l,F.isModifierKey=Zl,F.lookupKey=yl,F.normalizeKeyMap=Hc,F.StringStream=Me,F.SharedTextMarker=Ol,F.TextMarker=el,F.LineWidget=Ws,F.e_preventDefault=je,F.e_stopPropagation=pe,F.e_stop=st,F.addClass=k,F.contains=_,F.rmClass=b,F.keyNames=Al}ze(dr),mr(dr);var Za="iter insert remove copy getEditor constructor".split(" ");for(var po in zs.prototype)zs.prototype.hasOwnProperty(po)&&W(Za,po)<0&&(dr.prototype[po]=function(F){return function(){return F.apply(this.doc,arguments)}}(zs.prototype[po]));return Et(zs),dr.inputStyles={textarea:ji,contenteditable:kr},dr.defineMode=function(F){!dr.defaults.mode&&F!="null"&&(dr.defaults.mode=F),xr.apply(this,arguments)},dr.defineMIME=Ar,dr.defineMode("null",function(){return{token:function(K){return K.skipToEnd()}}}),dr.defineMIME("text/plain","null"),dr.defineExtension=function(F,K){dr.prototype[F]=K},dr.defineDocExtension=function(F,K){zs.prototype[F]=K},dr.fromTextArea=Ca,ha(dr),dr.version="5.58.2",dr})},Vy0f:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("iYpf"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},W2nI:function(fe,z,y){var D=y("IwbS"),N=y("ProS"),L=y("bYtY"),E=["itemStyle","opacity"],I=["emphasis","itemStyle","opacity"],o=["lineStyle","opacity"],m=["emphasis","lineStyle","opacity"];function f(u,e){return u.getVisual("opacity")||u.getModel().get(e)}function s(u,e,n){var i=u.getGraphicEl(),c=f(u,e);n!=null&&(c==null&&(c=1),c*=n),i.downplay&&i.downplay(),i.traverse(function(d){d.type!=="group"&&d.setStyle("opacity",c)})}function t(u,e){var n=f(u,e),i=u.getGraphicEl();i.traverse(function(c){c.type!=="group"&&c.setStyle("opacity",n)}),i.highlight&&i.highlight()}var l=D.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(u,e){var n=e.extent;u.moveTo(e.x1,e.y1),u.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),e.orient==="vertical"?(u.lineTo(e.x2+n,e.y2),u.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(u.lineTo(e.x2,e.y2+n),u.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),u.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),a=N.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(u,e,n){var i=this,c=u.getGraph(),d=this.group,h=u.layoutInfo,p=h.width,g=h.height,v=u.getData(),A=u.getData("edge"),x=u.get("orient");this._model=u,d.removeAll(),d.attr("position",[h.x,h.y]),c.eachEdge(function(b){var w=new l;w.dataIndex=b.dataIndex,w.seriesIndex=u.seriesIndex,w.dataType="edge";var S=b.getModel("lineStyle"),T=S.get("curveness"),C=b.node1.getLayout(),O=b.node1.getModel(),_=O.get("localX"),M=O.get("localY"),k=b.node2.getLayout(),R=b.node2.getModel(),B=R.get("localX"),P=R.get("localY"),U=b.getLayout(),j,H,W,G,V,Z,Y,Q;w.shape.extent=Math.max(1,U.dy),w.shape.orient=x,x==="vertical"?(j=(_!=null?_*p:C.x)+U.sy,H=(M!=null?M*g:C.y)+C.dy,W=(B!=null?B*p:k.x)+U.ty,G=P!=null?P*g:k.y,V=j,Z=H*(1-T)+G*T,Y=W,Q=H*T+G*(1-T)):(j=(_!=null?_*p:C.x)+C.dx,H=(M!=null?M*g:C.y)+U.sy,W=B!=null?B*p:k.x,G=(P!=null?P*g:k.y)+U.ty,V=j*(1-T)+W*T,Z=H,Y=j*T+W*(1-T),Q=G),w.setShape({x1:j,y1:H,x2:W,y2:G,cpx1:V,cpy1:Z,cpx2:Y,cpy2:Q}),w.setStyle(S.getItemStyle());switch(w.style.fill){case"source":w.style.fill=b.node1.getVisual("color");break;case"target":w.style.fill=b.node2.getVisual("color");break}D.setHoverStyle(w,b.getModel("emphasis.lineStyle").getItemStyle()),d.add(w),A.setItemGraphicEl(b.dataIndex,w)}),c.eachNode(function(b){var w=b.getLayout(),S=b.getModel(),T=S.get("localX"),C=S.get("localY"),O=S.getModel("label"),_=S.getModel("emphasis.label"),M=new D.Rect({shape:{x:T!=null?T*p:w.x,y:C!=null?C*g:w.y,width:w.dx,height:w.dy},style:S.getModel("itemStyle").getItemStyle()}),k=b.getModel("emphasis.itemStyle").getItemStyle();D.setLabelStyle(M.style,k,O,_,{labelFetcher:u,labelDataIndex:b.dataIndex,defaultText:b.id,isRectText:!0}),M.setStyle("fill",b.getVisual("color")),D.setHoverStyle(M,k),d.add(M),v.setItemGraphicEl(b.dataIndex,M),M.dataType="node"}),v.eachItemGraphicEl(function(b,w){var S=v.getItemModel(w);S.get("draggable")&&(b.drift=function(T,C){i._focusAdjacencyDisabled=!0,this.shape.x+=T,this.shape.y+=C,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:u.id,dataIndex:v.getRawIndex(w),localX:this.shape.x/p,localY:this.shape.y/g})},b.ondragend=function(){i._focusAdjacencyDisabled=!1},b.draggable=!0,b.cursor="move"),b.highlight=function(){this.trigger("emphasis")},b.downplay=function(){this.trigger("normal")},b.focusNodeAdjHandler&&b.off("mouseover",b.focusNodeAdjHandler),b.unfocusNodeAdjHandler&&b.off("mouseout",b.unfocusNodeAdjHandler),S.get("focusNodeAdjacency")&&(b.on("mouseover",b.focusNodeAdjHandler=function(){i._focusAdjacencyDisabled||(i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,dataIndex:b.dataIndex}))}),b.on("mouseout",b.unfocusNodeAdjHandler=function(){i._focusAdjacencyDisabled||i._dispatchUnfocus(n)}))}),A.eachItemGraphicEl(function(b,w){var S=A.getItemModel(w);b.focusNodeAdjHandler&&b.off("mouseover",b.focusNodeAdjHandler),b.unfocusNodeAdjHandler&&b.off("mouseout",b.unfocusNodeAdjHandler),S.get("focusNodeAdjacency")&&(b.on("mouseover",b.focusNodeAdjHandler=function(){i._focusAdjacencyDisabled||(i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,edgeDataIndex:b.dataIndex}))}),b.on("mouseout",b.unfocusNodeAdjHandler=function(){i._focusAdjacencyDisabled||i._dispatchUnfocus(n)}))}),!this._data&&u.get("animation")&&d.setClipPath(r(d.getBoundingRect(),u,function(){d.removeClipPath()})),this._data=u.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(u){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){e._unfocusDelayTimer=null,u.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(u,e,n,i){var c=u.getData(),d=c.graph,h=i.dataIndex,p=c.getItemModel(h),g=i.edgeDataIndex;if(h==null&&g==null)return;var v=d.getNodeByIndex(h),A=d.getEdgeByIndex(g);if(d.eachNode(function(b){s(b,E,.1)}),d.eachEdge(function(b){s(b,o,.1)}),v){t(v,I);var x=p.get("focusNodeAdjacency");x==="outEdges"?L.each(v.outEdges,function(b){if(b.dataIndex<0)return;t(b,m),t(b.node2,I)}):x==="inEdges"?L.each(v.inEdges,function(b){if(b.dataIndex<0)return;t(b,m),t(b.node1,I)}):x==="allEdges"&&L.each(v.edges,function(b){if(b.dataIndex<0)return;t(b,m),b.node1!==v&&t(b.node1,I),b.node2!==v&&t(b.node2,I)})}A&&(t(A,m),t(A.node1,I),t(A.node2,I))},unfocusNodeAdjacency:function(u,e,n,i){var c=u.getGraph();c.eachNode(function(d){s(d,E)}),c.eachEdge(function(d){s(d,o)})}});function r(u,e,n){var i=new D.Rect({shape:{x:u.x-10,y:u.y-10,width:0,height:u.height+20}});return D.initProps(i,{shape:{width:u.width+20}},e,n),i}fe.exports=a},W4dC:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=L.each,I=L.createHashMap,o=y("7DRL"),m=y("TIY9"),f=y("yS9w"),s=y("mFDi"),t={geoJSON:m,svg:f},l={load:function(e,n,i){var c=[],d=I(),h=I(),p,g=u(e);return E(g,function(v){var A=t[v.type].load(e,v,i);E(A.regions,function(b){var w=b.name;n&&n.hasOwnProperty(w)&&(b=b.cloneShallow(w=n[w])),c.push(b),d.set(w,b),h.set(w,b.center)});var x=A.boundingRect;x&&(p?p.union(x):p=x.clone())}),{regions:c,regionsMap:d,nameCoordMap:h,boundingRect:p||new s(0,0,0,0)}},makeGraphic:a("makeGraphic"),removeGraphic:a("removeGraphic")};function a(e){return function(n,i){var c=u(n),d=[];return E(c,function(h){var p=t[h.type][e];p&&d.push(p(n,h,i))}),d}}function r(e){}function u(e){var n=o.retrieveMap(e)||[];return n}fe.exports=l},WGYa:function(fe,z,y){var D=y("7yuC"),N=D.forceLayout,L=y("HF/U"),E=L.simpleLayout,I=y("lOQZ"),o=I.circularLayout,m=y("OELB"),f=m.linearMap,s=y("QBsz"),t=y("bYtY");function l(a){a.eachSeriesByType("graph",function(r){var u=r.coordinateSystem;if(u&&u.type!=="view")return;if(r.get("layout")==="force"){var e=r.preservedPoints||{},n=r.getGraph(),i=n.data,c=n.edgeData,d=r.getModel("force"),h=d.get("initLayout");r.preservedPoints?i.each(function(O){var _=i.getId(O);i.setItemLayout(O,e[_]||[NaN,NaN])}):!h||h==="none"?E(r):h==="circular"&&o(r,"value");var p=i.getDataExtent("value"),g=c.getDataExtent("value"),v=d.get("repulsion"),A=d.get("edgeLength");t.isArray(v)||(v=[v,v]),t.isArray(A)||(A=[A,A]),A=[A[1],A[0]];var x=i.mapArray("value",function(O,_){var M=i.getItemLayout(_),k=f(O,p,v);return isNaN(k)&&(k=(v[0]+v[1])/2),{w:k,rep:k,fixed:i.getItemModel(_).get("fixed"),p:!M||isNaN(M[0])||isNaN(M[1])?null:M}}),b=c.mapArray("value",function(O,_){var M=n.getEdgeByIndex(_),k=f(O,g,A);isNaN(k)&&(k=(A[0]+A[1])/2);var R=M.getModel();return{n1:x[M.node1.dataIndex],n2:x[M.node2.dataIndex],d:k,curveness:R.get("lineStyle.curveness")||0,ignoreForceLayout:R.get("ignoreForceLayout")}}),u=r.coordinateSystem,w=u.getBoundingRect(),S=N(x,b,{rect:w,gravity:d.get("gravity"),friction:d.get("friction")}),T=S.step;S.step=function(O){for(var _=0,M=x.length;_<M;_++)x[_].fixed&&s.copy(x[_].p,n.getNodeByIndex(_).getLayout());T(function(k,R,B){for(var P=0,U=k.length;P<U;P++)k[P].fixed||n.getNodeByIndex(P).setLayout(k[P].p),e[i.getId(P)]=k[P].p;for(var P=0,U=R.length;P<U;P++){var j=R[P],H=n.getEdgeByIndex(P),W=j.n1.p,G=j.n2.p,V=H.getLayout();V=V?V.slice():[],V[0]=V[0]||[],V[1]=V[1]||[],s.copy(V[0],W),s.copy(V[1],G),+j.curveness&&(V[2]=[(W[0]+G[0])/2-(W[1]-G[1])*j.curveness,(W[1]+G[1])/2-(G[0]-W[0])*j.curveness]),H.setLayout(V)}O&&O(B)})},r.forceLayout=S,r.preservedPoints=e,S.step()}else r.forceLayout=null})}fe.exports=l},WKfj:function(fe,z,y){"use strict";y.d(z,"d",function(){return N}),y.d(z,"e",function(){return L}),y.d(z,"f",function(){return E}),y.d(z,"c",function(){return I}),y.d(z,"b",function(){return m}),y.d(z,"a",function(){return s});var D=y("KQm4");function N(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}function L(t,l){var a=l.labelInValue,r=l.combobox;if(t===void 0||t===""&&r)return[];var u=Array.isArray(t)?t:[t];return a?u.map(function(e){var n=e.key,i=e.value;return i!==void 0?i:n}):u}function E(t,l){var a=l.optionLabelProp,r=l.labelInValue,u=l.prevValue,e=l.options,n=l.getLabeledValue,i=t;return r&&(i=i.map(function(c){return n(c,{options:e,prevValue:u,labelInValue:r,optionLabelProp:a})})),i}function I(t,l){var a=Object(D.a)(l),r;for(r=t.length-1;r>=0&&t[r].disabled;r-=1);var u=null;return r!==-1&&(u=a[r],a.splice(r,1)),{values:a,removedValue:u}}var o=typeof window!="undefined"&&window.document&&window.document.documentElement,m=o,f=0;function s(){var t;return m?(t=f,f+=1):t="TEST_OR_SSR",t}},"WN+l":function(fe,z,y){var D=y("bYtY"),N=y("IwbS");function L(I,o,m,f){var s=m.axis;if(s.scale.isBlank())return;var t=m.getModel("splitArea"),l=t.getModel("areaStyle"),a=l.get("color"),r=f.coordinateSystem.getRect(),u=s.getTicksCoords({tickModel:t,clamp:!0});if(!u.length)return;var e=a.length,n=I.__splitAreaColors,i=D.createHashMap(),c=0;if(n)for(var d=0;d<u.length;d++){var h=n.get(u[d].tickValue);if(h!=null){c=(h+(e-1)*d)%e;break}}var p=s.toGlobalCoord(u[0].coord),g=l.getAreaStyle();a=D.isArray(a)?a:[a];for(var d=1;d<u.length;d++){var v=s.toGlobalCoord(u[d].coord),A,x,b,w;s.isHorizontal()?(A=p,x=r.y,b=v-A,w=r.height,p=A+b):(A=r.x,x=p,b=r.width,w=v-x,p=x+w);var S=u[d-1].tickValue;S!=null&&i.set(S,c),o.add(new N.Rect({anid:S!=null?"area_"+S:null,shape:{x:A,y:x,width:b,height:w},style:D.defaults({fill:a[c]},g),silent:!0})),c=(c+1)%e}I.__splitAreaColors=i}function E(I){I.__splitAreaColors=null}z.rectCoordAxisBuildSplitArea=L,z.rectCoordAxisHandleRemove=E},WXVj:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("Bqw1")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="MinusSquareOutlined";var f=E.forwardRef(m);z.default=f},WYAk:function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){(function(){var N=D,L=N.lib,E=L.Base,I=N.enc,o=I.Utf8,m=N.algo,f=m.HMAC=E.extend({init:function(t,l){t=this._hasher=new t.init,typeof l=="string"&&(l=o.parse(l));var a=t.blockSize,r=a*4;l.sigBytes>r&&(l=t.finalize(l)),l.clamp();for(var u=this._oKey=l.clone(),e=this._iKey=l.clone(),n=u.words,i=e.words,c=0;c<a;c++)n[c]^=1549556828,i[c]^=909522486;u.sigBytes=e.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var l=this._hasher,a=l.finalize(t);l.reset();var r=l.finalize(this._oKey.clone().concat(a));return r}})})()})},WaYH:function(fe,z,y){"use strict";var D=y("rePB"),N=y("Ff2n"),L=y("VTBJ"),E=y("1OyB"),I=y("vuIU"),o=y("JX7q"),m=y("Ji7U"),f=y("LK+K"),s=y("q1tI"),t=y("TSYQ"),l=y.n(t),a=y("sboe"),r=y("OZM5"),u=function(A){var x=A.prefixCls,b=A.level,w=A.isStart,S=A.isEnd;if(!b)return null;for(var T="".concat(x,"-indent-unit"),C=[],O=0;O<b;O+=1){var _;C.push(s.createElement("span",{key:O,className:l()(T,(_={},Object(D.a)(_,"".concat(T,"-start"),w[O+1]),Object(D.a)(_,"".concat(T,"-end"),S[O+1]),Object(D.a)(_,"".concat(T,"-end-first-level"),!O&&S[0]),_))}))}return s.createElement("span",{"aria-hidden":"true",className:"".concat(x,"-indent")},C)},e=u,n=y("815F"),i="open",c="close",d="---",h=function(v){Object(m.a)(x,v);var A=Object(f.a)(x);function x(){var b;return Object(E.a)(this,x),b=A.apply(this,arguments),b.state={dragNodeHighlight:!1},b.onSelectorClick=function(w){var S=b.props.context.onNodeClick;S(w,Object(n.b)(b.props)),b.isSelectable()?b.onSelect(w):b.onCheck(w)},b.onSelectorDoubleClick=function(w){var S=b.props.context.onNodeDoubleClick;S(w,Object(n.b)(b.props))},b.onSelect=function(w){if(b.isDisabled())return;var S=b.props.context.onNodeSelect;w.preventDefault(),S(w,Object(n.b)(b.props))},b.onCheck=function(w){if(b.isDisabled())return;var S=b.props,T=S.disableCheckbox,C=S.checked,O=b.props.context.onNodeCheck;if(!b.isCheckable()||T)return;w.preventDefault();var _=!C;O(w,Object(n.b)(b.props),_)},b.onMouseEnter=function(w){var S=b.props.context.onNodeMouseEnter;S(w,Object(n.b)(b.props))},b.onMouseLeave=function(w){var S=b.props.context.onNodeMouseLeave;S(w,Object(n.b)(b.props))},b.onContextMenu=function(w){var S=b.props.context.onNodeContextMenu;S(w,Object(n.b)(b.props))},b.onDragStart=function(w){var S=b.props.context.onNodeDragStart;w.stopPropagation(),b.setState({dragNodeHighlight:!0}),S(w,Object(o.a)(b));try{w.dataTransfer.setData("text/plain","")}catch(T){}},b.onDragEnter=function(w){var S=b.props.context.onNodeDragEnter;w.preventDefault(),w.stopPropagation(),S(w,Object(o.a)(b))},b.onDragOver=function(w){var S=b.props.context.onNodeDragOver;w.preventDefault(),w.stopPropagation(),S(w,Object(o.a)(b))},b.onDragLeave=function(w){var S=b.props.context.onNodeDragLeave;w.stopPropagation(),S(w,Object(o.a)(b))},b.onDragEnd=function(w){var S=b.props.context.onNodeDragEnd;w.stopPropagation(),b.setState({dragNodeHighlight:!1}),S(w,Object(o.a)(b))},b.onDrop=function(w){var S=b.props.context.onNodeDrop;w.preventDefault(),w.stopPropagation(),b.setState({dragNodeHighlight:!1}),S(w,Object(o.a)(b))},b.onExpand=function(w){var S=b.props.context.onNodeExpand;S(w,Object(n.b)(b.props))},b.setSelectHandle=function(w){b.selectHandle=w},b.getNodeState=function(){var w=b.props.expanded;return b.isLeaf()?null:w?i:c},b.hasChildren=function(){var w=b.props.eventKey,S=b.props.context.keyEntities,T=S[w]||{},C=T.children;return!!(C||[]).length},b.isLeaf=function(){var w=b.props,S=w.isLeaf,T=w.loaded,C=b.props.context.loadData,O=b.hasChildren();return S===!1?!1:S||!C&&!O||C&&T&&!O},b.isDisabled=function(){var w=b.props.disabled,S=b.props.context.disabled;return!!(S||w)},b.isCheckable=function(){var w=b.props.checkable,S=b.props.context.checkable;return!S||w===!1?!1:S},b.syncLoadData=function(w){var S=w.expanded,T=w.loading,C=w.loaded,O=b.props.context,_=O.loadData,M=O.onNodeLoad;if(T)return;_&&S&&!b.isLeaf()&&(!b.hasChildren()&&!C&&M(Object(n.b)(b.props)))},b.renderSwitcher=function(){var w=b.props,S=w.expanded,T=w.switcherIcon,C=b.props.context,O=C.prefixCls,_=C.switcherIcon,M=T||_;if(b.isLeaf())return s.createElement("span",{className:l()("".concat(O,"-switcher"),"".concat(O,"-switcher-noop"))},typeof M=="function"?M(Object(L.a)(Object(L.a)({},b.props),{},{isLeaf:!0})):M);var k=l()("".concat(O,"-switcher"),"".concat(O,"-switcher_").concat(S?i:c));return s.createElement("span",{onClick:b.onExpand,className:k},typeof M=="function"?M(Object(L.a)(Object(L.a)({},b.props),{},{isLeaf:!1})):M)},b.renderCheckbox=function(){var w=b.props,S=w.checked,T=w.halfChecked,C=w.disableCheckbox,O=b.props.context.prefixCls,_=b.isDisabled(),M=b.isCheckable();if(!M)return null;var k=typeof M!="boolean"?M:null;return s.createElement("span",{className:l()("".concat(O,"-checkbox"),S&&"".concat(O,"-checkbox-checked"),!S&&T&&"".concat(O,"-checkbox-indeterminate"),(_||C)&&"".concat(O,"-checkbox-disabled")),onClick:b.onCheck},k)},b.renderIcon=function(){var w=b.props.loading,S=b.props.context.prefixCls;return s.createElement("span",{className:l()("".concat(S,"-iconEle"),"".concat(S,"-icon__").concat(b.getNodeState()||"docu"),w&&"".concat(S,"-icon_loading"))})},b.renderSelector=function(){var w=b.state.dragNodeHighlight,S=b.props,T=S.title,C=S.selected,O=S.icon,_=S.loading,M=S.data,k=b.props.context,R=k.prefixCls,B=k.showIcon,P=k.icon,U=k.draggable,j=k.loadData,H=k.titleRender,W=b.isDisabled(),G="".concat(R,"-node-content-wrapper"),V;if(B){var Z=O||P;V=Z?s.createElement("span",{className:l()("".concat(R,"-iconEle"),"".concat(R,"-icon__customize"))},typeof Z=="function"?Z(b.props):Z):b.renderIcon()}else j&&_&&(V=b.renderIcon());var Y;typeof T=="function"?Y=T(M):H?Y=H(M):Y=T;var Q=s.createElement("span",{className:"".concat(R,"-title")},Y);return s.createElement("span",{ref:b.setSelectHandle,title:typeof T=="string"?T:"",className:l()("".concat(G),"".concat(G,"-").concat(b.getNodeState()||"normal"),!W&&(C||w)&&"".concat(R,"-node-selected"),!W&&U&&"draggable"),draggable:!W&&U||void 0,"aria-grabbed":!W&&U||void 0,onMouseEnter:b.onMouseEnter,onMouseLeave:b.onMouseLeave,onContextMenu:b.onContextMenu,onClick:b.onSelectorClick,onDoubleClick:b.onSelectorDoubleClick,onDragStart:U?b.onDragStart:void 0},V,Q)},b}return Object(I.a)(x,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var w=this.props.selectable,S=this.props.context.selectable;return typeof w=="boolean"?w:S}},{key:"render",value:function(){var w,S=this.props,T=S.eventKey,C=S.className,O=S.style,_=S.dragOver,M=S.dragOverGapTop,k=S.dragOverGapBottom,R=S.isLeaf,B=S.isStart,P=S.isEnd,U=S.expanded,j=S.selected,H=S.checked,W=S.halfChecked,G=S.loading,V=S.domRef,Z=S.active,Y=S.onMouseMove,Q=Object(N.a)(S,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),oe=this.props.context,ue=oe.prefixCls,Le=oe.filterTreeNode,me=oe.draggable,Ie=oe.keyEntities,X=this.isDisabled(),q=Object(r.f)(Q),We=Ie[T]||{},$=We.level,J=P[P.length-1];return s.createElement("div",Object.assign({ref:V,className:l()(C,"".concat(ue,"-treenode"),(w={},Object(D.a)(w,"".concat(ue,"-treenode-disabled"),X),Object(D.a)(w,"".concat(ue,"-treenode-switcher-").concat(U?"open":"close"),!R),Object(D.a)(w,"".concat(ue,"-treenode-checkbox-checked"),H),Object(D.a)(w,"".concat(ue,"-treenode-checkbox-indeterminate"),W),Object(D.a)(w,"".concat(ue,"-treenode-selected"),j),Object(D.a)(w,"".concat(ue,"-treenode-loading"),G),Object(D.a)(w,"".concat(ue,"-treenode-active"),Z),Object(D.a)(w,"".concat(ue,"-treenode-leaf-last"),J),Object(D.a)(w,"drag-over",!X&&_),Object(D.a)(w,"drag-over-gap-top",!X&&M),Object(D.a)(w,"drag-over-gap-bottom",!X&&k),Object(D.a)(w,"filter-node",Le&&Le(Object(n.b)(this.props))),w)),style:O,onDragEnter:me?this.onDragEnter:void 0,onDragOver:me?this.onDragOver:void 0,onDragLeave:me?this.onDragLeave:void 0,onDrop:me?this.onDrop:void 0,onDragEnd:me?this.onDragEnd:void 0,onMouseMove:Y},q),s.createElement(e,{prefixCls:ue,level:$,isStart:B,isEnd:P}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),x}(s.Component),p=function(A){return s.createElement(a.a.Consumer,null,function(x){return s.createElement(h,Object.assign({},A,{context:x}))})};p.displayName="TreeNode",p.defaultProps={title:d},p.isTreeNode=1;var g=z.a=p},Wqna:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=L.isObject,I=L.each,o=L.map,m=L.indexOf,f=L.retrieve,s=y("+TT/"),t=s.getLayoutRect,l=y("aX7z"),a=l.createScaleByModel,r=l.ifAxisCrossZero,u=l.niceScaleExtent,e=l.estimateLabelUnionRect,n=y("y+lR"),i=y("7AJT"),c=y("IDmD"),d=y("7hqr"),h=d.getStackedDimension;y("jtI2");function p(O,_,M){return O.getCoordSysModel()===_}function g(O,_,M){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(O,_,M),this.model=O}var v=g.prototype;v.type="grid",v.axisPointerEnabled=!0,v.getRect=function(){return this._rect},v.update=function(O,_){var M=this._axesMap;this._updateScale(O,this.model),I(M.x,function(R){u(R.scale,R.model)}),I(M.y,function(R){u(R.scale,R.model)});var k={};I(M.x,function(R){A(M,"y",R,k)}),I(M.y,function(R){A(M,"x",R,k)}),this.resize(this.model,_)};function A(O,_,M,k){M.getAxesOnZeroOf=function(){return B?[B]:[]};var R=O[_],B,P=M.model,U=P.get("axisLine.onZero"),j=P.get("axisLine.onZeroAxisIndex");if(!U)return;if(j!=null)x(R[j])&&(B=R[j]);else for(var H in R)if(R.hasOwnProperty(H)&&x(R[H])&&!k[W(R[H])]){B=R[H];break}B&&(k[W(B)]=!0);function W(G){return G.dim+"_"+G.index}}function x(O){return O&&O.type!=="category"&&O.type!=="time"&&r(O)}v.resize=function(O,_,M){var k=t(O.getBoxLayoutParams(),{width:_.getWidth(),height:_.getHeight()});this._rect=k;var R=this._axesList;B(),!M&&O.get("containLabel")&&(I(R,function(P){if(!P.model.get("axisLabel.inside")){var U=e(P);if(U){var j=P.isHorizontal()?"height":"width",H=P.model.get("axisLabel.margin");k[j]-=U[j]+H,P.position==="top"?k.y+=U.height+H:P.position==="left"&&(k.x+=U.width+H)}}}),B());function B(){I(R,function(P){var U=P.isHorizontal(),j=U?[0,k.width]:[0,k.height],H=P.inverse?1:0;P.setExtent(j[H],j[1-H]),b(P,U?k.x:k.y)})}},v.getAxis=function(O,_){var M=this._axesMap[O];if(M!=null){if(_==null){for(var k in M)if(M.hasOwnProperty(k))return M[k]}return M[_]}},v.getAxes=function(){return this._axesList.slice()},v.getCartesian=function(O,_){if(O!=null&&_!=null){var M="x"+O+"y"+_;return this._coordsMap[M]}E(O)&&(_=O.yAxisIndex,O=O.xAxisIndex);for(var k=0,R=this._coordsList;k<R.length;k++)if(R[k].getAxis("x").index===O||R[k].getAxis("y").index===_)return R[k]},v.getCartesians=function(){return this._coordsList.slice()},v.convertToPixel=function(O,_,M){var k=this._findConvertTarget(O,_);return k.cartesian?k.cartesian.dataToPoint(M):k.axis?k.axis.toGlobalCoord(k.axis.dataToCoord(M)):null},v.convertFromPixel=function(O,_,M){var k=this._findConvertTarget(O,_);return k.cartesian?k.cartesian.pointToData(M):k.axis?k.axis.coordToData(k.axis.toLocalCoord(M)):null},v._findConvertTarget=function(O,_){var M=_.seriesModel,k=_.xAxisModel||M&&M.getReferringComponents("xAxis")[0],R=_.yAxisModel||M&&M.getReferringComponents("yAxis")[0],B=_.gridModel,P=this._coordsList,U,j;if(M)U=M.coordinateSystem,m(P,U)<0&&(U=null);else if(k&&R)U=this.getCartesian(k.componentIndex,R.componentIndex);else if(k)j=this.getAxis("x",k.componentIndex);else if(R)j=this.getAxis("y",R.componentIndex);else if(B){var H=B.coordinateSystem;H===this&&(U=this._coordsList[0])}return{cartesian:U,axis:j}},v.containPoint=function(O){var _=this._coordsList[0];if(_)return _.containPoint(O)},v._initCartesian=function(O,_,M){var k={left:!1,right:!1,top:!1,bottom:!1},R={x:{},y:{}},B={x:0,y:0};if(_.eachComponent("xAxis",P("x"),this),_.eachComponent("yAxis",P("y"),this),!B.x||!B.y){this._axesMap={},this._axesList=[];return}this._axesMap=R,I(R.x,function(U,j){I(R.y,function(H,W){var G="x"+j+"y"+W,V=new n(G);V.grid=this,V.model=O,this._coordsMap[G]=V,this._coordsList.push(V),V.addAxis(U),V.addAxis(H)},this)},this);function P(U){return function(j,H){if(!p(j,O,_))return;var W=j.get("position");U==="x"?W!=="top"&&W!=="bottom"&&(W=k.bottom?"top":"bottom"):W!=="left"&&W!=="right"&&(W=k.left?"right":"left"),k[W]=!0;var G=new i(U,a(j),[0,0],j.get("type"),W),V=G.type==="category";G.onBand=V&&j.get("boundaryGap"),G.inverse=j.get("inverse"),j.axis=G,G.model=j,G.grid=this,G.index=H,this._axesList.push(G),R[U][H]=G,B[U]++}}},v._updateScale=function(O,_){I(this._axesList,function(k){k.scale.setExtent(Infinity,-Infinity)}),O.eachSeries(function(k){if(T(k)){var R=S(k,O),B=R[0],P=R[1];if(!p(B,_,O)||!p(P,_,O))return;var U=this.getCartesian(B.componentIndex,P.componentIndex),j=k.getData(),H=U.getAxis("x"),W=U.getAxis("y");j.type==="list"&&(M(j,H,k),M(j,W,k))}},this);function M(k,R,B){I(k.mapDimension(R.dim,!0),function(P){R.scale.unionExtentFromData(k,h(k,P))})}},v.getTooltipAxes=function(O){var _=[],M=[];return I(this.getCartesians(),function(k){var R=O!=null&&O!=="auto"?k.getAxis(O):k.getBaseAxis(),B=k.getOtherAxis(R);m(_,R)<0&&_.push(R),m(M,B)<0&&M.push(B)}),{baseAxes:_,otherAxes:M}};function b(O,_){var M=O.getExtent(),k=M[0]+M[1];O.toGlobalCoord=O.dim==="x"?function(R){return R+_}:function(R){return k-R+_},O.toLocalCoord=O.dim==="x"?function(R){return R-_}:function(R){return k-R+_}}var w=["xAxis","yAxis"];function S(O,_){return o(w,function(M){var k=O.getReferringComponents(M)[0];return k})}function T(O){return O.get("coordinateSystem")==="cartesian2d"}g.create=function(O,_){var M=[];return O.eachComponent("grid",function(k,R){var B=new g(k,O,_);B.name="grid_"+R,B.resize(k,_,!0),k.coordinateSystem=B,M.push(B)}),O.eachSeries(function(k){if(!T(k))return;var R=S(k,O),B=R[0],P=R[1],U=B.getCoordSysModel(),j=U.coordinateSystem;k.coordinateSystem=j.getCartesian(B.componentIndex,P.componentIndex)}),M},g.dimensions=g.prototype.dimensions=n.prototype.dimensions,c.register("cartesian2d",g);var C=g;fe.exports=C},"X+im":function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("KQeH")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="DownloadOutlined";var f=E.forwardRef(m);z.default=f},"X2/X":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},XAae:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("hwYd"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},XOKv:function(fe,z,y){y("OXB0"),y("SA4+")},Xmg4:function(fe,z,y){var D=y("bYtY"),N=y("LPTA"),L=N.devicePixelRatio,E=y("K2GJ"),I=y("3C/r");function o(){return!1}function m(t,l,a){var r=D.createCanvas(),u=l.getWidth(),e=l.getHeight(),n=r.style;return n&&(n.position="absolute",n.left=0,n.top=0,n.width=u+"px",n.height=e+"px",r.setAttribute("data-zr-dom-id",t)),r.width=u*a,r.height=e*a,r}var f=function(l,a,r){var u;r=r||L,typeof l=="string"?u=m(l,a,r):D.isObject(l)&&(u=l,l=u.id),this.id=l,this.dom=u;var e=u.style;e&&(u.onselectstart=o,e["-webkit-user-select"]="none",e["user-select"]="none",e["-webkit-touch-callout"]="none",e["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",e.padding=0,e.margin=0,e["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=r};f.prototype={constructor:f,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var l=this.dpr;this.domBack=m("back-"+this.id,this.painter,l),this.ctxBack=this.domBack.getContext("2d"),l!==1&&this.ctxBack.scale(l,l)},resize:function(l,a){var r=this.dpr,u=this.dom,e=u.style,n=this.domBack;e&&(e.width=l+"px",e.height=a+"px"),u.width=l*r,u.height=a*r,n&&(n.width=l*r,n.height=a*r,r!==1&&this.ctxBack.scale(r,r))},clear:function(l,a){var r=this.dom,u=this.ctx,e=r.width,n=r.height,a=a||this.clearColor,i=this.motionBlur&&!l,c=this.lastFrameAlpha,d=this.dpr;if(i&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,e/d,n/d)),u.clearRect(0,0,e,n),a&&a!=="transparent"){var h;a.colorStops?(h=a.__canvasGradient||E.getGradient(u,a,{x:0,y:0,width:e,height:n}),a.__canvasGradient=h):a.image&&(h=I.prototype.getCanvasPattern.call(a,u)),u.save(),u.fillStyle=h||a,u.fillRect(0,0,e,n),u.restore()}if(i){var p=this.domBack;u.save(),u.globalAlpha=c,u.drawImage(p,0,0,e,n),u.restore()}}};var s=f;fe.exports=s},Xnb7:function(fe,z,y){var D=y("1RvN"),N=new D(50);function L(m){if(typeof m=="string"){var f=N.get(m);return f&&f.image}else return m}function E(m,f,s,t,l){if(m)if(typeof m=="string"){if(f&&f.__zrImageSrc===m||!s)return f;var a=N.get(m),r={hostEl:s,cb:t,cbPayload:l};return a?(f=a.image,!o(f)&&a.pending.push(r)):(f=new Image,f.onload=f.onerror=I,N.put(m,f.__cachedImgObj={image:f,pending:[r]}),f.src=f.__zrImageSrc=m),f}else return m;else return f}function I(){var m=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var f=0;f<m.pending.length;f++){var s=m.pending[f],t=s.cb;t&&t(this,s.cbPayload),s.hostEl.dirty()}m.pending.length=0}function o(m){return m&&m.width&&m.height}z.findExistImage=L,z.createOrUpdateImage=E,z.isImageReady=o},XpcN:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("bYtY"),I=y("oVpE"),o=I.createSymbol,m=y("IwbS"),f=y("eRkO"),s=f.makeBackground,t=y("+TT/"),l=E.curry,a=E.each,r=m.Group,u=L.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new r),this._backgroundEl,this.group.add(this._selectorGroup=new r),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(d,h,p){var g=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!d.get("show",!0))return;var v=d.get("align"),A=d.get("orient");(!v||v==="auto")&&(v=d.get("left")==="right"&&A==="vertical"?"right":"left");var x=d.get("selector",!0),b=d.get("selectorPosition",!0);x&&(!b||b==="auto")&&(b=A==="horizontal"?"end":"start"),this.renderInner(v,d,h,p,x,A,b);var w=d.getBoxLayoutParams(),S={width:p.getWidth(),height:p.getHeight()},T=d.get("padding"),C=t.getLayoutRect(w,S,T),O=this.layoutInner(d,v,C,g,x,b),_=t.getLayoutRect(E.defaults({width:O.width,height:O.height},w),S,T);this.group.attr("position",[_.x-O.x,_.y-O.y]),this.group.add(this._backgroundEl=s(O,d))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(d,h,p,g,v,A,x){var b=this.getContentGroup(),w=E.createHashMap(),S=h.get("selectedMode"),T=[];p.eachRawSeries(function(C){!C.get("legendHoverLink")&&T.push(C.id)}),a(h.getData(),function(C,O){var _=C.get("name");if(!this.newlineDisabled&&(_===""||_===`
|
|
|
`)){b.add(new r({newline:!0}));return}var M=p.getSeriesByName(_)[0];if(w.get(_))return;if(M){var k=M.getData(),R=k.getVisual("color"),B=k.getVisual("borderColor");typeof R=="function"&&(R=R(M.getDataParams(0))),typeof B=="function"&&(B=B(M.getDataParams(0)));var P=k.getVisual("legendSymbol")||"roundRect",U=k.getVisual("symbol"),j=this._createItem(_,O,C,h,P,U,d,R,B,S);j.on("click",l(n,_,null,g,T)).on("mouseover",l(i,M.name,null,g,T)).on("mouseout",l(c,M.name,null,g,T)),w.set(_,!0)}else p.eachRawSeries(function(H){if(w.get(_))return;if(H.legendVisualProvider){var W=H.legendVisualProvider;if(!W.containName(_))return;var G=W.indexOfName(_),V=W.getItemVisual(G,"color"),Z=W.getItemVisual(G,"borderColor"),Y="roundRect",Q=this._createItem(_,O,C,h,Y,null,d,V,Z,S);Q.on("click",l(n,null,_,g,T)).on("mouseover",l(i,null,_,g,T)).on("mouseout",l(c,null,_,g,T)),w.set(_,!0)}},this)},this),v&&this._createSelector(v,h,g,A,x)},_createSelector:function(d,h,p,g,v){var A=this.getSelectorGroup();a(d,function(b){x(b)});function x(b){var w=b.type,S=new m.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){p.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});A.add(S);var T=h.getModel("selectorLabel"),C=h.getModel("emphasis.selectorLabel");m.setLabelStyle(S.style,S.hoverStyle={},T,C,{defaultText:b.title,isRectText:!1}),m.setHoverStyle(S)}},_createItem:function(d,h,p,g,v,A,x,b,w,S){var T=g.get("itemWidth"),C=g.get("itemHeight"),O=g.get("inactiveColor"),_=g.get("inactiveBorderColor"),M=g.get("symbolKeepAspect"),k=g.getModel("itemStyle"),R=g.isSelected(d),B=new r,P=p.getModel("textStyle"),U=p.get("icon"),j=p.getModel("tooltip"),H=j.parentModel;v=U||v;var W=o(v,0,0,T,C,R?b:O,M==null?!0:M);if(B.add(e(W,v,k,w,_,R)),!U&&A&&(A!==v||A==="none")){var G=C*.8;A==="none"&&(A="circle");var V=o(A,(T-G)/2,(C-G)/2,G,G,R?b:O,M==null?!0:M);B.add(e(V,A,k,w,_,R))}var Z=x==="left"?T+5:-5,Y=x,Q=g.get("formatter"),oe=d;typeof Q=="string"&&Q?oe=Q.replace("{name}",d!=null?d:""):typeof Q=="function"&&(oe=Q(d)),B.add(new m.Text({style:m.setTextStyle({},P,{text:oe,x:Z,y:C/2,textFill:R?P.getTextColor():O,textAlign:Y,textVerticalAlign:"middle"})}));var ue=new m.Rect({shape:B.getBoundingRect(),invisible:!0,tooltip:j.get("show")?E.extend({content:d,formatter:H.get("formatter",!0)||function(){return d},formatterParams:{componentType:"legend",legendIndex:g.componentIndex,name:d,$vars:["name"]}},j.option):null});return B.add(ue),B.eachChild(function(Le){Le.silent=!0}),ue.silent=!S,this.getContentGroup().add(B),m.setHoverStyle(B),B.__legendDataIndex=h,B},layoutInner:function(d,h,p,g,v,A){var x=this.getContentGroup(),b=this.getSelectorGroup();t.box(d.get("orient"),x,d.get("itemGap"),p.width,p.height);var w=x.getBoundingRect(),S=[-w.x,-w.y];if(v){t.box("horizontal",b,d.get("selectorItemGap",!0));var T=b.getBoundingRect(),C=[-T.x,-T.y],O=d.get("selectorButtonGap",!0),_=d.getOrient().index,M=_===0?"width":"height",k=_===0?"height":"width",R=_===0?"y":"x";A==="end"?C[_]+=w[M]+O:S[_]+=T[M]+O,C[1-_]+=w[k]/2-T[k]/2,b.attr("position",C),x.attr("position",S);var B={x:0,y:0};return B[M]=w[M]+O+T[M],B[k]=Math.max(w[k],T[k]),B[R]=Math.min(0,T[R]+C[1-_]),B}else return x.attr("position",S),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function e(d,h,p,g,v,A){var x;return h!=="line"&&h.indexOf("empty")<0?(x=p.getItemStyle(),d.style.stroke=g,A||(x.stroke=v)):x=p.getItemStyle(["borderWidth","borderColor"]),d.setStyle(x)}function n(d,h,p,g){c(d,h,p,g),p.dispatchAction({type:"legendToggleSelect",name:d!=null?d:h}),i(d,h,p,g)}function i(d,h,p,g){var v=p.getZr().storage.getDisplayList()[0];v&&v.useHoverLayer||p.dispatchAction({type:"highlight",seriesName:d,name:h,excludeSeriesId:g})}function c(d,h,p,g){var v=p.getZr().storage.getDisplayList()[0];v&&v.useHoverLayer||p.dispatchAction({type:"downplay",seriesName:d,name:h,excludeSeriesId:g})}fe.exports=u},XuBP:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},XxSj:function(fe,z,y){var D=y("bYtY"),N=y("Qe9p"),L=y("OELB"),E=L.linearMap,I=D.each,o=D.isObject,m=-1,f=function(A){var x=A.mappingMethod,b=A.type,w=this.option=D.clone(A);this.type=b,this.mappingMethod=x,this._normalizeData=p[x];var S=s[b];this.applyVisual=S.applyVisual,this.getColorMapper=S.getColorMapper,this._doMap=S._doMap[x],x==="piecewise"?(a(w),t(w)):x==="category"?w.categories?l(w):a(w,!0):(D.assert(x!=="linear"||w.dataExtent),a(w))};f.prototype={constructor:f,mapValueToVisual:function(A){var x=this._normalizeData(A);return this._doMap(x,A)},getNormalizer:function(){return D.bind(this._normalizeData,this)}};var s=f.visualHandlers={color:{applyVisual:e("color"),getColorMapper:function(){var A=this.option;return D.bind(A.mappingMethod==="category"?function(x,b){return!b&&(x=this._normalizeData(x)),n.call(this,x)}:function(x,b,w){var S=!!w;return!b&&(x=this._normalizeData(x)),w=N.fastLerp(x,A.parsedVisual,w),S?w:N.stringify(w,"rgba")},this)},_doMap:{linear:function(A){return N.stringify(N.fastLerp(A,this.option.parsedVisual),"rgba")},category:n,piecewise:function(A,x){var b=d.call(this,x);return b==null&&(b=N.stringify(N.fastLerp(A,this.option.parsedVisual),"rgba")),b},fixed:i}},colorHue:r(function(A,x){return N.modifyHSL(A,x)}),colorSaturation:r(function(A,x){return N.modifyHSL(A,null,x)}),colorLightness:r(function(A,x){return N.modifyHSL(A,null,null,x)}),colorAlpha:r(function(A,x){return N.modifyAlpha(A,x)}),opacity:{applyVisual:e("opacity"),_doMap:c([0,1])},liftZ:{applyVisual:e("liftZ"),_doMap:{linear:i,category:i,piecewise:i,fixed:i}},symbol:{applyVisual:function(A,x,b){var w=this.mapValueToVisual(A);if(D.isString(w))b("symbol",w);else if(o(w))for(var S in w)w.hasOwnProperty(S)&&b(S,w[S])},_doMap:{linear:u,category:n,piecewise:function(A,x){var b=d.call(this,x);return b==null&&(b=u.call(this,A)),b},fixed:i}},symbolSize:{applyVisual:e("symbolSize"),_doMap:c([0,1])}};function t(A){var x=A.pieceList;A.hasSpecialVisual=!1,D.each(x,function(b,w){b.originIndex=w,b.visual!=null&&(A.hasSpecialVisual=!0)})}function l(A){var x=A.categories,b=A.visual,w=A.categoryMap={};if(I(x,function(C,O){w[C]=O}),!D.isArray(b)){var S=[];D.isObject(b)?I(b,function(C,O){var _=w[O];S[_!=null?_:m]=C}):S[m]=b,b=h(A,S)}for(var T=x.length-1;T>=0;T--)b[T]==null&&(delete w[x[T]],x.pop())}function a(A,x){var b=A.visual,w=[];D.isObject(b)?I(b,function(T){w.push(T)}):b!=null&&w.push(b);var S={color:1,symbol:1};!x&&w.length===1&&!S.hasOwnProperty(A.type)&&(w[1]=w[0]),h(A,w)}function r(A){return{applyVisual:function(x,b,w){x=this.mapValueToVisual(x),w("color",A(b("color"),x))},_doMap:c([0,1])}}function u(A){var x=this.option.visual;return x[Math.round(E(A,[0,1],[0,x.length-1],!0))]||{}}function e(A){return function(x,b,w){w(A,this.mapValueToVisual(x))}}function n(A){var x=this.option.visual;return x[this.option.loop&&A!==m?A%x.length:A]}function i(){return this.option.visual[0]}function c(A){return{linear:function(x){return E(x,A,this.option.visual,!0)},category:n,piecewise:function(x,b){var w=d.call(this,b);return w==null&&(w=E(x,A,this.option.visual,!0)),w},fixed:i}}function d(A){var x=this.option,b=x.pieceList;if(x.hasSpecialVisual){var w=f.findPieceIndex(A,b),S=b[w];if(S&&S.visual)return S.visual[this.type]}}function h(A,x){return A.visual=x,A.type==="color"&&(A.parsedVisual=D.map(x,function(b){return N.parse(b)})),x}var p={linear:function(A){return E(A,this.option.dataExtent,[0,1],!0)},piecewise:function(A){var x=this.option.pieceList,b=f.findPieceIndex(A,x,!0);if(b!=null)return E(b,[0,x.length-1],[0,1],!0)},category:function(A){var x=this.option.categories?this.option.categoryMap[A]:A;return x==null?m:x},fixed:D.noop};f.listVisualTypes=function(){var A=[];return D.each(s,function(x,b){A.push(b)}),A},f.addVisualHandler=function(A,x){s[A]=x},f.isValidType=function(A){return s.hasOwnProperty(A)},f.eachVisual=function(A,x,b){D.isObject(A)?D.each(A,x,b):x.call(b,A)},f.mapVisual=function(A,x,b){var w,S=D.isArray(A)?[]:D.isObject(A)?{}:(w=!0,null);return f.eachVisual(A,function(T,C){var O=x.call(b,T,C);w?S=O:S[C]=O}),S},f.retrieveVisuals=function(A){var x={},b;return A&&I(s,function(w,S){A.hasOwnProperty(S)&&(x[S]=A[S],b=!0)}),b?x:null},f.prepareVisualTypes=function(A){if(o(A)){var x=[];I(A,function(b,w){x.push(w)}),A=x}else if(D.isArray(A))A=A.slice();else return[];return A.sort(function(b,w){return w==="color"&&b!=="color"&&b.indexOf("color")===0?1:-1}),A},f.dependsOn=function(A,x){return x==="color"?!!(A&&A.indexOf(x)===0):A===x},f.findPieceIndex=function(A,x,b){for(var w,S=Infinity,T=0,C=x.length;T<C;T++){var O=x[T].value;if(O!=null){if(O===A||typeof O=="string"&&O===A+"")return T;b&&R(O,T)}}for(var T=0,C=x.length;T<C;T++){var _=x[T],M=_.interval,k=_.close;if(M){if(M[0]===-Infinity){if(g(k[1],A,M[1]))return T}else if(M[1]===Infinity){if(g(k[0],M[0],A))return T}else if(g(k[0],M[0],A)&&g(k[1],A,M[1]))return T;b&&R(M[0],T),b&&R(M[1],T)}}if(b)return A===Infinity?x.length-1:A===-Infinity?0:w;function R(B,P){var U=Math.abs(B-A);U<S&&(S=U,w=P)}};function g(A,x,b){return A?x<=b:x<b}var v=f;fe.exports=v},XzQk:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("KpQ+"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},Y1PL:function(fe,z,y){"use strict";y.r(z),y.d(z,"ResizableTextArea",function(){return W});var D=y("wx14"),N=y("1OyB"),L=y("vuIU"),E=y("Ji7U"),I=y("LK+K"),o=y("q1tI"),m=y("VTBJ"),f=y("rePB"),s=y("Zm9Q"),t=y("Kwbf"),l=y("c+Xe"),a=y("m+aA"),r=y("bdgK"),u=new Map;function e(Z){Z.forEach(function(Y){var Q,oe=Y.target;(Q=u.get(oe))===null||Q===void 0||Q.forEach(function(ue){return ue(oe)})})}var n=new r.default(e),i=null,c=null;function d(Z,Y){u.has(Z)||(u.set(Z,new Set),n.observe(Z)),u.get(Z).add(Y)}function h(Z,Y){u.has(Z)&&(u.get(Z).delete(Y),u.get(Z).size||(n.unobserve(Z),u.delete(Z)))}var p=function(Z){Object(E.a)(Q,Z);var Y=Object(I.a)(Q);function Q(){return Object(N.a)(this,Q),Y.apply(this,arguments)}return Object(L.a)(Q,[{key:"render",value:function(){return this.props.children}}]),Q}(o.Component),g=o.createContext(null);function v(Z){var Y=Z.children,Q=Z.onBatchResize,oe=o.useRef(0),ue=o.useRef([]),Le=o.useContext(g),me=o.useCallback(function(Ie,X,q){oe.current+=1;var We=oe.current;ue.current.push({size:Ie,element:X,data:q}),Promise.resolve().then(function(){We===oe.current&&(Q==null||Q(ue.current),ue.current=[])}),Le==null||Le(Ie,X,q)},[Q,Le]);return o.createElement(g.Provider,{value:me},Y)}function A(Z){var Y=Z.children,Q=Z.disabled,oe=o.useRef(null),ue=o.useRef(null),Le=o.useContext(g),me=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ie=o.isValidElement(Y)&&Object(l.c)(Y),X=Ie?Y.ref:null,q=o.useMemo(function(){return Object(l.a)(X,oe)},[X,oe]),We=o.useRef(Z);We.current=Z;var $=o.useCallback(function(J){var le=We.current,de=le.onResize,Ne=le.data,we=J.getBoundingClientRect(),De=we.width,Ee=we.height,ce=J.offsetWidth,ne=J.offsetHeight,ee=Math.floor(De),Ae=Math.floor(Ee);if(me.current.width!==ee||me.current.height!==Ae||me.current.offsetWidth!==ce||me.current.offsetHeight!==ne){var Ve={width:ee,height:Ae,offsetWidth:ce,offsetHeight:ne};me.current=Ve;var Ke=ce===Math.round(De)?De:ce,Oe=ne===Math.round(Ee)?Ee:ne,it=Object(m.a)(Object(m.a)({},Ve),{},{offsetWidth:Ke,offsetHeight:Oe});Le==null||Le(it,J,Ne),de&&Promise.resolve().then(function(){de(it,J)})}},[]);return o.useEffect(function(){var J=Object(a.a)(oe.current)||Object(a.a)(ue.current);return J&&!Q&&d(J,$),function(){return h(J,$)}},[oe.current,Q]),o.createElement(p,{ref:ue},Ie?o.cloneElement(Y,{ref:q}):Y)}var x="rc-observer-key";function b(Z){var Y=Z.children,Q=Object(s.a)(Y);return Q.map(function(oe,ue){var Le=(oe==null?void 0:oe.key)||"".concat(x,"-").concat(ue);return o.createElement(A,Object(D.a)({},Z,{key:Le}),oe)})}b.Collection=v;var w=b,S=y("bT9E"),T=y("TSYQ"),C=y.n(T),O=`
|
|
|
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
|
|
|
`,_=["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"],M={},k;function R(Z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=Z.getAttribute("id")||Z.getAttribute("data-reactid")||Z.getAttribute("name");if(Y&&M[Q])return M[Q];var oe=window.getComputedStyle(Z),ue=oe.getPropertyValue("box-sizing")||oe.getPropertyValue("-moz-box-sizing")||oe.getPropertyValue("-webkit-box-sizing"),Le=parseFloat(oe.getPropertyValue("padding-bottom"))+parseFloat(oe.getPropertyValue("padding-top")),me=parseFloat(oe.getPropertyValue("border-bottom-width"))+parseFloat(oe.getPropertyValue("border-top-width")),Ie=_.map(function(q){return"".concat(q,":").concat(oe.getPropertyValue(q))}).join(";"),X={sizingStyle:Ie,paddingSize:Le,borderSize:me,boxSizing:ue};return Y&&Q&&(M[Q]=X),X}function B(Z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),Z.getAttribute("wrap")?k.setAttribute("wrap",Z.getAttribute("wrap")):k.removeAttribute("wrap");var ue=R(Z,Y),Le=ue.paddingSize,me=ue.borderSize,Ie=ue.boxSizing,X=ue.sizingStyle;k.setAttribute("style","".concat(X,";").concat(O)),k.value=Z.value||Z.placeholder||"";var q=Number.MIN_SAFE_INTEGER,We=Number.MAX_SAFE_INTEGER,$=k.scrollHeight,J;if(Ie==="border-box"?$+=me:Ie==="content-box"&&($-=Le),Q!==null||oe!==null){k.value=" ";var le=k.scrollHeight-Le;Q!==null&&(q=le*Q,Ie==="border-box"&&(q=q+Le+me),$=Math.max(q,$)),oe!==null&&(We=le*oe,Ie==="border-box"&&(We=We+Le+me),J=$>We?"":"hidden",$=Math.min(We,$))}return{height:$,minHeight:q,maxHeight:We,overflowY:J,resize:"none"}}var P=y("Gytx"),U=y.n(P),j;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.RESIZING=1]="RESIZING",Z[Z.RESIZED=2]="RESIZED"})(j||(j={}));var H=function(Z){Object(E.a)(Q,Z);var Y=Object(I.a)(Q);function Q(oe){var ue;return Object(N.a)(this,Q),ue=Y.call(this,oe),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(Le){ue.textArea=Le},ue.handleResize=function(Le){var me=ue.state.resizeStatus,Ie=ue.props,X=Ie.autoSize,q=Ie.onResize;if(me!==j.NONE)return;typeof q=="function"&&q(Le),X&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var Le=ue.props.autoSize;if(!Le||!ue.textArea)return;var me=Le.minRows,Ie=Le.maxRows,X=B(ue.textArea,!1,me,Ie);ue.setState({textareaStyles:X,resizeStatus:j.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:j.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:j.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var Le=ue.props,me=Le.prefixCls,Ie=me===void 0?"rc-textarea":me,X=Le.autoSize,q=Le.onResize,We=Le.className,$=Le.disabled,J=ue.state,le=J.textareaStyles,de=J.resizeStatus,Ne=Object(S.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),we=C()(Ie,We,Object(f.a)({},"".concat(Ie,"-disabled"),$));"value"in Ne&&(Ne.value=Ne.value||"");var De=Object(m.a)(Object(m.a)(Object(m.a)({},ue.props.style),le),de===j.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return o.createElement(w,{onResize:ue.handleResize,disabled:!(X||q)},o.createElement("textarea",Object(D.a)({},Ne,{className:we,style:De,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:j.NONE},ue}return Object(L.a)(Q,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!U()(ue.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ue=this.textArea.selectionStart,Le=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,Le)}}catch(me){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Q}(o.Component),W=H,G=function(Z){Object(E.a)(Q,Z);var Y=Object(I.a)(Q);function Q(oe){var ue;Object(N.a)(this,Q),ue=Y.call(this,oe),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function(me){ue.resizableTextArea=me},ue.handleChange=function(me){var Ie=ue.props.onChange;ue.setValue(me.target.value,function(){ue.resizableTextArea.resizeTextarea()}),Ie&&Ie(me)},ue.handleKeyDown=function(me){var Ie=ue.props,X=Ie.onPressEnter,q=Ie.onKeyDown;me.keyCode===13&&X&&X(me),q&&q(me)};var Le=typeof oe.value=="undefined"||oe.value===null?oe.defaultValue:oe.value;return ue.state={value:Le},ue}return Object(L.a)(Q,[{key:"setValue",value:function(ue,Le){"value"in this.props||this.setState({value:ue},Le)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return o.createElement(W,Object(D.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ue){return"value"in ue?{value:ue.value}:null}}]),Q}(o.Component),V=z.default=G},YH21:function(fe,z,y){var D=y("H6uX");z.Dispatcher=D;var N=y("ItGF"),L=y("Ze12"),E=L.isCanvasEl,I=L.transformCoordWithViewport,o=typeof window!="undefined"&&!!window.addEventListener,m=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,f=[];function s(c,d,h,p){return h=h||{},p||!N.canvasSupported?t(c,d,h):N.browser.firefox&&d.layerX!=null&&d.layerX!==d.offsetX?(h.zrX=d.layerX,h.zrY=d.layerY):d.offsetX!=null?(h.zrX=d.offsetX,h.zrY=d.offsetY):t(c,d,h),h}function t(c,d,h){if(N.domSupported&&c.getBoundingClientRect){var p=d.clientX,g=d.clientY;if(E(c)){var v=c.getBoundingClientRect();h.zrX=p-v.left,h.zrY=g-v.top;return}else if(I(f,c,p,g)){h.zrX=f[0],h.zrY=f[1];return}}h.zrX=h.zrY=0}function l(c){return c||window.event}function a(c,d,h){if(d=l(d),d.zrX!=null)return d;var p=d.type,g=p&&p.indexOf("touch")>=0;if(!g)s(c,d,d,h),d.zrDelta=d.wheelDelta?d.wheelDelta/120:-(d.detail||0)/3;else{var v=p!=="touchend"?d.targetTouches[0]:d.changedTouches[0];v&&s(c,v,d,h)}var A=d.button;return d.which==null&&A!==void 0&&m.test(d.type)&&(d.which=A&1?1:A&2?3:A&4?2:0),d}function r(c,d,h,p){o?c.addEventListener(d,h,p):c.attachEvent("on"+d,h)}function u(c,d,h,p){o?c.removeEventListener(d,h,p):c.detachEvent("on"+d,h)}var e=o?function(c){c.preventDefault(),c.stopPropagation(),c.cancelBubble=!0}:function(c){c.returnValue=!1,c.cancelBubble=!0};function n(c){return c.which===2||c.which===3}function i(c){return c.which>1}z.clientToLocal=s,z.getNativeEvent=l,z.normalizeEvent=a,z.addEventListener=r,z.removeEventListener=u,z.stop=e,z.isMiddleOrRightButtonOnMouseUpDown=n,z.notLeftMouse=i},YJ9k:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;function D(I,o){if(!(I instanceof o))throw new TypeError("Cannot call a class as a function")}function N(I,o){for(var m=0;m<o.length;m++){var f=o[m];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(I,f.key,f)}}function L(I,o,m){return o&&N(I.prototype,o),m&&N(I,m),I}var E=function(){function I(){D(this,I),this._listeners=new Map}return L(I,[{key:"addEventListener",value:function(m,f){this._listeners.has(m)||this._listeners.set(m,new Set),this._listeners.get(m).add(f)}},{key:"removeEventListener",value:function(m,f){this._listeners.has(m)&&this._listeners.get(m).delete(f)}},{key:"dispatchEvent",value:function(m){var f=this;return this._listeners.has(m.type)?(this._listeners.get(m.type).forEach(function(s){return s.call(f,m)}),!m.defaultPrevented):!0}}]),I}();z.default=E},YJCA:function(fe,z,y){"use strict";y.d(z,"a",function(){return de}),y.d(z,"b",function(){return De});var D=y("wx14"),N=y("ODXe"),L=y("vpQ4"),E=y("1OyB"),I=y("vuIU"),o=y("md7G"),m=y("foSv"),f=y("Ji7U"),s=y("JX7q"),t=y("rePB"),l=y("q1tI"),a=y.n(l),r=y("17x9"),u=y.n(r),e=y("i8i4"),n=y.n(e),i=y("QLaP"),c=y.n(i),d=y("KQm4"),h=function(){function Ee(){Object(E.a)(this,Ee),Object(t.a)(this,"refs",{})}return Object(I.a)(Ee,[{key:"add",value:function(ne,ee){this.refs[ne]||(this.refs[ne]=[]),this.refs[ne].push(ee)}},{key:"remove",value:function(ne,ee){var Ae=this.getIndex(ne,ee);Ae!==-1&&this.refs[ne].splice(Ae,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var ne=this;return this.refs[this.active.collection].find(function(ee){var Ae=ee.node;return Ae.sortableInfo.index==ne.active.index})}},{key:"getIndex",value:function(ne,ee){return this.refs[ne].indexOf(ee)}},{key:"getOrderedRefs",value:function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[ne].sort(p)}}]),Ee}();function p(Ee,ce){var ne=Ee.node.sortableInfo.index,ee=ce.node.sortableInfo.index;return ne-ee}function g(Ee,ce,ne){return Ee=Ee.slice(),Ee.splice(ne<0?Ee.length+ne:ne,0,Ee.splice(ce,1)[0]),Ee}function v(Ee,ce){return Object.keys(Ee).reduce(function(ne,ee){return ce.indexOf(ee)===-1&&(ne[ee]=Ee[ee]),ne},{})}var A={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},x=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Ee=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ce=(Array.prototype.slice.call(Ee).join("").match(/-(moz|webkit|ms)-/)||Ee.OLink===""&&["","o"])[1];switch(ce){case"ms":return"ms";default:return ce&&ce.length?ce[0].toUpperCase()+ce.substr(1):""}}();function b(Ee,ce){Object.keys(ce).forEach(function(ne){Ee.style[ne]=ce[ne]})}function w(Ee,ce){Ee.style["".concat(x,"Transform")]=ce==null?"":"translate3d(".concat(ce.x,"px,").concat(ce.y,"px,0)")}function S(Ee,ce){Ee.style["".concat(x,"TransitionDuration")]=ce==null?"":"".concat(ce,"ms")}function T(Ee,ce){for(;Ee;){if(ce(Ee))return Ee;Ee=Ee.parentNode}return null}function C(Ee,ce,ne){return Math.max(Ee,Math.min(ne,ce))}function O(Ee){return Ee.substr(-2)==="px"?parseFloat(Ee):0}function _(Ee){var ce=window.getComputedStyle(Ee);return{bottom:O(ce.marginBottom),left:O(ce.marginLeft),right:O(ce.marginRight),top:O(ce.marginTop)}}function M(Ee,ce){var ne=ce.displayName||ce.name;return ne?"".concat(Ee,"(").concat(ne,")"):Ee}function k(Ee,ce){var ne=Ee.getBoundingClientRect();return{top:ne.top+ce.top,left:ne.left+ce.left}}function R(Ee){return Ee.touches&&Ee.touches.length?{x:Ee.touches[0].pageX,y:Ee.touches[0].pageY}:Ee.changedTouches&&Ee.changedTouches.length?{x:Ee.changedTouches[0].pageX,y:Ee.changedTouches[0].pageY}:{x:Ee.pageX,y:Ee.pageY}}function B(Ee){return Ee.touches&&Ee.touches.length||Ee.changedTouches&&Ee.changedTouches.length}function P(Ee,ce){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Ee)return;var ee={left:ne.left+Ee.offsetLeft,top:ne.top+Ee.offsetTop};return Ee.parentNode===ce?ee:P(Ee.parentNode,ce,ee)}function U(Ee,ce,ne){return Ee<ne&&Ee>ce?Ee-1:Ee>ne&&Ee<ce?Ee+1:Ee}function j(Ee){var ce=Ee.lockOffset,ne=Ee.width,ee=Ee.height,Ae=ce,Ve=ce,Ke="px";if(typeof ce=="string"){var Oe=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(ce);c()(Oe!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',ce),Ae=parseFloat(ce),Ve=parseFloat(ce),Ke=Oe[1]}return c()(isFinite(Ae)&&isFinite(Ve),"lockOffset value should be a finite. Given %s",ce),Ke==="%"&&(Ae=Ae*ne/100,Ve=Ve*ee/100),{x:Ae,y:Ve}}function H(Ee){var ce=Ee.height,ne=Ee.width,ee=Ee.lockOffset,Ae=Array.isArray(ee)?ee:[ee,ee];c()(Ae.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",ee);var Ve=Object(N.a)(Ae,2),Ke=Ve[0],Oe=Ve[1];return[j({height:ce,lockOffset:Ke,width:ne}),j({height:ce,lockOffset:Oe,width:ne})]}function W(Ee){var ce=window.getComputedStyle(Ee),ne=/(auto|scroll)/,ee=["overflow","overflowX","overflowY"];return ee.find(function(Ae){return ne.test(ce[Ae])})}function G(Ee){return Ee instanceof HTMLElement?W(Ee)?Ee:G(Ee.parentNode):null}function V(Ee){var ce=window.getComputedStyle(Ee);return ce.display==="grid"?{x:O(ce.gridColumnGap),y:O(ce.gridRowGap)}:{x:0,y:0}}var Z={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},Y={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Q(Ee){var ce="input, textarea, select, canvas, [contenteditable]",ne=Ee.querySelectorAll(ce),ee=Ee.cloneNode(!0),Ae=Object(d.a)(ee.querySelectorAll(ce));return Ae.forEach(function(Ve,Ke){if(Ve.type!=="file"&&(Ve.value=ne[Ke].value),Ve.type==="radio"&&Ve.name&&(Ve.name="__sortableClone__".concat(Ve.name)),Ve.tagName===Y.Canvas&&ne[Ke].width>0&&ne[Ke].height>0){var Oe=Ve.getContext("2d");Oe.drawImage(ne[Ke],0,0)}}),ee}function oe(Ee){var ce,ne,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ne=ce=function(Ae){Object(f.a)(Ve,Ae);function Ve(){return Object(E.a)(this,Ve),Object(o.a)(this,Object(m.a)(Ve).apply(this,arguments))}return Object(I.a)(Ve,[{key:"componentDidMount",value:function(){var Oe=Object(e.findDOMNode)(this);Oe.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return c()(ee.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 Oe=ee.withRef?"wrappedInstance":null;return Object(l.createElement)(Ee,Object(D.a)({ref:Oe},this.props))}}]),Ve}(l.Component),Object(t.a)(ce,"displayName",M("sortableHandle",Ee)),ne}function ue(Ee){return Ee.sortableHandle!=null}var Le=function(){function Ee(ce,ne){Object(E.a)(this,Ee),this.container=ce,this.onScrollCallback=ne}return Object(I.a)(Ee,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(ne){var ee=this,Ae=ne.translate,Ve=ne.minTranslate,Ke=ne.maxTranslate,Oe=ne.width,it=ne.height,Fe={x:0,y:0},ft={x:1,y:1},At={x:10,y:10},bt=this.container,St=bt.scrollTop,Et=bt.scrollLeft,je=bt.scrollHeight,pe=bt.scrollWidth,ie=bt.clientHeight,st=bt.clientWidth,Qe=St===0,ve=je-St-ie===0,Bt=Et===0,qt=pe-Et-st===0;Ae.y>=Ke.y-it/2&&!ve?(Fe.y=1,ft.y=At.y*Math.abs((Ke.y-it/2-Ae.y)/it)):Ae.x>=Ke.x-Oe/2&&!qt?(Fe.x=1,ft.x=At.x*Math.abs((Ke.x-Oe/2-Ae.x)/Oe)):Ae.y<=Ve.y+it/2&&!Qe?(Fe.y=-1,ft.y=At.y*Math.abs((Ae.y-it/2-Ve.y)/it)):Ae.x<=Ve.x+Oe/2&&!Bt&&(Fe.x=-1,ft.x=At.x*Math.abs((Ae.x-Oe/2-Ve.x)/Oe)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(Fe.x!==0||Fe.y!==0)&&(this.interval=setInterval(function(){ee.isAutoScrolling=!0;var ct={left:ft.x*Fe.x,top:ft.y*Fe.y};ee.container.scrollTop+=ct.top,ee.container.scrollLeft+=ct.left,ee.onScrollCallback(ct)},5))}}]),Ee}();function me(Ee){var ce=Ee.node;return{height:ce.offsetHeight,width:ce.offsetWidth}}function Ie(Ee){var ce=[Y.Input,Y.Textarea,Y.Select,Y.Option,Y.Button];return ce.indexOf(Ee.target.tagName)!==-1?!0:!!T(Ee.target,function(ne){return ne.contentEditable==="true"})}var X={axis:u.a.oneOf(["x","y","xy"]),contentWindow:u.a.any,disableAutoscroll:u.a.bool,distance:u.a.number,getContainer:u.a.func,getHelperDimensions:u.a.func,helperClass:u.a.string,helperContainer:u.a.oneOfType([u.a.func,typeof HTMLElement=="undefined"?u.a.any:u.a.instanceOf(HTMLElement)]),hideSortableGhost:u.a.bool,keyboardSortingTransitionDuration:u.a.number,lockAxis:u.a.string,lockOffset:u.a.oneOfType([u.a.number,u.a.string,u.a.arrayOf(u.a.oneOfType([u.a.number,u.a.string]))]),lockToContainerEdges:u.a.bool,onSortEnd:u.a.func,onSortMove:u.a.func,onSortOver:u.a.func,onSortStart:u.a.func,pressDelay:u.a.number,pressThreshold:u.a.number,keyCodes:u.a.shape({lift:u.a.arrayOf(u.a.number),drop:u.a.arrayOf(u.a.number),cancel:u.a.arrayOf(u.a.number),up:u.a.arrayOf(u.a.number),down:u.a.arrayOf(u.a.number)}),shouldCancelStart:u.a.func,transitionDuration:u.a.number,updateBeforeSortStart:u.a.func,useDragHandle:u.a.bool,useWindowAsScrollContainer:u.a.bool},q={lift:[Z.SPACE],drop:[Z.SPACE],cancel:[Z.ESC],up:[Z.UP,Z.LEFT],down:[Z.DOWN,Z.RIGHT]},We={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:me,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:q,shouldCancelStart:Ie,transitionDuration:300,useWindowAsScrollContainer:!1},$=Object.keys(X);function J(Ee){c()(!(Ee.distance&&Ee.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 le(Ee,ce){try{var ne=Ee()}catch(ee){return ce(!0,ee)}return ne&&ne.then?ne.then(ce.bind(null,!1),ce.bind(null,!0)):ce(!1,value)}function de(Ee){var ce,ne,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ne=ce=function(Ae){Object(f.a)(Ve,Ae);function Ve(Ke){var Oe;return Object(E.a)(this,Ve),Oe=Object(o.a)(this,Object(m.a)(Ve).call(this,Ke)),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"state",{}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"handleStart",function(it){var Fe=Oe.props,ft=Fe.distance,At=Fe.shouldCancelStart;if(it.button===2||At(it))return;Oe.touched=!0,Oe.position=R(it);var bt=T(it.target,function(st){return st.sortableInfo!=null});if(bt&&bt.sortableInfo&&Oe.nodeIsChild(bt)&&!Oe.state.sorting){var St=Oe.props.useDragHandle,Et=bt.sortableInfo,je=Et.index,pe=Et.collection,ie=Et.disabled;if(ie)return;if(St&&!T(it.target,ue))return;Oe.manager.active={collection:pe,index:je},!B(it)&&it.target.tagName===Y.Anchor&&it.preventDefault(),ft||(Oe.props.pressDelay===0?Oe.handlePress(it):Oe.pressTimer=setTimeout(function(){return Oe.handlePress(it)},Oe.props.pressDelay))}}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"nodeIsChild",function(it){return it.sortableInfo.manager===Oe.manager}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"handleMove",function(it){var Fe=Oe.props,ft=Fe.distance,At=Fe.pressThreshold;if(!Oe.state.sorting&&Oe.touched&&!Oe._awaitingUpdateBeforeSortStart){var bt=R(it),St={x:Oe.position.x-bt.x,y:Oe.position.y-bt.y},Et=Math.abs(St.x)+Math.abs(St.y);Oe.delta=St,!ft&&(!At||Et>=At)?(clearTimeout(Oe.cancelTimer),Oe.cancelTimer=setTimeout(Oe.cancel,0)):ft&&Et>=ft&&Oe.manager.isActive()&&Oe.handlePress(it)}}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"handleEnd",function(){Oe.touched=!1,Oe.cancel()}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"cancel",function(){var it=Oe.props.distance,Fe=Oe.state.sorting;Fe||(it||clearTimeout(Oe.pressTimer),Oe.manager.active=null)}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"handlePress",function(it){try{var Fe=Oe.manager.getActive(),ft=function(){if(Fe){var At=function(){var or=ve.sortableInfo.index,Fr=_(ve),er=V(Oe.container),nr=Oe.scrollContainer.getBoundingClientRect(),Ot=Et({index:or,node:ve,collection:Bt});if(Oe.node=ve,Oe.margin=Fr,Oe.gridGap=er,Oe.width=Ot.width,Oe.height=Ot.height,Oe.marginOffset={x:Oe.margin.left+Oe.margin.right+Oe.gridGap.x,y:Math.max(Oe.margin.top,Oe.margin.bottom,Oe.gridGap.y)},Oe.boundingClientRect=ve.getBoundingClientRect(),Oe.containerBoundingRect=nr,Oe.index=or,Oe.newIndex=or,Oe.axis={x:St.indexOf("x")>=0,y:St.indexOf("y")>=0},Oe.offsetEdge=P(ve,Oe.container),qt?Oe.initialOffset=R(Object(L.a)({},it,{pageX:Oe.boundingClientRect.left,pageY:Oe.boundingClientRect.top})):Oe.initialOffset=R(it),Oe.initialScroll={left:Oe.scrollContainer.scrollLeft,top:Oe.scrollContainer.scrollTop},Oe.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Oe.helper=Oe.helperContainer.appendChild(Q(ve)),b(Oe.helper,{boxSizing:"border-box",height:"".concat(Oe.height,"px"),left:"".concat(Oe.boundingClientRect.left-Fr.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Oe.boundingClientRect.top-Fr.top,"px"),width:"".concat(Oe.width,"px")}),qt&&Oe.helper.focus(),pe&&(Oe.sortableGhost=ve,b(ve,{opacity:0,visibility:"hidden"})),Oe.minTranslate={},Oe.maxTranslate={},qt){var lt=Qe?{top:0,left:0,width:Oe.contentWindow.innerWidth,height:Oe.contentWindow.innerHeight}:Oe.containerBoundingRect,qe=lt.top,tr=lt.left,xr=lt.width,Ar=lt.height,fr=qe+Ar,vn=tr+xr;Oe.axis.x&&(Oe.minTranslate.x=tr-Oe.boundingClientRect.left,Oe.maxTranslate.x=vn-(Oe.boundingClientRect.left+Oe.width)),Oe.axis.y&&(Oe.minTranslate.y=qe-Oe.boundingClientRect.top,Oe.maxTranslate.y=fr-(Oe.boundingClientRect.top+Oe.height))}else Oe.axis.x&&(Oe.minTranslate.x=(Qe?0:nr.left)-Oe.boundingClientRect.left-Oe.width/2,Oe.maxTranslate.x=(Qe?Oe.contentWindow.innerWidth:nr.left+nr.width)-Oe.boundingClientRect.left-Oe.width/2),Oe.axis.y&&(Oe.minTranslate.y=(Qe?0:nr.top)-Oe.boundingClientRect.top-Oe.height/2,Oe.maxTranslate.y=(Qe?Oe.contentWindow.innerHeight:nr.top+nr.height)-Oe.boundingClientRect.top-Oe.height/2);je&&je.split(" ").forEach(function($r){return Oe.helper.classList.add($r)}),Oe.listenerNode=it.touches?ve:Oe.contentWindow,qt?(Oe.listenerNode.addEventListener("wheel",Oe.handleKeyEnd,!0),Oe.listenerNode.addEventListener("mousedown",Oe.handleKeyEnd,!0),Oe.listenerNode.addEventListener("keydown",Oe.handleKeyDown)):(A.move.forEach(function($r){return Oe.listenerNode.addEventListener($r,Oe.handleSortMove,!1)}),A.end.forEach(function($r){return Oe.listenerNode.addEventListener($r,Oe.handleSortEnd,!1)})),Oe.setState({sorting:!0,sortingIndex:or}),st&&st({node:ve,index:or,collection:Bt,isKeySorting:qt,nodes:Oe.manager.getOrderedRefs(),helper:Oe.helper},it),qt&&Oe.keyMove(0)},bt=Oe.props,St=bt.axis,Et=bt.getHelperDimensions,je=bt.helperClass,pe=bt.hideSortableGhost,ie=bt.updateBeforeSortStart,st=bt.onSortStart,Qe=bt.useWindowAsScrollContainer,ve=Fe.node,Bt=Fe.collection,qt=Oe.manager.isKeySorting,ct=function(){if(typeof ie=="function"){Oe._awaitingUpdateBeforeSortStart=!0;var Wt=le(function(){var or=ve.sortableInfo.index;return Promise.resolve(ie({collection:Bt,index:or,node:ve,isKeySorting:qt},it)).then(function(){})},function(or,Fr){if(Oe._awaitingUpdateBeforeSortStart=!1,or)throw Fr;return Fr});if(Wt&&Wt.then)return Wt.then(function(){})}}();return ct&&ct.then?ct.then(At):At(ct)}}();return Promise.resolve(ft&&ft.then?ft.then(function(){}):void 0)}catch(At){return Promise.reject(At)}}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"handleSortMove",function(it){var Fe=Oe.props.onSortMove;typeof it.preventDefault=="function"&&it.preventDefault(),Oe.updateHelperPosition(it),Oe.animateNodes(),Oe.autoscroll(),Fe&&Fe(it)}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"handleSortEnd",function(it){var Fe=Oe.props,ft=Fe.hideSortableGhost,At=Fe.onSortEnd,bt=Oe.manager,St=bt.active.collection,Et=bt.isKeySorting,je=Oe.manager.getOrderedRefs();Oe.listenerNode&&(Et?(Oe.listenerNode.removeEventListener("wheel",Oe.handleKeyEnd,!0),Oe.listenerNode.removeEventListener("mousedown",Oe.handleKeyEnd,!0),Oe.listenerNode.removeEventListener("keydown",Oe.handleKeyDown)):(A.move.forEach(function(ve){return Oe.listenerNode.removeEventListener(ve,Oe.handleSortMove)}),A.end.forEach(function(ve){return Oe.listenerNode.removeEventListener(ve,Oe.handleSortEnd)}))),Oe.helper.parentNode.removeChild(Oe.helper),ft&&Oe.sortableGhost&&b(Oe.sortableGhost,{opacity:"",visibility:""});for(var pe=0,ie=je.length;pe<ie;pe++){var st=je[pe],Qe=st.node;st.edgeOffset=null,st.boundingClientRect=null,w(Qe,null),S(Qe,null),st.translate=null}Oe.autoScroller.clear(),Oe.manager.active=null,Oe.manager.isKeySorting=!1,Oe.setState({sorting:!1,sortingIndex:null}),typeof At=="function"&&At({collection:St,newIndex:Oe.newIndex,oldIndex:Oe.index,isKeySorting:Et,nodes:je},it),Oe.touched=!1}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"autoscroll",function(){var it=Oe.props.disableAutoscroll,Fe=Oe.manager.isKeySorting;if(it){Oe.autoScroller.clear();return}if(Fe){var ft=Object(L.a)({},Oe.translate),At=0,bt=0;Oe.axis.x&&(ft.x=Math.min(Oe.maxTranslate.x,Math.max(Oe.minTranslate.x,Oe.translate.x)),At=Oe.translate.x-ft.x),Oe.axis.y&&(ft.y=Math.min(Oe.maxTranslate.y,Math.max(Oe.minTranslate.y,Oe.translate.y)),bt=Oe.translate.y-ft.y),Oe.translate=ft,w(Oe.helper,Oe.translate),Oe.scrollContainer.scrollLeft+=At,Oe.scrollContainer.scrollTop+=bt;return}Oe.autoScroller.update({height:Oe.height,maxTranslate:Oe.maxTranslate,minTranslate:Oe.minTranslate,translate:Oe.translate,width:Oe.width})}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"onAutoScroll",function(it){Oe.translate.x+=it.left,Oe.translate.y+=it.top,Oe.animateNodes()}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"handleKeyDown",function(it){var Fe=it.keyCode,ft=Oe.props,At=ft.shouldCancelStart,bt=ft.keyCodes,St=bt===void 0?{}:bt,Et=Object(L.a)({},q,St);if(Oe.manager.active&&!Oe.manager.isKeySorting||!Oe.manager.active&&(!Et.lift.includes(Fe)||At(it)||!Oe.isValidSortingTarget(it)))return;it.stopPropagation(),it.preventDefault(),Et.lift.includes(Fe)&&!Oe.manager.active?Oe.keyLift(it):Et.drop.includes(Fe)&&Oe.manager.active?Oe.keyDrop(it):Et.cancel.includes(Fe)?(Oe.newIndex=Oe.manager.active.index,Oe.keyDrop(it)):Et.up.includes(Fe)?Oe.keyMove(-1):Et.down.includes(Fe)&&Oe.keyMove(1)}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"keyLift",function(it){var Fe=it.target,ft=T(Fe,function(Et){return Et.sortableInfo!=null}),At=ft.sortableInfo,bt=At.index,St=At.collection;Oe.initialFocusedNode=Fe,Oe.manager.isKeySorting=!0,Oe.manager.active={index:bt,collection:St},Oe.handlePress(it)}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"keyMove",function(it){var Fe=Oe.manager.getOrderedRefs(),ft=Fe[Fe.length-1].node.sortableInfo.index,At=Oe.newIndex+it,bt=Oe.newIndex;if(At<0||At>ft)return;Oe.prevIndex=bt,Oe.newIndex=At;var St=U(Oe.newIndex,Oe.prevIndex,Oe.index),Et=Fe.find(function(qt){var ct=qt.node;return ct.sortableInfo.index===St}),je=Et.node,pe=Oe.containerScrollDelta,ie=Et.boundingClientRect||k(je,pe),st=Et.translate||{x:0,y:0},Qe={top:ie.top+st.y-pe.top,left:ie.left+st.x-pe.left},ve=bt<At,Bt={x:ve&&Oe.axis.x?je.offsetWidth-Oe.width:0,y:ve&&Oe.axis.y?je.offsetHeight-Oe.height:0};Oe.handleSortMove({pageX:Qe.left+Bt.x,pageY:Qe.top+Bt.y,ignoreTransition:it===0})}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"keyDrop",function(it){Oe.handleSortEnd(it),Oe.initialFocusedNode&&Oe.initialFocusedNode.focus()}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"handleKeyEnd",function(it){Oe.manager.active&&Oe.keyDrop(it)}),Object(t.a)(Object(s.a)(Object(s.a)(Oe)),"isValidSortingTarget",function(it){var Fe=Oe.props.useDragHandle,ft=it.target,At=T(ft,function(bt){return bt.sortableInfo!=null});return At&&At.sortableInfo&&!At.sortableInfo.disabled&&(Fe?ue(ft):ft.sortableInfo)}),J(Ke),Oe.manager=new h,Oe.events={end:Oe.handleEnd,move:Oe.handleMove,start:Oe.handleStart},Oe}return Object(I.a)(Ve,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Oe=this,it=this.props.useWindowAsScrollContainer,Fe=this.getContainer();Promise.resolve(Fe).then(function(ft){Oe.container=ft,Oe.document=Oe.container.ownerDocument||document;var At=Oe.props.contentWindow||Oe.document.defaultView||window;Oe.contentWindow=typeof At=="function"?At():At,Oe.scrollContainer=it?Oe.document.scrollingElement||Oe.document.documentElement:G(Oe.container)||Oe.container,Oe.autoScroller=new Le(Oe.scrollContainer,Oe.onAutoScroll),Object.keys(Oe.events).forEach(function(bt){return A[bt].forEach(function(St){return Oe.container.addEventListener(St,Oe.events[bt],!1)})}),Oe.container.addEventListener("keydown",Oe.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Oe=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(it){return A[it].forEach(function(Fe){return Oe.container.removeEventListener(Fe,Oe.events[it])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Oe){var it=this.props,Fe=it.lockAxis,ft=it.lockOffset,At=it.lockToContainerEdges,bt=it.transitionDuration,St=it.keyboardSortingTransitionDuration,Et=St===void 0?bt:St,je=this.manager.isKeySorting,pe=Oe.ignoreTransition,ie=R(Oe),st={x:ie.x-this.initialOffset.x,y:ie.y-this.initialOffset.y};if(st.y-=window.pageYOffset-this.initialWindowScroll.top,st.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=st,At){var Qe=H({height:this.height,lockOffset:ft,width:this.width}),ve=Object(N.a)(Qe,2),Bt=ve[0],qt=ve[1],ct={x:this.width/2-Bt.x,y:this.height/2-Bt.y},Wt={x:this.width/2-qt.x,y:this.height/2-qt.y};st.x=C(this.minTranslate.x+ct.x,this.maxTranslate.x-Wt.x,st.x),st.y=C(this.minTranslate.y+ct.y,this.maxTranslate.y-Wt.y,st.y)}Fe==="x"?st.y=0:Fe==="y"&&(st.x=0),je&&Et&&!pe&&S(this.helper,Et),w(this.helper,st)}},{key:"animateNodes",value:function(){var Oe=this.props,it=Oe.transitionDuration,Fe=Oe.hideSortableGhost,ft=Oe.onSortOver,At=this.containerScrollDelta,bt=this.windowScrollDelta,St=this.manager.getOrderedRefs(),Et={left:this.offsetEdge.left+this.translate.x+At.left,top:this.offsetEdge.top+this.translate.y+At.top},je=this.manager.isKeySorting,pe=this.newIndex;this.newIndex=null;for(var ie=0,st=St.length;ie<st;ie++){var Qe=St[ie].node,ve=Qe.sortableInfo.index,Bt=Qe.offsetWidth,qt=Qe.offsetHeight,ct={height:this.height>qt?qt/2:this.height/2,width:this.width>Bt?Bt/2:this.width/2},Wt=je&&ve>this.index&&ve<=pe,or=je&&ve<this.index&&ve>=pe,Fr={x:0,y:0},er=St[ie].edgeOffset;er||(er=P(Qe,this.container),St[ie].edgeOffset=er,je&&(St[ie].boundingClientRect=k(Qe,At)));var nr=ie<St.length-1&&St[ie+1],Ot=ie>0&&St[ie-1];if(nr&&!nr.edgeOffset&&(nr.edgeOffset=P(nr.node,this.container),je&&(nr.boundingClientRect=k(nr.node,At))),ve===this.index){Fe&&(this.sortableGhost=Qe,b(Qe,{opacity:0,visibility:"hidden"}));continue}it&&S(Qe,it),this.axis.x?this.axis.y?or||ve<this.index&&(Et.left+bt.left-ct.width<=er.left&&Et.top+bt.top<=er.top+ct.height||Et.top+bt.top+ct.height<=er.top)?(Fr.x=this.width+this.marginOffset.x,er.left+Fr.x>this.containerBoundingRect.width-ct.width&&(nr&&(Fr.x=nr.edgeOffset.left-er.left,Fr.y=nr.edgeOffset.top-er.top)),this.newIndex===null&&(this.newIndex=ve)):(Wt||ve>this.index&&(Et.left+bt.left+ct.width>=er.left&&Et.top+bt.top+ct.height>=er.top||Et.top+bt.top+ct.height>=er.top+qt))&&(Fr.x=-(this.width+this.marginOffset.x),er.left+Fr.x<this.containerBoundingRect.left+ct.width&&(Ot&&(Fr.x=Ot.edgeOffset.left-er.left,Fr.y=Ot.edgeOffset.top-er.top)),this.newIndex=ve):Wt||ve>this.index&&Et.left+bt.left+ct.width>=er.left?(Fr.x=-(this.width+this.marginOffset.x),this.newIndex=ve):(or||ve<this.index&&Et.left+bt.left<=er.left+ct.width)&&(Fr.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=ve)):this.axis.y&&(Wt||ve>this.index&&Et.top+bt.top+ct.height>=er.top?(Fr.y=-(this.height+this.marginOffset.y),this.newIndex=ve):(or||ve<this.index&&Et.top+bt.top<=er.top+ct.height)&&(Fr.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=ve))),w(Qe,Fr),St[ie].translate=Fr}this.newIndex==null&&(this.newIndex=this.index),je&&(this.newIndex=pe);var lt=je?this.prevIndex:pe;ft&&this.newIndex!==lt&&ft({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:lt,isKeySorting:je,nodes:St,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return c()(ee.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 Oe=this.props.getContainer;return typeof Oe!="function"?Object(e.findDOMNode)(this):Oe(ee.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Oe=ee.withRef?"wrappedInstance":null;return Object(l.createElement)(Ee,Object(D.a)({ref:Oe},v(this.props,$)))}},{key:"helperContainer",get:function(){var Oe=this.props.helperContainer;return typeof Oe=="function"?Oe():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Oe=this.props.useWindowAsScrollContainer;return Oe?{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}}}]),Ve}(l.Component),Object(t.a)(ce,"displayName",M("sortableList",Ee)),Object(t.a)(ce,"defaultProps",We),Object(t.a)(ce,"propTypes",X),Object(t.a)(ce,"childContextTypes",{manager:u.a.object.isRequired}),ne}var Ne={index:u.a.number.isRequired,collection:u.a.oneOfType([u.a.number,u.a.string]),disabled:u.a.bool},we=Object.keys(Ne);function De(Ee){var ce,ne,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ne=ce=function(Ae){Object(f.a)(Ve,Ae);function Ve(){return Object(E.a)(this,Ve),Object(o.a)(this,Object(m.a)(Ve).apply(this,arguments))}return Object(I.a)(Ve,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Oe){this.node&&(Oe.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Oe.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Oe.collection!==this.props.collection&&(this.unregister(Oe.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Oe=this.props,it=Oe.collection,Fe=Oe.disabled,ft=Oe.index,At=Object(e.findDOMNode)(this);At.sortableInfo={collection:it,disabled:Fe,index:ft,manager:this.context.manager},this.node=At,this.ref={node:At},this.context.manager.add(it,this.ref)}},{key:"unregister",value:function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Oe,this.ref)}},{key:"getWrappedInstance",value:function(){return c()(ee.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 Oe=ee.withRef?"wrappedInstance":null;return Object(l.createElement)(Ee,Object(D.a)({ref:Oe},v(this.props,we)))}}]),Ve}(l.Component),Object(t.a)(ce,"displayName",M("sortableElement",Ee)),Object(t.a)(ce,"contextTypes",{manager:u.a.object.isRequired}),Object(t.a)(ce,"propTypes",Ne),Object(t.a)(ce,"defaultProps",{collection:0}),ne}},YNAk:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("QyFq")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="CaretDownFilled";var f=E.forwardRef(m);z.default=f},YNf1:function(fe,z,y){var D=y("IwbS"),N=y("6Ic6"),L=.3,E=N.extend({type:"parallel",init:function(){this._dataGroup=new D.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(a,r,u,e){var n=this._dataGroup,i=a.getData(),c=this._data,d=a.coordinateSystem,h=d.dimensions,p=f(a);i.diff(c).add(g).update(v).remove(A).execute();function g(b){var w=m(i,n,b,h,d);s(w,i,b,p)}function v(b,w){var S=c.getItemGraphicEl(w),T=o(i,b,h,d);i.setItemGraphicEl(b,S);var C=e&&e.animation===!1?null:a;D.updateProps(S,{shape:{points:T}},C,b),s(S,i,b,p)}function A(b){var w=c.getItemGraphicEl(b);n.remove(w)}if(!this._initialized){this._initialized=!0;var x=I(d,a,function(){setTimeout(function(){n.removeClipPath()})});n.setClipPath(x)}this._data=i},incrementalPrepareRender:function(a,r,u){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(a,r,u){for(var e=r.getData(),n=r.coordinateSystem,i=n.dimensions,c=f(r),d=a.start;d<a.end;d++){var h=m(e,this._dataGroup,d,i,n);h.incremental=!0,s(h,e,d,c)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function I(a,r,u){var e=a.model,n=a.getRect(),i=new D.Rect({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),c=e.get("layout")==="horizontal"?"width":"height";return i.setShape(c,0),D.initProps(i,{shape:{width:n.width,height:n.height}},r,u),i}function o(a,r,u,e){for(var n=[],i=0;i<u.length;i++){var c=u[i],d=a.get(a.mapDimension(c),r);t(d,e.getAxis(c).type)||n.push(e.dataToPoint(d,c))}return n}function m(a,r,u,e,n){var i=o(a,u,e,n),c=new D.Polyline({shape:{points:i},silent:!0,z2:10});return r.add(c),a.setItemGraphicEl(u,c),c}function f(a){var r=a.get("smooth",!0);return r===!0&&(r=L),{lineStyle:a.getModel("lineStyle").getLineStyle(),smooth:r!=null?r:L}}function s(a,r,u,e){var n=e.lineStyle;if(r.hasItemOption){var i=r.getItemModel(u).getModel("lineStyle");n=i.getLineStyle()}a.useStyle(n);var c=a.style;c.fill=null,c.stroke=r.getItemVisual(u,"color"),c.opacity=r.getItemVisual(u,"opacity"),e.smooth&&(a.shape.smooth=e.smooth)}function t(a,r){return r==="category"?a==null:a==null||isNaN(a)}var l=E;fe.exports=l},YOMW:function(fe,z,y){var D=y("bYtY"),N={get:function(I,o,m){var f=D.clone((L[I]||{})[o]);return m&&D.isArray(f)?f[f.length-1]:f}},L={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]}},E=N;fe.exports=E},YXkt:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("Qxkt"),I=y("gPAo"),o=y("7G+c"),m=y("KxfA"),f=m.defaultDimValueGetters,s=m.DefaultDataProvider,t=y("L0Ub"),l=t.summarizeDimensions,a=y("Vi4m"),r=L.isObject,u="undefined",e=-1,n="e\0\0",i={float:typeof Float64Array===u?Array:Float64Array,int:typeof Int32Array===u?Array:Int32Array,ordinal:Array,number:Array,time:Array},c=typeof Uint32Array===u?Array:Uint32Array,d=typeof Int32Array===u?Array:Int32Array,h=typeof Uint16Array===u?Array:Uint16Array;function p(W){return W._rawCount>65535?c:h}function g(W){var G=W.constructor;return G===Array?W.slice():new G(W)}var v=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],A=["_extent","_approximateExtent","_rawExtent"];function x(W,G){L.each(v.concat(G.__wrappedMethods||[]),function(V){G.hasOwnProperty(V)&&(W[V]=G[V])}),W.__wrappedMethods=G.__wrappedMethods,L.each(A,function(V){W[V]=L.clone(G[V])}),W._calculationInfo=L.extend(G._calculationInfo)}var b=function(W,G){W=W||["x","y"];for(var V={},Z=[],Y={},Q=0;Q<W.length;Q++){var oe=W[Q];L.isString(oe)?oe=new a({name:oe}):oe instanceof a||(oe=new a(oe));var ue=oe.name;oe.type=oe.type||"float",oe.coordDim||(oe.coordDim=ue,oe.coordDimIndex=0),oe.otherDims=oe.otherDims||{},Z.push(ue),V[ue]=oe,oe.index=Q,oe.createInvertedIndices&&(Y[ue]=[])}this.dimensions=Z,this._dimensionInfos=V,this.hostModel=G,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=l(this),this._invertedIndicesMap=Y,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},w=b.prototype;w.type="list",w.hasItemOption=!0,w.getDimension=function(W){return(typeof W=="number"||!isNaN(W)&&!this._dimensionInfos.hasOwnProperty(W))&&(W=this.dimensions[W]),W},w.getDimensionInfo=function(W){return this._dimensionInfos[this.getDimension(W)]},w.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},w.mapDimension=function(W,G){var V=this._dimensionsSummary;if(G==null)return V.encodeFirstDimNotExtra[W];var Z=V.encode[W];return G===!0?(Z||[]).slice():Z&&Z[G]},w.initData=function(W,G,V){var Z=o.isInstance(W)||L.isArrayLike(W);Z&&(W=new s(W,this.dimensions.length)),this._rawData=W,this._storage={},this._indices=null,this._nameList=G||[],this._idList=[],this._nameRepeatCount={},V||(this.hasItemOption=!1),this.defaultDimValueGetter=f[this._rawData.getSource().sourceFormat],this._dimValueGetter=V=V||this.defaultDimValueGetter,this._dimValueGetterArrayRows=f.arrayRows,this._rawExtent={},this._initDataFromProvider(0,W.count()),W.pure&&(this.hasItemOption=!1)},w.getProvider=function(){return this._rawData},w.appendData=function(W){var G=this._rawData,V=this.count();G.appendData(W);var Z=G.count();G.persistent||(Z+=V),this._initDataFromProvider(V,Z)},w.appendValues=function(W,G){for(var V=this._chunkSize,Z=this._storage,Y=this.dimensions,Q=Y.length,oe=this._rawExtent,ue=this.count(),Le=ue+Math.max(W.length,G?G.length:0),me=this._chunkCount,Ie=0;Ie<Q;Ie++){var X=Y[Ie];oe[X]||(oe[X]=U()),Z[X]||(Z[X]=[]),S(Z,this._dimensionInfos[X],V,me,Le),this._chunkCount=Z[X].length}for(var q=new Array(Q),We=ue;We<Le;We++){for(var $=We-ue,J=Math.floor(We/V),le=We%V,de=0;de<Q;de++){var X=Y[de],Ne=this._dimValueGetterArrayRows(W[$]||q,X,$,de);Z[X][J][le]=Ne;var we=oe[X];Ne<we[0]&&(we[0]=Ne),Ne>we[1]&&(we[1]=Ne)}G&&(this._nameList[We]=G[$])}this._rawCount=this._count=Le,this._extent={},T(this)},w._initDataFromProvider=function(W,G){if(W>=G)return;for(var V=this._chunkSize,Z=this._rawData,Y=this._storage,Q=this.dimensions,oe=Q.length,ue=this._dimensionInfos,Le=this._nameList,me=this._idList,Ie=this._rawExtent,X=this._nameRepeatCount={},q,We=this._chunkCount,$=0;$<oe;$++){var J=Q[$];Ie[J]||(Ie[J]=U());var le=ue[J];le.otherDims.itemName===0&&(q=this._nameDimIdx=$),le.otherDims.itemId===0&&(this._idDimIdx=$),Y[J]||(Y[J]=[]),S(Y,le,V,We,G),this._chunkCount=Y[J].length}for(var de=new Array(oe),Ne=W;Ne<G;Ne++){de=Z.getItem(Ne,de);for(var we=Math.floor(Ne/V),De=Ne%V,Ee=0;Ee<oe;Ee++){var J=Q[Ee],ce=Y[J][we],ne=this._dimValueGetter(de,J,Ne,Ee);ce[De]=ne;var ee=Ie[J];ne<ee[0]&&(ee[0]=ne),ne>ee[1]&&(ee[1]=ne)}if(!Z.pure){var Ae=Le[Ne];if(de&&Ae==null){if(de.name!=null)Le[Ne]=Ae=de.name;else if(q!=null){var Ve=Q[q],Ke=Y[Ve][we];if(Ke){Ae=Ke[De];var Oe=ue[Ve].ordinalMeta;Oe&&Oe.categories.length&&(Ae=Oe.categories[Ae])}}}var it=de==null?null:de.id;it==null&&Ae!=null&&(X[Ae]=X[Ae]||0,it=Ae,X[Ae]>0&&(it+="__ec__"+X[Ae]),X[Ae]++),it!=null&&(me[Ne]=it)}}!Z.persistent&&Z.clean&&Z.clean(),this._rawCount=this._count=G,this._extent={},T(this)};function S(W,G,V,Z,Y){var Q=i[G.type],oe=Z-1,ue=G.name,Le=W[ue][oe];if(Le&&Le.length<V){for(var me=new Q(Math.min(Y-oe*V,V)),Ie=0;Ie<Le.length;Ie++)me[Ie]=Le[Ie];W[ue][oe]=me}for(var X=Z*V;X<Y;X+=V)W[ue].push(new Q(Math.min(Y-X,V)))}function T(W){var G=W._invertedIndicesMap;L.each(G,function(V,Z){var Y=W._dimensionInfos[Z],Q=Y.ordinalMeta;if(Q){V=G[Z]=new d(Q.categories.length);for(var oe=0;oe<V.length;oe++)V[oe]=e;for(var oe=0;oe<W._count;oe++)V[W.get(Z,oe)]=oe}})}function C(W,G,V){var Z;if(G!=null){var Y=W._chunkSize,Q=Math.floor(V/Y),oe=V%Y,ue=W.dimensions[G],Le=W._storage[ue][Q];if(Le){Z=Le[oe];var me=W._dimensionInfos[ue].ordinalMeta;me&&me.categories.length&&(Z=me.categories[Z])}}return Z}w.count=function(){return this._count},w.getIndices=function(){var W,G=this._indices;if(G){var V=G.constructor,Z=this._count;if(V===Array){W=new V(Z);for(var Y=0;Y<Z;Y++)W[Y]=G[Y]}else W=new V(G.buffer,0,Z)}else for(var V=p(this),W=new V(this.count()),Y=0;Y<W.length;Y++)W[Y]=Y;return W},w.get=function(W,G){if(!(G>=0&&G<this._count))return NaN;var V=this._storage;if(!V[W])return NaN;G=this.getRawIndex(G);var Z=Math.floor(G/this._chunkSize),Y=G%this._chunkSize,Q=V[W][Z],oe=Q[Y];return oe},w.getByRawIndex=function(W,G){if(!(G>=0&&G<this._rawCount))return NaN;var V=this._storage[W];if(!V)return NaN;var Z=Math.floor(G/this._chunkSize),Y=G%this._chunkSize,Q=V[Z];return Q[Y]},w._getFast=function(W,G){var V=Math.floor(G/this._chunkSize),Z=G%this._chunkSize,Y=this._storage[W][V];return Y[Z]},w.getValues=function(W,G){var V=[];L.isArray(W)||(G=W,W=this.dimensions);for(var Z=0,Y=W.length;Z<Y;Z++)V.push(this.get(W[Z],G));return V},w.hasValue=function(W){for(var G=this._dimensionsSummary.dataDimsOnCoord,V=0,Z=G.length;V<Z;V++)if(isNaN(this.get(G[V],W)))return!1;return!0},w.getDataExtent=function(W){W=this.getDimension(W);var G=this._storage[W],V=U();if(!G)return V;var Z=this.count(),Y=!this._indices,Q;if(Y)return this._rawExtent[W].slice();if(Q=this._extent[W],Q)return Q.slice();Q=V;for(var oe=Q[0],ue=Q[1],Le=0;Le<Z;Le++){var me=this._getFast(W,this.getRawIndex(Le));me<oe&&(oe=me),me>ue&&(ue=me)}return Q=[oe,ue],this._extent[W]=Q,Q},w.getApproximateExtent=function(W){return W=this.getDimension(W),this._approximateExtent[W]||this.getDataExtent(W)},w.setApproximateExtent=function(W,G){G=this.getDimension(G),this._approximateExtent[G]=W.slice()},w.getCalculationInfo=function(W){return this._calculationInfo[W]},w.setCalculationInfo=function(W,G){r(W)?L.extend(this._calculationInfo,W):this._calculationInfo[W]=G},w.getSum=function(W){var G=this._storage[W],V=0;if(G)for(var Z=0,Y=this.count();Z<Y;Z++){var Q=this.get(W,Z);isNaN(Q)||(V+=Q)}return V},w.getMedian=function(W){var G=[];this.each(W,function(Y,Q){isNaN(Y)||G.push(Y)});var V=[].concat(G).sort(function(Y,Q){return Y-Q}),Z=this.count();return Z===0?0:Z%2===1?V[(Z-1)/2]:(V[Z/2]+V[Z/2-1])/2},w.rawIndexOf=function(W,G){var V=W&&this._invertedIndicesMap[W],Z=V[G];return Z==null||isNaN(Z)?e:Z},w.indexOfName=function(W){for(var G=0,V=this.count();G<V;G++)if(this.getName(G)===W)return G;return-1},w.indexOfRawIndex=function(W){if(W>=this._rawCount||W<0)return-1;if(!this._indices)return W;var G=this._indices,V=G[W];if(V!=null&&V<this._count&&V===W)return W;for(var Z=0,Y=this._count-1;Z<=Y;){var Q=(Z+Y)/2|0;if(G[Q]<W)Z=Q+1;else if(G[Q]>W)Y=Q-1;else return Q}return-1},w.indicesOfNearest=function(W,G,V){var Z=this._storage,Y=Z[W],Q=[];if(!Y)return Q;V==null&&(V=Infinity);for(var oe=Infinity,ue=-1,Le=0,me=0,Ie=this.count();me<Ie;me++){var X=G-this.get(W,me),q=Math.abs(X);q<=V&&((q<oe||q===oe&&X>=0&&ue<0)&&(oe=q,ue=X,Le=0),X===ue&&(Q[Le++]=me))}return Q.length=Le,Q},w.getRawIndex=O;function O(W){return W}function _(W){return W<this._count&&W>=0?this._indices[W]:-1}w.getRawDataItem=function(W){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(W));for(var G=[],V=0;V<this.dimensions.length;V++){var Z=this.dimensions[V];G.push(this.get(Z,W))}return G},w.getName=function(W){var G=this.getRawIndex(W);return this._nameList[G]||C(this,this._nameDimIdx,G)||""},w.getId=function(W){return M(this,this.getRawIndex(W))};function M(W,G){var V=W._idList[G];return V==null&&(V=C(W,W._idDimIdx,G)),V==null&&(V=n+G),V}function k(W){return L.isArray(W)||(W=[W]),W}function R(W,G){for(var V=0;V<G.length;V++)W._dimensionInfos[G[V]]||console.error("Unkown dimension "+G[V])}w.each=function(W,G,V,Z){"use strict";if(!this._count)return;typeof W=="function"&&(Z=V,V=G,G=W,W=[]),V=V||Z||this,W=L.map(k(W),this.getDimension,this);for(var Y=W.length,Q=0;Q<this.count();Q++)switch(Y){case 0:G.call(V,Q);break;case 1:G.call(V,this.get(W[0],Q),Q);break;case 2:G.call(V,this.get(W[0],Q),this.get(W[1],Q),Q);break;default:for(var oe=0,ue=[];oe<Y;oe++)ue[oe]=this.get(W[oe],Q);ue[oe]=Q,G.apply(V,ue)}},w.filterSelf=function(W,G,V,Z){"use strict";if(!this._count)return;typeof W=="function"&&(Z=V,V=G,G=W,W=[]),V=V||Z||this,W=L.map(k(W),this.getDimension,this);for(var Y=this.count(),Q=p(this),oe=new Q(Y),ue=[],Le=W.length,me=0,Ie=W[0],X=0;X<Y;X++){var q,We=this.getRawIndex(X);if(Le===0)q=G.call(V,X);else if(Le===1){var $=this._getFast(Ie,We);q=G.call(V,$,X)}else{for(var J=0;J<Le;J++)ue[J]=this._getFast(Ie,We);ue[J]=X,q=G.apply(V,ue)}q&&(oe[me++]=We)}return me<Y&&(this._indices=oe),this._count=me,this._extent={},this.getRawIndex=this._indices?_:O,this},w.selectRange=function(W){"use strict";if(!this._count)return;var G=[];for(var V in W)W.hasOwnProperty(V)&&G.push(V);var Z=G.length;if(!Z)return;var Y=this.count(),Q=p(this),oe=new Q(Y),ue=0,Le=G[0],me=W[Le][0],Ie=W[Le][1],X=!1;if(!this._indices){var q=0;if(Z===1){for(var We=this._storage[G[0]],$=0;$<this._chunkCount;$++)for(var J=We[$],le=Math.min(this._count-$*this._chunkSize,this._chunkSize),de=0;de<le;de++){var Ne=J[de];(Ne>=me&&Ne<=Ie||isNaN(Ne))&&(oe[ue++]=q),q++}X=!0}else if(Z===2){for(var We=this._storage[Le],we=this._storage[G[1]],De=W[G[1]][0],Ee=W[G[1]][1],$=0;$<this._chunkCount;$++)for(var J=We[$],ce=we[$],le=Math.min(this._count-$*this._chunkSize,this._chunkSize),de=0;de<le;de++){var Ne=J[de],ne=ce[de];(Ne>=me&&Ne<=Ie||isNaN(Ne))&&(ne>=De&&ne<=Ee||isNaN(ne))&&(oe[ue++]=q),q++}X=!0}}if(!X)if(Z===1)for(var de=0;de<Y;de++){var ee=this.getRawIndex(de),Ne=this._getFast(Le,ee);(Ne>=me&&Ne<=Ie||isNaN(Ne))&&(oe[ue++]=ee)}else for(var de=0;de<Y;de++){for(var Ae=!0,ee=this.getRawIndex(de),$=0;$<Z;$++){var Ve=G[$],Ne=this._getFast(V,ee);(Ne<W[Ve][0]||Ne>W[Ve][1])&&(Ae=!1)}Ae&&(oe[ue++]=this.getRawIndex(de))}return ue<Y&&(this._indices=oe),this._count=ue,this._extent={},this.getRawIndex=this._indices?_:O,this},w.mapArray=function(W,G,V,Z){"use strict";typeof W=="function"&&(Z=V,V=G,G=W,W=[]),V=V||Z||this;var Y=[];return this.each(W,function(){Y.push(G&&G.apply(this,arguments))},V),Y};function B(W,G){var V=W.dimensions,Z=new b(L.map(V,W.getDimensionInfo,W),W.hostModel);x(Z,W);for(var Y=Z._storage={},Q=W._storage,oe=0;oe<V.length;oe++){var ue=V[oe];Q[ue]&&(L.indexOf(G,ue)>=0?(Y[ue]=P(Q[ue]),Z._rawExtent[ue]=U(),Z._extent[ue]=null):Y[ue]=Q[ue])}return Z}function P(W){for(var G=new Array(W.length),V=0;V<W.length;V++)G[V]=g(W[V]);return G}function U(){return[Infinity,-Infinity]}w.map=function(W,G,V,Z){"use strict";V=V||Z||this,W=L.map(k(W),this.getDimension,this);var Y=B(this,W);Y._indices=this._indices,Y.getRawIndex=Y._indices?_:O;for(var Q=Y._storage,oe=[],ue=this._chunkSize,Le=W.length,me=this.count(),Ie=[],X=Y._rawExtent,q=0;q<me;q++){for(var We=0;We<Le;We++)Ie[We]=this.get(W[We],q);Ie[Le]=q;var $=G&&G.apply(V,Ie);if($!=null){typeof $!="object"&&(oe[0]=$,$=oe);for(var J=this.getRawIndex(q),le=Math.floor(J/ue),de=J%ue,Ne=0;Ne<$.length;Ne++){var we=W[Ne],De=$[Ne],Ee=X[we],ce=Q[we];ce&&(ce[le][de]=De),De<Ee[0]&&(Ee[0]=De),De>Ee[1]&&(Ee[1]=De)}}}return Y},w.downSample=function(W,G,V,Z){for(var Y=B(this,[W]),Q=Y._storage,oe=[],ue=Math.floor(1/G),Le=Q[W],me=this.count(),Ie=this._chunkSize,X=Y._rawExtent[W],q=new(p(this))(me),We=0,$=0;$<me;$+=ue){ue>me-$&&(ue=me-$,oe.length=ue);for(var J=0;J<ue;J++){var le=this.getRawIndex($+J),de=Math.floor(le/Ie),Ne=le%Ie;oe[J]=Le[de][Ne]}var we=V(oe),De=this.getRawIndex(Math.min($+Z(oe,we)||0,me-1)),Ee=Math.floor(De/Ie),ce=De%Ie;Le[Ee][ce]=we,we<X[0]&&(X[0]=we),we>X[1]&&(X[1]=we),q[We++]=De}return Y._count=We,Y._indices=q,Y.getRawIndex=_,Y},w.getItemModel=function(W){var G=this.hostModel;return new E(this.getRawDataItem(W),G,G&&G.ecModel)},w.diff=function(W){var G=this;return new I(W?W.getIndices():[],this.getIndices(),function(V){return M(W,V)},function(V){return M(G,V)})},w.getVisual=function(W){var G=this._visual;return G&&G[W]},w.setVisual=function(W,G){if(r(W)){for(var V in W)W.hasOwnProperty(V)&&this.setVisual(V,W[V]);return}this._visual=this._visual||{},this._visual[W]=G},w.setLayout=function(W,G){if(r(W)){for(var V in W)W.hasOwnProperty(V)&&this.setLayout(V,W[V]);return}this._layout[W]=G},w.getLayout=function(W){return this._layout[W]},w.getItemLayout=function(W){return this._itemLayouts[W]},w.setItemLayout=function(W,G,V){this._itemLayouts[W]=V?L.extend(this._itemLayouts[W]||{},G):G},w.clearItemLayouts=function(){this._itemLayouts.length=0},w.getItemVisual=function(W,G,V){var Z=this._itemVisuals[W],Y=Z&&Z[G];return Y==null&&!V?this.getVisual(G):Y},w.setItemVisual=function(W,G,V){var Z=this._itemVisuals[W]||{},Y=this.hasItemVisual;if(this._itemVisuals[W]=Z,r(G)){for(var Q in G)G.hasOwnProperty(Q)&&(Z[Q]=G[Q],Y[Q]=!0);return}Z[G]=V,Y[G]=!0},w.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var j=function(W){W.seriesIndex=this.seriesIndex,W.dataIndex=this.dataIndex,W.dataType=this.dataType};w.setItemGraphicEl=function(W,G){var V=this.hostModel;G&&(G.dataIndex=W,G.dataType=this.dataType,G.seriesIndex=V&&V.seriesIndex,G.type==="group"&&G.traverse(j,G)),this._graphicEls[W]=G},w.getItemGraphicEl=function(W){return this._graphicEls[W]},w.eachItemGraphicEl=function(W,G){L.each(this._graphicEls,function(V,Z){V&&(W&&W.call(G,V,Z))})},w.cloneShallow=function(W){if(!W){var G=L.map(this.dimensions,this.getDimensionInfo,this);W=new b(G,this.hostModel)}if(W._storage=this._storage,x(W,this),this._indices){var V=this._indices.constructor;W._indices=new V(this._indices)}else W._indices=null;return W.getRawIndex=W._indices?_:O,W},w.wrapMethod=function(W,G){var V=this[W];if(typeof V!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(W),this[W]=function(){var Z=V.apply(this,arguments);return G.apply(this,[Z].concat(L.slice(arguments)))}},w.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],w.CHANGABLE_METHODS=["filterSelf","selectRange"];var H=b;fe.exports=H},YgsL:function(fe,z,y){var D=y("QBsz"),N=D.distance;function L(I,o,m,f,s,t,l){var a=(m-I)*.5,r=(f-o)*.5;return(2*(o-m)+a+r)*l+(-3*(o-m)-2*a-r)*t+a*s+o}function E(I,o){for(var m=I.length,f=[],s=0,t=1;t<m;t++)s+=N(I[t-1],I[t]);var l=s/2;l=l<m?m:l;for(var t=0;t<l;t++){var a=t/(l-1)*(o?m:m-1),r=Math.floor(a),u=a-r,e,n=I[r%m],i,c;o?(e=I[(r-1+m)%m],i=I[(r+1)%m],c=I[(r+2)%m]):(e=I[r===0?r:r-1],i=I[r>m-2?m-1:r+1],c=I[r>m-3?m-1:r+2]);var d=u*u,h=u*d;f.push([L(e[0],n[0],i[0],c[0],u,d,h),L(e[1],n[1],i[1],c[1],u,d,h)])}return f}fe.exports=E},Yl7c:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=".",I="___EC__COMPONENT__CONTAINER___";function o(e){var n={main:"",sub:""};return e&&(e=e.split(E),n.main=e[0]||"",n.sub=e[1]||""),n}function m(e){L.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function f(e,n){e.$constructor=e,e.extend=function(i){var c=this,d=function(){i.$constructor?i.$constructor.apply(this,arguments):c.apply(this,arguments)};return L.extend(d.prototype,i),d.extend=this.extend,d.superCall=l,d.superApply=a,L.inherits(d,this),d.superClass=c,d}}var s=0;function t(e){var n=["__\0is_clz",s++,Math.random().toFixed(3)].join("_");e.prototype[n]=!0,e.isInstance=function(i){return!!(i&&i[n])}}function l(e,n){var i=L.slice(arguments,2);return this.superClass.prototype[n].apply(e,i)}function a(e,n,i){return this.superClass.prototype[n].apply(e,i)}function r(e,n){n=n||{};var i={};e.registerClass=function(h,p){if(p){if(m(p),p=o(p),!p.sub)i[p.main]=h;else if(p.sub!==I){var g=c(p);g[p.sub]=h}}return h},e.getClass=function(h,p,g){var v=i[h];if(v&&v[I]&&(v=p?v[p]:null),g&&!v)throw new Error(p?"Component "+h+"."+(p||"")+" not exists. Load it first.":h+".type should be specified.");return v},e.getClassesByMainType=function(h){h=o(h);var p=[],g=i[h.main];return g&&g[I]?L.each(g,function(v,A){A!==I&&p.push(v)}):p.push(g),p},e.hasClass=function(h){return h=o(h),!!i[h.main]},e.getAllClassMainTypes=function(){var h=[];return L.each(i,function(p,g){h.push(g)}),h},e.hasSubTypes=function(h){h=o(h);var p=i[h.main];return p&&p[I]},e.parseClassType=o;function c(h){var p=i[h.main];return(!p||!p[I])&&(p=i[h.main]={},p[I]=!0),p}if(n.registerWhenExtend){var d=e.extend;d&&(e.extend=function(h){var p=d.call(this,h);return e.registerClass(p,h.type)})}return e}function u(e,n){}z.parseClassType=o,z.enableClassExtend=f,z.enableClassCheck=t,z.enableClassManagement=r,z.setReadOnly=u},Ynxi:function(fe,z,y){var D=y("bYtY"),N=y("ProS"),L=y("IwbS"),E=y("+TT/"),I=E.getLayoutRect,o=y("7aKB"),m=o.windowOpen;N.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"}}}),N.extendComponentView({type:"title",render:function(f,s,t){if(this.group.removeAll(),!f.get("show"))return;var l=this.group,a=f.getModel("textStyle"),r=f.getModel("subtextStyle"),u=f.get("textAlign"),e=D.retrieve2(f.get("textBaseline"),f.get("textVerticalAlign")),n=new L.Text({style:L.setTextStyle({},a,{text:f.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),i=n.getBoundingRect(),c=f.get("subtext"),d=new L.Text({style:L.setTextStyle({},r,{text:c,textFill:r.getTextColor(),y:i.height+f.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),h=f.get("link"),p=f.get("sublink"),g=f.get("triggerEvent",!0);n.silent=!h&&!g,d.silent=!p&&!g,h&&n.on("click",function(){m(h,"_"+f.get("target"))}),p&&d.on("click",function(){m(h,"_"+f.get("subtarget"))}),n.eventData=d.eventData=g?{componentType:"title",componentIndex:f.componentIndex}:null,l.add(n),c&&l.add(d);var v=l.getBoundingRect(),A=f.getBoxLayoutParams();A.width=v.width,A.height=v.height;var x=I(A,{width:t.getWidth(),height:t.getHeight()},f.get("padding"));u||(u=f.get("left")||f.get("right"),u==="middle"&&(u="center"),u==="right"?x.x+=x.width:u==="center"&&(x.x+=x.width/2)),e||(e=f.get("top")||f.get("bottom"),e==="center"&&(e="middle"),e==="bottom"?x.y+=x.height:e==="middle"&&(x.y+=x.height/2),e=e||"top"),l.attr("position",[x.x,x.y]);var b={textAlign:u,textVerticalAlign:e};n.setStyle(b),d.setStyle(b),v=l.getBoundingRect();var w=x.margin,S=f.getItemStyle(["color","opacity"]);S.fill=f.get("backgroundColor");var T=new L.Rect({shape:{x:v.x-w[3],y:v.y-w[0],width:v.width+w[1]+w[3],height:v.height+w[0]+w[2],r:f.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});l.add(T)}})},Ywus:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("DO2E")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="DeleteOutlined";var f=E.forwardRef(m);z.default=f},Z0Lh:function(fe,z,y){"use strict";var D=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var N=D(y("pVnL")),L=D(y("HjOm")),E=D(y("Z6rY")),I={lang:(0,N.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"]},L.default),timePickerLocale:(0,N.default)({},E.default)};I.lang.ok="\u786E \u5B9A";var o=I;z.default=o},Z1HP:function(fe,z,y){var D=y("ycre"),N=y("quyA"),L=y("q4HE");function E(I){return N(I)?L(I):D(I)}fe.exports=E},Z1r0:function(fe,z){function y(D){var N=D.findComponents({mainType:"legend"});if(!N||!N.length)return;D.eachSeriesByType("graph",function(L){var E=L.getCategoriesData(),I=L.getGraph(),o=I.data,m=E.mapArray(E.getName);o.filterSelf(function(f){var s=o.getItemModel(f),t=s.getShallow("category");if(t!=null){typeof t=="number"&&(t=m[t]);for(var l=0;l<N.length;l++)if(!N[l].isSelected(t))return!1}return!0})},this)}fe.exports=y},Z1wy:function(fe,z,y){var D=y("ProS");y("ThAp"),y("pmaE"),y("SehX"),y("7uqq");var N=y("zuHt"),L=y("VPsl"),E=y("9u0u"),I=y("lELe"),o=y("d4KN");D.registerLayout(N),D.registerVisual(L),D.registerProcessor(D.PRIORITY.PROCESSOR.STATISTIC,E),D.registerPreprocessor(I),o("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(fe,z,y){var D=y("MwEJ"),N=y("T4UG"),L=N.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(E,I){return D(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}});fe.exports=L},Z6rY:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},N=D;z.default=N},Z8zF:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("bYtY"),I=y("IwbS"),o=y("56rv"),m=o.setLabel,f=y("Qxkt"),s=y("tceW"),t=y("y+Vt"),l=y("4fz+"),a=y("iLNv"),r=a.throttle,u=y("sK/D"),e=u.createClipPath,n=y("wr5s"),i=["itemStyle","barBorderWidth"],c=[0,0];E.extend(f.prototype,s);function d(j,H){var W=j.getArea&&j.getArea();if(j.type==="cartesian2d"){var G=j.getBaseAxis();if(G.type!=="category"||!G.onBand){var V=H.getLayout("bandWidth");G.isHorizontal()?(W.x-=V,W.width+=V*2):(W.y-=V,W.height+=V*2)}}return W}var h=L.extendChartView({type:"bar",render:function(j,H,W){this._updateDrawMode(j);var G=j.get("coordinateSystem");return(G==="cartesian2d"||G==="polar")&&(this._isLargeDraw?this._renderLarge(j,H,W):this._renderNormal(j,H,W)),this.group},incrementalPrepareRender:function(j,H,W){this._clear(),this._updateDrawMode(j)},incrementalRender:function(j,H,W,G){this._incrementalRenderLarge(j,H)},_updateDrawMode:function(j){var H=j.pipelineContext.large;(this._isLargeDraw==null||H^this._isLargeDraw)&&(this._isLargeDraw=H,this._clear())},_renderNormal:function(j,H,W){var G=this.group,V=j.getData(),Z=this._data,Y=j.coordinateSystem,Q=Y.getBaseAxis(),oe;Y.type==="cartesian2d"?oe=Q.isHorizontal():Y.type==="polar"&&(oe=Q.dim==="angle");var ue=j.isAnimationEnabled()?j:null,Le=j.get("clip",!0),me=d(Y,V);G.removeClipPath();var Ie=j.get("roundCap",!0),X=j.get("showBackground",!0),q=j.getModel("backgroundStyle"),We=q.get("barBorderRadius")||0,$=[],J=this._backgroundEls||[];V.diff(Z).add(function(Ne){var we=V.getItemModel(Ne),De=w[Y.type](V,Ne,we);if(X){var Ee=w[Y.type](V,Ne),ce=U(Y,oe,Ee);ce.useStyle(q.getBarItemStyle()),Y.type==="cartesian2d"&&ce.setShape("r",We),$[Ne]=ce}if(!V.hasValue(Ne))return;if(Le){var ne=v[Y.type](me,De);if(ne){G.remove(ee);return}}var ee=A[Y.type](Ne,De,oe,ue,!1,Ie);V.setItemGraphicEl(Ne,ee),G.add(ee),T(ee,V,Ne,we,De,j,oe,Y.type==="polar")}).update(function(Ne,we){var De=V.getItemModel(Ne),Ee=w[Y.type](V,Ne,De);if(X){var ce=J[we];ce.useStyle(q.getBarItemStyle()),Y.type==="cartesian2d"&&ce.setShape("r",We),$[Ne]=ce;var ne=w[Y.type](V,Ne),ee=P(oe,ne,Y);I.updateProps(ce,{shape:ee},ue,Ne)}var Ae=Z.getItemGraphicEl(we);if(!V.hasValue(Ne)){G.remove(Ae);return}if(Le){var Ve=v[Y.type](me,Ee);if(Ve){G.remove(Ae);return}}Ae?I.updateProps(Ae,{shape:Ee},ue,Ne):Ae=A[Y.type](Ne,Ee,oe,ue,!0,Ie),V.setItemGraphicEl(Ne,Ae),G.add(Ae),T(Ae,V,Ne,De,Ee,j,oe,Y.type==="polar")}).remove(function(Ne){var we=Z.getItemGraphicEl(Ne);Y.type==="cartesian2d"?we&&x(Ne,ue,we):we&&b(Ne,ue,we)}).execute();var le=this._backgroundGroup||(this._backgroundGroup=new l);le.removeAll();for(var de=0;de<$.length;++de)le.add($[de]);G.add(le),this._backgroundEls=$,this._data=V},_renderLarge:function(j,H,W){this._clear(),_(j,this.group);var G=j.get("clip",!0)?e(j.coordinateSystem,!1,j):null;G?this.group.setClipPath(G):this.group.removeClipPath()},_incrementalRenderLarge:function(j,H){this._removeBackground(),_(H,this.group,!0)},dispose:E.noop,remove:function(j){this._clear(j)},_clear:function(j){var H=this.group,W=this._data;j&&j.get("animation")&&W&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],W.eachItemGraphicEl(function(G){G.type==="sector"?b(G.dataIndex,j,G):x(G.dataIndex,j,G)})):H.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),p=Math.max,g=Math.min,v={cartesian2d:function(j,H){var W=H.width<0?-1:1,G=H.height<0?-1:1;W<0&&(H.x+=H.width,H.width=-H.width),G<0&&(H.y+=H.height,H.height=-H.height);var V=p(H.x,j.x),Z=g(H.x+H.width,j.x+j.width),Y=p(H.y,j.y),Q=g(H.y+H.height,j.y+j.height);H.x=V,H.y=Y,H.width=Z-V,H.height=Q-Y;var oe=H.width<0||H.height<0;return W<0&&(H.x+=H.width,H.width=-H.width),G<0&&(H.y+=H.height,H.height=-H.height),oe},polar:function(j){return!1}},A={cartesian2d:function(j,H,W,G,V){var Z=new I.Rect({shape:E.extend({},H),z2:1});if(Z.name="item",G){var Y=Z.shape,Q=W?"height":"width",oe={};Y[Q]=0,oe[Q]=H[Q],I[V?"updateProps":"initProps"](Z,{shape:oe},G,j)}return Z},polar:function(j,H,W,G,V,Z){var Y=H.startAngle<H.endAngle,Q=!W&&Z?n:I.Sector,oe=new Q({shape:E.defaults({clockwise:Y},H),z2:1});if(oe.name="item",G){var ue=oe.shape,Le=W?"r":"endAngle",me={};ue[Le]=W?0:H.startAngle,me[Le]=H[Le],I[V?"updateProps":"initProps"](oe,{shape:me},G,j)}return oe}};function x(j,H,W){W.style.text=null,I.updateProps(W,{shape:{width:0}},H,j,function(){W.parent&&W.parent.remove(W)})}function b(j,H,W){W.style.text=null,I.updateProps(W,{shape:{r:W.shape.r0}},H,j,function(){W.parent&&W.parent.remove(W)})}var w={cartesian2d:function(j,H,W){var G=j.getItemLayout(H),V=W?C(W,G):0,Z=G.width>0?1:-1,Y=G.height>0?1:-1;return{x:G.x+Z*V/2,y:G.y+Y*V/2,width:G.width-Z*V,height:G.height-Y*V}},polar:function(j,H,W){var G=j.getItemLayout(H);return{cx:G.cx,cy:G.cy,r0:G.r0,r:G.r,startAngle:G.startAngle,endAngle:G.endAngle}}};function S(j){return j.startAngle!=null&&j.endAngle!=null&&j.startAngle===j.endAngle}function T(j,H,W,G,V,Z,Y,Q){var oe=H.getItemVisual(W,"color"),ue=H.getItemVisual(W,"opacity"),Le=H.getVisual("borderColor"),me=G.getModel("itemStyle"),Ie=G.getModel("emphasis.itemStyle").getBarItemStyle();Q||j.setShape("r",me.get("barBorderRadius")||0),j.useStyle(E.defaults({stroke:S(V)?"none":Le,fill:S(V)?"none":oe,opacity:ue},me.getBarItemStyle()));var X=G.getShallow("cursor");X&&j.attr("cursor",X);var q=Y?V.height>0?"bottom":"top":V.width>0?"left":"right";Q||m(j.style,Ie,G,oe,Z,W,q),S(V)&&(Ie.fill=Ie.stroke="none"),I.setHoverStyle(j,Ie)}function C(j,H){var W=j.get(i)||0,G=isNaN(H.width)?Number.MAX_VALUE:Math.abs(H.width),V=isNaN(H.height)?Number.MAX_VALUE:Math.abs(H.height);return Math.min(W,G,V)}var O=t.extend({type:"largeBar",shape:{points:[]},buildPath:function(j,H){for(var W=H.points,G=this.__startPoint,V=this.__baseDimIdx,Z=0;Z<W.length;Z+=2)G[V]=W[Z+V],j.moveTo(G[0],G[1]),j.lineTo(W[Z],W[Z+1])}});function _(j,H,W){var G=j.getData(),V=[],Z=G.getLayout("valueAxisHorizontal")?1:0;V[1-Z]=G.getLayout("valueAxisStart");var Y=G.getLayout("largeDataIndices"),Q=G.getLayout("barWidth"),oe=j.getModel("backgroundStyle"),ue=j.get("showBackground",!0);if(ue){var Le=G.getLayout("largeBackgroundPoints"),me=[];me[1-Z]=G.getLayout("backgroundStart");var Ie=new O({shape:{points:Le},incremental:!!W,__startPoint:me,__baseDimIdx:Z,__largeDataIndices:Y,__barWidth:Q,silent:!0,z2:0});B(Ie,oe,G),H.add(Ie)}var X=new O({shape:{points:G.getLayout("largePoints")},incremental:!!W,__startPoint:V,__baseDimIdx:Z,__largeDataIndices:Y,__barWidth:Q});H.add(X),R(X,j,G),X.seriesIndex=j.seriesIndex,j.get("silent")||(X.on("mousedown",M),X.on("mousemove",M))}var M=r(function(j){var H=this,W=k(H,j.offsetX,j.offsetY);H.dataIndex=W>=0?W:null},30,!1);function k(j,H,W){var G=j.__baseDimIdx,V=1-G,Z=j.shape.points,Y=j.__largeDataIndices,Q=Math.abs(j.__barWidth/2),oe=j.__startPoint[V];c[0]=H,c[1]=W;for(var ue=c[G],Le=c[1-G],me=ue-Q,Ie=ue+Q,X=0,q=Z.length/2;X<q;X++){var We=X*2,$=Z[We+G],J=Z[We+V];if($>=me&&$<=Ie&&(oe<=J?Le>=oe&&Le<=J:Le>=J&&Le<=oe))return Y[X]}return-1}function R(j,H,W){var G=W.getVisual("borderColor")||W.getVisual("color"),V=H.getModel("itemStyle").getItemStyle(["color","borderColor"]);j.useStyle(V),j.style.fill=null,j.style.stroke=G,j.style.lineWidth=W.getLayout("barWidth")}function B(j,H,W){var G=H.get("borderColor")||H.get("color"),V=H.getItemStyle(["color","borderColor"]);j.useStyle(V),j.style.fill=null,j.style.stroke=G,j.style.lineWidth=W.getLayout("barWidth")}function P(j,H,W){var G,V=W.type==="polar";return V?G=W.getArea():G=W.grid.getRect(),V?{cx:G.cx,cy:G.cy,r0:j?G.r0:H.r0,r:j?G.r:H.r,startAngle:j?H.startAngle:0,endAngle:j?H.endAngle:Math.PI*2}:{x:j?H.x:G.x,y:j?G.y:H.y,width:j?H.width:G.width,height:j?G.height:H.height}}function U(j,H,W){var G=j.type==="polar"?I.Sector:I.Rect;return new G({shape:P(H,W,j),silent:!0,z2:0})}fe.exports=h},ZCgT:function(fe,z,y){var D=y("tLB3"),N=1/0,L=17976931348623157e292;function E(I){if(!I)return I===0?I:0;if(I=D(I),I===N||I===-N){var o=I<0?-1:1;return o*L}return I===I?I:0}fe.exports=E},ZLWo:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},ZMnZ:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("2oIt")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="UpOutlined";var f=E.forwardRef(m);z.default=f},ZTPi:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("q1tI"),o=y("rePB"),m=y("ODXe"),f=y("Ff2n"),s=y("VTBJ"),t=y("TSYQ"),l=y.n(t),a=y("Zm9Q"),r=y("6cGi"),u=y("KQm4"),e=y("xEkU"),n=y.n(e),i=y("t23M");function c(yr){var Mr=Object(I.useRef)(),Qr=Object(I.useRef)(!1);function Ir(){for(var Gt=arguments.length,Sr=new Array(Gt),Zt=0;Zt<Gt;Zt++)Sr[Zt]=arguments[Zt];Qr.current||(n.a.cancel(Mr.current),Mr.current=n()(function(){yr.apply(void 0,Sr)}))}return Object(I.useEffect)(function(){return function(){Qr.current=!0,n.a.cancel(Mr.current)}},[]),Ir}function d(yr){var Mr=Object(I.useRef)([]),Qr=Object(I.useState)({}),Ir=Object(m.a)(Qr,2),Gt=Ir[1],Sr=Object(I.useRef)(typeof yr=="function"?yr():yr),Zt=c(function(){var Kr=Sr.current;Mr.current.forEach(function(pn){Kr=pn(Kr)}),Mr.current=[],Sr.current=Kr,Gt({})});function jr(Kr){Mr.current.push(Kr),Zt()}return[Sr.current,jr]}var h=y("4IlW");function p(yr,Mr){var Qr,Ir=yr.prefixCls,Gt=yr.id,Sr=yr.active,Zt=yr.rtl,jr=yr.tab,Kr=jr.key,pn=jr.tab,sn=jr.disabled,yn=jr.closeIcon,Fn=yr.tabBarGutter,Xn=yr.tabPosition,Jn=yr.closable,Ti=yr.renderWrapper,ta=yr.removeAriaLabel,oa=yr.editable,da=yr.onClick,ca=yr.onRemove,ma=yr.onFocus,Ui="".concat(Ir,"-tab");I.useEffect(function(){return ca},[]);var Ni={};Xn==="top"||Xn==="bottom"?Ni[Zt?"marginLeft":"marginRight"]=Fn:Ni.marginBottom=Fn;var ra=oa&&Jn!==!1&&!sn;function qi(Zi){if(sn)return;da(Zi)}function Aa(Zi){Zi.preventDefault(),Zi.stopPropagation(),oa.onEdit("remove",{key:Kr,event:Zi})}var Oa=I.createElement("div",{key:Kr,ref:Mr,className:l()(Ui,(Qr={},Object(o.a)(Qr,"".concat(Ui,"-with-remove"),ra),Object(o.a)(Qr,"".concat(Ui,"-active"),Sr),Object(o.a)(Qr,"".concat(Ui,"-disabled"),sn),Qr)),style:Ni,onClick:qi},I.createElement("div",{role:"tab","aria-selected":Sr,id:Gt&&"".concat(Gt,"-tab-").concat(Kr),className:"".concat(Ui,"-btn"),"aria-controls":Gt&&"".concat(Gt,"-panel-").concat(Kr),"aria-disabled":sn,tabIndex:sn?null:0,onClick:function(Gi){Gi.stopPropagation(),qi(Gi)},onKeyDown:function(Gi){[h.a.SPACE,h.a.ENTER].includes(Gi.which)&&(Gi.preventDefault(),qi(Gi))},onFocus:ma},pn),ra&&I.createElement("button",{type:"button","aria-label":ta||"remove",tabIndex:0,className:"".concat(Ui,"-remove"),onClick:function(Gi){Gi.stopPropagation(),Aa(Gi)}},yn||oa.removeIcon||"\xD7"));return Ti&&(Oa=Ti(Oa)),Oa}var g=I.forwardRef(p),v={width:0,height:0,left:0,top:0};function A(yr,Mr,Qr){return Object(I.useMemo)(function(){for(var Ir,Gt=new Map,Sr=Mr.get((Ir=yr[0])===null||Ir===void 0?void 0:Ir.key)||v,Zt=Sr.left+Sr.width,jr=0;jr<yr.length;jr+=1){var Kr=yr[jr].key,pn=Mr.get(Kr);if(!pn){var sn;pn=Mr.get((sn=yr[jr-1])===null||sn===void 0?void 0:sn.key)||v}var yn=Gt.get(Kr)||Object(s.a)({},pn);yn.right=Zt-yn.left-yn.width,Gt.set(Kr,yn)}return Gt},[yr.map(function(Ir){return Ir.key}).join("_"),Mr,Qr])}var x={width:0,height:0,left:0,top:0,right:0};function b(yr,Mr,Qr,Ir,Gt){var Sr=Gt.tabs,Zt=Gt.tabPosition,jr=Gt.rtl,Kr,pn,sn;["top","bottom"].includes(Zt)?(Kr="width",pn=jr?"right":"left",sn=Math.abs(Mr.left)):(Kr="height",pn="top",sn=-Mr.top);var yn=Mr[Kr],Fn=Qr[Kr],Xn=Ir[Kr],Jn=yn;return Fn+Xn>yn&&(Jn=yn-Xn),Object(I.useMemo)(function(){if(!Sr.length)return[0,0];for(var Ti=Sr.length,ta=Ti,oa=0;oa<Ti;oa+=1){var da=yr.get(Sr[oa].key)||x;if(da[pn]+da[Kr]>sn+Jn){ta=oa-1;break}}for(var ca=0,ma=Ti-1;ma>=0;ma-=1){var Ui=yr.get(Sr[ma].key)||x;if(Ui[pn]<sn){ca=ma+1;break}}return[ca,ta]},[yr,sn,Jn,Zt,Sr.map(function(Ti){return Ti.key}).join("_"),jr])}var w=y("wx14"),S=y("1OyB"),T=y("vuIU"),C=y("JX7q"),O=y("Ji7U"),_=y("LK+K"),M=y("I8Z2"),k=y("bT9E"),R=y("2GS6"),B=y("Gytx"),P=y.n(B),U=y("U8pU"),j=/iPhone/i,H=/iPod/i,W=/iPad/i,G=/\bAndroid(?:.+)Mobile\b/i,V=/Android/i,Z=/\bAndroid(?:.+)SD4930UR\b/i,Y=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Q=/Windows Phone/i,oe=/\bWindows(?:.+)ARM\b/i,ue=/BlackBerry/i,Le=/BB10/i,me=/Opera Mini/i,Ie=/\b(CriOS|Chrome)(?:.+)Mobile/i,X=/Mobile(?:.+)Firefox\b/i;function q(yr,Mr){return yr.test(Mr)}function We(yr){var Mr=yr||(typeof navigator!="undefined"?navigator.userAgent:""),Qr=(Mr||"").split("[FBAN");if(typeof Qr[1]!="undefined"){var Ir=Qr,Gt=Object(m.a)(Ir,1);Mr=Gt[0]}if(Qr=Mr.split("Twitter"),typeof Qr[1]!="undefined"){var Sr=Qr,Zt=Object(m.a)(Sr,1);Mr=Zt[0]}var jr={apple:{phone:q(j,Mr)&&!q(Q,Mr),ipod:q(H,Mr),tablet:!q(j,Mr)&&q(W,Mr)&&!q(Q,Mr),device:(q(j,Mr)||q(H,Mr)||q(W,Mr))&&!q(Q,Mr)},amazon:{phone:q(Z,Mr),tablet:!q(Z,Mr)&&q(Y,Mr),device:q(Z,Mr)||q(Y,Mr)},android:{phone:!q(Q,Mr)&&q(Z,Mr)||!q(Q,Mr)&&q(G,Mr),tablet:!q(Q,Mr)&&!q(Z,Mr)&&!q(G,Mr)&&(q(Y,Mr)||q(V,Mr)),device:!q(Q,Mr)&&(q(Z,Mr)||q(Y,Mr)||q(G,Mr)||q(V,Mr))||q(/\bokhttp\b/i,Mr)},windows:{phone:q(Q,Mr),tablet:q(oe,Mr),device:q(Q,Mr)||q(oe,Mr)},other:{blackberry:q(ue,Mr),blackberry10:q(Le,Mr),opera:q(me,Mr),firefox:q(X,Mr),chrome:q(Ie,Mr),device:q(ue,Mr)||q(Le,Mr)||q(me,Mr)||q(X,Mr)||q(Ie,Mr)},any:null,phone:null,tablet:null};return jr.any=jr.apple.device||jr.android.device||jr.windows.device||jr.other.device,jr.phone=jr.apple.phone||jr.android.phone||jr.windows.phone,jr.tablet=jr.apple.tablet||jr.android.tablet||jr.windows.tablet,jr}var $=Object(s.a)(Object(s.a)({},We()),{},{isMobile:We}),J=$;function le(){}function de(yr,Mr,Qr){var Ir=Mr||"";return yr.key||"".concat(Ir,"item_").concat(Qr)}function Ne(yr){return"".concat(yr,"-menu-")}function we(yr,Mr){var Qr=-1;I.Children.forEach(yr,function(Ir){Qr+=1,Ir&&Ir.type&&Ir.type.isMenuItemGroup?I.Children.forEach(Ir.props.children,function(Gt){Qr+=1,Mr(Gt,Qr)}):Mr(Ir,Qr)})}function De(yr,Mr,Qr){if(!yr||Qr.find)return;I.Children.forEach(yr,function(Ir){if(Ir){var Gt=Ir.type;if(!Gt||!(Gt.isSubMenu||Gt.isMenuItem||Gt.isMenuItemGroup))return;Mr.indexOf(Ir.key)!==-1?Qr.find=!0:Ir.props.children&&De(Ir.props.children,Mr,Qr)}})}var Ee=["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"],ce=function(Mr){var Qr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ir=Mr&&typeof Mr.getBoundingClientRect=="function"&&Mr.getBoundingClientRect().width;if(Ir){if(Qr){var Gt=getComputedStyle(Mr),Sr=Gt.marginLeft,Zt=Gt.marginRight;Ir+=+Sr.replace("px","")+ +Zt.replace("px","")}Ir=+Ir.toFixed(6)}return Ir||0},ne=function(Mr,Qr,Ir){Mr&&Object(U.a)(Mr.style)==="object"&&(Mr.style[Qr]=Ir)},ee=function(){return J.any},Ae=y("bdgK"),Ve=y("i8i4"),Ke=y.n(Ve),Oe=y("wgJM"),it=y("l4aY"),Fe=y("m+aA"),ft=y("c+Xe"),At=y("zT1h"),bt=y("QC+M");function St(yr,Mr,Qr){return Qr?yr[0]===Mr[0]:yr[0]===Mr[0]&&yr[1]===Mr[1]}function Et(yr,Mr,Qr){var Ir=yr[Mr]||{};return Object(s.a)(Object(s.a)({},Ir),Qr)}function je(yr,Mr,Qr,Ir){for(var Gt=Qr.points,Sr=Object.keys(yr),Zt=0;Zt<Sr.length;Zt+=1){var jr=Sr[Zt];if(St(yr[jr].points,Gt,Ir))return"".concat(Mr,"-placement-").concat(jr)}return""}var pe=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var yr=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(yr)||/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(yr==null?void 0:yr.substr(0,4)))},ie=y("MNnm");function st(yr,Mr){var Qr={};return Qr[yr.toLowerCase()]=Mr.toLowerCase(),Qr["Webkit".concat(yr)]="webkit".concat(Mr),Qr["Moz".concat(yr)]="moz".concat(Mr),Qr["ms".concat(yr)]="MS".concat(Mr),Qr["O".concat(yr)]="o".concat(Mr.toLowerCase()),Qr}function Qe(yr,Mr){var Qr={animationend:st("Animation","AnimationEnd"),transitionend:st("Transition","TransitionEnd")};return yr&&("AnimationEvent"in Mr||delete Qr.animationend.animation,"TransitionEvent"in Mr||delete Qr.transitionend.transition),Qr}var ve=Qe(Object(ie.a)(),typeof window!="undefined"?window:{}),Bt={};if(Object(ie.a)()){var qt=document.createElement("div");Bt=qt.style}var ct={};function Wt(yr){if(ct[yr])return ct[yr];var Mr=ve[yr];if(Mr)for(var Qr=Object.keys(Mr),Ir=Qr.length,Gt=0;Gt<Ir;Gt+=1){var Sr=Qr[Gt];if(Object.prototype.hasOwnProperty.call(Mr,Sr)&&Sr in Bt)return ct[yr]=Mr[Sr],ct[yr]}return""}var or=Wt("animationend"),Fr=Wt("transitionend"),er=!!(or&&Fr),nr=or||"animationend",Ot=Fr||"transitionend";function lt(yr,Mr){if(!yr)return null;if(Object(U.a)(yr)==="object"){var Qr=Mr.replace(/-\w/g,function(Ir){return Ir[1].toUpperCase()});return yr[Qr]}return"".concat(yr,"-").concat(Mr)}var qe="none",tr="appear",xr="enter",Ar="leave",fr="none",vn="prepare",$r="start",Ln="active",tt="end";function nt(yr){var Mr=Object(I.useRef)(!1),Qr=Object(I.useState)(yr),Ir=Object(m.a)(Qr,2),Gt=Ir[0],Sr=Ir[1];function Zt(jr){Mr.current||Sr(jr)}return Object(I.useEffect)(function(){return function(){Mr.current=!0}},[]),[Gt,Zt]}var Te=Object(ie.a)()?I.useLayoutEffect:I.useEffect,Me=Te,Xe=function(){var yr=I.useRef(null);function Mr(){Oe.a.cancel(yr.current)}function Qr(Ir){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Mr();var Sr=Object(Oe.a)(function(){Gt<=1?Ir({isCanceled:function(){return Sr!==yr.current}}):Qr(Ir,Gt-1)});yr.current=Sr}return I.useEffect(function(){return function(){Mr()}},[]),[Qr,Mr]},at=[vn,$r,Ln,tt],zt=!1,kt=!0;function Xt(yr){return yr===Ln||yr===tt}var Dr=function(yr,Mr){var Qr=I.useState(fr),Ir=Object(m.a)(Qr,2),Gt=Ir[0],Sr=Ir[1],Zt=Xe(),jr=Object(m.a)(Zt,2),Kr=jr[0],pn=jr[1];function sn(){Sr(vn)}return Me(function(){if(Gt!==fr&&Gt!==tt){var yn=at.indexOf(Gt),Fn=at[yn+1],Xn=Mr(Gt);Xn===zt?Sr(Fn):Kr(function(Jn){function Ti(){if(Jn.isCanceled())return;Sr(Fn)}Xn===!0?Ti():Promise.resolve(Xn).then(Ti)})}},[yr,Gt]),I.useEffect(function(){return function(){pn()}},[]),[sn,Gt]},Pr=function(yr){var Mr=Object(I.useRef)(),Qr=Object(I.useRef)(yr);Qr.current=yr;var Ir=I.useCallback(function(Zt){Qr.current(Zt)},[]);function Gt(Zt){Zt&&(Zt.removeEventListener(Ot,Ir),Zt.removeEventListener(nr,Ir))}function Sr(Zt){Mr.current&&Mr.current!==Zt&&Gt(Mr.current),Zt&&Zt!==Mr.current&&(Zt.addEventListener(Ot,Ir),Zt.addEventListener(nr,Ir),Mr.current=Zt)}return I.useEffect(function(){return function(){Gt(Mr.current)}},[]),[Sr,Gt]};function cn(yr,Mr,Qr,Ir){var Gt=Ir.motionEnter,Sr=Gt===void 0?!0:Gt,Zt=Ir.motionAppear,jr=Zt===void 0?!0:Zt,Kr=Ir.motionLeave,pn=Kr===void 0?!0:Kr,sn=Ir.motionDeadline,yn=Ir.motionLeaveImmediately,Fn=Ir.onAppearPrepare,Xn=Ir.onEnterPrepare,Jn=Ir.onLeavePrepare,Ti=Ir.onAppearStart,ta=Ir.onEnterStart,oa=Ir.onLeaveStart,da=Ir.onAppearActive,ca=Ir.onEnterActive,ma=Ir.onLeaveActive,Ui=Ir.onAppearEnd,Ni=Ir.onEnterEnd,ra=Ir.onLeaveEnd,qi=Ir.onVisibleChanged,Aa=nt(),Oa=Object(m.a)(Aa,2),Zi=Oa[0],Gi=Oa[1],La=nt(qe),va=Object(m.a)(La,2),Ci=va[0],Sa=va[1],Da=nt(null),Na=Object(m.a)(Da,2),Ua=Na[0],Pa=Na[1],za=Object(I.useRef)(!1),xa=Object(I.useRef)(null),ja=Object(I.useRef)(!1),io=Object(I.useRef)(null);function ia(){var eo=Qr();return eo||io.current}var lo=Object(I.useRef)(!1);function Xa(eo){var wa=ia();if(eo&&!eo.deadline&&eo.target!==wa)return;var ro;Ci===tr&&lo.current?ro=Ui==null?void 0:Ui(wa,eo):Ci===xr&&lo.current?ro=Ni==null?void 0:Ni(wa,eo):Ci===Ar&&lo.current&&(ro=ra==null?void 0:ra(wa,eo)),ro!==!1&&!ja.current&&(Sa(qe),Pa(null))}var Ta=Pr(Xa),Qa=Object(m.a)(Ta,1),Ra=Qa[0],_a=I.useMemo(function(){var eo,wa,ro;switch(Ci){case"appear":return eo={},Object(o.a)(eo,vn,Fn),Object(o.a)(eo,$r,Ti),Object(o.a)(eo,Ln,da),eo;case"enter":return wa={},Object(o.a)(wa,vn,Xn),Object(o.a)(wa,$r,ta),Object(o.a)(wa,Ln,ca),wa;case"leave":return ro={},Object(o.a)(ro,vn,Jn),Object(o.a)(ro,$r,oa),Object(o.a)(ro,Ln,ma),ro;default:return{}}},[Ci]),yo=Dr(Ci,function(eo){if(eo===vn){var wa=_a[vn];return wa?wa(ia()):zt}if(co in _a){var ro;Pa(((ro=_a[co])===null||ro===void 0?void 0:ro.call(_a,ia(),null))||null)}return co===Ln&&(Ra(ia()),sn>0&&(clearTimeout(xa.current),xa.current=setTimeout(function(){Xa({deadline:!0})},sn))),kt}),ao=Object(m.a)(yo,2),bo=ao[0],co=ao[1],uo=Xt(co);lo.current=uo,Me(function(){Gi(Mr);var eo=za.current;if(za.current=!0,!yr)return;var wa;!eo&&Mr&&jr&&(wa=tr),eo&&Mr&&Sr&&(wa=xr),(eo&&!Mr&&pn||!eo&&yn&&!Mr&&pn)&&(wa=Ar),wa&&(Sa(wa),bo())},[Mr]),Object(I.useEffect)(function(){(Ci===tr&&!jr||Ci===xr&&!Sr||Ci===Ar&&!pn)&&Sa(qe)},[jr,Sr,pn]),Object(I.useEffect)(function(){return function(){clearTimeout(xa.current),ja.current=!0}},[]),Object(I.useEffect)(function(){Zi!==void 0&&Ci===qe&&(qi==null||qi(Zi))},[Zi,Ci]);var Ya=Ua;return _a[vn]&&co===$r&&(Ya=Object(s.a)({transition:"none"},Ya)),[Ci,co,Ya,Zi!=null?Zi:Mr]}var jt=function(yr){Object(O.a)(Qr,yr);var Mr=Object(_.a)(Qr);function Qr(){return Object(S.a)(this,Qr),Mr.apply(this,arguments)}return Object(T.a)(Qr,[{key:"render",value:function(){return this.props.children}}]),Qr}(I.Component),gt=jt;function dt(yr){var Mr=yr;Object(U.a)(yr)==="object"&&(Mr=yr.transitionSupport);function Qr(Gt){return!!(Gt.motionName&&Mr)}var Ir=I.forwardRef(function(Gt,Sr){var Zt=Gt.visible,jr=Zt===void 0?!0:Zt,Kr=Gt.removeOnLeave,pn=Kr===void 0?!0:Kr,sn=Gt.forceRender,yn=Gt.children,Fn=Gt.motionName,Xn=Gt.leavedClassName,Jn=Gt.eventProps,Ti=Qr(Gt),ta=Object(I.useRef)(),oa=Object(I.useRef)();function da(){try{return Object(Fe.a)(ta.current||oa.current)}catch(Sa){return null}}var ca=cn(Ti,jr,da,Gt),ma=Object(m.a)(ca,4),Ui=ma[0],Ni=ma[1],ra=ma[2],qi=ma[3],Aa=I.useRef(qi);qi&&(Aa.current=!0);var Oa=Object(I.useRef)(Sr);Oa.current=Sr;var Zi=I.useCallback(function(Sa){ta.current=Sa,Object(ft.b)(Oa.current,Sa)},[]),Gi,La=Object(s.a)(Object(s.a)({},Jn),{},{visible:jr});if(!yn)Gi=null;else if(Ui===qe||!Qr(Gt))qi?Gi=yn(Object(s.a)({},La),Zi):!pn&&Aa.current?Gi=yn(Object(s.a)(Object(s.a)({},La),{},{className:Xn}),Zi):sn?Gi=yn(Object(s.a)(Object(s.a)({},La),{},{style:{display:"none"}}),Zi):Gi=null;else{var va,Ci;Ni===vn?Ci="prepare":Xt(Ni)?Ci="active":Ni===$r&&(Ci="start"),Gi=yn(Object(s.a)(Object(s.a)({},La),{},{className:l()(lt(Fn,Ui),(va={},Object(o.a)(va,lt(Fn,"".concat(Ui,"-").concat(Ci)),Ci),Object(o.a)(va,Fn,typeof Fn=="string"),va)),style:ra}),Zi)}return I.createElement(gt,{ref:oa},Gi)});return Ir.displayName="CSSMotion",Ir}var Qt=dt(er),Jt="add",xt="keep",Pt="remove",yt="removed";function Ut(yr){var Mr;return yr&&Object(U.a)(yr)==="object"&&"key"in yr?Mr=yr:Mr={key:yr},Object(s.a)(Object(s.a)({},Mr),{},{key:String(Mr.key)})}function pr(){var yr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return yr.map(Ut)}function sr(){var yr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Qr=[],Ir=0,Gt=Mr.length,Sr=pr(yr),Zt=pr(Mr);Sr.forEach(function(pn){for(var sn=!1,yn=Ir;yn<Gt;yn+=1){var Fn=Zt[yn];if(Fn.key===pn.key){Ir<yn&&(Qr=Qr.concat(Zt.slice(Ir,yn).map(function(Xn){return Object(s.a)(Object(s.a)({},Xn),{},{status:Jt})})),Ir=yn),Qr.push(Object(s.a)(Object(s.a)({},Fn),{},{status:xt})),Ir+=1,sn=!0;break}}sn||Qr.push(Object(s.a)(Object(s.a)({},pn),{},{status:Pt}))}),Ir<Gt&&(Qr=Qr.concat(Zt.slice(Ir).map(function(pn){return Object(s.a)(Object(s.a)({},pn),{},{status:Jt})})));var jr={};Qr.forEach(function(pn){var sn=pn.key;jr[sn]=(jr[sn]||0)+1});var Kr=Object.keys(jr).filter(function(pn){return jr[pn]>1});return Kr.forEach(function(pn){Qr=Qr.filter(function(sn){var yn=sn.key,Fn=sn.status;return yn!==pn||Fn!==Pt}),Qr.forEach(function(sn){sn.key===pn&&(sn.status=xt)})}),Qr}var ir=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Yr(yr){var Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt,Qr=function(Ir){Object(O.a)(Sr,Ir);var Gt=Object(_.a)(Sr);function Sr(){var Zt;return Object(S.a)(this,Sr),Zt=Gt.apply(this,arguments),Zt.state={keyEntities:[]},Zt.removeKey=function(jr){Zt.setState(function(Kr){var pn=Kr.keyEntities;return{keyEntities:pn.map(function(sn){return sn.key!==jr?sn:Object(s.a)(Object(s.a)({},sn),{},{status:yt})})}})},Zt}return Object(T.a)(Sr,[{key:"render",value:function(){var jr=this,Kr=this.state.keyEntities,pn=this.props,sn=pn.component,yn=pn.children,Fn=pn.onVisibleChanged,Xn=Object(f.a)(pn,["component","children","onVisibleChanged"]),Jn=sn||I.Fragment,Ti={};return ir.forEach(function(ta){Ti[ta]=Xn[ta],delete Xn[ta]}),delete Xn.keys,I.createElement(Jn,Xn,Kr.map(function(ta){var oa=ta.status,da=Object(f.a)(ta,["status"]),ca=oa===Jt||oa===xt;return I.createElement(Mr,Object(w.a)({},Ti,{key:da.key,visible:ca,eventProps:da,onVisibleChanged:function(Ui){Fn==null||Fn(Ui,{key:da.key}),Ui||jr.removeKey(da.key)}}),yn)}))}}],[{key:"getDerivedStateFromProps",value:function(jr,Kr){var pn=jr.keys,sn=Kr.keyEntities,yn=pr(pn),Fn=sr(sn,yn);return{keyEntities:Fn.filter(function(Xn){var Jn=sn.find(function(Ti){var ta=Ti.key;return Xn.key===ta});return!(Jn&&Jn.status===yt&&Xn.status===Pt)})}}}]),Sr}(I.Component);return Qr.defaultProps={component:"div"},Qr}var Jr=Yr(er),In=Qt;function Nn(yr){var Mr=yr.prefixCls,Qr=yr.motion,Ir=yr.animation,Gt=yr.transitionName;return Qr||(Ir?{motionName:"".concat(Mr,"-").concat(Ir)}:Gt?{motionName:Gt}:null)}function zn(yr){var Mr=yr.prefixCls,Qr=yr.visible,Ir=yr.zIndex,Gt=yr.mask,Sr=yr.maskMotion,Zt=yr.maskAnimation,jr=yr.maskTransitionName;if(!Gt)return null;var Kr={};return(Sr||jr||Zt)&&(Kr=Object(s.a)({motionAppear:!0},Nn({motion:Sr,prefixCls:Mr,transitionName:jr,animation:Zt}))),I.createElement(In,Object(w.a)({},Kr,{visible:Qr,removeOnLeave:!0}),function(pn){var sn=pn.className;return I.createElement("div",{style:{zIndex:Ir},className:l()("".concat(Mr,"-mask"),sn)})})}var ei=y("9mu1"),Ai=y("o0o1"),Pi=y.n(Ai),$e=y("HaE+"),_e=["measure","align",null,"motion"],Be=function(yr,Mr){var Qr=Object(I.useState)(null),Ir=Object(m.a)(Qr,2),Gt=Ir[0],Sr=Ir[1],Zt=Object(I.useRef)(),jr=Object(I.useRef)(!1);function Kr(yn){jr.current||Sr(yn)}function pn(){Oe.a.cancel(Zt.current)}function sn(yn){pn(),Zt.current=Object(Oe.a)(function(){Kr(function(Fn){switch(Gt){case"align":return"motion";case"motion":return"stable";default:}return Fn}),yn==null||yn()})}return Object(I.useEffect)(function(){Kr("measure")},[yr]),Object(I.useEffect)(function(){switch(Gt){case"measure":Mr();break;default:}Gt&&(Zt.current=Object(Oe.a)(Object($e.a)(Pi.a.mark(function yn(){var Fn,Xn;return Pi.a.wrap(function(Ti){for(;;)switch(Ti.prev=Ti.next){case 0:Fn=_e.indexOf(Gt),Xn=_e[Fn+1],Xn&&Fn!==-1&&Kr(Xn);case 3:case"end":return Ti.stop()}},yn)}))))},[Gt]),Object(I.useEffect)(function(){return function(){jr.current=!0,pn()}},[]),[Gt,sn]},He=function(yr){var Mr=I.useState({width:0,height:0}),Qr=Object(m.a)(Mr,2),Ir=Qr[0],Gt=Qr[1];function Sr(jr){Gt({width:jr.offsetWidth,height:jr.offsetHeight})}var Zt=I.useMemo(function(){var jr={};if(yr){var Kr=Ir.width,pn=Ir.height;yr.indexOf("height")!==-1&&pn?jr.height=pn:yr.indexOf("minHeight")!==-1&&pn&&(jr.minHeight=pn),yr.indexOf("width")!==-1&&Kr?jr.width=Kr:yr.indexOf("minWidth")!==-1&&Kr&&(jr.minWidth=Kr)}return jr},[yr,Ir]);return[Zt,Sr]},Je=I.forwardRef(function(yr,Mr){var Qr=yr.visible,Ir=yr.prefixCls,Gt=yr.className,Sr=yr.style,Zt=yr.children,jr=yr.zIndex,Kr=yr.stretch,pn=yr.destroyPopupOnHide,sn=yr.forceRender,yn=yr.align,Fn=yr.point,Xn=yr.getRootDomNode,Jn=yr.getClassNameFromAlign,Ti=yr.onAlign,ta=yr.onMouseEnter,oa=yr.onMouseLeave,da=yr.onMouseDown,ca=yr.onTouchStart,ma=Object(I.useRef)(),Ui=Object(I.useRef)(),Ni=Object(I.useState)(),ra=Object(m.a)(Ni,2),qi=ra[0],Aa=ra[1],Oa=He(Kr),Zi=Object(m.a)(Oa,2),Gi=Zi[0],La=Zi[1];function va(){Kr&&La(Xn())}var Ci=Be(Qr,va),Sa=Object(m.a)(Ci,2),Da=Sa[0],Na=Sa[1],Ua=Object(I.useRef)();function Pa(){return Fn||Xn}function za(){var Ta;(Ta=ma.current)===null||Ta===void 0||Ta.forceAlign()}function xa(Ta,Qa){var Ra=Jn(Qa);qi!==Ra&&Aa(Ra),Da==="align"&&(qi!==Ra?Promise.resolve().then(function(){za()}):Na(function(){var _a;(_a=Ua.current)===null||_a===void 0||_a.call(Ua)}),Ti==null||Ti(Ta,Qa))}var ja=Object(s.a)({},Nn(yr));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ta){var Qa=ja[Ta];ja[Ta]=function(Ra,_a){return Na(),Qa==null?void 0:Qa(Ra,_a)}});function io(){return new Promise(function(Ta){Ua.current=Ta})}I.useEffect(function(){!ja.motionName&&Da==="motion"&&Na()},[ja.motionName,Da]),I.useImperativeHandle(Mr,function(){return{forceAlign:za,getElement:function(){return Ui.current}}});var ia=Object(s.a)(Object(s.a)({},Gi),{},{zIndex:jr,opacity:Da==="motion"||Da==="stable"||!Qr?void 0:0,pointerEvents:Da==="stable"?void 0:"none"},Sr),lo=!0;(yn==null?void 0:yn.points)&&(Da==="align"||Da==="stable")&&(lo=!1);var Xa=Zt;return I.Children.count(Zt)>1&&(Xa=I.createElement("div",{className:"".concat(Ir,"-content")},Zt)),I.createElement(In,Object(w.a)({visible:Qr,ref:Ui,leavedClassName:"".concat(Ir,"-hidden")},ja,{onAppearPrepare:io,onEnterPrepare:io,removeOnLeave:pn,forceRender:sn}),function(Ta,Qa){var Ra=Ta.className,_a=Ta.style,yo=l()(Ir,Gt,qi,Ra);return I.createElement(ei.a,{target:Pa(),key:"popup",ref:ma,monitorWindowResize:!0,disabled:lo,align:yn,onAlign:xa},I.createElement("div",{ref:Qa,className:yo,onMouseEnter:ta,onMouseLeave:oa,onMouseDownCapture:da,onTouchStartCapture:ca,style:Object(s.a)(Object(s.a)({},_a),ia)},Xa))})});Je.displayName="PopupInner";var Ye=Je,et=I.forwardRef(function(yr,Mr){var Qr=yr.prefixCls,Ir=yr.visible,Gt=yr.zIndex,Sr=yr.children,Zt=yr.mobile;Zt=Zt===void 0?{}:Zt;var jr=Zt.popupClassName,Kr=Zt.popupStyle,pn=Zt.popupMotion,sn=pn===void 0?{}:pn,yn=Zt.popupRender,Fn=I.useRef();I.useImperativeHandle(Mr,function(){return{forceAlign:function(){},getElement:function(){return Fn.current}}});var Xn=Object(s.a)({zIndex:Gt},Kr),Jn=Sr;return I.Children.count(Sr)>1&&(Jn=I.createElement("div",{className:"".concat(Qr,"-content")},Sr)),yn&&(Jn=yn(Jn)),I.createElement(In,Object(w.a)({visible:Ir,ref:Fn,removeOnLeave:!0},sn),function(Ti,ta){var oa=Ti.className,da=Ti.style,ca=l()(Qr,jr,oa);return I.createElement("div",{ref:ta,className:ca,style:Object(s.a)(Object(s.a)({},da),Xn)},Jn)})});et.displayName="MobilePopupInner";var wt=et,ut=["visible","mobile"],Ft=I.forwardRef(function(yr,Mr){var Qr=yr.visible,Ir=yr.mobile,Gt=Object(f.a)(yr,ut),Sr=Object(I.useState)(Qr),Zt=Object(m.a)(Sr,2),jr=Zt[0],Kr=Zt[1],pn=Object(I.useState)(!1),sn=Object(m.a)(pn,2),yn=sn[0],Fn=sn[1],Xn=Object(s.a)(Object(s.a)({},Gt),{},{visible:jr});Object(I.useEffect)(function(){Kr(Qr),Qr&&Ir&&Fn(pe())},[Qr,Ir]);var Jn=yn?I.createElement(wt,Object(w.a)({},Xn,{mobile:Ir,ref:Mr})):I.createElement(Ye,Object(w.a)({},Xn,{ref:Mr}));return I.createElement("div",null,I.createElement(zn,Xn),Jn)});Ft.displayName="Popup";var wr=Ft,hr=I.createContext(null),Nr=hr;function Kt(){}function un(){return""}function ar(yr){return yr?yr.ownerDocument:window.document}var Gr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Br(yr){var Mr=function(Qr){Object(O.a)(Gt,Qr);var Ir=Object(_.a)(Gt);function Gt(Sr){var Zt;Object(S.a)(this,Gt),Zt=Ir.call(this,Sr),Zt.popupRef=I.createRef(),Zt.triggerRef=I.createRef(),Zt.attachId=void 0,Zt.clickOutsideHandler=void 0,Zt.touchOutsideHandler=void 0,Zt.contextMenuOutsideHandler1=void 0,Zt.contextMenuOutsideHandler2=void 0,Zt.mouseDownTimeout=void 0,Zt.focusTime=void 0,Zt.preClickTime=void 0,Zt.preTouchTime=void 0,Zt.delayTimer=void 0,Zt.hasPopupMouseDown=void 0,Zt.onMouseEnter=function(Kr){var pn=Zt.props.mouseEnterDelay;Zt.fireEvents("onMouseEnter",Kr),Zt.delaySetPopupVisible(!0,pn,pn?null:Kr)},Zt.onMouseMove=function(Kr){Zt.fireEvents("onMouseMove",Kr),Zt.setPoint(Kr)},Zt.onMouseLeave=function(Kr){Zt.fireEvents("onMouseLeave",Kr),Zt.delaySetPopupVisible(!1,Zt.props.mouseLeaveDelay)},Zt.onPopupMouseEnter=function(){Zt.clearDelayTimer()},Zt.onPopupMouseLeave=function(Kr){var pn;if(Kr.relatedTarget&&!Kr.relatedTarget.setTimeout&&Object(it.a)((pn=Zt.popupRef.current)===null||pn===void 0?void 0:pn.getElement(),Kr.relatedTarget))return;Zt.delaySetPopupVisible(!1,Zt.props.mouseLeaveDelay)},Zt.onFocus=function(Kr){Zt.fireEvents("onFocus",Kr),Zt.clearDelayTimer(),Zt.isFocusToShow()&&(Zt.focusTime=Date.now(),Zt.delaySetPopupVisible(!0,Zt.props.focusDelay))},Zt.onMouseDown=function(Kr){Zt.fireEvents("onMouseDown",Kr),Zt.preClickTime=Date.now()},Zt.onTouchStart=function(Kr){Zt.fireEvents("onTouchStart",Kr),Zt.preTouchTime=Date.now()},Zt.onBlur=function(Kr){Zt.fireEvents("onBlur",Kr),Zt.clearDelayTimer(),Zt.isBlurToHide()&&Zt.delaySetPopupVisible(!1,Zt.props.blurDelay)},Zt.onContextMenu=function(Kr){Kr.preventDefault(),Zt.fireEvents("onContextMenu",Kr),Zt.setPopupVisible(!0,Kr)},Zt.onContextMenuClose=function(){Zt.isContextMenuToShow()&&Zt.close()},Zt.onClick=function(Kr){if(Zt.fireEvents("onClick",Kr),Zt.focusTime){var pn;if(Zt.preClickTime&&Zt.preTouchTime?pn=Math.min(Zt.preClickTime,Zt.preTouchTime):Zt.preClickTime?pn=Zt.preClickTime:Zt.preTouchTime&&(pn=Zt.preTouchTime),Math.abs(pn-Zt.focusTime)<20)return;Zt.focusTime=0}Zt.preClickTime=0,Zt.preTouchTime=0,Zt.isClickToShow()&&(Zt.isClickToHide()||Zt.isBlurToHide())&&Kr&&Kr.preventDefault&&Kr.preventDefault();var sn=!Zt.state.popupVisible;(Zt.isClickToHide()&&!sn||sn&&Zt.isClickToShow())&&Zt.setPopupVisible(!Zt.state.popupVisible,Kr)},Zt.onPopupMouseDown=function(){if(Zt.hasPopupMouseDown=!0,clearTimeout(Zt.mouseDownTimeout),Zt.mouseDownTimeout=window.setTimeout(function(){Zt.hasPopupMouseDown=!1},0),Zt.context){var Kr;(Kr=Zt.context).onPopupMouseDown.apply(Kr,arguments)}},Zt.onDocumentClick=function(Kr){if(Zt.props.mask&&!Zt.props.maskClosable)return;var pn=Kr.target,sn=Zt.getRootDomNode(),yn=Zt.getPopupDomNode();(!Object(it.a)(sn,pn)||Zt.isContextMenuOnly())&&!Object(it.a)(yn,pn)&&!Zt.hasPopupMouseDown&&Zt.close()},Zt.getRootDomNode=function(){var Kr=Zt.props.getTriggerDOMNode;if(Kr)return Kr(Zt.triggerRef.current);try{var pn=Object(Fe.a)(Zt.triggerRef.current);if(pn)return pn}catch(sn){}return Ke.a.findDOMNode(Object(C.a)(Zt))},Zt.getPopupClassNameFromAlign=function(Kr){var pn=[],sn=Zt.props,yn=sn.popupPlacement,Fn=sn.builtinPlacements,Xn=sn.prefixCls,Jn=sn.alignPoint,Ti=sn.getPopupClassNameFromAlign;return yn&&Fn&&pn.push(je(Fn,Xn,Kr,Jn)),Ti&&pn.push(Ti(Kr)),pn.join(" ")},Zt.getComponent=function(){var Kr=Zt.props,pn=Kr.prefixCls,sn=Kr.destroyPopupOnHide,yn=Kr.popupClassName,Fn=Kr.onPopupAlign,Xn=Kr.popupMotion,Jn=Kr.popupAnimation,Ti=Kr.popupTransitionName,ta=Kr.popupStyle,oa=Kr.mask,da=Kr.maskAnimation,ca=Kr.maskTransitionName,ma=Kr.maskMotion,Ui=Kr.zIndex,Ni=Kr.popup,ra=Kr.stretch,qi=Kr.alignPoint,Aa=Kr.mobile,Oa=Kr.forceRender,Zi=Zt.state,Gi=Zi.popupVisible,La=Zi.point,va=Zt.getPopupAlign(),Ci={};return Zt.isMouseEnterToShow()&&(Ci.onMouseEnter=Zt.onPopupMouseEnter),Zt.isMouseLeaveToHide()&&(Ci.onMouseLeave=Zt.onPopupMouseLeave),Ci.onMouseDown=Zt.onPopupMouseDown,Ci.onTouchStart=Zt.onPopupMouseDown,I.createElement(wr,Object(w.a)({prefixCls:pn,destroyPopupOnHide:sn,visible:Gi,point:qi&&La,className:yn,align:va,onAlign:Fn,animation:Jn,getClassNameFromAlign:Zt.getPopupClassNameFromAlign},Ci,{stretch:ra,getRootDomNode:Zt.getRootDomNode,style:ta,mask:oa,zIndex:Ui,transitionName:Ti,maskAnimation:da,maskTransitionName:ca,maskMotion:ma,ref:Zt.popupRef,motion:Xn,mobile:Aa,forceRender:Oa}),typeof Ni=="function"?Ni():Ni)},Zt.attachParent=function(Kr){Oe.a.cancel(Zt.attachId);var pn=Zt.props,sn=pn.getPopupContainer,yn=pn.getDocument,Fn=Zt.getRootDomNode(),Xn;sn?(Fn||sn.length===0)&&(Xn=sn(Fn)):Xn=yn(Zt.getRootDomNode()).body,Xn?Xn.appendChild(Kr):Zt.attachId=Object(Oe.a)(function(){Zt.attachParent(Kr)})},Zt.getContainer=function(){var Kr=Zt.props.getDocument,pn=Kr(Zt.getRootDomNode()).createElement("div");return pn.style.position="absolute",pn.style.top="0",pn.style.left="0",pn.style.width="100%",Zt.attachParent(pn),pn},Zt.setPoint=function(Kr){var pn=Zt.props.alignPoint;if(!pn||!Kr)return;Zt.setState({point:{pageX:Kr.pageX,pageY:Kr.pageY}})},Zt.handlePortalUpdate=function(){Zt.state.prevPopupVisible!==Zt.state.popupVisible&&Zt.props.afterPopupVisibleChange(Zt.state.popupVisible)},Zt.triggerContextValue={onPopupMouseDown:Zt.onPopupMouseDown};var jr;return"popupVisible"in Sr?jr=!!Sr.popupVisible:jr=!!Sr.defaultPopupVisible,Zt.state={prevPopupVisible:jr,popupVisible:jr},Gr.forEach(function(Kr){Zt["fire".concat(Kr)]=function(pn){Zt.fireEvents(Kr,pn)}}),Zt}return Object(T.a)(Gt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Zt=this.props,jr=this.state;if(jr.popupVisible){var Kr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Kr=Zt.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(At.a)(Kr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Kr=Kr||Zt.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(At.a)(Kr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Kr=Kr||Zt.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(At.a)(Kr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(At.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Oe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Zt;return((Zt=this.popupRef.current)===null||Zt===void 0?void 0:Zt.getElement())||null}},{key:"getPopupAlign",value:function(){var Zt=this.props,jr=Zt.popupPlacement,Kr=Zt.popupAlign,pn=Zt.builtinPlacements;return jr&&pn?Et(pn,jr,Kr):Kr}},{key:"setPopupVisible",value:function(Zt,jr){var Kr=this.props.alignPoint,pn=this.state.popupVisible;this.clearDelayTimer(),pn!==Zt&&("popupVisible"in this.props||this.setState({popupVisible:Zt,prevPopupVisible:pn}),this.props.onPopupVisibleChange(Zt)),Kr&&jr&&Zt&&this.setPoint(jr)}},{key:"delaySetPopupVisible",value:function(Zt,jr,Kr){var pn=this,sn=jr*1e3;if(this.clearDelayTimer(),sn){var yn=Kr?{pageX:Kr.pageX,pageY:Kr.pageY}:null;this.delayTimer=window.setTimeout(function(){pn.setPopupVisible(Zt,yn),pn.clearDelayTimer()},sn)}else this.setPopupVisible(Zt,Kr)}},{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(Zt){var jr=this.props.children.props,Kr=this.props;return jr[Zt]&&Kr[Zt]?this["fire".concat(Zt)]:jr[Zt]||Kr[Zt]}},{key:"isClickToShow",value:function(){var Zt=this.props,jr=Zt.action,Kr=Zt.showAction;return jr.indexOf("click")!==-1||Kr.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Zt=this.props.action;return Zt==="contextMenu"||Zt.length===1&&Zt[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Zt=this.props,jr=Zt.action,Kr=Zt.showAction;return jr.indexOf("contextMenu")!==-1||Kr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Zt=this.props,jr=Zt.action,Kr=Zt.hideAction;return jr.indexOf("click")!==-1||Kr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Zt=this.props,jr=Zt.action,Kr=Zt.showAction;return jr.indexOf("hover")!==-1||Kr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Zt=this.props,jr=Zt.action,Kr=Zt.hideAction;return jr.indexOf("hover")!==-1||Kr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Zt=this.props,jr=Zt.action,Kr=Zt.showAction;return jr.indexOf("focus")!==-1||Kr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Zt=this.props,jr=Zt.action,Kr=Zt.hideAction;return jr.indexOf("focus")!==-1||Kr.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Zt;(Zt=this.popupRef.current)===null||Zt===void 0||Zt.forceAlign()}}},{key:"fireEvents",value:function(Zt,jr){var Kr=this.props.children.props[Zt];Kr&&Kr(jr);var pn=this.props[Zt];pn&&pn(jr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Zt=this.state.popupVisible,jr=this.props,Kr=jr.children,pn=jr.forceRender,sn=jr.alignPoint,yn=jr.className,Fn=jr.autoDestroy,Xn=I.Children.only(Kr),Jn={key:"trigger"};this.isContextMenuToShow()?Jn.onContextMenu=this.onContextMenu:Jn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Jn.onClick=this.onClick,Jn.onMouseDown=this.onMouseDown,Jn.onTouchStart=this.onTouchStart):(Jn.onClick=this.createTwoChains("onClick"),Jn.onMouseDown=this.createTwoChains("onMouseDown"),Jn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Jn.onMouseEnter=this.onMouseEnter,sn&&(Jn.onMouseMove=this.onMouseMove)):Jn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Jn.onMouseLeave=this.onMouseLeave:Jn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Jn.onFocus=this.onFocus,Jn.onBlur=this.onBlur):(Jn.onFocus=this.createTwoChains("onFocus"),Jn.onBlur=this.createTwoChains("onBlur"));var Ti=l()(Xn&&Xn.props&&Xn.props.className,yn);Ti&&(Jn.className=Ti);var ta=Object(s.a)({},Jn);Object(ft.c)(Xn)&&(ta.ref=Object(ft.a)(this.triggerRef,Xn.ref));var oa=I.cloneElement(Xn,ta),da;return(Zt||this.popupRef.current||pn)&&(da=I.createElement(yr,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Zt&&Fn&&(da=null),I.createElement(Nr.Provider,{value:this.triggerContextValue},oa,da)}}],[{key:"getDerivedStateFromProps",value:function(Zt,jr){var Kr=Zt.popupVisible,pn={};return Kr!==void 0&&jr.popupVisible!==Kr&&(pn.popupVisible=Kr,pn.prevPopupVisible=jr.popupVisible),pn}}]),Gt}(I.Component);return Mr.contextType=Nr,Mr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:un,getDocument:ar,onPopupVisibleChange:Kt,afterPopupVisibleChange:Kt,onPopupAlign:Kt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Mr}var gr=Br(bt.a),Sn={adjustX:1,adjustY:1},Pn={topLeft:{points:["bl","tl"],overflow:Sn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Sn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Sn,offset:[4,0]}},ii={topLeft:{points:["bl","tl"],overflow:Sn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Sn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Sn,offset:[4,0]}},oi=Pn,ti=0,bi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},kn=function(Mr,Qr,Ir){var Gt=Ne(Qr),Sr=Mr.getState();Mr.setState({defaultActiveFirst:Object(s.a)(Object(s.a)({},Sr.defaultActiveFirst),{},Object(o.a)({},Gt,Ir))})},Ii=function(yr){Object(O.a)(Qr,yr);var Mr=Object(_.a)(Qr);function Qr(Ir){var Gt;Object(S.a)(this,Qr),Gt=Mr.call(this,Ir),Gt.onDestroy=function(sn){Gt.props.onDestroy(sn)},Gt.onKeyDown=function(sn){var yn=sn.keyCode,Fn=Gt.menuInstance,Xn=Gt.props.store,Jn=Gt.getVisible();if(yn===h.a.ENTER)return Gt.onTitleClick(sn),kn(Xn,Gt.props.eventKey,!0),!0;if(yn===h.a.RIGHT)return Jn?Fn.onKeyDown(sn):(Gt.triggerOpenChange(!0),kn(Xn,Gt.props.eventKey,!0)),!0;if(yn===h.a.LEFT){var Ti;if(Jn)Ti=Fn.onKeyDown(sn);else return;return Ti||(Gt.triggerOpenChange(!1),Ti=!0),Ti}return Jn&&(yn===h.a.UP||yn===h.a.DOWN)?Fn.onKeyDown(sn):void 0},Gt.onOpenChange=function(sn){Gt.props.onOpenChange(sn)},Gt.onPopupVisibleChange=function(sn){Gt.triggerOpenChange(sn,sn?"mouseenter":"mouseleave")},Gt.onMouseEnter=function(sn){var yn=Gt.props,Fn=yn.eventKey,Xn=yn.onMouseEnter,Jn=yn.store;kn(Jn,Gt.props.eventKey,!1),Xn({key:Fn,domEvent:sn})},Gt.onMouseLeave=function(sn){var yn=Gt.props,Fn=yn.parentMenu,Xn=yn.eventKey,Jn=yn.onMouseLeave;Fn.subMenuInstance=Object(C.a)(Gt),Jn({key:Xn,domEvent:sn})},Gt.onTitleMouseEnter=function(sn){var yn=Gt.props,Fn=yn.eventKey,Xn=yn.onItemHover,Jn=yn.onTitleMouseEnter;Xn({key:Fn,hover:!0}),Jn({key:Fn,domEvent:sn})},Gt.onTitleMouseLeave=function(sn){var yn=Gt.props,Fn=yn.parentMenu,Xn=yn.eventKey,Jn=yn.onItemHover,Ti=yn.onTitleMouseLeave;Fn.subMenuInstance=Object(C.a)(Gt),Jn({key:Xn,hover:!1}),Ti({key:Xn,domEvent:sn})},Gt.onTitleClick=function(sn){var yn=Object(C.a)(Gt),Fn=yn.props;if(Fn.onTitleClick({key:Fn.eventKey,domEvent:sn}),Fn.triggerSubMenuAction==="hover")return;Gt.triggerOpenChange(!Gt.getVisible(),"click"),kn(Fn.store,Gt.props.eventKey,!1)},Gt.onSubMenuClick=function(sn){typeof Gt.props.onClick=="function"&&Gt.props.onClick(Gt.addKeyPath(sn))},Gt.onSelect=function(sn){Gt.props.onSelect(sn)},Gt.onDeselect=function(sn){Gt.props.onDeselect(sn)},Gt.getPrefixCls=function(){return"".concat(Gt.props.rootPrefixCls,"-submenu")},Gt.getActiveClassName=function(){return"".concat(Gt.getPrefixCls(),"-active")},Gt.getDisabledClassName=function(){return"".concat(Gt.getPrefixCls(),"-disabled")},Gt.getSelectedClassName=function(){return"".concat(Gt.getPrefixCls(),"-selected")},Gt.getOpenClassName=function(){return"".concat(Gt.props.rootPrefixCls,"-submenu-open")},Gt.getVisible=function(){return Gt.state.isOpen},Gt.getMode=function(){return Gt.state.mode},Gt.saveMenuInstance=function(sn){Gt.menuInstance=sn},Gt.addKeyPath=function(sn){return Object(s.a)(Object(s.a)({},sn),{},{keyPath:(sn.keyPath||[]).concat(Gt.props.eventKey)})},Gt.triggerOpenChange=function(sn,yn){var Fn=Gt.props.eventKey,Xn=function(){Gt.onOpenChange({key:Fn,item:Object(C.a)(Gt),trigger:yn,open:sn})};yn==="mouseenter"?Gt.mouseenterTimeout=setTimeout(function(){Xn()},0):Xn()},Gt.isChildrenSelected=function(){var sn={find:!1};return De(Gt.props.children,Gt.props.selectedKeys,sn),sn.find},Gt.isInlineMode=function(){return Gt.getMode()==="inline"},Gt.adjustWidth=function(){if(!Gt.subMenuTitle||!Gt.menuInstance)return;var sn=Ve.findDOMNode(Gt.menuInstance);if(sn.offsetWidth>=Gt.subMenuTitle.offsetWidth)return;sn.style.minWidth="".concat(Gt.subMenuTitle.offsetWidth,"px")},Gt.saveSubMenuTitle=function(sn){Gt.subMenuTitle=sn},Gt.getBaseProps=function(){var sn=Object(C.a)(Gt),yn=sn.props,Fn=Gt.getMode();return{mode:Fn==="horizontal"?"vertical":Fn,visible:Gt.getVisible(),level:yn.level+1,inlineIndent:yn.inlineIndent,focusable:!1,onClick:Gt.onSubMenuClick,onSelect:Gt.onSelect,onDeselect:Gt.onDeselect,onDestroy:Gt.onDestroy,selectedKeys:yn.selectedKeys,eventKey:"".concat(yn.eventKey,"-menu-"),openKeys:yn.openKeys,motion:yn.motion,onOpenChange:Gt.onOpenChange,subMenuOpenDelay:yn.subMenuOpenDelay,parentMenu:Object(C.a)(Gt),subMenuCloseDelay:yn.subMenuCloseDelay,forceSubMenuRender:yn.forceSubMenuRender,triggerSubMenuAction:yn.triggerSubMenuAction,builtinPlacements:yn.builtinPlacements,defaultActiveFirst:yn.store.getState().defaultActiveFirst[Ne(yn.eventKey)],multiple:yn.multiple,prefixCls:yn.rootPrefixCls,id:Gt.internalMenuId,manualRef:Gt.saveMenuInstance,itemIcon:yn.itemIcon,expandIcon:yn.expandIcon,direction:yn.direction}},Gt.getMotion=function(sn,yn){var Fn=Object(C.a)(Gt),Xn=Fn.haveRendered,Jn=Gt.props,Ti=Jn.motion,ta=Jn.rootPrefixCls,oa=Object(s.a)(Object(s.a)({},Ti),{},{leavedClassName:"".concat(ta,"-hidden"),removeOnLeave:!1,motionAppear:Xn||!yn||sn!=="inline"});return oa};var Sr=Ir.store,Zt=Ir.eventKey,jr=Sr.getState(),Kr=jr.defaultActiveFirst;Gt.isRootMenu=!1;var pn=!1;return Kr&&(pn=Kr[Zt]),kn(Sr,Zt,pn),Gt.state={mode:Ir.mode,isOpen:Ir.isOpen},Gt}return Object(T.a)(Qr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Gt=this,Sr=this.props,Zt=Sr.mode,jr=Sr.parentMenu,Kr=Sr.manualRef,pn=Sr.isOpen,sn=function(){Gt.setState({mode:Zt,isOpen:pn})},yn=pn!==this.state.isOpen,Fn=Zt!==this.state.mode;if((Fn||yn)&&(Oe.a.cancel(this.updateStateRaf),Fn?this.updateStateRaf=Object(Oe.a)(sn):sn()),Kr&&Kr(this),Zt!=="horizontal"||!(jr==null?void 0:jr.isRootMenu)||!pn)return;this.minWidthTimeout=setTimeout(function(){return Gt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Gt=this.props,Sr=Gt.onDestroy,Zt=Gt.eventKey;Sr&&Sr(Zt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Oe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Gt,Sr){var Zt=this.getBaseProps();return I.createElement(bn,Object(w.a)({},Zt,{id:this.internalMenuId,className:Gt,style:Sr}),this.props.children)}},{key:"renderChildren",value:function(){var Gt=this,Sr=this.getBaseProps(),Zt=Sr.mode,jr=Sr.visible,Kr=Sr.forceSubMenuRender,pn=Sr.direction,sn=this.getMotion(Zt,jr);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||jr||Kr,!this.haveOpened)return I.createElement("div",null);var yn=l()("".concat(Sr.prefixCls,"-sub"),Object(o.a)({},"".concat(Sr.prefixCls,"-rtl"),pn==="rtl"));return this.isInlineMode()?I.createElement(In,Object(w.a)({visible:Sr.visible,forceRender:Kr},sn),function(Fn){var Xn=Fn.className,Jn=Fn.style,Ti=l()(yn,Xn);return Gt.renderPopupMenu(Ti,Jn)}):this.renderPopupMenu(yn)}},{key:"render",value:function(){var Gt,Sr,Zt,jr=Object(s.a)({},this.props),Kr=this.getVisible(),pn=this.getPrefixCls(),sn=this.isInlineMode(),yn=this.getMode(),Fn=l()(pn,"".concat(pn,"-").concat(yn),(Gt={},Object(o.a)(Gt,jr.className,!!jr.className),Object(o.a)(Gt,this.getOpenClassName(),Kr),Object(o.a)(Gt,this.getActiveClassName(),jr.active||Kr&&!sn),Object(o.a)(Gt,this.getDisabledClassName(),jr.disabled),Object(o.a)(Gt,this.getSelectedClassName(),this.isChildrenSelected()),Gt));this.internalMenuId||(jr.eventKey?this.internalMenuId="".concat(jr.eventKey,"$Menu"):(ti+=1,this.internalMenuId="$__$".concat(ti,"$Menu")));var Xn={},Jn={},Ti={};jr.disabled||(Xn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Jn={onClick:this.onTitleClick},Ti={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ta={},oa=jr.direction,da=oa==="rtl";sn&&(da?ta.paddingRight=jr.inlineIndent*jr.level:ta.paddingLeft=jr.inlineIndent*jr.level);var ca={};this.getVisible()&&(ca={"aria-owns":this.internalMenuId});var ma=null;yn!=="horizontal"&&(ma=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ma=I.createElement(this.props.expandIcon,Object(s.a)({},this.props))));var Ui=I.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:ta,className:"".concat(pn,"-title"),role:"button"},Ti,Jn,{"aria-expanded":Kr},ca,{"aria-haspopup":"true",title:typeof jr.title=="string"?jr.title:void 0}),jr.title,ma||I.createElement("i",{className:"".concat(pn,"-arrow")})),Ni=this.renderChildren(),ra=((Sr=jr.parentMenu)===null||Sr===void 0?void 0:Sr.isRootMenu)?jr.parentMenu.props.getPopupContainer:function(Pa){return Pa.parentNode},qi=bi[yn],Aa=jr.popupOffset?{offset:jr.popupOffset}:{},Oa=l()((Zt={},Object(o.a)(Zt,jr.popupClassName,jr.popupClassName&&!sn),Object(o.a)(Zt,"".concat(pn,"-rtl"),da),Zt)),Zi=jr.disabled,Gi=jr.triggerSubMenuAction,La=jr.subMenuOpenDelay,va=jr.forceSubMenuRender,Ci=jr.subMenuCloseDelay,Sa=jr.builtinPlacements;Ee.forEach(function(Pa){return delete jr[Pa]}),delete jr.onClick;var Da=da?Object(s.a)(Object(s.a)({},ii),Sa):Object(s.a)(Object(s.a)({},Pn),Sa);delete jr.direction;var Na=this.getBaseProps(),Ua=sn?null:this.getMotion(Na.mode,Na.visible);return I.createElement("li",Object(w.a)({},jr,Xn,{className:Fn,role:"menuitem"}),I.createElement(gr,{prefixCls:pn,popupClassName:l()("".concat(pn,"-popup"),Oa),getPopupContainer:ra,builtinPlacements:Da,popupPlacement:qi,popupVisible:sn?!1:Kr,popupAlign:Aa,popup:sn?null:Ni,action:Zi||sn?[]:[Gi],mouseEnterDelay:La,mouseLeaveDelay:Ci,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:va,popupMotion:Ua},Ui),sn?Ni:null)}}]),Qr}(I.Component);Ii.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var gn=Object(M.b)(function(yr,Mr){var Qr=yr.openKeys,Ir=yr.activeKey,Gt=yr.selectedKeys,Sr=Mr.eventKey,Zt=Mr.subMenuKey;return{isOpen:Qr.indexOf(Sr)>-1,active:Ir[Zt]===Sr,selectedKeys:Gt}})(Ii);gn.isSubMenu=!0;var Vr=gn,xn="menuitem-overflowed",tn=.5,ui=function(yr){Object(O.a)(Qr,yr);var Mr=Object(_.a)(Qr);function Qr(){var Ir;return Object(S.a)(this,Qr),Ir=Mr.apply(this,arguments),Ir.resizeObserver=null,Ir.mutationObserver=null,Ir.originalTotalWidth=0,Ir.overflowedItems=[],Ir.menuItemSizes=[],Ir.cancelFrameId=null,Ir.state={lastVisibleIndex:void 0},Ir.childRef=I.createRef(),Ir.getMenuItemNodes=function(){var Gt=Ir.props.prefixCls,Sr=Ir.childRef.current;return Sr?[].slice.call(Sr.children).filter(function(Zt){return Zt.className.split(" ").indexOf("".concat(Gt,"-overflowed-submenu"))<0}):[]},Ir.getOverflowedSubMenuItem=function(Gt,Sr,Zt){var jr=Ir.props,Kr=jr.overflowedIndicator,pn=jr.level,sn=jr.mode,yn=jr.prefixCls,Fn=jr.theme;if(pn!==1||sn!=="horizontal")return null;var Xn=Ir.props.children[0],Jn=Xn.props,Ti=Jn.children,ta=Jn.title,oa=Jn.style,da=Object(f.a)(Jn,["children","title","style"]),ca=Object(s.a)({},oa),ma="".concat(Gt,"-overflowed-indicator"),Ui="".concat(Gt,"-overflowed-indicator");Sr.length===0&&Zt!==!0?ca=Object(s.a)(Object(s.a)({},ca),{},{display:"none"}):Zt&&(ca=Object(s.a)(Object(s.a)({},ca),{},{visibility:"hidden",position:"absolute"}),ma="".concat(ma,"-placeholder"),Ui="".concat(Ui,"-placeholder"));var Ni=Fn?"".concat(yn,"-").concat(Fn):"",ra={};return Ee.forEach(function(qi){da[qi]!==void 0&&(ra[qi]=da[qi])}),I.createElement(Vr,Object(w.a)({title:Kr,className:"".concat(yn,"-overflowed-submenu"),popupClassName:Ni},ra,{key:ma,eventKey:Ui,disabled:!1,style:ca}),Sr)},Ir.setChildrenWidthAndResize=function(){if(Ir.props.mode!=="horizontal")return;var Gt=Ir.childRef.current;if(!Gt)return;var Sr=Gt.children;if(!Sr||Sr.length===0)return;var Zt=Gt.children[Sr.length-1];ne(Zt,"display","inline-block");var jr=Ir.getMenuItemNodes(),Kr=jr.filter(function(pn){return pn.className.split(" ").indexOf(xn)>=0});Kr.forEach(function(pn){ne(pn,"display","inline-block")}),Ir.menuItemSizes=jr.map(function(pn){return ce(pn,!0)}),Kr.forEach(function(pn){ne(pn,"display","none")}),Ir.overflowedIndicatorWidth=ce(Gt.children[Gt.children.length-1],!0),Ir.originalTotalWidth=Ir.menuItemSizes.reduce(function(pn,sn){return pn+sn},0),Ir.handleResize(),ne(Zt,"display","none")},Ir.handleResize=function(){if(Ir.props.mode!=="horizontal")return;var Gt=Ir.childRef.current;if(!Gt)return;var Sr=ce(Gt);Ir.overflowedItems=[];var Zt=0,jr;Ir.originalTotalWidth>Sr+tn&&(jr=-1,Ir.menuItemSizes.forEach(function(Kr){Zt+=Kr,Zt+Ir.overflowedIndicatorWidth<=Sr&&(jr+=1)})),Ir.setState({lastVisibleIndex:jr})},Ir}return Object(T.a)(Qr,[{key:"componentDidMount",value:function(){var Gt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Sr=this.childRef.current;if(!Sr)return;this.resizeObserver=new Ae.default(function(Zt){Zt.forEach(function(){var jr=Gt.cancelFrameId;cancelAnimationFrame(jr),Gt.cancelFrameId=requestAnimationFrame(Gt.setChildrenWidthAndResize)})}),[].slice.call(Sr.children).concat(Sr).forEach(function(Zt){Gt.resizeObserver.observe(Zt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Gt.resizeObserver.disconnect(),[].slice.call(Sr.children).concat(Sr).forEach(function(Zt){Gt.resizeObserver.observe(Zt)}),Gt.setChildrenWidthAndResize()}),this.mutationObserver.observe(Sr,{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(Gt){var Sr=this,Zt=this.state.lastVisibleIndex;return(Gt||[]).reduce(function(jr,Kr,pn){var sn=Kr;if(Sr.props.mode==="horizontal"){var yn=Sr.getOverflowedSubMenuItem(Kr.props.eventKey,[]);Zt!==void 0&&Sr.props.className.indexOf("".concat(Sr.props.prefixCls,"-root"))!==-1&&(pn>Zt&&(sn=I.cloneElement(Kr,{style:{display:"none"},eventKey:"".concat(Kr.props.eventKey,"-hidden"),className:"".concat(xn)})),pn===Zt+1&&(Sr.overflowedItems=Gt.slice(Zt+1).map(function(Xn){return I.cloneElement(Xn,{key:Xn.props.eventKey,mode:"vertical-left"})}),yn=Sr.getOverflowedSubMenuItem(Kr.props.eventKey,Sr.overflowedItems)));var Fn=[].concat(Object(u.a)(jr),[yn,sn]);return pn===Gt.length-1&&Fn.push(Sr.getOverflowedSubMenuItem(Kr.props.eventKey,[],!0)),Fn}return[].concat(Object(u.a)(jr),[sn])},[])}},{key:"render",value:function(){var Gt=this.props,Sr=Gt.visible,Zt=Gt.prefixCls,jr=Gt.overflowedIndicator,Kr=Gt.mode,pn=Gt.level,sn=Gt.tag,yn=Gt.children,Fn=Gt.theme,Xn=Object(f.a)(Gt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Jn=sn;return I.createElement(Jn,Object(w.a)({ref:this.childRef},Xn),this.renderChildren(yn))}}]),Qr}(I.Component);ui.defaultProps={tag:"div",className:""};var qn=ui;function wi(yr){return yr.length?yr.every(function(Mr){return!!Mr.props.disabled}):!0}function Qn(yr,Mr,Qr){var Ir=yr.getState();yr.setState({activeKey:Object(s.a)(Object(s.a)({},Ir.activeKey),{},Object(o.a)({},Mr,Qr))})}function Hi(yr){return yr.eventKey||"0-menu-"}function ri(yr,Mr){var Qr=Mr,Ir=yr.children,Gt=yr.eventKey;if(Qr){var Sr;if(we(Ir,function(Zt,jr){Zt&&Zt.props&&!Zt.props.disabled&&Qr===de(Zt,Gt,jr)&&(Sr=!0)}),Sr)return Qr}return Qr=null,yr.defaultActiveFirst&&we(Ir,function(Zt,jr){!Qr&&Zt&&!Zt.props.disabled&&(Qr=de(Zt,Gt,jr))}),Qr}function Mi(yr){if(!yr)return;var Mr=this.instanceArray.indexOf(yr);Mr!==-1?this.instanceArray[Mr]=yr:this.instanceArray.push(yr)}var dn=function(yr){Object(O.a)(Qr,yr);var Mr=Object(_.a)(Qr);function Qr(Ir){var Gt;return Object(S.a)(this,Qr),Gt=Mr.call(this,Ir),Gt.onKeyDown=function(Sr,Zt){var jr=Sr.keyCode,Kr;if(Gt.getFlatInstanceArray().forEach(function(sn){sn&&sn.props.active&&sn.onKeyDown&&(Kr=sn.onKeyDown(Sr))}),Kr)return 1;var pn=null;return(jr===h.a.UP||jr===h.a.DOWN)&&(pn=Gt.step(jr===h.a.UP?-1:1)),pn?(Sr.preventDefault(),Qn(Gt.props.store,Hi(Gt.props),pn.props.eventKey),typeof Zt=="function"&&Zt(pn),1):void 0},Gt.onItemHover=function(Sr){var Zt=Sr.key,jr=Sr.hover;Qn(Gt.props.store,Hi(Gt.props),jr?Zt:null)},Gt.onDeselect=function(Sr){Gt.props.onDeselect(Sr)},Gt.onSelect=function(Sr){Gt.props.onSelect(Sr)},Gt.onClick=function(Sr){Gt.props.onClick(Sr)},Gt.onOpenChange=function(Sr){Gt.props.onOpenChange(Sr)},Gt.onDestroy=function(Sr){Gt.props.onDestroy(Sr)},Gt.getFlatInstanceArray=function(){return Gt.instanceArray},Gt.step=function(Sr){var Zt=Gt.getFlatInstanceArray(),jr=Gt.props.store.getState().activeKey[Hi(Gt.props)],Kr=Zt.length;if(!Kr)return null;Sr<0&&(Zt=Zt.concat().reverse());var pn=-1;if(Zt.every(function(Xn,Jn){return Xn&&Xn.props.eventKey===jr?(pn=Jn,!1):!0}),!Gt.props.defaultActiveFirst&&pn!==-1&&wi(Zt.slice(pn,Kr-1)))return;var sn=(pn+1)%Kr,yn=sn;do{var Fn=Zt[yn];if(!Fn||Fn.props.disabled)yn=(yn+1)%Kr;else return Fn}while(yn!==sn);return null},Gt.renderCommonMenuItem=function(Sr,Zt,jr){var Kr=Gt.props.store.getState(),pn=Object(C.a)(Gt),sn=pn.props,yn=de(Sr,sn.eventKey,Zt),Fn=Sr.props;if(!Fn||typeof Sr.type=="string")return Sr;var Xn=yn===Kr.activeKey,Jn=Object(s.a)(Object(s.a)({mode:Fn.mode||sn.mode,level:sn.level,inlineIndent:sn.inlineIndent,renderMenuItem:Gt.renderMenuItem,rootPrefixCls:sn.prefixCls,index:Zt,parentMenu:sn.parentMenu,manualRef:Fn.disabled?void 0:Object(R.a)(Sr.ref,Mi.bind(Object(C.a)(Gt))),eventKey:yn,active:!Fn.disabled&&Xn,multiple:sn.multiple,onClick:function(ta){(Fn.onClick||le)(ta),Gt.onClick(ta)},onItemHover:Gt.onItemHover,motion:sn.motion,subMenuOpenDelay:sn.subMenuOpenDelay,subMenuCloseDelay:sn.subMenuCloseDelay,forceSubMenuRender:sn.forceSubMenuRender,onOpenChange:Gt.onOpenChange,onDeselect:Gt.onDeselect,onSelect:Gt.onSelect,builtinPlacements:sn.builtinPlacements,itemIcon:Fn.itemIcon||Gt.props.itemIcon,expandIcon:Fn.expandIcon||Gt.props.expandIcon},jr),{},{direction:sn.direction});return(sn.mode==="inline"||ee())&&(Jn.triggerSubMenuAction="click"),I.cloneElement(Sr,Object(s.a)(Object(s.a)({},Jn),{},{key:yn||Zt}))},Gt.renderMenuItem=function(Sr,Zt,jr){if(!Sr)return null;var Kr=Gt.props.store.getState(),pn={openKeys:Kr.openKeys,selectedKeys:Kr.selectedKeys,triggerSubMenuAction:Gt.props.triggerSubMenuAction,subMenuKey:jr};return Gt.renderCommonMenuItem(Sr,Zt,pn)},Ir.store.setState({activeKey:Object(s.a)(Object(s.a)({},Ir.store.getState().activeKey),{},Object(o.a)({},Ir.eventKey,ri(Ir,Ir.activeKey)))}),Gt.instanceArray=[],Gt}return Object(T.a)(Qr,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Gt){return this.props.visible||Gt.visible||this.props.className!==Gt.className||!P()(this.props.style,Gt.style)}},{key:"componentDidUpdate",value:function(Gt){var Sr=this.props,Zt="activeKey"in Sr?Sr.activeKey:Sr.store.getState().activeKey[Hi(Sr)],jr=ri(Sr,Zt);if(jr!==Zt)Qn(Sr.store,Hi(Sr),jr);else if("activeKey"in Gt){var Kr=ri(Gt,Gt.activeKey);jr!==Kr&&Qn(Sr.store,Hi(Sr),jr)}}},{key:"render",value:function(){var Gt=this,Sr=Object(w.a)({},this.props);this.instanceArray=[];var Zt=l()(Sr.prefixCls,Sr.className,"".concat(Sr.prefixCls,"-").concat(Sr.mode)),jr={className:Zt,role:Sr.role||"menu"};Sr.id&&(jr.id=Sr.id),Sr.focusable&&(jr.tabIndex=0,jr.onKeyDown=this.onKeyDown);var Kr=Sr.prefixCls,pn=Sr.eventKey,sn=Sr.visible,yn=Sr.level,Fn=Sr.mode,Xn=Sr.overflowedIndicator,Jn=Sr.theme;return Ee.forEach(function(Ti){return delete Sr[Ti]}),delete Sr.onClick,I.createElement(qn,Object(w.a)({},Sr,{prefixCls:Kr,mode:Fn,tag:"ul",level:yn,theme:Jn,visible:sn,overflowedIndicator:Xn},jr),Object(a.a)(Sr.children).map(function(Ti,ta){return Gt.renderMenuItem(Ti,ta,pn||"0-menu-")}))}}]),Qr}(I.Component);dn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var Ur=Object(M.b)()(dn),bn=Ur,Mn=y("Kwbf");function Gn(yr,Mr,Qr){var Ir=yr.prefixCls,Gt=yr.motion,Sr=yr.defaultMotions,Zt=Sr===void 0?{}:Sr,jr=yr.openAnimation,Kr=yr.openTransitionName,pn=Mr.switchingModeFromInline;if(Gt)return Gt;if(Object(U.a)(jr)==="object"&&jr)Object(Mn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof jr=="string")return{motionName:"".concat(Ir,"-open-").concat(jr)};if(Kr)return{motionName:Kr};var sn=Zt[Qr];return sn||(pn?null:Zt.other)}var $n=function(yr){Object(O.a)(Qr,yr);var Mr=Object(_.a)(Qr);function Qr(Ir){var Gt;Object(S.a)(this,Qr),Gt=Mr.call(this,Ir),Gt.onSelect=function(jr){var Kr=Object(C.a)(Gt),pn=Kr.props;if(pn.selectable){var sn=Gt.store.getState(),yn=sn.selectedKeys,Fn=jr.key;pn.multiple?yn=yn.concat([Fn]):yn=[Fn],"selectedKeys"in pn||Gt.store.setState({selectedKeys:yn}),pn.onSelect(Object(s.a)(Object(s.a)({},jr),{},{selectedKeys:yn}))}},Gt.onClick=function(jr){var Kr=Gt.getRealMenuMode(),pn=Object(C.a)(Gt),sn=pn.store,yn=pn.props.onOpenChange;Kr!=="inline"&&!("openKeys"in Gt.props)&&(sn.setState({openKeys:[]}),yn([])),Gt.props.onClick(jr)},Gt.onKeyDown=function(jr,Kr){Gt.innerMenu.getWrappedInstance().onKeyDown(jr,Kr)},Gt.onOpenChange=function(jr){var Kr=Object(C.a)(Gt),pn=Kr.props,sn=Gt.store.getState().openKeys.concat(),yn=!1,Fn=function(Jn){var Ti=!1;if(Jn.open)Ti=sn.indexOf(Jn.key)===-1,Ti&&sn.push(Jn.key);else{var ta=sn.indexOf(Jn.key);Ti=ta!==-1,Ti&&sn.splice(ta,1)}yn=yn||Ti};Array.isArray(jr)?jr.forEach(Fn):Fn(jr),yn&&("openKeys"in Gt.props||Gt.store.setState({openKeys:sn}),pn.onOpenChange(sn))},Gt.onDeselect=function(jr){var Kr=Object(C.a)(Gt),pn=Kr.props;if(pn.selectable){var sn=Gt.store.getState().selectedKeys.concat(),yn=jr.key,Fn=sn.indexOf(yn);Fn!==-1&&sn.splice(Fn,1),"selectedKeys"in pn||Gt.store.setState({selectedKeys:sn}),pn.onDeselect(Object(s.a)(Object(s.a)({},jr),{},{selectedKeys:sn}))}},Gt.onMouseEnter=function(jr){Gt.restoreModeVerticalFromInline();var Kr=Gt.props.onMouseEnter;Kr&&Kr(jr)},Gt.onTransitionEnd=function(jr){var Kr=jr.propertyName==="width"&&jr.target===jr.currentTarget,pn=jr.target.className,sn=Object.prototype.toString.call(pn)==="[object SVGAnimatedString]"?pn.animVal:pn,yn=jr.propertyName==="font-size"&&sn.indexOf("anticon")>=0;(Kr||yn)&&Gt.restoreModeVerticalFromInline()},Gt.setInnerMenu=function(jr){Gt.innerMenu=jr},Gt.isRootMenu=!0;var Sr=Ir.defaultSelectedKeys,Zt=Ir.defaultOpenKeys;return"selectedKeys"in Ir&&(Sr=Ir.selectedKeys||[]),"openKeys"in Ir&&(Zt=Ir.openKeys||[]),Gt.store=Object(M.c)({selectedKeys:Sr,openKeys:Zt,activeKey:{"0-menu-":ri(Ir,Ir.activeKey)}}),Gt.state={switchingModeFromInline:!1,prevProps:Ir,inlineOpenKeys:[],store:Gt.store},Gt}return Object(T.a)(Qr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Gt){var Sr=this.props,Zt=Sr.siderCollapsed,jr=Sr.inlineCollapsed,Kr=Sr.onOpenChange;(!Gt.inlineCollapsed&&jr||!Gt.siderCollapsed&&Zt)&&Kr([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Gt=this.props.collapsedWidth,Sr=this.store,Zt=this.prevOpenKeys,jr=this.getInlineCollapsed()&&(Gt===0||Gt==="0"||Gt==="0px");jr?(this.prevOpenKeys=Sr.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Zt&&(this.store.setState({openKeys:Zt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Gt=this.props.mode,Sr=this.state.switchingModeFromInline,Zt=this.getInlineCollapsed();return Sr&&Zt?"inline":Zt?"vertical":Gt}},{key:"getInlineCollapsed",value:function(){var Gt=this.props,Sr=Gt.inlineCollapsed,Zt=Gt.siderCollapsed;return Zt!==void 0?Zt:Sr}},{key:"restoreModeVerticalFromInline",value:function(){var Gt=this.state.switchingModeFromInline;Gt&&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 Gt=Object(s.a)({},Object(k.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Sr=this.getRealMenuMode();return Gt.className+=" ".concat(Gt.prefixCls,"-root"),Gt.direction==="rtl"&&(Gt.className+=" ".concat(Gt.prefixCls,"-rtl")),Gt=Object(s.a)(Object(s.a)({},Gt),{},{mode:Sr,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Gn(this.props,this.state,Sr)}),delete Gt.openAnimation,delete Gt.openTransitionName,I.createElement(M.a,{store:this.store},I.createElement(bn,Object(w.a)({},Gt,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Gt,Sr){var Zt=Sr.prevProps,jr=Sr.store,Kr=jr.getState(),pn={},sn={prevProps:Gt};return Zt.mode==="inline"&&Gt.mode!=="inline"&&(sn.switchingModeFromInline=!0),"openKeys"in Gt?pn.openKeys=Gt.openKeys||[]:((Gt.inlineCollapsed&&!Zt.inlineCollapsed||Gt.siderCollapsed&&!Zt.siderCollapsed)&&(sn.switchingModeFromInline=!0,sn.inlineOpenKeys=Kr.openKeys,pn.openKeys=[]),(!Gt.inlineCollapsed&&Zt.inlineCollapsed||!Gt.siderCollapsed&&Zt.siderCollapsed)&&(pn.openKeys=Sr.inlineOpenKeys,sn.inlineOpenKeys=[])),Object.keys(pn).length&&jr.setState(pn),sn}}]),Qr}(I.Component);$n.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:I.createElement("span",null,"\xB7\xB7\xB7")};var hi=$n,fi=function(yr){Object(O.a)(Qr,yr);var Mr=Object(_.a)(Qr);function Qr(){var Ir;return Object(S.a)(this,Qr),Ir=Mr.apply(this,arguments),Ir.onKeyDown=function(Gt){var Sr=Gt.keyCode;return Sr===h.a.ENTER?(Ir.onClick(Gt),!0):void 0},Ir.onMouseLeave=function(Gt){var Sr=Ir.props,Zt=Sr.eventKey,jr=Sr.onItemHover,Kr=Sr.onMouseLeave;jr({key:Zt,hover:!1}),Kr({key:Zt,domEvent:Gt})},Ir.onMouseEnter=function(Gt){var Sr=Ir.props,Zt=Sr.eventKey,jr=Sr.onItemHover,Kr=Sr.onMouseEnter;jr({key:Zt,hover:!0}),Kr({key:Zt,domEvent:Gt})},Ir.onClick=function(Gt){var Sr=Ir.props,Zt=Sr.eventKey,jr=Sr.multiple,Kr=Sr.onClick,pn=Sr.onSelect,sn=Sr.onDeselect,yn=Sr.isSelected,Fn={key:Zt,keyPath:[Zt],item:Object(C.a)(Ir),domEvent:Gt};Kr(Fn),jr?yn?sn(Fn):pn(Fn):yn||pn(Fn)},Ir.saveNode=function(Gt){Ir.node=Gt},Ir}return Object(T.a)(Qr,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Gt=this.props;Gt.onDestroy&&Gt.onDestroy(Gt.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 Gt,Sr=Object(s.a)({},this.props),Zt=l()(this.getPrefixCls(),Sr.className,(Gt={},Object(o.a)(Gt,this.getActiveClassName(),!Sr.disabled&&Sr.active),Object(o.a)(Gt,this.getSelectedClassName(),Sr.isSelected),Object(o.a)(Gt,this.getDisabledClassName(),Sr.disabled),Gt)),jr=Object(s.a)(Object(s.a)({},Sr.attribute),{},{title:typeof Sr.title=="string"?Sr.title:void 0,className:Zt,role:Sr.role||"menuitem","aria-disabled":Sr.disabled});Sr.role==="option"?jr=Object(s.a)(Object(s.a)({},jr),{},{role:"option","aria-selected":Sr.isSelected}):(Sr.role===null||Sr.role==="none")&&(jr.role="none");var Kr={onClick:Sr.disabled?null:this.onClick,onMouseLeave:Sr.disabled?null:this.onMouseLeave,onMouseEnter:Sr.disabled?null:this.onMouseEnter},pn=Object(s.a)({},Sr.style);Sr.mode==="inline"&&(Sr.direction==="rtl"?pn.paddingRight=Sr.inlineIndent*Sr.level:pn.paddingLeft=Sr.inlineIndent*Sr.level),Ee.forEach(function(yn){return delete Sr[yn]}),delete Sr.direction;var sn=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(sn=I.createElement(this.props.itemIcon,this.props)),I.createElement("li",Object(w.a)({},Object(k.a)(Sr,["onClick","onMouseEnter","onMouseLeave","onSelect"]),jr,Kr,{style:pn,ref:this.saveNode}),Sr.children,sn)}}]),Qr}(I.Component);fi.isMenuItem=!0,fi.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var gi=Object(M.b)(function(yr,Mr){var Qr=yr.activeKey,Ir=yr.selectedKeys,Gt=Mr.eventKey,Sr=Mr.subMenuKey;return{active:Qr[Sr]===Gt,isSelected:Array.isArray(Ir)?Ir.indexOf(Gt)!==-1:Ir===Gt}})(fi),Wi=gi,na=function(yr){Object(O.a)(Qr,yr);var Mr=Object(_.a)(Qr);function Qr(){var Ir;return Object(S.a)(this,Qr),Ir=Mr.apply(this,arguments),Ir.renderInnerMenuItem=function(Gt){var Sr=Ir.props,Zt=Sr.renderMenuItem,jr=Sr.index;return Zt(Gt,jr,Ir.props.subMenuKey)},Ir}return Object(T.a)(Qr,[{key:"render",value:function(){var Gt=Object(w.a)({},this.props),Sr=Gt.className,Zt=Sr===void 0?"":Sr,jr=Gt.rootPrefixCls,Kr="".concat(jr,"-item-group-title"),pn="".concat(jr,"-item-group-list"),sn=Gt.title,yn=Gt.children;return Ee.forEach(function(Fn){return delete Gt[Fn]}),delete Gt.direction,I.createElement("li",Object(w.a)({},Gt,{onClick:function(Xn){return Xn.stopPropagation()},className:"".concat(Zt," ").concat(jr,"-item-group")}),I.createElement("div",{className:Kr,title:typeof sn=="string"?sn:void 0},sn),I.createElement("ul",{className:pn},I.Children.map(yn,this.renderInnerMenuItem)))}}]),Qr}(I.Component);na.isMenuItemGroup=!0,na.defaultProps={disabled:!0};var $i=na,Ha=function(Mr){var Qr=Mr.className,Ir=Mr.rootPrefixCls,Gt=Mr.style;return I.createElement("li",{className:"".concat(Qr," ").concat(Ir,"-item-divider"),style:Gt})};Ha.defaultProps={disabled:!0,className:"",style:{}};var pi=Ha,ln=hi,_i=y("eDIo");function Ji(yr,Mr){var Qr=yr.prefixCls,Ir=yr.editable,Gt=yr.locale,Sr=yr.style;return!Ir||Ir.showAdd===!1?null:I.createElement("button",{ref:Mr,type:"button",className:"".concat(Qr,"-nav-add"),style:Sr,"aria-label":(Gt==null?void 0:Gt.addAriaLabel)||"Add tab",onClick:function(jr){Ir.onEdit("add",{event:jr})}},Ir.addIcon||"+")}var Fi=I.forwardRef(Ji);function ea(yr,Mr){var Qr=yr.prefixCls,Ir=yr.id,Gt=yr.tabs,Sr=yr.locale,Zt=yr.mobile,jr=yr.moreIcon,Kr=jr===void 0?"More":jr,pn=yr.moreTransitionName,sn=yr.style,yn=yr.className,Fn=yr.editable,Xn=yr.tabBarGutter,Jn=yr.rtl,Ti=yr.onTabClick,ta=Object(I.useState)(!1),oa=Object(m.a)(ta,2),da=oa[0],ca=oa[1],ma=Object(I.useState)(null),Ui=Object(m.a)(ma,2),Ni=Ui[0],ra=Ui[1],qi="".concat(Ir,"-more-popup"),Aa="".concat(Qr,"-dropdown"),Oa=Ni!==null?"".concat(qi,"-").concat(Ni):null,Zi=Sr==null?void 0:Sr.dropdownAriaLabel,Gi=I.createElement(ln,{onClick:function(Ua){var Pa=Ua.key,za=Ua.domEvent;Ti(Pa,za),ca(!1)},id:qi,tabIndex:-1,role:"listbox","aria-activedescendant":Oa,selectedKeys:[Ni],"aria-label":Zi!==void 0?Zi:"expanded dropdown"},Gt.map(function(Na){return I.createElement(Wi,{key:Na.key,id:"".concat(qi,"-").concat(Na.key),role:"option","aria-controls":Ir&&"".concat(Ir,"-panel-").concat(Na.key),disabled:Na.disabled},Na.tab)}));function La(Na){for(var Ua=Gt.filter(function(io){return!io.disabled}),Pa=Ua.findIndex(function(io){return io.key===Ni})||0,za=Ua.length,xa=0;xa<za;xa+=1){Pa=(Pa+Na+za)%za;var ja=Ua[Pa];if(!ja.disabled){ra(ja.key);return}}}function va(Na){var Ua=Na.which;if(!da){[h.a.DOWN,h.a.SPACE,h.a.ENTER].includes(Ua)&&(ca(!0),Na.preventDefault());return}switch(Ua){case h.a.UP:La(-1),Na.preventDefault();break;case h.a.DOWN:La(1),Na.preventDefault();break;case h.a.ESC:ca(!1);break;case h.a.SPACE:case h.a.ENTER:Ni!==null&&Ti(Ni,Na);break}}Object(I.useEffect)(function(){var Na=document.getElementById(Oa);Na&&Na.scrollIntoView&&Na.scrollIntoView(!1)},[Ni]),Object(I.useEffect)(function(){da||ra(null)},[da]);var Ci=Object(o.a)({},Jn?"marginLeft":"marginRight",Xn);Gt.length||(Ci.visibility="hidden",Ci.order=1);var Sa=l()(Object(o.a)({},"".concat(Aa,"-rtl"),Jn)),Da=Zt?null:I.createElement(_i.a,{prefixCls:Aa,overlay:Gi,trigger:["hover"],visible:da,transitionName:pn,onVisibleChange:ca,overlayClassName:Sa,mouseEnterDelay:.1,mouseLeaveDelay:.1},I.createElement("button",{type:"button",className:"".concat(Qr,"-nav-more"),style:Ci,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":qi,id:"".concat(Ir,"-more"),"aria-expanded":da,onKeyDown:va},Kr));return I.createElement("div",{className:l()("".concat(Qr,"-nav-operations"),yn),style:sn,ref:Mr},Da,I.createElement(Fi,{prefixCls:Qr,locale:Sr,editable:Fn}))}var Vt=I.forwardRef(ea),Xr=Object(I.createContext)(null),nn=.1,fn=.01,Ze=20,Lt=Math.pow(.995,Ze);function cr(){var yr=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(yr)||/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(yr.substr(0,4)))}function lr(yr,Mr){var Qr=Object(I.useState)(),Ir=Object(m.a)(Qr,2),Gt=Ir[0],Sr=Ir[1],Zt=Object(I.useState)(0),jr=Object(m.a)(Zt,2),Kr=jr[0],pn=jr[1],sn=Object(I.useState)(0),yn=Object(m.a)(sn,2),Fn=yn[0],Xn=yn[1],Jn=Object(I.useState)(),Ti=Object(m.a)(Jn,2),ta=Ti[0],oa=Ti[1],da=Object(I.useRef)();function ca(Zi){var Gi=Zi.touches[0],La=Gi.screenX,va=Gi.screenY;Sr({x:La,y:va}),window.clearInterval(da.current)}function ma(Zi){if(!Gt)return;Zi.preventDefault();var Gi=Zi.touches[0],La=Gi.screenX,va=Gi.screenY;Sr({x:La,y:va});var Ci=La-Gt.x,Sa=va-Gt.y;Mr(Ci,Sa);var Da=Date.now();pn(Da),Xn(Da-Kr),oa({x:Ci,y:Sa})}function Ui(){if(!Gt)return;if(Sr(null),oa(null),ta){var Zi=ta.x/Fn,Gi=ta.y/Fn,La=Math.abs(Zi),va=Math.abs(Gi);if(Math.max(La,va)<nn)return;var Ci=Zi,Sa=Gi;da.current=window.setInterval(function(){if(Math.abs(Ci)<fn&&Math.abs(Sa)<fn){window.clearInterval(da.current);return}Ci*=Lt,Sa*=Lt,Mr(Ci*Ze,Sa*Ze)},Ze)}}var Ni=Object(I.useRef)(0),ra=Object(I.useRef)(!1),qi=Object(I.useRef)();function Aa(Zi){var Gi=Zi.deltaX,La=Zi.deltaY,va=0,Ci=Math.abs(Gi),Sa=Math.abs(La);Ci===Sa?va=qi.current==="x"?Gi:La:Ci>Sa?(va=Gi,qi.current="x"):(va=La,qi.current="y");var Da=Date.now();Da-Ni.current>100&&(ra.current=!1),(Mr(-va,-va)||ra.current)&&(Zi.preventDefault(),ra.current=!0),Ni.current=Da}var Oa=Object(I.useRef)(null);Oa.current={onTouchStart:ca,onTouchMove:ma,onTouchEnd:Ui,onWheel:Aa},I.useEffect(function(){function Zi(Ci){Oa.current.onTouchStart(Ci)}function Gi(Ci){Oa.current.onTouchMove(Ci)}function La(Ci){Oa.current.onTouchEnd(Ci)}function va(Ci){Oa.current.onWheel(Ci)}return document.addEventListener("touchmove",Gi,{passive:!1}),document.addEventListener("touchend",La,{passive:!1}),yr.current.addEventListener("touchstart",Zi,{passive:!1}),yr.current.addEventListener("wheel",va),function(){document.removeEventListener("touchmove",Gi),document.removeEventListener("touchend",La)}},[])}function _r(){var yr=Object(I.useRef)(new Map);function Mr(Ir){return yr.current.has(Ir)||yr.current.set(Ir,I.createRef()),yr.current.get(Ir)}function Qr(Ir){yr.current.delete(Ir)}return[Mr,Qr]}function Rr(yr,Mr){var Qr=I.useRef(yr),Ir=I.useState({}),Gt=Object(m.a)(Ir,2),Sr=Gt[1];function Zt(jr){var Kr=typeof jr=="function"?jr(Qr.current):jr;Kr!==Qr.current&&Mr(Kr,Qr.current),Qr.current=Kr,Sr({})}return[Qr.current,Zt]}var Wr=function(Mr){var Qr=Mr.position,Ir=Mr.prefixCls,Gt=Mr.extra;if(!Gt)return null;var Sr,Zt=Gt;return Qr==="right"&&(Sr=Zt.right||!Zt.left&&Zt||null),Qr==="left"&&(Sr=Zt.left||null),Sr?I.createElement("div",{className:"".concat(Ir,"-extra-content")},Sr):null};function on(yr,Mr){var Qr,Ir=I.useContext(Xr),Gt=Ir.prefixCls,Sr=Ir.tabs,Zt=yr.className,jr=yr.style,Kr=yr.id,pn=yr.animated,sn=yr.activeKey,yn=yr.rtl,Fn=yr.extra,Xn=yr.editable,Jn=yr.locale,Ti=yr.tabPosition,ta=yr.tabBarGutter,oa=yr.children,da=yr.onTabClick,ca=yr.onTabScroll,ma=Object(I.useRef)(),Ui=Object(I.useRef)(),Ni=Object(I.useRef)(),ra=Object(I.useRef)(),qi=_r(),Aa=Object(m.a)(qi,2),Oa=Aa[0],Zi=Aa[1],Gi=Ti==="top"||Ti==="bottom",La=Rr(0,function(Se,Ue){Gi&&ca&&ca({direction:Se>Ue?"left":"right"})}),va=Object(m.a)(La,2),Ci=va[0],Sa=va[1],Da=Rr(0,function(Se,Ue){!Gi&&ca&&ca({direction:Se>Ue?"top":"bottom"})}),Na=Object(m.a)(Da,2),Ua=Na[0],Pa=Na[1],za=Object(I.useState)(0),xa=Object(m.a)(za,2),ja=xa[0],io=xa[1],ia=Object(I.useState)(0),lo=Object(m.a)(ia,2),Xa=lo[0],Ta=lo[1],Qa=Object(I.useState)(0),Ra=Object(m.a)(Qa,2),_a=Ra[0],yo=Ra[1],ao=Object(I.useState)(0),bo=Object(m.a)(ao,2),co=bo[0],uo=bo[1],Ya=Object(I.useState)(null),eo=Object(m.a)(Ya,2),wa=eo[0],ro=eo[1],fo=Object(I.useState)(null),Bi=Object(m.a)(fo,2),Ma=Bi[0],Do=Bi[1],jo=Object(I.useState)(0),Vo=Object(m.a)(jo,2),Go=Vo[0],wo=Vo[1],Ia=Object(I.useState)(0),Po=Object(m.a)(Ia,2),ds=Po[0],ho=Po[1],Oo=d(new Map),Ka=Object(m.a)(Oo,2),Xo=Ka[0],nl=Ka[1],Cs=A(Sr,Xo,ja),_s="".concat(Gt,"-nav-operations-hidden"),xs=0,ps=0;Gi?yn?(xs=0,ps=Math.max(0,ja-wa)):(xs=Math.min(0,wa-ja),ps=0):(xs=Math.min(0,Ma-Xa),ps=0);function Os(Se){return Se<xs?[xs,!1]:Se>ps?[ps,!1]:[Se,!0]}var Ho=Object(I.useRef)(),mo=Object(I.useState)(),es=Object(m.a)(mo,2),Ko=es[0],Bo=es[1];function zr(){Bo(Date.now())}function Yo(){window.clearTimeout(Ho.current)}lr(ma,function(Se,Ue){var ht=!1;function Nt(br,Or){br(function(Zr){var Tn=Os(Zr+Or),Hn=Object(m.a)(Tn,2),si=Hn[0],xi=Hn[1];return ht=xi,si})}if(Gi){if(wa>=ja)return ht;Nt(Sa,Se)}else{if(Ma>=Xa)return ht;Nt(Pa,Ue)}return Yo(),zr(),ht}),Object(I.useEffect)(function(){return Yo(),Ko&&(Ho.current=window.setTimeout(function(){Bo(0)},100)),Yo},[Ko]);function il(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sn,Ue=Cs.get(Se);if(!Ue)return;if(Gi){var ht=Ci;yn?Ue.right<Ci?ht=Ue.right:Ue.right+Ue.width>Ci+wa&&(ht=Ue.right+Ue.width-wa):Ue.left<-Ci?ht=-Ue.left:Ue.left+Ue.width>-Ci+wa&&(ht=-(Ue.left+Ue.width-wa)),Pa(0),Sa(Os(ht)[0])}else{var Nt=Ua;Ue.top<-Ua?Nt=-Ue.top:Ue.top+Ue.height>-Ua+Ma&&(Nt=-(Ue.top+Ue.height-Ma)),Sa(0),Pa(Os(Nt)[0])}}var Ks=b(Cs,{width:wa,height:Ma,left:Ci,top:Ua},{width:_a,height:co},{width:Go,height:ds},Object(s.a)(Object(s.a)({},yr),{},{tabs:Sr})),Ps=Object(m.a)(Ks,2),no=Ps[0],vo=Ps[1],Fo=Sr.map(function(Se){var Ue=Se.key;return I.createElement(g,{id:Kr,prefixCls:Gt,key:Ue,rtl:yn,tab:Se,closable:Se.closable,editable:Xn,active:Ue===sn,tabPosition:Ti,tabBarGutter:ta,renderWrapper:oa,removeAriaLabel:Jn==null?void 0:Jn.removeAriaLabel,ref:Oa(Ue),onClick:function(Nt){da(Ue,Nt)},onRemove:function(){Zi(Ue)},onFocus:function(){il(Ue),zr(),yn||(ma.current.scrollLeft=0),ma.current.scrollTop=0}})}),ns=c(function(){var Se,Ue,ht,Nt,br,Or,Zr,Tn,Hn,si=((Se=ma.current)===null||Se===void 0?void 0:Se.offsetWidth)||0,xi=((Ue=ma.current)===null||Ue===void 0?void 0:Ue.offsetHeight)||0,Ri=((ht=ra.current)===null||ht===void 0?void 0:ht.offsetWidth)||0,sa=((Nt=ra.current)===null||Nt===void 0?void 0:Nt.offsetHeight)||0,ya=((br=Ni.current)===null||br===void 0?void 0:br.offsetWidth)||0,Ja=((Or=Ni.current)===null||Or===void 0?void 0:Or.offsetHeight)||0;ro(si),Do(xi),wo(Ri),ho(sa);var $a=(((Zr=Ui.current)===null||Zr===void 0?void 0:Zr.offsetWidth)||0)-Ri,to=(((Tn=Ui.current)===null||Tn===void 0?void 0:Tn.offsetHeight)||0)-sa;io($a),Ta(to);var _o=(Hn=Ni.current)===null||Hn===void 0?void 0:Hn.className.includes(_s);yo($a-(_o?0:ya)),uo(to-(_o?0:Ja)),nl(function(){var To=new Map;return Sr.forEach(function(Ro){var go=Ro.key,So=Oa(go).current;So&&To.set(go,{width:So.offsetWidth,height:So.offsetHeight,left:So.offsetLeft,top:So.offsetTop})}),To})}),ys=Sr.slice(0,no),ms=Sr.slice(vo+1),Is=[].concat(Object(u.a)(ys),Object(u.a)(ms)),ol=Object(I.useState)(),Ls=Object(m.a)(ol,2),Xs=Ls[0],Bs=Ls[1],gs=Cs.get(sn),Ns=Object(I.useRef)();function Tt(){n.a.cancel(Ns.current)}Object(I.useEffect)(function(){var Se={};return gs&&(Gi?(yn?Se.right=gs.right:Se.left=gs.left,Se.width=gs.width):(Se.top=gs.top,Se.height=gs.height)),Tt(),Ns.current=n()(function(){Bs(Se)}),Tt},[gs,Gi,yn]),Object(I.useEffect)(function(){il()},[sn,gs,Cs,Gi]),Object(I.useEffect)(function(){ns()},[yn,ta,sn,Sr.map(function(Se){return Se.key}).join("_")]);var Rt=!!Is.length,rn="".concat(Gt,"-nav-wrap"),On,vt,se,ye;return Gi?yn?(vt=Ci>0,On=Ci+wa<ja):(On=Ci<0,vt=-Ci+wa<ja):(se=Ua<0,ye=-Ua+Ma<Xa),I.createElement("div",{ref:Mr,role:"tablist",className:l()("".concat(Gt,"-nav"),Zt),style:jr,onKeyDown:function(){zr()}},I.createElement(Wr,{position:"left",extra:Fn,prefixCls:Gt}),I.createElement(i.a,{onResize:ns},I.createElement("div",{className:l()(rn,(Qr={},Object(o.a)(Qr,"".concat(rn,"-ping-left"),On),Object(o.a)(Qr,"".concat(rn,"-ping-right"),vt),Object(o.a)(Qr,"".concat(rn,"-ping-top"),se),Object(o.a)(Qr,"".concat(rn,"-ping-bottom"),ye),Qr)),ref:ma},I.createElement(i.a,{onResize:ns},I.createElement("div",{ref:Ui,className:"".concat(Gt,"-nav-list"),style:{transform:"translate(".concat(Ci,"px, ").concat(Ua,"px)"),transition:Ko?"none":void 0}},Fo,I.createElement(Fi,{ref:ra,prefixCls:Gt,locale:Jn,editable:Xn,style:{visibility:Rt?"hidden":null}}),I.createElement("div",{className:l()("".concat(Gt,"-ink-bar"),Object(o.a)({},"".concat(Gt,"-ink-bar-animated"),pn.inkBar)),style:Xs}))))),I.createElement(Vt,Object.assign({},yr,{ref:Ni,prefixCls:Gt,tabs:Is,className:!Rt&&_s})),I.createElement(Wr,{position:"right",extra:Fn,prefixCls:Gt}))}var En=I.forwardRef(on);function An(yr){var Mr=yr.id,Qr=yr.activeKey,Ir=yr.animated,Gt=yr.tabPosition,Sr=yr.rtl,Zt=yr.destroyInactiveTabPane,jr=I.useContext(Xr),Kr=jr.prefixCls,pn=jr.tabs,sn=Ir.tabPane,yn=pn.findIndex(function(Fn){return Fn.key===Qr});return I.createElement("div",{className:l()("".concat(Kr,"-content-holder"))},I.createElement("div",{className:l()("".concat(Kr,"-content"),"".concat(Kr,"-content-").concat(Gt),Object(o.a)({},"".concat(Kr,"-content-animated"),sn)),style:yn&&sn?Object(o.a)({},Sr?"marginRight":"marginLeft","-".concat(yn,"00%")):null},pn.map(function(Fn){return I.cloneElement(Fn.node,{key:Fn.key,prefixCls:Kr,tabKey:Fn.key,id:Mr,animated:sn,active:Fn.key===Qr,destroyInactiveTabPane:Zt})})))}function Rn(yr){var Mr=yr.prefixCls,Qr=yr.forceRender,Ir=yr.className,Gt=yr.style,Sr=yr.id,Zt=yr.active,jr=yr.animated,Kr=yr.destroyInactiveTabPane,pn=yr.tabKey,sn=yr.children,yn=I.useState(Qr),Fn=Object(m.a)(yn,2),Xn=Fn[0],Jn=Fn[1];I.useEffect(function(){Zt?Jn(!0):Kr&&Jn(!1)},[Zt,Kr]);var Ti={};return Zt||(jr?(Ti.visibility="hidden",Ti.height=0,Ti.overflowY="hidden"):Ti.display="none"),I.createElement("div",{id:Sr&&"".concat(Sr,"-panel-").concat(pn),role:"tabpanel",tabIndex:Zt?0:-1,"aria-labelledby":Sr&&"".concat(Sr,"-tab-").concat(pn),"aria-hidden":!Zt,style:Object(s.a)(Object(s.a)({},Ti),Gt),className:l()("".concat(Mr,"-tabpane"),Zt&&"".concat(Mr,"-tabpane-active"),Ir)},(Zt||Xn||Qr)&&sn)}var Un=0;function wn(yr){return Object(a.a)(yr).map(function(Mr){if(I.isValidElement(Mr)){var Qr=Mr.key!==void 0?String(Mr.key):void 0;return Object(s.a)(Object(s.a)({key:Qr},Mr.props),{},{node:Mr})}return null}).filter(function(Mr){return Mr})}function _n(yr,Mr){var Qr,Ir=yr.id,Gt=yr.prefixCls,Sr=Gt===void 0?"rc-tabs":Gt,Zt=yr.className,jr=yr.children,Kr=yr.direction,pn=yr.activeKey,sn=yr.defaultActiveKey,yn=yr.editable,Fn=yr.animated,Xn=yr.tabPosition,Jn=Xn===void 0?"top":Xn,Ti=yr.tabBarGutter,ta=yr.tabBarStyle,oa=yr.tabBarExtraContent,da=yr.locale,ca=yr.moreIcon,ma=yr.moreTransitionName,Ui=yr.destroyInactiveTabPane,Ni=yr.renderTabBar,ra=yr.onChange,qi=yr.onTabClick,Aa=yr.onTabScroll,Oa=Object(f.a)(yr,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Zi=wn(jr),Gi=Kr==="rtl",La;Fn===!1?La={inkBar:!1,tabPane:!1}:La=Object(s.a)({inkBar:!0,tabPane:!1},Fn!==!0?Fn:null);var va=Object(I.useState)(!1),Ci=Object(m.a)(va,2),Sa=Ci[0],Da=Ci[1];Object(I.useEffect)(function(){Da(cr())},[]);var Na=Object(r.a)(function(){var co;return(co=Zi[0])===null||co===void 0?void 0:co.key},{value:pn,defaultValue:sn}),Ua=Object(m.a)(Na,2),Pa=Ua[0],za=Ua[1],xa=Object(I.useState)(function(){return Zi.findIndex(function(co){return co.key===Pa})}),ja=Object(m.a)(xa,2),io=ja[0],ia=ja[1];Object(I.useEffect)(function(){var co=Zi.findIndex(function(Ya){return Ya.key===Pa});if(co===-1){var uo;co=Math.max(0,Math.min(io,Zi.length-1)),za((uo=Zi[co])===null||uo===void 0?void 0:uo.key)}ia(co)},[Zi.map(function(co){return co.key}).join("_"),Pa,io]);var lo=Object(r.a)(null,{value:Ir}),Xa=Object(m.a)(lo,2),Ta=Xa[0],Qa=Xa[1],Ra=Jn;Sa&&!["left","right"].includes(Jn)&&(Ra="top"),Object(I.useEffect)(function(){Ir||(Qa("rc-tabs-".concat(Un)),Un+=1)},[]);function _a(co,uo){qi==null||qi(co,uo),za(co),ra==null||ra(co)}var yo={id:Ta,activeKey:Pa,animated:La,tabPosition:Ra,rtl:Gi,mobile:Sa},ao,bo=Object(s.a)(Object(s.a)({},yo),{},{editable:yn,locale:da,moreIcon:ca,moreTransitionName:ma,tabBarGutter:Ti,onTabClick:_a,onTabScroll:Aa,extra:oa,style:ta,panes:jr});return Ni?ao=Ni(bo,En):ao=I.createElement(En,Object.assign({},bo)),I.createElement(Xr.Provider,{value:{tabs:Zi,prefixCls:Sr}},I.createElement("div",Object.assign({ref:Mr,id:Ir,className:l()(Sr,"".concat(Sr,"-").concat(Ra),(Qr={},Object(o.a)(Qr,"".concat(Sr,"-mobile"),Sa),Object(o.a)(Qr,"".concat(Sr,"-editable"),yn),Object(o.a)(Qr,"".concat(Sr,"-rtl"),Gi),Qr),Zt)},Oa),ao,I.createElement(An,Object.assign({destroyInactiveTabPane:Ui},yo,{animated:La}))))}var Cn=I.forwardRef(_n);Cn.TabPane=Rn;var Kn=Cn,Yn=Kn,ni=y("cCPh"),yi=y.n(ni),li=y("fNCr"),Oi=y.n(li),ki=y("V/uB"),Si=y.n(ki),mi=y("uaoM"),Li=y("H84U"),Wn=function(yr,Mr){var Qr={};for(var Ir in yr)Object.prototype.hasOwnProperty.call(yr,Ir)&&Mr.indexOf(Ir)<0&&(Qr[Ir]=yr[Ir]);if(yr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Ir=Object.getOwnPropertySymbols(yr);Gt<Ir.length;Gt++)Mr.indexOf(Ir[Gt])<0&&Object.prototype.propertyIsEnumerable.call(yr,Ir[Gt])&&(Qr[Ir[Gt]]=yr[Ir[Gt]]);return Qr};function Di(yr){var Mr,Qr=yr.type,Ir=yr.className,Gt=yr.size,Sr=yr.onEdit,Zt=yr.hideAdd,jr=yr.centered,Kr=yr.addIcon,pn=Wn(yr,["type","className","size","onEdit","hideAdd","centered","addIcon"]),sn=pn.prefixCls,yn=I.useContext(Li.b),Fn=yn.getPrefixCls,Xn=yn.direction,Jn=Fn("tabs",sn),Ti;return Qr==="editable-card"&&(Ti={onEdit:function(oa,da){var ca=da.key,ma=da.event;Sr==null||Sr(oa==="add"?ma:ca,oa)},removeIcon:I.createElement(Si.a,null),addIcon:Kr||I.createElement(Oi.a,null),showAdd:Zt!==!0}),Object(mi.a)(!("onPrevClick"in pn)&&!("onNextClick"in pn),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),I.createElement(Yn,N()({direction:Xn},pn,{moreTransitionName:"slide-up",className:l()(Ir,(Mr={},E()(Mr,"".concat(Jn,"-").concat(Gt),Gt),E()(Mr,"".concat(Jn,"-card"),["card","editable-card"].includes(Qr)),E()(Mr,"".concat(Jn,"-editable-card"),Qr==="editable-card"),E()(Mr,"".concat(Jn,"-centered"),jr),Mr)),editable:Ti,moreIcon:I.createElement(yi.a,null),prefixCls:Jn}))}Di.TabPane=Rn;var zi=z.a=Di},ZTW2:function(fe,z,y){},ZWlE:function(fe,z,y){var D=y("bYtY"),N=y("4NO4");function L(o){E(o),I(o)}function E(o){if(o.parallel)return;var m=!1;D.each(o.series,function(f){f&&f.type==="parallel"&&(m=!0)}),m&&(o.parallel=[{}])}function I(o){var m=N.normalizeToArray(o.parallelAxis);D.each(m,function(f){if(!D.isObject(f))return;var s=f.parallelIndex||0,t=N.normalizeToArray(o.parallel)[s];t&&t.parallelAxisDefault&&D.merge(f,t.parallelAxisDefault,!1)})}fe.exports=L},ZX9x:function(fe,z,y){"use strict";y.d(z,"a",function(){return T}),y.d(z,"b",function(){return _});var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("lwsE"),o=y.n(I),m=y("W8MJ"),f=y.n(m),s=y("7W2i"),t=y.n(s),l=y("LQ03"),a=y.n(l),r=y("q1tI"),u=y("TSYQ"),e=y.n(u),n=y("BGR+"),i=y("T1rO"),c=y.n(i),d=y("fEPi"),h=y.n(d),p=y("DFhj"),g=y.n(p),v=y("PKem"),A=y("H84U"),x=function(k){return!isNaN(parseFloat(k))&&isFinite(k)},b=x,w=function(M,k){var R={};for(var B in M)Object.prototype.hasOwnProperty.call(M,B)&&k.indexOf(B)<0&&(R[B]=M[B]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,B=Object.getOwnPropertySymbols(M);P<B.length;P++)k.indexOf(B[P])<0&&Object.prototype.propertyIsEnumerable.call(M,B[P])&&(R[B[P]]=M[B[P]]);return R},S={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},T=r.createContext({}),C=function(){var M=0;return function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return M+=1,"".concat(k).concat(M)}}(),O=function(M){t()(R,M);var k=a()(R);function R(B){var P;o()(this,R),P=k.call(this,B),P.responsiveHandler=function(H){P.setState({below:H.matches});var W=P.props.onBreakpoint,G=P.state.collapsed;W&&W(H.matches),G!==H.matches&&P.setCollapsed(H.matches,"responsive")},P.setCollapsed=function(H,W){"collapsed"in P.props||P.setState({collapsed:H});var G=P.props.onCollapse;G&&G(H,W)},P.toggle=function(){var H=!P.state.collapsed;P.setCollapsed(H,"clickTrigger")},P.renderSider=function(H){var W,G=H.getPrefixCls,V=P.props,Z=V.prefixCls,Y=V.className,Q=V.theme,oe=V.collapsible,ue=V.reverseArrow,Le=V.trigger,me=V.style,Ie=V.width,X=V.collapsedWidth,q=V.zeroWidthTriggerStyle,We=V.children,$=w(V,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),J=P.state,le=J.collapsed,de=J.below,Ne=G("layout-sider",Z),we=Object(n.default)($,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),De=le?X:Ie,Ee=b(De)?"".concat(De,"px"):String(De),ce=parseFloat(String(X||0))===0?r.createElement("span",{onClick:P.toggle,className:e()("".concat(Ne,"-zero-width-trigger"),"".concat(Ne,"-zero-width-trigger-").concat(ue?"right":"left")),style:q},Le||r.createElement(c.a,null)):null,ne={expanded:ue?r.createElement(h.a,null):r.createElement(g.a,null),collapsed:ue?r.createElement(g.a,null):r.createElement(h.a,null)},ee=le?"collapsed":"expanded",Ae=ne[ee],Ve=Le!==null?ce||r.createElement("div",{className:"".concat(Ne,"-trigger"),onClick:P.toggle,style:{width:Ee}},Le||Ae):null,Ke=E()(E()({},me),{flex:"0 0 ".concat(Ee),maxWidth:Ee,minWidth:Ee,width:Ee}),Oe=e()(Y,Ne,"".concat(Ne,"-").concat(Q),(W={},N()(W,"".concat(Ne,"-collapsed"),!!le),N()(W,"".concat(Ne,"-has-trigger"),oe&&Le!==null&&!ce),N()(W,"".concat(Ne,"-below"),!!de),N()(W,"".concat(Ne,"-zero-width"),parseFloat(Ee)===0),W));return r.createElement("aside",E()({className:Oe},we,{style:Ke}),r.createElement("div",{className:"".concat(Ne,"-children")},We),oe||de&&ce?Ve:null)},P.uniqueId=C("ant-sider-");var U;typeof window!="undefined"&&(U=window.matchMedia),U&&B.breakpoint&&B.breakpoint in S&&(P.mql=U("(max-width: ".concat(S[B.breakpoint],")")));var j;return"collapsed"in B?j=B.collapsed:j=B.defaultCollapsed,P.state={collapsed:j,below:!1},P}return f()(R,[{key:"componentDidMount",value:function(){var P;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(P=this.props)===null||P===void 0||P.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var P,U;(P=this===null||this===void 0?void 0:this.mql)===null||P===void 0||P.removeListener(this.responsiveHandler),(U=this.props)===null||U===void 0||U.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var P=this.state.collapsed,U=this.props.collapsedWidth;return r.createElement(T.Provider,{value:{siderCollapsed:P,collapsedWidth:U}},r.createElement(A.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(P){return"collapsed"in P?{collapsed:P.collapsed}:null}}]),R}(r.Component);O.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var _=function(M){t()(R,M);var k=a()(R);function R(){return o()(this,R),k.apply(this,arguments)}return f()(R,[{key:"render",value:function(){var P=this;return r.createElement(v.a.Consumer,null,function(U){return r.createElement(O,E()({},U,P.props))})}}]),R}(r.Component)},ZYIC:function(fe,z,y){var D=y("zM3Q"),N={seriesType:"lines",plan:D(),reset:function(L){var E=L.coordinateSystem,I=L.get("polyline"),o=L.pipelineContext.large;function m(f,s){var t=[];if(o){var l,a=f.end-f.start;if(I){for(var r=0,u=f.start;u<f.end;u++)r+=L.getLineCoordsCount(u);l=new Float32Array(a+r*2)}else l=new Float32Array(a*4);for(var e=0,n=[],u=f.start;u<f.end;u++){var i=L.getLineCoords(u,t);I&&(l[e++]=i);for(var c=0;c<i;c++)n=E.dataToPoint(t[c],!1,n),l[e++]=n[0],l[e++]=n[1]}s.setLayout("linesPoints",l)}else for(var u=f.start;u<f.end;u++){var d=s.getItemModel(u),i=L.getLineCoords(u,t),h=[];if(I)for(var p=0;p<i;p++)h.push(E.dataToPoint(t[p]));else{h[0]=E.dataToPoint(t[0]),h[1]=E.dataToPoint(t[1]);var g=d.get("lineStyle.curveness");+g&&(h[2]=[(h[0][0]+h[1][0])/2-(h[0][1]-h[1][1])*g,(h[0][1]+h[1][1])/2-(h[1][0]-h[0][0])*g])}s.setItemLayout(u,h)}}return{progress:m}}};fe.exports=N},Ze12:function(fe,z,y){var D=y("ItGF"),N=y("hOwI"),L=N.buildTransformer,E="___zrEVENTSAVED",I=[];function o(l,a,r,u,e){return m(I,a,u,e,!0)&&m(l,r,I[0],I[1])}function m(l,a,r,u,e){if(a.getBoundingClientRect&&D.domSupported&&!t(a)){var n=a[E]||(a[E]={}),i=f(a,n),c=s(i,n,e);if(c)return c(l,r,u),!0}return!1}function f(l,a){var r=a.markers;if(r)return r;r=a.markers=[];for(var u=["left","right"],e=["top","bottom"],n=0;n<4;n++){var i=document.createElement("div"),c=i.style,d=n%2,h=(n>>1)%2;c.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[d]+":0",e[h]+":0",u[1-d]+":auto",e[1-h]+":auto",""].join("!important;"),l.appendChild(i),r.push(i)}return r}function s(l,a,r){for(var u=r?"invTrans":"trans",e=a[u],n=a.srcCoords,i=!0,c=[],d=[],h=0;h<4;h++){var p=l[h].getBoundingClientRect(),g=2*h,v=p.left,A=p.top;c.push(v,A),i=i&&n&&v===n[g]&&A===n[g+1],d.push(l[h].offsetLeft,l[h].offsetTop)}return i&&e?e:(a.srcCoords=c,a[u]=r?L(d,c):L(c,d))}function t(l){return l.nodeName.toUpperCase()==="CANVAS"}z.transformLocalCoord=o,z.transformCoordWithViewport=m,z.isCanvasEl=t},Znkb:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("zTMp"),I=L.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,l,a,r){this.axisPointerClass&&E.fixValue(t),I.superApply(this,"render",arguments),o(this,t,l,a,r,!0)},updateAxisPointer:function(t,l,a,r,u){o(this,t,l,a,r,!1)},remove:function(t,l){var a=this._axisPointer;a&&a.remove(l),I.superApply(this,"remove",arguments)},dispose:function(t,l){m(this,l),I.superApply(this,"dispose",arguments)}});function o(t,l,a,r,u,e){var n=I.getAxisPointerClass(t.axisPointerClass);if(!n)return;var i=E.getAxisPointerModel(l);i?(t._axisPointer||(t._axisPointer=new n)).render(l,i,r,e):m(t,r)}function m(t,l,a){var r=t._axisPointer;r&&r.dispose(l,a),t._axisPointer=null}var f=[];I.registerAxisPointerClass=function(t,l){f[t]=l},I.getAxisPointerClass=function(t){return t&&f[t]};var s=I;fe.exports=s},"Znn+":function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("9ama"),E=y.n(L)},ZqQs:function(fe,z,y){var D=y("bYtY");function N(o){var m=o&&o.timeline;D.isArray(m)||(m=m?[m]:[]),D.each(m,function(f){if(!f)return;L(f)})}function L(o){var m=o.type,f={number:"value",time:"time"};if(f[m]&&(o.axisType=f[m],delete o.type),E(o),I(o,"controlPosition")){var s=o.controlStyle||(o.controlStyle={});I(s,"position")||(s.position=o.controlPosition),s.position==="none"&&!I(s,"show")&&(s.show=!1,delete s.position),delete o.controlPosition}D.each(o.data||[],function(t){D.isObject(t)&&!D.isArray(t)&&(!I(t,"value")&&I(t,"name")&&(t.value=t.name),E(t))})}function E(o){var m=o.itemStyle||(o.itemStyle={}),f=m.emphasis||(m.emphasis={}),s=o.label||o.label||{},t=s.normal||(s.normal={}),l={normal:1,emphasis:1};D.each(s,function(a,r){!l[r]&&!I(t,r)&&(t[r]=a)}),f.label&&!I(s,"emphasis")&&(s.emphasis=f.label,delete f.label)}function I(o,m){return o.hasOwnProperty(m)}fe.exports=N},Zss7:function(fe,z,y){var D;(function(N){var L=/^\s+/,E=/\s+$/,I=0,o=N.round,m=N.min,f=N.max,s=N.random;function t(me,Ie){if(me=me||"",Ie=Ie||{},me instanceof t)return me;if(!(this instanceof t))return new t(me,Ie);var X=l(me);this._originalInput=me,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=o(100*this._a)/100,this._format=Ie.format||X.format,this._gradientType=Ie.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=X.ok,this._tc_id=I++}t.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 Ie=this.toRgb();return(Ie.r*299+Ie.g*587+Ie.b*114)/1e3},getLuminance:function(){var Ie=this.toRgb(),X,q,We,$,J,le;return X=Ie.r/255,q=Ie.g/255,We=Ie.b/255,X<=.03928?$=X/12.92:$=N.pow((X+.055)/1.055,2.4),q<=.03928?J=q/12.92:J=N.pow((q+.055)/1.055,2.4),We<=.03928?le=We/12.92:le=N.pow((We+.055)/1.055,2.4),.2126*$+.7152*J+.0722*le},setAlpha:function(Ie){return this._a=B(Ie),this._roundA=o(100*this._a)/100,this},toHsv:function(){var Ie=e(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,v:Ie.v,a:this._a}},toHsvString:function(){var Ie=e(this._r,this._g,this._b),X=o(Ie.h*360),q=o(Ie.s*100),We=o(Ie.v*100);return this._a==1?"hsv("+X+", "+q+"%, "+We+"%)":"hsva("+X+", "+q+"%, "+We+"%, "+this._roundA+")"},toHsl:function(){var Ie=r(this._r,this._g,this._b);return{h:Ie.h*360,s:Ie.s,l:Ie.l,a:this._a}},toHslString:function(){var Ie=r(this._r,this._g,this._b),X=o(Ie.h*360),q=o(Ie.s*100),We=o(Ie.l*100);return this._a==1?"hsl("+X+", "+q+"%, "+We+"%)":"hsla("+X+", "+q+"%, "+We+"%, "+this._roundA+")"},toHex:function(Ie){return i(this._r,this._g,this._b,Ie)},toHexString:function(Ie){return"#"+this.toHex(Ie)},toHex8:function(Ie){return c(this._r,this._g,this._b,this._a,Ie)},toHex8String:function(Ie){return"#"+this.toHex8(Ie)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(P(this._r,255)*100)+"%",g:o(P(this._g,255)*100)+"%",b:o(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+o(P(this._r,255)*100)+"%, "+o(P(this._g,255)*100)+"%, "+o(P(this._b,255)*100)+"%)":"rgba("+o(P(this._r,255)*100)+"%, "+o(P(this._g,255)*100)+"%, "+o(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[i(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ie){var X="#"+d(this._r,this._g,this._b,this._a),q=X,We=this._gradientType?"GradientType = 1, ":"";if(Ie){var $=t(Ie);q="#"+d($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+We+"startColorstr="+X+",endColorstr="+q+")"},toString:function(Ie){var X=!!Ie;Ie=Ie||this._format;var q=!1,We=this._a<1&&this._a>=0,$=!X&&We&&(Ie==="hex"||Ie==="hex6"||Ie==="hex3"||Ie==="hex4"||Ie==="hex8"||Ie==="name");return $?Ie==="name"&&this._a===0?this.toName():this.toRgbString():(Ie==="rgb"&&(q=this.toRgbString()),Ie==="prgb"&&(q=this.toPercentageRgbString()),(Ie==="hex"||Ie==="hex6")&&(q=this.toHexString()),Ie==="hex3"&&(q=this.toHexString(!0)),Ie==="hex4"&&(q=this.toHex8String(!0)),Ie==="hex8"&&(q=this.toHex8String()),Ie==="name"&&(q=this.toName()),Ie==="hsl"&&(q=this.toHslString()),Ie==="hsv"&&(q=this.toHsvString()),q||this.toHexString())},clone:function(){return t(this.toString())},_applyModification:function(Ie,X){var q=Ie.apply(null,[this].concat([].slice.call(X)));return this._r=q._r,this._g=q._g,this._b=q._b,this.setAlpha(q._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(Ie,X){return Ie.apply(null,[this].concat([].slice.call(X)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},t.fromRatio=function(me,Ie){if(typeof me=="object"){var X={};for(var q in me)me.hasOwnProperty(q)&&(q==="a"?X[q]=me[q]:X[q]=V(me[q]));me=X}return t(me,Ie)};function l(me){var Ie={r:0,g:0,b:0},X=1,q=null,We=null,$=null,J=!1,le=!1;return typeof me=="string"&&(me=ue(me)),typeof me=="object"&&(oe(me.r)&&oe(me.g)&&oe(me.b)?(Ie=a(me.r,me.g,me.b),J=!0,le=String(me.r).substr(-1)==="%"?"prgb":"rgb"):oe(me.h)&&oe(me.s)&&oe(me.v)?(q=V(me.s),We=V(me.v),Ie=n(me.h,q,We),J=!0,le="hsv"):oe(me.h)&&oe(me.s)&&oe(me.l)&&(q=V(me.s),$=V(me.l),Ie=u(me.h,q,$),J=!0,le="hsl"),me.hasOwnProperty("a")&&(X=me.a)),X=B(X),{ok:J,format:me.format||le,r:m(255,f(Ie.r,0)),g:m(255,f(Ie.g,0)),b:m(255,f(Ie.b,0)),a:X}}function a(me,Ie,X){return{r:P(me,255)*255,g:P(Ie,255)*255,b:P(X,255)*255}}function r(me,Ie,X){me=P(me,255),Ie=P(Ie,255),X=P(X,255);var q=f(me,Ie,X),We=m(me,Ie,X),$,J,le=(q+We)/2;if(q==We)$=J=0;else{var de=q-We;J=le>.5?de/(2-q-We):de/(q+We);switch(q){case me:$=(Ie-X)/de+(Ie<X?6:0);break;case Ie:$=(X-me)/de+2;break;case X:$=(me-Ie)/de+4;break}$/=6}return{h:$,s:J,l:le}}function u(me,Ie,X){var q,We,$;me=P(me,360),Ie=P(Ie,100),X=P(X,100);function J(Ne,we,De){return De<0&&(De+=1),De>1&&(De-=1),De<1/6?Ne+(we-Ne)*6*De:De<1/2?we:De<2/3?Ne+(we-Ne)*(2/3-De)*6:Ne}if(Ie===0)q=We=$=X;else{var le=X<.5?X*(1+Ie):X+Ie-X*Ie,de=2*X-le;q=J(de,le,me+1/3),We=J(de,le,me),$=J(de,le,me-1/3)}return{r:q*255,g:We*255,b:$*255}}function e(me,Ie,X){me=P(me,255),Ie=P(Ie,255),X=P(X,255);var q=f(me,Ie,X),We=m(me,Ie,X),$,J,le=q,de=q-We;if(J=q===0?0:de/q,q==We)$=0;else{switch(q){case me:$=(Ie-X)/de+(Ie<X?6:0);break;case Ie:$=(X-me)/de+2;break;case X:$=(me-Ie)/de+4;break}$/=6}return{h:$,s:J,v:le}}function n(me,Ie,X){me=P(me,360)*6,Ie=P(Ie,100),X=P(X,100);var q=N.floor(me),We=me-q,$=X*(1-Ie),J=X*(1-We*Ie),le=X*(1-(1-We)*Ie),de=q%6,Ne=[X,J,$,$,le,X][de],we=[le,X,X,J,$,$][de],De=[$,$,le,X,X,J][de];return{r:Ne*255,g:we*255,b:De*255}}function i(me,Ie,X,q){var We=[G(o(me).toString(16)),G(o(Ie).toString(16)),G(o(X).toString(16))];return q&&We[0].charAt(0)==We[0].charAt(1)&&We[1].charAt(0)==We[1].charAt(1)&&We[2].charAt(0)==We[2].charAt(1)?We[0].charAt(0)+We[1].charAt(0)+We[2].charAt(0):We.join("")}function c(me,Ie,X,q,We){var $=[G(o(me).toString(16)),G(o(Ie).toString(16)),G(o(X).toString(16)),G(Z(q))];return We&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)&&$[3].charAt(0)==$[3].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0)+$[3].charAt(0):$.join("")}function d(me,Ie,X,q){var We=[G(Z(q)),G(o(me).toString(16)),G(o(Ie).toString(16)),G(o(X).toString(16))];return We.join("")}t.equals=function(me,Ie){return!me||!Ie?!1:t(me).toRgbString()==t(Ie).toRgbString()},t.random=function(){return t.fromRatio({r:s(),g:s(),b:s()})};function h(me,Ie){Ie=Ie===0?0:Ie||10;var X=t(me).toHsl();return X.s-=Ie/100,X.s=U(X.s),t(X)}function p(me,Ie){Ie=Ie===0?0:Ie||10;var X=t(me).toHsl();return X.s+=Ie/100,X.s=U(X.s),t(X)}function g(me){return t(me).desaturate(100)}function v(me,Ie){Ie=Ie===0?0:Ie||10;var X=t(me).toHsl();return X.l+=Ie/100,X.l=U(X.l),t(X)}function A(me,Ie){Ie=Ie===0?0:Ie||10;var X=t(me).toRgb();return X.r=f(0,m(255,X.r-o(255*-(Ie/100)))),X.g=f(0,m(255,X.g-o(255*-(Ie/100)))),X.b=f(0,m(255,X.b-o(255*-(Ie/100)))),t(X)}function x(me,Ie){Ie=Ie===0?0:Ie||10;var X=t(me).toHsl();return X.l-=Ie/100,X.l=U(X.l),t(X)}function b(me,Ie){var X=t(me).toHsl(),q=(X.h+Ie)%360;return X.h=q<0?360+q:q,t(X)}function w(me){var Ie=t(me).toHsl();return Ie.h=(Ie.h+180)%360,t(Ie)}function S(me){var Ie=t(me).toHsl(),X=Ie.h;return[t(me),t({h:(X+120)%360,s:Ie.s,l:Ie.l}),t({h:(X+240)%360,s:Ie.s,l:Ie.l})]}function T(me){var Ie=t(me).toHsl(),X=Ie.h;return[t(me),t({h:(X+90)%360,s:Ie.s,l:Ie.l}),t({h:(X+180)%360,s:Ie.s,l:Ie.l}),t({h:(X+270)%360,s:Ie.s,l:Ie.l})]}function C(me){var Ie=t(me).toHsl(),X=Ie.h;return[t(me),t({h:(X+72)%360,s:Ie.s,l:Ie.l}),t({h:(X+216)%360,s:Ie.s,l:Ie.l})]}function O(me,Ie,X){Ie=Ie||6,X=X||30;var q=t(me).toHsl(),We=360/X,$=[t(me)];for(q.h=(q.h-(We*Ie>>1)+720)%360;--Ie;)q.h=(q.h+We)%360,$.push(t(q));return $}function _(me,Ie){Ie=Ie||6;for(var X=t(me).toHsv(),q=X.h,We=X.s,$=X.v,J=[],le=1/Ie;Ie--;)J.push(t({h:q,s:We,v:$})),$=($+le)%1;return J}t.mix=function(me,Ie,X){X=X===0?0:X||50;var q=t(me).toRgb(),We=t(Ie).toRgb(),$=X/100,J={r:(We.r-q.r)*$+q.r,g:(We.g-q.g)*$+q.g,b:(We.b-q.b)*$+q.b,a:(We.a-q.a)*$+q.a};return t(J)},t.readability=function(me,Ie){var X=t(me),q=t(Ie);return(N.max(X.getLuminance(),q.getLuminance())+.05)/(N.min(X.getLuminance(),q.getLuminance())+.05)},t.isReadable=function(me,Ie,X){var q=t.readability(me,Ie),We,$;$=!1,We=Le(X);switch(We.level+We.size){case"AAsmall":case"AAAlarge":$=q>=4.5;break;case"AAlarge":$=q>=3;break;case"AAAsmall":$=q>=7;break}return $},t.mostReadable=function(me,Ie,X){var q=null,We=0,$,J,le,de;X=X||{},J=X.includeFallbackColors,le=X.level,de=X.size;for(var Ne=0;Ne<Ie.length;Ne++)$=t.readability(me,Ie[Ne]),$>We&&(We=$,q=t(Ie[Ne]));return t.isReadable(me,q,{level:le,size:de})||!J?q:(X.includeFallbackColors=!1,t.mostReadable(me,["#fff","#000"],X))};var M=t.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},k=t.hexNames=R(M);function R(me){var Ie={};for(var X in me)me.hasOwnProperty(X)&&(Ie[me[X]]=X);return Ie}function B(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function P(me,Ie){H(me)&&(me="100%");var X=W(me);return me=m(Ie,f(0,parseFloat(me))),X&&(me=parseInt(me*Ie,10)/100),N.abs(me-Ie)<1e-6?1:me%Ie/parseFloat(Ie)}function U(me){return m(1,f(0,me))}function j(me){return parseInt(me,16)}function H(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function W(me){return typeof me=="string"&&me.indexOf("%")!=-1}function G(me){return me.length==1?"0"+me:""+me}function V(me){return me<=1&&(me=me*100+"%"),me}function Z(me){return N.round(parseFloat(me)*255).toString(16)}function Y(me){return j(me)/255}var Q=function(){var me="[-\\+]?\\d+%?",Ie="[-\\+]?\\d*\\.\\d+%?",X="(?:"+Ie+")|(?:"+me+")",q="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",We="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?";return{CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+We),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+We),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+We),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 oe(me){return!!Q.CSS_UNIT.exec(me)}function ue(me){me=me.replace(L,"").replace(E,"").toLowerCase();var Ie=!1;if(M[me])me=M[me],Ie=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var X;return(X=Q.rgb.exec(me))?{r:X[1],g:X[2],b:X[3]}:(X=Q.rgba.exec(me))?{r:X[1],g:X[2],b:X[3],a:X[4]}:(X=Q.hsl.exec(me))?{h:X[1],s:X[2],l:X[3]}:(X=Q.hsla.exec(me))?{h:X[1],s:X[2],l:X[3],a:X[4]}:(X=Q.hsv.exec(me))?{h:X[1],s:X[2],v:X[3]}:(X=Q.hsva.exec(me))?{h:X[1],s:X[2],v:X[3],a:X[4]}:(X=Q.hex8.exec(me))?{r:j(X[1]),g:j(X[2]),b:j(X[3]),a:Y(X[4]),format:Ie?"name":"hex8"}:(X=Q.hex6.exec(me))?{r:j(X[1]),g:j(X[2]),b:j(X[3]),format:Ie?"name":"hex"}:(X=Q.hex4.exec(me))?{r:j(X[1]+""+X[1]),g:j(X[2]+""+X[2]),b:j(X[3]+""+X[3]),a:Y(X[4]+""+X[4]),format:Ie?"name":"hex8"}:(X=Q.hex3.exec(me))?{r:j(X[1]+""+X[1]),g:j(X[2]+""+X[2]),b:j(X[3]+""+X[3]),format:Ie?"name":"hex"}:!1}function Le(me){var Ie,X;return me=me||{level:"AA",size:"small"},Ie=(me.level||"AA").toUpperCase(),X=(me.size||"small").toLowerCase(),Ie!=="AA"&&Ie!=="AAA"&&(Ie="AA"),X!=="small"&&X!=="large"&&(X="small"),{level:Ie,size:X}}fe.exports?fe.exports=t:!(D=function(){return t}.call(z,y,z,fe),D!==void 0&&(fe.exports=D))})(Math)},Zvw2:function(fe,z,y){var D=y("bYtY"),N=y("hM6l"),L=function(I,o,m,f,s){N.call(this,I,o,m),this.type=f||"value",this.position=s||"bottom",this.orient=null};L.prototype={constructor:L,model:null,isHorizontal:function(){var I=this.position;return I==="top"||I==="bottom"},pointToData:function(I,o){return this.coordinateSystem.pointToData(I,o)[0]},toGlobalCoord:null,toLocalCoord:null},D.inherits(L,N);var E=L;fe.exports=E},a7Wl:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},a9QJ:function(fe,z){var y={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function D(N,L){if(N==="world"){var E=y[L.name];if(E){var I=L.center;I[0]=E[0],I[1]=E[1]}}}fe.exports=D},aHsQ:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("6D9b"),E=y.n(L)},aKvl:function(fe,z,y){var D=y("Sj9i"),N=D.quadraticProjectPoint;function L(E,I,o,m,f,s,t,l,a){if(t===0)return!1;var r=t;if(a>I+r&&a>m+r&&a>s+r||a<I-r&&a<m-r&&a<s-r||l>E+r&&l>o+r&&l>f+r||l<E-r&&l<o-r&&l<f-r)return!1;var u=N(E,I,o,m,f,s,l,a,null);return u<=r/2}z.containStroke=L},aRTE:function(fe,z){fe.exports={L:1,M:0,Q:3,H:2}},aTJb:function(fe,z,y){var D=y("bLfw");D.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(fe,z,y){var D=y("3gBT"),N=y("ItGF"),L=y("bYtY"),E=y("0s+r"),I=y("r6Bn"),o=y("7SHv"),m=y("MKOG"),f=y("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 s=!N.canvasSupported,t={canvas:o},l={},a="4.3.1";function r(d,h){var p=new c(D(),d,h);return l[p.id]=p,p}function u(d){if(d)d.dispose();else{for(var h in l)l.hasOwnProperty(h)&&l[h].dispose();l={}}return this}function e(d){return l[d]}function n(d,h){t[d]=h}function i(d){delete l[d]}var c=function(h,p,g){g=g||{},this.dom=p,this.id=h;var v=this,A=new I,x=g.renderer;if(s){if(!t.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");x="vml"}else(!x||!t[x])&&(x="canvas");var b=new t[x](p,A,g,h);this.storage=A,this.painter=b;var w=!N.node&&!N.worker?new f(b.getViewportRoot(),b.root):null;this.handler=new E(A,b,w,b.root),this.animation=new m({stage:{update:L.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var S=A.delFromStorage,T=A.addToStorage;A.delFromStorage=function(C){S.call(A,C),C&&C.removeSelfFromZr(v)},A.addToStorage=function(C){T.call(A,C),C.addSelfToZr(v)}};c.prototype={constructor:c,getId:function(){return this.id},add:function(h){this.storage.addRoot(h),this._needsRefresh=!0},remove:function(h){this.storage.delRoot(h),this._needsRefresh=!0},configLayer:function(h,p){this.painter.configLayer&&this.painter.configLayer(h,p),this._needsRefresh=!0},setBackgroundColor:function(h){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(h),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var h;this._needsRefresh&&(h=!0,this.refreshImmediately()),this._needsRefreshHover&&(h=!0,this.refreshHoverImmediately()),h&&this.trigger("rendered")},addHover:function(h,p){if(this.painter.addHover){var g=this.painter.addHover(h,p);return this.refreshHover(),g}},removeHover:function(h){this.painter.removeHover&&(this.painter.removeHover(h),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(h){h=h||{},this.painter.resize(h.width,h.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(h,p){return this.painter.pathToImage(h,p)},setCursorStyle:function(h){this.handler.setCursorStyle(h)},findHover:function(h,p){return this.handler.findHover(h,p)},on:function(h,p,g){this.handler.on(h,p,g)},off:function(h,p){this.handler.off(h,p)},trigger:function(h,p){this.handler.trigger(h,p)},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,i(this.id)}},z.version=a,z.init=r,z.dispose=u,z.getInstance=e,z.registerPainter=n},aX7z:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("GMDS"),I=y("ieMj"),o=y("4NgU"),m=y("OELB"),f=y("nVfU"),s=f.prepareLayoutBarSeries,t=f.makeColumnLayout,l=f.retrieveColumnLayout,a=y("mFDi");y("IWp7"),y("jCoz");function r(A,x){var b=A.type,w=x.getMin(),S=x.getMax(),T=A.getExtent(),C,O,_;b==="ordinal"?C=x.getCategories().length:(O=x.get("boundaryGap"),L.isArray(O)||(O=[O||0,O||0]),typeof O[0]=="boolean"&&(O=[0,0]),O[0]=m.parsePercent(O[0],1),O[1]=m.parsePercent(O[1],1),_=T[1]-T[0]||Math.abs(T[0])),w==="dataMin"?w=T[0]:typeof w=="function"&&(w=w({min:T[0],max:T[1]})),S==="dataMax"?S=T[1]:typeof S=="function"&&(S=S({min:T[0],max:T[1]}));var M=w!=null,k=S!=null;w==null&&(w=b==="ordinal"?C?0:NaN:T[0]-O[0]*_),S==null&&(S=b==="ordinal"?C?C-1:NaN:T[1]+O[1]*_),(w==null||!isFinite(w))&&(w=NaN),(S==null||!isFinite(S))&&(S=NaN),A.setBlank(L.eqNaN(w)||L.eqNaN(S)||b==="ordinal"&&!A.getOrdinalMeta().categories.length),x.getNeedCrossZero()&&(w>0&&S>0&&!M&&(w=0),w<0&&S<0&&!k&&(S=0));var R=x.ecModel;if(R&&b==="time"){var B=s("bar",R),P;if(L.each(B,function(H){P|=H.getBaseAxis()===x.axis}),P){var U=t(B),j=u(w,S,x,U);w=j.min,S=j.max}}return{extent:[w,S],fixMin:M,fixMax:k}}function u(A,x,b,w){var S=b.axis.getExtent(),T=S[1]-S[0],C=l(w,b.axis);if(C===void 0)return{min:A,max:x};var O=Infinity;L.each(C,function(P){O=Math.min(P.offset,O)});var _=-Infinity;L.each(C,function(P){_=Math.max(P.offset+P.width,_)}),O=Math.abs(O),_=Math.abs(_);var M=O+_,k=x-A,R=1-(O+_)/T,B=k/R-k;return x+=B*(_/M),A-=B*(O/M),{min:A,max:x}}function e(A,x){var b=r(A,x),w=b.extent,S=x.get("splitNumber");A.type==="log"&&(A.base=x.get("logBase"));var T=A.type;A.setExtent(w[0],w[1]),A.niceExtent({splitNumber:S,fixMin:b.fixMin,fixMax:b.fixMax,minInterval:T==="interval"||T==="time"?x.get("minInterval"):null,maxInterval:T==="interval"||T==="time"?x.get("maxInterval"):null});var C=x.get("interval");C!=null&&(A.setInterval&&A.setInterval(C))}function n(A,x){if(x=x||A.get("type"),x)switch(x){case"category":return new E(A.getOrdinalMeta?A.getOrdinalMeta():A.getCategories(),[Infinity,-Infinity]);case"value":return new I;default:return(o.getClass(x)||I).create(A)}}function i(A){var x=A.scale.getExtent(),b=x[0],w=x[1];return!(b>0&&w>0||b<0&&w<0)}function c(A){var x=A.getLabelModel().get("formatter"),b=A.type==="category"?A.scale.getExtent()[0]:null;return typeof x=="string"?(x=function(w){return function(S){return S=A.scale.getLabel(S),w.replace("{value}",S!=null?S:"")}}(x),x):typeof x=="function"?function(w,S){return b!=null&&(S=w-b),x(d(A,w),S)}:function(w){return A.scale.getLabel(w)}}function d(A,x){return A.type==="category"?A.scale.getLabel(x):x}function h(A){var x=A.model,b=A.scale;if(!x.get("axisLabel.show")||b.isBlank())return;var w=A.type==="category",S,T,C=b.getExtent();w?T=b.count():(S=b.getTicks(),T=S.length);var O=A.getLabelModel(),_=c(A),M,k=1;T>40&&(k=Math.ceil(T/40));for(var R=0;R<T;R+=k){var B=S?S[R]:C[0]+R,P=_(B),U=O.getTextRect(P),j=p(U,O.get("rotate")||0);M?M.union(j):M=j}return M}function p(A,x){var b=x*Math.PI/180,w=A.plain(),S=w.width,T=w.height,C=S*Math.cos(b)+T*Math.sin(b),O=S*Math.sin(b)+T*Math.cos(b),_=new a(w.x,w.y,C,O);return _}function g(A){var x=A.get("interval");return x==null?"auto":x}function v(A){return A.type==="category"&&g(A.getLabelModel())===0}z.getScaleExtent=r,z.niceScaleExtent=e,z.createScaleByModel=n,z.ifAxisCrossZero=i,z.makeLabelFormatter=c,z.getAxisRawValue=d,z.estimateLabelUnionRect=h,z.getOptionCategoryInterval=g,z.shouldShowAllLabels=v},"af/B":function(fe,z,y){var D=y("bYtY"),N=D.each,L=D.map,E=D.isFunction,I=D.createHashMap,o=D.noop,m=y("9H2F"),f=m.createTask,s=y("iRjW"),t=s.getUID,l=y("fmMI"),a=y("hD7B"),r=y("4NO4"),u=r.normalizeToArray;function e(P,U,j,H){this.ecInstance=P,this.api=U,this.unfinished;var j=this._dataProcessorHandlers=j.slice(),H=this._visualHandlers=H.slice();this._allHandlers=j.concat(H),this._stageTaskMap=I()}var n=e.prototype;n.restoreData=function(P,U){P.restoreData(U),this._stageTaskMap.each(function(j){var H=j.overallTask;H&&H.dirty()})},n.getPerformArgs=function(P,U){if(!P.__pipeline)return;var j=this._pipelineMap.get(P.__pipeline.id),H=j.context,W=!U&&j.progressiveEnabled&&(!H||H.progressiveRender)&&P.__idxInPipeline>j.blockIndex,G=W?j.step:null,V=H&&H.modDataCount,Z=V!=null?Math.ceil(V/G):null;return{step:G,modBy:Z,modDataCount:V}},n.getPipeline=function(P){return this._pipelineMap.get(P)},n.updateStreamModes=function(P,U){var j=this._pipelineMap.get(P.uid),H=P.getData(),W=H.count(),G=j.progressiveEnabled&&U.incrementalPrepareRender&&W>=j.threshold,V=P.get("large")&&W>=P.get("largeThreshold"),Z=P.get("progressiveChunkMode")==="mod"?W:null;P.pipelineContext=j.context={progressiveRender:G,modDataCount:Z,large:V}},n.restorePipelines=function(P){var U=this,j=U._pipelineMap=I();P.eachSeries(function(H){var W=H.getProgressive(),G=H.uid;j.set(G,{id:G,head:null,tail:null,threshold:H.getProgressiveThreshold(),progressiveEnabled:W&&!(H.preventIncremental&&H.preventIncremental()),blockIndex:-1,step:Math.round(W||700),count:0}),C(U,H,H.dataTask)})},n.prepareStageTasks=function(){var P=this._stageTaskMap,U=this.ecInstance.getModel(),j=this.api;N(this._allHandlers,function(H){var W=P.get(H.uid)||P.set(H.uid,[]);H.reset&&d(this,H,W,U,j),H.overallReset&&h(this,H,W,U,j)},this)},n.prepareView=function(P,U,j,H){var W=P.renderTask,G=W.context;G.model=U,G.ecModel=j,G.api=H,W.__block=!P.incrementalPrepareRender,C(this,U,W)},n.performDataProcessorTasks=function(P,U){i(this,this._dataProcessorHandlers,P,U,{block:!0})},n.performVisualTasks=function(P,U,j){i(this,this._visualHandlers,P,U,j)};function i(P,U,j,H,W){W=W||{};var G;N(U,function(Z,Y){if(W.visualType&&W.visualType!==Z.visualType)return;var Q=P._stageTaskMap.get(Z.uid),oe=Q.seriesTaskMap,ue=Q.overallTask;if(ue){var Le,me=ue.agentStubMap;me.each(function(X){V(W,X)&&(X.dirty(),Le=!0)}),Le&&ue.dirty(),c(ue,H);var Ie=P.getPerformArgs(ue,W.block);me.each(function(X){X.perform(Ie)}),G|=ue.perform(Ie)}else oe&&oe.each(function(X,q){V(W,X)&&X.dirty();var We=P.getPerformArgs(X,W.block);We.skip=!Z.performRawSeries&&j.isSeriesFiltered(X.context.model),c(X,H),G|=X.perform(We)})});function V(Z,Y){return Z.setDirty&&(!Z.dirtyMap||Z.dirtyMap.get(Y.__pipeline.id))}P.unfinished|=G}n.performSeriesTasks=function(P){var U;P.eachSeries(function(j){U|=j.dataTask.perform()}),this.unfinished|=U},n.plan=function(){this._pipelineMap.each(function(P){var U=P.tail;do{if(U.__block){P.blockIndex=U.__idxInPipeline;break}U=U.getUpstream()}while(U)})};var c=n.updatePayload=function(P,U){U!=="remain"&&(P.context.payload=U)};function d(P,U,j,H,W){var G=j.seriesTaskMap||(j.seriesTaskMap=I()),V=U.seriesType,Z=U.getTargetSeries;U.createOnAllSeries?H.eachRawSeries(Y):V?H.eachRawSeriesByType(V,Y):Z&&Z(H,W).each(Y);function Y(oe){var ue=oe.uid,Le=G.get(ue)||G.set(ue,f({plan:x,reset:b,count:T}));Le.context={model:oe,ecModel:H,api:W,useClearVisual:U.isVisual&&!U.isLayout,plan:U.plan,reset:U.reset,scheduler:P},C(P,oe,Le)}var Q=P._pipelineMap;G.each(function(oe,ue){Q.get(ue)||(oe.dispose(),G.removeKey(ue))})}function h(P,U,j,H,W){var G=j.overallTask=j.overallTask||f({reset:p});G.context={ecModel:H,api:W,overallReset:U.overallReset,scheduler:P};var V=G.agentStubMap=G.agentStubMap||I(),Z=U.seriesType,Y=U.getTargetSeries,Q=!0,oe=U.modifyOutputEnd;Z?H.eachRawSeriesByType(Z,ue):Y?Y(H,W).each(ue):(Q=!1,N(H.getSeries(),ue));function ue(me){var Ie=me.uid,X=V.get(Ie);X||(X=V.set(Ie,f({reset:g,onDirty:A})),G.dirty()),X.context={model:me,overallProgress:Q,modifyOutputEnd:oe},X.agent=G,X.__block=Q,C(P,me,X)}var Le=P._pipelineMap;V.each(function(me,Ie){Le.get(Ie)||(me.dispose(),G.dirty(),V.removeKey(Ie))})}function p(P){P.overallReset(P.ecModel,P.api,P.payload)}function g(P,U){return P.overallProgress&&v}function v(){this.agent.dirty(),this.getDownstream().dirty()}function A(){this.agent&&this.agent.dirty()}function x(P){return P.plan&&P.plan(P.model,P.ecModel,P.api,P.payload)}function b(P){P.useClearVisual&&P.data.clearAllVisual();var U=P.resetDefines=u(P.reset(P.model,P.ecModel,P.api,P.payload));return U.length>1?L(U,function(j,H){return S(H)}):w}var w=S(0);function S(P){return function(U,j){var H=j.data,W=j.resetDefines[P];if(W&&W.dataEach)for(var G=U.start;G<U.end;G++)W.dataEach(H,G);else W&&W.progress&&W.progress(U,H)}}function T(P){return P.data.count()}function C(P,U,j){var H=U.uid,W=P._pipelineMap.get(H);!W.head&&(W.head=j),W.tail&&W.tail.pipe(j),W.tail=j,j.__idxInPipeline=W.count++,j.__pipeline=W}e.wrapStageHandler=function(P,U){return E(P)&&(P={overallReset:P,seriesType:O(P)}),P.uid=t("stageHandler"),U&&(P.visualType=U),P};function O(P){k=null;try{P(_,M)}catch(U){}return k}var _={},M={},k;R(_,l),R(M,a),_.eachSeriesByType=_.eachRawSeriesByType=function(P){k=P},_.eachComponent=function(P){P.mainType==="series"&&P.subType&&(k=P.subType)};function R(P,U){for(var j in U.prototype)P[j]=o}var B=e;fe.exports=B},akwb:function(fe,z,y){var D=y("RSch"),N=y("bYtY"),L=y("D9ME"),E=y("QBsz");function I(f,s,t){L.call(this,f,s,t),this._lastFrame=0,this._lastFramePercent=0}var o=I.prototype;o.createLine=function(f,s,t){return new D(f,s,t)},o.updateAnimationPoints=function(f,s){this._points=s;for(var t=[0],l=0,a=1;a<s.length;a++){var r=s[a-1],u=s[a];l+=E.dist(r,u),t.push(l)}if(l===0)return;for(var a=0;a<t.length;a++)t[a]/=l;this._offsets=t,this._length=l},o.getLineLength=function(f){return this._length},o.updateSymbolPosition=function(f){var s=f.__t,t=this._points,l=this._offsets,a=t.length;if(!l)return;var r=this._lastFrame,u;if(s<this._lastFramePercent){var e=Math.min(r+1,a-1);for(u=e;u>=0&&!(l[u]<=s);u--);u=Math.min(u,a-2)}else{for(var u=r;u<a&&!(l[u]>s);u++);u=Math.min(u-1,a-2)}E.lerp(f.position,t[u],t[u+1],(s-l[u])/(l[u+1]-l[u]));var n=t[u+1][0]-t[u][0],i=t[u+1][1]-t[u][1];f.rotation=-Math.atan2(i,n)-Math.PI/2,this._lastFrame=u,this._lastFramePercent=s,f.ignore=!1},N.inherits(I,L);var m=I;fe.exports=m},apAg:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("bsht")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="SearchOutlined";var f=E.forwardRef(m);z.default=f},as94:function(fe,z,y){var D=y("7aKB"),N=y("3LNs"),L=y("IwbS"),E=y("/y7N"),I=y("Fofx"),o=y("+rIm"),m=y("Znkb"),f=N.extend({makeElOption:function(a,r,u,e,n){var i=u.axis;i.dim==="angle"&&(this.animationThreshold=Math.PI/18);var c=i.polar,d=c.getOtherAxis(i),h=d.getExtent(),p;p=i["dataTo"+D.capitalFirst(i.dim)](r);var g=e.get("type");if(g&&g!=="none"){var v=E.buildElStyle(e),A=t[g](i,c,p,h,v);A.style=v,a.graphicKey=A.type,a.pointer=A}var x=e.get("label.margin"),b=s(r,u,e,c,x);E.buildLabelElOption(a,u,e,n,b)}});function s(a,r,u,e,n){var i=r.axis,c=i.dataToCoord(a),d=e.getAngleAxis().getExtent()[0];d=d/180*Math.PI;var h=e.getRadiusAxis().getExtent(),p,g,v;if(i.dim==="radius"){var A=I.create();I.rotate(A,A,d),I.translate(A,A,[e.cx,e.cy]),p=L.applyTransform([c,-n],A);var x=r.getModel("axisLabel").get("rotate")||0,b=o.innerTextLayout(d,x*Math.PI/180,-1);g=b.textAlign,v=b.textVerticalAlign}else{var w=h[1];p=e.coordToPoint([w+n,c]);var S=e.cx,T=e.cy;g=Math.abs(p[0]-S)/w<.3?"center":p[0]>S?"left":"right",v=Math.abs(p[1]-T)/w<.3?"middle":p[1]>T?"top":"bottom"}return{position:p,align:g,verticalAlign:v}}var t={line:function(a,r,u,e,n){return a.dim==="angle"?{type:"Line",shape:E.makeLineShape(r.coordToPoint([e[0],u]),r.coordToPoint([e[1],u]))}:{type:"Circle",shape:{cx:r.cx,cy:r.cy,r:u}}},shadow:function(a,r,u,e,n){var i=Math.max(1,a.getBandWidth()),c=Math.PI/180;return a.dim==="angle"?{type:"Sector",shape:E.makeSectorShape(r.cx,r.cy,e[0],e[1],(-u-i/2)*c,(-u+i/2)*c)}:{type:"Sector",shape:E.makeSectorShape(r.cx,r.cy,u-i/2,u+i/2,0,Math.PI*2)}}};m.registerAxisPointerClass("PolarAxisPointer",f);var l=f;fe.exports=l},b56q:function(fe,z,y){},b80e:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("gKaM")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="DoubleLeftOutlined";var f=E.forwardRef(m);z.default=f},b9oc:function(fe,z,y){var D=y("bYtY"),N=D.each,L="\0_ec_hist_store";function E(s,t){var l=f(s);N(t,function(a,r){for(var u=l.length-1;u>=0;u--){var e=l[u];if(e[r])break}if(u<0){var n=s.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(n){var i=n.getPercentRange();l[0][r]={dataZoomId:r,start:i[0],end:i[1]}}}}),l.push(t)}function I(s){var t=f(s),l=t[t.length-1];t.length>1&&t.pop();var a={};return N(l,function(r,u){for(var e=t.length-1;e>=0;e--){var r=t[e][u];if(r){a[u]=r;break}}}),a}function o(s){s[L]=null}function m(s){return f(s).length}function f(s){var t=s[L];return t||(t=s[L]=[{}]),t}z.push=E,z.pop=I,z.clear=o,z.count=m},bBKM:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("bYtY"),I=y("+rIm"),o=y("IwbS"),m=["axisLine","axisTickLabel","axisName"],f=L.extendComponentView({type:"radar",render:function(s,t,l){var a=this.group;a.removeAll(),this._buildAxes(s),this._buildSplitLineAndArea(s)},_buildAxes:function(s){var t=s.coordinateSystem,l=t.getIndicatorAxes(),a=E.map(l,function(r){var u=new I(r.model,{position:[t.cx,t.cy],rotation:r.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});E.each(a,function(r){E.each(m,r.add,r),this.group.add(r.getGroup())},this)},_buildSplitLineAndArea:function(s){var t=s.coordinateSystem,l=t.getIndicatorAxes();if(!l.length)return;var a=s.get("shape"),r=s.getModel("splitLine"),u=s.getModel("splitArea"),e=r.getModel("lineStyle"),n=u.getModel("areaStyle"),i=r.get("show"),c=u.get("show"),d=e.get("color"),h=n.get("color");d=E.isArray(d)?d:[d],h=E.isArray(h)?h:[h];var p=[],g=[];function v(B,P,U){var j=U%P.length;return B[j]=B[j]||[],j}if(a==="circle")for(var A=l[0].getTicksCoords(),x=t.cx,b=t.cy,w=0;w<A.length;w++){if(i){var S=v(p,d,w);p[S].push(new o.Circle({shape:{cx:x,cy:b,r:A[w].coord}}))}if(c&&w<A.length-1){var S=v(g,h,w);g[S].push(new o.Ring({shape:{cx:x,cy:b,r0:A[w].coord,r:A[w+1].coord}}))}}else for(var T,C=E.map(l,function(B,P){var U=B.getTicksCoords();return T=T==null?U.length-1:Math.min(U.length-1,T),E.map(U,function(j){return t.coordToPoint(j.coord,P)})}),O=[],w=0;w<=T;w++){for(var _=[],M=0;M<l.length;M++)_.push(C[M][w]);if(_[0]&&_.push(_[0].slice()),i){var S=v(p,d,w);p[S].push(new o.Polyline({shape:{points:_}}))}if(c&&O){var S=v(g,h,w-1);g[S].push(new o.Polygon({shape:{points:_.concat(O)}}))}O=_.slice().reverse()}var k=e.getLineStyle(),R=n.getAreaStyle();E.each(g,function(B,P){this.group.add(o.mergePath(B,{style:E.defaults({stroke:"none",fill:h[P%h.length]},R),silent:!0}))},this),E.each(p,function(B,P){this.group.add(o.mergePath(B,{style:E.defaults({fill:"none",stroke:d[P%d.length]},k),silent:!0}))},this)}});fe.exports=f},bBL8:function(fe,z,y){var D=y("ProS");y("LPzL"),y("rfSb"),y("JVwQ");var N=y("UnoB"),L=y("cbJ4"),E=y("0/Rx");D.registerLayout(N),D.registerVisual(L),D.registerProcessor(E("themeRiver"))},bE4E:function(fe,z,y){},bE4q:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("RIqP"),o=y.n(I),m=y("q1tI"),f=y("TSYQ"),s=y.n(f),t=y("Zm9Q"),l=y("HQEm"),a=y.n(l),r=y("XBQK"),u=y("H84U"),e=function(O,_){var M={};for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&_.indexOf(k)<0&&(M[k]=O[k]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,k=Object.getOwnPropertySymbols(O);R<k.length;R++)_.indexOf(k[R])<0&&Object.prototype.propertyIsEnumerable.call(O,k[R])&&(M[k[R]]=O[k[R]]);return M},n=function(_){var M=_.prefixCls,k=_.separator,R=k===void 0?"/":k,B=_.children,P=_.overlay,U=_.dropdownProps,j=e(_,["prefixCls","separator","children","overlay","dropdownProps"]),H=m.useContext(u.b),W=H.getPrefixCls,G=W("breadcrumb",M),V=function(Q){return P?m.createElement(r.a,N()({overlay:P,placement:"bottomCenter"},U),m.createElement("span",{className:"".concat(G,"-overlay-link")},Q,m.createElement(a.a,null))):Q},Z;return"href"in j?Z=m.createElement("a",N()({className:"".concat(G,"-link")},j),B):Z=m.createElement("span",N()({className:"".concat(G,"-link")},j),B),Z=V(Z),B?m.createElement("span",null,Z,R&&R!==""&&m.createElement("span",{className:"".concat(G,"-separator")},R)):null};n.__ANT_BREADCRUMB_ITEM=!0;var i=n,c=function(_){var M=_.children,k=m.useContext(u.b),R=k.getPrefixCls,B=R("breadcrumb");return m.createElement("span",{className:"".concat(B,"-separator")},M||"/")};c.__ANT_BREADCRUMB_SEPARATOR=!0;var d=c,h=y("BvKs"),p=y("uaoM"),g=y("0n0R"),v=function(O,_){var M={};for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&_.indexOf(k)<0&&(M[k]=O[k]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,k=Object.getOwnPropertySymbols(O);R<k.length;R++)_.indexOf(k[R])<0&&Object.prototype.propertyIsEnumerable.call(O,k[R])&&(M[k[R]]=O[k[R]]);return M};function A(O,_){if(!O.breadcrumbName)return null;var M=Object.keys(_).join("|"),k=O.breadcrumbName.replace(new RegExp(":(".concat(M,")"),"g"),function(R,B){return _[B]||R});return k}function x(O,_,M,k){var R=M.indexOf(O)===M.length-1,B=A(O,_);return R?m.createElement("span",null,B):m.createElement("a",{href:"#/".concat(k.join("/"))},B)}var b=function(_,M){return _=(_||"").replace(/^\//,""),Object.keys(M).forEach(function(k){_=_.replace(":".concat(k),M[k])}),_},w=function(_){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",k=arguments.length>2?arguments[2]:void 0,R=o()(_),B=b(M,k);return B&&R.push(B),R},S=function(_){var M=_.prefixCls,k=_.separator,R=k===void 0?"/":k,B=_.style,P=_.className,U=_.routes,j=_.children,H=_.itemRender,W=H===void 0?x:H,G=_.params,V=G===void 0?{}:G,Z=v(_,["prefixCls","separator","style","className","routes","children","itemRender","params"]),Y=m.useContext(u.b),Q=Y.getPrefixCls,oe=Y.direction,ue,Le=Q("breadcrumb",M);if(U&&U.length>0){var me=[];ue=U.map(function(X){var q=b(X.path,V);q&&me.push(q);var We;return X.children&&X.children.length&&(We=m.createElement(h.a,null,X.children.map(function($){return m.createElement(h.a.Item,{key:$.path||$.breadcrumbName},W($,V,U,w(me,$.path,V)))}))),m.createElement(i,{overlay:We,separator:R,key:q||X.breadcrumbName},W(X,V,U,me))})}else j&&(ue=Object(t.a)(j).map(function(X,q){return X&&(Object(p.a)(X.type&&(X.type.__ANT_BREADCRUMB_ITEM===!0||X.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(g.a)(X,{separator:R,key:q}))}));var Ie=s()(P,Le,E()({},"".concat(Le,"-rtl"),oe==="rtl"));return m.createElement("div",N()({className:Ie,style:B},Z),ue)};S.Item=i,S.Separator=d;var T=S,C=z.a=T},bKJz:function(fe,z,y){},bLfw:function(fe,z,y){var D=y("bYtY"),N=y("Qxkt"),L=y("iRjW"),E=y("Yl7c"),I=E.enableClassManagement,o=E.parseClassType,m=y("4NO4"),f=m.makeInner,s=y("+TT/"),t=y("3hzK"),l=f(),a=N.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,n,i,c){N.call(this,e,n,i,c),this.uid=L.getUID("ec_cpt_model")},init:function(e,n,i,c){this.mergeDefaultAndTheme(e,i)},mergeDefaultAndTheme:function(e,n){var i=this.layoutMode,c=i?s.getLayoutParams(e):{},d=n.getTheme();D.merge(e,d.get(this.mainType)),D.merge(e,this.getDefaultOption()),i&&s.mergeLayoutParam(e,c,i)},mergeOption:function(e,n){D.merge(this.option,e,!0);var i=this.layoutMode;i&&s.mergeLayoutParam(this.option,e,i)},optionUpdated:function(e,n){},getDefaultOption:function(){var e=l(this);if(!e.defaultOption){for(var n=[],i=this.constructor;i;){var c=i.prototype.defaultOption;c&&n.push(c),i=i.superClass}for(var d={},h=n.length-1;h>=0;h--)d=D.merge(d,n[h],!0);e.defaultOption=d}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});I(a,{registerWhenExtend:!0}),L.enableSubTypeDefaulter(a),L.enableTopologicalTravel(a,r);function r(e){var n=[];return D.each(a.getClassesByMainType(e),function(i){n=n.concat(i.prototype.dependencies||[])}),n=D.map(n,function(i){return o(i).main}),e!=="dataset"&&D.indexOf(n,"dataset")<=0&&n.unshift("dataset"),n}D.mixin(a,t);var u=a;fe.exports=u},bMXI:function(fe,z,y){var D=y("bYtY"),N=y("QBsz"),L=y("Fofx"),E=y("mFDi"),I=y("DN4a"),o=N.applyTransform;function m(){I.call(this)}D.mixin(m,I);function f(l){this.name=l,this.zoomLimit,I.call(this),this._roamTransformable=new m,this._rawTransformable=new m,this._center,this._zoom}f.prototype={constructor:f,type:"view",dimensions:["x","y"],setBoundingRect:function(l,a,r,u){return this._rect=new E(l,a,r,u),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(l,a,r,u){this.transformTo(l,a,r,u),this._viewRect=new E(l,a,r,u)},transformTo:function(l,a,r,u){var e=this.getBoundingRect(),n=this._rawTransformable;n.transform=e.calculateTransform(new E(l,a,r,u)),n.decomposeTransform(),this._updateTransform()},setCenter:function(l){if(!l)return;this._center=l,this._updateCenterAndZoom()},setZoom:function(l){l=l||1;var a=this.zoomLimit;a&&(a.max!=null&&(l=Math.min(a.max,l)),a.min!=null&&(l=Math.max(a.min,l))),this._zoom=l,this._updateCenterAndZoom()},getDefaultCenter:function(){var l=this.getBoundingRect(),a=l.x+l.width/2,r=l.y+l.height/2;return[a,r]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var l=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,r=this.getDefaultCenter(),u=this.getCenter(),e=this.getZoom();u=N.applyTransform([],u,l),r=N.applyTransform([],r,l),a.origin=u,a.position=[r[0]-u[0],r[1]-u[1]],a.scale=[e,e],this._updateTransform()},_updateTransform:function(){var l=this._roamTransformable,a=this._rawTransformable;a.parent=l,l.updateTransform(),a.updateTransform(),L.copy(this.transform||(this.transform=[]),a.transform||L.create()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],L.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var l=this._roamTransformable.transform,a=this._rawTransformable;return{roamTransform:l?D.slice(l):L.create(),rawScale:D.slice(a.scale),rawPosition:D.slice(a.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var l=this.getBoundingRect().clone();return l.applyTransform(this.transform),l},dataToPoint:function(l,a,r){var u=a?this._rawTransform:this.transform;return r=r||[],u?o(r,l,u):N.copy(r,l)},pointToData:function(l){var a=this.invTransform;return a?o([],l,a):[l[0],l[1]]},convertToPixel:D.curry(s,"dataToPoint"),convertFromPixel:D.curry(s,"pointToData"),containPoint:function(l){return this.getViewRectAfterRoam().contain(l[0],l[1])}},D.mixin(f,I);function s(l,a,r,u){var e=r.seriesModel,n=e?e.coordinateSystem:null;return n===this?n[l](u):null}var t=f;fe.exports=t},bNin:function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L=y("FBjb"),E=y("Itpr"),I=E.radialCoordinate,o=y("ProS"),m=y("4mN7"),f=y("bMXI"),s=y("Ae+d"),t=y("SgGq"),l=y("xSat"),a=l.onIrrelevantElement,r=y("Tghj"),u=r.__DEV__,e=y("OELB"),n=e.parsePercent,i=N.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(x,b){var w=b.childPoints,S=w.length,T=b.parentPoint,C=w[0],O=w[S-1];if(S===1){x.moveTo(T[0],T[1]),x.lineTo(C[0],C[1]);return}var _=b.orient,M=_==="TB"||_==="BT"?0:1,k=1-M,R=n(b.forkPosition,1),B=[];B[M]=T[M],B[k]=T[k]+(O[k]-T[k])*R,x.moveTo(T[0],T[1]),x.lineTo(B[0],B[1]),x.moveTo(C[0],C[1]),B[M]=C[M],x.lineTo(B[0],B[1]),B[M]=O[M],x.lineTo(B[0],B[1]),x.lineTo(O[0],O[1]);for(var P=1;P<S-1;P++){var U=w[P];x.moveTo(U[0],U[1]),B[M]=U[M],x.lineTo(B[0],B[1])}}}),c=o.extendChartView({type:"tree",init:function(x,b){this._oldTree,this._mainGroup=new N.Group,this._controller=new t(b.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(x,b,w,S){var T=x.getData(),C=x.layoutInfo,O=this._mainGroup,_=x.get("layout");_==="radial"?O.attr("position",[C.x+C.width/2,C.y+C.height/2]):O.attr("position",[C.x,C.y]),this._updateViewCoordSys(x,C,_),this._updateController(x,b,w);var M=this._data,k={expandAndCollapse:x.get("expandAndCollapse"),layout:_,edgeShape:x.get("edgeShape"),edgeForkPosition:x.get("edgeForkPosition"),orient:x.getOrient(),curvature:x.get("lineStyle.curveness"),symbolRotate:x.get("symbolRotate"),symbolOffset:x.get("symbolOffset"),hoverAnimation:x.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};T.diff(M).add(function(R){d(T,R)&&p(T,R,null,O,x,k)}).update(function(R,B){var P=M.getItemGraphicEl(B);if(!d(T,R)){P&&v(M,B,P,O,x,k);return}p(T,R,P,O,x,k)}).remove(function(R){var B=M.getItemGraphicEl(R);B&&v(M,R,B,O,x,k)}).execute(),this._nodeScaleRatio=x.get("nodeScaleRatio"),this._updateNodeAndLinkScale(x),k.expandAndCollapse===!0&&T.eachItemGraphicEl(function(R,B){R.off("click").on("click",function(){w.dispatchAction({type:"treeExpandAndCollapse",seriesId:x.id,dataIndex:B})})}),this._data=T},_updateViewCoordSys:function(x){var b=x.getData(),w=[];b.each(function(M){var k=b.getItemLayout(M);k&&!isNaN(k.x)&&!isNaN(k.y)&&w.push([+k.x,+k.y])});var S=[],T=[];m.fromPoints(w,S,T);var C=this._min,O=this._max;T[0]-S[0]===0&&(S[0]=C?C[0]:S[0]-1,T[0]=O?O[0]:T[0]+1),T[1]-S[1]===0&&(S[1]=C?C[1]:S[1]-1,T[1]=O?O[1]:T[1]+1);var _=x.coordinateSystem=new f;_.zoomLimit=x.get("scaleLimit"),_.setBoundingRect(S[0],S[1],T[0]-S[0],T[1]-S[1]),_.setCenter(x.get("center")),_.setZoom(x.get("zoom")),this.group.attr({position:_.position,scale:_.scale}),this._viewCoordSys=_,this._min=S,this._max=T},_updateController:function(x,b,w){var S=this._controller,T=this._controllerHost,C=this.group;S.setPointerChecker(function(O,_,M){var k=C.getBoundingRect();return k.applyTransform(C.transform),k.contain(_,M)&&!a(O,w,x)}),S.enable(x.get("roam")),T.zoomLimit=x.get("scaleLimit"),T.zoom=x.coordinateSystem.getZoom(),S.off("pan").off("zoom").on("pan",function(O){s.updateViewOnPan(T,O.dx,O.dy),w.dispatchAction({seriesId:x.id,type:"treeRoam",dx:O.dx,dy:O.dy})},this).on("zoom",function(O){s.updateViewOnZoom(T,O.scale,O.originX,O.originY),w.dispatchAction({seriesId:x.id,type:"treeRoam",zoom:O.scale,originX:O.originX,originY:O.originY}),this._updateNodeAndLinkScale(x)},this)},_updateNodeAndLinkScale:function(x){var b=x.getData(),w=this._getNodeGlobalScale(x),S=[w,w];b.eachItemGraphicEl(function(T,C){T.attr("scale",S)})},_getNodeGlobalScale:function(x){var b=x.coordinateSystem;if(b.type!=="view")return 1;var w=this._nodeScaleRatio,S=b.scale,T=S&&S[0]||1,C=b.getZoom(),O=(C-1)*w+1;return O/T},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function d(x,b){var w=x.getItemLayout(b);return w&&!isNaN(w.x)&&!isNaN(w.y)&&x.getItemVisual(b,"symbol")!=="none"}function h(x,b,w){return w.itemModel=b,w.itemStyle=b.getModel("itemStyle").getItemStyle(),w.hoverItemStyle=b.getModel("emphasis.itemStyle").getItemStyle(),w.lineStyle=b.getModel("lineStyle").getLineStyle(),w.labelModel=b.getModel("label"),w.hoverLabelModel=b.getModel("emphasis.label"),x.isExpand===!1&&x.children.length!==0?w.symbolInnerColor=w.itemStyle.fill:w.symbolInnerColor="#fff",w}function p(x,b,w,S,T,C){var O=!w,_=x.tree.getNodeByDataIndex(b),M=_.getModel(),C=h(_,M,C),k=x.tree.root,R=_.parentNode===k?_:_.parentNode||_,B=x.getItemGraphicEl(R.dataIndex),P=R.getLayout(),U=B?{x:B.position[0],y:B.position[1],rawX:B.__radialOldRawX,rawY:B.__radialOldRawY}:P,j=_.getLayout();O?(w=new L(x,b,C),w.attr("position",[U.x,U.y])):w.updateData(x,b,C),w.__radialOldRawX=w.__radialRawX,w.__radialOldRawY=w.__radialRawY,w.__radialRawX=j.rawX,w.__radialRawY=j.rawY,S.add(w),x.setItemGraphicEl(b,w),N.updateProps(w,{position:[j.x,j.y]},T);var H=w.getSymbolPath();if(C.layout==="radial"){var W=k.children[0],G=W.getLayout(),V=W.children.length,Z,Y;if(j.x===G.x&&_.isExpand===!0){var Q={};Q.x=(W.children[0].getLayout().x+W.children[V-1].getLayout().x)/2,Q.y=(W.children[0].getLayout().y+W.children[V-1].getLayout().y)/2,Z=Math.atan2(Q.y-G.y,Q.x-G.x),Z<0&&(Z=Math.PI*2+Z),Y=Q.x<G.x,Y&&(Z=Z-Math.PI)}else Z=Math.atan2(j.y-G.y,j.x-G.x),Z<0&&(Z=Math.PI*2+Z),_.children.length===0||_.children.length!==0&&_.isExpand===!1?(Y=j.x<G.x,Y&&(Z=Z-Math.PI)):(Y=j.x>G.x,Y||(Z=Z-Math.PI));var oe=Y?"left":"right",ue=C.labelModel.get("rotate"),Le=ue*(Math.PI/180);H.setStyle({textPosition:C.labelModel.get("position")||oe,textRotation:ue==null?-Z:Le,textOrigin:"center",verticalAlign:"middle"})}g(T,_,k,w,U,P,j,S,C)}function g(x,b,w,S,T,C,O,_,M){var k=M.edgeShape,R=S.__edge;if(k==="curve")b.parentNode&&b.parentNode!==w&&(R||(R=S.__edge=new N.BezierCurve({shape:A(M,T,T),style:D.defaults({opacity:0,strokeNoScale:!0},M.lineStyle)})),N.updateProps(R,{shape:A(M,C,O),style:{opacity:1}},x));else if(k==="polyline"&&(M.layout==="orthogonal"&&(b!==w&&b.children&&b.children.length!==0&&b.isExpand===!0))){for(var B=b.children,P=[],U=0;U<B.length;U++){var j=B[U].getLayout();P.push([j.x,j.y])}R||(R=S.__edge=new i({shape:{parentPoint:[O.x,O.y],childPoints:[[O.x,O.y]],orient:M.orient,forkPosition:M.edgeForkPosition},style:D.defaults({opacity:0,strokeNoScale:!0},M.lineStyle)})),N.updateProps(R,{shape:{parentPoint:[O.x,O.y],childPoints:P},style:{opacity:1}},x)}_.add(R)}function v(x,b,w,S,T,C){for(var O=x.tree.getNodeByDataIndex(b),_=x.tree.root,M=O.getModel(),C=h(O,M,C),k=O.parentNode===_?O:O.parentNode||O,R=C.edgeShape,B;B=k.getLayout(),B==null;)k=k.parentNode===_?k:k.parentNode||k;N.updateProps(w,{position:[B.x+1,B.y+1]},T,function(){S.remove(w),x.setItemGraphicEl(b,null)}),w.fadeOut(null,{keepLabel:!0});var P=x.getItemGraphicEl(k.dataIndex),U=P.__edge,j=w.__edge||(k.isExpand===!1||k.children.length===1?U:void 0),R=C.edgeShape;j&&(R==="curve"?N.updateProps(j,{shape:A(C,B,B),style:{opacity:0}},T,function(){S.remove(j)}):R==="polyline"&&C.layout==="orthogonal"&&N.updateProps(j,{shape:{parentPoint:[B.x,B.y],childPoints:[[B.x,B.y]]},style:{opacity:0}},T,function(){S.remove(j)}))}function A(x,b,w){var S,T,C,O,_=x.orient,M,k,R,B;if(x.layout==="radial"){M=b.rawX,R=b.rawY,k=w.rawX,B=w.rawY;var P=I(M,R),U=I(M,R+(B-R)*x.curvature),j=I(k,B+(R-B)*x.curvature),H=I(k,B);return{x1:P.x,y1:P.y,x2:H.x,y2:H.y,cpx1:U.x,cpy1:U.y,cpx2:j.x,cpy2:j.y}}else M=b.x,R=b.y,k=w.x,B=w.y,(_==="LR"||_==="RL")&&(S=M+(k-M)*x.curvature,T=R,C=k+(M-k)*x.curvature,O=B),(_==="TB"||_==="BT")&&(S=M,T=R+(B-R)*x.curvature,C=k,O=B+(R-B)*x.curvature);return{x1:M,y1:R,x2:k,y2:B,cpx1:S,cpy1:T,cpx2:C,cpy2:O}}fe.exports=c},bQjk:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return function(N){var L=D,E=L.lib,I=E.CipherParams,o=L.enc,m=o.Hex,f=L.format,s=f.Hex={stringify:function(l){return l.ciphertext.toString(m)},parse:function(l){var a=m.parse(l);return I.create({ciphertext:a})}}}(),D.format.Hex})},bT9E:function(fe,z,y){"use strict";y.d(z,"a",function(){return N});var D=y("VTBJ");function N(L,E){var I=Object(D.a)({},L);return Array.isArray(E)&&E.forEach(function(o){delete I[o]}),I}},bX4T:function(fe,z,y){"use strict";y.d(z,"a",function(){return f});var D=y("VTBJ"),N=`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`,L=`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`,E="".concat(N," ").concat(L).split(/[\s\n]+/),I="aria-",o="data-";function m(s,t){return s.indexOf(t)===0}function f(s){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l;t===!1?l={aria:!0,data:!0,attr:!0}:t===!0?l={aria:!0}:l=Object(D.a)({},t);var a={};return Object.keys(s).forEach(function(r){(l.aria&&(r==="role"||m(r,I))||l.data&&m(r,o)||l.attr&&E.includes(r))&&(a[r]=s[r])}),a}},bYtY:function(fe,z){var y={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},D={"[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},N=Object.prototype.toString,L=Array.prototype,E=L.forEach,I=L.filter,o=L.slice,m=L.map,f=L.reduce,s={};function t(X,q){X==="createCanvas"&&(i=null),s[X]=q}function l(X){if(X==null||typeof X!="object")return X;var q=X,We=N.call(X);if(We==="[object Array]"){if(!oe(X)){q=[];for(var $=0,J=X.length;$<J;$++)q[$]=l(X[$])}}else if(D[We]){if(!oe(X)){var le=X.constructor;if(X.constructor.from)q=le.from(X);else{q=new le(X.length);for(var $=0,J=X.length;$<J;$++)q[$]=l(X[$])}}}else if(!y[We]&&!oe(X)&&!B(X)){q={};for(var de in X)X.hasOwnProperty(de)&&(q[de]=l(X[de]))}return q}function a(X,q,We){if(!M(q)||!M(X))return We?l(q):X;for(var $ in q)if(q.hasOwnProperty($)){var J=X[$],le=q[$];M(le)&&M(J)&&!C(le)&&!C(J)&&!B(le)&&!B(J)&&!k(le)&&!k(J)&&!oe(le)&&!oe(J)?a(J,le,We):(We||!($ in X))&&(X[$]=l(q[$],!0))}return X}function r(X,q){for(var We=X[0],$=1,J=X.length;$<J;$++)We=a(We,X[$],q);return We}function u(X,q){for(var We in q)q.hasOwnProperty(We)&&(X[We]=q[We]);return X}function e(X,q,We){for(var $ in q)q.hasOwnProperty($)&&(We?q[$]!=null:X[$]==null)&&(X[$]=q[$]);return X}var n=function(){return s.createCanvas()};s.createCanvas=function(){return document.createElement("canvas")};var i;function c(){return i||(i=n().getContext("2d")),i}function d(X,q){if(X){if(X.indexOf)return X.indexOf(q);for(var We=0,$=X.length;We<$;We++)if(X[We]===q)return We}return-1}function h(X,q){var We=X.prototype;function $(){}$.prototype=q.prototype,X.prototype=new $;for(var J in We)We.hasOwnProperty(J)&&(X.prototype[J]=We[J]);X.prototype.constructor=X,X.superClass=q}function p(X,q,We){X="prototype"in X?X.prototype:X,q="prototype"in q?q.prototype:q,e(X,q,We)}function g(X){return X?typeof X=="string"?!1:typeof X.length=="number":void 0}function v(X,q,We){if(!(X&&q))return;if(X.forEach&&X.forEach===E)X.forEach(q,We);else if(X.length===+X.length)for(var $=0,J=X.length;$<J;$++)q.call(We,X[$],$,X);else for(var le in X)X.hasOwnProperty(le)&&q.call(We,X[le],le,X)}function A(X,q,We){if(!(X&&q))return;if(X.map&&X.map===m)return X.map(q,We);for(var $=[],J=0,le=X.length;J<le;J++)$.push(q.call(We,X[J],J,X));return $}function x(X,q,We,$){if(!(X&&q))return;if(X.reduce&&X.reduce===f)return X.reduce(q,We,$);for(var J=0,le=X.length;J<le;J++)We=q.call($,We,X[J],J,X);return We}function b(X,q,We){if(!(X&&q))return;if(X.filter&&X.filter===I)return X.filter(q,We);for(var $=[],J=0,le=X.length;J<le;J++)q.call(We,X[J],J,X)&&$.push(X[J]);return $}function w(X,q,We){if(!(X&&q))return;for(var $=0,J=X.length;$<J;$++)if(q.call(We,X[$],$,X))return X[$]}function S(X,q){var We=o.call(arguments,2);return function(){return X.apply(q,We.concat(o.call(arguments)))}}function T(X){var q=o.call(arguments,1);return function(){return X.apply(this,q.concat(o.call(arguments)))}}function C(X){return N.call(X)==="[object Array]"}function O(X){return typeof X=="function"}function _(X){return N.call(X)==="[object String]"}function M(X){var q=typeof X;return q==="function"||!!X&&q==="object"}function k(X){return!!y[N.call(X)]}function R(X){return!!D[N.call(X)]}function B(X){return typeof X=="object"&&typeof X.nodeType=="number"&&typeof X.ownerDocument=="object"}function P(X){return X!==X}function U(X){for(var q=0,We=arguments.length;q<We;q++)if(arguments[q]!=null)return arguments[q]}function j(X,q){return X!=null?X:q}function H(X,q,We){return X!=null?X:q!=null?q:We}function W(){return Function.call.apply(o,arguments)}function G(X){if(typeof X=="number")return[X,X,X,X];var q=X.length;return q===2?[X[0],X[1],X[0],X[1]]:q===3?[X[0],X[1],X[2],X[1]]:X}function V(X,q){if(!X)throw new Error(q)}function Z(X){return X==null?null:typeof X.trim=="function"?X.trim():X.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Y="__ec_primitive__";function Q(X){X[Y]=!0}function oe(X){return X[Y]}function ue(X){var q=C(X);this.data={};var We=this;X instanceof ue?X.each($):X&&v(X,$);function $(J,le){q?We.set(J,le):We.set(le,J)}}ue.prototype={constructor:ue,get:function(q){return this.data.hasOwnProperty(q)?this.data[q]:null},set:function(q,We){return this.data[q]=We},each:function(q,We){We!==void 0&&(q=S(q,We));for(var $ in this.data)this.data.hasOwnProperty($)&&q(this.data[$],$)},removeKey:function(q){delete this.data[q]}};function Le(X){return new ue(X)}function me(X,q){for(var We=new X.constructor(X.length+q.length),$=0;$<X.length;$++)We[$]=X[$];var J=X.length;for($=0;$<q.length;$++)We[$+J]=q[$];return We}function Ie(){}z.$override=t,z.clone=l,z.merge=a,z.mergeAll=r,z.extend=u,z.defaults=e,z.createCanvas=n,z.getContext=c,z.indexOf=d,z.inherits=h,z.mixin=p,z.isArrayLike=g,z.each=v,z.map=A,z.reduce=x,z.filter=b,z.find=w,z.bind=S,z.curry=T,z.isArray=C,z.isFunction=O,z.isString=_,z.isObject=M,z.isBuiltInObject=k,z.isTypedArray=R,z.isDom=B,z.eqNaN=P,z.retrieve=U,z.retrieve2=j,z.retrieve3=H,z.slice=W,z.normalizeCssArray=G,z.assert=V,z.trim=Z,z.setAsPrimitive=Q,z.isPrimitive=oe,z.createHashMap=Le,z.concatArray=me,z.noop=Ie},bZqE:function(fe,z){function y(N,L,E){for(var I=[N],o=[],m;m=I.pop();)if(o.push(m),m.isExpand){var f=m.children;if(f.length)for(var s=0;s<f.length;s++)I.push(f[s])}for(;m=o.pop();)L(m,E)}function D(N,L){for(var E=[N],I;I=E.pop();)if(L(I),I.isExpand){var o=I.children;if(o.length)for(var m=o.length-1;m>=0;m--)E.push(o[m])}}z.eachAfter=y,z.eachBefore=D},bahg:function(fe,z){function y(D){return D.split("")}fe.exports=y},bbsP:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("CWI+"),E=y.n(L)},bogI:function(fe,z,y){"use strict";y.d(z,"a",function(){return D});var D=function(L){if(!L)return null;var E=typeof L=="function";return E?L():L}},bsht:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},bx4M:function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("q1tI"),o=y("TSYQ"),m=y.n(o),f=y("BGR+"),s=y("H84U"),t=function(A,x){var b={};for(var w in A)Object.prototype.hasOwnProperty.call(A,w)&&x.indexOf(w)<0&&(b[w]=A[w]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,w=Object.getOwnPropertySymbols(A);S<w.length;S++)x.indexOf(w[S])<0&&Object.prototype.propertyIsEnumerable.call(A,w[S])&&(b[w[S]]=A[w[S]]);return b},l=function(x){return I.createElement(s.a,null,function(b){var w=b.getPrefixCls,S=x.prefixCls,T=x.className,C=x.hoverable,O=C===void 0?!0:C,_=t(x,["prefixCls","className","hoverable"]),M=w("card",S),k=m()("".concat(M,"-grid"),T,N()({},"".concat(M,"-grid-hoverable"),O));return I.createElement("div",E()({},_,{className:k}))})},a=l,r=function(A,x){var b={};for(var w in A)Object.prototype.hasOwnProperty.call(A,w)&&x.indexOf(w)<0&&(b[w]=A[w]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,w=Object.getOwnPropertySymbols(A);S<w.length;S++)x.indexOf(w[S])<0&&Object.prototype.propertyIsEnumerable.call(A,w[S])&&(b[w[S]]=A[w[S]]);return b},u=function(x){return I.createElement(s.a,null,function(b){var w=b.getPrefixCls,S=x.prefixCls,T=x.className,C=x.avatar,O=x.title,_=x.description,M=r(x,["prefixCls","className","avatar","title","description"]),k=w("card",S),R=m()("".concat(k,"-meta"),T),B=C?I.createElement("div",{className:"".concat(k,"-meta-avatar")},C):null,P=O?I.createElement("div",{className:"".concat(k,"-meta-title")},O):null,U=_?I.createElement("div",{className:"".concat(k,"-meta-description")},_):null,j=P||U?I.createElement("div",{className:"".concat(k,"-meta-detail")},P,U):null;return I.createElement("div",E()({},M,{className:R}),B,j)})},e=u,n=y("ZTPi"),i=y("BMrR"),c=y("kPKH"),d=y("3Nzz"),h=function(A,x){var b={};for(var w in A)Object.prototype.hasOwnProperty.call(A,w)&&x.indexOf(w)<0&&(b[w]=A[w]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,w=Object.getOwnPropertySymbols(A);S<w.length;S++)x.indexOf(w[S])<0&&Object.prototype.propertyIsEnumerable.call(A,w[S])&&(b[w[S]]=A[w[S]]);return b};function p(A){var x=A.map(function(b,w){return I.createElement("li",{style:{width:"".concat(100/A.length,"%")},key:"action-".concat(w)},I.createElement("span",null,b))});return x}var g=function(x){var b,w,S=I.useContext(s.b),T=S.getPrefixCls,C=S.direction,O=I.useContext(d.b),_=function(At){x.onTabChange&&x.onTabChange(At)},M=function(){var At;return I.Children.forEach(x.children,function(bt){bt&&bt.type&&bt.type===a&&(At=!0)}),At},k=x.prefixCls,R=x.className,B=x.extra,P=x.headStyle,U=P===void 0?{}:P,j=x.bodyStyle,H=j===void 0?{}:j,W=x.title,G=x.loading,V=x.bordered,Z=V===void 0?!0:V,Y=x.size,Q=x.type,oe=x.cover,ue=x.actions,Le=x.tabList,me=x.children,Ie=x.activeTabKey,X=x.defaultActiveTabKey,q=x.tabBarExtraContent,We=x.hoverable,$=x.tabProps,J=$===void 0?{}:$,le=h(x,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),de=T("card",k),Ne=H.padding===0||H.padding==="0px"?{padding:24}:void 0,we=I.createElement("div",{className:"".concat(de,"-loading-block")}),De=I.createElement("div",{className:"".concat(de,"-loading-content"),style:Ne},I.createElement(i.a,{gutter:8},I.createElement(c.a,{span:22},we)),I.createElement(i.a,{gutter:8},I.createElement(c.a,{span:8},we),I.createElement(c.a,{span:15},we)),I.createElement(i.a,{gutter:8},I.createElement(c.a,{span:6},we),I.createElement(c.a,{span:18},we)),I.createElement(i.a,{gutter:8},I.createElement(c.a,{span:13},we),I.createElement(c.a,{span:9},we)),I.createElement(i.a,{gutter:8},I.createElement(c.a,{span:4},we),I.createElement(c.a,{span:3},we),I.createElement(c.a,{span:16},we))),Ee=Ie!==void 0,ce=E()(E()({},J),(b={},N()(b,Ee?"activeKey":"defaultActiveKey",Ee?Ie:X),N()(b,"tabBarExtraContent",q),b)),ne,ee=Le&&Le.length?I.createElement(n.a,E()({size:"large"},ce,{className:"".concat(de,"-head-tabs"),onChange:_}),Le.map(function(ft){return I.createElement(n.a.TabPane,{tab:ft.tab,disabled:ft.disabled,key:ft.key})})):null;(W||B||ee)&&(ne=I.createElement("div",{className:"".concat(de,"-head"),style:U},I.createElement("div",{className:"".concat(de,"-head-wrapper")},W&&I.createElement("div",{className:"".concat(de,"-head-title")},W),B&&I.createElement("div",{className:"".concat(de,"-extra")},B)),ee));var Ae=oe?I.createElement("div",{className:"".concat(de,"-cover")},oe):null,Ve=I.createElement("div",{className:"".concat(de,"-body"),style:H},G?De:me),Ke=ue&&ue.length?I.createElement("ul",{className:"".concat(de,"-actions")},p(ue)):null,Oe=Object(f.default)(le,["onTabChange"]),it=Y||O,Fe=m()(de,R,(w={},N()(w,"".concat(de,"-loading"),G),N()(w,"".concat(de,"-bordered"),Z),N()(w,"".concat(de,"-hoverable"),We),N()(w,"".concat(de,"-contain-grid"),M()),N()(w,"".concat(de,"-contain-tabs"),Le&&Le.length),N()(w,"".concat(de,"-").concat(it),it),N()(w,"".concat(de,"-type-").concat(Q),!!Q),N()(w,"".concat(de,"-rtl"),C==="rtl"),w));return I.createElement("div",E()({},Oe,{className:Fe}),ne,Ae,Ve,Ke)};g.Grid=a,g.Meta=e;var v=z.a=g},c2i1:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("Yl7c"),I=E.enableClassCheck;function o(r){return"_EC_"+r}var m=function(r){this._directed=r||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},f=m.prototype;f.type="graph",f.isDirected=function(){return this._directed},f.addNode=function(r,u){r=r==null?""+u:""+r;var e=this._nodesMap;if(e[o(r)])return;var n=new s(r,u);return n.hostGraph=this,this.nodes.push(n),e[o(r)]=n,n},f.getNodeByIndex=function(r){var u=this.data.getRawIndex(r);return this.nodes[u]},f.getNodeById=function(r){return this._nodesMap[o(r)]},f.addEdge=function(r,u,e){var n=this._nodesMap,i=this._edgesMap;if(typeof r=="number"&&(r=this.nodes[r]),typeof u=="number"&&(u=this.nodes[u]),s.isInstance(r)||(r=n[o(r)]),s.isInstance(u)||(u=n[o(u)]),!r||!u)return;var c=r.id+"-"+u.id;if(i[c])return;var d=new t(r,u,e);return d.hostGraph=this,this._directed&&(r.outEdges.push(d),u.inEdges.push(d)),r.edges.push(d),r!==u&&u.edges.push(d),this.edges.push(d),i[c]=d,d},f.getEdgeByIndex=function(r){var u=this.edgeData.getRawIndex(r);return this.edges[u]},f.getEdge=function(r,u){s.isInstance(r)&&(r=r.id),s.isInstance(u)&&(u=u.id);var e=this._edgesMap;return this._directed?e[r+"-"+u]:e[r+"-"+u]||e[u+"-"+r]},f.eachNode=function(r,u){for(var e=this.nodes,n=e.length,i=0;i<n;i++)e[i].dataIndex>=0&&r.call(u,e[i],i)},f.eachEdge=function(r,u){for(var e=this.edges,n=e.length,i=0;i<n;i++)e[i].dataIndex>=0&&e[i].node1.dataIndex>=0&&e[i].node2.dataIndex>=0&&r.call(u,e[i],i)},f.breadthFirstTraverse=function(r,u,e,n){if(s.isInstance(u)||(u=this._nodesMap[o(u)]),!u)return;for(var i=e==="out"?"outEdges":e==="in"?"inEdges":"edges",c=0;c<this.nodes.length;c++)this.nodes[c].__visited=!1;if(r.call(n,u,null))return;for(var d=[u];d.length;)for(var h=d.shift(),p=h[i],c=0;c<p.length;c++){var g=p[c],v=g.node1===h?g.node2:g.node1;if(!v.__visited){if(r.call(n,v,h))return;d.push(v),v.__visited=!0}}},f.update=function(){for(var r=this.data,u=this.edgeData,e=this.nodes,n=this.edges,i=0,c=e.length;i<c;i++)e[i].dataIndex=-1;for(var i=0,c=r.count();i<c;i++)e[r.getRawIndex(i)].dataIndex=i;u.filterSelf(function(d){var h=n[u.getRawIndex(d)];return h.node1.dataIndex>=0&&h.node2.dataIndex>=0});for(var i=0,c=n.length;i<c;i++)n[i].dataIndex=-1;for(var i=0,c=u.count();i<c;i++)n[u.getRawIndex(i)].dataIndex=i},f.clone=function(){for(var r=new m(this._directed),u=this.nodes,e=this.edges,n=0;n<u.length;n++)r.addNode(u[n].id,u[n].dataIndex);for(var n=0;n<e.length;n++){var i=e[n];r.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return r};function s(r,u){this.id=r==null?"":r,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=u==null?-1:u}s.prototype={constructor:s,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(r){if(this.dataIndex<0)return;var u=this.hostGraph,e=u.data.getItemModel(this.dataIndex);return e.getModel(r)}};function t(r,u,e){this.node1=r,this.node2=u,this.dataIndex=e==null?-1:e}t.prototype.getModel=function(r){if(this.dataIndex<0)return;var u=this.hostGraph,e=u.edgeData.getItemModel(this.dataIndex);return e.getModel(r)};var l=function(r,u){return{getValue:function(e){var n=this[r][u];return n.get(n.getDimension(e||"value"),this.dataIndex)},setVisual:function(e,n){this.dataIndex>=0&&this[r][u].setItemVisual(this.dataIndex,e,n)},getVisual:function(e,n){return this[r][u].getItemVisual(this.dataIndex,e,n)},setLayout:function(e,n){this.dataIndex>=0&&this[r][u].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][u].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][u].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][u].getRawIndex(this.dataIndex)}}};L.mixin(s,l("hostGraph","data")),L.mixin(t,l("hostGraph","edgeData")),m.Node=s,m.Edge=t,I(s),I(t);var a=m;fe.exports=a},c5Ni:function(fe,z,y){},c5fP:function(fe,z,y){"use strict";function D(Fe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(At){return typeof At}:D=function(At){return At&&typeof Symbol=="function"&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At},D(Fe)}Object.defineProperty(z,"__esModule",{value:!0}),z._tr_init=Ae,z._tr_stored_block=Ve,z._tr_flush_block=Oe,z._tr_tally=it,z._tr_align=Ke;var N=E(y("6BzB"));function L(){if(typeof WeakMap!="function")return null;var Fe=new WeakMap;return L=function(){return Fe},Fe}function E(Fe){if(Fe&&Fe.__esModule)return Fe;if(Fe===null||D(Fe)!=="object"&&typeof Fe!="function")return{default:Fe};var ft=L();if(ft&&ft.has(Fe))return ft.get(Fe);var At={},bt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var St in Fe)if(Object.prototype.hasOwnProperty.call(Fe,St)){var Et=bt?Object.getOwnPropertyDescriptor(Fe,St):null;Et&&(Et.get||Et.set)?Object.defineProperty(At,St,Et):At[St]=Fe[St]}return At.default=Fe,ft&&ft.set(Fe,At),At}var I=4,o=0,m=1,f=2;function s(Fe){for(var ft=Fe.length;--ft>=0;)Fe[ft]=0}var t=0,l=1,a=2,r=3,u=258,e=29,n=256,i=n+1+e,c=30,d=19,h=2*i+1,p=15,g=16,v=7,A=256,x=16,b=17,w=18,S=[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],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],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=512,M=new Array((i+2)*2);s(M);var k=new Array(c*2);s(k);var R=new Array(_);s(R);var B=new Array(u-r+1);s(B);var P=new Array(e);s(P);var U=new Array(c);s(U);function j(Fe,ft,At,bt,St){this.static_tree=Fe,this.extra_bits=ft,this.extra_base=At,this.elems=bt,this.max_length=St,this.has_stree=Fe&&Fe.length}var H,W,G;function V(Fe,ft){this.dyn_tree=Fe,this.max_code=0,this.stat_desc=ft}function Z(Fe){return Fe<256?R[Fe]:R[256+(Fe>>>7)]}function Y(Fe,ft){Fe.pending_buf[Fe.pending++]=ft&255,Fe.pending_buf[Fe.pending++]=ft>>>8&255}function Q(Fe,ft,At){Fe.bi_valid>g-At?(Fe.bi_buf|=ft<<Fe.bi_valid&65535,Y(Fe,Fe.bi_buf),Fe.bi_buf=ft>>g-Fe.bi_valid,Fe.bi_valid+=At-g):(Fe.bi_buf|=ft<<Fe.bi_valid&65535,Fe.bi_valid+=At)}function oe(Fe,ft,At){Q(Fe,At[ft*2],At[ft*2+1])}function ue(Fe,ft){var At=0;do At|=Fe&1,Fe>>>=1,At<<=1;while(--ft>0);return At>>>1}function Le(Fe){Fe.bi_valid===16?(Y(Fe,Fe.bi_buf),Fe.bi_buf=0,Fe.bi_valid=0):Fe.bi_valid>=8&&(Fe.pending_buf[Fe.pending++]=Fe.bi_buf&255,Fe.bi_buf>>=8,Fe.bi_valid-=8)}function me(Fe,ft){var At=ft.dyn_tree,bt=ft.max_code,St=ft.stat_desc.static_tree,Et=ft.stat_desc.has_stree,je=ft.stat_desc.extra_bits,pe=ft.stat_desc.extra_base,ie=ft.stat_desc.max_length,st,Qe,ve,Bt,qt,ct,Wt=0;for(Bt=0;Bt<=p;Bt++)Fe.bl_count[Bt]=0;for(At[Fe.heap[Fe.heap_max]*2+1]=0,st=Fe.heap_max+1;st<h;st++){if(Qe=Fe.heap[st],Bt=At[At[Qe*2+1]*2+1]+1,Bt>ie&&(Bt=ie,Wt++),At[Qe*2+1]=Bt,Qe>bt)continue;Fe.bl_count[Bt]++,qt=0,Qe>=pe&&(qt=je[Qe-pe]),ct=At[Qe*2],Fe.opt_len+=ct*(Bt+qt),Et&&(Fe.static_len+=ct*(St[Qe*2+1]+qt))}if(Wt===0)return;do{for(Bt=ie-1;Fe.bl_count[Bt]===0;)Bt--;Fe.bl_count[Bt]--,Fe.bl_count[Bt+1]+=2,Fe.bl_count[ie]--,Wt-=2}while(Wt>0);for(Bt=ie;Bt!==0;Bt--)for(Qe=Fe.bl_count[Bt];Qe!==0;){if(ve=Fe.heap[--st],ve>bt)continue;At[ve*2+1]!==Bt&&(Fe.opt_len+=(Bt-At[ve*2+1])*At[ve*2],At[ve*2+1]=Bt),Qe--}}function Ie(Fe,ft,At){var bt=new Array(p+1),St=0,Et,je;for(Et=1;Et<=p;Et++)bt[Et]=St=St+At[Et-1]<<1;for(je=0;je<=ft;je++){var pe=Fe[je*2+1];if(pe===0)continue;Fe[je*2]=ue(bt[pe]++,pe)}}function X(){var Fe,ft,At,bt,St,Et=new Array(p+1);for(At=0,bt=0;bt<e-1;bt++)for(P[bt]=At,Fe=0;Fe<1<<S[bt];Fe++)B[At++]=bt;for(B[At-1]=bt,St=0,bt=0;bt<16;bt++)for(U[bt]=St,Fe=0;Fe<1<<T[bt];Fe++)R[St++]=bt;for(St>>=7;bt<c;bt++)for(U[bt]=St<<7,Fe=0;Fe<1<<T[bt]-7;Fe++)R[256+St++]=bt;for(ft=0;ft<=p;ft++)Et[ft]=0;for(Fe=0;Fe<=143;)M[Fe*2+1]=8,Fe++,Et[8]++;for(;Fe<=255;)M[Fe*2+1]=9,Fe++,Et[9]++;for(;Fe<=279;)M[Fe*2+1]=7,Fe++,Et[7]++;for(;Fe<=287;)M[Fe*2+1]=8,Fe++,Et[8]++;for(Ie(M,i+1,Et),Fe=0;Fe<c;Fe++)k[Fe*2+1]=5,k[Fe*2]=ue(Fe,5);H=new j(M,S,n+1,i,p),W=new j(k,T,0,c,p),G=new j(new Array(0),C,0,d,v)}function q(Fe){var ft;for(ft=0;ft<i;ft++)Fe.dyn_ltree[ft*2]=0;for(ft=0;ft<c;ft++)Fe.dyn_dtree[ft*2]=0;for(ft=0;ft<d;ft++)Fe.bl_tree[ft*2]=0;Fe.dyn_ltree[A*2]=1,Fe.opt_len=Fe.static_len=0,Fe.last_lit=Fe.matches=0}function We(Fe){Fe.bi_valid>8?Y(Fe,Fe.bi_buf):Fe.bi_valid>0&&(Fe.pending_buf[Fe.pending++]=Fe.bi_buf),Fe.bi_buf=0,Fe.bi_valid=0}function $(Fe,ft,At,bt){We(Fe),bt&&(Y(Fe,At),Y(Fe,~At)),N.arraySet(Fe.pending_buf,Fe.window,ft,At,Fe.pending),Fe.pending+=At}function J(Fe,ft,At,bt){var St=ft*2,Et=At*2;return Fe[St]<Fe[Et]||Fe[St]===Fe[Et]&&bt[ft]<=bt[At]}function le(Fe,ft,At){for(var bt=Fe.heap[At],St=At<<1;St<=Fe.heap_len&&!(St<Fe.heap_len&&J(ft,Fe.heap[St+1],Fe.heap[St],Fe.depth)&&St++,J(ft,bt,Fe.heap[St],Fe.depth));)Fe.heap[At]=Fe.heap[St],At=St,St<<=1;Fe.heap[At]=bt}function de(Fe,ft,At){var bt,St,Et=0,je,pe;if(Fe.last_lit!==0)do bt=Fe.pending_buf[Fe.d_buf+Et*2]<<8|Fe.pending_buf[Fe.d_buf+Et*2+1],St=Fe.pending_buf[Fe.l_buf+Et],Et++,bt===0?oe(Fe,St,ft):(je=B[St],oe(Fe,je+n+1,ft),pe=S[je],pe!==0&&(St-=P[je],Q(Fe,St,pe)),bt--,je=Z(bt),oe(Fe,je,At),pe=T[je],pe!==0&&(bt-=U[je],Q(Fe,bt,pe)));while(Et<Fe.last_lit);oe(Fe,A,ft)}function Ne(Fe,ft){var At=ft.dyn_tree,bt=ft.stat_desc.static_tree,St=ft.stat_desc.has_stree,Et=ft.stat_desc.elems,je,pe,ie=-1,st;for(Fe.heap_len=0,Fe.heap_max=h,je=0;je<Et;je++)At[je*2]!==0?(Fe.heap[++Fe.heap_len]=ie=je,Fe.depth[je]=0):At[je*2+1]=0;for(;Fe.heap_len<2;)st=Fe.heap[++Fe.heap_len]=ie<2?++ie:0,At[st*2]=1,Fe.depth[st]=0,Fe.opt_len--,St&&(Fe.static_len-=bt[st*2+1]);for(ft.max_code=ie,je=Fe.heap_len>>1;je>=1;je--)le(Fe,At,je);st=Et;do je=Fe.heap[1],Fe.heap[1]=Fe.heap[Fe.heap_len--],le(Fe,At,1),pe=Fe.heap[1],Fe.heap[--Fe.heap_max]=je,Fe.heap[--Fe.heap_max]=pe,At[st*2]=At[je*2]+At[pe*2],Fe.depth[st]=(Fe.depth[je]>=Fe.depth[pe]?Fe.depth[je]:Fe.depth[pe])+1,At[je*2+1]=At[pe*2+1]=st,Fe.heap[1]=st++,le(Fe,At,1);while(Fe.heap_len>=2);Fe.heap[--Fe.heap_max]=Fe.heap[1],me(Fe,ft),Ie(At,ie,Fe.bl_count)}function we(Fe,ft,At){var bt,St=-1,Et,je=ft[0*2+1],pe=0,ie=7,st=4;for(je===0&&(ie=138,st=3),ft[(At+1)*2+1]=65535,bt=0;bt<=At;bt++){if(Et=je,je=ft[(bt+1)*2+1],++pe<ie&&Et===je)continue;pe<st?Fe.bl_tree[Et*2]+=pe:Et!==0?(Et!==St&&Fe.bl_tree[Et*2]++,Fe.bl_tree[x*2]++):pe<=10?Fe.bl_tree[b*2]++:Fe.bl_tree[w*2]++,pe=0,St=Et,je===0?(ie=138,st=3):Et===je?(ie=6,st=3):(ie=7,st=4)}}function De(Fe,ft,At){var bt,St=-1,Et,je=ft[0*2+1],pe=0,ie=7,st=4;for(je===0&&(ie=138,st=3),bt=0;bt<=At;bt++){if(Et=je,je=ft[(bt+1)*2+1],++pe<ie&&Et===je)continue;if(pe<st)do oe(Fe,Et,Fe.bl_tree);while(--pe!==0);else Et!==0?(Et!==St&&(oe(Fe,Et,Fe.bl_tree),pe--),oe(Fe,x,Fe.bl_tree),Q(Fe,pe-3,2)):pe<=10?(oe(Fe,b,Fe.bl_tree),Q(Fe,pe-3,3)):(oe(Fe,w,Fe.bl_tree),Q(Fe,pe-11,7));pe=0,St=Et,je===0?(ie=138,st=3):Et===je?(ie=6,st=3):(ie=7,st=4)}}function Ee(Fe){var ft;for(we(Fe,Fe.dyn_ltree,Fe.l_desc.max_code),we(Fe,Fe.dyn_dtree,Fe.d_desc.max_code),Ne(Fe,Fe.bl_desc),ft=d-1;ft>=3&&!(Fe.bl_tree[O[ft]*2+1]!==0);ft--);return Fe.opt_len+=3*(ft+1)+5+5+4,ft}function ce(Fe,ft,At,bt){var St;for(Q(Fe,ft-257,5),Q(Fe,At-1,5),Q(Fe,bt-4,4),St=0;St<bt;St++)Q(Fe,Fe.bl_tree[O[St]*2+1],3);De(Fe,Fe.dyn_ltree,ft-1),De(Fe,Fe.dyn_dtree,At-1)}function ne(Fe){var ft=4093624447,At;for(At=0;At<=31;At++,ft>>>=1)if(ft&1&&Fe.dyn_ltree[At*2]!==0)return o;if(Fe.dyn_ltree[9*2]!==0||Fe.dyn_ltree[10*2]!==0||Fe.dyn_ltree[13*2]!==0)return m;for(At=32;At<n;At++)if(Fe.dyn_ltree[At*2]!==0)return m;return o}var ee=!1;function Ae(Fe){ee||(X(),ee=!0),Fe.l_desc=new V(Fe.dyn_ltree,H),Fe.d_desc=new V(Fe.dyn_dtree,W),Fe.bl_desc=new V(Fe.bl_tree,G),Fe.bi_buf=0,Fe.bi_valid=0,q(Fe)}function Ve(Fe,ft,At,bt){Q(Fe,(t<<1)+(bt?1:0),3),$(Fe,ft,At,!0)}function Ke(Fe){Q(Fe,l<<1,3),oe(Fe,A,M),Le(Fe)}function Oe(Fe,ft,At,bt){var St,Et,je=0;Fe.level>0?(Fe.strm.data_type===f&&(Fe.strm.data_type=ne(Fe)),Ne(Fe,Fe.l_desc),Ne(Fe,Fe.d_desc),je=Ee(Fe),St=Fe.opt_len+3+7>>>3,Et=Fe.static_len+3+7>>>3,Et<=St&&(St=Et)):St=Et=At+5,At+4<=St&&ft!==-1?Ve(Fe,ft,At,bt):Fe.strategy===I||Et===St?(Q(Fe,(l<<1)+(bt?1:0),3),de(Fe,M,k)):(Q(Fe,(a<<1)+(bt?1:0),3),ce(Fe,Fe.l_desc.max_code+1,Fe.d_desc.max_code+1,je+1),de(Fe,Fe.dyn_ltree,Fe.dyn_dtree)),q(Fe),bt&&We(Fe)}function it(Fe,ft,At){return Fe.pending_buf[Fe.d_buf+Fe.last_lit*2]=ft>>>8&255,Fe.pending_buf[Fe.d_buf+Fe.last_lit*2+1]=ft&255,Fe.pending_buf[Fe.l_buf+Fe.last_lit]=At&255,Fe.last_lit++,ft===0?Fe.dyn_ltree[At*2]++:(Fe.matches++,ft--,Fe.dyn_ltree[(B[At]+n+1)*2]++,Fe.dyn_dtree[Z(ft)*2]++),Fe.last_lit===Fe.lit_bufsize-1}},c8qY:function(fe,z,y){var D=y("IwbS"),N=y("fls0");function L(a){this._ctor=a||N,this.group=new D.Group}var E=L.prototype;E.isPersistent=function(){return!0},E.updateData=function(a){var r=this,u=r.group,e=r._lineData;r._lineData=a,e||u.removeAll();var n=f(a);a.diff(e).add(function(i){I(r,a,i,n)}).update(function(i,c){o(r,e,a,c,i,n)}).remove(function(i){u.remove(e.getItemGraphicEl(i))}).execute()};function I(a,r,u,e){var n=r.getItemLayout(u);if(!t(n))return;var i=new a._ctor(r,u,e);r.setItemGraphicEl(u,i),a.group.add(i)}function o(a,r,u,e,n,i){var c=r.getItemGraphicEl(e);if(!t(u.getItemLayout(n))){a.group.remove(c);return}c?c.updateData(u,n,i):c=new a._ctor(u,n,i),u.setItemGraphicEl(n,c),a.group.add(c)}E.updateLayout=function(){var a=this._lineData;if(!a)return;a.eachItemGraphicEl(function(r,u){r.updateLayout(a,u)},this)},E.incrementalPrepareUpdate=function(a){this._seriesScope=f(a),this._lineData=null,this.group.removeAll()};function m(a){return a.animators&&a.animators.length>0}E.incrementalUpdate=function(a,r){function u(c){!c.isGroup&&!m(c)&&(c.incremental=c.useHoverLayer=!0)}for(var e=a.start;e<a.end;e++){var n=r.getItemLayout(e);if(t(n)){var i=new this._ctor(r,e,this._seriesScope);i.traverse(u),this.group.add(i),r.setItemGraphicEl(e,i)}}};function f(a){var r=a.hostModel;return{lineStyle:r.getModel("lineStyle").getLineStyle(),hoverLineStyle:r.getModel("emphasis.lineStyle").getLineStyle(),labelModel:r.getModel("label"),hoverLabelModel:r.getModel("emphasis.label")}}E.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},E._clearIncremental=function(){var a=this._incremental;a&&a.clearDisplaybles()};function s(a){return isNaN(a[0])||isNaN(a[1])}function t(a){return!s(a[0])&&!s(a[1])}var l=L;fe.exports=l},cCMj:function(fe,z,y){var D=y("bYtY"),N={updateSelectedMap:function(L){this._targetList=D.isArray(L)?L.slice():[],this._selectTargetMap=D.reduce(L||[],function(E,I){return E.set(I.name,I),E},D.createHashMap())},select:function(L,E){var I=E!=null?this._targetList[E]:this._selectTargetMap.get(L),o=this.get("selectedMode");o==="single"&&this._selectTargetMap.each(function(m){m.selected=!1}),I&&(I.selected=!0)},unSelect:function(L,E){var I=E!=null?this._targetList[E]:this._selectTargetMap.get(L);I&&(I.selected=!1)},toggleSelected:function(L,E){var I=E!=null?this._targetList[E]:this._selectTargetMap.get(L);if(I!=null)return this[I.selected?"unSelect":"select"](L,E),I.selected},isSelected:function(L,E){var I=E!=null?this._targetList[E]:this._selectTargetMap.get(L);return I&&I.selected}};fe.exports=N},cVA7:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=y("MT78"),N=I(D),L=y("t3Fx"),E=I(L);function I(t){return t&&t.__esModule?t:{default:t}}function o(t,l){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}function m(t,l){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:t}function f(t,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);t.prototype=Object.create(l&&l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(t,l):t.__proto__=l)}var s=function(t){f(l,t);function l(a){o(this,l);var r=m(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return r.echartsLib=N.default,r}return l}(E.default);z.default=s},cWXX:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("oIFs"),E=y.n(L)},ca2m:function(fe,z,y){var D=y("bYtY"),N={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)"]}}},L={};L.categoryAxis=D.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},N),L.valueAxis=D.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},N),L.timeAxis=D.defaults({scale:!0,min:"dataMin",max:"dataMax"},L.valueAxis),L.logAxis=D.defaults({scale:!0,logBase:10},L.valueAxis);var E=L;fe.exports=E},cbJ4:function(fe,z,y){var D=y("bYtY"),N=D.createHashMap;function L(E){E.eachSeriesByType("themeRiver",function(I){var o=I.getData(),m=I.getRawData(),f=I.get("color"),s=N();o.each(function(t){s.set(o.getRawIndex(t),t)}),m.each(function(t){var l=m.getName(t),a=f[(I.nameMap.get(l)-1)%f.length];m.setItemVisual(t,"color",a);var r=s.get(t);r!=null&&o.setItemVisual(r,"color",a)})})}fe.exports=L},chpo:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=1,N=function(){return"".concat(D++)};z.default=N},cpOr:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("T4UG"),E=y("YXkt"),I=y("bYtY"),o=I.concatArray,m=I.mergeAll,f=I.map,s=y("7aKB"),t=s.encodeHTML,l=y("IDmD"),a=typeof Uint32Array=="undefined"?Array:Uint32Array,r=typeof Float64Array=="undefined"?Array:Float64Array;function u(i){var c=i.data;c&&c[0]&&c[0][0]&&c[0][0].coord&&(i.data=f(c,function(d){var h=[d[0].coord,d[1].coord],p={coords:h};return d[0].name&&(p.fromName=d[0].name),d[1].name&&(p.toName=d[1].name),m([p,d[0],d[1]])}))}var e=L.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(i){i.data=i.data||[],u(i);var c=this._processFlatCoordsArray(i.data);this._flatCoords=c.flatCoords,this._flatCoordsOffset=c.flatCoordsOffset,c.flatCoords&&(i.data=new Float32Array(c.count)),e.superApply(this,"init",arguments)},mergeOption:function(i){if(i.data=i.data||[],u(i),i.data){var c=this._processFlatCoordsArray(i.data);this._flatCoords=c.flatCoords,this._flatCoordsOffset=c.flatCoordsOffset,c.flatCoords&&(i.data=new Float32Array(c.count))}e.superApply(this,"mergeOption",arguments)},appendData:function(i){var c=this._processFlatCoordsArray(i.data);c.flatCoords&&(this._flatCoords?(this._flatCoords=o(this._flatCoords,c.flatCoords),this._flatCoordsOffset=o(this._flatCoordsOffset,c.flatCoordsOffset)):(this._flatCoords=c.flatCoords,this._flatCoordsOffset=c.flatCoordsOffset),i.data=new Float32Array(c.count)),this.getRawData().appendData(i.data)},_getCoordsFromItemModel:function(i){var c=this.getData().getItemModel(i),d=c.option instanceof Array?c.option:c.getShallow("coords");return d},getLineCoordsCount:function(i){return this._flatCoordsOffset?this._flatCoordsOffset[i*2+1]:this._getCoordsFromItemModel(i).length},getLineCoords:function(i,c){if(this._flatCoordsOffset){for(var d=this._flatCoordsOffset[i*2],h=this._flatCoordsOffset[i*2+1],p=0;p<h;p++)c[p]=c[p]||[],c[p][0]=this._flatCoords[d+p*2],c[p][1]=this._flatCoords[d+p*2+1];return h}else{for(var g=this._getCoordsFromItemModel(i),p=0;p<g.length;p++)c[p]=c[p]||[],c[p][0]=g[p][0],c[p][1]=g[p][1];return g.length}},_processFlatCoordsArray:function(i){var c=0;if(this._flatCoords&&(c=this._flatCoords.length),typeof i[0]=="number"){for(var d=i.length,h=new a(d),p=new r(d),g=0,v=0,A=0,x=0;x<d;){A++;var b=i[x++];h[v++]=g+c,h[v++]=b;for(var w=0;w<b;w++){var S=i[x++],T=i[x++];p[g++]=S,p[g++]=T,x>d}}return{flatCoordsOffset:new Uint32Array(h.buffer,0,v),flatCoords:p,count:A}}return{flatCoordsOffset:null,flatCoords:null,count:i.length}},getInitialData:function(i,c){var d=new E(["value"],this);return d.hasItemOption=!1,d.initData(i.data,[],function(h,p,g,v){if(h instanceof Array)return NaN;d.hasItemOption=!0;var A=h.value;if(A!=null)return A instanceof Array?A[v]:A}),d},formatTooltip:function(i){var c=this.getData(),d=c.getItemModel(i),h=d.get("name");if(h)return h;var p=d.get("fromName"),g=d.get("toName"),v=[];return p!=null&&v.push(p),g!=null&&v.push(g),t(v.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var i=this.option.progressive;return i==null?this.option.large?1e4:this.get("progressive"):i},getProgressiveThreshold:function(){var i=this.option.progressiveThreshold;return i==null?this.option.large?2e4:this.get("progressiveThreshold"):i},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}}}),n=e;fe.exports=n},crZl:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("IwbS"),E=y("7aKB"),I=y("+TT/"),o=y("XxSj"),m=D.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(f,s){this.ecModel=f,this.api=s,this.visualMapModel},render:function(f,s,t,l){if(this.visualMapModel=f,f.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(f){var s=this.visualMapModel,t=E.normalizeCssArray(s.get("padding")||0),l=f.getBoundingRect();f.add(new L.Rect({z2:-1,silent:!0,shape:{x:l.x-t[3],y:l.y-t[0],width:l.width+t[3]+t[1],height:l.height+t[0]+t[2]},style:{fill:s.get("backgroundColor"),stroke:s.get("borderColor"),lineWidth:s.get("borderWidth")}}))},getControllerVisual:function(f,s,t){t=t||{};var l=t.forceState,a=this.visualMapModel,r={};if(s==="symbol"&&(r.symbol=a.get("itemSymbol")),s==="color"){var u=a.get("contentColor");r.color=u}function e(d){return r[d]}function n(d,h){r[d]=h}var i=a.controllerVisuals[l||a.getValueState(f)],c=o.prepareVisualTypes(i);return N.each(c,function(d){var h=i[d];t.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",h=i.__alphaForOpacity),o.dependsOn(d,s)&&(h&&h.applyVisual(f,e,n))}),r[s]},positionGroup:function(f){var s=this.visualMapModel,t=this.api;I.positionElement(f,s.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})},doRender:N.noop});fe.exports=m},crp1:function(fe,z,y){"use strict";y.d(z,"b",function(){return lt}),y.d(z,"a",function(){return Ar});var D={},N=function(gt,dt,Qt,Jt,xt){var Pt=D[dt]||(D[dt]=URL.createObjectURL(new Blob([gt],{type:"text/javascript"}))),yt=new Worker(Pt);return yt.onerror=function(Ut){return xt(Ut.error,null)},yt.onmessage=function(Ut){return xt(null,Ut.data)},yt.postMessage(Qt,Jt),yt},L=Uint8Array,E=Uint16Array,I=Uint32Array,o=new L([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),m=new L([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),f=new L([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(gt,dt){for(var Qt=new E(31),Jt=0;Jt<31;++Jt)Qt[Jt]=dt+=1<<gt[Jt-1];for(var xt=new I(Qt[30]),Jt=1;Jt<30;++Jt)for(var Pt=Qt[Jt];Pt<Qt[Jt+1];++Pt)xt[Pt]=Pt-Qt[Jt]<<5|Jt;return[Qt,xt]},t=s(o,2),l=t[0],a=t[1];l[28]=258,a[258]=28;for(var r=s(m,0),u=r[0],e=r[1],n=new E(32768),i=0;i<32768;++i){var c=(i&43690)>>>1|(i&21845)<<1;c=(c&52428)>>>2|(c&13107)<<2,c=(c&61680)>>>4|(c&3855)<<4,n[i]=((c&65280)>>>8|(c&255)<<8)>>>1}for(var d=function(gt,dt,Qt){for(var Jt=gt.length,xt=0,Pt=new E(dt);xt<Jt;++xt)++Pt[gt[xt]-1];var yt=new E(dt);for(xt=0;xt<dt;++xt)yt[xt]=yt[xt-1]+Pt[xt-1]<<1;var Ut;if(Qt){Ut=new E(1<<dt);var pr=15-dt;for(xt=0;xt<Jt;++xt)if(gt[xt])for(var sr=xt<<4|gt[xt],ir=dt-gt[xt],Yr=yt[gt[xt]-1]++<<ir,Jr=Yr|(1<<ir)-1;Yr<=Jr;++Yr)Ut[n[Yr]>>>pr]=sr}else for(Ut=new E(Jt),xt=0;xt<Jt;++xt)Ut[xt]=n[yt[gt[xt]-1]++]>>>15-gt[xt];return Ut},h=new L(288),i=0;i<144;++i)h[i]=8;for(var i=144;i<256;++i)h[i]=9;for(var i=256;i<280;++i)h[i]=7;for(var i=280;i<288;++i)h[i]=8;for(var p=new L(32),i=0;i<32;++i)p[i]=5;var g=d(h,9,0),v=d(h,9,1),A=d(p,5,0),x=d(p,5,1),b=function(gt){for(var dt=gt[0],Qt=1;Qt<gt.length;++Qt)gt[Qt]>dt&&(dt=gt[Qt]);return dt},w=function(gt,dt,Qt){var Jt=dt/8>>0;return(gt[Jt]|gt[Jt+1]<<8)>>>(dt&7)&Qt},S=function(gt,dt){var Qt=dt/8>>0;return(gt[Qt]|gt[Qt+1]<<8|gt[Qt+2]<<16)>>>(dt&7)},T=function(gt){return(gt/8>>0)+(gt&7&&1)},C=function(gt,dt,Qt){(dt==null||dt<0)&&(dt=0),(Qt==null||Qt>gt.length)&&(Qt=gt.length);var Jt=new(gt instanceof E?E:gt instanceof I?I:L)(Qt-dt);return Jt.set(gt.subarray(dt,Qt)),Jt},O=function(gt,dt,Qt){var Jt=gt.length,xt=!dt||Qt,Pt=!Qt||Qt.i;Qt||(Qt={}),dt||(dt=new L(Jt*3));var yt=function(bi){var kn=dt.length;if(bi>kn){var Ii=new L(Math.max(kn*2,bi));Ii.set(dt),dt=Ii}},Ut=Qt.f||0,pr=Qt.p||0,sr=Qt.b||0,ir=Qt.l,Yr=Qt.d,Jr=Qt.m,In=Qt.n,Nn=Jt*8;do{if(!ir){Qt.f=Ut=w(gt,pr,1);var zn=w(gt,pr+1,3);if(pr+=3,zn)if(zn==1)ir=v,Yr=x,Jr=9,In=5;else if(zn==2){var $e=w(gt,pr,31)+257,_e=w(gt,pr+10,15)+4,Be=$e+w(gt,pr+5,31)+1;pr+=14;for(var He=new L(Be),Je=new L(19),Ye=0;Ye<_e;++Ye)Je[f[Ye]]=w(gt,pr+Ye*3,7);pr+=_e*3;var et=b(Je),wt=(1<<et)-1;if(!Pt&&pr+Be*(et+7)>Nn)break;for(var ut=d(Je,et,1),Ye=0;Ye<Be;){var Ft=ut[w(gt,pr,wt)];pr+=Ft&15;var ei=Ft>>>4;if(ei<16)He[Ye++]=ei;else{var wr=0,hr=0;for(ei==16?(hr=3+w(gt,pr,3),pr+=2,wr=He[Ye-1]):ei==17?(hr=3+w(gt,pr,7),pr+=3):ei==18&&(hr=11+w(gt,pr,127),pr+=7);hr--;)He[Ye++]=wr}}var Nr=He.subarray(0,$e),Kt=He.subarray($e);Jr=b(Nr),In=b(Kt),ir=d(Nr,Jr,1),Yr=d(Kt,In,1)}else throw"invalid block type";else{var ei=T(pr)+4,Ai=gt[ei-4]|gt[ei-3]<<8,Pi=ei+Ai;if(Pi>Jt){if(Pt)throw"unexpected EOF";break}xt&&yt(sr+Ai),dt.set(gt.subarray(ei,Pi),sr),Qt.b=sr+=Ai,Qt.p=pr=Pi*8;continue}if(pr>Nn)throw"unexpected EOF"}xt&&yt(sr+131072);for(var un=(1<<Jr)-1,ar=(1<<In)-1,Gr=Jr+In+18;Pt||pr+Gr<Nn;){var wr=ir[S(gt,pr)&un],Br=wr>>>4;if(pr+=wr&15,pr>Nn)throw"unexpected EOF";if(!wr)throw"invalid length/literal";if(Br<256)dt[sr++]=Br;else if(Br==256){ir=null;break}else{var gr=Br-254;if(Br>264){var Ye=Br-257,Sn=o[Ye];gr=w(gt,pr,(1<<Sn)-1)+l[Ye],pr+=Sn}var Pn=Yr[S(gt,pr)&ar],ii=Pn>>>4;if(!Pn)throw"invalid distance";pr+=Pn&15;var Kt=u[ii];if(ii>3){var Sn=m[ii];Kt+=S(gt,pr)&(1<<Sn)-1,pr+=Sn}if(pr>Nn)throw"unexpected EOF";xt&&yt(sr+131072);for(var oi=sr+gr;sr<oi;sr+=4)dt[sr]=dt[sr-Kt],dt[sr+1]=dt[sr+1-Kt],dt[sr+2]=dt[sr+2-Kt],dt[sr+3]=dt[sr+3-Kt];sr=oi}}Qt.l=ir,Qt.p=pr,Qt.b=sr,ir&&(Ut=1,Qt.m=Jr,Qt.d=Yr,Qt.n=In)}while(!Ut);return sr==dt.length?dt:C(dt,0,sr)},_=function(gt,dt,Qt){Qt<<=dt&7;var Jt=dt/8>>0;gt[Jt]|=Qt,gt[Jt+1]|=Qt>>>8},M=function(gt,dt,Qt){Qt<<=dt&7;var Jt=dt/8>>0;gt[Jt]|=Qt,gt[Jt+1]|=Qt>>>8,gt[Jt+2]|=Qt>>>16},k=function(gt,dt){for(var Qt=[],Jt=0;Jt<gt.length;++Jt)gt[Jt]&&Qt.push({s:Jt,f:gt[Jt]});var xt=Qt.length,Pt=Qt.slice();if(!xt)return[new L(0),0];if(xt==1){var yt=new L(Qt[0].s+1);return yt[Qt[0].s]=1,[yt,1]}Qt.sort(function(Be,He){return Be.f-He.f}),Qt.push({s:-1,f:25001});var Ut=Qt[0],pr=Qt[1],sr=0,ir=1,Yr=2;for(Qt[0]={s:-1,f:Ut.f+pr.f,l:Ut,r:pr};ir!=xt-1;)Ut=Qt[Qt[sr].f<Qt[Yr].f?sr++:Yr++],pr=Qt[sr!=ir&&Qt[sr].f<Qt[Yr].f?sr++:Yr++],Qt[ir++]={s:-1,f:Ut.f+pr.f,l:Ut,r:pr};for(var Jr=Pt[0].s,Jt=1;Jt<xt;++Jt)Pt[Jt].s>Jr&&(Jr=Pt[Jt].s);var In=new E(Jr+1),Nn=R(Qt[ir-1],In,0);if(Nn>dt){var Jt=0,zn=0,ei=Nn-dt,Ai=1<<ei;for(Pt.sort(function(He,Je){return In[Je.s]-In[He.s]||He.f-Je.f});Jt<xt;++Jt){var Pi=Pt[Jt].s;if(In[Pi]>dt)zn+=Ai-(1<<Nn-In[Pi]),In[Pi]=dt;else break}for(zn>>>=ei;zn>0;){var $e=Pt[Jt].s;In[$e]<dt?zn-=1<<dt-In[$e]++-1:++Jt}for(;Jt>=0&&zn;--Jt){var _e=Pt[Jt].s;In[_e]==dt&&(--In[_e],++zn)}Nn=dt}return[new L(In),Nn]},R=function jt(gt,dt,Qt){return gt.s==-1?Math.max(jt(gt.l,dt,Qt+1),jt(gt.r,dt,Qt+1)):dt[gt.s]=Qt},B=function(gt){for(var dt=gt.length;dt&&!gt[--dt];);for(var Qt=new E(++dt),Jt=0,xt=gt[0],Pt=1,yt=function(sr){Qt[Jt++]=sr},Ut=1;Ut<=dt;++Ut)if(gt[Ut]==xt&&Ut!=dt)++Pt;else{if(!xt&&Pt>2){for(;Pt>138;Pt-=138)yt(32754);Pt>2&&(yt(Pt>10?Pt-11<<5|28690:Pt-3<<5|12305),Pt=0)}else if(Pt>3){for(yt(xt),--Pt;Pt>6;Pt-=6)yt(8304);Pt>2&&(yt(Pt-3<<5|8208),Pt=0)}for(;Pt--;)yt(xt);Pt=1,xt=gt[Ut]}return[Qt.subarray(0,Jt),dt]},P=function(gt,dt){for(var Qt=0,Jt=0;Jt<dt.length;++Jt)Qt+=gt[Jt]*dt[Jt];return Qt},U=function(gt,dt,Qt){var Jt=Qt.length,xt=T(dt+2);gt[xt]=Jt&255,gt[xt+1]=Jt>>>8,gt[xt+2]=gt[xt]^255,gt[xt+3]=gt[xt+1]^255;for(var Pt=0;Pt<Jt;++Pt)gt[xt+Pt+4]=Qt[Pt];return(xt+4+Jt)*8},j=function(gt,dt,Qt,Jt,xt,Pt,yt,Ut,pr,sr,ir){_(dt,ir++,Qt),++xt[256];for(var Yr=k(xt,15),Jr=Yr[0],In=Yr[1],Nn=k(Pt,15),zn=Nn[0],ei=Nn[1],Ai=B(Jr),Pi=Ai[0],$e=Ai[1],_e=B(zn),Be=_e[0],He=_e[1],Je=new E(19),Ye=0;Ye<Pi.length;++Ye)Je[Pi[Ye]&31]++;for(var Ye=0;Ye<Be.length;++Ye)Je[Be[Ye]&31]++;for(var et=k(Je,7),wt=et[0],ut=et[1],Ft=19;Ft>4&&!wt[f[Ft-1]];--Ft);var wr=sr+5<<3,hr=P(xt,h)+P(Pt,p)+yt,Nr=P(xt,Jr)+P(Pt,zn)+yt+14+3*Ft+P(Je,wt)+(2*Je[16]+3*Je[17]+7*Je[18]);if(wr<=hr&&wr<=Nr)return U(dt,ir,gt.subarray(pr,pr+sr));var Kt,un,ar,Gr;if(_(dt,ir,1+(Nr<hr)),ir+=2,Nr<hr){Kt=d(Jr,In,0),un=Jr,ar=d(zn,ei,0),Gr=zn;var Br=d(wt,ut,0);_(dt,ir,$e-257),_(dt,ir+5,He-1),_(dt,ir+10,Ft-4),ir+=14;for(var Ye=0;Ye<Ft;++Ye)_(dt,ir+3*Ye,wt[f[Ye]]);ir+=3*Ft;for(var gr=[Pi,Be],Sn=0;Sn<2;++Sn)for(var Pn=gr[Sn],Ye=0;Ye<Pn.length;++Ye){var ii=Pn[Ye]&31;_(dt,ir,Br[ii]),ir+=wt[ii],ii>15&&(_(dt,ir,Pn[Ye]>>>5&127),ir+=Pn[Ye]>>>12)}}else Kt=g,un=h,ar=A,Gr=p;for(var Ye=0;Ye<Ut;++Ye)if(Jt[Ye]>255){var ii=Jt[Ye]>>>18&31;M(dt,ir,Kt[ii+257]),ir+=un[ii+257],ii>7&&(_(dt,ir,Jt[Ye]>>>23&31),ir+=o[ii]);var oi=Jt[Ye]&31;M(dt,ir,ar[oi]),ir+=Gr[oi],oi>3&&(M(dt,ir,Jt[Ye]>>>5&8191),ir+=m[oi])}else M(dt,ir,Kt[Jt[Ye]]),ir+=un[Jt[Ye]];return M(dt,ir,Kt[256]),ir+un[256]},H=new I([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),W=new L(0),G=function(gt,dt,Qt,Jt,xt,Pt){var yt=gt.length,Ut=new L(Jt+yt+5*(1+Math.floor(yt/7e3))+xt),pr=Ut.subarray(Jt,Ut.length-xt),sr=0;if(!dt||yt<8)for(var ir=0;ir<=yt;ir+=65535){var Yr=ir+65535;Yr<yt?sr=U(pr,sr,gt.subarray(ir,Yr)):(pr[ir]=Pt,sr=U(pr,sr,gt.subarray(ir,yt)))}else{for(var Jr=H[dt-1],In=Jr>>>13,Nn=Jr&8191,zn=(1<<Qt)-1,ei=new E(32768),Ai=new E(zn+1),Pi=Math.ceil(Qt/3),$e=2*Pi,_e=function(qn){return(gt[qn]^gt[qn+1]<<Pi^gt[qn+2]<<$e)&zn},Be=new I(25e3),He=new E(288),Je=new E(32),Ye=0,et=0,ir=0,wt=0,ut=0,Ft=0;ir<yt;++ir){var wr=_e(ir),hr=ir&32767,Nr=Ai[wr];if(ei[hr]=Nr,Ai[wr]=hr,ut<=ir){var Kt=yt-ir;if((Ye>7e3||wt>24576)&&Kt>423){sr=j(gt,pr,0,Be,He,Je,et,wt,Ft,ir-Ft,sr),wt=Ye=et=0,Ft=ir;for(var un=0;un<286;++un)He[un]=0;for(var un=0;un<30;++un)Je[un]=0}var ar=2,Gr=0,Br=Nn,gr=hr-Nr&32767;if(Kt>2&&wr==_e(ir-gr))for(var Sn=Math.min(In,Kt)-1,Pn=Math.min(32767,ir),ii=Math.min(258,Kt);gr<=Pn&&--Br&&hr!=Nr;){if(gt[ir+ar]==gt[ir+ar-gr]){for(var oi=0;oi<ii&>[ir+oi]==gt[ir+oi-gr];++oi);if(oi>ar){if(ar=oi,Gr=gr,oi>Sn)break;for(var ti=Math.min(gr,oi-2),bi=0,un=0;un<ti;++un){var kn=ir-gr+un+32768&32767,Ii=ei[kn],gn=kn-Ii+32768&32767;gn>bi&&(bi=gn,Nr=kn)}}}hr=Nr,Nr=ei[hr],gr+=hr-Nr+32768&32767}if(Gr){Be[wt++]=268435456|a[ar]<<18|e[Gr];var Vr=a[ar]&31,xn=e[Gr]&31;et+=o[Vr]+m[xn],++He[257+Vr],++Je[xn],ut=ir+ar,++Ye}else Be[wt++]=gt[ir],++He[gt[ir]]}}sr=j(gt,pr,Pt,Be,He,Je,et,wt,Ft,ir-Ft,sr),Pt||(sr=U(pr,sr,W))}return C(Ut,0,Jt+T(sr)+xt)},V=function(){for(var jt=new I(256),gt=0;gt<256;++gt){for(var dt=gt,Qt=9;--Qt;)dt=(dt&1&&3988292384)^dt>>>1;jt[gt]=dt}return jt}(),Z=function(){var gt=4294967295;return{p:function(Qt){for(var Jt=gt,xt=0;xt<Qt.length;++xt)Jt=V[Jt&255^Qt[xt]]^Jt>>>8;gt=Jt},d:function(){return gt^4294967295}}},Y=function(){var gt=1,dt=0;return{p:function(Jt){for(var xt=gt,Pt=dt,yt=Jt.length,Ut=0;Ut!=yt;){for(var pr=Math.min(Ut+5552,yt);Ut<pr;++Ut)xt+=Jt[Ut],Pt+=xt;xt%=65521,Pt%=65521}gt=xt,dt=Pt},d:function(){return(gt>>>8<<16|(dt&255)<<8|dt>>>8)+((gt&255)<<23)*2}}},Q=function(gt,dt,Qt,Jt,xt){return G(gt,dt.level==null?6:dt.level,dt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(gt.length)))*1.5):12+dt.mem,Qt,Jt,!xt)},oe=function(gt,dt){var Qt={};for(var Jt in gt)Qt[Jt]=gt[Jt];for(var Jt in dt)Qt[Jt]=dt[Jt];return Qt},ue=function(gt,dt,Qt){for(var Jt=gt(),xt=gt.toString(),Pt=xt.slice(xt.indexOf("[")+1,xt.lastIndexOf("]")).replace(/ /g,"").split(","),yt=0;yt<Jt.length;++yt){var Ut=Jt[yt],pr=Pt[yt];if(typeof Ut=="function"){dt+=";"+pr+"=";var sr=Ut.toString();if(Ut.prototype)if(sr.indexOf("[native code]")!=-1){var ir=sr.indexOf(" ",8)+1;dt+=sr.slice(ir,sr.indexOf("(",ir))}else{dt+=sr;for(var Yr in Ut.prototype)dt+=";"+pr+".prototype."+Yr+"="+Ut.prototype[Yr].toString()}else dt+=sr}else Qt[pr]=Ut}return[dt,Qt]},Le=[],me=function(gt){var dt=[];for(var Qt in gt)(gt[Qt]instanceof L||gt[Qt]instanceof E||gt[Qt]instanceof I)&&dt.push((gt[Qt]=new gt[Qt].constructor(gt[Qt])).buffer);return dt},Ie=function(gt,dt,Qt,Jt){var xt;if(!Le[Qt]){for(var Pt="",yt={},Ut=gt.length-1,pr=0;pr<Ut;++pr)xt=ue(gt[pr],Pt,yt),Pt=xt[0],yt=xt[1];Le[Qt]=ue(gt[Ut],Pt,yt)}var sr=oe({},Le[Qt][1]);return N(Le[Qt][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+dt.toString()+"}",Qt,sr,me(sr),Jt)},X=function(){return[L,E,I,o,m,f,l,u,v,x,n,d,b,w,S,T,C,O,st,de,Ne]},q=function(){return[L,E,I,o,m,f,a,e,g,h,A,p,n,H,W,d,_,M,k,R,B,P,U,j,T,C,G,Q,Et,de]},We=function(){return[Ae,Oe,ee,Z,V]},$=function(){return[Ve,Ke]},J=function(){return[it,ee,Y]},le=function(){return[Fe]},de=function(gt){return postMessage(gt,[gt.buffer])},Ne=function(gt){return gt&>.size&&new L(gt.size)},we=function(gt,dt,Qt,Jt,xt,Pt){var yt=Ie(Qt,Jt,xt,function(Ut,pr){yt.terminate(),Pt(Ut,pr)});return dt.consume||(gt=new L(gt)),yt.postMessage([gt,dt],[gt.buffer]),function(){yt.terminate()}},De=function(gt){return gt.ondata=function(dt,Qt){return postMessage([dt,Qt],[dt.buffer])},function(dt){return gt.push(dt.data[0],dt.data[1])}},Ee=function(gt,dt,Qt,Jt,xt){var Pt,yt=Ie(gt,Jt,xt,function(Ut,pr){Ut?(yt.terminate(),dt.ondata.call(dt,Ut)):(pr[1]&&yt.terminate(),dt.ondata.call(dt,Ut,pr[0],pr[1]))});yt.postMessage(Qt),dt.push=function(Ut,pr){if(Pt)throw"stream finished";if(!dt.ondata)throw"no stream handler";yt.postMessage([Ut,Pt=pr],[Ut.buffer])},dt.terminate=function(){yt.terminate()}},ce=function(gt,dt){return gt[dt]|gt[dt+1]<<8},ne=function(gt,dt){return(gt[dt]|gt[dt+1]<<8|gt[dt+2]<<16)+(gt[dt+3]<<23)*2},ee=function(gt,dt,Qt){for(;Qt;++dt)gt[dt]=Qt,Qt>>>=8},Ae=function(gt,dt){var Qt=dt.filename;if(gt[0]=31,gt[1]=139,gt[2]=8,gt[8]=dt.level<2?4:dt.level==9?2:0,gt[9]=3,dt.mtime!=0&&ee(gt,4,Math.floor(new Date(dt.mtime||Date.now())/1e3)),Qt){gt[3]=8;for(var Jt=0;Jt<=Qt.length;++Jt)gt[Jt+10]=Qt.charCodeAt(Jt)}},Ve=function(gt){if(gt[0]!=31||gt[1]!=139||gt[2]!=8)throw"invalid gzip data";var dt=gt[3],Qt=10;dt&4&&(Qt+=gt[10]|(gt[11]<<8)+2);for(var Jt=(dt>>3&1)+(dt>>4&1);Jt>0;Jt-=!gt[Qt++]);return Qt+(dt&2)},Ke=function(gt){var dt=gt.length;return(gt[dt-4]|gt[dt-3]<<8|gt[dt-2]<<16)+2*(gt[dt-1]<<23)},Oe=function(gt){return 10+(gt.filename&>.filename.length+1||0)},it=function(gt,dt){var Qt=dt.level,Jt=Qt==0?0:Qt<6?1:Qt==9?3:2;gt[0]=120,gt[1]=Jt<<6|(Jt?32-2*Jt:1)},Fe=function(gt){if((gt[0]&15)!=8||gt[0]>>>4>7||(gt[0]<<8|gt[1])%31)throw"invalid zlib data";if(gt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function ft(jt,gt){return!gt&&typeof jt=="function"&&(gt=jt,jt={}),this.ondata=gt,jt}var At=function(){function jt(gt,dt){!dt&&typeof gt=="function"&&(dt=gt,gt={}),this.ondata=dt,this.o=gt||{}}return jt.prototype.p=function(gt,dt){this.ondata(Q(gt,this.o,0,0,!dt),dt)},jt.prototype.push=function(gt,dt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=dt,this.p(gt,dt||!1)},jt}(),bt=function(){function jt(gt,dt){Ee([q,function(){return[De,At]}],this,ft.call(this,gt,dt),function(Qt){var Jt=new At(Qt.data);onmessage=De(Jt)},6)}return jt}();function St(jt,gt,dt){if(dt||(dt=gt,gt={}),typeof dt!="function")throw"no callback";return we(jt,gt,[q],function(Qt){return de(Et(Qt.data[0],Qt.data[1]))},0,dt)}function Et(jt,gt){return gt===void 0&&(gt={}),Q(jt,gt,0,0)}var je=function(){function jt(gt){this.s={},this.p=new L(0),this.ondata=gt}return jt.prototype.e=function(gt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var dt=this.p.length,Qt=new L(dt+gt.length);Qt.set(this.p),Qt.set(gt,dt),this.p=Qt},jt.prototype.c=function(gt){this.d=this.s.i=gt||!1;var dt=this.s.b,Qt=O(this.p,this.o,this.s);this.ondata(C(Qt,dt,this.s.b),this.d),this.o=C(Qt,this.s.b-32768),this.s.b=this.o.length,this.p=C(this.p,this.s.p/8>>0),this.s.p&=7},jt.prototype.push=function(gt,dt){this.e(gt),this.c(dt)},jt}(),pe=function(){function jt(gt){this.ondata=gt,Ee([X,function(){return[De,je]}],this,0,function(){var dt=new je;onmessage=De(dt)},7)}return jt}();function ie(jt,gt,dt){if(dt||(dt=gt,gt={}),typeof dt!="function")throw"no callback";return we(jt,gt,[X],function(Qt){return de(st(Qt.data[0],Ne(Qt.data[1])))},1,dt)}function st(jt,gt){return O(jt,gt)}var Qe=function(){function jt(gt,dt){this.c=Z(),this.l=0,this.v=1,At.call(this,gt,dt)}return jt.prototype.push=function(gt,dt){At.prototype.push.call(this,gt,dt)},jt.prototype.p=function(gt,dt){this.c.p(gt),this.l+=gt.length;var Qt=Q(gt,this.o,this.v&&Oe(this.o),dt&&8,!dt);this.v&&(Ae(Qt,this.o),this.v=0),dt&&(ee(Qt,Qt.length-8,this.c.d()),ee(Qt,Qt.length-4,this.l)),this.ondata(Qt,dt)},jt}(),ve=function(){function jt(gt,dt){Ee([q,We,function(){return[De,At,Qe]}],this,ft.call(this,gt,dt),function(Qt){var Jt=new Qe(Qt.data);onmessage=De(Jt)},8)}return jt}();function Bt(jt,gt,dt){if(dt||(dt=gt,gt={}),typeof dt!="function")throw"no callback";return we(jt,gt,[q,We,function(){return[qt]}],function(Qt){return de(qt(Qt.data[0],Qt.data[1]))},2,dt)}function qt(jt,gt){gt===void 0&&(gt={});var dt=Z(),Qt=jt.length;dt.p(jt);var Jt=Q(jt,gt,Oe(gt),8),xt=Jt.length;return Ae(Jt,gt),ee(Jt,xt-8,dt.d()),ee(Jt,xt-4,Qt),Jt}var ct=function(){function jt(gt){this.v=1,je.call(this,gt)}return jt.prototype.push=function(gt,dt){if(je.prototype.e.call(this,gt),this.v){var Qt=Ve(this.p);if(Qt>=this.p.length&&!dt)return;this.p=this.p.subarray(Qt),this.v=0}if(dt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}je.prototype.c.call(this,dt)},jt}(),Wt=function(){function jt(gt){this.ondata=gt,Ee([X,$,function(){return[De,je,ct]}],this,0,function(){var dt=new ct;onmessage=De(dt)},9)}return jt}();function or(jt,gt,dt){if(dt||(dt=gt,gt={}),typeof dt!="function")throw"no callback";return we(jt,gt,[X,$,function(){return[Fr]}],function(Qt){return de(Fr(Qt.data[0]))},3,dt)}function Fr(jt,gt){return O(jt.subarray(Ve(jt),-8),gt||new L(Ke(jt)))}var er=function(){function jt(gt,dt){this.c=Y(),this.v=1,At.call(this,gt,dt)}return jt.prototype.push=function(gt,dt){At.prototype.push.call(this,gt,dt)},jt.prototype.p=function(gt,dt){this.c.p(gt);var Qt=Q(gt,this.o,this.v&&2,dt&&4,!dt);this.v&&(it(Qt,this.o),this.v=0),dt&&ee(Qt,Qt.length-4,this.c.d()),this.ondata(Qt,dt)},jt}(),nr=function(){function jt(gt,dt){Ee([q,J,function(){return[De,At,er]}],this,ft.call(this,gt,dt),function(Qt){var Jt=new er(Qt.data);onmessage=De(Jt)},10)}return jt}();function Ot(jt,gt,dt){if(dt||(dt=gt,gt={}),typeof dt!="function")throw"no callback";return we(jt,gt,[q,J,function(){return[lt]}],function(Qt){return de(lt(Qt.data[0],Qt.data[1]))},4,dt)}function lt(jt,gt){gt===void 0&&(gt={});var dt=Y();dt.p(jt);var Qt=Q(jt,gt,2,4);return it(Qt,gt),ee(Qt,Qt.length-4,dt.d()),Qt}var qe=function(){function jt(gt){this.v=1,je.call(this,gt)}return jt.prototype.push=function(gt,dt){if(je.prototype.e.call(this,gt),this.v){if(this.p.length<2&&!dt)return;this.p=this.p.subarray(2),this.v=0}if(dt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}je.prototype.c.call(this,dt)},jt}(),tr=function(){function jt(gt){this.ondata=gt,Ee([X,le,function(){return[De,je,qe]}],this,0,function(){var dt=new qe;onmessage=De(dt)},11)}return jt}();function xr(jt,gt,dt){if(dt||(dt=gt,gt={}),typeof dt!="function")throw"no callback";return we(jt,gt,[X,le,function(){return[Ar]}],function(Qt){return de(Ar(Qt.data[0],Ne(Qt.data[1])))},5,dt)}function Ar(jt,gt){return O((Fe(jt),jt.subarray(2,-4)),gt)}var fr=function(){function jt(gt){this.G=ct,this.I=je,this.Z=qe,this.ondata=gt}return jt.prototype.push=function(gt,dt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(gt,dt);else{if(this.p&&this.p.length){var Qt=new L(this.p.length+gt.length);Qt.set(this.p),Qt.set(gt,this.p.length)}else this.p=gt;if(this.p.length>2){var Jt=this,xt=function(){Jt.ondata.apply(Jt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(xt):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(xt):new this.Z(xt),this.s.push(this.p,dt),this.p=null}}},jt}(),vn=function(){function jt(gt){this.G=Wt,this.I=pe,this.Z=tr,this.ondata=gt}return jt.prototype.push=function(gt,dt){fr.prototype.push.call(this,gt,dt)},jt}();function $r(jt,gt,dt){if(dt||(dt=gt,gt={}),typeof dt!="function")throw"no callback";return jt[0]==31&&jt[1]==139&&jt[2]==8?or(jt,gt,dt):(jt[0]&15)!=8||jt[0]>>4>7||(jt[0]<<8|jt[1])%31?ie(jt,gt,dt):xr(jt,gt,dt)}function Ln(jt,gt){return jt[0]==31&&jt[1]==139&&jt[2]==8?Fr(jt,gt):(jt[0]&15)!=8||jt[0]>>4>7||(jt[0]<<8|jt[1])%31?st(jt,gt):Ar(jt,gt)}var tt=function jt(gt,dt,Qt,Jt){for(var xt in gt){var Pt=gt[xt],yt=dt+xt;Pt instanceof L?Qt[yt]=[Pt,Jt]:Array.isArray(Pt)?Qt[yt]=[Pt[0],oe(Jt,Pt[1])]:jt(Pt,yt+"/",Qt,Jt)}};function nt(jt,gt){var dt=jt.length;if(!gt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(jt);for(var Qt=new L(jt.length+(jt.length>>>1)),Jt=0,xt=function(sr){Qt[Jt++]=sr},Pt=0;Pt<dt;++Pt){if(Jt+5>Qt.length){var yt=new L(Jt+8+(dt-Pt<<1));yt.set(Qt),Qt=yt}var Ut=jt.charCodeAt(Pt);Ut<128||gt?xt(Ut):Ut<2048?(xt(192|Ut>>>6),xt(128|Ut&63)):Ut>55295&&Ut<57344?(Ut=65536+(Ut&1023<<10)|jt.charCodeAt(++Pt)&1023,xt(240|Ut>>>18),xt(128|Ut>>>12&63),xt(128|Ut>>>6&63),xt(128|Ut&63)):(xt(224|Ut>>>12),xt(128|Ut>>>6&63),xt(128|Ut&63))}return C(Qt,0,Jt)}function Te(jt,gt){var dt="";if(!gt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(jt);for(var Qt=0;Qt<jt.length;){var Jt=jt[Qt++];Jt<128||gt?dt+=String.fromCharCode(Jt):Jt<224?dt+=String.fromCharCode((Jt&31)<<6|jt[Qt++]&63):Jt<240?dt+=String.fromCharCode((Jt&15)<<12|(jt[Qt++]&63)<<6|jt[Qt++]&63):(Jt=((Jt&15)<<18|(jt[Qt++]&63)<<12|(jt[Qt++]&63)<<6|jt[Qt++]&63)-65536,dt+=String.fromCharCode(55296|Jt>>10,56320|Jt&1023))}return dt}var Me=function(gt,dt){return dt+30+ce(gt,dt+26)+ce(gt,dt+28)},Xe=function(gt,dt,Qt){var Jt=ce(gt,dt+28),xt=Te(gt.subarray(dt+46,dt+46+Jt),!(ce(gt,dt+8)&2048)),Pt=dt+46+Jt,yt=Qt?at(gt,Pt):[ne(gt,dt+20),ne(gt,dt+24),ne(gt,dt+42)],Ut=yt[0],pr=yt[1],sr=yt[2];return[ce(gt,dt+10),Ut,pr,xt,Pt+ce(gt,dt+30)+ce(gt,dt+32),sr]},at=function(gt,dt){for(;ce(gt,dt)!=1;dt+=4+ce(gt,dt+2));return[ne(gt,dt+12),ne(gt,dt+4),ne(gt,dt+20)]},zt=function(gt,dt,Qt,Jt,xt,Pt,yt,Ut,pr,sr){var ir=Pt.length,Yr=Jt.length;ee(gt,dt,pr!=null?33639248:67324752),dt+=4,pr!=null&&(gt[dt]=20,dt+=2),gt[dt]=20,dt+=2,gt[dt++]=sr==8&&(Ut.level==1?6:Ut.level<6?4:Ut.level==9?2:0),gt[dt++]=yt&&8,gt[dt]=sr,dt+=2;var Jr=new Date(Ut.mtime||Date.now()),In=Jr.getFullYear()-1980;if(In<0||In>119)throw"date not in range 1980-2099";ee(gt,dt,(In<<24)*2|Jr.getMonth()+1<<21|Jr.getDate()<<16|Jr.getHours()<<11|Jr.getMinutes()<<5|Jr.getSeconds()>>>1),dt+=4,ee(gt,dt,Qt),ee(gt,dt+4,Yr),ee(gt,dt+8,xt),ee(gt,dt+12,ir),dt+=16,pr!=null&&(ee(gt,dt+=10,pr),dt+=4),gt.set(Pt,dt),dt+=ir,pr==null&>.set(Jt,dt)},kt=function(gt,dt,Qt,Jt,xt){ee(gt,dt,101010256),ee(gt,dt+8,Qt),ee(gt,dt+10,Qt),ee(gt,dt+12,Jt),ee(gt,dt+16,xt)};function Xt(jt,gt,dt){if(dt||(dt=gt,gt={}),typeof dt!="function")throw"no callback";var Qt={};tt(jt,"",Qt,gt);var Jt=Object.keys(Qt),xt=Jt.length,Pt=0,yt=0,Ut=xt,pr=new Array(xt),sr=[],ir=function(){for(var zn=0;zn<sr.length;++zn)sr[zn]()},Yr=function(){var zn=new L(yt+22),ei=Pt,Ai=yt-Pt;yt=0;for(var Pi=0;Pi<Ut;++Pi){var $e=pr[Pi];try{zt(zn,yt,$e.c,$e.d,$e.m,$e.n,$e.u,$e.p,null,$e.t),zt(zn,Pt,$e.c,$e.d,$e.m,$e.n,$e.u,$e.p,yt,$e.t),Pt+=46+$e.n.length,yt+=30+$e.n.length+$e.d.length}catch(_e){return dt(_e,null)}}kt(zn,Pt,pr.length,Ai,ei),dt(null,zn)};xt||Yr();for(var Jr=function(zn){var ei=Jt[zn],Ai=Qt[ei],Pi=Ai[0],$e=Ai[1],_e=Z(),Be=Pi.length;_e.p(Pi);var He=nt(ei),Je=He.length,Ye=$e.level==0?0:8,et=function(ut,Ft){if(ut)ir(),dt(ut,null);else{var wr=Ft.length;pr[zn]={t:Ye,d:Ft,m:Be,c:_e.d(),u:ei.length!=wr,n:He,p:$e},Pt+=30+Je+wr,yt+=76+2*Je+wr,--xt||Yr()}};if(He.length>65535&&et("filename too long",null),!Ye)et(null,Pi);else if(Be<16e4)try{et(null,Et(Pi,$e))}catch(wt){et(wt,null)}else sr.push(St(Pi,$e,et))},In=0;In<Ut;++In)Jr(In);return ir}function Dr(jt,gt){gt===void 0&&(gt={});var dt={},Qt=[];tt(jt,"",dt,gt);var Jt=0,xt=0;for(var Pt in dt){var yt=dt[Pt],Ut=yt[0],pr=yt[1],sr=pr.level==0?0:8,ir=nt(Pt),Yr=ir.length;if(ir.length>65535)throw"filename too long";var Jr=sr?Et(Ut,pr):Ut,In=Jr.length,Nn=Z();Nn.p(Ut),Qt.push({t:sr,d:Jr,m:Ut.length,c:Nn.d(),u:Pt.length!=Yr,n:ir,o:Jt,p:pr}),Jt+=30+Yr+In,xt+=76+2*Yr+In}for(var zn=new L(xt+22),ei=Jt,Ai=xt-Jt,Pi=0;Pi<Qt.length;++Pi){var $e=Qt[Pi];zt(zn,$e.o,$e.c,$e.d,$e.m,$e.n,$e.u,$e.p,null,$e.t),zt(zn,Jt,$e.c,$e.d,$e.m,$e.n,$e.u,$e.p,$e.o,$e.t),Jt+=46+$e.n.length}return kt(zn,Jt,Qt.length,Ai,ei),zn}function Pr(jt,gt){if(typeof gt!="function")throw"no callback";for(var dt=[],Qt=function(){for(var Jr=0;Jr<dt.length;++Jr)dt[Jr]()},Jt={},xt=jt.length-22;ne(jt,xt)!=101010256;--xt)if(!xt||jt.length-xt>65558){gt("invalid zip file",null);return}var Pt=ce(jt,xt+8);Pt||gt(null,{});var yt=Pt,Ut=ne(jt,xt+16),pr=Ut==4294967295;if(pr){if(xt=ne(jt,xt-12),ne(jt,xt)!=101075792)throw"invalid zip file";yt=Pt=ne(jt,xt+32),Ut=ne(jt,xt+48)}for(var sr=function(Jr){var In=Xe(jt,Ut,pr),Nn=In[0],zn=In[1],ei=In[2],Ai=In[3],Pi=In[4],$e=In[5],_e=Me(jt,$e);Ut=Pi;var Be=function(Ye,et){Ye?(Qt(),gt(Ye,null)):(Jt[Ai]=et,--Pt||gt(null,Jt))};if(!Nn)Be(null,C(jt,_e,_e+zn));else if(Nn==8){var He=jt.subarray(_e,_e+zn);if(zn<32e4)try{Be(null,st(He,new L(ei)))}catch(Je){Be(Je,null)}else dt.push(ie(He,{size:ei},Be))}else Be("unknown compression type "+Nn,null)},ir=0;ir<yt;++ir)sr(ir);return Qt}function cn(jt){for(var gt={},dt=jt.length-22;ne(jt,dt)!=101010256;--dt)if(!dt||jt.length-dt>65558)throw"invalid zip file";var Qt=ce(jt,dt+8);if(!Qt)return{};var Jt=ne(jt,dt+16),xt=Jt==4294967295;if(xt){if(dt=ne(jt,dt-12),ne(jt,dt)!=101075792)throw"invalid zip file";Qt=ne(jt,dt+32),Jt=ne(jt,dt+48)}for(var Pt=0;Pt<Qt;++Pt){var yt=Xe(jt,Jt,xt),Ut=yt[0],pr=yt[1],sr=yt[2],ir=yt[3],Yr=yt[4],Jr=yt[5],In=Me(jt,Jr);if(Jt=Yr,!Ut)gt[ir]=C(jt,In,In+pr);else if(Ut==8)gt[ir]=st(jt.subarray(In,In+pr),new L(sr));else throw"unknown compression type "+Ut}return gt}},cv67:function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){return function(N){var L=D,E=L.lib,I=E.WordArray,o=E.Hasher,m=L.algo,f=[];(function(){for(var u=0;u<64;u++)f[u]=N.abs(N.sin(u+1))*4294967296|0})();var s=m.MD5=o.extend({_doReset:function(){this._hash=new I.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var i=0;i<16;i++){var c=n+i,d=e[c];e[c]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}var h=this._hash.words,p=e[n+0],g=e[n+1],v=e[n+2],A=e[n+3],x=e[n+4],b=e[n+5],w=e[n+6],S=e[n+7],T=e[n+8],C=e[n+9],O=e[n+10],_=e[n+11],M=e[n+12],k=e[n+13],R=e[n+14],B=e[n+15],P=h[0],U=h[1],j=h[2],H=h[3];P=t(P,U,j,H,p,7,f[0]),H=t(H,P,U,j,g,12,f[1]),j=t(j,H,P,U,v,17,f[2]),U=t(U,j,H,P,A,22,f[3]),P=t(P,U,j,H,x,7,f[4]),H=t(H,P,U,j,b,12,f[5]),j=t(j,H,P,U,w,17,f[6]),U=t(U,j,H,P,S,22,f[7]),P=t(P,U,j,H,T,7,f[8]),H=t(H,P,U,j,C,12,f[9]),j=t(j,H,P,U,O,17,f[10]),U=t(U,j,H,P,_,22,f[11]),P=t(P,U,j,H,M,7,f[12]),H=t(H,P,U,j,k,12,f[13]),j=t(j,H,P,U,R,17,f[14]),U=t(U,j,H,P,B,22,f[15]),P=l(P,U,j,H,g,5,f[16]),H=l(H,P,U,j,w,9,f[17]),j=l(j,H,P,U,_,14,f[18]),U=l(U,j,H,P,p,20,f[19]),P=l(P,U,j,H,b,5,f[20]),H=l(H,P,U,j,O,9,f[21]),j=l(j,H,P,U,B,14,f[22]),U=l(U,j,H,P,x,20,f[23]),P=l(P,U,j,H,C,5,f[24]),H=l(H,P,U,j,R,9,f[25]),j=l(j,H,P,U,A,14,f[26]),U=l(U,j,H,P,T,20,f[27]),P=l(P,U,j,H,k,5,f[28]),H=l(H,P,U,j,v,9,f[29]),j=l(j,H,P,U,S,14,f[30]),U=l(U,j,H,P,M,20,f[31]),P=a(P,U,j,H,b,4,f[32]),H=a(H,P,U,j,T,11,f[33]),j=a(j,H,P,U,_,16,f[34]),U=a(U,j,H,P,R,23,f[35]),P=a(P,U,j,H,g,4,f[36]),H=a(H,P,U,j,x,11,f[37]),j=a(j,H,P,U,S,16,f[38]),U=a(U,j,H,P,O,23,f[39]),P=a(P,U,j,H,k,4,f[40]),H=a(H,P,U,j,p,11,f[41]),j=a(j,H,P,U,A,16,f[42]),U=a(U,j,H,P,w,23,f[43]),P=a(P,U,j,H,C,4,f[44]),H=a(H,P,U,j,M,11,f[45]),j=a(j,H,P,U,B,16,f[46]),U=a(U,j,H,P,v,23,f[47]),P=r(P,U,j,H,p,6,f[48]),H=r(H,P,U,j,S,10,f[49]),j=r(j,H,P,U,R,15,f[50]),U=r(U,j,H,P,b,21,f[51]),P=r(P,U,j,H,M,6,f[52]),H=r(H,P,U,j,A,10,f[53]),j=r(j,H,P,U,O,15,f[54]),U=r(U,j,H,P,g,21,f[55]),P=r(P,U,j,H,T,6,f[56]),H=r(H,P,U,j,B,10,f[57]),j=r(j,H,P,U,w,15,f[58]),U=r(U,j,H,P,k,21,f[59]),P=r(P,U,j,H,x,6,f[60]),H=r(H,P,U,j,_,10,f[61]),j=r(j,H,P,U,v,15,f[62]),U=r(U,j,H,P,C,21,f[63]),h[0]=h[0]+P|0,h[1]=h[1]+U|0,h[2]=h[2]+j|0,h[3]=h[3]+H|0},_doFinalize:function(){var e=this._data,n=e.words,i=this._nDataBytes*8,c=e.sigBytes*8;n[c>>>5]|=128<<24-c%32;var d=N.floor(i/4294967296),h=i;n[(c+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,n[(c+64>>>9<<4)+14]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,e.sigBytes=(n.length+1)*4,this._process();for(var p=this._hash,g=p.words,v=0;v<4;v++){var A=g[v];g[v]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return p},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function t(u,e,n,i,c,d,h){var p=u+(e&n|~e&i)+c+h;return(p<<d|p>>>32-d)+e}function l(u,e,n,i,c,d,h){var p=u+(e&i|n&~i)+c+h;return(p<<d|p>>>32-d)+e}function a(u,e,n,i,c,d,h){var p=u+(e^n^i)+c+h;return(p<<d|p>>>32-d)+e}function r(u,e,n,i,c,d,h){var p=u+(n^(e|~i))+c+h;return(p<<d|p>>>32-d)+e}L.MD5=o._createHelper(s),L.HmacMD5=o._createHmacHelper(s)}(Math),D.MD5})},czTT:function(fe,z,y){},d4KN:function(fe,z,y){var D=y("ProS"),N=y("bYtY");function L(E,I){N.each(I,function(o){o.update="updateView",D.registerAction(o,function(m,f){var s={};return f.eachComponent({mainType:"series",subType:E,query:m},function(t){t[o.method]&&t[o.method](m.name,m.dataIndex);var l=t.getData();l.each(function(a){var r=l.getName(a);s[r]=t.isSelected(r)||!1})}),{name:m.name,selected:s,seriesId:m.seriesId}})})}fe.exports=L},dBmv:function(fe,z,y){var D=y("ProS"),N=y("szbU");y("vF/C"),y("qwVE"),y("MHoB"),y("PNag"),y("1u/T"),D.registerPreprocessor(N)},"dF/Y":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="DownloadOutlined";var m=z.a=N.forwardRef(o)},dMvE:function(fe,z){var y={linear:function(L){return L},quadraticIn:function(L){return L*L},quadraticOut:function(L){return L*(2-L)},quadraticInOut:function(L){return(L*=2)<1?.5*L*L:-.5*(--L*(L-2)-1)},cubicIn:function(L){return L*L*L},cubicOut:function(L){return--L*L*L+1},cubicInOut:function(L){return(L*=2)<1?.5*L*L*L:.5*((L-=2)*L*L+2)},quarticIn:function(L){return L*L*L*L},quarticOut:function(L){return 1- --L*L*L*L},quarticInOut:function(L){return(L*=2)<1?.5*L*L*L*L:-.5*((L-=2)*L*L*L-2)},quinticIn:function(L){return L*L*L*L*L},quinticOut:function(L){return--L*L*L*L*L+1},quinticInOut:function(L){return(L*=2)<1?.5*L*L*L*L*L:.5*((L-=2)*L*L*L*L+2)},sinusoidalIn:function(L){return 1-Math.cos(L*Math.PI/2)},sinusoidalOut:function(L){return Math.sin(L*Math.PI/2)},sinusoidalInOut:function(L){return .5*(1-Math.cos(Math.PI*L))},exponentialIn:function(L){return L===0?0:Math.pow(1024,L-1)},exponentialOut:function(L){return L===1?1:1-Math.pow(2,-10*L)},exponentialInOut:function(L){return L===0?0:L===1?1:(L*=2)<1?.5*Math.pow(1024,L-1):.5*(-Math.pow(2,-10*(L-1))+2)},circularIn:function(L){return 1-Math.sqrt(1-L*L)},circularOut:function(L){return Math.sqrt(1- --L*L)},circularInOut:function(L){return(L*=2)<1?-.5*(Math.sqrt(1-L*L)-1):.5*(Math.sqrt(1-(L-=2)*L)+1)},elasticIn:function(L){var E,I=.1,o=.4;return L===0?0:L===1?1:(!I||I<1?(I=1,E=o/4):E=o*Math.asin(1/I)/(2*Math.PI),-(I*Math.pow(2,10*(L-=1))*Math.sin((L-E)*(2*Math.PI)/o)))},elasticOut:function(L){var E,I=.1,o=.4;return L===0?0:L===1?1:(!I||I<1?(I=1,E=o/4):E=o*Math.asin(1/I)/(2*Math.PI),I*Math.pow(2,-10*L)*Math.sin((L-E)*(2*Math.PI)/o)+1)},elasticInOut:function(L){var E,I=.1,o=.4;return L===0?0:L===1?1:(!I||I<1?(I=1,E=o/4):E=o*Math.asin(1/I)/(2*Math.PI),(L*=2)<1?-.5*(I*Math.pow(2,10*(L-=1))*Math.sin((L-E)*(2*Math.PI)/o)):I*Math.pow(2,-10*(L-=1))*Math.sin((L-E)*(2*Math.PI)/o)*.5+1)},backIn:function(L){var E=1.70158;return L*L*((E+1)*L-E)},backOut:function(L){var E=1.70158;return--L*L*((E+1)*L+E)+1},backInOut:function(L){var E=1.70158*1.525;return(L*=2)<1?.5*(L*L*((E+1)*L-E)):.5*((L-=2)*L*((E+1)*L+E)+2)},bounceIn:function(L){return 1-y.bounceOut(1-L)},bounceOut:function(L){return L<1/2.75?7.5625*L*L:L<2/2.75?7.5625*(L-=1.5/2.75)*L+.75:L<2.5/2.75?7.5625*(L-=2.25/2.75)*L+.9375:7.5625*(L-=2.625/2.75)*L+.984375},bounceInOut:function(L){return L<.5?y.bounceIn(L*2)*.5:y.bounceOut(L*2-1)*.5+.5}},D=y;fe.exports=D},dQei:function(fe,z){for(var y={glog:function(L){if(L<1)throw new Error("glog("+L+")");return y.LOG_TABLE[L]},gexp:function(L){for(;L<0;)L+=255;for(;L>=256;)L-=255;return y.EXP_TABLE[L]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},D=0;D<8;D++)y.EXP_TABLE[D]=1<<D;for(var D=8;D<256;D++)y.EXP_TABLE[D]=y.EXP_TABLE[D-4]^y.EXP_TABLE[D-5]^y.EXP_TABLE[D-6]^y.EXP_TABLE[D-8];for(var D=0;D<255;D++)y.LOG_TABLE[y.EXP_TABLE[D]]=D;fe.exports=y},dWSS:function(fe,z,y){var D=y("dQei");function N(L,E){if(L.length==null)throw new Error(L.length+"/"+E);for(var I=0;I<L.length&&L[I]==0;)I++;this.num=new Array(L.length-I+E);for(var o=0;o<L.length-I;o++)this.num[o]=L[o+I]}N.prototype={get:function(E){return this.num[E]},getLength:function(){return this.num.length},multiply:function(E){for(var I=new Array(this.getLength()+E.getLength()-1),o=0;o<this.getLength();o++)for(var m=0;m<E.getLength();m++)I[o+m]^=D.gexp(D.glog(this.get(o))+D.glog(E.get(m)));return new N(I,0)},mod:function(E){if(this.getLength()-E.getLength()<0)return this;for(var I=D.glog(this.get(0))-D.glog(E.get(0)),o=new Array(this.getLength()),m=0;m<this.getLength();m++)o[m]=this.get(m);for(var m=0;m<E.getLength();m++)o[m]^=D.gexp(D.glog(E.get(m))+I);return new N(o,0).mod(E)}},fe.exports=N},diRs:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("q1tI"),E=y.n(L),I=y("3S7+"),o=y("H84U"),m=y("bogI"),f=function(t,l){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&l.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(t);u<r.length;u++)l.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(t,r[u])&&(a[r[u]]=t[r[u]]);return a},s=L.forwardRef(function(t,l){var a=t.prefixCls,r=t.title,u=t.content,e=f(t,["prefixCls","title","content"]),n=L.useContext(o.b),i=n.getPrefixCls,c=function(p){return L.createElement(L.Fragment,null,r&&L.createElement("div",{className:"".concat(p,"-title")},Object(m.a)(r)),L.createElement("div",{className:"".concat(p,"-inner-content")},Object(m.a)(u)))},d=i("popover",a);return L.createElement(I.a,N()({},e,{prefixCls:d,ref:l,overlay:c(d)}))});s.displayName="Popover",s.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},z.a=s},digP:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={icon:function(L,E){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:E}},{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:L}}]}},name:"file",theme:"twotone"};z.default=D},dmGj:function(fe,z,y){var D=y("DEFe"),N=y("ProS"),L=N.extendComponentView({type:"geo",init:function(E,I){var o=new D(I,!0);this._mapDraw=o,this.group.add(o.group)},render:function(E,I,o,m){if(m&&m.type==="geoToggleSelect"&&m.from===this.uid)return;var f=this._mapDraw;E.get("show")?f.draw(E,I,o,this,m):this._mapDraw.group.removeAll(),this.group.silent=E.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});fe.exports=L},dnwI:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("YH21"),E=y("Kagy"),I=y("IUWy"),o=E.toolbox.dataView,m=new Array(60).join("-"),f=" ";function s(g){var v={},A=[],x=[];return g.eachRawSeries(function(b){var w=b.coordinateSystem;if(w&&(w.type==="cartesian2d"||w.type==="polar")){var S=w.getBaseAxis();if(S.type==="category"){var T=S.dim+"_"+S.index;v[T]||(v[T]={categoryAxis:S,valueAxis:w.getOtherAxis(S),series:[]},x.push({axisDim:S.dim,axisIndex:S.index})),v[T].series.push(b)}else A.push(b)}else A.push(b)}),{seriesGroupByCategoryAxis:v,other:A,meta:x}}function t(g){var v=[];return N.each(g,function(A,x){var b=A.categoryAxis,w=A.valueAxis,S=w.dim,T=[" "].concat(N.map(A.series,function(R){return R.name})),C=[b.model.getCategories()];N.each(A.series,function(R){C.push(R.getRawData().mapArray(S,function(B){return B}))});for(var O=[T.join(f)],_=0;_<C[0].length;_++){for(var M=[],k=0;k<C.length;k++)M.push(C[k][_]);O.push(M.join(f))}v.push(O.join(`
|
|
|
`))}),v.join(`
|
|
|
|
|
|
`+m+`
|
|
|
|
|
|
`)}function l(g){return N.map(g,function(v){var A=v.getRawData(),x=[v.name],b=[];return A.each(A.dimensions,function(){for(var w=arguments.length,S=arguments[w-1],T=A.getName(S),C=0;C<w-1;C++)b[C]=arguments[C];x.push((T?T+f:"")+b.join(f))}),x.join(`
|
|
|
`)}).join(`
|
|
|
|
|
|
`+m+`
|
|
|
|
|
|
`)}function a(g){var v=s(g);return{value:N.filter([t(v.seriesGroupByCategoryAxis),l(v.other)],function(A){return A.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
|
|
`+m+`
|
|
|
|
|
|
`),meta:v.meta}}function r(g){return g.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function u(g){var v=g.slice(0,g.indexOf(`
|
|
|
`));if(v.indexOf(f)>=0)return!0}var e=new RegExp("["+f+"]+","g");function n(g){for(var v=g.split(/\n+/g),A=r(v.shift()).split(e),x=[],b=N.map(A,function(C){return{name:C,data:[]}}),w=0;w<v.length;w++){var S=r(v[w]).split(e);x.push(S.shift());for(var T=0;T<S.length;T++)b[T]&&(b[T].data[w]=S[T])}return{series:b,categories:x}}function i(g){for(var v=g.split(/\n+/g),A=r(v.shift()),x=[],b=0;b<v.length;b++){var w=r(v[b]).split(e),S="",T,C=!1;isNaN(w[0])?(C=!0,S=w[0],w=w.slice(1),x[b]={name:S,value:[]},T=x[b].value):T=x[b]=[];for(var O=0;O<w.length;O++)T.push(+w[O]);T.length===1&&(C?x[b].value=T[0]:x[b]=T[0])}return{name:A,data:x}}function c(g,v){var A=g.split(new RegExp(`
|
|
|
*`+m+`
|
|
|
*`,"g")),x={series:[]};return N.each(A,function(b,w){if(u(b)){var S=n(b),T=v[w],C=T.axisDim+"Axis";T&&(x[C]=x[C]||[],x[C][T.axisIndex]={data:S.categories},x.series=x.series.concat(S.series))}else{var S=i(b);x.series.push(S)}}),x}function d(g){this._dom=null,this.model=g}d.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:N.clone(o.title),lang:N.clone(o.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},d.prototype.onclick=function(g,v){var A=v.getDom(),x=this.model;this._dom&&A.removeChild(this._dom);var b=document.createElement("div");b.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",b.style.backgroundColor=x.get("backgroundColor")||"#fff";var w=document.createElement("h4"),S=x.get("lang")||[];w.innerHTML=S[0]||x.get("title"),w.style.cssText="margin: 10px 20px;",w.style.color=x.get("textColor");var T=document.createElement("div"),C=document.createElement("textarea");T.style.cssText="display:block;width:100%;overflow:auto;";var O=x.get("optionToContent"),_=x.get("contentToOption"),M=a(g);if(typeof O=="function"){var k=O(v.getOption());typeof k=="string"?T.innerHTML=k:N.isDom(k)&&T.appendChild(k)}else T.appendChild(C),C.readOnly=x.get("readOnly"),C.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",C.style.color=x.get("textColor"),C.style.borderColor=x.get("textareaBorderColor"),C.style.backgroundColor=x.get("textareaColor"),C.value=M.value;var R=M.meta,B=document.createElement("div");B.style.cssText="position:absolute;bottom:0;left:0;right:0;";var P="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",U=document.createElement("div"),j=document.createElement("div");P+=";background-color:"+x.get("buttonColor"),P+=";color:"+x.get("buttonTextColor");var H=this;function W(){A.removeChild(b),H._dom=null}L.addEventListener(U,"click",W),L.addEventListener(j,"click",function(){var G;try{typeof _=="function"?G=_(T,v.getOption()):G=c(C.value,R)}catch(V){throw W(),new Error("Data view format error "+V)}G&&v.dispatchAction({type:"changeDataView",newOption:G}),W()}),U.innerHTML=S[1],j.innerHTML=S[2],j.style.cssText=P,U.style.cssText=P,!x.get("readOnly")&&B.appendChild(j),B.appendChild(U),b.appendChild(w),b.appendChild(T),b.appendChild(B),T.style.height=A.clientHeight-80+"px",A.appendChild(b),this._dom=b},d.prototype.remove=function(g,v){this._dom&&v.getDom().removeChild(this._dom)},d.prototype.dispose=function(g,v){this.remove(g,v)};function h(g,v){return N.map(g,function(A,x){var b=v&&v[x];return N.isObject(b)&&!N.isArray(b)?(N.isObject(A)&&!N.isArray(A)&&(A=A.value),N.defaults({value:A},b)):A})}I.register("dataView",d),D.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(g,v){var A=[];N.each(g.newOption.series,function(x){var b=v.getSeriesByName(x.name)[0];if(!b)A.push(N.extend({type:"scatter"},x));else{var w=b.get("data");A.push({name:x.name,data:h(x.data,w)})}}),v.mergeOption(N.defaults({series:A},g.newOption))});var p=d;fe.exports=p},dqUG:function(fe,z,y){var D=y("Gev7"),N=y("bYtY"),L=y("6GrX"),E=y("pzxd"),I=y("gut8"),o=I.ContextCachedBy,m=function(t){D.call(this,t)};m.prototype={constructor:m,type:"text",brush:function(t,l){var a=this.style;this.__dirty&&E.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var r=a.text;if(r!=null&&(r+=""),!E.needDrawText(r,a)){t.__attrCachedBy=o.NONE;return}this.setTransform(t),E.renderText(this,t,r,a,null,l),this.restoreTransform(t)},getBoundingRect:function(){var t=this.style;if(this.__dirty&&E.normalizeTextStyle(t,!0),!this._rect){var l=t.text;l!=null?l+="":l="";var a=L.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(a.x+=t.x||0,a.y+=t.y||0,E.getStroke(t.textStroke,t.textStrokeWidth)){var r=t.textStrokeWidth;a.x-=r/2,a.y-=r/2,a.width+=r,a.height+=r}this._rect=a}return this._rect}},N.inherits(m,D);var f=m;fe.exports=f},dt0z:function(fe,z,y){var D=y("zoYe");function N(L){return L==null?"":D(L)}fe.exports=N},dtIV:function(fe,z,y){"use strict";y.r(z),function(D){y.d(z,"AcroForm",function(){return Qe}),y.d(z,"AcroFormAppearance",function(){return ie}),y.d(z,"AcroFormButton",function(){return ft}),y.d(z,"AcroFormCheckBox",function(){return Et}),y.d(z,"AcroFormChoiceField",function(){return Ke}),y.d(z,"AcroFormComboBox",function(){return it}),y.d(z,"AcroFormEditBox",function(){return Fe}),y.d(z,"AcroFormListBox",function(){return Oe}),y.d(z,"AcroFormPasswordField",function(){return pe}),y.d(z,"AcroFormPushButton",function(){return At}),y.d(z,"AcroFormRadioButton",function(){return bt}),y.d(z,"AcroFormTextField",function(){return je}),y.d(z,"GState",function(){return k}),y.d(z,"ShadingPattern",function(){return B}),y.d(z,"TilingPattern",function(){return P}),y.d(z,"jsPDF",function(){return U});var N=y("cDf5"),L=y.n(N),E=y("crp1");/** @license
|
|
|
*
|
|
|
* jsPDF - PDF Document creation from JavaScript
|
|
|
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
|
|
|
* 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 I=function(){return typeof window!="undefined"?window:typeof D!="undefined"?D:typeof self!="undefined"?self:this}();function o(){I.console&&typeof I.console.log=="function"&&I.console.log.apply(I.console,arguments)}var m={log:o,warn:function(_e){I.console&&(typeof I.console.warn=="function"?I.console.warn.apply(I.console,arguments):o.call(null,arguments))},error:function(_e){I.console&&(typeof I.console.error=="function"?I.console.error.apply(I.console,arguments):o(_e))}};function f($e,_e,Be){var He=new XMLHttpRequest;He.open("GET",$e),He.responseType="blob",He.onload=function(){r(He.response,_e,Be)},He.onerror=function(){m.error("could not download file")},He.send()}function s($e){var _e=new XMLHttpRequest;_e.open("HEAD",$e,!1);try{_e.send()}catch(Be){}return _e.status>=200&&_e.status<=299}function t($e){try{$e.dispatchEvent(new MouseEvent("click"))}catch(Be){var _e=document.createEvent("MouseEvents");_e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$e.dispatchEvent(_e)}}var l,a,r=I.saveAs||((typeof window=="undefined"?"undefined":L()(window))!=="object"||window!==I?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function($e,_e,Be){var He=I.URL||I.webkitURL,Je=document.createElement("a");_e=_e||$e.name||"download",Je.download=_e,Je.rel="noopener",typeof $e=="string"?(Je.href=$e,Je.origin!==location.origin?s(Je.href)?f($e,_e,Be):t(Je,Je.target="_blank"):t(Je)):(Je.href=He.createObjectURL($e),setTimeout(function(){He.revokeObjectURL(Je.href)},4e4),setTimeout(function(){t(Je)},0))}:"msSaveOrOpenBlob"in navigator?function($e,_e,Be){if(_e=_e||$e.name||"download",typeof $e=="string")if(s($e))f($e,_e,Be);else{var He=document.createElement("a");He.href=$e,He.target="_blank",setTimeout(function(){t(He)})}else navigator.msSaveOrOpenBlob(function(Je,Ye){return Ye===void 0?Ye={autoBom:!1}:L()(Ye)!=="object"&&(m.warn("Deprecated: Expected third argument to be a object"),Ye={autoBom:!Ye}),Ye.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Je.type)?new Blob([String.fromCharCode(65279),Je],{type:Je.type}):Je}($e,Be),_e)}:function($e,_e,Be,He){if((He=He||open("","_blank"))&&(He.document.title=He.document.body.innerText="downloading..."),typeof $e=="string")return f($e,_e,Be);var Je=$e.type==="application/octet-stream",Ye=/constructor/i.test(I.HTMLElement)||I.safari,et=/CriOS\/[\d]+/.test(navigator.userAgent);if((et||Je&&Ye)&&(typeof FileReader=="undefined"?"undefined":L()(FileReader))==="object"){var wt=new FileReader;wt.onloadend=function(){var wr=wt.result;wr=et?wr:wr.replace(/^data:[^;]*;/,"data:attachment/file;"),He?He.location.href=wr:location=wr,He=null},wt.readAsDataURL($e)}else{var ut=I.URL||I.webkitURL,Ft=ut.createObjectURL($e);He?He.location=Ft:location.href=Ft,He=null,setTimeout(function(){ut.revokeObjectURL(Ft)},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 u($e){var _e;$e=$e||"",this.ok=!1,$e.charAt(0)=="#"&&($e=$e.substr(1,6)),$e={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"}[$e=($e=$e.replace(/ /g,"")).toLowerCase()]||$e;for(var Be=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(ut){return[parseInt(ut[1]),parseInt(ut[2]),parseInt(ut[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(ut){return[parseInt(ut[1],16),parseInt(ut[2],16),parseInt(ut[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(ut){return[parseInt(ut[1]+ut[1],16),parseInt(ut[2]+ut[2],16),parseInt(ut[3]+ut[3],16)]}}],He=0;He<Be.length;He++){var Je=Be[He].re,Ye=Be[He].process,et=Je.exec($e);et&&(_e=Ye(et),this.r=_e[0],this.g=_e[1],this.b=_e[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 wt=this.r.toString(16),ut=this.g.toString(16),Ft=this.b.toString(16);return wt.length==1&&(wt="0"+wt),ut.length==1&&(ut="0"+ut),Ft.length==1&&(Ft="0"+Ft),"#"+wt+ut+Ft}}/**
|
|
|
* @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 e($e,_e){var Be=$e[0],He=$e[1],Je=$e[2],Ye=$e[3];Be=i(Be,He,Je,Ye,_e[0],7,-680876936),Ye=i(Ye,Be,He,Je,_e[1],12,-389564586),Je=i(Je,Ye,Be,He,_e[2],17,606105819),He=i(He,Je,Ye,Be,_e[3],22,-1044525330),Be=i(Be,He,Je,Ye,_e[4],7,-176418897),Ye=i(Ye,Be,He,Je,_e[5],12,1200080426),Je=i(Je,Ye,Be,He,_e[6],17,-1473231341),He=i(He,Je,Ye,Be,_e[7],22,-45705983),Be=i(Be,He,Je,Ye,_e[8],7,1770035416),Ye=i(Ye,Be,He,Je,_e[9],12,-1958414417),Je=i(Je,Ye,Be,He,_e[10],17,-42063),He=i(He,Je,Ye,Be,_e[11],22,-1990404162),Be=i(Be,He,Je,Ye,_e[12],7,1804603682),Ye=i(Ye,Be,He,Je,_e[13],12,-40341101),Je=i(Je,Ye,Be,He,_e[14],17,-1502002290),Be=c(Be,He=i(He,Je,Ye,Be,_e[15],22,1236535329),Je,Ye,_e[1],5,-165796510),Ye=c(Ye,Be,He,Je,_e[6],9,-1069501632),Je=c(Je,Ye,Be,He,_e[11],14,643717713),He=c(He,Je,Ye,Be,_e[0],20,-373897302),Be=c(Be,He,Je,Ye,_e[5],5,-701558691),Ye=c(Ye,Be,He,Je,_e[10],9,38016083),Je=c(Je,Ye,Be,He,_e[15],14,-660478335),He=c(He,Je,Ye,Be,_e[4],20,-405537848),Be=c(Be,He,Je,Ye,_e[9],5,568446438),Ye=c(Ye,Be,He,Je,_e[14],9,-1019803690),Je=c(Je,Ye,Be,He,_e[3],14,-187363961),He=c(He,Je,Ye,Be,_e[8],20,1163531501),Be=c(Be,He,Je,Ye,_e[13],5,-1444681467),Ye=c(Ye,Be,He,Je,_e[2],9,-51403784),Je=c(Je,Ye,Be,He,_e[7],14,1735328473),Be=d(Be,He=c(He,Je,Ye,Be,_e[12],20,-1926607734),Je,Ye,_e[5],4,-378558),Ye=d(Ye,Be,He,Je,_e[8],11,-2022574463),Je=d(Je,Ye,Be,He,_e[11],16,1839030562),He=d(He,Je,Ye,Be,_e[14],23,-35309556),Be=d(Be,He,Je,Ye,_e[1],4,-1530992060),Ye=d(Ye,Be,He,Je,_e[4],11,1272893353),Je=d(Je,Ye,Be,He,_e[7],16,-155497632),He=d(He,Je,Ye,Be,_e[10],23,-1094730640),Be=d(Be,He,Je,Ye,_e[13],4,681279174),Ye=d(Ye,Be,He,Je,_e[0],11,-358537222),Je=d(Je,Ye,Be,He,_e[3],16,-722521979),He=d(He,Je,Ye,Be,_e[6],23,76029189),Be=d(Be,He,Je,Ye,_e[9],4,-640364487),Ye=d(Ye,Be,He,Je,_e[12],11,-421815835),Je=d(Je,Ye,Be,He,_e[15],16,530742520),Be=h(Be,He=d(He,Je,Ye,Be,_e[2],23,-995338651),Je,Ye,_e[0],6,-198630844),Ye=h(Ye,Be,He,Je,_e[7],10,1126891415),Je=h(Je,Ye,Be,He,_e[14],15,-1416354905),He=h(He,Je,Ye,Be,_e[5],21,-57434055),Be=h(Be,He,Je,Ye,_e[12],6,1700485571),Ye=h(Ye,Be,He,Je,_e[3],10,-1894986606),Je=h(Je,Ye,Be,He,_e[10],15,-1051523),He=h(He,Je,Ye,Be,_e[1],21,-2054922799),Be=h(Be,He,Je,Ye,_e[8],6,1873313359),Ye=h(Ye,Be,He,Je,_e[15],10,-30611744),Je=h(Je,Ye,Be,He,_e[6],15,-1560198380),He=h(He,Je,Ye,Be,_e[13],21,1309151649),Be=h(Be,He,Je,Ye,_e[4],6,-145523070),Ye=h(Ye,Be,He,Je,_e[11],10,-1120210379),Je=h(Je,Ye,Be,He,_e[2],15,718787259),He=h(He,Je,Ye,Be,_e[9],21,-343485551),$e[0]=S(Be,$e[0]),$e[1]=S(He,$e[1]),$e[2]=S(Je,$e[2]),$e[3]=S(Ye,$e[3])}function n($e,_e,Be,He,Je,Ye){return _e=S(S(_e,$e),S(He,Ye)),S(_e<<Je|_e>>>32-Je,Be)}function i($e,_e,Be,He,Je,Ye,et){return n(_e&Be|~_e&He,$e,_e,Je,Ye,et)}function c($e,_e,Be,He,Je,Ye,et){return n(_e&He|Be&~He,$e,_e,Je,Ye,et)}function d($e,_e,Be,He,Je,Ye,et){return n(_e^Be^He,$e,_e,Je,Ye,et)}function h($e,_e,Be,He,Je,Ye,et){return n(Be^(_e|~He),$e,_e,Je,Ye,et)}function p($e){var _e,Be=$e.length,He=[1732584193,-271733879,-1732584194,271733878];for(_e=64;_e<=$e.length;_e+=64)e(He,g($e.substring(_e-64,_e)));$e=$e.substring(_e-64);var Je=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(_e=0;_e<$e.length;_e++)Je[_e>>2]|=$e.charCodeAt(_e)<<(_e%4<<3);if(Je[_e>>2]|=128<<(_e%4<<3),_e>55)for(e(He,Je),_e=0;_e<16;_e++)Je[_e]=0;return Je[14]=8*Be,e(He,Je),He}function g($e){var _e,Be=[];for(_e=0;_e<64;_e+=4)Be[_e>>2]=$e.charCodeAt(_e)+($e.charCodeAt(_e+1)<<8)+($e.charCodeAt(_e+2)<<16)+($e.charCodeAt(_e+3)<<24);return Be}l=I.atob.bind(I),a=I.btoa.bind(I);var v="0123456789abcdef".split("");function A($e){for(var _e="",Be=0;Be<4;Be++)_e+=v[$e>>8*Be+4&15]+v[$e>>8*Be&15];return _e}function x($e){return String.fromCharCode((255&$e)>>0,(65280&$e)>>8,(16711680&$e)>>16,(4278190080&$e)>>24)}function b($e){return p($e).map(x).join("")}var w=function($e){for(var _e=0;_e<$e.length;_e++)$e[_e]=A($e[_e]);return $e.join("")}(p("hello"))!="5d41402abc4b2a76b9719d911017c592";function S($e,_e){if(w){var Be=(65535&$e)+(65535&_e);return($e>>16)+(_e>>16)+(Be>>16)<<16|65535&Be}return $e+_e&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 T($e,_e){var Be,He,Je,Ye;if($e!==Be){for(var et=(Je=$e,Ye=1+(256/$e.length>>0),new Array(Ye+1).join(Je)),wt=[],ut=0;ut<256;ut++)wt[ut]=ut;var Ft=0;for(ut=0;ut<256;ut++){var wr=wt[ut];Ft=(Ft+wr+et.charCodeAt(ut))%256,wt[ut]=wt[Ft],wt[Ft]=wr}Be=$e,He=wt}else wt=He;var hr=_e.length,Nr=0,Kt=0,un="";for(ut=0;ut<hr;ut++)Kt=(Kt+(wr=wt[Nr=(Nr+1)%256]))%256,wt[Nr]=wt[Kt],wt[Kt]=wr,et=wt[(wt[Nr]+wt[Kt])%256],un+=String.fromCharCode(_e.charCodeAt(ut)^et);return un}/**
|
|
|
* @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 C={print:4,modify:8,copy:16,"annot-forms":32};function O($e,_e,Be,He){this.v=1,this.r=2;var Je=192;$e.forEach(function(wt){if(C.perm!==void 0)throw new Error("Invalid permission: "+wt);Je+=C[wt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Ye=(_e+this.padding).substr(0,32),et=(Be+this.padding).substr(0,32);this.O=this.processOwnerPassword(Ye,et),this.P=-(1+(255^Je)),this.encryptionKey=b(Ye+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(He)).substr(0,5),this.U=T(this.encryptionKey,this.padding)}function _($e){if(/[^\u0000-\u00ff]/.test($e))throw new Error("Invalid PDF Name Object: "+$e+", Only accept ASCII characters.");for(var _e="",Be=$e.length,He=0;He<Be;He++){var Je=$e.charCodeAt(He);Je<33||Je===35||Je===37||Je===40||Je===41||Je===47||Je===60||Je===62||Je===91||Je===93||Je===123||Je===125||Je>126?_e+="#"+("0"+Je.toString(16)).slice(-2):_e+=$e[He]}return _e}function M($e){if(L()($e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var _e={};this.subscribe=function(Be,He,Je){if(Je=Je||!1,typeof Be!="string"||typeof He!="function"||typeof Je!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");_e.hasOwnProperty(Be)||(_e[Be]={});var Ye=Math.random().toString(35);return _e[Be][Ye]=[He,!!Je],Ye},this.unsubscribe=function(Be){for(var He in _e)if(_e[He][Be])return delete _e[He][Be],Object.keys(_e[He]).length===0&&delete _e[He],!0;return!1},this.publish=function(Be){if(_e.hasOwnProperty(Be)){var He=Array.prototype.slice.call(arguments,1),Je=[];for(var Ye in _e[Be]){var et=_e[Be][Ye];try{et[0].apply($e,He)}catch(wt){I.console&&m.error("jsPDF PubSub Error",wt.message,wt)}et[1]&&Je.push(Ye)}Je.length&&Je.forEach(this.unsubscribe)}},this.getTopics=function(){return _e}}function k($e){if(!(this instanceof k))return new k($e);var _e="opacity,stroke-opacity".split(",");for(var Be in $e)$e.hasOwnProperty(Be)&&_e.indexOf(Be)>=0&&(this[Be]=$e[Be]);this.id="",this.objectNumber=-1}function R($e,_e){this.gState=$e,this.matrix=_e,this.id="",this.objectNumber=-1}function B($e,_e,Be,He,Je){if(!(this instanceof B))return new B($e,_e,Be,He,Je);this.type=$e==="axial"?2:3,this.coords=_e,this.colors=Be,R.call(this,He,Je)}function P($e,_e,Be,He,Je){if(!(this instanceof P))return new P($e,_e,Be,He,Je);this.boundingBox=$e,this.xStep=_e,this.yStep=Be,this.stream="",this.cloneIndex=0,R.call(this,He,Je)}function U($e){var _e,Be=typeof arguments[0]=="string"?arguments[0]:"p",He=arguments[1],Je=arguments[2],Ye=arguments[3],et=[],wt=1,ut=16,Ft="S",wr=null;L()($e=$e||{})==="object"&&(Be=$e.orientation,He=$e.unit||He,Je=$e.format||Je,Ye=$e.compress||$e.compressPdf||Ye,(wr=$e.encryption||null)!==null&&(wr.userPassword=wr.userPassword||"",wr.ownerPassword=wr.ownerPassword||"",wr.userPermissions=wr.userPermissions||[]),wt=typeof $e.userUnit=="number"?Math.abs($e.userUnit):1,$e.precision!==void 0&&(_e=$e.precision),$e.floatPrecision!==void 0&&(ut=$e.floatPrecision),Ft=$e.defaultPathOperation||"S"),et=$e.filters||(Ye===!0?["FlateEncode"]:et),He=He||"mm",Be=(""+(Be||"P")).toLowerCase();var hr=$e.putOnlyUsedFonts||!1,Nr={},Kt={internal:{},__private__:{}};Kt.__private__.PubSub=M;var un="1.3",ar=Kt.__private__.getPdfVersion=function(){return un};Kt.__private__.setPdfVersion=function(Tt){un=Tt};var Gr={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]};Kt.__private__.getPageFormats=function(){return Gr};var Br=Kt.__private__.getPageFormat=function(Tt){return Gr[Tt]};Je=Je||"a4";var gr={COMPAT:"compat",ADVANCED:"advanced"},Sn=gr.COMPAT;function Pn(){this.saveGraphicsState(),ln(new Wn(Wr,0,0,-Wr,0,gs()*Wr).toString()+" cm"),this.setFontSize(this.getFontSize()/Wr),Ft="n",Sn=gr.ADVANCED}function ii(){this.restoreGraphicsState(),Ft="S",Sn=gr.COMPAT}var oi=Kt.__private__.combineFontStyleAndFontWeight=function(Tt,Rt){if(Tt=="bold"&&Rt=="normal"||Tt=="bold"&&Rt==400||Tt=="normal"&&Rt=="italic"||Tt=="bold"&&Rt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Rt&&(Tt=Rt==400||Rt==="normal"?Tt==="italic"?"italic":"normal":Rt!=700&&Rt!=="bold"||Tt!=="normal"?(Rt==700?"bold":Rt)+""+Tt:"bold"),Tt};Kt.advancedAPI=function(Tt){var Rt=Sn===gr.COMPAT;return Rt&&Pn.call(this),typeof Tt!="function"||(Tt(this),Rt&&ii.call(this)),this},Kt.compatAPI=function(Tt){var Rt=Sn===gr.ADVANCED;return Rt&&ii.call(this),typeof Tt!="function"||(Tt(this),Rt&&Pn.call(this)),this},Kt.isAdvancedAPI=function(){return Sn===gr.ADVANCED};var ti,bi=function(Rt){if(Sn!==gr.ADVANCED)throw new Error(Rt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},kn=Kt.roundToPrecision=Kt.__private__.roundToPrecision=function(Tt,Rt){var rn=_e||Rt;if(isNaN(Tt)||isNaN(rn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Tt.toFixed(rn).replace(/0+$/,"")};ti=Kt.hpf=Kt.__private__.hpf=typeof ut=="number"?function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.hpf");return kn(Tt,ut)}:ut==="smart"?function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.hpf");return kn(Tt,Tt>-1&&Tt<1?16:5)}:function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.hpf");return kn(Tt,16)};var Ii=Kt.f2=Kt.__private__.f2=function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.f2");return kn(Tt,2)},gn=Kt.__private__.f3=function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.f3");return kn(Tt,3)},Vr=Kt.scale=Kt.__private__.scale=function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.scale");return Sn===gr.COMPAT?Tt*Wr:Sn===gr.ADVANCED?Tt:void 0},xn=function(Rt){return Sn===gr.COMPAT?gs()-Rt:Sn===gr.ADVANCED?Rt:void 0},tn=function(Rt){return Vr(xn(Rt))};Kt.__private__.setPrecision=Kt.setPrecision=function(Tt){typeof parseInt(Tt,10)=="number"&&(_e=parseInt(Tt,10))};var ui,qn="00000000000000000000000000000000",wi=Kt.__private__.getFileId=function(){return qn},Qn=Kt.__private__.setFileId=function(Tt){return qn=Tt!==void 0&&/^[a-fA-F0-9]{32}$/.test(Tt)?Tt.toUpperCase():qn.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),wr!==null&&(Ya=new O(wr.userPermissions,wr.userPassword,wr.ownerPassword,qn)),qn};Kt.setFileId=function(Tt){return Qn(Tt),this},Kt.getFileId=function(){return wi()};var Hi=Kt.__private__.convertDateToPDFDate=function(Tt){var Rt=Tt.getTimezoneOffset(),rn=Rt<0?"+":"-",On=Math.floor(Math.abs(Rt/60)),vt=Math.abs(Rt%60),se=[rn,bn(On),"'",bn(vt),"'"].join("");return["D:",Tt.getFullYear(),bn(Tt.getMonth()+1),bn(Tt.getDate()),bn(Tt.getHours()),bn(Tt.getMinutes()),bn(Tt.getSeconds()),se].join("")},ri=Kt.__private__.convertPDFDateToDate=function(Tt){var Rt=parseInt(Tt.substr(2,4),10),rn=parseInt(Tt.substr(6,2),10)-1,On=parseInt(Tt.substr(8,2),10),vt=parseInt(Tt.substr(10,2),10),se=parseInt(Tt.substr(12,2),10),ye=parseInt(Tt.substr(14,2),10);return new Date(Rt,rn,On,vt,se,ye,0)},Mi=Kt.__private__.setCreationDate=function(Tt){var Rt;if(Tt===void 0&&(Tt=new Date),Tt instanceof Date)Rt=Hi(Tt);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(Tt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Rt=Tt}return ui=Rt},dn=Kt.__private__.getCreationDate=function(Tt){var Rt=ui;return Tt==="jsDate"&&(Rt=ri(ui)),Rt};Kt.setCreationDate=function(Tt){return Mi(Tt),this},Kt.getCreationDate=function(Tt){return dn(Tt)};var Ur,bn=Kt.__private__.padd2=function(Tt){return("0"+parseInt(Tt)).slice(-2)},Mn=Kt.__private__.padd2Hex=function(Tt){return("00"+(Tt=Tt.toString())).substr(Tt.length)},Gn=0,$n=[],hi=[],fi=0,gi=[],Wi=[],na=!1,$i=hi,Ha=function(){Gn=0,fi=0,hi=[],$n=[],gi=[],Sr=Qr(),Zt=Qr()};Kt.__private__.setCustomOutputDestination=function(Tt){na=!0,$i=Tt};var pi=function(Rt){na||($i=Rt)};Kt.__private__.resetCustomOutputDestination=function(){na=!1,$i=hi};var ln=Kt.__private__.out=function(Tt){return Tt=Tt.toString(),fi+=Tt.length+1,$i.push(Tt),$i},_i=Kt.__private__.write=function(Tt){return ln(arguments.length===1?Tt.toString():Array.prototype.join.call(arguments," "))},Ji=Kt.__private__.getArrayBuffer=function(Tt){for(var Rt=Tt.length,rn=new ArrayBuffer(Rt),On=new Uint8Array(rn);Rt--;)On[Rt]=Tt.charCodeAt(Rt);return rn},Fi=[["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]];Kt.__private__.getStandardFonts=function(){return Fi};var ea=$e.fontSize||16;Kt.__private__.setFontSize=Kt.setFontSize=function(Tt){return ea=Sn===gr.ADVANCED?Tt/Wr:Tt,this};var Vt,Xr=Kt.__private__.getFontSize=Kt.getFontSize=function(){return Sn===gr.COMPAT?ea:ea*Wr},nn=$e.R2L||!1;Kt.__private__.setR2L=Kt.setR2L=function(Tt){return nn=Tt,this},Kt.__private__.getR2L=Kt.getR2L=function(){return nn};var fn,Ze=Kt.__private__.setZoomMode=function(Tt){var Rt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Tt))Vt=Tt;else if(isNaN(Tt)){if(Rt.indexOf(Tt)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Tt+'" is not recognized.');Vt=Tt}else Vt=parseInt(Tt,10)};Kt.__private__.getZoomMode=function(){return Vt};var Lt,cr=Kt.__private__.setPageMode=function(Tt){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Tt)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Tt+'" is not recognized.');fn=Tt};Kt.__private__.getPageMode=function(){return fn};var lr=Kt.__private__.setLayoutMode=function(Tt){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Tt)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Tt+'" is not recognized.');Lt=Tt};Kt.__private__.getLayoutMode=function(){return Lt},Kt.__private__.setDisplayMode=Kt.setDisplayMode=function(Tt,Rt,rn){return Ze(Tt),lr(Rt),cr(rn),this};var _r={title:"",subject:"",author:"",keywords:"",creator:""};Kt.__private__.getDocumentProperty=function(Tt){if(Object.keys(_r).indexOf(Tt)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _r[Tt]},Kt.__private__.getDocumentProperties=function(){return _r},Kt.__private__.setDocumentProperties=Kt.setProperties=Kt.setDocumentProperties=function(Tt){for(var Rt in _r)_r.hasOwnProperty(Rt)&&Tt[Rt]&&(_r[Rt]=Tt[Rt]);return this},Kt.__private__.setDocumentProperty=function(Tt,Rt){if(Object.keys(_r).indexOf(Tt)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _r[Tt]=Rt};var Rr,Wr,on,En,An,Rn={},Un={},wn=[],_n={},Cn={},Kn={},Yn={},ni=null,yi=0,li=[],Oi=new M(Kt),ki=$e.hotfixes||[],Si={},mi={},Li=[],Wn=function Tt(Rt,rn,On,vt,se,ye){if(!(this instanceof Tt))return new Tt(Rt,rn,On,vt,se,ye);isNaN(Rt)&&(Rt=1),isNaN(rn)&&(rn=0),isNaN(On)&&(On=0),isNaN(vt)&&(vt=1),isNaN(se)&&(se=0),isNaN(ye)&&(ye=0),this._matrix=[Rt,rn,On,vt,se,ye]};Object.defineProperty(Wn.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Rt){this._matrix[0]=Rt}}),Object.defineProperty(Wn.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Rt){this._matrix[1]=Rt}}),Object.defineProperty(Wn.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Rt){this._matrix[2]=Rt}}),Object.defineProperty(Wn.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Rt){this._matrix[3]=Rt}}),Object.defineProperty(Wn.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Rt){this._matrix[4]=Rt}}),Object.defineProperty(Wn.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Rt){this._matrix[5]=Rt}}),Object.defineProperty(Wn.prototype,"a",{get:function(){return this._matrix[0]},set:function(Rt){this._matrix[0]=Rt}}),Object.defineProperty(Wn.prototype,"b",{get:function(){return this._matrix[1]},set:function(Rt){this._matrix[1]=Rt}}),Object.defineProperty(Wn.prototype,"c",{get:function(){return this._matrix[2]},set:function(Rt){this._matrix[2]=Rt}}),Object.defineProperty(Wn.prototype,"d",{get:function(){return this._matrix[3]},set:function(Rt){this._matrix[3]=Rt}}),Object.defineProperty(Wn.prototype,"e",{get:function(){return this._matrix[4]},set:function(Rt){this._matrix[4]=Rt}}),Object.defineProperty(Wn.prototype,"f",{get:function(){return this._matrix[5]},set:function(Rt){this._matrix[5]=Rt}}),Object.defineProperty(Wn.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Wn.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Wn.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Wn.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Wn.prototype.join=function(Tt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ti).join(Tt)},Wn.prototype.multiply=function(Tt){var Rt=Tt.sx*this.sx+Tt.shy*this.shx,rn=Tt.sx*this.shy+Tt.shy*this.sy,On=Tt.shx*this.sx+Tt.sy*this.shx,vt=Tt.shx*this.shy+Tt.sy*this.sy,se=Tt.tx*this.sx+Tt.ty*this.shx+this.tx,ye=Tt.tx*this.shy+Tt.ty*this.sy+this.ty;return new Wn(Rt,rn,On,vt,se,ye)},Wn.prototype.decompose=function(){var Tt=this.sx,Rt=this.shy,rn=this.shx,On=this.sy,vt=this.tx,se=this.ty,ye=Math.sqrt(Tt*Tt+Rt*Rt),Se=(Tt/=ye)*rn+(Rt/=ye)*On;rn-=Tt*Se,On-=Rt*Se;var Ue=Math.sqrt(rn*rn+On*On);return Se/=Ue,Tt*(On/=Ue)<Rt*(rn/=Ue)&&(Tt=-Tt,Rt=-Rt,Se=-Se,ye=-ye),{scale:new Wn(ye,0,0,Ue,0,0),translate:new Wn(1,0,0,1,vt,se),rotate:new Wn(Tt,Rt,-Rt,Tt,0,0),skew:new Wn(1,0,Se,1,0,0)}},Wn.prototype.toString=function(Tt){return this.join(" ")},Wn.prototype.inversed=function(){var Tt=this.sx,Rt=this.shy,rn=this.shx,On=this.sy,vt=this.tx,se=this.ty,ye=1/(Tt*On-Rt*rn),Se=On*ye,Ue=-Rt*ye,ht=-rn*ye,Nt=Tt*ye;return new Wn(Se,Ue,ht,Nt,-Se*vt-ht*se,-Ue*vt-Nt*se)},Wn.prototype.applyToPoint=function(Tt){var Rt=Tt.x*this.sx+Tt.y*this.shx+this.tx,rn=Tt.x*this.shy+Tt.y*this.sy+this.ty;return new ns(Rt,rn)},Wn.prototype.applyToRectangle=function(Tt){var Rt=this.applyToPoint(Tt),rn=this.applyToPoint(new ns(Tt.x+Tt.w,Tt.y+Tt.h));return new ys(Rt.x,Rt.y,rn.x-Rt.x,rn.y-Rt.y)},Wn.prototype.clone=function(){var Tt=this.sx,Rt=this.shy,rn=this.shx,On=this.sy,vt=this.tx,se=this.ty;return new Wn(Tt,Rt,rn,On,vt,se)},Kt.Matrix=Wn;var Di=Kt.matrixMult=function(Tt,Rt){return Rt.multiply(Tt)},zi=new Wn(1,0,0,1,0,0);Kt.unitMatrix=Kt.identityMatrix=zi;var yr=function(Rt,rn){if(!Cn[Rt]){var On=(rn instanceof B?"Sh":"P")+(Object.keys(_n).length+1).toString(10);rn.id=On,Cn[Rt]=On,_n[On]=rn,Oi.publish("addPattern",rn)}};Kt.ShadingPattern=B,Kt.TilingPattern=P,Kt.addShadingPattern=function(Tt,Rt){return bi("addShadingPattern()"),yr(Tt,Rt),this},Kt.beginTilingPattern=function(Tt){bi("beginTilingPattern()"),Is(Tt.boundingBox[0],Tt.boundingBox[1],Tt.boundingBox[2]-Tt.boundingBox[0],Tt.boundingBox[3]-Tt.boundingBox[1],Tt.matrix)},Kt.endTilingPattern=function(Tt,Rt){bi("endTilingPattern()"),Rt.stream=Wi[Ur].join(`
|
|
|
`),yr(Tt,Rt),Oi.publish("endTilingPattern",Rt),Li.pop().restore()};var Mr=Kt.__private__.newObject=function(){var Tt=Qr();return Ir(Tt,!0),Tt},Qr=Kt.__private__.newObjectDeferred=function(){return Gn++,$n[Gn]=function(){return fi},Gn},Ir=function(Rt,rn){return rn=typeof rn=="boolean"&&rn,$n[Rt]=fi,rn&&ln(Rt+" 0 obj"),Rt},Gt=Kt.__private__.newAdditionalObject=function(){var Tt={objId:Qr(),content:""};return gi.push(Tt),Tt},Sr=Qr(),Zt=Qr(),jr=Kt.__private__.decodeColorString=function(Tt){var Rt=Tt.split(" ");if(Rt.length!==2||Rt[1]!=="g"&&Rt[1]!=="G")Rt.length===5&&(Rt[4]==="k"||Rt[4]==="K")&&(Rt=[(1-Rt[0])*(1-Rt[3]),(1-Rt[1])*(1-Rt[3]),(1-Rt[2])*(1-Rt[3]),"r"]);else{var rn=parseFloat(Rt[0]);Rt=[rn,rn,rn,"r"]}for(var On="#",vt=0;vt<3;vt++)On+=("0"+Math.floor(255*parseFloat(Rt[vt])).toString(16)).slice(-2);return On},Kr=Kt.__private__.encodeColorString=function(Tt){var Rt;typeof Tt=="string"&&(Tt={ch1:Tt});var rn=Tt.ch1,On=Tt.ch2,vt=Tt.ch3,se=Tt.ch4,ye=Tt.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof rn=="string"&&rn.charAt(0)!=="#"){var Se=new u(rn);if(Se.ok)rn=Se.toHex();else if(!/^\d*\.?\d*$/.test(rn))throw new Error('Invalid color "'+rn+'" passed to jsPDF.encodeColorString.')}if(typeof rn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(rn)&&(rn="#"+rn[1]+rn[1]+rn[2]+rn[2]+rn[3]+rn[3]),typeof rn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(rn)){var Ue=parseInt(rn.substr(1),16);rn=Ue>>16&255,On=Ue>>8&255,vt=255&Ue}if(On===void 0||se===void 0&&rn===On&&On===vt)if(typeof rn=="string")Rt=rn+" "+ye[0];else switch(Tt.precision){case 2:Rt=Ii(rn/255)+" "+ye[0];break;case 3:default:Rt=gn(rn/255)+" "+ye[0]}else if(se===void 0||L()(se)==="object"){if(se&&!isNaN(se.a)&&se.a===0)return Rt=["1.","1.","1.",ye[1]].join(" ");if(typeof rn=="string")Rt=[rn,On,vt,ye[1]].join(" ");else switch(Tt.precision){case 2:Rt=[Ii(rn/255),Ii(On/255),Ii(vt/255),ye[1]].join(" ");break;default:case 3:Rt=[gn(rn/255),gn(On/255),gn(vt/255),ye[1]].join(" ")}}else if(typeof rn=="string")Rt=[rn,On,vt,se,ye[2]].join(" ");else switch(Tt.precision){case 2:Rt=[Ii(rn),Ii(On),Ii(vt),Ii(se),ye[2]].join(" ");break;case 3:default:Rt=[gn(rn),gn(On),gn(vt),gn(se),ye[2]].join(" ")}return Rt},pn=Kt.__private__.getFilters=function(){return et},sn=Kt.__private__.putStream=function(Tt){var Rt=(Tt=Tt||{}).data||"",rn=Tt.filters||pn(),On=Tt.alreadyAppliedFilters||[],vt=Tt.addLength1||!1,se=Rt.length,ye=Tt.objectId,Se=function(si){return si};if(wr!==null&&ye===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");wr!==null&&(Se=Ya.encryptor(ye,0));var Ue={};rn===!0&&(rn=["FlateEncode"]);var ht=Tt.additionalKeyValues||[],Nt=(Ue=U.API.processDataByFilters!==void 0?U.API.processDataByFilters(Rt,rn):{data:Rt,reverseChain:[]}).reverseChain+(Array.isArray(On)?On.join(" "):On.toString());if(Ue.data.length!==0&&(ht.push({key:"Length",value:Ue.data.length}),vt===!0&&ht.push({key:"Length1",value:se})),Nt.length!=0)if(Nt.split("/").length-1==1)ht.push({key:"Filter",value:Nt});else{ht.push({key:"Filter",value:"["+Nt+"]"});for(var br=0;br<ht.length;br+=1)if(ht[br].key==="DecodeParms"){for(var Or=[],Zr=0;Zr<Ue.reverseChain.split("/").length-1;Zr+=1)Or.push("null");Or.push(ht[br].value),ht[br].value="["+Or.join(" ")+"]"}}ln("<<");for(var Tn=0;Tn<ht.length;Tn++)ln("/"+ht[Tn].key+" "+ht[Tn].value);ln(">>"),Ue.data.length!==0&&(ln("stream"),ln(Se(Ue.data)),ln("endstream"))},yn=Kt.__private__.putPage=function(Tt){var Rt=Tt.number,rn=Tt.data,On=Tt.objId,vt=Tt.contentsObjId;Ir(On,!0),ln("<</Type /Page"),ln("/Parent "+Tt.rootDictionaryObjId+" 0 R"),ln("/Resources "+Tt.resourceDictionaryObjId+" 0 R"),ln("/MediaBox ["+parseFloat(ti(Tt.mediaBox.bottomLeftX))+" "+parseFloat(ti(Tt.mediaBox.bottomLeftY))+" "+ti(Tt.mediaBox.topRightX)+" "+ti(Tt.mediaBox.topRightY)+"]"),Tt.cropBox!==null&&ln("/CropBox ["+ti(Tt.cropBox.bottomLeftX)+" "+ti(Tt.cropBox.bottomLeftY)+" "+ti(Tt.cropBox.topRightX)+" "+ti(Tt.cropBox.topRightY)+"]"),Tt.bleedBox!==null&&ln("/BleedBox ["+ti(Tt.bleedBox.bottomLeftX)+" "+ti(Tt.bleedBox.bottomLeftY)+" "+ti(Tt.bleedBox.topRightX)+" "+ti(Tt.bleedBox.topRightY)+"]"),Tt.trimBox!==null&&ln("/TrimBox ["+ti(Tt.trimBox.bottomLeftX)+" "+ti(Tt.trimBox.bottomLeftY)+" "+ti(Tt.trimBox.topRightX)+" "+ti(Tt.trimBox.topRightY)+"]"),Tt.artBox!==null&&ln("/ArtBox ["+ti(Tt.artBox.bottomLeftX)+" "+ti(Tt.artBox.bottomLeftY)+" "+ti(Tt.artBox.topRightX)+" "+ti(Tt.artBox.topRightY)+"]"),typeof Tt.userUnit=="number"&&Tt.userUnit!==1&&ln("/UserUnit "+Tt.userUnit),Oi.publish("putPage",{objId:On,pageContext:li[Rt],pageNumber:Rt,page:rn}),ln("/Contents "+vt+" 0 R"),ln(">>"),ln("endobj");var se=rn.join(`
|
|
|
`);return Sn===gr.ADVANCED&&(se+=`
|
|
|
Q`),Ir(vt,!0),sn({data:se,filters:pn(),objectId:vt}),ln("endobj"),On},Fn=Kt.__private__.putPages=function(){var Tt,Rt,rn=[];for(Tt=1;Tt<=yi;Tt++)li[Tt].objId=Qr(),li[Tt].contentsObjId=Qr();for(Tt=1;Tt<=yi;Tt++)rn.push(yn({number:Tt,data:Wi[Tt],objId:li[Tt].objId,contentsObjId:li[Tt].contentsObjId,mediaBox:li[Tt].mediaBox,cropBox:li[Tt].cropBox,bleedBox:li[Tt].bleedBox,trimBox:li[Tt].trimBox,artBox:li[Tt].artBox,userUnit:li[Tt].userUnit,rootDictionaryObjId:Sr,resourceDictionaryObjId:Zt}));Ir(Sr,!0),ln("<</Type /Pages");var On="/Kids [";for(Rt=0;Rt<yi;Rt++)On+=rn[Rt]+" 0 R ";ln(On+"]"),ln("/Count "+yi),ln(">>"),ln("endobj"),Oi.publish("postPutPages")},Xn=function(Rt){Oi.publish("putFont",{font:Rt,out:ln,newObject:Mr,putStream:sn}),Rt.isAlreadyPutted!==!0&&(Rt.objectNumber=Mr(),ln("<<"),ln("/Type /Font"),ln("/BaseFont /"+_(Rt.postScriptName)),ln("/Subtype /Type1"),typeof Rt.encoding=="string"&&ln("/Encoding /"+Rt.encoding),ln("/FirstChar 32"),ln("/LastChar 255"),ln(">>"),ln("endobj"))},Jn=function(){for(var Rt in Rn)Rn.hasOwnProperty(Rt)&&(hr===!1||hr===!0&&Nr.hasOwnProperty(Rt))&&Xn(Rn[Rt])},Ti=function(Rt){Rt.objectNumber=Mr();var rn=[];rn.push({key:"Type",value:"/XObject"}),rn.push({key:"Subtype",value:"/Form"}),rn.push({key:"BBox",value:"["+[ti(Rt.x),ti(Rt.y),ti(Rt.x+Rt.width),ti(Rt.y+Rt.height)].join(" ")+"]"}),rn.push({key:"Matrix",value:"["+Rt.matrix.toString()+"]"});var On=Rt.pages[1].join(`
|
|
|
`);sn({data:On,additionalKeyValues:rn,objectId:Rt.objectNumber}),ln("endobj")},ta=function(){for(var Rt in Si)Si.hasOwnProperty(Rt)&&Ti(Si[Rt])},oa=function(Rt,rn){var On,vt=[],se=1/(rn-1);for(On=0;On<1;On+=se)vt.push(On);if(vt.push(1),Rt[0].offset!=0){var ye={offset:0,color:Rt[0].color};Rt.unshift(ye)}if(Rt[Rt.length-1].offset!=1){var Se={offset:1,color:Rt[Rt.length-1].color};Rt.push(Se)}for(var Ue="",ht=0,Nt=0;Nt<vt.length;Nt++){for(On=vt[Nt];On>Rt[ht+1].offset;)ht++;var br=Rt[ht].offset,Or=(On-br)/(Rt[ht+1].offset-br),Zr=Rt[ht].color,Tn=Rt[ht+1].color;Ue+=Mn(Math.round((1-Or)*Zr[0]+Or*Tn[0]).toString(16))+Mn(Math.round((1-Or)*Zr[1]+Or*Tn[1]).toString(16))+Mn(Math.round((1-Or)*Zr[2]+Or*Tn[2]).toString(16))}return Ue.trim()},da=function(Rt,rn){rn||(rn=21);var On=Mr(),vt=oa(Rt.colors,rn),se=[];se.push({key:"FunctionType",value:"0"}),se.push({key:"Domain",value:"[0.0 1.0]"}),se.push({key:"Size",value:"["+rn+"]"}),se.push({key:"BitsPerSample",value:"8"}),se.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),se.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),sn({data:vt,additionalKeyValues:se,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:On}),ln("endobj"),Rt.objectNumber=Mr(),ln("<< /ShadingType "+Rt.type),ln("/ColorSpace /DeviceRGB");var ye="/Coords ["+ti(parseFloat(Rt.coords[0]))+" "+ti(parseFloat(Rt.coords[1]))+" ";Rt.type===2?ye+=ti(parseFloat(Rt.coords[2]))+" "+ti(parseFloat(Rt.coords[3])):ye+=ti(parseFloat(Rt.coords[2]))+" "+ti(parseFloat(Rt.coords[3]))+" "+ti(parseFloat(Rt.coords[4]))+" "+ti(parseFloat(Rt.coords[5])),ln(ye+="]"),Rt.matrix&&ln("/Matrix ["+Rt.matrix.toString()+"]"),ln("/Function "+On+" 0 R"),ln("/Extend [true true]"),ln(">>"),ln("endobj")},ca=function(Rt,rn){var On=Qr(),vt=Mr();rn.push({resourcesOid:On,objectOid:vt}),Rt.objectNumber=vt;var se=[];se.push({key:"Type",value:"/Pattern"}),se.push({key:"PatternType",value:"1"}),se.push({key:"PaintType",value:"1"}),se.push({key:"TilingType",value:"1"}),se.push({key:"BBox",value:"["+Rt.boundingBox.map(ti).join(" ")+"]"}),se.push({key:"XStep",value:ti(Rt.xStep)}),se.push({key:"YStep",value:ti(Rt.yStep)}),se.push({key:"Resources",value:On+" 0 R"}),Rt.matrix&&se.push({key:"Matrix",value:"["+Rt.matrix.toString()+"]"}),sn({data:Rt.stream,additionalKeyValues:se,objectId:Rt.objectNumber}),ln("endobj")},ma=function(Rt){var rn;for(rn in _n)_n.hasOwnProperty(rn)&&(_n[rn]instanceof B?da(_n[rn]):_n[rn]instanceof P&&ca(_n[rn],Rt))},Ui=function(Rt){for(var rn in Rt.objectNumber=Mr(),ln("<<"),Rt)switch(rn){case"opacity":ln("/ca "+Ii(Rt[rn]));break;case"stroke-opacity":ln("/CA "+Ii(Rt[rn]))}ln(">>"),ln("endobj")},Ni=function(){var Rt;for(Rt in Kn)Kn.hasOwnProperty(Rt)&&Ui(Kn[Rt])},ra=function(){for(var Rt in ln("/XObject <<"),Si)Si.hasOwnProperty(Rt)&&Si[Rt].objectNumber>=0&&ln("/"+Rt+" "+Si[Rt].objectNumber+" 0 R");Oi.publish("putXobjectDict"),ln(">>")},qi=function(){Ya.oid=Mr(),ln("<<"),ln("/Filter /Standard"),ln("/V "+Ya.v),ln("/R "+Ya.r),ln("/U <"+Ya.toHexString(Ya.U)+">"),ln("/O <"+Ya.toHexString(Ya.O)+">"),ln("/P "+Ya.P),ln(">>"),ln("endobj")},Aa=function(){for(var Rt in ln("/Font <<"),Rn)Rn.hasOwnProperty(Rt)&&(hr===!1||hr===!0&&Nr.hasOwnProperty(Rt))&&ln("/"+Rt+" "+Rn[Rt].objectNumber+" 0 R");ln(">>")},Oa=function(){if(Object.keys(_n).length>0){for(var Rt in ln("/Shading <<"),_n)_n.hasOwnProperty(Rt)&&_n[Rt]instanceof B&&_n[Rt].objectNumber>=0&&ln("/"+Rt+" "+_n[Rt].objectNumber+" 0 R");Oi.publish("putShadingPatternDict"),ln(">>")}},Zi=function(Rt){if(Object.keys(_n).length>0){for(var rn in ln("/Pattern <<"),_n)_n.hasOwnProperty(rn)&&_n[rn]instanceof Kt.TilingPattern&&_n[rn].objectNumber>=0&&_n[rn].objectNumber<Rt&&ln("/"+rn+" "+_n[rn].objectNumber+" 0 R");Oi.publish("putTilingPatternDict"),ln(">>")}},Gi=function(){if(Object.keys(Kn).length>0){var Rt;for(Rt in ln("/ExtGState <<"),Kn)Kn.hasOwnProperty(Rt)&&Kn[Rt].objectNumber>=0&&ln("/"+Rt+" "+Kn[Rt].objectNumber+" 0 R");Oi.publish("putGStateDict"),ln(">>")}},La=function(Rt){Ir(Rt.resourcesOid,!0),ln("<<"),ln("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Aa(),Oa(),Zi(Rt.objectOid),Gi(),ra(),ln(">>"),ln("endobj")},va=function(){var Rt=[];Jn(),Ni(),ta(),ma(Rt),Oi.publish("putResources"),Rt.forEach(La),La({resourcesOid:Zt,objectOid:Number.MAX_SAFE_INTEGER}),Oi.publish("postPutResources")},Ci=function(){Oi.publish("putAdditionalObjects");for(var Rt=0;Rt<gi.length;Rt++){var rn=gi[Rt];Ir(rn.objId,!0),ln(rn.content),ln("endobj")}Oi.publish("postPutAdditionalObjects")},Sa=function(Rt){Un[Rt.fontName]=Un[Rt.fontName]||{},Un[Rt.fontName][Rt.fontStyle]=Rt.id},Da=function(Rt,rn,On,vt,se){var ye={id:"F"+(Object.keys(Rn).length+1).toString(10),postScriptName:Rt,fontName:rn,fontStyle:On,encoding:vt,isStandardFont:se||!1,metadata:{}};return Oi.publish("addFont",{font:ye,instance:this}),Rn[ye.id]=ye,Sa(ye),ye.id},Na=function(Rt){for(var rn=0,On=Fi.length;rn<On;rn++){var vt=Da.call(this,Rt[rn][0],Rt[rn][1],Rt[rn][2],Fi[rn][3],!0);hr===!1&&(Nr[vt]=!0);var se=Rt[rn][0].split("-");Sa({id:vt,fontName:se[0],fontStyle:se[1]||""})}Oi.publish("addFonts",{fonts:Rn,dictionary:Un})},Ua=function(Rt){return Rt.foo=function(){try{return Rt.apply(this,arguments)}catch(vt){var rn=vt.stack||"";~rn.indexOf(" at ")&&(rn=rn.split(" at ")[1]);var On="Error in function "+rn.split(`
|
|
|
`)[0].split("<")[0]+": "+vt.message;if(!I.console)throw new Error(On);I.console.error(On,vt),I.alert&&alert(On)}},Rt.foo.bar=Rt,Rt.foo},Pa=function(Rt,rn){var On,vt,se,ye,Se,Ue,ht,Nt,br;if(se=(rn=rn||{}).sourceEncoding||"Unicode",Se=rn.outputEncoding,(rn.autoencode||Se)&&Rn[Rr].metadata&&Rn[Rr].metadata[se]&&Rn[Rr].metadata[se].encoding&&(ye=Rn[Rr].metadata[se].encoding,!Se&&Rn[Rr].encoding&&(Se=Rn[Rr].encoding),!Se&&ye.codePages&&(Se=ye.codePages[0]),typeof Se=="string"&&(Se=ye[Se]),Se)){for(ht=!1,Ue=[],On=0,vt=Rt.length;On<vt;On++)(Nt=Se[Rt.charCodeAt(On)])?Ue.push(String.fromCharCode(Nt)):Ue.push(Rt[On]),Ue[On].charCodeAt(0)>>8&&(ht=!0);Rt=Ue.join("")}for(On=Rt.length;ht===void 0&&On!==0;)Rt.charCodeAt(On-1)>>8&&(ht=!0),On--;if(!ht)return Rt;for(Ue=rn.noBOM?[]:[254,255],On=0,vt=Rt.length;On<vt;On++){if((br=(Nt=Rt.charCodeAt(On))>>8)>>8)throw new Error("Character at position "+On+" of string '"+Rt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ue.push(br),Ue.push(Nt-(br<<8))}return String.fromCharCode.apply(void 0,Ue)},za=Kt.__private__.pdfEscape=Kt.pdfEscape=function(Tt,Rt){return Pa(Tt,Rt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},xa=Kt.__private__.beginPage=function(Tt){Wi[++yi]=[],li[yi]={objId:0,contentsObjId:0,userUnit:Number(wt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Tt[0]),topRightY:Number(Tt[1])}},ia(yi),pi(Wi[Ur])},ja=function(Rt,rn){var On,vt,se;switch(Be=rn||Be,typeof Rt=="string"&&(On=Br(Rt.toLowerCase()),Array.isArray(On)&&(vt=On[0],se=On[1])),Array.isArray(Rt)&&(vt=Rt[0]*Wr,se=Rt[1]*Wr),isNaN(vt)&&(vt=Je[0],se=Je[1]),(vt>14400||se>14400)&&(m.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),vt=Math.min(14400,vt),se=Math.min(14400,se)),Je=[vt,se],Be.substr(0,1)){case"l":se>vt&&(Je=[se,vt]);break;case"p":vt>se&&(Je=[se,vt])}xa(Je),_s(nl),ln(Bo),no!==0&&ln(no+" J"),vo!==0&&ln(vo+" j"),Oi.publish("addPage",{pageNumber:yi})},io=function(Rt){Rt>0&&Rt<=yi&&(Wi.splice(Rt,1),li.splice(Rt,1),yi--,Ur>yi&&(Ur=yi),this.setPage(Ur))},ia=function(Rt){Rt>0&&Rt<=yi&&(Ur=Rt)},lo=Kt.__private__.getNumberOfPages=Kt.getNumberOfPages=function(){return Wi.length-1},Xa=function(Rt,rn,On){var vt,se=void 0;return On=On||{},Rt=Rt!==void 0?Rt:Rn[Rr].fontName,rn=rn!==void 0?rn:Rn[Rr].fontStyle,vt=Rt.toLowerCase(),Un[vt]!==void 0&&Un[vt][rn]!==void 0?se=Un[vt][rn]:Un[Rt]!==void 0&&Un[Rt][rn]!==void 0?se=Un[Rt][rn]:On.disableWarning===!1&&m.warn("Unable to look up font label for font '"+Rt+"', '"+rn+"'. Refer to getFontList() for available fonts."),se||On.noFallback||(se=Un.times[rn])==null&&(se=Un.times.normal),se},Ta=Kt.__private__.putInfo=function(){var Tt=Mr(),Rt=function(vt){return vt};for(var rn in wr!==null&&(Rt=Ya.encryptor(Tt,0)),ln("<<"),ln("/Producer ("+za(Rt("jsPDF "+U.version))+")"),_r)_r.hasOwnProperty(rn)&&_r[rn]&&ln("/"+rn.substr(0,1).toUpperCase()+rn.substr(1)+" ("+za(Rt(_r[rn]))+")");ln("/CreationDate ("+za(Rt(ui))+")"),ln(">>"),ln("endobj")},Qa=Kt.__private__.putCatalog=function(Tt){var Rt=(Tt=Tt||{}).rootDictionaryObjId||Sr;switch(Mr(),ln("<<"),ln("/Type /Catalog"),ln("/Pages "+Rt+" 0 R"),Vt||(Vt="fullwidth"),Vt){case"fullwidth":ln("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ln("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ln("/OpenAction [3 0 R /Fit]");break;case"original":ln("/OpenAction [3 0 R /XYZ null null 1]");break;default:var rn=""+Vt;rn.substr(rn.length-1)==="%"&&(Vt=parseInt(Vt)/100),typeof Vt=="number"&&ln("/OpenAction [3 0 R /XYZ null null "+Ii(Vt)+"]")}switch(Lt||(Lt="continuous"),Lt){case"continuous":ln("/PageLayout /OneColumn");break;case"single":ln("/PageLayout /SinglePage");break;case"two":case"twoleft":ln("/PageLayout /TwoColumnLeft");break;case"tworight":ln("/PageLayout /TwoColumnRight")}fn&&ln("/PageMode /"+fn),Oi.publish("putCatalog"),ln(">>"),ln("endobj")},Ra=Kt.__private__.putTrailer=function(){ln("trailer"),ln("<<"),ln("/Size "+(Gn+1)),ln("/Root "+Gn+" 0 R"),ln("/Info "+(Gn-1)+" 0 R"),wr!==null&&ln("/Encrypt "+Ya.oid+" 0 R"),ln("/ID [ <"+qn+"> <"+qn+"> ]"),ln(">>")},_a=Kt.__private__.putHeader=function(){ln("%PDF-"+un),ln("%\xBA\xDF\xAC\xE0")},yo=Kt.__private__.putXRef=function(){var Tt="0000000000";ln("xref"),ln("0 "+(Gn+1)),ln("0000000000 65535 f ");for(var Rt=1;Rt<=Gn;Rt++)typeof $n[Rt]=="function"?ln((Tt+$n[Rt]()).slice(-10)+" 00000 n "):$n[Rt]!==void 0?ln((Tt+$n[Rt]).slice(-10)+" 00000 n "):ln("0000000000 00000 n ")},ao=Kt.__private__.buildDocument=function(){Ha(),pi(hi),Oi.publish("buildDocument"),_a(),Fn(),Ci(),va(),wr!==null&&qi(),Ta(),Qa();var Tt=fi;return yo(),Ra(),ln("startxref"),ln(""+Tt),ln("%%EOF"),pi(Wi[Ur]),hi.join(`
|
|
|
`)},bo=Kt.__private__.getBlob=function(Tt){return new Blob([Ji(Tt)],{type:"application/pdf"})},co=Kt.output=Kt.__private__.output=Ua(function(Tt,Rt){switch(typeof(Rt=Rt||{})=="string"?Rt={filename:Rt}:Rt.filename=Rt.filename||"generated.pdf",Tt){case void 0:return ao();case"save":Kt.save(Rt.filename);break;case"arraybuffer":return Ji(ao());case"blob":return bo(ao());case"bloburi":case"bloburl":if(I.URL!==void 0&&typeof I.URL.createObjectURL=="function")return I.URL&&I.URL.createObjectURL(bo(ao()))||void 0;m.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var rn="",On=ao();try{rn=a(On)}catch(Zr){rn=a(unescape(encodeURIComponent(On)))}return"data:application/pdf;filename="+Rt.filename+";base64,"+rn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(I)==="[object Window]"){var vt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",se=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Rt.pdfObjectUrl&&(vt=Rt.pdfObjectUrl,se="");var ye='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+vt+'"'+se+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Rt)+");</script></body></html>",Se=I.open();return Se!==null&&Se.document.write(ye),Se}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(I)==="[object Window]"){var Ue='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Rt.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Rt.filename+'" width="500px" height="400px" /></body></html>',ht=I.open();if(ht!==null){ht.document.write(Ue);var Nt=this;ht.document.documentElement.querySelector("#pdfViewer").onload=function(){ht.document.title=Rt.filename,ht.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Nt.output("bloburl"))}}return ht}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(I)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var br='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Rt)+'"></iframe></body></html>',Or=I.open();if(Or!==null&&(Or.document.write(br),Or.document.title=Rt.filename),Or||typeof safari=="undefined")return Or;break;case"datauri":case"dataurl":return I.document.location.href=this.output("datauristring",Rt);default:return null}}),uo=function(Rt){return Array.isArray(ki)===!0&&ki.indexOf(Rt)>-1};switch(He){case"pt":Wr=1;break;case"mm":Wr=72/25.4;break;case"cm":Wr=72/2.54;break;case"in":Wr=72;break;case"px":Wr=uo("px_scaling")==1?.75:96/72;break;case"pc":case"em":Wr=12;break;case"ex":Wr=6;break;default:if(typeof He!="number")throw new Error("Invalid unit: "+He);Wr=He}var Ya=null;Mi(),Qn();var eo=function(Rt){return wr!==null?Ya.encryptor(Rt,0):function(rn){return rn}},wa=Kt.__private__.getPageInfo=Kt.getPageInfo=function(Tt){if(isNaN(Tt)||Tt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:li[Tt].objId,pageNumber:Tt,pageContext:li[Tt]}},ro=Kt.__private__.getPageInfoByObjId=function(Tt){if(isNaN(Tt)||Tt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Rt in li)if(li[Rt].objId===Tt)break;return wa(Rt)},fo=Kt.__private__.getCurrentPageInfo=Kt.getCurrentPageInfo=function(){return{objId:li[Ur].objId,pageNumber:Ur,pageContext:li[Ur]}};Kt.addPage=function(){return ja.apply(this,arguments),this},Kt.setPage=function(){return ia.apply(this,arguments),pi.call(this,Wi[Ur]),this},Kt.insertPage=function(Tt){return this.addPage(),this.movePage(Ur,Tt),this},Kt.movePage=function(Tt,Rt){var rn,On;if(Tt>Rt){rn=Wi[Tt],On=li[Tt];for(var vt=Tt;vt>Rt;vt--)Wi[vt]=Wi[vt-1],li[vt]=li[vt-1];Wi[Rt]=rn,li[Rt]=On,this.setPage(Rt)}else if(Tt<Rt){rn=Wi[Tt],On=li[Tt];for(var se=Tt;se<Rt;se++)Wi[se]=Wi[se+1],li[se]=li[se+1];Wi[Rt]=rn,li[Rt]=On,this.setPage(Rt)}return this},Kt.deletePage=function(){return io.apply(this,arguments),this},Kt.__private__.text=Kt.text=function(Tt,Rt,rn,On,vt){var se,ye,Se,Ue,ht,Nt,br,Or,Zr,Tn=(On=On||{}).scope||this;if(typeof Tt=="number"&&typeof Rt=="number"&&(typeof rn=="string"||Array.isArray(rn))){var Hn=rn;rn=Rt,Rt=Tt,Tt=Hn}if(arguments[3]instanceof Wn==!1?(Se=arguments[4],Ue=arguments[5],L()(br=arguments[3])==="object"&&br!==null||(typeof Se=="string"&&(Ue=Se,Se=null),typeof br=="string"&&(Ue=br,br=null),typeof br=="number"&&(Se=br,br=null),On={flags:br,angle:Se,align:Ue})):(bi("The transform parameter of text() with a Matrix value"),Zr=vt),isNaN(Rt)||isNaN(rn)||Tt==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Tt.length===0)return Tn;var si="",xi=!1,Ri=typeof On.lineHeightFactor=="number"?On.lineHeightFactor:Xo,sa=Tn.internal.scaleFactor;function ya(Uo){return Uo=Uo.split(" ").join(Array(On.TabLen||9).join(" ")),za(Uo,br)}function Ja(Uo){for(var Io,Zo=Uo.concat(),xo=[],Ws=Zo.length;Ws--;)typeof(Io=Zo.shift())=="string"?xo.push(Io):Array.isArray(Uo)&&(Io.length===1||Io[1]===void 0&&Io[2]===void 0)?xo.push(Io[0]):xo.push([Io[0],Io[1],Io[2]]);return xo}function $a(Uo,Io){var Zo;if(typeof Uo=="string")Zo=Io(Uo)[0];else if(Array.isArray(Uo)){for(var xo,Ws,Sl=Uo.concat(),xl=[],Bl=Sl.length;Bl--;)typeof(xo=Sl.shift())=="string"?xl.push(Io(xo)[0]):Array.isArray(xo)&&typeof xo[0]=="string"&&(Ws=Io(xo[0],xo[1],xo[2]),xl.push([Ws[0],Ws[1],Ws[2]]));Zo=xl}return Zo}var to=!1,_o=!0;if(typeof Tt=="string")to=!0;else if(Array.isArray(Tt)){var To=Tt.concat();ye=[];for(var Ro,go=To.length;go--;)(typeof(Ro=To.shift())!="string"||Array.isArray(Ro)&&typeof Ro[0]!="string")&&(_o=!1);to=_o}if(to===!1)throw new Error('Type of text must be string or Array. "'+Tt+'" is not recognized.');typeof Tt=="string"&&(Tt=Tt.match(/[\r?\n]/)?Tt.split(/\r\n|\r|\n/g):[Tt]);var So=ea/Tn.internal.scaleFactor,is=So*(Ri-1);switch(On.baseline){case"bottom":rn-=is;break;case"top":rn+=So-is;break;case"hanging":rn+=So-2*is;break;case"middle":rn+=So/2-is}if((Nt=On.maxWidth||0)>0&&(typeof Tt=="string"?Tt=Tn.splitTextToSize(Tt,Nt):Object.prototype.toString.call(Tt)==="[object Array]"&&(Tt=Tt.reduce(function(Uo,Io){return Uo.concat(Tn.splitTextToSize(Io,Nt))},[]))),se={text:Tt,x:Rt,y:rn,options:On,mutex:{pdfEscape:za,activeFontKey:Rr,fonts:Rn,activeFontSize:ea}},Oi.publish("preProcessText",se),Tt=se.text,Se=(On=se.options).angle,Zr instanceof Wn==!1&&Se&&typeof Se=="number"){Se*=Math.PI/180,On.rotationDirection===0&&(Se=-Se),Sn===gr.ADVANCED&&(Se=-Se);var ts=Math.cos(Se),Co=Math.sin(Se);Zr=new Wn(ts,Co,-Co,ts,0,0)}else Se&&Se instanceof Wn&&(Zr=Se);Sn!==gr.ADVANCED||Zr||(Zr=zi),(ht=On.charSpace||Ks)!==void 0&&(si+=ti(Vr(ht))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Or=On.horizontalScale)!==void 0&&(si+=ti(100*Or)+` Tz
|
|
|
`),On.lang;var Yi=-1,Ds=On.renderingMode!==void 0?On.renderingMode:On.stroke,Es=Tn.internal.getCurrentPageInfo().pageContext;switch(Ds){case 0:case!1:case"fill":Yi=0;break;case 1:case!0:case"stroke":Yi=1;break;case 2:case"fillThenStroke":Yi=2;break;case 3:case"invisible":Yi=3;break;case 4:case"fillAndAddForClipping":Yi=4;break;case 5:case"strokeAndAddPathForClipping":Yi=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Yi=6;break;case 7:case"addToPathForClipping":Yi=7}var as=Es.usedRenderingMode!==void 0?Es.usedRenderingMode:-1;Yi!==-1?si+=Yi+` Tr
|
|
|
`:as!==-1&&(si+=`0 Tr
|
|
|
`),Yi!==-1&&(Es.usedRenderingMode=Yi),Ue=On.align||"left";var Qo,hs=ea*Ri,vl=Tn.internal.pageSize.getWidth(),sl=Rn[Rr];ht=On.charSpace||Ks,Nt=On.maxWidth||0,br=Object.assign({autoencode:!0,noBOM:!0},On.flags);var fs=[];if(Object.prototype.toString.call(Tt)==="[object Array]"){var Lo;ye=Ja(Tt),Ue!=="left"&&(Qo=ye.map(function(Uo){return Tn.getStringUnitWidth(Uo,{font:sl,charSpace:ht,fontSize:ea,doKerning:!1})*ea/sa}));var ls,Zs=0;if(Ue==="right"){Rt-=Qo[0],Tt=[],go=ye.length;for(var vs=0;vs<go;vs++)vs===0?(ls=Ho(Rt),Lo=mo(rn)):(ls=Vr(Zs-Qo[vs]),Lo=-hs),Tt.push([ye[vs],ls,Lo]),Zs=Qo[vs]}else if(Ue==="center"){Rt-=Qo[0]/2,Tt=[],go=ye.length;for(var Fs=0;Fs<go;Fs++)Fs===0?(ls=Ho(Rt),Lo=mo(rn)):(ls=Vr((Zs-Qo[Fs])/2),Lo=-hs),Tt.push([ye[Fs],ls,Lo]),Zs=Qo[Fs]}else if(Ue==="left"){Tt=[],go=ye.length;for(var Us=0;Us<go;Us++)Tt.push(ye[Us])}else{if(Ue!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Tt=[],go=ye.length,Nt=Nt!==0?Nt:vl;for(var Rs=0;Rs<go;Rs++)Lo=Rs===0?mo(rn):-hs,ls=Rs===0?Ho(Rt):0,Rs<go-1?fs.push(ti(Vr((Nt-Qo[Rs])/(ye[Rs].split(" ").length-1)))):fs.push(0),Tt.push([ye[Rs],ls,Lo])}}var al=typeof On.R2L=="boolean"?On.R2L:nn;al===!0&&(Tt=$a(Tt,function(Uo,Io,Zo){return[Uo.split("").reverse().join(""),Io,Zo]})),se={text:Tt,x:Rt,y:rn,options:On,mutex:{pdfEscape:za,activeFontKey:Rr,fonts:Rn,activeFontSize:ea}},Oi.publish("postProcessText",se),Tt=se.text,xi=se.mutex.isHex||!1;var $s=Rn[Rr].encoding;$s!=="WinAnsiEncoding"&&$s!=="StandardEncoding"||(Tt=$a(Tt,function(Uo,Io,Zo){return[ya(Uo),Io,Zo]})),ye=Ja(Tt),Tt=[];for(var Ys,js,Ga,ga=0,Wa=1,oo=Array.isArray(ye[0])?Wa:ga,Jo="",Hs=function(Io,Zo,xo){var Ws="";return xo instanceof Wn?(xo=typeof On.angle=="number"?Di(xo,new Wn(1,0,0,1,Io,Zo)):Di(new Wn(1,0,0,1,Io,Zo),xo),Sn===gr.ADVANCED&&(xo=Di(new Wn(1,0,0,-1,0,0),xo)),Ws=xo.join(" ")+` Tm
|
|
|
`):Ws=ti(Io)+" "+ti(Zo)+` Td
|
|
|
`,Ws},bs=0;bs<ye.length;bs++){switch(Jo="",oo){case Wa:Ga=(xi?"<":"(")+ye[bs][0]+(xi?">":")"),Ys=parseFloat(ye[bs][1]),js=parseFloat(ye[bs][2]);break;case ga:Ga=(xi?"<":"(")+ye[bs]+(xi?">":")"),Ys=Ho(Rt),js=mo(rn)}fs!==void 0&&fs[bs]!==void 0&&(Jo=fs[bs]+` Tw
|
|
|
`),bs===0?Tt.push(Jo+Hs(Ys,js,Zr)+Ga):oo===ga?Tt.push(Jo+Ga):oo===Wa&&Tt.push(Jo+Hs(Ys,js,Zr)+Ga)}Tt=oo===ga?Tt.join(` Tj
|
|
|
T* `):Tt.join(` Tj
|
|
|
`),Tt+=` Tj
|
|
|
`;var ws=`BT
|
|
|
/`;return ws+=Rr+" "+ea+` Tf
|
|
|
`,ws+=ti(ea*Ri)+` TL
|
|
|
`,ws+=Yo+`
|
|
|
`,ws+=si,ws+=Tt,ln(ws+="ET"),Nr[Rr]=!0,Tn};var Bi=Kt.__private__.clip=Kt.clip=function(Tt){return ln(Tt==="evenodd"?"W*":"W"),this};Kt.clipEvenOdd=function(){return Bi("evenodd")},Kt.__private__.discardPath=Kt.discardPath=function(){return ln("n"),this};var Ma=Kt.__private__.isValidStyle=function(Tt){var Rt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Tt)!==-1&&(Rt=!0),Rt};Kt.__private__.setDefaultPathOperation=Kt.setDefaultPathOperation=function(Tt){return Ma(Tt)&&(Ft=Tt),this};var Do=Kt.__private__.getStyle=Kt.getStyle=function(Tt){var Rt=Ft;switch(Tt){case"D":case"S":Rt="S";break;case"F":Rt="f";break;case"FD":case"DF":Rt="B";break;case"f":case"f*":case"B":case"B*":Rt=Tt}return Rt},jo=Kt.close=function(){return ln("h"),this};Kt.stroke=function(){return ln("S"),this},Kt.fill=function(Tt){return Vo("f",Tt),this},Kt.fillEvenOdd=function(Tt){return Vo("f*",Tt),this},Kt.fillStroke=function(Tt){return Vo("B",Tt),this},Kt.fillStrokeEvenOdd=function(Tt){return Vo("B*",Tt),this};var Vo=function(Rt,rn){L()(rn)==="object"?Ia(rn,Rt):ln(Rt)},Go=function(Rt){Rt===null||Sn===gr.ADVANCED&&Rt===void 0||(Rt=Do(Rt),ln(Rt))};function wo(Tt,Rt,rn,On,vt){var se=new P(Rt||this.boundingBox,rn||this.xStep,On||this.yStep,this.gState,vt||this.matrix);se.stream=this.stream;var ye=Tt+"$$"+this.cloneIndex+++"$$";return yr(ye,se),se}var Ia=function(Rt,rn){var On=Cn[Rt.key],vt=_n[On];if(vt instanceof B)ln("q"),ln(Po(rn)),vt.gState&&Kt.setGState(vt.gState),ln(Rt.matrix.toString()+" cm"),ln("/"+On+" sh"),ln("Q");else if(vt instanceof P){var se=new Wn(1,0,0,-1,0,gs());Rt.matrix&&(se=se.multiply(Rt.matrix||zi),On=wo.call(vt,Rt.key,Rt.boundingBox,Rt.xStep,Rt.yStep,se).id),ln("q"),ln("/Pattern cs"),ln("/"+On+" scn"),vt.gState&&Kt.setGState(vt.gState),ln(rn),ln("Q")}},Po=function(Rt){switch(Rt){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"}},ds=Kt.moveTo=function(Tt,Rt){return ln(ti(Vr(Tt))+" "+ti(tn(Rt))+" m"),this},ho=Kt.lineTo=function(Tt,Rt){return ln(ti(Vr(Tt))+" "+ti(tn(Rt))+" l"),this},Oo=Kt.curveTo=function(Tt,Rt,rn,On,vt,se){return ln([ti(Vr(Tt)),ti(tn(Rt)),ti(Vr(rn)),ti(tn(On)),ti(Vr(vt)),ti(tn(se)),"c"].join(" ")),this};Kt.__private__.line=Kt.line=function(Tt,Rt,rn,On,vt){if(isNaN(Tt)||isNaN(Rt)||isNaN(rn)||isNaN(On)||!Ma(vt))throw new Error("Invalid arguments passed to jsPDF.line");return Sn===gr.COMPAT?this.lines([[rn-Tt,On-Rt]],Tt,Rt,[1,1],vt||"S"):this.lines([[rn-Tt,On-Rt]],Tt,Rt,[1,1]).stroke()},Kt.__private__.lines=Kt.lines=function(Tt,Rt,rn,On,vt,se){var ye,Se,Ue,ht,Nt,br,Or,Zr,Tn,Hn,si,xi;if(typeof Tt=="number"&&(xi=rn,rn=Rt,Rt=Tt,Tt=xi),On=On||[1,1],se=se||!1,isNaN(Rt)||isNaN(rn)||!Array.isArray(Tt)||!Array.isArray(On)||!Ma(vt)||typeof se!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ds(Rt,rn),ye=On[0],Se=On[1],ht=Tt.length,Hn=Rt,si=rn,Ue=0;Ue<ht;Ue++)(Nt=Tt[Ue]).length===2?(Hn=Nt[0]*ye+Hn,si=Nt[1]*Se+si,ho(Hn,si)):(br=Nt[0]*ye+Hn,Or=Nt[1]*Se+si,Zr=Nt[2]*ye+Hn,Tn=Nt[3]*Se+si,Hn=Nt[4]*ye+Hn,si=Nt[5]*Se+si,Oo(br,Or,Zr,Tn,Hn,si));return se&&jo(),Go(vt),this},Kt.path=function(Tt){for(var Rt=0;Rt<Tt.length;Rt++){var rn=Tt[Rt],On=rn.c;switch(rn.op){case"m":ds(On[0],On[1]);break;case"l":ho(On[0],On[1]);break;case"c":Oo.apply(this,On);break;case"h":jo()}}return this},Kt.__private__.rect=Kt.rect=function(Tt,Rt,rn,On,vt){if(isNaN(Tt)||isNaN(Rt)||isNaN(rn)||isNaN(On)||!Ma(vt))throw new Error("Invalid arguments passed to jsPDF.rect");return Sn===gr.COMPAT&&(On=-On),ln([ti(Vr(Tt)),ti(tn(Rt)),ti(Vr(rn)),ti(Vr(On)),"re"].join(" ")),Go(vt),this},Kt.__private__.triangle=Kt.triangle=function(Tt,Rt,rn,On,vt,se,ye){if(isNaN(Tt)||isNaN(Rt)||isNaN(rn)||isNaN(On)||isNaN(vt)||isNaN(se)||!Ma(ye))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[rn-Tt,On-Rt],[vt-rn,se-On],[Tt-vt,Rt-se]],Tt,Rt,[1,1],ye,!0),this},Kt.__private__.roundedRect=Kt.roundedRect=function(Tt,Rt,rn,On,vt,se,ye){if(isNaN(Tt)||isNaN(Rt)||isNaN(rn)||isNaN(On)||isNaN(vt)||isNaN(se)||!Ma(ye))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Se=4/3*(Math.SQRT2-1);return vt=Math.min(vt,.5*rn),se=Math.min(se,.5*On),this.lines([[rn-2*vt,0],[vt*Se,0,vt,se-se*Se,vt,se],[0,On-2*se],[0,se*Se,-vt*Se,se,-vt,se],[2*vt-rn,0],[-vt*Se,0,-vt,-se*Se,-vt,-se],[0,2*se-On],[0,-se*Se,vt*Se,-se,vt,-se]],Tt+vt,Rt,[1,1],ye,!0),this},Kt.__private__.ellipse=Kt.ellipse=function(Tt,Rt,rn,On,vt){if(isNaN(Tt)||isNaN(Rt)||isNaN(rn)||isNaN(On)||!Ma(vt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var se=4/3*(Math.SQRT2-1)*rn,ye=4/3*(Math.SQRT2-1)*On;return ds(Tt+rn,Rt),Oo(Tt+rn,Rt-ye,Tt+se,Rt-On,Tt,Rt-On),Oo(Tt-se,Rt-On,Tt-rn,Rt-ye,Tt-rn,Rt),Oo(Tt-rn,Rt+ye,Tt-se,Rt+On,Tt,Rt+On),Oo(Tt+se,Rt+On,Tt+rn,Rt+ye,Tt+rn,Rt),Go(vt),this},Kt.__private__.circle=Kt.circle=function(Tt,Rt,rn,On){if(isNaN(Tt)||isNaN(Rt)||isNaN(rn)||!Ma(On))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Tt,Rt,rn,rn,On)},Kt.setFont=function(Tt,Rt,rn){return rn&&(Rt=oi(Rt,rn)),Rr=Xa(Tt,Rt,{disableWarning:!1}),this};var Ka=Kt.__private__.getFont=Kt.getFont=function(){return Rn[Xa.apply(Kt,arguments)]};Kt.__private__.getFontList=Kt.getFontList=function(){var Tt,Rt,rn={};for(Tt in Un)if(Un.hasOwnProperty(Tt))for(Rt in rn[Tt]=[],Un[Tt])Un[Tt].hasOwnProperty(Rt)&&rn[Tt].push(Rt);return rn},Kt.addFont=function(Tt,Rt,rn,On,vt){var se=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&se.indexOf(arguments[3])!==-1?vt=arguments[3]:arguments[3]&&se.indexOf(arguments[3])==-1&&(rn=oi(rn,On)),vt=vt||"Identity-H",Da.call(this,Tt,Rt,rn,vt)};var Xo,nl=$e.lineWidth||.200025,Cs=Kt.__private__.getLineWidth=Kt.getLineWidth=function(){return nl},_s=Kt.__private__.setLineWidth=Kt.setLineWidth=function(Tt){return nl=Tt,ln(ti(Vr(Tt))+" w"),this};Kt.__private__.setLineDash=U.API.setLineDash=U.API.setLineDashPattern=function(Tt,Rt){if(Tt=Tt||[],Rt=Rt||0,isNaN(Rt)||!Array.isArray(Tt))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Tt=Tt.map(function(rn){return ti(Vr(rn))}).join(" "),Rt=ti(Vr(Rt)),ln("["+Tt+"] "+Rt+" d"),this};var xs=Kt.__private__.getLineHeight=Kt.getLineHeight=function(){return ea*Xo};Kt.__private__.getLineHeight=Kt.getLineHeight=function(){return ea*Xo};var ps=Kt.__private__.setLineHeightFactor=Kt.setLineHeightFactor=function(Tt){return typeof(Tt=Tt||1.15)=="number"&&(Xo=Tt),this},Os=Kt.__private__.getLineHeightFactor=Kt.getLineHeightFactor=function(){return Xo};ps($e.lineHeight);var Ho=Kt.__private__.getHorizontalCoordinate=function(Tt){return Vr(Tt)},mo=Kt.__private__.getVerticalCoordinate=function(Tt){return Sn===gr.ADVANCED?Tt:li[Ur].mediaBox.topRightY-li[Ur].mediaBox.bottomLeftY-Vr(Tt)},es=Kt.__private__.getHorizontalCoordinateString=Kt.getHorizontalCoordinateString=function(Tt){return ti(Ho(Tt))},Ko=Kt.__private__.getVerticalCoordinateString=Kt.getVerticalCoordinateString=function(Tt){return ti(mo(Tt))},Bo=$e.strokeColor||"0 G";Kt.__private__.getStrokeColor=Kt.getDrawColor=function(){return jr(Bo)},Kt.__private__.setStrokeColor=Kt.setDrawColor=function(Tt,Rt,rn,On){return Bo=Kr({ch1:Tt,ch2:Rt,ch3:rn,ch4:On,pdfColorType:"draw",precision:2}),ln(Bo),this};var zr=$e.fillColor||"0 g";Kt.__private__.getFillColor=Kt.getFillColor=function(){return jr(zr)},Kt.__private__.setFillColor=Kt.setFillColor=function(Tt,Rt,rn,On){return zr=Kr({ch1:Tt,ch2:Rt,ch3:rn,ch4:On,pdfColorType:"fill",precision:2}),ln(zr),this};var Yo=$e.textColor||"0 g",il=Kt.__private__.getTextColor=Kt.getTextColor=function(){return jr(Yo)};Kt.__private__.setTextColor=Kt.setTextColor=function(Tt,Rt,rn,On){return Yo=Kr({ch1:Tt,ch2:Rt,ch3:rn,ch4:On,pdfColorType:"text",precision:3}),this};var Ks=$e.charSpace,Ps=Kt.__private__.getCharSpace=Kt.getCharSpace=function(){return parseFloat(Ks||0)};Kt.__private__.setCharSpace=Kt.setCharSpace=function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ks=Tt,this};var no=0;Kt.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},Kt.__private__.setLineCap=Kt.setLineCap=function(Tt){var Rt=Kt.CapJoinStyles[Tt];if(Rt===void 0)throw new Error("Line cap style of '"+Tt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return no=Rt,ln(Rt+" J"),this};var vo=0;Kt.__private__.setLineJoin=Kt.setLineJoin=function(Tt){var Rt=Kt.CapJoinStyles[Tt];if(Rt===void 0)throw new Error("Line join style of '"+Tt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return vo=Rt,ln(Rt+" j"),this},Kt.__private__.setLineMiterLimit=Kt.__private__.setMiterLimit=Kt.setLineMiterLimit=Kt.setMiterLimit=function(Tt){if(Tt=Tt||0,isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ln(ti(Vr(Tt))+" M"),this},Kt.GState=k,Kt.setGState=function(Tt){(Tt=typeof Tt=="string"?Kn[Yn[Tt]]:Fo(null,Tt)).equals(ni)||(ln("/"+Tt.id+" gs"),ni=Tt)};var Fo=function(Rt,rn){if(!Rt||!Yn[Rt]){var On=!1;for(var vt in Kn)if(Kn.hasOwnProperty(vt)&&Kn[vt].equals(rn)){On=!0;break}if(On)rn=Kn[vt];else{var se="GS"+(Object.keys(Kn).length+1).toString(10);Kn[se]=rn,rn.id=se}return Rt&&(Yn[Rt]=rn.id),Oi.publish("addGState",rn),rn}};Kt.addGState=function(Tt,Rt){return Fo(Tt,Rt),this},Kt.saveGraphicsState=function(){return ln("q"),wn.push({key:Rr,size:ea,color:Yo}),this},Kt.restoreGraphicsState=function(){ln("Q");var Tt=wn.pop();return Rr=Tt.key,ea=Tt.size,Yo=Tt.color,ni=null,this},Kt.setCurrentTransformationMatrix=function(Tt){return ln(Tt.toString()+" cm"),this},Kt.comment=function(Tt){return ln("#"+Tt),this};var ns=function(Rt,rn){var On=Rt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return On},set:function(Se){isNaN(Se)||(On=parseFloat(Se))}});var vt=rn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return vt},set:function(Se){isNaN(Se)||(vt=parseFloat(Se))}});var se="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return se},set:function(Se){se=Se.toString()}}),this},ys=function(Rt,rn,On,vt){ns.call(this,Rt,rn),this.type="rect";var se=On||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return se},set:function(Ue){isNaN(Ue)||(se=parseFloat(Ue))}});var ye=vt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ye},set:function(Ue){isNaN(Ue)||(ye=parseFloat(Ue))}}),this},ms=function(){this.page=yi,this.currentPage=Ur,this.pages=Wi.slice(0),this.pagesContext=li.slice(0),this.x=on,this.y=En,this.matrix=An,this.width=Xs(Ur),this.height=gs(Ur),this.outputDestination=$i,this.id="",this.objectNumber=-1};ms.prototype.restore=function(){yi=this.page,Ur=this.currentPage,li=this.pagesContext,Wi=this.pages,on=this.x,En=this.y,An=this.matrix,Bs(Ur,this.width),Ns(Ur,this.height),$i=this.outputDestination};var Is=function(Rt,rn,On,vt,se){Li.push(new ms),yi=Ur=0,Wi=[],on=Rt,En=rn,An=se,xa([On,vt])},ol=function(Rt){if(mi[Rt])Li.pop().restore();else{var rn=new ms,On="Xo"+(Object.keys(Si).length+1).toString(10);rn.id=On,mi[Rt]=On,Si[On]=rn,Oi.publish("addFormObject",rn),Li.pop().restore()}};for(var Ls in Kt.beginFormObject=function(Tt,Rt,rn,On,vt){return Is(Tt,Rt,rn,On,vt),this},Kt.endFormObject=function(Tt){return ol(Tt),this},Kt.doFormObject=function(Tt,Rt){var rn=Si[mi[Tt]];return ln("q"),ln(Rt.toString()+" cm"),ln("/"+rn.id+" Do"),ln("Q"),this},Kt.getFormObject=function(Tt){var Rt=Si[mi[Tt]];return{x:Rt.x,y:Rt.y,width:Rt.width,height:Rt.height,matrix:Rt.matrix}},Kt.save=function(Tt,Rt){return Tt=Tt||"generated.pdf",(Rt=Rt||{}).returnPromise=Rt.returnPromise||!1,Rt.returnPromise===!1?(r(bo(ao()),Tt),typeof r.unload=="function"&&I.setTimeout&&setTimeout(r.unload,911),this):new Promise(function(rn,On){try{var vt=r(bo(ao()),Tt);typeof r.unload=="function"&&I.setTimeout&&setTimeout(r.unload,911),rn(vt)}catch(se){On(se.message)}})},U.API)U.API.hasOwnProperty(Ls)&&(Ls==="events"&&U.API.events.length?function(Tt,Rt){var rn,On,vt;for(vt=Rt.length-1;vt!==-1;vt--)rn=Rt[vt][0],On=Rt[vt][1],Tt.subscribe.apply(Tt,[rn].concat(typeof On=="function"?[On]:On))}(Oi,U.API.events):Kt[Ls]=U.API[Ls]);var Xs=Kt.getPageWidth=function(Tt){return(li[Tt=Tt||Ur].mediaBox.topRightX-li[Tt].mediaBox.bottomLeftX)/Wr},Bs=Kt.setPageWidth=function(Tt,Rt){li[Tt].mediaBox.topRightX=Rt*Wr+li[Tt].mediaBox.bottomLeftX},gs=Kt.getPageHeight=function(Tt){return(li[Tt=Tt||Ur].mediaBox.topRightY-li[Tt].mediaBox.bottomLeftY)/Wr},Ns=Kt.setPageHeight=function(Tt,Rt){li[Tt].mediaBox.topRightY=Rt*Wr+li[Tt].mediaBox.bottomLeftY};return Kt.internal={pdfEscape:za,getStyle:Do,getFont:Ka,getFontSize:Xr,getCharSpace:Ps,getTextColor:il,getLineHeight:xs,getLineHeightFactor:Os,getLineWidth:Cs,write:_i,getHorizontalCoordinate:Ho,getVerticalCoordinate:mo,getCoordinateString:es,getVerticalCoordinateString:Ko,collections:{},newObject:Mr,newAdditionalObject:Gt,newObjectDeferred:Qr,newObjectDeferredBegin:Ir,getFilters:pn,putStream:sn,events:Oi,scaleFactor:Wr,pageSize:{getWidth:function(){return Xs(Ur)},setWidth:function(Rt){Bs(Ur,Rt)},getHeight:function(){return gs(Ur)},setHeight:function(Rt){Ns(Ur,Rt)}},encryptionOptions:wr,encryption:Ya,getEncryptor:eo,output:co,getNumberOfPages:lo,pages:Wi,out:ln,f2:Ii,f3:gn,getPageInfo:wa,getPageInfoByObjId:ro,getCurrentPageInfo:fo,getPDFVersion:ar,Point:ns,Rectangle:ys,Matrix:Wn,hasHotfix:uo},Object.defineProperty(Kt.internal.pageSize,"width",{get:function(){return Xs(Ur)},set:function(Rt){Bs(Ur,Rt)},enumerable:!0,configurable:!0}),Object.defineProperty(Kt.internal.pageSize,"height",{get:function(){return gs(Ur)},set:function(Rt){Ns(Ur,Rt)},enumerable:!0,configurable:!0}),Na.call(Kt,Fi),Rr="F1",ja(Je,Be),Oi.publish("initialized"),Kt}O.prototype.lsbFirstWord=function($e){return String.fromCharCode($e>>0&255,$e>>8&255,$e>>16&255,$e>>24&255)},O.prototype.toHexString=function($e){return $e.split("").map(function(_e){return("0"+(255&_e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},O.prototype.hexToBytes=function($e){for(var _e=[],Be=0;Be<$e.length;Be+=2)_e.push(String.fromCharCode(parseInt($e.substr(Be,2),16)));return _e.join("")},O.prototype.processOwnerPassword=function($e,_e){return T(b(_e).substr(0,5),$e)},O.prototype.encryptor=function($e,_e){var Be=b(this.encryptionKey+String.fromCharCode(255&$e,$e>>8&255,$e>>16&255,255&_e,_e>>8&255)).substr(0,10);return function(He){return T(Be,He)}},k.prototype.equals=function($e){var _e,Be="id,objectNumber,equals";if(!$e||L()($e)!==L()(this))return!1;var He=0;for(_e in this)if(!(Be.indexOf(_e)>=0)){if(this.hasOwnProperty(_e)&&!$e.hasOwnProperty(_e))return!1;if(this[_e]!==$e[_e])return!1;He++}for(_e in $e)$e.hasOwnProperty(_e)&&Be.indexOf(_e)<0&&He--;return He===0},U.API={events:[]},U.version="2.5.1";var j=U.API,H=1,W=function(_e){return _e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},G=function(_e){return _e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},V=function(_e){return _e.toFixed(2)},Z=function(_e){return _e.toFixed(5)};j.__acroform__={};var Y=function(_e,Be){_e.prototype=Object.create(Be.prototype),_e.prototype.constructor=_e},Q=function(_e){return _e*H},oe=function(_e){var Be=new ee,He=ie.internal.getHeight(_e)||0,Je=ie.internal.getWidth(_e)||0;return Be.BBox=[0,0,Number(V(Je)),Number(V(He))],Be},ue=j.__acroform__.setBit=function($e,_e){if($e=$e||0,_e=_e||0,isNaN($e)||isNaN(_e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return $e|=1<<_e},Le=j.__acroform__.clearBit=function($e,_e){if($e=$e||0,_e=_e||0,isNaN($e)||isNaN(_e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return $e&=~(1<<_e)},me=j.__acroform__.getBit=function($e,_e){if(isNaN($e)||isNaN(_e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return($e&1<<_e)==0?0:1},Ie=j.__acroform__.getBitForPdf=function($e,_e){if(isNaN($e)||isNaN(_e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return me($e,_e-1)},X=j.__acroform__.setBitForPdf=function($e,_e){if(isNaN($e)||isNaN(_e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return ue($e,_e-1)},q=j.__acroform__.clearBitForPdf=function($e,_e){if(isNaN($e)||isNaN(_e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Le($e,_e-1)},We=j.__acroform__.calculateCoordinates=function($e,_e){var Be=_e.internal.getHorizontalCoordinate,He=_e.internal.getVerticalCoordinate,Je=$e[0],Ye=$e[1],et=$e[2],wt=$e[3],ut={};return ut.lowerLeft_X=Be(Je)||0,ut.lowerLeft_Y=He(Ye+wt)||0,ut.upperRight_X=Be(Je+et)||0,ut.upperRight_Y=He(Ye)||0,[Number(V(ut.lowerLeft_X)),Number(V(ut.lowerLeft_Y)),Number(V(ut.upperRight_X)),Number(V(ut.upperRight_Y))]},$=function(_e){if(_e.appearanceStreamContent)return _e.appearanceStreamContent;if(_e.V||_e.DV){var Be=[],He=_e._V||_e.DV,Je=J(_e,He),Ye=_e.scope.internal.getFont(_e.fontName,_e.fontStyle).id;Be.push("/Tx BMC"),Be.push("q"),Be.push("BT"),Be.push(_e.scope.__private__.encodeColorString(_e.color)),Be.push("/"+Ye+" "+V(Je.fontSize)+" Tf"),Be.push("1 0 0 1 0 0 Tm"),Be.push(Je.text),Be.push("ET"),Be.push("Q"),Be.push("EMC");var et=oe(_e);return et.scope=_e.scope,et.stream=Be.join(`
|
|
|
`),et}},J=function(_e,Be){var He=_e.fontSize===0?_e.maxFontSize:_e.fontSize,Je={text:"",fontSize:""},Ye=(Be=(Be=Be.substr(0,1)=="("?Be.substr(1):Be).substr(Be.length-1)==")"?Be.substr(0,Be.length-1):Be).split(" ");Ye=_e.multiline?Ye.map(function(Vr){return Vr.split(`
|
|
|
`)}):Ye.map(function(Vr){return[Vr]});var et=He,wt=ie.internal.getHeight(_e)||0;wt=wt<0?-wt:wt;var ut=ie.internal.getWidth(_e)||0;ut=ut<0?-ut:ut;var Ft=function(xn,tn,ui){if(xn+1<Ye.length){var qn=tn+" "+Ye[xn+1][0];return le(qn,_e,ui).width<=ut-4}return!1};et++;e:for(;et>0;){Be="",et--;var wr,hr,Nr=le("3",_e,et).height,Kt=_e.multiline?wt-et:(wt-Nr)/2,un=Kt+=2,ar=0,Gr=0,Br=0;if(et<=0){Be=`(...) Tj
|
|
|
`,Be+="% Width of Text: "+le(Be,_e,et=12).width+", FieldWidth:"+ut+`
|
|
|
`;break}for(var gr="",Sn=0,Pn=0;Pn<Ye.length;Pn++)if(Ye.hasOwnProperty(Pn)){var ii=!1;if(Ye[Pn].length!==1&&Br!==Ye[Pn].length-1){if((Nr+2)*(Sn+2)+2>wt)continue e;gr+=Ye[Pn][Br],ii=!0,Gr=Pn,Pn--}else{gr=(gr+=Ye[Pn][Br]+" ").substr(gr.length-1)==" "?gr.substr(0,gr.length-1):gr;var oi=parseInt(Pn),ti=Ft(oi,gr,et),bi=Pn>=Ye.length-1;if(ti&&!bi){gr+=" ",Br=0;continue}if(ti||bi){if(bi)Gr=oi;else if(_e.multiline&&(Nr+2)*(Sn+2)+2>wt)continue e}else{if(!_e.multiline)continue e;if((Nr+2)*(Sn+2)+2>wt)continue e;Gr=oi}}for(var kn="",Ii=ar;Ii<=Gr;Ii++){var gn=Ye[Ii];if(_e.multiline){if(Ii===Gr){kn+=gn[Br]+" ",Br=(Br+1)%gn.length;continue}if(Ii===ar){kn+=gn[gn.length-1]+" ";continue}}kn+=gn[0]+" "}switch(kn=kn.substr(kn.length-1)==" "?kn.substr(0,kn.length-1):kn,hr=le(kn,_e,et).width,_e.textAlign){case"right":wr=ut-hr-2;break;case"center":wr=(ut-hr)/2;break;case"left":default:wr=2}Be+=V(wr)+" "+V(un)+` Td
|
|
|
`,Be+="("+W(kn)+`) Tj
|
|
|
`,Be+=-V(wr)+` 0 Td
|
|
|
`,un=-(et+2),hr=0,ar=ii?Gr:Gr+1,Sn++,gr=""}break}return Je.text=Be,Je.fontSize=et,Je},le=function(_e,Be,He){var Je=Be.scope.internal.getFont(Be.fontName,Be.fontStyle),Ye=Be.scope.getStringUnitWidth(_e,{font:Je,fontSize:parseFloat(He),charSpace:0})*parseFloat(He);return{height:Be.scope.getStringUnitWidth("3",{font:Je,fontSize:parseFloat(He),charSpace:0})*parseFloat(He)*1.5,width:Ye}},de={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Ne=function(_e,Be){var He={type:"reference",object:_e};Be.internal.getPageInfo(_e.page).pageContext.annotations.find(function(Je){return Je.type===He.type&&Je.object===He.object})===void 0&&Be.internal.getPageInfo(_e.page).pageContext.annotations.push(He)},we=function(_e,Be){for(var He in _e)if(_e.hasOwnProperty(He)){var Je=He,Ye=_e[He];Be.internal.newObjectDeferredBegin(Ye.objId,!0),L()(Ye)==="object"&&typeof Ye.putStream=="function"&&Ye.putStream(),delete _e[Je]}},De=function(_e,Be){if(Be.scope=_e,_e.internal!==void 0&&(_e.internal.acroformPlugin===void 0||_e.internal.acroformPlugin.isInitialized===!1)){if(Ve.FieldNum=0,_e.internal.acroformPlugin=JSON.parse(JSON.stringify(de)),_e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");H=_e.internal.scaleFactor,_e.internal.acroformPlugin.acroFormDictionaryRoot=new Ae,_e.internal.acroformPlugin.acroFormDictionaryRoot.scope=_e,_e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=_e.internal.events.subscribe("postPutResources",function(){!function(He){He.internal.events.unsubscribe(He.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete He.internal.acroformPlugin.acroFormDictionaryRoot._eventID,He.internal.acroformPlugin.printedOut=!0}(_e)}),_e.internal.events.subscribe("buildDocument",function(){!function(He){He.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Je=He.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ye in Je)if(Je.hasOwnProperty(Ye)){var et=Je[Ye];et.objId=void 0,et.hasAnnotation&&Ne(et,He)}}(_e)}),_e.internal.events.subscribe("putCatalog",function(){!function(He){if(He.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");He.internal.write("/AcroForm "+He.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(_e)}),_e.internal.events.subscribe("postPutPages",function(He){!function(Je,Ye){var et=!Je;for(var wt in Je||(Ye.internal.newObjectDeferredBegin(Ye.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ye.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Je=Je||Ye.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Je.hasOwnProperty(wt)){var ut=Je[wt],Ft=[],wr=ut.Rect;if(ut.Rect&&(ut.Rect=We(ut.Rect,Ye)),Ye.internal.newObjectDeferredBegin(ut.objId,!0),ut.DA=ie.createDefaultAppearanceStream(ut),L()(ut)==="object"&&typeof ut.getKeyValueListForStream=="function"&&(Ft=ut.getKeyValueListForStream()),ut.Rect=wr,ut.hasAppearanceStream&&!ut.appearanceStreamContent){var hr=$(ut);Ft.push({key:"AP",value:"<</N "+hr+">>"}),Ye.internal.acroformPlugin.xForms.push(hr)}if(ut.appearanceStreamContent){var Nr="";for(var Kt in ut.appearanceStreamContent)if(ut.appearanceStreamContent.hasOwnProperty(Kt)){var un=ut.appearanceStreamContent[Kt];if(Nr+="/"+Kt+" ",Nr+="<<",Object.keys(un).length>=1||Array.isArray(un)){for(var wt in un)if(un.hasOwnProperty(wt)){var ar=un[wt];typeof ar=="function"&&(ar=ar.call(Ye,ut)),Nr+="/"+wt+" "+ar+" ",Ye.internal.acroformPlugin.xForms.indexOf(ar)>=0||Ye.internal.acroformPlugin.xForms.push(ar)}}else typeof(ar=un)=="function"&&(ar=ar.call(Ye,ut)),Nr+="/"+wt+" "+ar,Ye.internal.acroformPlugin.xForms.indexOf(ar)>=0||Ye.internal.acroformPlugin.xForms.push(ar);Nr+=">>"}Ft.push({key:"AP",value:`<<
|
|
|
`+Nr+">>"})}Ye.internal.putStream({additionalKeyValues:Ft,objectId:ut.objId}),Ye.internal.out("endobj")}et&&we(Ye.internal.acroformPlugin.xForms,Ye)}(He,_e)}),_e.internal.acroformPlugin.isInitialized=!0}},Ee=j.__acroform__.arrayToPdfArray=function($e,_e,Be){var He=function(wt){return wt};if(Array.isArray($e)){for(var Je="[",Ye=0;Ye<$e.length;Ye++)switch(Ye!==0&&(Je+=" "),L()($e[Ye])){case"boolean":case"number":case"object":Je+=$e[Ye].toString();break;case"string":$e[Ye].substr(0,1)!=="/"?(_e!==void 0&&Be&&(He=Be.internal.getEncryptor(_e)),Je+="("+W(He($e[Ye].toString()))+")"):Je+=$e[Ye].toString()}return Je+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ce=function(_e,Be,He){var Je=function(et){return et};return Be!==void 0&&He&&(Je=He.internal.getEncryptor(Be)),(_e=_e||"").toString(),_e="("+W(Je(_e))+")"},ne=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(Be){this._objId=Be}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ne.prototype.toString=function(){return this.objId+" 0 R"},ne.prototype.putStream=function(){var $e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:$e,objectId:this.objId}),this.scope.internal.out("endobj")},ne.prototype.getKeyValueListForStream=function(){var $e=[],_e=Object.getOwnPropertyNames(this).filter(function(Ye){return Ye!="content"&&Ye!="appearanceStreamContent"&&Ye!="scope"&&Ye!="objId"&&Ye.substring(0,1)!="_"});for(var Be in _e)if(Object.getOwnPropertyDescriptor(this,_e[Be]).configurable===!1){var He=_e[Be],Je=this[He];Je&&(Array.isArray(Je)?$e.push({key:He,value:Ee(Je,this.objId,this.scope)}):Je instanceof ne?(Je.scope=this.scope,$e.push({key:He,value:Je.objId+" 0 R"})):typeof Je!="function"&&$e.push({key:He,value:Je}))}return $e};var ee=function(){ne.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 _e,Be=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return Be},set:function(Je){Be=Je}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Je){_e=Je.trim()},get:function(){return _e||null}})};Y(ee,ne);var Ae=function(){ne.call(this);var _e,Be=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return Be.length>0?Be:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return Be}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(_e){var Je=function(et){return et};return this.scope&&(Je=this.scope.internal.getEncryptor(this.objId)),"("+W(Je(_e))+")"}},set:function(Je){_e=Je}})};Y(Ae,ne);var Ve=function $e(){ne.call(this);var _e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return _e},set:function(gr){if(isNaN(gr))throw new Error('Invalid value "'+gr+'" for attribute F supplied.');_e=gr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(_e,3))},set:function(gr){Boolean(gr)===!0?this.F=X(_e,3):this.F=q(_e,3)}});var Be=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Be},set:function(gr){if(isNaN(gr))throw new Error('Invalid value "'+gr+'" for attribute Ff supplied.');Be=gr}});var He=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(He.length!==0)return He},set:function(gr){He=gr!==void 0?gr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!He||isNaN(He[0])?0:He[0]},set:function(gr){He[0]=gr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!He||isNaN(He[1])?0:He[1]},set:function(gr){He[1]=gr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!He||isNaN(He[2])?0:He[2]},set:function(gr){He[2]=gr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!He||isNaN(He[3])?0:He[3]},set:function(gr){He[3]=gr}});var Je="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Je},set:function(gr){switch(gr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Je=gr;break;default:throw new Error('Invalid value "'+gr+'" for attribute FT supplied.')}}});var Ye=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Ye||Ye.length<1){if(this instanceof St)return;Ye="FieldObject"+$e.FieldNum++}var gr=function(Pn){return Pn};return this.scope&&(gr=this.scope.internal.getEncryptor(this.objId)),"("+W(gr(Ye))+")"},set:function(gr){Ye=gr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Ye},set:function(gr){Ye=gr}});var et="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return et},set:function(gr){et=gr}});var wt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return wt},set:function(gr){wt=gr}});var ut=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ut},set:function(gr){ut=gr}});var Ft=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Ft===void 0?50/H:Ft},set:function(gr){Ft=gr}});var wr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return wr},set:function(gr){wr=gr}});var hr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!hr||this instanceof St||this instanceof je))return ce(hr,this.objId,this.scope)},set:function(gr){gr=gr.toString(),hr=gr}});var Nr=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Nr)return this instanceof ft==!1?ce(Nr,this.objId,this.scope):Nr},set:function(gr){gr=gr.toString(),Nr=this instanceof ft==!1?gr.substr(0,1)==="("?G(gr.substr(1,gr.length-2)):G(gr):gr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ft==!0?G(Nr.substr(1,Nr.length-1)):Nr},set:function(gr){gr=gr.toString(),Nr=this instanceof ft==!0?"/"+gr:gr}});var Kt=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Kt)return Kt},set:function(gr){this.V=gr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Kt)return this instanceof ft==!1?ce(Kt,this.objId,this.scope):Kt},set:function(gr){gr=gr.toString(),Kt=this instanceof ft==!1?gr.substr(0,1)==="("?G(gr.substr(1,gr.length-2)):G(gr):gr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ft==!0?G(Kt.substr(1,Kt.length-1)):Kt},set:function(gr){gr=gr.toString(),Kt=this instanceof ft==!0?"/"+gr:gr}}),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 un,ar=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return ar},set:function(gr){gr=Boolean(gr),ar=gr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(un)return un},set:function(gr){un=gr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,1))},set:function(gr){Boolean(gr)===!0?this.Ff=X(this.Ff,1):this.Ff=q(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,2))},set:function(gr){Boolean(gr)===!0?this.Ff=X(this.Ff,2):this.Ff=q(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,3))},set:function(gr){Boolean(gr)===!0?this.Ff=X(this.Ff,3):this.Ff=q(this.Ff,3)}});var Gr=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Gr!==null)return Gr},set:function(gr){if([0,1,2].indexOf(gr)===-1)throw new Error('Invalid value "'+gr+'" for attribute Q supplied.');Gr=gr}}),Object.defineProperty(this,"textAlign",{get:function(){var gr;switch(Gr){case 0:default:gr="left";break;case 1:gr="center";break;case 2:gr="right"}return gr},configurable:!0,enumerable:!0,set:function(gr){switch(gr){case"right":case 2:Gr=2;break;case"center":case 1:Gr=1;break;case"left":case 0:default:Gr=0}}})};Y(Ve,ne);var Ke=function(){Ve.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var _e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return _e},set:function(Je){_e=Je}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return _e},set:function(Je){_e=Je}});var Be=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ee(Be,this.objId,this.scope)},set:function(Je){var Ye,et;et=[],typeof(Ye=Je)=="string"&&(et=function(wt,ut,Ft){Ft||(Ft=1);for(var wr,hr=[];wr=ut.exec(wt);)hr.push(wr[Ft]);return hr}(Ye,/\((.*?)\)/g)),Be=et}}),this.getOptions=function(){return Be},this.setOptions=function(He){Be=He,this.sort&&Be.sort()},this.addOption=function(He){He=(He=He||"").toString(),Be.push(He),this.sort&&Be.sort()},this.removeOption=function(He,Je){for(Je=Je||!1,He=(He=He||"").toString();Be.indexOf(He)!==-1&&(Be.splice(Be.indexOf(He),1),Je!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,18))},set:function(Je){Boolean(Je)===!0?this.Ff=X(this.Ff,18):this.Ff=q(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,19))},set:function(Je){this.combo===!0&&(Boolean(Je)===!0?this.Ff=X(this.Ff,19):this.Ff=q(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,20))},set:function(Je){Boolean(Je)===!0?(this.Ff=X(this.Ff,20),Be.sort()):this.Ff=q(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,22))},set:function(Je){Boolean(Je)===!0?this.Ff=X(this.Ff,22):this.Ff=q(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,23))},set:function(Je){Boolean(Je)===!0?this.Ff=X(this.Ff,23):this.Ff=q(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,27))},set:function(Je){Boolean(Je)===!0?this.Ff=X(this.Ff,27):this.Ff=q(this.Ff,27)}}),this.hasAppearanceStream=!1};Y(Ke,Ve);var Oe=function(){Ke.call(this),this.fontName="helvetica",this.combo=!1};Y(Oe,Ke);var it=function(){Oe.call(this),this.combo=!0};Y(it,Oe);var Fe=function(){it.call(this),this.edit=!0};Y(Fe,it);var ft=function(){Ve.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,15))},set:function(Je){Boolean(Je)===!0?this.Ff=X(this.Ff,15):this.Ff=q(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,16))},set:function(Je){Boolean(Je)===!0?this.Ff=X(this.Ff,16):this.Ff=q(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,17))},set:function(Je){Boolean(Je)===!0?this.Ff=X(this.Ff,17):this.Ff=q(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,26))},set:function(Je){Boolean(Je)===!0?this.Ff=X(this.Ff,26):this.Ff=q(this.Ff,26)}});var _e,Be={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Je=function(ut){return ut};if(this.scope&&(Je=this.scope.internal.getEncryptor(this.objId)),Object.keys(Be).length!==0){var Ye,et=[];for(Ye in et.push("<<"),Be)et.push("/"+Ye+" ("+W(Je(Be[Ye]))+")");return et.push(">>"),et.join(`
|
|
|
`)}},set:function(Je){L()(Je)==="object"&&(Be=Je)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Be.CA||""},set:function(Je){typeof Je=="string"&&(Be.CA=Je)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return _e},set:function(Je){_e=Je}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return _e.substr(1,_e.length-1)},set:function(Je){_e="/"+Je}})};Y(ft,Ve);var At=function(){ft.call(this),this.pushButton=!0};Y(At,ft);var bt=function(){ft.call(this),this.radio=!0,this.pushButton=!1;var _e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return _e},set:function(He){_e=He!==void 0?He:[]}})};Y(bt,ft);var St=function(){var _e,Be;Ve.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return _e},set:function(et){_e=et}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Be},set:function(et){Be=et}});var He,Je={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var et=function(wr){return wr};this.scope&&(et=this.scope.internal.getEncryptor(this.objId));var wt,ut=[];for(wt in ut.push("<<"),Je)ut.push("/"+wt+" ("+W(et(Je[wt]))+")");return ut.push(">>"),ut.join(`
|
|
|
`)},set:function(et){L()(et)==="object"&&(Je=et)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Je.CA||""},set:function(et){typeof et=="string"&&(Je.CA=et)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return He},set:function(et){He=et}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return He.substr(1,He.length-1)},set:function(et){He="/"+et}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ie.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Y(St,Ve),bt.prototype.setAppearance=function($e){if(!("createAppearanceStream"in $e)||!("getCA"in $e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var _e in this.Kids)if(this.Kids.hasOwnProperty(_e)){var Be=this.Kids[_e];Be.appearanceStreamContent=$e.createAppearanceStream(Be.optionName),Be.caption=$e.getCA()}},bt.prototype.createOption=function($e){var _e=new St;return _e.Parent=this,_e.optionName=$e,this.Kids.push(_e),st.call(this.scope,_e),_e};var Et=function(){ft.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ie.CheckBox.createAppearanceStream()};Y(Et,ft);var je=function(){Ve.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,13))},set:function(He){Boolean(He)===!0?this.Ff=X(this.Ff,13):this.Ff=q(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,21))},set:function(He){Boolean(He)===!0?this.Ff=X(this.Ff,21):this.Ff=q(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,23))},set:function(He){Boolean(He)===!0?this.Ff=X(this.Ff,23):this.Ff=q(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,24))},set:function(He){Boolean(He)===!0?this.Ff=X(this.Ff,24):this.Ff=q(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,25))},set:function(He){Boolean(He)===!0?this.Ff=X(this.Ff,25):this.Ff=q(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,26))},set:function(He){Boolean(He)===!0?this.Ff=X(this.Ff,26):this.Ff=q(this.Ff,26)}});var _e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return _e},set:function(He){_e=He}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return _e},set:function(He){Number.isInteger(He)&&(_e=He)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Y(je,Ve);var pe=function(){je.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ie(this.Ff,14))},set:function(Be){Boolean(Be)===!0?this.Ff=X(this.Ff,14):this.Ff=q(this.Ff,14)}}),this.password=!0};Y(pe,je);var ie={CheckBox:{createAppearanceStream:function(){return{N:{On:ie.CheckBox.YesNormal},D:{On:ie.CheckBox.YesPushDown,Off:ie.CheckBox.OffPushDown}}},YesPushDown:function(_e){var Be=oe(_e);Be.scope=_e.scope;var He=[],Je=_e.scope.internal.getFont(_e.fontName,_e.fontStyle).id,Ye=_e.scope.__private__.encodeColorString(_e.color),et=J(_e,_e.caption);return He.push("0.749023 g"),He.push("0 0 "+V(ie.internal.getWidth(_e))+" "+V(ie.internal.getHeight(_e))+" re"),He.push("f"),He.push("BMC"),He.push("q"),He.push("0 0 1 rg"),He.push("/"+Je+" "+V(et.fontSize)+" Tf "+Ye),He.push("BT"),He.push(et.text),He.push("ET"),He.push("Q"),He.push("EMC"),Be.stream=He.join(`
|
|
|
`),Be},YesNormal:function(_e){var Be=oe(_e);Be.scope=_e.scope;var He=_e.scope.internal.getFont(_e.fontName,_e.fontStyle).id,Je=_e.scope.__private__.encodeColorString(_e.color),Ye=[],et=ie.internal.getHeight(_e),wt=ie.internal.getWidth(_e),ut=J(_e,_e.caption);return Ye.push("1 g"),Ye.push("0 0 "+V(wt)+" "+V(et)+" re"),Ye.push("f"),Ye.push("q"),Ye.push("0 0 1 rg"),Ye.push("0 0 "+V(wt-1)+" "+V(et-1)+" re"),Ye.push("W"),Ye.push("n"),Ye.push("0 g"),Ye.push("BT"),Ye.push("/"+He+" "+V(ut.fontSize)+" Tf "+Je),Ye.push(ut.text),Ye.push("ET"),Ye.push("Q"),Be.stream=Ye.join(`
|
|
|
`),Be},OffPushDown:function(_e){var Be=oe(_e);Be.scope=_e.scope;var He=[];return He.push("0.749023 g"),He.push("0 0 "+V(ie.internal.getWidth(_e))+" "+V(ie.internal.getHeight(_e))+" re"),He.push("f"),Be.stream=He.join(`
|
|
|
`),Be}},RadioButton:{Circle:{createAppearanceStream:function(_e){var Be={D:{Off:ie.RadioButton.Circle.OffPushDown},N:{}};return Be.N[_e]=ie.RadioButton.Circle.YesNormal,Be.D[_e]=ie.RadioButton.Circle.YesPushDown,Be},getCA:function(){return"l"},YesNormal:function(_e){var Be=oe(_e);Be.scope=_e.scope;var He=[],Je=ie.internal.getWidth(_e)<=ie.internal.getHeight(_e)?ie.internal.getWidth(_e)/4:ie.internal.getHeight(_e)/4;Je=Number((.9*Je).toFixed(5));var Ye=ie.internal.Bezier_C,et=Number((Je*Ye).toFixed(5));return He.push("q"),He.push("1 0 0 1 "+Z(ie.internal.getWidth(_e)/2)+" "+Z(ie.internal.getHeight(_e)/2)+" cm"),He.push(Je+" 0 m"),He.push(Je+" "+et+" "+et+" "+Je+" 0 "+Je+" c"),He.push("-"+et+" "+Je+" -"+Je+" "+et+" -"+Je+" 0 c"),He.push("-"+Je+" -"+et+" -"+et+" -"+Je+" 0 -"+Je+" c"),He.push(et+" -"+Je+" "+Je+" -"+et+" "+Je+" 0 c"),He.push("f"),He.push("Q"),Be.stream=He.join(`
|
|
|
`),Be},YesPushDown:function(_e){var Be=oe(_e);Be.scope=_e.scope;var He=[],Je=ie.internal.getWidth(_e)<=ie.internal.getHeight(_e)?ie.internal.getWidth(_e)/4:ie.internal.getHeight(_e)/4;Je=Number((.9*Je).toFixed(5));var Ye=Number((2*Je).toFixed(5)),et=Number((Ye*ie.internal.Bezier_C).toFixed(5)),wt=Number((Je*ie.internal.Bezier_C).toFixed(5));return He.push("0.749023 g"),He.push("q"),He.push("1 0 0 1 "+Z(ie.internal.getWidth(_e)/2)+" "+Z(ie.internal.getHeight(_e)/2)+" cm"),He.push(Ye+" 0 m"),He.push(Ye+" "+et+" "+et+" "+Ye+" 0 "+Ye+" c"),He.push("-"+et+" "+Ye+" -"+Ye+" "+et+" -"+Ye+" 0 c"),He.push("-"+Ye+" -"+et+" -"+et+" -"+Ye+" 0 -"+Ye+" c"),He.push(et+" -"+Ye+" "+Ye+" -"+et+" "+Ye+" 0 c"),He.push("f"),He.push("Q"),He.push("0 g"),He.push("q"),He.push("1 0 0 1 "+Z(ie.internal.getWidth(_e)/2)+" "+Z(ie.internal.getHeight(_e)/2)+" cm"),He.push(Je+" 0 m"),He.push(Je+" "+wt+" "+wt+" "+Je+" 0 "+Je+" c"),He.push("-"+wt+" "+Je+" -"+Je+" "+wt+" -"+Je+" 0 c"),He.push("-"+Je+" -"+wt+" -"+wt+" -"+Je+" 0 -"+Je+" c"),He.push(wt+" -"+Je+" "+Je+" -"+wt+" "+Je+" 0 c"),He.push("f"),He.push("Q"),Be.stream=He.join(`
|
|
|
`),Be},OffPushDown:function(_e){var Be=oe(_e);Be.scope=_e.scope;var He=[],Je=ie.internal.getWidth(_e)<=ie.internal.getHeight(_e)?ie.internal.getWidth(_e)/4:ie.internal.getHeight(_e)/4;Je=Number((.9*Je).toFixed(5));var Ye=Number((2*Je).toFixed(5)),et=Number((Ye*ie.internal.Bezier_C).toFixed(5));return He.push("0.749023 g"),He.push("q"),He.push("1 0 0 1 "+Z(ie.internal.getWidth(_e)/2)+" "+Z(ie.internal.getHeight(_e)/2)+" cm"),He.push(Ye+" 0 m"),He.push(Ye+" "+et+" "+et+" "+Ye+" 0 "+Ye+" c"),He.push("-"+et+" "+Ye+" -"+Ye+" "+et+" -"+Ye+" 0 c"),He.push("-"+Ye+" -"+et+" -"+et+" -"+Ye+" 0 -"+Ye+" c"),He.push(et+" -"+Ye+" "+Ye+" -"+et+" "+Ye+" 0 c"),He.push("f"),He.push("Q"),Be.stream=He.join(`
|
|
|
`),Be}},Cross:{createAppearanceStream:function(_e){var Be={D:{Off:ie.RadioButton.Cross.OffPushDown},N:{}};return Be.N[_e]=ie.RadioButton.Cross.YesNormal,Be.D[_e]=ie.RadioButton.Cross.YesPushDown,Be},getCA:function(){return"8"},YesNormal:function(_e){var Be=oe(_e);Be.scope=_e.scope;var He=[],Je=ie.internal.calculateCross(_e);return He.push("q"),He.push("1 1 "+V(ie.internal.getWidth(_e)-2)+" "+V(ie.internal.getHeight(_e)-2)+" re"),He.push("W"),He.push("n"),He.push(V(Je.x1.x)+" "+V(Je.x1.y)+" m"),He.push(V(Je.x2.x)+" "+V(Je.x2.y)+" l"),He.push(V(Je.x4.x)+" "+V(Je.x4.y)+" m"),He.push(V(Je.x3.x)+" "+V(Je.x3.y)+" l"),He.push("s"),He.push("Q"),Be.stream=He.join(`
|
|
|
`),Be},YesPushDown:function(_e){var Be=oe(_e);Be.scope=_e.scope;var He=ie.internal.calculateCross(_e),Je=[];return Je.push("0.749023 g"),Je.push("0 0 "+V(ie.internal.getWidth(_e))+" "+V(ie.internal.getHeight(_e))+" re"),Je.push("f"),Je.push("q"),Je.push("1 1 "+V(ie.internal.getWidth(_e)-2)+" "+V(ie.internal.getHeight(_e)-2)+" re"),Je.push("W"),Je.push("n"),Je.push(V(He.x1.x)+" "+V(He.x1.y)+" m"),Je.push(V(He.x2.x)+" "+V(He.x2.y)+" l"),Je.push(V(He.x4.x)+" "+V(He.x4.y)+" m"),Je.push(V(He.x3.x)+" "+V(He.x3.y)+" l"),Je.push("s"),Je.push("Q"),Be.stream=Je.join(`
|
|
|
`),Be},OffPushDown:function(_e){var Be=oe(_e);Be.scope=_e.scope;var He=[];return He.push("0.749023 g"),He.push("0 0 "+V(ie.internal.getWidth(_e))+" "+V(ie.internal.getHeight(_e))+" re"),He.push("f"),Be.stream=He.join(`
|
|
|
`),Be}}},createDefaultAppearanceStream:function(_e){var Be=_e.scope.internal.getFont(_e.fontName,_e.fontStyle).id,He=_e.scope.__private__.encodeColorString(_e.color);return"/"+Be+" "+_e.fontSize+" Tf "+He}};ie.internal={Bezier_C:.551915024494,calculateCross:function(_e){var Be=ie.internal.getWidth(_e),He=ie.internal.getHeight(_e),Je=Math.min(Be,He);return{x1:{x:(Be-Je)/2,y:(He-Je)/2+Je},x2:{x:(Be-Je)/2+Je,y:(He-Je)/2},x3:{x:(Be-Je)/2,y:(He-Je)/2},x4:{x:(Be-Je)/2+Je,y:(He-Je)/2+Je}}}},ie.internal.getWidth=function($e){var _e=0;return L()($e)==="object"&&(_e=Q($e.Rect[2])),_e},ie.internal.getHeight=function($e){var _e=0;return L()($e)==="object"&&(_e=Q($e.Rect[3])),_e};var st=j.addField=function($e){if(De(this,$e),!($e instanceof Ve))throw new Error("Invalid argument passed to jsPDF.addField.");var _e;return(_e=$e).scope.internal.acroformPlugin.printedOut&&(_e.scope.internal.acroformPlugin.printedOut=!1,_e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),_e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(_e),$e.page=$e.scope.internal.getCurrentPageInfo().pageNumber,this};j.AcroFormChoiceField=Ke,j.AcroFormListBox=Oe,j.AcroFormComboBox=it,j.AcroFormEditBox=Fe,j.AcroFormButton=ft,j.AcroFormPushButton=At,j.AcroFormRadioButton=bt,j.AcroFormCheckBox=Et,j.AcroFormTextField=je,j.AcroFormPasswordField=pe,j.AcroFormAppearance=ie,j.AcroForm={ChoiceField:Ke,ListBox:Oe,ComboBox:it,EditBox:Fe,Button:ft,PushButton:At,RadioButton:bt,CheckBox:Et,TextField:je,PasswordField:pe,Appearance:ie},U.AcroForm={ChoiceField:Ke,ListBox:Oe,ComboBox:it,EditBox:Fe,Button:ft,PushButton:At,RadioButton:bt,CheckBox:Et,TextField:je,PasswordField:pe,Appearance:ie};var Qe=U.AcroForm;function ve($e){return $e.reduce(function(_e,Be,He){return _e[Be]=He,_e},{})}!function($e){$e.__addimage__={};var _e="UNKNOWN",Be={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]]},He=$e.__addimage__.getImageFileTypeByImageData=function(gn,Vr){var xn,tn,ui,qn,wi,Qn=_e;if((Vr=Vr||_e)==="RGBA"||gn.data!==void 0&&gn.data instanceof Uint8ClampedArray&&"height"in gn&&"width"in gn)return"RGBA";if(oi(gn))for(wi in Be)for(ui=Be[wi],xn=0;xn<ui.length;xn+=1){for(qn=!0,tn=0;tn<ui[xn].length;tn+=1)if(ui[xn][tn]!==void 0&&ui[xn][tn]!==gn[tn]){qn=!1;break}if(qn===!0){Qn=wi;break}}else for(wi in Be)for(ui=Be[wi],xn=0;xn<ui.length;xn+=1){for(qn=!0,tn=0;tn<ui[xn].length;tn+=1)if(ui[xn][tn]!==void 0&&ui[xn][tn]!==gn.charCodeAt(tn)){qn=!1;break}if(qn===!0){Qn=wi;break}}return Qn===_e&&Vr!==_e&&(Qn=Vr),Qn},Je=function gn(Vr){for(var xn=this.internal.write,tn=this.internal.putStream,ui=(0,this.internal.getFilters)();ui.indexOf("FlateEncode")!==-1;)ui.splice(ui.indexOf("FlateEncode"),1);Vr.objectId=this.internal.newObject();var qn=[];if(qn.push({key:"Type",value:"/XObject"}),qn.push({key:"Subtype",value:"/Image"}),qn.push({key:"Width",value:Vr.width}),qn.push({key:"Height",value:Vr.height}),Vr.colorSpace===Gr.INDEXED?qn.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Vr.palette.length/3-1)+" "+("sMask"in Vr&&Vr.sMask!==void 0?Vr.objectId+2:Vr.objectId+1)+" 0 R]"}):(qn.push({key:"ColorSpace",value:"/"+Vr.colorSpace}),Vr.colorSpace===Gr.DEVICE_CMYK&&qn.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),qn.push({key:"BitsPerComponent",value:Vr.bitsPerComponent}),"decodeParameters"in Vr&&Vr.decodeParameters!==void 0&&qn.push({key:"DecodeParms",value:"<<"+Vr.decodeParameters+">>"}),"transparency"in Vr&&Array.isArray(Vr.transparency)){for(var wi="",Qn=0,Hi=Vr.transparency.length;Qn<Hi;Qn++)wi+=Vr.transparency[Qn]+" "+Vr.transparency[Qn]+" ";qn.push({key:"Mask",value:"["+wi+"]"})}Vr.sMask!==void 0&&qn.push({key:"SMask",value:Vr.objectId+1+" 0 R"});var ri=Vr.filter!==void 0?["/"+Vr.filter]:void 0;if(tn({data:Vr.data,additionalKeyValues:qn,alreadyAppliedFilters:ri,objectId:Vr.objectId}),xn("endobj"),"sMask"in Vr&&Vr.sMask!==void 0){var Mi="/Predictor "+Vr.predictor+" /Colors 1 /BitsPerComponent "+Vr.bitsPerComponent+" /Columns "+Vr.width,dn={width:Vr.width,height:Vr.height,colorSpace:"DeviceGray",bitsPerComponent:Vr.bitsPerComponent,decodeParameters:Mi,data:Vr.sMask};"filter"in Vr&&(dn.filter=Vr.filter),gn.call(this,dn)}if(Vr.colorSpace===Gr.INDEXED){var Ur=this.internal.newObject();tn({data:bi(new Uint8Array(Vr.palette)),objectId:Ur}),xn("endobj")}},Ye=function(){var Vr=this.internal.collections.addImage_images;for(var xn in Vr)Je.call(this,Vr[xn])},et=function(){var Vr,xn=this.internal.collections.addImage_images,tn=this.internal.write;for(var ui in xn)tn("/I"+(Vr=xn[ui]).index,Vr.objectId,"0","R")},wt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Ye),this.internal.events.subscribe("putXobjectDict",et))},ut=function(){var Vr=this.internal.collections.addImage_images;return wt.call(this),Vr},Ft=function(){return Object.keys(this.internal.collections.addImage_images).length},wr=function(Vr){return typeof $e["process"+Vr.toUpperCase()]=="function"},hr=function(Vr){return L()(Vr)==="object"&&Vr.nodeType===1},Nr=function(Vr,xn){if(Vr.nodeName==="IMG"&&Vr.hasAttribute("src")){var tn=""+Vr.getAttribute("src");if(tn.indexOf("data:image/")===0)return l(unescape(tn).split("base64,").pop());var ui=$e.loadFile(tn,!0);if(ui!==void 0)return ui}if(Vr.nodeName==="CANVAS"){if(Vr.width===0||Vr.height===0)throw new Error("Given canvas must have data. Canvas width: "+Vr.width+", height: "+Vr.height);var qn;switch(xn){case"PNG":qn="image/png";break;case"WEBP":qn="image/webp";break;case"JPEG":case"JPG":default:qn="image/jpeg"}return l(Vr.toDataURL(qn,1).split("base64,").pop())}},Kt=function(Vr){var xn=this.internal.collections.addImage_images;if(xn){for(var tn in xn)if(Vr===xn[tn].alias)return xn[tn]}},un=function(Vr,xn,tn){return Vr||xn||(Vr=-96,xn=-96),Vr<0&&(Vr=-1*tn.width*72/Vr/this.internal.scaleFactor),xn<0&&(xn=-1*tn.height*72/xn/this.internal.scaleFactor),Vr===0&&(Vr=xn*tn.width/tn.height),xn===0&&(xn=Vr*tn.height/tn.width),[Vr,xn]},ar=function(Vr,xn,tn,ui,qn,wi){var Qn=un.call(this,tn,ui,qn),Hi=this.internal.getCoordinateString,ri=this.internal.getVerticalCoordinateString,Mi=ut.call(this);if(tn=Qn[0],ui=Qn[1],Mi[qn.index]=qn,wi){wi*=Math.PI/180;var dn=Math.cos(wi),Ur=Math.sin(wi),bn=function($n){return $n.toFixed(4)},Mn=[bn(dn),bn(Ur),bn(-1*Ur),bn(dn),0,0,"cm"]}this.internal.write("q"),wi?(this.internal.write([1,"0","0",1,Hi(Vr),ri(xn+ui),"cm"].join(" ")),this.internal.write(Mn.join(" ")),this.internal.write([Hi(tn),"0","0",Hi(ui),"0","0","cm"].join(" "))):this.internal.write([Hi(tn),"0","0",Hi(ui),Hi(Vr),ri(xn+ui),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+qn.index+" Do"),this.internal.write("Q")},Gr=$e.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"};$e.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 Br=$e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},gr=$e.__addimage__.sHashCode=function(gn){var Vr,xn,tn=0;if(typeof gn=="string")for(xn=gn.length,Vr=0;Vr<xn;Vr++)tn=(tn<<5)-tn+gn.charCodeAt(Vr),tn|=0;else if(oi(gn))for(xn=gn.byteLength/2,Vr=0;Vr<xn;Vr++)tn=(tn<<5)-tn+gn[Vr],tn|=0;return tn},Sn=$e.__addimage__.validateStringAsBase64=function(gn){(gn=gn||"").toString().trim();var Vr=!0;return gn.length===0&&(Vr=!1),gn.length%4!=0&&(Vr=!1),/^[A-Za-z0-9+/]+$/.test(gn.substr(0,gn.length-2))===!1&&(Vr=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(gn.substr(-2))===!1&&(Vr=!1),Vr},Pn=$e.__addimage__.extractImageFromDataUrl=function(gn){var Vr=(gn=gn||"").split("base64,"),xn=null;if(Vr.length===2){var tn=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Vr[0]);Array.isArray(tn)&&(xn={mimeType:tn[1],charset:tn[2],data:Vr[1]})}return xn},ii=$e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};$e.__addimage__.isArrayBuffer=function(gn){return ii()&&gn instanceof ArrayBuffer};var oi=$e.__addimage__.isArrayBufferView=function(gn){return ii()&&typeof Uint32Array!="undefined"&&(gn instanceof Int8Array||gn instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&gn instanceof Uint8ClampedArray||gn instanceof Int16Array||gn instanceof Uint16Array||gn instanceof Int32Array||gn instanceof Uint32Array||gn instanceof Float32Array||gn instanceof Float64Array)},ti=$e.__addimage__.binaryStringToUint8Array=function(gn){for(var Vr=gn.length,xn=new Uint8Array(Vr),tn=0;tn<Vr;tn++)xn[tn]=gn.charCodeAt(tn);return xn},bi=$e.__addimage__.arrayBufferToBinaryString=function(gn){for(var Vr="",xn=oi(gn)?gn:new Uint8Array(gn),tn=0;tn<xn.length;tn+=8192)Vr+=String.fromCharCode.apply(null,xn.subarray(tn,tn+8192));return Vr};$e.addImage=function(){var gn,Vr,xn,tn,ui,qn,wi,Qn,Hi;if(typeof arguments[1]=="number"?(Vr=_e,xn=arguments[1],tn=arguments[2],ui=arguments[3],qn=arguments[4],wi=arguments[5],Qn=arguments[6],Hi=arguments[7]):(Vr=arguments[1],xn=arguments[2],tn=arguments[3],ui=arguments[4],qn=arguments[5],wi=arguments[6],Qn=arguments[7],Hi=arguments[8]),L()(gn=arguments[0])==="object"&&!hr(gn)&&"imageData"in gn){var ri=gn;gn=ri.imageData,Vr=ri.format||Vr||_e,xn=ri.x||xn||0,tn=ri.y||tn||0,ui=ri.w||ri.width||ui,qn=ri.h||ri.height||qn,wi=ri.alias||wi,Qn=ri.compression||Qn,Hi=ri.rotation||ri.angle||Hi}var Mi=this.internal.getFilters();if(Qn===void 0&&Mi.indexOf("FlateEncode")!==-1&&(Qn="SLOW"),isNaN(xn)||isNaN(tn))throw new Error("Invalid coordinates passed to jsPDF.addImage");wt.call(this);var dn=kn.call(this,gn,Vr,wi,Qn);return ar.call(this,xn,tn,ui,qn,dn,Hi),this};var kn=function(Vr,xn,tn,ui){var qn,wi,Qn;if(typeof Vr=="string"&&He(Vr)===_e){Vr=unescape(Vr);var Hi=Ii(Vr,!1);(Hi!==""||(Hi=$e.loadFile(Vr,!0))!==void 0)&&(Vr=Hi)}if(hr(Vr)&&(Vr=Nr(Vr,xn)),xn=He(Vr,xn),!wr(xn))throw new Error("addImage does not support files of type '"+xn+"', please ensure that a plugin for '"+xn+"' support is added.");if(((Qn=tn)==null||Qn.length===0)&&(tn=function(ri){return typeof ri=="string"||oi(ri)?gr(ri):oi(ri.data)?gr(ri.data):null}(Vr)),(qn=Kt.call(this,tn))||(ii()&&(Vr instanceof Uint8Array||xn==="RGBA"||(wi=Vr,Vr=ti(Vr))),qn=this["process"+xn.toUpperCase()](Vr,Ft.call(this),tn,function(ri){return ri&&typeof ri=="string"&&(ri=ri.toUpperCase()),ri in $e.image_compression?ri:Br.NONE}(ui),wi)),!qn)throw new Error("An unknown error occurred whilst processing the image.");return qn},Ii=$e.__addimage__.convertBase64ToBinaryString=function(gn,Vr){var xn;Vr=typeof Vr!="boolean"||Vr;var tn,ui="";if(typeof gn=="string"){tn=(xn=Pn(gn))!==null?xn.data:gn;try{ui=l(tn)}catch(qn){if(Vr)throw Sn(tn)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+qn.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ui};$e.getImageProperties=function(gn){var Vr,xn,tn="";if(hr(gn)&&(gn=Nr(gn)),typeof gn=="string"&&He(gn)===_e&&((tn=Ii(gn,!1))===""&&(tn=$e.loadFile(gn)||""),gn=tn),xn=He(gn),!wr(xn))throw new Error("addImage does not support files of type '"+xn+"', please ensure that a plugin for '"+xn+"' support is added.");if(!ii()||gn instanceof Uint8Array||(gn=ti(gn)),!(Vr=this["process"+xn.toUpperCase()](gn)))throw new Error("An unknown error occurred whilst processing the image");return Vr.fileType=xn,Vr}}(U.API),function($e){var _e=function(He){if(He!==void 0&&He!="")return!0};U.API.events.push(["addPage",function(Be){this.internal.getPageInfo(Be.pageNumber).pageContext.annotations=[]}]),$e.events.push(["putPage",function(Be){for(var He,Je,Ye,et=this.internal.getCoordinateString,wt=this.internal.getVerticalCoordinateString,ut=this.internal.getPageInfoByObjId(Be.objId),Ft=Be.pageContext.annotations,wr=!1,hr=0;hr<Ft.length&&!wr;hr++)switch((He=Ft[hr]).type){case"link":(_e(He.options.url)||_e(He.options.pageNumber))&&(wr=!0);break;case"reference":case"text":case"freetext":wr=!0}if(wr!=0){this.internal.write("/Annots [");for(var Nr=0;Nr<Ft.length;Nr++){He=Ft[Nr];var Kt=this.internal.pdfEscape,un=this.internal.getEncryptor(Be.objId);switch(He.type){case"reference":this.internal.write(" "+He.object.objId+" 0 R ");break;case"text":var ar=this.internal.newAdditionalObject(),Gr=this.internal.newAdditionalObject(),Br=this.internal.getEncryptor(ar.objId),gr=He.title||"Note";Ye="<</Type /Annot /Subtype /Text "+(Je="/Rect ["+et(He.bounds.x)+" "+wt(He.bounds.y+He.bounds.h)+" "+et(He.bounds.x+He.bounds.w)+" "+wt(He.bounds.y)+"] ")+"/Contents ("+Kt(Br(He.contents))+")",Ye+=" /Popup "+Gr.objId+" 0 R",Ye+=" /P "+ut.objId+" 0 R",Ye+=" /T ("+Kt(Br(gr))+") >>",ar.content=Ye;var Sn=ar.objId+" 0 R";Ye="<</Type /Annot /Subtype /Popup "+(Je="/Rect ["+et(He.bounds.x+30)+" "+wt(He.bounds.y+He.bounds.h)+" "+et(He.bounds.x+He.bounds.w+30)+" "+wt(He.bounds.y)+"] ")+" /Parent "+Sn,He.open&&(Ye+=" /Open true"),Ye+=" >>",Gr.content=Ye,this.internal.write(ar.objId,"0 R",Gr.objId,"0 R");break;case"freetext":Je="/Rect ["+et(He.bounds.x)+" "+wt(He.bounds.y)+" "+et(He.bounds.x+He.bounds.w)+" "+wt(He.bounds.y+He.bounds.h)+"] ";var Pn=He.color||"#000000";Ye="<</Type /Annot /Subtype /FreeText "+Je+"/Contents ("+Kt(un(He.contents))+")",Ye+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Pn+")",Ye+=" /Border [0 0 0]",Ye+=" >>",this.internal.write(Ye);break;case"link":if(He.options.name){var ii=this.annotations._nameMap[He.options.name];He.options.pageNumber=ii.page,He.options.top=ii.y}else He.options.top||(He.options.top=0);if(Je="/Rect ["+He.finalBounds.x+" "+He.finalBounds.y+" "+He.finalBounds.w+" "+He.finalBounds.h+"] ",Ye="",He.options.url)Ye="<</Type /Annot /Subtype /Link "+Je+"/Border [0 0 0] /A <</S /URI /URI ("+Kt(un(He.options.url))+") >>";else if(He.options.pageNumber)switch(Ye="<</Type /Annot /Subtype /Link "+Je+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(He.options.pageNumber).objId+" 0 R",He.options.magFactor=He.options.magFactor||"XYZ",He.options.magFactor){case"Fit":Ye+=" /Fit]";break;case"FitH":Ye+=" /FitH "+He.options.top+"]";break;case"FitV":He.options.left=He.options.left||0,Ye+=" /FitV "+He.options.left+"]";break;case"XYZ":default:var oi=wt(He.options.top);He.options.left=He.options.left||0,He.options.zoom===void 0&&(He.options.zoom=0),Ye+=" /XYZ "+He.options.left+" "+oi+" "+He.options.zoom+"]"}Ye!=""&&(Ye+=" >>",this.internal.write(Ye))}}this.internal.write("]")}}]),$e.createAnnotation=function(Be){var He=this.internal.getCurrentPageInfo();switch(Be.type){case"link":this.link(Be.bounds.x,Be.bounds.y,Be.bounds.w,Be.bounds.h,Be);break;case"text":case"freetext":He.pageContext.annotations.push(Be)}},$e.link=function(Be,He,Je,Ye,et){var wt=this.internal.getCurrentPageInfo(),ut=this.internal.getCoordinateString,Ft=this.internal.getVerticalCoordinateString;wt.pageContext.annotations.push({finalBounds:{x:ut(Be),y:Ft(He),w:ut(Be+Je),h:Ft(He+Ye)},options:et,type:"link"})},$e.textWithLink=function(Be,He,Je,Ye){var et,wt,ut=this.getTextWidth(Be),Ft=this.internal.getLineHeight()/this.internal.scaleFactor;if(Ye.maxWidth!==void 0){wt=Ye.maxWidth;var wr=this.splitTextToSize(Be,wt).length;et=Math.ceil(Ft*wr)}else wt=ut,et=Ft;return this.text(Be,He,Je,Ye),Je+=.2*Ft,Ye.align==="center"&&(He-=ut/2),Ye.align==="right"&&(He-=ut),this.link(He,Je-Ft,wt,et,Ye),ut},$e.getTextWidth=function(Be){var He=this.internal.getFontSize();return this.getStringUnitWidth(Be)*He/this.internal.scaleFactor}}(U.API),function($e){var _e={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]},Be={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}},He={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Je=[1570,1571,1573,1575];$e.__arabicParser__={};var Ye=$e.__arabicParser__.isInArabicSubstitutionA=function(ar){return _e[ar.charCodeAt(0)]!==void 0},et=$e.__arabicParser__.isArabicLetter=function(ar){return typeof ar=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(ar)},wt=$e.__arabicParser__.isArabicEndLetter=function(ar){return et(ar)&&Ye(ar)&&_e[ar.charCodeAt(0)].length<=2},ut=$e.__arabicParser__.isArabicAlfLetter=function(ar){return et(ar)&&Je.indexOf(ar.charCodeAt(0))>=0};$e.__arabicParser__.arabicLetterHasIsolatedForm=function(ar){return et(ar)&&Ye(ar)&&_e[ar.charCodeAt(0)].length>=1};var Ft=$e.__arabicParser__.arabicLetterHasFinalForm=function(ar){return et(ar)&&Ye(ar)&&_e[ar.charCodeAt(0)].length>=2};$e.__arabicParser__.arabicLetterHasInitialForm=function(ar){return et(ar)&&Ye(ar)&&_e[ar.charCodeAt(0)].length>=3};var wr=$e.__arabicParser__.arabicLetterHasMedialForm=function(ar){return et(ar)&&Ye(ar)&&_e[ar.charCodeAt(0)].length==4},hr=$e.__arabicParser__.resolveLigatures=function(ar){var Gr=0,Br=Be,gr="",Sn=0;for(Gr=0;Gr<ar.length;Gr+=1)Br[ar.charCodeAt(Gr)]!==void 0?(Sn++,typeof(Br=Br[ar.charCodeAt(Gr)])=="number"&&(gr+=String.fromCharCode(Br),Br=Be,Sn=0),Gr===ar.length-1&&(Br=Be,gr+=ar.charAt(Gr-(Sn-1)),Gr-=Sn-1,Sn=0)):(Br=Be,gr+=ar.charAt(Gr-Sn),Gr-=Sn,Sn=0);return gr};$e.__arabicParser__.isArabicDiacritic=function(ar){return ar!==void 0&&He[ar.charCodeAt(0)]!==void 0};var Nr=$e.__arabicParser__.getCorrectForm=function(ar,Gr,Br){return et(ar)?Ye(ar)===!1?-1:!Ft(ar)||!et(Gr)&&!et(Br)||!et(Br)&&wt(Gr)||wt(ar)&&!et(Gr)||wt(ar)&&ut(Gr)||wt(ar)&&wt(Gr)?0:wr(ar)&&et(Gr)&&!wt(Gr)&&et(Br)&&Ft(Br)?3:wt(ar)||!et(Br)?1:2:-1},Kt=function(Gr){var Br=0,gr=0,Sn=0,Pn="",ii="",oi="",ti=(Gr=Gr||"").split("\\s+"),bi=[];for(Br=0;Br<ti.length;Br+=1){for(bi.push(""),gr=0;gr<ti[Br].length;gr+=1)Pn=ti[Br][gr],ii=ti[Br][gr-1],oi=ti[Br][gr+1],et(Pn)?(Sn=Nr(Pn,ii,oi),bi[Br]+=Sn!==-1?String.fromCharCode(_e[Pn.charCodeAt(0)][Sn]):Pn):bi[Br]+=Pn;bi[Br]=hr(bi[Br])}return bi.join(" ")},un=$e.__arabicParser__.processArabic=$e.processArabic=function(){var ar,Gr=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Br=[];if(Array.isArray(Gr)){var gr=0;for(Br=[],gr=0;gr<Gr.length;gr+=1)Array.isArray(Gr[gr])?Br.push([Kt(Gr[gr][0]),Gr[gr][1],Gr[gr][2]]):Br.push([Kt(Gr[gr])]);ar=Br}else ar=Kt(Gr);return typeof arguments[0]=="string"?ar:(arguments[0].text=ar,arguments[0])};$e.events.push(["preProcessText",un])}(U.API),U.API.autoPrint=function($e){var _e;switch(($e=$e||{}).variant=$e.variant||"non-conform",$e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){_e=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 "+_e+" 0 R")})}return this},function($e){var _e=function(){var He=void 0;Object.defineProperty(this,"pdf",{get:function(){return He},set:function(Ft){He=Ft}});var Je=150;Object.defineProperty(this,"width",{get:function(){return Je},set:function(Ft){Je=isNaN(Ft)||Number.isInteger(Ft)===!1||Ft<0?150:Ft,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Je+1)}});var Ye=300;Object.defineProperty(this,"height",{get:function(){return Ye},set:function(Ft){Ye=isNaN(Ft)||Number.isInteger(Ft)===!1||Ft<0?300:Ft,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ye+1)}});var et=[];Object.defineProperty(this,"childNodes",{get:function(){return et},set:function(Ft){et=Ft}});var wt={};Object.defineProperty(this,"style",{get:function(){return wt},set:function(Ft){wt=Ft}}),Object.defineProperty(this,"parentNode",{})};_e.prototype.getContext=function(Be,He){var Je;if((Be=Be||"2d")!=="2d")return null;for(Je in He)this.pdf.context2d.hasOwnProperty(Je)&&(this.pdf.context2d[Je]=He[Je]);return this.pdf.context2d._canvas=this,this.pdf.context2d},_e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},$e.events.push(["initialized",function(){this.canvas=new _e,this.canvas.pdf=this}])}(U.API),function($e){var _e={left:0,top:0,bottom:0,right:0},Be=!1,He=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({},_e),this.internal.__cell__.margins.width=this.getPageWidth(),Je.call(this))},Je=function(){this.internal.__cell__.lastCell=new Ye,this.internal.__cell__.pages=1},Ye=function(){var Ft=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ft},set:function(Br){Ft=Br}});var wr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return wr},set:function(Br){wr=Br}});var hr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return hr},set:function(Br){hr=Br}});var Nr=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Nr},set:function(Br){Nr=Br}});var Kt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Kt},set:function(Br){Kt=Br}});var un=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return un},set:function(Br){un=Br}});var ar=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return ar},set:function(Br){ar=Br}}),this};Ye.prototype.clone=function(){return new Ye(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Ye.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},$e.setHeaderFunction=function(ut){return He.call(this),this.internal.__cell__.headerFunction=typeof ut=="function"?ut:void 0,this},$e.getTextDimensions=function(ut,Ft){He.call(this);var wr=(Ft=Ft||{}).fontSize||this.getFontSize(),hr=Ft.font||this.getFont(),Nr=Ft.scaleFactor||this.internal.scaleFactor,Kt=0,un=0,ar=0,Gr=this;if(!Array.isArray(ut)&&typeof ut!="string"){if(typeof ut!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ut=String(ut)}var Br=Ft.maxWidth;Br>0?typeof ut=="string"?ut=this.splitTextToSize(ut,Br):Object.prototype.toString.call(ut)==="[object Array]"&&(ut=ut.reduce(function(Sn,Pn){return Sn.concat(Gr.splitTextToSize(Pn,Br))},[])):ut=Array.isArray(ut)?ut:[ut];for(var gr=0;gr<ut.length;gr++)Kt<(ar=this.getStringUnitWidth(ut[gr],{font:hr})*wr)&&(Kt=ar);return Kt!==0&&(un=ut.length),{w:Kt/=Nr,h:Math.max((un*wr*this.getLineHeightFactor()-wr*(this.getLineHeightFactor()-1))/Nr,0)}},$e.cellAddPage=function(){He.call(this),this.addPage();var ut=this.internal.__cell__.margins||_e;return this.internal.__cell__.lastCell=new Ye(ut.left,ut.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var et=$e.cell=function(){var ut;ut=arguments[0]instanceof Ye?arguments[0]:new Ye(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),He.call(this);var Ft=this.internal.__cell__.lastCell,wr=this.internal.__cell__.padding,hr=this.internal.__cell__.margins||_e,Nr=this.internal.__cell__.tableHeaderRow,Kt=this.internal.__cell__.printHeaders;return Ft.lineNumber!==void 0&&(Ft.lineNumber===ut.lineNumber?(ut.x=(Ft.x||0)+(Ft.width||0),ut.y=Ft.y||0):Ft.y+Ft.height+ut.height+hr.bottom>this.getPageHeight()?(this.cellAddPage(),ut.y=hr.top,Kt&&Nr&&(this.printHeaderRow(ut.lineNumber,!0),ut.y+=Nr[0].height)):ut.y=Ft.y+Ft.height||ut.y),ut.text[0]!==void 0&&(this.rect(ut.x,ut.y,ut.width,ut.height,Be===!0?"FD":void 0),ut.align==="right"?this.text(ut.text,ut.x+ut.width-wr,ut.y+wr,{align:"right",baseline:"top"}):ut.align==="center"?this.text(ut.text,ut.x+ut.width/2,ut.y+wr,{align:"center",baseline:"top",maxWidth:ut.width-wr-wr}):this.text(ut.text,ut.x+wr,ut.y+wr,{align:"left",baseline:"top",maxWidth:ut.width-wr-wr})),this.internal.__cell__.lastCell=ut,this};$e.table=function(ut,Ft,wr,hr,Nr){if(He.call(this),!wr)throw new Error("No data for PDF table.");var Kt,un,ar,Gr,Br=[],gr=[],Sn=[],Pn={},ii={},oi=[],ti=[],bi=(Nr=Nr||{}).autoSize||!1,kn=Nr.printHeaders!==!1,Ii=Nr.css&&Nr.css["font-size"]!==void 0?16*Nr.css["font-size"]:Nr.fontSize||12,gn=Nr.margins||Object.assign({width:this.getPageWidth()},_e),Vr=typeof Nr.padding=="number"?Nr.padding:3,xn=Nr.headerBackgroundColor||"#c8c8c8",tn=Nr.headerTextColor||"#000";if(Je.call(this),this.internal.__cell__.printHeaders=kn,this.internal.__cell__.margins=gn,this.internal.__cell__.table_font_size=Ii,this.internal.__cell__.padding=Vr,this.internal.__cell__.headerBackgroundColor=xn,this.internal.__cell__.headerTextColor=tn,this.setFontSize(Ii),hr==null)gr=Br=Object.keys(wr[0]),Sn=Br.map(function(){return"left"});else if(Array.isArray(hr)&&L()(hr[0])==="object")for(Br=hr.map(function(ri){return ri.name}),gr=hr.map(function(ri){return ri.prompt||ri.name||""}),Sn=hr.map(function(ri){return ri.align||"left"}),Kt=0;Kt<hr.length;Kt+=1)ii[hr[Kt].name]=hr[Kt].width*(19.049976/25.4);else Array.isArray(hr)&&typeof hr[0]=="string"&&(gr=Br=hr,Sn=Br.map(function(){return"left"}));if(bi||Array.isArray(hr)&&typeof hr[0]=="string")for(Kt=0;Kt<Br.length;Kt+=1){for(Pn[Gr=Br[Kt]]=wr.map(function(ri){return ri[Gr]}),this.setFont(void 0,"bold"),oi.push(this.getTextDimensions(gr[Kt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),un=Pn[Gr],this.setFont(void 0,"normal"),ar=0;ar<un.length;ar+=1)oi.push(this.getTextDimensions(un[ar],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ii[Gr]=Math.max.apply(null,oi)+Vr+Vr,oi=[]}if(kn){var ui={};for(Kt=0;Kt<Br.length;Kt+=1)ui[Br[Kt]]={},ui[Br[Kt]].text=gr[Kt],ui[Br[Kt]].align=Sn[Kt];var qn=wt.call(this,ui,ii);ti=Br.map(function(ri){return new Ye(ut,Ft,ii[ri],qn,ui[ri].text,void 0,ui[ri].align)}),this.setTableHeaderRow(ti),this.printHeaderRow(1,!1)}var wi=hr.reduce(function(ri,Mi){return ri[Mi.name]=Mi.align,ri},{});for(Kt=0;Kt<wr.length;Kt+=1){"rowStart"in Nr&&Nr.rowStart instanceof Function&&Nr.rowStart({row:Kt,data:wr[Kt]},this);var Qn=wt.call(this,wr[Kt],ii);for(ar=0;ar<Br.length;ar+=1){var Hi=wr[Kt][Br[ar]];"cellStart"in Nr&&Nr.cellStart instanceof Function&&Nr.cellStart({row:Kt,col:ar,data:Hi},this),et.call(this,new Ye(ut,Ft,ii[Br[ar]],Qn,Hi,Kt+2,wi[Br[ar]]))}}return this.internal.__cell__.table_x=ut,this.internal.__cell__.table_y=Ft,this};var wt=function(Ft,wr){var hr=this.internal.__cell__.padding,Nr=this.internal.__cell__.table_font_size,Kt=this.internal.scaleFactor;return Object.keys(Ft).map(function(un){var ar=Ft[un];return this.splitTextToSize(ar.hasOwnProperty("text")?ar.text:ar,wr[un]-hr-hr)},this).map(function(un){return this.getLineHeightFactor()*un.length*Nr/Kt+hr+hr},this).reduce(function(un,ar){return Math.max(un,ar)},0)};$e.setTableHeaderRow=function(ut){He.call(this),this.internal.__cell__.tableHeaderRow=ut},$e.printHeaderRow=function(ut,Ft){if(He.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var wr;if(Be=!0,typeof this.internal.__cell__.headerFunction=="function"){var hr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Ye(hr[0],hr[1],hr[2],hr[3],void 0,-1)}this.setFont(void 0,"bold");for(var Nr=[],Kt=0;Kt<this.internal.__cell__.tableHeaderRow.length;Kt+=1){wr=this.internal.__cell__.tableHeaderRow[Kt].clone(),Ft&&(wr.y=this.internal.__cell__.margins.top||0,Nr.push(wr)),wr.lineNumber=ut;var un=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),et.call(this,wr),this.setTextColor(un)}Nr.length>0&&this.setTableHeaderRow(Nr),this.setFont(void 0,"normal"),Be=!1}}(U.API);var Bt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},qt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ct=ve(qt),Wt=[100,200,300,400,500,600,700,800,900],or=ve(Wt);function Fr($e){var _e=$e.family.replace(/"|'/g,"").toLowerCase(),Be=function(Ye){return Bt[Ye=Ye||"normal"]?Ye:"normal"}($e.style),He=function(Ye){if(!Ye)return 400;if(typeof Ye=="number")return Ye>=100&&Ye<=900&&Ye%100==0?Ye:400;if(/^\d00$/.test(Ye))return parseInt(Ye);switch(Ye){case"bold":return 700;case"normal":default:return 400}}($e.weight),Je=function(Ye){return typeof ct[Ye=Ye||"normal"]=="number"?Ye:"normal"}($e.stretch);return{family:_e,style:Be,weight:He,stretch:Je,src:$e.src||[],ref:$e.ref||{name:_e,style:[Je,Be,He].join(" ")}}}function er($e,_e,Be,He){var Je;for(Je=Be;Je>=0&&Je<_e.length;Je+=He)if($e[_e[Je]])return $e[_e[Je]];for(Je=Be;Je>=0&&Je<_e.length;Je-=He)if($e[_e[Je]])return $e[_e[Je]]}var nr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ot={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function lt($e){return[$e.stretch,$e.style,$e.weight,$e.family].join(" ")}function qe($e,_e,Be){for(var He=(Be=Be||{}).defaultFontFamily||"times",Je=Object.assign({},nr,Be.genericFontFamilies||{}),Ye=null,et=null,wt=0;wt<_e.length;++wt)if(Je[(Ye=Fr(_e[wt])).family]&&(Ye.family=Je[Ye.family]),$e.hasOwnProperty(Ye.family)){et=$e[Ye.family];break}if(!(et=et||$e[He]))throw new Error("Could not find a font-family for the rule '"+lt(Ye)+"' and default family '"+He+"'.");if(et=function(ut,Ft){if(Ft[ut])return Ft[ut];var wr=ct[ut],hr=wr<=ct.normal?-1:1,Nr=er(Ft,qt,wr,hr);if(!Nr)throw new Error("Could not find a matching font-stretch value for "+ut);return Nr}(Ye.stretch,et),et=function(ut,Ft){if(Ft[ut])return Ft[ut];for(var wr=Bt[ut],hr=0;hr<wr.length;++hr)if(Ft[wr[hr]])return Ft[wr[hr]];throw new Error("Could not find a matching font-style for "+ut)}(Ye.style,et),!(et=function(ut,Ft){if(Ft[ut])return Ft[ut];if(ut===400&&Ft[500])return Ft[500];if(ut===500&&Ft[400])return Ft[400];var wr=or[ut],hr=er(Ft,Wt,wr,ut<400?-1:1);if(!hr)throw new Error("Could not find a matching font-weight for value "+ut);return hr}(Ye.weight,et)))throw new Error("Failed to resolve a font for the rule '"+lt(Ye)+"'.");return et}function tr($e){return $e.trimLeft()}function xr($e,_e){for(var Be=0;Be<$e.length;){if($e.charAt(Be)===_e)return[$e.substring(0,Be),$e.substring(Be+1)];Be+=1}return null}function Ar($e){var _e=$e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return _e===null?null:[_e[0],$e.substring(_e[0].length)]}var fr,vn,$r,Ln=["times"];!function($e){var _e,Be,He,Je,Ye,et,wt,ut,Ft,wr=function(Ur){return Ur=Ur||{},this.isStrokeTransparent=Ur.isStrokeTransparent||!1,this.strokeOpacity=Ur.strokeOpacity||1,this.strokeStyle=Ur.strokeStyle||"#000000",this.fillStyle=Ur.fillStyle||"#000000",this.isFillTransparent=Ur.isFillTransparent||!1,this.fillOpacity=Ur.fillOpacity||1,this.font=Ur.font||"10px sans-serif",this.textBaseline=Ur.textBaseline||"alphabetic",this.textAlign=Ur.textAlign||"left",this.lineWidth=Ur.lineWidth||1,this.lineJoin=Ur.lineJoin||"miter",this.lineCap=Ur.lineCap||"butt",this.path=Ur.path||[],this.transform=Ur.transform!==void 0?Ur.transform.clone():new ut,this.globalCompositeOperation=Ur.globalCompositeOperation||"normal",this.globalAlpha=Ur.globalAlpha||1,this.clip_path=Ur.clip_path||[],this.currentPoint=Ur.currentPoint||new et,this.miterLimit=Ur.miterLimit||10,this.lastPoint=Ur.lastPoint||new et,this.lineDashOffset=Ur.lineDashOffset||0,this.lineDash=Ur.lineDash||[],this.margin=Ur.margin||[0,0,0,0],this.prevPageLastElemOffset=Ur.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Ur.ignoreClearRect!="boolean"||Ur.ignoreClearRect,this};$e.events.push(["initialized",function(){this.context2d=new hr(this),_e=this.internal.f2,Be=this.internal.getCoordinateString,He=this.internal.getVerticalCoordinateString,Je=this.internal.getHorizontalCoordinate,Ye=this.internal.getVerticalCoordinate,et=this.internal.Point,wt=this.internal.Rectangle,ut=this.internal.Matrix,Ft=new wr}]);var hr=function(Ur){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var bn=Ur;Object.defineProperty(this,"pdf",{get:function(){return bn}});var Mn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Mn},set:function(_i){Mn=Boolean(_i)}});var Gn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Gn},set:function(_i){Gn=Boolean(_i)}});var $n=0;Object.defineProperty(this,"posX",{get:function(){return $n},set:function(_i){isNaN(_i)||($n=_i)}});var hi=0;Object.defineProperty(this,"posY",{get:function(){return hi},set:function(_i){isNaN(_i)||(hi=_i)}}),Object.defineProperty(this,"margin",{get:function(){return Ft.margin},set:function(_i){var Ji;typeof _i=="number"?Ji=[_i,_i,_i,_i]:((Ji=new Array(4))[0]=_i[0],Ji[1]=_i.length>=2?_i[1]:Ji[0],Ji[2]=_i.length>=3?_i[2]:Ji[0],Ji[3]=_i.length>=4?_i[3]:Ji[1]),Ft.margin=Ji}});var fi=!1;Object.defineProperty(this,"autoPaging",{get:function(){return fi},set:function(_i){fi=_i}});var gi=0;Object.defineProperty(this,"lastBreak",{get:function(){return gi},set:function(_i){gi=_i}});var Wi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Wi},set:function(_i){Wi=_i}}),Object.defineProperty(this,"ctx",{get:function(){return Ft},set:function(_i){_i instanceof wr&&(Ft=_i)}}),Object.defineProperty(this,"path",{get:function(){return Ft.path},set:function(_i){Ft.path=_i}});var na=[];Object.defineProperty(this,"ctxStack",{get:function(){return na},set:function(_i){na=_i}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(_i){var Ji;Ji=Nr(_i),this.ctx.fillStyle=Ji.style,this.ctx.isFillTransparent=Ji.a===0,this.ctx.fillOpacity=Ji.a,this.pdf.setFillColor(Ji.r,Ji.g,Ji.b,{a:Ji.a}),this.pdf.setTextColor(Ji.r,Ji.g,Ji.b,{a:Ji.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(_i){var Ji=Nr(_i);this.ctx.strokeStyle=Ji.style,this.ctx.isStrokeTransparent=Ji.a===0,this.ctx.strokeOpacity=Ji.a,Ji.a===0?this.pdf.setDrawColor(255,255,255):(Ji.a,this.pdf.setDrawColor(Ji.r,Ji.g,Ji.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(_i){["butt","round","square"].indexOf(_i)!==-1&&(this.ctx.lineCap=_i,this.pdf.setLineCap(_i))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(_i){isNaN(_i)||(this.ctx.lineWidth=_i,this.pdf.setLineWidth(_i))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(_i){["bevel","round","miter"].indexOf(_i)!==-1&&(this.ctx.lineJoin=_i,this.pdf.setLineJoin(_i))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(_i){isNaN(_i)||(this.ctx.miterLimit=_i,this.pdf.setMiterLimit(_i))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(_i){this.ctx.textBaseline=_i}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(_i){["right","end","center","left","start"].indexOf(_i)!==-1&&(this.ctx.textAlign=_i)}});var $i=null;function Ha(ln,_i){if($i===null){var Ji=function(Fi){var ea=[];return Object.keys(Fi).forEach(function(Vt){Fi[Vt].forEach(function(Xr){var nn=null;switch(Xr){case"bold":nn={family:Vt,weight:"bold"};break;case"italic":nn={family:Vt,style:"italic"};break;case"bolditalic":nn={family:Vt,weight:"bold",style:"italic"};break;case"":case"normal":nn={family:Vt}}nn!==null&&(nn.ref={name:Vt,style:Xr},ea.push(nn))})}),ea}(ln.getFontList());$i=function(Fi){for(var ea={},Vt=0;Vt<Fi.length;++Vt){var Xr=Fr(Fi[Vt]),nn=Xr.family,fn=Xr.stretch,Ze=Xr.style,Lt=Xr.weight;ea[nn]=ea[nn]||{},ea[nn][fn]=ea[nn][fn]||{},ea[nn][fn][Ze]=ea[nn][fn][Ze]||{},ea[nn][fn][Ze][Lt]=Xr}return ea}(Ji.concat(_i))}return $i}var pi=null;Object.defineProperty(this,"fontFaces",{get:function(){return pi},set:function(_i){$i=null,pi=_i}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(_i){var Ji;if(this.ctx.font=_i,(Ji=/^\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(_i))!==null){var Fi=Ji[1],ea=(Ji[2],Ji[3]),Vt=Ji[4],Xr=(Ji[5],Ji[6]),nn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Vt)[2];Vt=nn==="px"?Math.floor(parseFloat(Vt)*this.pdf.internal.scaleFactor):nn==="em"?Math.floor(parseFloat(Vt)*this.pdf.getFontSize()):Math.floor(parseFloat(Vt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Vt);var fn=function(Wr){var on,En,An=[],Rn=Wr.trim();if(Rn==="")return Ln;if(Rn in Ot)return[Ot[Rn]];for(;Rn!=="";){switch(En=null,on=(Rn=tr(Rn)).charAt(0)){case'"':case"'":En=xr(Rn.substring(1),on);break;default:En=Ar(Rn)}if(En===null)return Ln;if(An.push(En[0]),(Rn=tr(En[1]))!==""&&Rn.charAt(0)!==",")return Ln;Rn=Rn.replace(/^,/,"")}return An}(Xr);if(this.fontFaces){var Ze=qe(Ha(this.pdf,this.fontFaces),fn.map(function(Wr){return{family:Wr,stretch:"normal",weight:ea,style:Fi}}));this.pdf.setFont(Ze.ref.name,Ze.ref.style)}else{var Lt="";(ea==="bold"||parseInt(ea,10)>=700||Fi==="bold")&&(Lt="bold"),Fi==="italic"&&(Lt+="italic"),Lt.length===0&&(Lt="normal");for(var cr="",lr={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"},_r=0;_r<fn.length;_r++){if(this.pdf.internal.getFont(fn[_r],Lt,{noFallback:!0,disableWarning:!0})!==void 0){cr=fn[_r];break}if(Lt==="bolditalic"&&this.pdf.internal.getFont(fn[_r],"bold",{noFallback:!0,disableWarning:!0})!==void 0)cr=fn[_r],Lt="bold";else if(this.pdf.internal.getFont(fn[_r],"normal",{noFallback:!0,disableWarning:!0})!==void 0){cr=fn[_r],Lt="normal";break}}if(cr===""){for(var Rr=0;Rr<fn.length;Rr++)if(lr[fn[Rr]]){cr=lr[fn[Rr]];break}}cr=cr===""?"Times":cr,this.pdf.setFont(cr,Lt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(_i){this.ctx.globalCompositeOperation=_i}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(_i){this.ctx.globalAlpha=_i}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(_i){this.ctx.lineDashOffset=_i,Mi.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(_i){this.ctx.lineDash=_i,Mi.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(_i){this.ctx.ignoreClearRect=Boolean(_i)}})};hr.prototype.setLineDash=function(dn){this.lineDash=dn},hr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},hr.prototype.fill=function(){Pn.call(this,"fill",!1)},hr.prototype.stroke=function(){Pn.call(this,"stroke",!1)},hr.prototype.beginPath=function(){this.path=[{type:"begin"}]},hr.prototype.moveTo=function(dn,Ur){if(isNaN(dn)||isNaN(Ur))throw m.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var bn=this.ctx.transform.applyToPoint(new et(dn,Ur));this.path.push({type:"mt",x:bn.x,y:bn.y}),this.ctx.lastPoint=new et(dn,Ur)},hr.prototype.closePath=function(){var dn=new et(0,0),Ur=0;for(Ur=this.path.length-1;Ur!==-1;Ur--)if(this.path[Ur].type==="begin"&&L()(this.path[Ur+1])==="object"&&typeof this.path[Ur+1].x=="number"){dn=new et(this.path[Ur+1].x,this.path[Ur+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new et(dn.x,dn.y)},hr.prototype.lineTo=function(dn,Ur){if(isNaN(dn)||isNaN(Ur))throw m.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var bn=this.ctx.transform.applyToPoint(new et(dn,Ur));this.path.push({type:"lt",x:bn.x,y:bn.y}),this.ctx.lastPoint=new et(bn.x,bn.y)},hr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Pn.call(this,null,!0)},hr.prototype.quadraticCurveTo=function(dn,Ur,bn,Mn){if(isNaN(bn)||isNaN(Mn)||isNaN(dn)||isNaN(Ur))throw m.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Gn=this.ctx.transform.applyToPoint(new et(bn,Mn)),$n=this.ctx.transform.applyToPoint(new et(dn,Ur));this.path.push({type:"qct",x1:$n.x,y1:$n.y,x:Gn.x,y:Gn.y}),this.ctx.lastPoint=new et(Gn.x,Gn.y)},hr.prototype.bezierCurveTo=function(dn,Ur,bn,Mn,Gn,$n){if(isNaN(Gn)||isNaN($n)||isNaN(dn)||isNaN(Ur)||isNaN(bn)||isNaN(Mn))throw m.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var hi=this.ctx.transform.applyToPoint(new et(Gn,$n)),fi=this.ctx.transform.applyToPoint(new et(dn,Ur)),gi=this.ctx.transform.applyToPoint(new et(bn,Mn));this.path.push({type:"bct",x1:fi.x,y1:fi.y,x2:gi.x,y2:gi.y,x:hi.x,y:hi.y}),this.ctx.lastPoint=new et(hi.x,hi.y)},hr.prototype.arc=function(dn,Ur,bn,Mn,Gn,$n){if(isNaN(dn)||isNaN(Ur)||isNaN(bn)||isNaN(Mn)||isNaN(Gn))throw m.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if($n=Boolean($n),!this.ctx.transform.isIdentity){var hi=this.ctx.transform.applyToPoint(new et(dn,Ur));dn=hi.x,Ur=hi.y;var fi=this.ctx.transform.applyToPoint(new et(0,bn)),gi=this.ctx.transform.applyToPoint(new et(0,0));bn=Math.sqrt(Math.pow(fi.x-gi.x,2)+Math.pow(fi.y-gi.y,2))}Math.abs(Gn-Mn)>=2*Math.PI&&(Mn=0,Gn=2*Math.PI),this.path.push({type:"arc",x:dn,y:Ur,radius:bn,startAngle:Mn,endAngle:Gn,counterclockwise:$n})},hr.prototype.arcTo=function(dn,Ur,bn,Mn,Gn){throw new Error("arcTo not implemented.")},hr.prototype.rect=function(dn,Ur,bn,Mn){if(isNaN(dn)||isNaN(Ur)||isNaN(bn)||isNaN(Mn))throw m.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(dn,Ur),this.lineTo(dn+bn,Ur),this.lineTo(dn+bn,Ur+Mn),this.lineTo(dn,Ur+Mn),this.lineTo(dn,Ur),this.lineTo(dn+bn,Ur),this.lineTo(dn,Ur)},hr.prototype.fillRect=function(dn,Ur,bn,Mn){if(isNaN(dn)||isNaN(Ur)||isNaN(bn)||isNaN(Mn))throw m.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Kt.call(this)){var Gn={};this.lineCap!=="butt"&&(Gn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Gn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(dn,Ur,bn,Mn),this.fill(),Gn.hasOwnProperty("lineCap")&&(this.lineCap=Gn.lineCap),Gn.hasOwnProperty("lineJoin")&&(this.lineJoin=Gn.lineJoin)}},hr.prototype.strokeRect=function(dn,Ur,bn,Mn){if(isNaN(dn)||isNaN(Ur)||isNaN(bn)||isNaN(Mn))throw m.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");un.call(this)||(this.beginPath(),this.rect(dn,Ur,bn,Mn),this.stroke())},hr.prototype.clearRect=function(dn,Ur,bn,Mn){if(isNaN(dn)||isNaN(Ur)||isNaN(bn)||isNaN(Mn))throw m.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(dn,Ur,bn,Mn))},hr.prototype.save=function(dn){dn=typeof dn!="boolean"||dn;for(var Ur=this.pdf.internal.getCurrentPageInfo().pageNumber,bn=0;bn<this.pdf.internal.getNumberOfPages();bn++)this.pdf.setPage(bn+1),this.pdf.internal.out("q");if(this.pdf.setPage(Ur),dn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Mn=new wr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Mn}},hr.prototype.restore=function(dn){dn=typeof dn!="boolean"||dn;for(var Ur=this.pdf.internal.getCurrentPageInfo().pageNumber,bn=0;bn<this.pdf.internal.getNumberOfPages();bn++)this.pdf.setPage(bn+1),this.pdf.internal.out("Q");this.pdf.setPage(Ur),dn&&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)},hr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Nr=function(Ur){var bn,Mn,Gn,$n;if(Ur.isCanvasGradient===!0&&(Ur=Ur.getColor()),!Ur)return{r:0,g:0,b:0,a:0,style:Ur};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Ur))bn=0,Mn=0,Gn=0,$n=0;else{var hi=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Ur);if(hi!==null)bn=parseInt(hi[1]),Mn=parseInt(hi[2]),Gn=parseInt(hi[3]),$n=1;else if((hi=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Ur))!==null)bn=parseInt(hi[1]),Mn=parseInt(hi[2]),Gn=parseInt(hi[3]),$n=parseFloat(hi[4]);else{if($n=1,typeof Ur=="string"&&Ur.charAt(0)!=="#"){var fi=new u(Ur);Ur=fi.ok?fi.toHex():"#000000"}Ur.length===4?(bn=Ur.substring(1,2),bn+=bn,Mn=Ur.substring(2,3),Mn+=Mn,Gn=Ur.substring(3,4),Gn+=Gn):(bn=Ur.substring(1,3),Mn=Ur.substring(3,5),Gn=Ur.substring(5,7)),bn=parseInt(bn,16),Mn=parseInt(Mn,16),Gn=parseInt(Gn,16)}}return{r:bn,g:Mn,b:Gn,a:$n,style:Ur}},Kt=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},un=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};hr.prototype.fillText=function(dn,Ur,bn,Mn){if(isNaN(Ur)||isNaN(bn)||typeof dn!="string")throw m.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Mn=isNaN(Mn)?void 0:Mn,!Kt.call(this)){var Gn=Qn(this.ctx.transform.rotation),$n=this.ctx.transform.scaleX;Vr.call(this,{text:dn,x:Ur,y:bn,scale:$n,angle:Gn,align:this.textAlign,maxWidth:Mn})}},hr.prototype.strokeText=function(dn,Ur,bn,Mn){if(isNaN(Ur)||isNaN(bn)||typeof dn!="string")throw m.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!un.call(this)){Mn=isNaN(Mn)?void 0:Mn;var Gn=Qn(this.ctx.transform.rotation),$n=this.ctx.transform.scaleX;Vr.call(this,{text:dn,x:Ur,y:bn,scale:$n,renderingMode:"stroke",angle:Gn,align:this.textAlign,maxWidth:Mn})}},hr.prototype.measureText=function(dn){if(typeof dn!="string")throw m.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Ur=this.pdf,bn=this.pdf.internal.scaleFactor,Mn=Ur.internal.getFontSize(),Gn=Ur.getStringUnitWidth(dn)*Mn/Ur.internal.scaleFactor,$n=function(fi){var gi=(fi=fi||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return gi}}),this};return new $n({width:Gn*=Math.round(96*bn/72*1e4)/1e4})},hr.prototype.scale=function(dn,Ur){if(isNaN(dn)||isNaN(Ur))throw m.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var bn=new ut(dn,0,0,Ur,0,0);this.ctx.transform=this.ctx.transform.multiply(bn)},hr.prototype.rotate=function(dn){if(isNaN(dn))throw m.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Ur=new ut(Math.cos(dn),Math.sin(dn),-Math.sin(dn),Math.cos(dn),0,0);this.ctx.transform=this.ctx.transform.multiply(Ur)},hr.prototype.translate=function(dn,Ur){if(isNaN(dn)||isNaN(Ur))throw m.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var bn=new ut(1,0,0,1,dn,Ur);this.ctx.transform=this.ctx.transform.multiply(bn)},hr.prototype.transform=function(dn,Ur,bn,Mn,Gn,$n){if(isNaN(dn)||isNaN(Ur)||isNaN(bn)||isNaN(Mn)||isNaN(Gn)||isNaN($n))throw m.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var hi=new ut(dn,Ur,bn,Mn,Gn,$n);this.ctx.transform=this.ctx.transform.multiply(hi)},hr.prototype.setTransform=function(dn,Ur,bn,Mn,Gn,$n){dn=isNaN(dn)?1:dn,Ur=isNaN(Ur)?0:Ur,bn=isNaN(bn)?0:bn,Mn=isNaN(Mn)?1:Mn,Gn=isNaN(Gn)?0:Gn,$n=isNaN($n)?0:$n,this.ctx.transform=new ut(dn,Ur,bn,Mn,Gn,$n)};var ar=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};hr.prototype.drawImage=function(dn,Ur,bn,Mn,Gn,$n,hi,fi,gi){var Wi=this.pdf.getImageProperties(dn),na=1,$i=1,Ha=1,pi=1;Mn!==void 0&&fi!==void 0&&(Ha=fi/Mn,pi=gi/Gn,na=Wi.width/Mn*fi/Mn,$i=Wi.height/Gn*gi/Gn),$n===void 0&&($n=Ur,hi=bn,Ur=0,bn=0),Mn!==void 0&&fi===void 0&&(fi=Mn,gi=Gn),Mn===void 0&&fi===void 0&&(fi=Wi.width,gi=Wi.height);for(var ln,_i=this.ctx.transform.decompose(),Ji=Qn(_i.rotate.shx),Fi=new ut,ea=(Fi=(Fi=(Fi=Fi.multiply(_i.translate)).multiply(_i.skew)).multiply(_i.scale)).applyToRectangle(new wt($n-Ur*Ha,hi-bn*pi,Mn*na,Gn*$i)),Vt=Gr.call(this,ea),Xr=[],nn=0;nn<Vt.length;nn+=1)Xr.indexOf(Vt[nn])===-1&&Xr.push(Vt[nn]);if(Sn(Xr),this.autoPaging)for(var fn=Xr[0],Ze=Xr[Xr.length-1],Lt=fn;Lt<Ze+1;Lt++){this.pdf.setPage(Lt);var cr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],lr=Lt===1?this.posY+this.margin[0]:this.margin[0],_r=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Rr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Wr=Lt===1?0:_r+(Lt-2)*Rr;if(this.ctx.clip_path.length!==0){var on=this.path;ln=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gr(ln,this.posX+this.margin[3],-Wr+lr+this.ctx.prevPageLastElemOffset),ii.call(this,"fill",!0),this.path=on}var En=JSON.parse(JSON.stringify(ea));En=gr([En],this.posX+this.margin[3],-Wr+lr+this.ctx.prevPageLastElemOffset)[0];var An=(Lt>fn||Lt<Ze)&&ar.call(this);An&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],cr,Rr,null).clip().discardPath()),this.pdf.addImage(dn,"JPEG",En.x,En.y,En.w,En.h,null,null,Ji),An&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(dn,"JPEG",ea.x,ea.y,ea.w,ea.h,null,null,Ji)};var Gr=function(Ur,bn,Mn){var Gn=[];bn=bn||this.pdf.internal.pageSize.width,Mn=Mn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $n=this.posY+this.ctx.prevPageLastElemOffset;switch(Ur.type){default:case"mt":case"lt":Gn.push(Math.floor((Ur.y+$n)/Mn)+1);break;case"arc":Gn.push(Math.floor((Ur.y+$n-Ur.radius)/Mn)+1),Gn.push(Math.floor((Ur.y+$n+Ur.radius)/Mn)+1);break;case"qct":var hi=Hi(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ur.x1,Ur.y1,Ur.x,Ur.y);Gn.push(Math.floor((hi.y+$n)/Mn)+1),Gn.push(Math.floor((hi.y+hi.h+$n)/Mn)+1);break;case"bct":var fi=ri(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ur.x1,Ur.y1,Ur.x2,Ur.y2,Ur.x,Ur.y);Gn.push(Math.floor((fi.y+$n)/Mn)+1),Gn.push(Math.floor((fi.y+fi.h+$n)/Mn)+1);break;case"rect":Gn.push(Math.floor((Ur.y+$n)/Mn)+1),Gn.push(Math.floor((Ur.y+Ur.h+$n)/Mn)+1)}for(var gi=0;gi<Gn.length;gi+=1)for(;this.pdf.internal.getNumberOfPages()<Gn[gi];)Br.call(this);return Gn},Br=function(){var Ur=this.fillStyle,bn=this.strokeStyle,Mn=this.font,Gn=this.lineCap,$n=this.lineWidth,hi=this.lineJoin;this.pdf.addPage(),this.fillStyle=Ur,this.strokeStyle=bn,this.font=Mn,this.lineCap=Gn,this.lineWidth=$n,this.lineJoin=hi},gr=function(Ur,bn,Mn){for(var Gn=0;Gn<Ur.length;Gn++)switch(Ur[Gn].type){case"bct":Ur[Gn].x2+=bn,Ur[Gn].y2+=Mn;case"qct":Ur[Gn].x1+=bn,Ur[Gn].y1+=Mn;case"mt":case"lt":case"arc":default:Ur[Gn].x+=bn,Ur[Gn].y+=Mn}return Ur},Sn=function(Ur){return Ur.sort(function(bn,Mn){return bn-Mn})},Pn=function(Ur,bn){for(var Mn,Gn,$n=this.fillStyle,hi=this.strokeStyle,fi=this.lineCap,gi=this.lineWidth,Wi=Math.abs(gi*this.ctx.transform.scaleX),na=this.lineJoin,$i=JSON.parse(JSON.stringify(this.path)),Ha=JSON.parse(JSON.stringify(this.path)),pi=[],ln=0;ln<Ha.length;ln++)if(Ha[ln].x!==void 0)for(var _i=Gr.call(this,Ha[ln]),Ji=0;Ji<_i.length;Ji+=1)pi.indexOf(_i[Ji])===-1&&pi.push(_i[Ji]);for(var Fi=0;Fi<pi.length;Fi++)for(;this.pdf.internal.getNumberOfPages()<pi[Fi];)Br.call(this);if(Sn(pi),this.autoPaging)for(var ea=pi[0],Vt=pi[pi.length-1],Xr=ea;Xr<Vt+1;Xr++){this.pdf.setPage(Xr),this.fillStyle=$n,this.strokeStyle=hi,this.lineCap=fi,this.lineWidth=Wi,this.lineJoin=na;var nn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fn=Xr===1?this.posY+this.margin[0]:this.margin[0],Ze=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Lt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],cr=Xr===1?0:Ze+(Xr-2)*Lt;if(this.ctx.clip_path.length!==0){var lr=this.path;Mn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gr(Mn,this.posX+this.margin[3],-cr+fn+this.ctx.prevPageLastElemOffset),ii.call(this,Ur,!0),this.path=lr}if(Gn=JSON.parse(JSON.stringify($i)),this.path=gr(Gn,this.posX+this.margin[3],-cr+fn+this.ctx.prevPageLastElemOffset),bn===!1||Xr===0){var _r=(Xr>ea||Xr<Vt)&&ar.call(this);_r&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],nn,Lt,null).clip().discardPath()),ii.call(this,Ur,bn),_r&&this.pdf.restoreGraphicsState()}this.lineWidth=gi}else this.lineWidth=Wi,ii.call(this,Ur,bn),this.lineWidth=gi;this.path=$i},ii=function(Ur,bn){if((Ur!=="stroke"||bn||!un.call(this))&&(Ur==="stroke"||bn||!Kt.call(this))){for(var Mn,Gn,$n=[],hi=this.path,fi=0;fi<hi.length;fi++){var gi=hi[fi];switch(gi.type){case"begin":$n.push({begin:!0});break;case"close":$n.push({close:!0});break;case"mt":$n.push({start:gi,deltas:[],abs:[]});break;case"lt":var Wi=$n.length;if(hi[fi-1]&&!isNaN(hi[fi-1].x)&&(Mn=[gi.x-hi[fi-1].x,gi.y-hi[fi-1].y],Wi>0)){for(;Wi>=0;Wi--)if($n[Wi-1].close!==!0&&$n[Wi-1].begin!==!0){$n[Wi-1].deltas.push(Mn),$n[Wi-1].abs.push(gi);break}}break;case"bct":Mn=[gi.x1-hi[fi-1].x,gi.y1-hi[fi-1].y,gi.x2-hi[fi-1].x,gi.y2-hi[fi-1].y,gi.x-hi[fi-1].x,gi.y-hi[fi-1].y],$n[$n.length-1].deltas.push(Mn);break;case"qct":var na=hi[fi-1].x+2/3*(gi.x1-hi[fi-1].x),$i=hi[fi-1].y+2/3*(gi.y1-hi[fi-1].y),Ha=gi.x+2/3*(gi.x1-gi.x),pi=gi.y+2/3*(gi.y1-gi.y),ln=gi.x,_i=gi.y;Mn=[na-hi[fi-1].x,$i-hi[fi-1].y,Ha-hi[fi-1].x,pi-hi[fi-1].y,ln-hi[fi-1].x,_i-hi[fi-1].y],$n[$n.length-1].deltas.push(Mn);break;case"arc":$n.push({deltas:[],abs:[],arc:!0}),Array.isArray($n[$n.length-1].abs)&&$n[$n.length-1].abs.push(gi)}}Gn=bn?null:Ur==="stroke"?"stroke":"fill";for(var Ji=!1,Fi=0;Fi<$n.length;Fi++)if($n[Fi].arc)for(var ea=$n[Fi].abs,Vt=0;Vt<ea.length;Vt++){var Xr=ea[Vt];Xr.type==="arc"?bi.call(this,Xr.x,Xr.y,Xr.radius,Xr.startAngle,Xr.endAngle,Xr.counterclockwise,void 0,bn,!Ji):xn.call(this,Xr.x,Xr.y),Ji=!0}else if($n[Fi].close===!0)this.pdf.internal.out("h"),Ji=!1;else if($n[Fi].begin!==!0){var nn=$n[Fi].start.x,fn=$n[Fi].start.y;tn.call(this,$n[Fi].deltas,nn,fn),Ji=!0}Gn&&kn.call(this,Gn),bn&&Ii.call(this)}},oi=function(Ur){var bn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Mn=bn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Ur-Mn;case"top":return Ur+bn-Mn;case"hanging":return Ur+bn-2*Mn;case"middle":return Ur+bn/2-Mn;case"ideographic":return Ur;case"alphabetic":default:return Ur}},ti=function(Ur){return Ur+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};hr.prototype.createLinearGradient=function(){var dn=function(){};return dn.colorStops=[],dn.addColorStop=function(Ur,bn){this.colorStops.push([Ur,bn])},dn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},dn.isCanvasGradient=!0,dn},hr.prototype.createPattern=function(){return this.createLinearGradient()},hr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var bi=function(Ur,bn,Mn,Gn,$n,hi,fi,gi,Wi){for(var na=qn.call(this,Mn,Gn,$n,hi),$i=0;$i<na.length;$i++){var Ha=na[$i];$i===0&&(Wi?gn.call(this,Ha.x1+Ur,Ha.y1+bn):xn.call(this,Ha.x1+Ur,Ha.y1+bn)),ui.call(this,Ur,bn,Ha.x2,Ha.y2,Ha.x3,Ha.y3,Ha.x4,Ha.y4)}gi?Ii.call(this):kn.call(this,fi)},kn=function(Ur){switch(Ur){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Ii=function(){this.pdf.clip(),this.pdf.discardPath()},gn=function(Ur,bn){this.pdf.internal.out(Be(Ur)+" "+He(bn)+" m")},Vr=function(Ur){var bn;switch(Ur.align){case"right":case"end":bn="right";break;case"center":bn="center";break;case"left":case"start":default:bn="left"}var Mn=this.pdf.getTextDimensions(Ur.text),Gn=oi.call(this,Ur.y),$n=ti.call(this,Gn)-Mn.h,hi=this.ctx.transform.applyToPoint(new et(Ur.x,Gn)),fi=this.ctx.transform.decompose(),gi=new ut;gi=(gi=(gi=gi.multiply(fi.translate)).multiply(fi.skew)).multiply(fi.scale);for(var Wi,na,$i,Ha=this.ctx.transform.applyToRectangle(new wt(Ur.x,Gn,Mn.w,Mn.h)),pi=gi.applyToRectangle(new wt(Ur.x,$n,Mn.w,Mn.h)),ln=Gr.call(this,pi),_i=[],Ji=0;Ji<ln.length;Ji+=1)_i.indexOf(ln[Ji])===-1&&_i.push(ln[Ji]);if(Sn(_i),this.autoPaging)for(var Fi=_i[0],ea=_i[_i.length-1],Vt=Fi;Vt<ea+1;Vt++){this.pdf.setPage(Vt);var Xr=Vt===1?this.posY+this.margin[0]:this.margin[0],nn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],fn=this.pdf.internal.pageSize.height-this.margin[2],Ze=fn-this.margin[0],Lt=this.pdf.internal.pageSize.width-this.margin[1],cr=Lt-this.margin[3],lr=Vt===1?0:nn+(Vt-2)*Ze;if(this.ctx.clip_path.length!==0){var _r=this.path;Wi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gr(Wi,this.posX+this.margin[3],-1*lr+Xr),ii.call(this,"fill",!0),this.path=_r}var Rr=gr([JSON.parse(JSON.stringify(pi))],this.posX+this.margin[3],-lr+Xr+this.ctx.prevPageLastElemOffset)[0];Ur.scale>=.01&&(na=this.pdf.internal.getFontSize(),this.pdf.setFontSize(na*Ur.scale),$i=this.lineWidth,this.lineWidth=$i*Ur.scale);var Wr=this.autoPaging!=="text";if(Wr||Rr.y+Rr.h<=fn){if(Wr||Rr.y>=Xr&&Rr.x<=Lt){var on=Wr?Ur.text:this.pdf.splitTextToSize(Ur.text,Ur.maxWidth||Lt-Rr.x)[0],En=gr([JSON.parse(JSON.stringify(Ha))],this.posX+this.margin[3],-lr+Xr+this.ctx.prevPageLastElemOffset)[0],An=Wr&&(Vt>Fi||Vt<ea)&&ar.call(this);An&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],cr,Ze,null).clip().discardPath()),this.pdf.text(on,En.x,En.y,{angle:Ur.angle,align:bn,renderingMode:Ur.renderingMode}),An&&this.pdf.restoreGraphicsState()}}else Rr.y<fn&&(this.ctx.prevPageLastElemOffset+=fn-Rr.y);Ur.scale>=.01&&(this.pdf.setFontSize(na),this.lineWidth=$i)}else Ur.scale>=.01&&(na=this.pdf.internal.getFontSize(),this.pdf.setFontSize(na*Ur.scale),$i=this.lineWidth,this.lineWidth=$i*Ur.scale),this.pdf.text(Ur.text,hi.x+this.posX,hi.y+this.posY,{angle:Ur.angle,align:bn,renderingMode:Ur.renderingMode,maxWidth:Ur.maxWidth}),Ur.scale>=.01&&(this.pdf.setFontSize(na),this.lineWidth=$i)},xn=function(Ur,bn,Mn,Gn){Mn=Mn||0,Gn=Gn||0,this.pdf.internal.out(Be(Ur+Mn)+" "+He(bn+Gn)+" l")},tn=function(Ur,bn,Mn){return this.pdf.lines(Ur,bn,Mn,null,null)},ui=function(Ur,bn,Mn,Gn,$n,hi,fi,gi){this.pdf.internal.out([_e(Je(Mn+Ur)),_e(Ye(Gn+bn)),_e(Je($n+Ur)),_e(Ye(hi+bn)),_e(Je(fi+Ur)),_e(Ye(gi+bn)),"c"].join(" "))},qn=function(Ur,bn,Mn,Gn){for(var $n=2*Math.PI,hi=Math.PI/2;bn>Mn;)bn-=$n;var fi=Math.abs(Mn-bn);fi<$n&&Gn&&(fi=$n-fi);for(var gi=[],Wi=Gn?-1:1,na=bn;fi>1e-5;){var $i=na+Wi*Math.min(fi,hi);gi.push(wi.call(this,Ur,na,$i)),fi-=Math.abs($i-na),na=$i}return gi},wi=function(Ur,bn,Mn){var Gn=(Mn-bn)/2,$n=Ur*Math.cos(Gn),hi=Ur*Math.sin(Gn),fi=$n,gi=-hi,Wi=fi*fi+gi*gi,na=Wi+fi*$n+gi*hi,$i=4/3*(Math.sqrt(2*Wi*na)-na)/(fi*hi-gi*$n),Ha=fi-$i*gi,pi=gi+$i*fi,ln=Ha,_i=-pi,Ji=Gn+bn,Fi=Math.cos(Ji),ea=Math.sin(Ji);return{x1:Ur*Math.cos(bn),y1:Ur*Math.sin(bn),x2:Ha*Fi-pi*ea,y2:Ha*ea+pi*Fi,x3:ln*Fi-_i*ea,y3:ln*ea+_i*Fi,x4:Ur*Math.cos(Mn),y4:Ur*Math.sin(Mn)}},Qn=function(Ur){return 180*Ur/Math.PI},Hi=function(Ur,bn,Mn,Gn,$n,hi){var fi=Ur+.5*(Mn-Ur),gi=bn+.5*(Gn-bn),Wi=$n+.5*(Mn-$n),na=hi+.5*(Gn-hi),$i=Math.min(Ur,$n,fi,Wi),Ha=Math.max(Ur,$n,fi,Wi),pi=Math.min(bn,hi,gi,na),ln=Math.max(bn,hi,gi,na);return new wt($i,pi,Ha-$i,ln-pi)},ri=function(Ur,bn,Mn,Gn,$n,hi,fi,gi){var Wi,na,$i,Ha,pi,ln,_i,Ji,Fi,ea,Vt,Xr,nn,fn,Ze=Mn-Ur,Lt=Gn-bn,cr=$n-Mn,lr=hi-Gn,_r=fi-$n,Rr=gi-hi;for(na=0;na<41;na++)Fi=(_i=($i=Ur+(Wi=na/40)*Ze)+Wi*((pi=Mn+Wi*cr)-$i))+Wi*(pi+Wi*($n+Wi*_r-pi)-_i),ea=(Ji=(Ha=bn+Wi*Lt)+Wi*((ln=Gn+Wi*lr)-Ha))+Wi*(ln+Wi*(hi+Wi*Rr-ln)-Ji),na==0?(Vt=Fi,Xr=ea,nn=Fi,fn=ea):(Vt=Math.min(Vt,Fi),Xr=Math.min(Xr,ea),nn=Math.max(nn,Fi),fn=Math.max(fn,ea));return new wt(Math.round(Vt),Math.round(Xr),Math.round(nn-Vt),Math.round(fn-Xr))},Mi=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Ur,bn,Mn=(Ur=this.ctx.lineDash,bn=this.ctx.lineDashOffset,JSON.stringify({lineDash:Ur,lineDashOffset:bn}));this.prevLineDash!==Mn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Mn)}}}(U.API),function($e){var _e=function(et){var wt,ut,Ft,wr,hr,Nr,Kt,un,ar,Gr;for(/[^\x00-\xFF]/.test(et),ut=[],Ft=0,wr=(et+=wt="\0\0\0\0".slice(et.length%4||4)).length;wr>Ft;Ft+=4)(hr=(et.charCodeAt(Ft)<<24)+(et.charCodeAt(Ft+1)<<16)+(et.charCodeAt(Ft+2)<<8)+et.charCodeAt(Ft+3))!==0?(Nr=(hr=((hr=((hr=((hr=(hr-(Gr=hr%85))/85)-(ar=hr%85))/85)-(un=hr%85))/85)-(Kt=hr%85))/85)%85,ut.push(Nr+33,Kt+33,un+33,ar+33,Gr+33)):ut.push(122);return function(Br,gr){for(var Sn=gr;Sn>0;Sn--)Br.pop()}(ut,wt.length),String.fromCharCode.apply(String,ut)+"~>"},Be=function(et){var wt,ut,Ft,wr,hr,Nr=String,Kt="length",un=255,ar="charCodeAt",Gr="slice",Br="replace";for(et[Gr](-2),et=et[Gr](0,-2)[Br](/\s/g,"")[Br]("z","!!!!!"),Ft=[],wr=0,hr=(et+=wt="uuuuu"[Gr](et[Kt]%5||5))[Kt];hr>wr;wr+=5)ut=52200625*(et[ar](wr)-33)+614125*(et[ar](wr+1)-33)+7225*(et[ar](wr+2)-33)+85*(et[ar](wr+3)-33)+(et[ar](wr+4)-33),Ft.push(un&ut>>24,un&ut>>16,un&ut>>8,un&ut);return function(gr,Sn){for(var Pn=Sn;Pn>0;Pn--)gr.pop()}(Ft,wt[Kt]),Nr.fromCharCode.apply(Nr,Ft)},He=function(et){var wt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((et=et.replace(/\s/g,"")).indexOf(">")!==-1&&(et=et.substr(0,et.indexOf(">"))),et.length%2&&(et+="0"),wt.test(et)===!1)return"";for(var ut="",Ft=0;Ft<et.length;Ft+=2)ut+=String.fromCharCode("0x"+(et[Ft]+et[Ft+1]));return ut},Je=function(et){for(var wt=new Uint8Array(et.length),ut=et.length;ut--;)wt[ut]=et.charCodeAt(ut);return et=(wt=Object(E.b)(wt)).reduce(function(Ft,wr){return Ft+String.fromCharCode(wr)},"")};$e.processDataByFilters=function(Ye,et){var wt=0,ut=Ye||"",Ft=[];for(typeof(et=et||[])=="string"&&(et=[et]),wt=0;wt<et.length;wt+=1)switch(et[wt]){case"ASCII85Decode":case"/ASCII85Decode":ut=Be(ut),Ft.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ut=_e(ut),Ft.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ut=He(ut),Ft.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ut=ut.split("").map(function(wr){return("0"+wr.charCodeAt().toString(16)).slice(-2)}).join("")+">",Ft.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ut=Je(ut),Ft.push("/FlateDecode");break;default:throw new Error('The filter: "'+et[wt]+'" is not implemented')}return{data:ut,reverseChain:Ft.reverse().join(" ")}}}(U.API),function($e){$e.loadFile=function(_e,Be,He){return function(Je,Ye,et){Ye=Ye!==!1,et=typeof et=="function"?et:function(){};var wt=void 0;try{wt=function(ut,Ft,wr){var hr=new XMLHttpRequest,Nr=0,Kt=function(ar){var Gr=ar.length,Br=[],gr=String.fromCharCode;for(Nr=0;Nr<Gr;Nr+=1)Br.push(gr(255&ar.charCodeAt(Nr)));return Br.join("")};if(hr.open("GET",ut,!Ft),hr.overrideMimeType("text/plain; charset=x-user-defined"),Ft===!1&&(hr.onload=function(){hr.status===200?wr(Kt(this.responseText)):wr(void 0)}),hr.send(null),Ft&&hr.status===200)return Kt(hr.responseText)}(Je,Ye,et)}catch(ut){}return wt}(_e,Be,He)},$e.loadImageFile=$e.loadFile}(U.API),function($e){function _e(){return(I.html2canvas?Promise.resolve(I.html2canvas):Promise.resolve().then(y.t.bind(null,"wOnQ",7))).catch(function(et){return Promise.reject(new Error("Could not load html2canvas: "+et))}).then(function(et){return et.default?et.default:et})}function Be(){return(I.DOMPurify?Promise.resolve(I.DOMPurify):y.e(239).then(y.t.bind(null,"qZ2Q",7))).catch(function(et){return Promise.reject(new Error("Could not load dompurify: "+et))}).then(function(et){return et.default?et.default:et})}var He=function(wt){var ut=L()(wt);return ut==="undefined"?"undefined":ut==="string"||wt instanceof String?"string":ut==="number"||wt instanceof Number?"number":ut==="function"||wt instanceof Function?"function":wt&&wt.constructor===Array?"array":wt&&wt.nodeType===1?"element":ut==="object"?"object":"unknown"},Je=function(wt,ut){var Ft=document.createElement(wt);for(var wr in ut.className&&(Ft.className=ut.className),ut.innerHTML&&ut.dompurify&&(Ft.innerHTML=ut.dompurify.sanitize(ut.innerHTML)),ut.style)Ft.style[wr]=ut.style[wr];return Ft},Ye=function et(wt){var ut=Object.assign(et.convert(Promise.resolve()),JSON.parse(JSON.stringify(et.template))),Ft=et.convert(Promise.resolve(),ut);return Ft=(Ft=Ft.setProgress(1,et,1,[et])).set(wt)};(Ye.prototype=Object.create(Promise.prototype)).constructor=Ye,Ye.convert=function(et,wt){return et.__proto__=wt||Ye.prototype,et},Ye.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"}},Ye.prototype.from=function(et,wt){return this.then(function(){switch(wt=wt||function(ut){switch(He(ut)){case"string":return"string";case"element":return ut.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(et)){case"string":return this.then(Be).then(function(ut){return this.set({src:Je("div",{innerHTML:et,dompurify:ut})})});case"element":return this.set({src:et});case"canvas":return this.set({canvas:et});case"img":return this.set({img:et});default:return this.error("Unknown source type.")}})},Ye.prototype.to=function(et){switch(et){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.")}},Ye.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 et={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},wt=function ut(Ft,wr){for(var hr=Ft.nodeType===3?document.createTextNode(Ft.nodeValue):Ft.cloneNode(!1),Nr=Ft.firstChild;Nr;Nr=Nr.nextSibling)wr!==!0&&Nr.nodeType===1&&Nr.nodeName==="SCRIPT"||hr.appendChild(ut(Nr,wr));return Ft.nodeType===1&&(Ft.nodeName==="CANVAS"?(hr.width=Ft.width,hr.height=Ft.height,hr.getContext("2d").drawImage(Ft,0,0)):Ft.nodeName!=="TEXTAREA"&&Ft.nodeName!=="SELECT"||(hr.value=Ft.value),hr.addEventListener("load",function(){hr.scrollTop=Ft.scrollTop,hr.scrollLeft=Ft.scrollLeft},!0)),hr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);wt.tagName==="BODY"&&(et.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Je("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Je("div",{className:"html2pdf__container",style:et}),this.prop.container.appendChild(wt),this.prop.container.firstChild.appendChild(Je("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"})},Ye.prototype.toCanvas=function(){var et=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(et).then(_e).then(function(wt){var ut=Object.assign({},this.opt.html2canvas);return delete ut.onrendered,wt(this.prop.container,ut)}).then(function(wt){(this.opt.html2canvas.onrendered||function(){})(wt),this.prop.canvas=wt,document.body.removeChild(this.prop.overlay)})},Ye.prototype.toContext2d=function(){var et=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(et).then(_e).then(function(wt){var ut=this.opt.jsPDF,Ft=this.opt.fontFaces,wr=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,hr=Object.assign({async:!0,allowTaint:!0,scale:wr,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 hr.onrendered,ut.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ut.context2d.posX=this.opt.x,ut.context2d.posY=this.opt.y,ut.context2d.margin=this.opt.margin,ut.context2d.fontFaces=Ft,Ft)for(var Nr=0;Nr<Ft.length;++Nr){var Kt=Ft[Nr],un=Kt.src.find(function(ar){return ar.format==="truetype"});un&&ut.addFont(un.url,Kt.ref.name,Kt.ref.style)}return hr.windowHeight=hr.windowHeight||0,hr.windowHeight=hr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):hr.windowHeight,ut.context2d.save(!0),wt(this.prop.container,hr)}).then(function(wt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(wt),this.prop.canvas=wt,document.body.removeChild(this.prop.overlay)})},Ye.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var et=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=et})},Ye.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Ye.prototype.output=function(et,wt,ut){return(ut=ut||"pdf").toLowerCase()==="img"||ut.toLowerCase()==="image"?this.outputImg(et,wt):this.outputPdf(et,wt)},Ye.prototype.outputPdf=function(et,wt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(et,wt)})},Ye.prototype.outputImg=function(et){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(et){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 "'+et+'" is not supported.'}})},Ye.prototype.save=function(et){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(et?{filename:et}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Ye.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Ye.prototype.set=function(et){if(He(et)!=="object")return this;var wt=Object.keys(et||{}).map(function(ut){if(ut in Ye.template.prop)return function(){this.prop[ut]=et[ut]};switch(ut){case"margin":return this.setMargin.bind(this,et.margin);case"jsPDF":return function(){return this.opt.jsPDF=et.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,et.pageSize);default:return function(){this.opt[ut]=et[ut]}}},this);return this.then(function(){return this.thenList(wt)})},Ye.prototype.get=function(et,wt){return this.then(function(){var ut=et in Ye.template.prop?this.prop[et]:this.opt[et];return wt?wt(ut):ut})},Ye.prototype.setMargin=function(et){return this.then(function(){switch(He(et)){case"number":et=[et,et,et,et];case"array":if(et.length===2&&(et=[et[0],et[1],et[0],et[1]]),et.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=et}).then(this.setPageSize)},Ye.prototype.setPageSize=function(et){function wt(ut,Ft){return Math.floor(ut*Ft/72*96)}return this.then(function(){(et=et||U.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(et.inner={width:et.width-this.opt.margin[1]-this.opt.margin[3],height:et.height-this.opt.margin[0]-this.opt.margin[2]},et.inner.px={width:wt(et.inner.width,et.k),height:wt(et.inner.height,et.k)},et.inner.ratio=et.inner.height/et.inner.width),this.prop.pageSize=et})},Ye.prototype.setProgress=function(et,wt,ut,Ft){return et!=null&&(this.progress.val=et),wt!=null&&(this.progress.state=wt),ut!=null&&(this.progress.n=ut),Ft!=null&&(this.progress.stack=Ft),this.progress.ratio=this.progress.val/this.progress.state,this},Ye.prototype.updateProgress=function(et,wt,ut,Ft){return this.setProgress(et?this.progress.val+et:null,wt||null,ut?this.progress.n+ut:null,Ft?this.progress.stack.concat(Ft):null)},Ye.prototype.then=function(et,wt){var ut=this;return this.thenCore(et,wt,function(Ft,wr){return ut.updateProgress(null,null,1,[Ft]),Promise.prototype.then.call(this,function(hr){return ut.updateProgress(null,Ft),hr}).then(Ft,wr).then(function(hr){return ut.updateProgress(1),hr})})},Ye.prototype.thenCore=function(et,wt,ut){ut=ut||Promise.prototype.then,et&&(et=et.bind(this)),wt&&(wt=wt.bind(this));var Ft=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Ye.convert(Object.assign({},this),Promise.prototype),wr=ut.call(Ft,et,wt);return Ye.convert(wr,this.__proto__)},Ye.prototype.thenExternal=function(et,wt){return Promise.prototype.then.call(this,et,wt)},Ye.prototype.thenList=function(et){var wt=this;return et.forEach(function(ut){wt=wt.thenCore(ut)}),wt},Ye.prototype.catch=function(et){et&&(et=et.bind(this));var wt=Promise.prototype.catch.call(this,et);return Ye.convert(wt,this)},Ye.prototype.catchExternal=function(et){return Promise.prototype.catch.call(this,et)},Ye.prototype.error=function(et){return this.then(function(){throw new Error(et)})},Ye.prototype.using=Ye.prototype.set,Ye.prototype.saveAs=Ye.prototype.save,Ye.prototype.export=Ye.prototype.output,Ye.prototype.run=Ye.prototype.then,U.getPageSize=function(et,wt,ut){if(L()(et)==="object"){var Ft=et;et=Ft.orientation,wt=Ft.unit||wt,ut=Ft.format||ut}wt=wt||"mm",ut=ut||"a4",et=(""+(et||"P")).toLowerCase();var wr,hr=(""+ut).toLowerCase(),Nr={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(wt){case"pt":wr=1;break;case"mm":wr=72/25.4;break;case"cm":wr=72/2.54;break;case"in":wr=72;break;case"px":wr=.75;break;case"pc":case"em":wr=12;break;case"ex":wr=6;break;default:throw"Invalid unit: "+wt}var Kt,un=0,ar=0;if(Nr.hasOwnProperty(hr))un=Nr[hr][1]/wr,ar=Nr[hr][0]/wr;else try{un=ut[1],ar=ut[0]}catch(Gr){throw new Error("Invalid format: "+ut)}if(et==="p"||et==="portrait")et="p",ar>un&&(Kt=ar,ar=un,un=Kt);else{if(et!=="l"&&et!=="landscape")throw"Invalid orientation: "+et;et="l",un>ar&&(Kt=ar,ar=un,un=Kt)}return{width:ar,height:un,unit:wt,k:wr,orientation:et}},$e.html=function(et,wt){(wt=wt||{}).callback=wt.callback||function(){},wt.html2canvas=wt.html2canvas||{},wt.html2canvas.canvas=wt.html2canvas.canvas||this.canvas,wt.jsPDF=wt.jsPDF||this,wt.fontFaces=wt.fontFaces?wt.fontFaces.map(Fr):null;var ut=new Ye(wt);return wt.worker?ut:ut.from(et).doCallback()}}(U.API),U.API.addJS=function($e){return $r=$e,this.internal.events.subscribe("postPutResources",function(){fr=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(fr+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),vn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+$r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){fr!==void 0&&vn!==void 0&&this.internal.out("/Names <</JavaScript "+fr+" 0 R>>")}),this},function($e){var _e;$e.events.push(["postPutResources",function(){var Be=this,He=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Je=Be.outline.render().split(/\r\n/),Ye=0;Ye<Je.length;Ye++){var et=Je[Ye],wt=He.exec(et);if(wt!=null){var ut=wt[1];Be.internal.newObjectDeferredBegin(ut,!1)}Be.internal.write(et)}if(this.outline.createNamedDestinations){var Ft=this.internal.pages.length,wr=[];for(Ye=0;Ye<Ft;Ye++){var hr=Be.internal.newObject();wr.push(hr);var Nr=Be.internal.getPageInfo(Ye+1);Be.internal.write("<< /D["+Nr.objId+" 0 R /XYZ null null null]>> endobj")}var Kt=Be.internal.newObject();for(Be.internal.write("<< /Names [ "),Ye=0;Ye<wr.length;Ye++)Be.internal.write("(page_"+(Ye+1)+")"+wr[Ye]+" 0 R");Be.internal.write(" ] >>","endobj"),_e=Be.internal.newObject(),Be.internal.write("<< /Dests "+Kt+" 0 R"),Be.internal.write(">>","endobj")}}]),$e.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 "+_e+" 0 R"))}]),$e.events.push(["initialized",function(){var Be=this;Be.outline={createNamedDestinations:!1,root:{children:[]}},Be.outline.add=function(He,Je,Ye){var et={title:Je,options:Ye,children:[]};return He==null&&(He=this.root),He.children.push(et),et},Be.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Be,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Be.outline.genIds_r=function(He){He.id=Be.internal.newObjectDeferred();for(var Je=0;Je<He.children.length;Je++)this.genIds_r(He.children[Je])},Be.outline.renderRoot=function(He){this.objStart(He),this.line("/Type /Outlines"),He.children.length>0&&(this.line("/First "+this.makeRef(He.children[0])),this.line("/Last "+this.makeRef(He.children[He.children.length-1]))),this.line("/Count "+this.count_r({count:0},He)),this.objEnd()},Be.outline.renderItems=function(He){for(var Je=this.ctx.pdf.internal.getVerticalCoordinateString,Ye=0;Ye<He.children.length;Ye++){var et=He.children[Ye];this.objStart(et),this.line("/Title "+this.makeString(et.title)),this.line("/Parent "+this.makeRef(He)),Ye>0&&this.line("/Prev "+this.makeRef(He.children[Ye-1])),Ye<He.children.length-1&&this.line("/Next "+this.makeRef(He.children[Ye+1])),et.children.length>0&&(this.line("/First "+this.makeRef(et.children[0])),this.line("/Last "+this.makeRef(et.children[et.children.length-1])));var wt=this.count=this.count_r({count:0},et);if(wt>0&&this.line("/Count "+wt),et.options&&et.options.pageNumber){var ut=Be.internal.getPageInfo(et.options.pageNumber);this.line("/Dest ["+ut.objId+" 0 R /XYZ 0 "+Je(0)+" 0]")}this.objEnd()}for(var Ft=0;Ft<He.children.length;Ft++)this.renderItems(He.children[Ft])},Be.outline.line=function(He){this.ctx.val+=He+`\r
|
|
|
`},Be.outline.makeRef=function(He){return He.id+" 0 R"},Be.outline.makeString=function(He){return"("+Be.internal.pdfEscape(He)+")"},Be.outline.objStart=function(He){this.ctx.val+=`\r
|
|
|
`+He.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},Be.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},Be.outline.count_r=function(He,Je){for(var Ye=0;Ye<Je.children.length;Ye++)He.count++,this.count_r(He,Je.children[Ye]);return He.count}}])}(U.API),function($e){var _e=[192,193,194,195,196,197,198,199];$e.processJPEG=function(Be,He,Je,Ye,et,wt){var ut,Ft=this.decode.DCT_DECODE,wr=null;if(typeof Be=="string"||this.__addimage__.isArrayBuffer(Be)||this.__addimage__.isArrayBufferView(Be)){switch(Be=et||Be,Be=this.__addimage__.isArrayBuffer(Be)?new Uint8Array(Be):Be,(ut=function(hr){for(var Nr,Kt=256*hr.charCodeAt(4)+hr.charCodeAt(5),un=hr.length,ar={width:0,height:0,numcomponents:1},Gr=4;Gr<un;Gr+=2){if(Gr+=Kt,_e.indexOf(hr.charCodeAt(Gr+1))!==-1){Nr=256*hr.charCodeAt(Gr+5)+hr.charCodeAt(Gr+6),ar={width:256*hr.charCodeAt(Gr+7)+hr.charCodeAt(Gr+8),height:Nr,numcomponents:hr.charCodeAt(Gr+9)};break}Kt=256*hr.charCodeAt(Gr+2)+hr.charCodeAt(Gr+3)}return ar}(Be=this.__addimage__.isArrayBufferView(Be)?this.__addimage__.arrayBufferToBinaryString(Be):Be)).numcomponents){case 1:wt=this.color_spaces.DEVICE_GRAY;break;case 4:wt=this.color_spaces.DEVICE_CMYK;break;case 3:wt=this.color_spaces.DEVICE_RGB}wr={data:Be,width:ut.width,height:ut.height,colorSpace:wt,bitsPerComponent:8,filter:Ft,index:He,alias:Je}}return wr}}(U.API);var tt,nt,Te,Me,Xe,at=function(){var $e,_e,Be;function He(Ye){var et,wt,ut,Ft,wr,hr,Nr,Kt,un,ar,Gr,Br,gr,Sn;for(this.data=Ye,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},hr=null;;){switch(et=this.readUInt32(),un=function(){var Pn,ii;for(ii=[],Pn=0;Pn<4;++Pn)ii.push(String.fromCharCode(this.data[this.pos++]));return ii}.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(et);break;case"fcTL":hr&&this.animation.frames.push(hr),this.pos+=4,hr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},wr=this.readUInt16(),Ft=this.readUInt16()||100,hr.delay=1e3*wr/Ft,hr.disposeOp=this.data[this.pos++],hr.blendOp=this.data[this.pos++],hr.data=[];break;case"IDAT":case"fdAT":for(un==="fdAT"&&(this.pos+=4,et-=4),Ye=(hr!=null?hr.data:void 0)||this.imgData,Br=0;0<=et?Br<et:Br>et;0<=et?++Br:--Br)Ye.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ut=this.palette.length/3,this.transparency.indexed=this.read(et),this.transparency.indexed.length>ut)throw new Error("More transparent colors than palette size");if((ar=ut-this.transparency.indexed.length)>0)for(gr=0;0<=ar?gr<ar:gr>ar;0<=ar?++gr:--gr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(et)[0];break;case 2:this.transparency.rgb=this.read(et)}break;case"tEXt":Nr=(Gr=this.read(et)).indexOf(0),Kt=String.fromCharCode.apply(String,Gr.slice(0,Nr)),this.text[Kt]=String.fromCharCode.apply(String,Gr.slice(Nr+1));break;case"IEND":return hr&&this.animation.frames.push(hr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(Sn=this.colorType)===4||Sn===6,wt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*wt,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+=et}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}He.prototype.read=function(Ye){var et,wt;for(wt=[],et=0;0<=Ye?et<Ye:et>Ye;0<=Ye?++et:--et)wt.push(this.data[this.pos++]);return wt},He.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},He.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},He.prototype.decodePixels=function(Ye){var et=this.pixelBitlength/8,wt=new Uint8Array(this.width*this.height*et),ut=0,Ft=this;if(Ye==null&&(Ye=this.imgData),Ye.length===0)return new Uint8Array(0);function wr(hr,Nr,Kt,un){var ar,Gr,Br,gr,Sn,Pn,ii,oi,ti,bi,kn,Ii,gn,Vr,xn,tn,ui,qn,wi,Qn,Hi,ri=Math.ceil((Ft.width-hr)/Kt),Mi=Math.ceil((Ft.height-Nr)/un),dn=Ft.width==ri&&Ft.height==Mi;for(Vr=et*ri,Ii=dn?wt:new Uint8Array(Vr*Mi),Pn=Ye.length,gn=0,Gr=0;gn<Mi&&ut<Pn;){switch(Ye[ut++]){case 0:for(gr=ui=0;ui<Vr;gr=ui+=1)Ii[Gr++]=Ye[ut++];break;case 1:for(gr=qn=0;qn<Vr;gr=qn+=1)ar=Ye[ut++],Sn=gr<et?0:Ii[Gr-et],Ii[Gr++]=(ar+Sn)%256;break;case 2:for(gr=wi=0;wi<Vr;gr=wi+=1)ar=Ye[ut++],Br=(gr-gr%et)/et,xn=gn&&Ii[(gn-1)*Vr+Br*et+gr%et],Ii[Gr++]=(xn+ar)%256;break;case 3:for(gr=Qn=0;Qn<Vr;gr=Qn+=1)ar=Ye[ut++],Br=(gr-gr%et)/et,Sn=gr<et?0:Ii[Gr-et],xn=gn&&Ii[(gn-1)*Vr+Br*et+gr%et],Ii[Gr++]=(ar+Math.floor((Sn+xn)/2))%256;break;case 4:for(gr=Hi=0;Hi<Vr;gr=Hi+=1)ar=Ye[ut++],Br=(gr-gr%et)/et,Sn=gr<et?0:Ii[Gr-et],gn===0?xn=tn=0:(xn=Ii[(gn-1)*Vr+Br*et+gr%et],tn=Br&&Ii[(gn-1)*Vr+(Br-1)*et+gr%et]),ii=Sn+xn-tn,oi=Math.abs(ii-Sn),bi=Math.abs(ii-xn),kn=Math.abs(ii-tn),ti=oi<=bi&&oi<=kn?Sn:bi<=kn?xn:tn,Ii[Gr++]=(ar+ti)%256;break;default:throw new Error("Invalid filter algorithm: "+Ye[ut-1])}if(!dn){var Ur=((Nr+gn*un)*Ft.width+hr)*et,bn=gn*Vr;for(gr=0;gr<ri;gr+=1){for(var Mn=0;Mn<et;Mn+=1)wt[Ur++]=Ii[bn++];Ur+=(Kt-1)*et}}gn++}}return Ye=Object(E.a)(Ye),Ft.interlaceMethod==1?(wr(0,0,8,8),wr(4,0,8,8),wr(0,4,4,8),wr(2,0,4,4),wr(0,2,2,4),wr(1,0,2,2),wr(0,1,1,2)):wr(0,0,1,1),wt},He.prototype.decodePalette=function(){var Ye,et,wt,ut,Ft,wr,hr,Nr,Kt;for(wt=this.palette,wr=this.transparency.indexed||[],Ft=new Uint8Array((wr.length||0)+wt.length),ut=0,Ye=0,et=hr=0,Nr=wt.length;hr<Nr;et=hr+=3)Ft[ut++]=wt[et],Ft[ut++]=wt[et+1],Ft[ut++]=wt[et+2],Ft[ut++]=(Kt=wr[Ye++])!=null?Kt:255;return Ft},He.prototype.copyToImageData=function(Ye,et){var wt,ut,Ft,wr,hr,Nr,Kt,un,ar,Gr,Br;if(ut=this.colors,ar=null,wt=this.hasAlphaChannel,this.palette.length&&(ar=(Br=this._decodedPalette)!=null?Br:this._decodedPalette=this.decodePalette(),ut=4,wt=!0),un=(Ft=Ye.data||Ye).length,hr=ar||et,wr=Nr=0,ut===1)for(;wr<un;)Kt=ar?4*et[wr/4]:Nr,Gr=hr[Kt++],Ft[wr++]=Gr,Ft[wr++]=Gr,Ft[wr++]=Gr,Ft[wr++]=wt?hr[Kt++]:255,Nr=Kt;else for(;wr<un;)Kt=ar?4*et[wr/4]:Nr,Ft[wr++]=hr[Kt++],Ft[wr++]=hr[Kt++],Ft[wr++]=hr[Kt++],Ft[wr++]=wt?hr[Kt++]:255,Nr=Kt},He.prototype.decode=function(){var Ye;return Ye=new Uint8Array(this.width*this.height*4),this.copyToImageData(Ye,this.decodePixels()),Ye};var Je=function(){if(Object.prototype.toString.call(I)==="[object Window]"){try{_e=I.document.createElement("canvas"),Be=_e.getContext("2d")}catch(et){return!1}return!0}return!1};return Je(),$e=function(et){var wt;if(Je()===!0)return Be.width=et.width,Be.height=et.height,Be.clearRect(0,0,et.width,et.height),Be.putImageData(et,0,0),(wt=new Image).src=_e.toDataURL(),wt;throw new Error("This method requires a Browser with Canvas-capability.")},He.prototype.decodeFrames=function(Ye){var et,wt,ut,Ft,wr,hr,Nr,Kt;if(this.animation){for(Kt=[],wt=wr=0,hr=(Nr=this.animation.frames).length;wr<hr;wt=++wr)et=Nr[wt],ut=Ye.createImageData(et.width,et.height),Ft=this.decodePixels(new Uint8Array(et.data)),this.copyToImageData(ut,Ft),et.imageData=ut,Kt.push(et.image=$e(ut));return Kt}},He.prototype.renderFrame=function(Ye,et){var wt,ut,Ft;return wt=(ut=this.animation.frames)[et],Ft=ut[et-1],et===0&&Ye.clearRect(0,0,this.width,this.height),(Ft!=null?Ft.disposeOp:void 0)===1?Ye.clearRect(Ft.xOffset,Ft.yOffset,Ft.width,Ft.height):(Ft!=null?Ft.disposeOp:void 0)===2&&Ye.putImageData(Ft.imageData,Ft.xOffset,Ft.yOffset),wt.blendOp===0&&Ye.clearRect(wt.xOffset,wt.yOffset,wt.width,wt.height),Ye.drawImage(wt.image,wt.xOffset,wt.yOffset)},He.prototype.animate=function(Ye){var et,wt,ut,Ft,wr,hr,Nr=this;return wt=0,hr=this.animation,Ft=hr.numFrames,ut=hr.frames,wr=hr.numPlays,(et=function(){var un,ar;if(un=wt++%Ft,ar=ut[un],Nr.renderFrame(Ye,un),Ft>1&&wt/Ft<wr)return Nr.animation._timeout=setTimeout(et,ar.delay)})()},He.prototype.stopAnimation=function(){var Ye;return clearTimeout((Ye=this.animation)!=null?Ye._timeout:void 0)},He.prototype.render=function(Ye){var et,wt;return Ye._png&&Ye._png.stopAnimation(),Ye._png=this,Ye.width=this.width,Ye.height=this.height,et=Ye.getContext("2d"),this.animation?(this.decodeFrames(et),this.animate(et)):(wt=et.createImageData(this.width,this.height),this.copyToImageData(wt,this.decodePixels()),et.putImageData(wt,0,0))},He}();/**
|
|
|
* @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 zt($e){var _e=0;if($e[_e++]!==71||$e[_e++]!==73||$e[_e++]!==70||$e[_e++]!==56||($e[_e++]+1&253)!=56||$e[_e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Be=$e[_e++]|$e[_e++]<<8,He=$e[_e++]|$e[_e++]<<8,Je=$e[_e++],Ye=Je>>7,et=1<<(7&Je)+1;$e[_e++],$e[_e++];var wt=null,ut=null;Ye&&(wt=_e,ut=et,_e+=3*et);var Ft=!0,wr=[],hr=0,Nr=null,Kt=0,un=null;for(this.width=Be,this.height=He;Ft&&_e<$e.length;)switch($e[_e++]){case 33:switch($e[_e++]){case 255:if($e[_e]!==11||$e[_e+1]==78&&$e[_e+2]==69&&$e[_e+3]==84&&$e[_e+4]==83&&$e[_e+5]==67&&$e[_e+6]==65&&$e[_e+7]==80&&$e[_e+8]==69&&$e[_e+9]==50&&$e[_e+10]==46&&$e[_e+11]==48&&$e[_e+12]==3&&$e[_e+13]==1&&$e[_e+16]==0)_e+=14,un=$e[_e++]|$e[_e++]<<8,_e++;else for(_e+=12;;){if(!((gn=$e[_e++])>=0))throw Error("Invalid block size");if(gn===0)break;_e+=gn}break;case 249:if($e[_e++]!==4||$e[_e+4]!==0)throw new Error("Invalid graphics extension block.");var ar=$e[_e++];hr=$e[_e++]|$e[_e++]<<8,Nr=$e[_e++],(1&ar)==0&&(Nr=null),Kt=ar>>2&7,_e++;break;case 254:for(;;){if(!((gn=$e[_e++])>=0))throw Error("Invalid block size");if(gn===0)break;_e+=gn}break;default:throw new Error("Unknown graphic control label: 0x"+$e[_e-1].toString(16))}break;case 44:var Gr=$e[_e++]|$e[_e++]<<8,Br=$e[_e++]|$e[_e++]<<8,gr=$e[_e++]|$e[_e++]<<8,Sn=$e[_e++]|$e[_e++]<<8,Pn=$e[_e++],ii=Pn>>6&1,oi=1<<(7&Pn)+1,ti=wt,bi=ut,kn=!1;Pn>>7&&(kn=!0,ti=_e,bi=oi,_e+=3*oi);var Ii=_e;for(_e++;;){var gn;if(!((gn=$e[_e++])>=0))throw Error("Invalid block size");if(gn===0)break;_e+=gn}wr.push({x:Gr,y:Br,width:gr,height:Sn,has_local_palette:kn,palette_offset:ti,palette_size:bi,data_offset:Ii,data_length:_e-Ii,transparent_index:Nr,interlaced:!!ii,delay:hr,disposal:Kt});break;case 59:Ft=!1;break;default:throw new Error("Unknown gif block: 0x"+$e[_e-1].toString(16))}this.numFrames=function(){return wr.length},this.loopCount=function(){return un},this.frameInfo=function(Vr){if(Vr<0||Vr>=wr.length)throw new Error("Frame index out of range.");return wr[Vr]},this.decodeAndBlitFrameBGRA=function(Vr,xn){var tn=this.frameInfo(Vr),ui=tn.width*tn.height,qn=new Uint8Array(ui);kt($e,tn.data_offset,qn,ui);var wi=tn.palette_offset,Qn=tn.transparent_index;Qn===null&&(Qn=256);var Hi=tn.width,ri=Be-Hi,Mi=Hi,dn=4*(tn.y*Be+tn.x),Ur=4*((tn.y+tn.height)*Be+tn.x),bn=dn,Mn=4*ri;tn.interlaced===!0&&(Mn+=4*Be*7);for(var Gn=8,$n=0,hi=qn.length;$n<hi;++$n){var fi=qn[$n];if(Mi===0&&(Mi=Hi,(bn+=Mn)>=Ur&&(Mn=4*ri+4*Be*(Gn-1),bn=dn+(Hi+ri)*(Gn<<1),Gn>>=1)),fi===Qn)bn+=4;else{var gi=$e[wi+3*fi],Wi=$e[wi+3*fi+1],na=$e[wi+3*fi+2];xn[bn++]=na,xn[bn++]=Wi,xn[bn++]=gi,xn[bn++]=255}--Mi}},this.decodeAndBlitFrameRGBA=function(Vr,xn){var tn=this.frameInfo(Vr),ui=tn.width*tn.height,qn=new Uint8Array(ui);kt($e,tn.data_offset,qn,ui);var wi=tn.palette_offset,Qn=tn.transparent_index;Qn===null&&(Qn=256);var Hi=tn.width,ri=Be-Hi,Mi=Hi,dn=4*(tn.y*Be+tn.x),Ur=4*((tn.y+tn.height)*Be+tn.x),bn=dn,Mn=4*ri;tn.interlaced===!0&&(Mn+=4*Be*7);for(var Gn=8,$n=0,hi=qn.length;$n<hi;++$n){var fi=qn[$n];if(Mi===0&&(Mi=Hi,(bn+=Mn)>=Ur&&(Mn=4*ri+4*Be*(Gn-1),bn=dn+(Hi+ri)*(Gn<<1),Gn>>=1)),fi===Qn)bn+=4;else{var gi=$e[wi+3*fi],Wi=$e[wi+3*fi+1],na=$e[wi+3*fi+2];xn[bn++]=gi,xn[bn++]=Wi,xn[bn++]=na,xn[bn++]=255}--Mi}}}function kt($e,_e,Be,He){for(var Je=$e[_e++],Ye=1<<Je,et=Ye+1,wt=et+1,ut=Je+1,Ft=(1<<ut)-1,wr=0,hr=0,Nr=0,Kt=$e[_e++],un=new Int32Array(4096),ar=null;;){for(;wr<16&&Kt!==0;)hr|=$e[_e++]<<wr,wr+=8,Kt===1?Kt=$e[_e++]:--Kt;if(wr<ut)break;var Gr=hr&Ft;if(hr>>=ut,wr-=ut,Gr!==Ye){if(Gr===et)break;for(var Br=Gr<wt?Gr:ar,gr=0,Sn=Br;Sn>Ye;)Sn=un[Sn]>>8,++gr;var Pn=Sn;if(Nr+gr+(Br!==Gr?1:0)>He)return void m.log("Warning, gif stream longer than expected.");Be[Nr++]=Pn;var ii=Nr+=gr;for(Br!==Gr&&(Be[Nr++]=Pn),Sn=Br;gr--;)Sn=un[Sn],Be[--ii]=255&Sn,Sn>>=8;ar!==null&&wt<4096&&(un[wt++]=ar<<8|Pn,wt>=Ft+1&&ut<12&&(++ut,Ft=Ft<<1|1)),ar=Gr}else wt=et+1,Ft=(1<<(ut=Je+1))-1,ar=null}return Nr!==He&&m.log("Warning, gif stream shorter than expected."),Be}/**
|
|
|
* @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 Xt($e){var _e,Be,He,Je,Ye,et=Math.floor,wt=new Array(64),ut=new Array(64),Ft=new Array(64),wr=new Array(64),hr=new Array(65535),Nr=new Array(65535),Kt=new Array(64),un=new Array(64),ar=[],Gr=0,Br=7,gr=new Array(64),Sn=new Array(64),Pn=new Array(64),ii=new Array(256),oi=new Array(2048),ti=[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],bi=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],kn=[0,1,2,3,4,5,6,7,8,9,10,11],Ii=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],gn=[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],Vr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],xn=[0,1,2,3,4,5,6,7,8,9,10,11],tn=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ui=[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 qn(dn,Ur){for(var bn=0,Mn=0,Gn=new Array,$n=1;$n<=16;$n++){for(var hi=1;hi<=dn[$n];hi++)Gn[Ur[Mn]]=[],Gn[Ur[Mn]][0]=bn,Gn[Ur[Mn]][1]=$n,Mn++,bn++;bn*=2}return Gn}function wi(dn){for(var Ur=dn[0],bn=dn[1]-1;bn>=0;)Ur&1<<bn&&(Gr|=1<<Br),bn--,--Br<0&&(Gr==255?(Qn(255),Qn(0)):Qn(Gr),Br=7,Gr=0)}function Qn(dn){ar.push(dn)}function Hi(dn){Qn(dn>>8&255),Qn(255&dn)}function ri(dn,Ur,bn,Mn,Gn){for(var $n,hi=Gn[0],fi=Gn[240],gi=function(Fi,ea){var Vt,Xr,nn,fn,Ze,Lt,cr,lr,_r,Rr,Wr=0;for(_r=0;_r<8;++_r){Vt=Fi[Wr],Xr=Fi[Wr+1],nn=Fi[Wr+2],fn=Fi[Wr+3],Ze=Fi[Wr+4],Lt=Fi[Wr+5],cr=Fi[Wr+6];var on=Vt+(lr=Fi[Wr+7]),En=Vt-lr,An=Xr+cr,Rn=Xr-cr,Un=nn+Lt,wn=nn-Lt,_n=fn+Ze,Cn=fn-Ze,Kn=on+_n,Yn=on-_n,ni=An+Un,yi=An-Un;Fi[Wr]=Kn+ni,Fi[Wr+4]=Kn-ni;var li=.707106781*(yi+Yn);Fi[Wr+2]=Yn+li,Fi[Wr+6]=Yn-li;var Oi=.382683433*((Kn=Cn+wn)-(yi=Rn+En)),ki=.5411961*Kn+Oi,Si=1.306562965*yi+Oi,mi=.707106781*(ni=wn+Rn),Li=En+mi,Wn=En-mi;Fi[Wr+5]=Wn+ki,Fi[Wr+3]=Wn-ki,Fi[Wr+1]=Li+Si,Fi[Wr+7]=Li-Si,Wr+=8}for(Wr=0,_r=0;_r<8;++_r){Vt=Fi[Wr],Xr=Fi[Wr+8],nn=Fi[Wr+16],fn=Fi[Wr+24],Ze=Fi[Wr+32],Lt=Fi[Wr+40],cr=Fi[Wr+48];var Di=Vt+(lr=Fi[Wr+56]),zi=Vt-lr,yr=Xr+cr,Mr=Xr-cr,Qr=nn+Lt,Ir=nn-Lt,Gt=fn+Ze,Sr=fn-Ze,Zt=Di+Gt,jr=Di-Gt,Kr=yr+Qr,pn=yr-Qr;Fi[Wr]=Zt+Kr,Fi[Wr+32]=Zt-Kr;var sn=.707106781*(pn+jr);Fi[Wr+16]=jr+sn,Fi[Wr+48]=jr-sn;var yn=.382683433*((Zt=Sr+Ir)-(pn=Mr+zi)),Fn=.5411961*Zt+yn,Xn=1.306562965*pn+yn,Jn=.707106781*(Kr=Ir+Mr),Ti=zi+Jn,ta=zi-Jn;Fi[Wr+40]=ta+Fn,Fi[Wr+24]=ta-Fn,Fi[Wr+8]=Ti+Xn,Fi[Wr+56]=Ti-Xn,Wr++}for(_r=0;_r<64;++_r)Rr=Fi[_r]*ea[_r],Kt[_r]=Rr>0?Rr+.5|0:Rr-.5|0;return Kt}(dn,Ur),Wi=0;Wi<64;++Wi)un[ti[Wi]]=gi[Wi];var na=un[0]-bn;bn=un[0],na==0?wi(Mn[0]):(wi(Mn[Nr[$n=32767+na]]),wi(hr[$n]));for(var $i=63;$i>0&&un[$i]==0;)$i--;if($i==0)return wi(hi),bn;for(var Ha,pi=1;pi<=$i;){for(var ln=pi;un[pi]==0&&pi<=$i;)++pi;var _i=pi-ln;if(_i>=16){Ha=_i>>4;for(var Ji=1;Ji<=Ha;++Ji)wi(fi);_i&=15}$n=32767+un[pi],wi(Gn[(_i<<4)+Nr[$n]]),wi(hr[$n]),pi++}return $i!=63&&wi(hi),bn}function Mi(dn){(dn=Math.min(Math.max(dn,1),100),Ye!=dn)&&(!function(Ur){for(var bn=[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],Mn=0;Mn<64;Mn++){var Gn=et((bn[Mn]*Ur+50)/100);Gn=Math.min(Math.max(Gn,1),255),wt[ti[Mn]]=Gn}for(var $n=[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],hi=0;hi<64;hi++){var fi=et(($n[hi]*Ur+50)/100);fi=Math.min(Math.max(fi,1),255),ut[ti[hi]]=fi}for(var gi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Wi=0,na=0;na<8;na++)for(var $i=0;$i<8;$i++)Ft[Wi]=1/(wt[ti[Wi]]*gi[na]*gi[$i]*8),wr[Wi]=1/(ut[ti[Wi]]*gi[na]*gi[$i]*8),Wi++}(dn<50?Math.floor(5e3/dn):Math.floor(200-2*dn)),Ye=dn)}this.encode=function(dn,Ur){Ur&&Mi(Ur),ar=new Array,Gr=0,Br=7,Hi(65496),Hi(65504),Hi(16),Qn(74),Qn(70),Qn(73),Qn(70),Qn(0),Qn(1),Qn(1),Qn(0),Hi(1),Hi(1),Qn(0),Qn(0),function(){Hi(65499),Hi(132),Qn(0);for(var Xr=0;Xr<64;Xr++)Qn(wt[Xr]);Qn(1);for(var nn=0;nn<64;nn++)Qn(ut[nn])}(),function(Xr,nn){Hi(65472),Hi(17),Qn(8),Hi(nn),Hi(Xr),Qn(3),Qn(1),Qn(17),Qn(0),Qn(2),Qn(17),Qn(1),Qn(3),Qn(17),Qn(1)}(dn.width,dn.height),function(){Hi(65476),Hi(418),Qn(0);for(var Xr=0;Xr<16;Xr++)Qn(bi[Xr+1]);for(var nn=0;nn<=11;nn++)Qn(kn[nn]);Qn(16);for(var fn=0;fn<16;fn++)Qn(Ii[fn+1]);for(var Ze=0;Ze<=161;Ze++)Qn(gn[Ze]);Qn(1);for(var Lt=0;Lt<16;Lt++)Qn(Vr[Lt+1]);for(var cr=0;cr<=11;cr++)Qn(xn[cr]);Qn(17);for(var lr=0;lr<16;lr++)Qn(tn[lr+1]);for(var _r=0;_r<=161;_r++)Qn(ui[_r])}(),Hi(65498),Hi(12),Qn(3),Qn(1),Qn(0),Qn(2),Qn(17),Qn(3),Qn(17),Qn(0),Qn(63),Qn(0);var bn=0,Mn=0,Gn=0;Gr=0,Br=7,this.encode.displayName="_encode_";for(var $n,hi,fi,gi,Wi,na,$i,Ha,pi,ln=dn.data,_i=dn.width,Ji=dn.height,Fi=4*_i,ea=0;ea<Ji;){for($n=0;$n<Fi;){for(Wi=Fi*ea+$n,$i=-1,Ha=0,pi=0;pi<64;pi++)na=Wi+(Ha=pi>>3)*Fi+($i=4*(7&pi)),ea+Ha>=Ji&&(na-=Fi*(ea+1+Ha-Ji)),$n+$i>=Fi&&(na-=$n+$i-Fi+4),hi=ln[na++],fi=ln[na++],gi=ln[na++],gr[pi]=(oi[hi]+oi[fi+256>>0]+oi[gi+512>>0]>>16)-128,Sn[pi]=(oi[hi+768>>0]+oi[fi+1024>>0]+oi[gi+1280>>0]>>16)-128,Pn[pi]=(oi[hi+1280>>0]+oi[fi+1536>>0]+oi[gi+1792>>0]>>16)-128;bn=ri(gr,Ft,bn,_e,He),Mn=ri(Sn,wr,Mn,Be,Je),Gn=ri(Pn,wr,Gn,Be,Je),$n+=32}ea+=8}if(Br>=0){var Vt=[];Vt[1]=Br+1,Vt[0]=(1<<Br+1)-1,wi(Vt)}return Hi(65497),new Uint8Array(ar)},$e=$e||50,function(){for(var dn=String.fromCharCode,Ur=0;Ur<256;Ur++)ii[Ur]=dn(Ur)}(),_e=qn(bi,kn),Be=qn(Vr,xn),He=qn(Ii,gn),Je=qn(tn,ui),function(){for(var dn=1,Ur=2,bn=1;bn<=15;bn++){for(var Mn=dn;Mn<Ur;Mn++)Nr[32767+Mn]=bn,hr[32767+Mn]=[],hr[32767+Mn][1]=bn,hr[32767+Mn][0]=Mn;for(var Gn=-(Ur-1);Gn<=-dn;Gn++)Nr[32767+Gn]=bn,hr[32767+Gn]=[],hr[32767+Gn][1]=bn,hr[32767+Gn][0]=Ur-1+Gn;dn<<=1,Ur<<=1}}(),function(){for(var dn=0;dn<256;dn++)oi[dn]=19595*dn,oi[dn+256>>0]=38470*dn,oi[dn+512>>0]=7471*dn+32768,oi[dn+768>>0]=-11059*dn,oi[dn+1024>>0]=-21709*dn,oi[dn+1280>>0]=32768*dn+8421375,oi[dn+1536>>0]=-27439*dn,oi[dn+1792>>0]=-5329*dn}(),Mi($e)}/**
|
|
|
* @license
|
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
|
*
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
*/function Dr($e,_e){if(this.pos=0,this.buffer=$e,this.datav=new DataView($e.buffer),this.is_with_alpha=!!_e,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 Pr($e){function _e(bi){if(!bi)throw Error("assert :P")}function Be(bi,kn,Ii){for(var gn=0;4>gn;gn++)if(bi[kn+gn]!=Ii.charCodeAt(gn))return!0;return!1}function He(bi,kn,Ii,gn,Vr){for(var xn=0;xn<Vr;xn++)bi[kn+xn]=Ii[gn+xn]}function Je(bi,kn,Ii,gn){for(var Vr=0;Vr<gn;Vr++)bi[kn+Vr]=Ii}function Ye(bi){return new Int32Array(bi)}function et(bi,kn){for(var Ii=[],gn=0;gn<bi;gn++)Ii.push(new kn);return Ii}function wt(bi,kn){var Ii=[];return function gn(Vr,xn,tn){for(var ui=tn[xn],qn=0;qn<ui&&(Vr.push(tn.length>xn+1?[]:new kn),!(tn.length<xn+1));qn++)gn(Vr[qn],xn+1,tn)}(Ii,0,bi),Ii}var ut=function(){var kn=this;function Ii(be,ze){for(var pt=1<<ze-1>>>0;be&pt;)pt>>>=1;return pt?(be&pt-1)+pt:be}function gn(be,ze,pt,Ht,dr){_e(!(Ht%pt));do be[ze+(Ht-=pt)]=dr;while(0<Ht)}function Vr(be,ze,pt,Ht,dr){if(_e(2328>=dr),512>=dr)var Cr=Ye(512);else if((Cr=Ye(dr))==null)return 0;return function(Re,re,xe,Ge,ot,Ct){var _t,Dt,vr=re,Lr=1<<xe,mr=Ye(16),ur=Ye(16);for(_e(ot!=0),_e(Ge!=null),_e(Re!=null),_e(0<xe),Dt=0;Dt<ot;++Dt){if(15<Ge[Dt])return 0;++mr[Ge[Dt]]}if(mr[0]==ot)return 0;for(ur[1]=0,_t=1;15>_t;++_t){if(mr[_t]>1<<_t)return 0;ur[_t+1]=ur[_t]+mr[_t]}for(Dt=0;Dt<ot;++Dt)_t=Ge[Dt],0<Ge[Dt]&&(Ct[ur[_t]++]=Dt);if(ur[15]==1)return(Ge=new xn).g=0,Ge.value=Ct[0],gn(Re,vr,1,Lr,Ge),Lr;var Tr,kr=-1,an=Lr-1,jn=0,Vn=1,Ei=1,di=1<<xe;for(Dt=0,_t=1,ot=2;_t<=xe;++_t,ot<<=1){if(Vn+=Ei<<=1,0>(Ei-=mr[_t]))return 0;for(;0<mr[_t];--mr[_t])(Ge=new xn).g=_t,Ge.value=Ct[Dt++],gn(Re,vr+jn,ot,di,Ge),jn=Ii(jn,_t)}for(_t=xe+1,ot=2;15>=_t;++_t,ot<<=1){if(Vn+=Ei<<=1,0>(Ei-=mr[_t]))return 0;for(;0<mr[_t];--mr[_t]){if(Ge=new xn,(jn&an)!=kr){for(vr+=di,Tr=1<<(kr=_t)-xe;15>kr&&!(0>=(Tr-=mr[kr]));)++kr,Tr<<=1;Lr+=di=1<<(Tr=kr-xe),Re[re+(kr=jn&an)].g=Tr+xe,Re[re+kr].value=vr-re-kr}Ge.g=_t-xe,Ge.value=Ct[Dt++],gn(Re,vr+(jn>>xe),ot,di,Ge),jn=Ii(jn,_t)}}return Vn!=2*ur[15]-1?0:Lr}(be,ze,pt,Ht,dr,Cr)}function xn(){this.value=this.g=0}function tn(){this.value=this.g=0}function ui(){this.G=et(5,xn),this.H=Ye(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=et(So,tn)}function qn(be,ze,pt,Ht){_e(be!=null),_e(ze!=null),_e(2147483648>Ht),be.Ca=254,be.I=0,be.b=-8,be.Ka=0,be.oa=ze,be.pa=pt,be.Jd=ze,be.Yc=pt+Ht,be.Zc=4<=Ht?pt+Ht-4+1:pt,hi(be)}function wi(be,ze){for(var pt=0;0<ze--;)pt|=gi(be,128)<<ze;return pt}function Qn(be,ze){var pt=wi(be,ze);return fi(be)?-pt:pt}function Hi(be,ze,pt,Ht){var dr,Cr=0;for(_e(be!=null),_e(ze!=null),_e(4294967288>Ht),be.Sb=Ht,be.Ra=0,be.u=0,be.h=0,4<Ht&&(Ht=4),dr=0;dr<Ht;++dr)Cr+=ze[pt+dr]<<8*dr;be.Ra=Cr,be.bb=Ht,be.oa=ze,be.pa=pt}function ri(be){for(;8<=be.u&&be.bb<be.Sb;)be.Ra>>>=8,be.Ra+=be.oa[be.pa+be.bb]<<Co-8>>>0,++be.bb,be.u-=8;Mn(be)&&(be.h=1,be.u=0)}function Mi(be,ze){if(_e(0<=ze),!be.h&&ze<=ts){var pt=bn(be)&is[ze];return be.u+=ze,ri(be),pt}return be.h=1,be.u=0}function dn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Ur(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function bn(be){return be.Ra>>>(be.u&Co-1)>>>0}function Mn(be){return _e(be.bb<=be.Sb),be.h||be.bb==be.Sb&&be.u>Co}function Gn(be,ze){be.u=ze,be.h=Mn(be)}function $n(be){be.u>=Yi&&(_e(be.u>=Yi),ri(be))}function hi(be){_e(be!=null&&be.oa!=null),be.pa<be.Zc?(be.I=(be.oa[be.pa++]|be.I<<8)>>>0,be.b+=8):(_e(be!=null&&be.oa!=null),be.pa<be.Yc?(be.b+=8,be.I=be.oa[be.pa++]|be.I<<8):be.Ka?be.b=0:(be.I<<=8,be.b+=8,be.Ka=1))}function fi(be){return wi(be,1)}function gi(be,ze){var pt=be.Ca;0>be.b&&hi(be);var Ht=be.b,dr=pt*ze>>>8,Cr=(be.I>>>Ht>dr)+0;for(Cr?(pt-=dr,be.I-=dr+1<<Ht>>>0):pt=dr+1,Ht=pt,dr=0;256<=Ht;)dr+=8,Ht>>=8;return Ht=7^dr+Ds[Ht],be.b-=Ht,be.Ca=(pt<<Ht)-1,Cr}function Wi(be,ze,pt){be[ze+0]=pt>>24&255,be[ze+1]=pt>>16&255,be[ze+2]=pt>>8&255,be[ze+3]=pt>>0&255}function na(be,ze){return be[ze+0]<<0|be[ze+1]<<8}function $i(be,ze){return na(be,ze)|be[ze+2]<<16}function Ha(be,ze){return na(be,ze)|na(be,ze+2)<<16}function pi(be,ze){var pt=1<<ze;return _e(be!=null),_e(0<ze),be.X=Ye(pt),be.X==null?0:(be.Mb=32-ze,be.Xa=ze,1)}function ln(be,ze){_e(be!=null),_e(ze!=null),_e(be.Xa==ze.Xa),He(ze.X,0,be.X,0,1<<ze.Xa)}function _i(){this.X=[],this.Xa=this.Mb=0}function Ji(be,ze,pt,Ht){_e(pt!=null),_e(Ht!=null);var dr=pt[0],Cr=Ht[0];return dr==0&&(dr=(be*Cr+ze/2)/ze),Cr==0&&(Cr=(ze*dr+be/2)/be),0>=dr||0>=Cr?0:(pt[0]=dr,Ht[0]=Cr,1)}function Fi(be,ze){return be+(1<<ze)-1>>>ze}function ea(be,ze){return((4278255360&be)+(4278255360&ze)>>>0&4278255360)+((16711935&be)+(16711935&ze)>>>0&16711935)>>>0}function Vt(be,ze){kn[ze]=function(pt,Ht,dr,Cr,Re,re,xe){var Ge;for(Ge=0;Ge<Re;++Ge){var ot=kn[be](re[xe+Ge-1],dr,Cr+Ge);re[xe+Ge]=ea(pt[Ht+Ge],ot)}}}function Xr(){this.ud=this.hd=this.jd=0}function nn(be,ze){return((4278124286&(be^ze))>>>1)+(be&ze)>>>0}function fn(be){return 0<=be&&256>be?be:0>be?0:255<be?255:void 0}function Ze(be,ze){return fn(be+(be-ze+.5>>1))}function Lt(be,ze,pt){return Math.abs(ze-pt)-Math.abs(be-pt)}function cr(be,ze,pt,Ht,dr,Cr,Re){for(Ht=Cr[Re-1],pt=0;pt<dr;++pt)Cr[Re+pt]=Ht=ea(be[ze+pt],Ht)}function lr(be,ze,pt,Ht,dr){var Cr;for(Cr=0;Cr<pt;++Cr){var Re=be[ze+Cr],re=Re>>8&255,xe=16711935&(xe=(xe=16711935&Re)+((re<<16)+re));Ht[dr+Cr]=(4278255360&Re)+xe>>>0}}function _r(be,ze){ze.jd=be>>0&255,ze.hd=be>>8&255,ze.ud=be>>16&255}function Rr(be,ze,pt,Ht,dr,Cr){var Re;for(Re=0;Re<Ht;++Re){var re=ze[pt+Re],xe=re>>>8,Ge=re,ot=255&(ot=(ot=re>>>16)+((be.jd<<24>>24)*(xe<<24>>24)>>>5));Ge=255&(Ge=(Ge=Ge+((be.hd<<24>>24)*(xe<<24>>24)>>>5))+((be.ud<<24>>24)*(ot<<24>>24)>>>5)),dr[Cr+Re]=(4278255360&re)+(ot<<16)+Ge}}function Wr(be,ze,pt,Ht,dr){kn[ze]=function(Cr,Re,re,xe,Ge,ot,Ct,_t,Dt){for(xe=Ct;xe<_t;++xe)for(Ct=0;Ct<Dt;++Ct)Ge[ot++]=dr(re[Ht(Cr[Re++])])},kn[be]=function(Cr,Re,re,xe,Ge,ot,Ct){var _t=8>>Cr.b,Dt=Cr.Ea,vr=Cr.K[0],Lr=Cr.w;if(8>_t)for(Cr=(1<<Cr.b)-1,Lr=(1<<_t)-1;Re<re;++Re){var mr,ur=0;for(mr=0;mr<Dt;++mr)mr&Cr||(ur=Ht(xe[Ge++])),ot[Ct++]=dr(vr[ur&Lr]),ur>>=_t}else kn["VP8LMapColor"+pt](xe,Ge,vr,Lr,ot,Ct,Re,re,Dt)}}function on(be,ze,pt,Ht,dr){for(pt=ze+pt;ze<pt;){var Cr=be[ze++];Ht[dr++]=Cr>>16&255,Ht[dr++]=Cr>>8&255,Ht[dr++]=Cr>>0&255}}function En(be,ze,pt,Ht,dr){for(pt=ze+pt;ze<pt;){var Cr=be[ze++];Ht[dr++]=Cr>>16&255,Ht[dr++]=Cr>>8&255,Ht[dr++]=Cr>>0&255,Ht[dr++]=Cr>>24&255}}function An(be,ze,pt,Ht,dr){for(pt=ze+pt;ze<pt;){var Cr=(Re=be[ze++])>>16&240|Re>>12&15,Re=Re>>0&240|Re>>28&15;Ht[dr++]=Cr,Ht[dr++]=Re}}function Rn(be,ze,pt,Ht,dr){for(pt=ze+pt;ze<pt;){var Cr=(Re=be[ze++])>>16&248|Re>>13&7,Re=Re>>5&224|Re>>3&31;Ht[dr++]=Cr,Ht[dr++]=Re}}function Un(be,ze,pt,Ht,dr){for(pt=ze+pt;ze<pt;){var Cr=be[ze++];Ht[dr++]=Cr>>0&255,Ht[dr++]=Cr>>8&255,Ht[dr++]=Cr>>16&255}}function wn(be,ze,pt,Ht,dr,Cr){if(Cr==0)for(pt=ze+pt;ze<pt;)Wi(Ht,((Cr=be[ze++])[0]>>24|Cr[1]>>8&65280|Cr[2]<<8&16711680|Cr[3]<<24)>>>0),dr+=32;else He(Ht,dr,be,ze,pt)}function _n(be,ze){kn[ze][0]=kn[be+"0"],kn[ze][1]=kn[be+"1"],kn[ze][2]=kn[be+"2"],kn[ze][3]=kn[be+"3"],kn[ze][4]=kn[be+"4"],kn[ze][5]=kn[be+"5"],kn[ze][6]=kn[be+"6"],kn[ze][7]=kn[be+"7"],kn[ze][8]=kn[be+"8"],kn[ze][9]=kn[be+"9"],kn[ze][10]=kn[be+"10"],kn[ze][11]=kn[be+"11"],kn[ze][12]=kn[be+"12"],kn[ze][13]=kn[be+"13"],kn[ze][14]=kn[be+"0"],kn[ze][15]=kn[be+"0"]}function Cn(be){return be==Cc||be==Al||be==Ll||be==Kl}function Kn(){this.eb=[],this.size=this.A=this.fb=0}function Yn(){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 ni(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Kn,this.f.kb=new Yn,this.sd=null}function yi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function li(){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 Oi(be){return alert("todo:WebPSamplerProcessPlane"),be.T}function ki(be,ze){var pt=be.T,Ht=ze.ba.f.RGBA,dr=Ht.eb,Cr=Ht.fb+be.ka*Ht.A,Re=cl[ze.ba.S],re=be.y,xe=be.O,Ge=be.f,ot=be.N,Ct=be.ea,_t=be.W,Dt=ze.cc,vr=ze.dc,Lr=ze.Mc,mr=ze.Nc,ur=be.ka,Tr=be.ka+be.T,kr=be.U,an=kr+1>>1;for(ur==0?Re(re,xe,null,null,Ge,ot,Ct,_t,Ge,ot,Ct,_t,dr,Cr,null,null,kr):(Re(ze.ec,ze.fc,re,xe,Dt,vr,Lr,mr,Ge,ot,Ct,_t,dr,Cr-Ht.A,dr,Cr,kr),++pt);ur+2<Tr;ur+=2)Dt=Ge,vr=ot,Lr=Ct,mr=_t,ot+=be.Rc,_t+=be.Rc,Cr+=2*Ht.A,Re(re,(xe+=2*be.fa)-be.fa,re,xe,Dt,vr,Lr,mr,Ge,ot,Ct,_t,dr,Cr-Ht.A,dr,Cr,kr);return xe+=be.fa,be.j+Tr<be.o?(He(ze.ec,ze.fc,re,xe,kr),He(ze.cc,ze.dc,Ge,ot,an),He(ze.Mc,ze.Nc,Ct,_t,an),pt--):1&Tr||Re(re,xe,null,null,Ge,ot,Ct,_t,Ge,ot,Ct,_t,dr,Cr+Ht.A,null,null,kr),pt}function Si(be,ze,pt){var Ht=be.F,dr=[be.J];if(Ht!=null){var Cr=be.U,Re=ze.ba.S,re=Re==Vs||Re==Ll;ze=ze.ba.f.RGBA;var xe=[0],Ge=be.ka;xe[0]=be.T,be.Kb&&(Ge==0?--xe[0]:(--Ge,dr[0]-=be.width),be.j+be.ka+be.T==be.o&&(xe[0]=be.o-be.j-Ge));var ot=ze.eb;Ge=ze.fb+Ge*ze.A,be=el(Ht,dr[0],be.width,Cr,xe,ot,Ge+(re?0:3),ze.A),_e(pt==xe),be&&Cn(Re)&&xl(ot,Ge,re,Cr,xe,ze.A)}return 0}function mi(be){var ze=be.ma,pt=ze.ba.S,Ht=11>pt,dr=pt==oc||pt==Ql||pt==Vs||pt==lc||pt==12||Cn(pt);if(ze.memory=null,ze.Ib=null,ze.Jb=null,ze.Nd=null,!To(ze.Oa,be,dr?11:12))return 0;if(dr&&Cn(pt)&&Ue(),be.da)alert("todo:use_scaling");else{if(Ht){if(ze.Ib=Oi,be.Kb){if(pt=be.U+1>>1,ze.memory=Ye(be.U+2*pt),ze.memory==null)return 0;ze.ec=ze.memory,ze.fc=0,ze.cc=ze.ec,ze.dc=ze.fc+be.U,ze.Mc=ze.cc,ze.Nc=ze.dc+pt,ze.Ib=ki,Ue()}}else alert("todo:EmitYUV");dr&&(ze.Jb=Si,Ht&&ye())}if(Ht&&!Nc){for(be=0;256>be;++be)eu[be]=89858*(be-128)+Nl>>pl,Xc[be]=-22014*(be-128)+Nl,Gc[be]=-45773*(be-128),Dc[be]=113618*(be-128)+Nl>>pl;for(be=Gl;be<jl;++be)ze=76283*(be-16)+Nl>>pl,Yc[be-Gl]=Gi(ze,255),Rc[be-Gl]=Gi(ze+8>>4,15);Nc=1}return 1}function Li(be){var ze=be.ma,pt=be.U,Ht=be.T;return _e(!(1&be.ka)),0>=pt||0>=Ht?0:(pt=ze.Ib(be,ze),ze.Jb!=null&&ze.Jb(be,ze,pt),ze.Dc+=pt,1)}function Wn(be){be.ma.memory=null}function Di(be,ze,pt,Ht){return Mi(be,8)!=47?0:(ze[0]=Mi(be,14)+1,pt[0]=Mi(be,14)+1,Ht[0]=Mi(be,1),Mi(be,3)!=0?0:!be.h)}function zi(be,ze){if(4>be)return be+1;var pt=be-2>>1;return(2+(1&be)<<pt)+Mi(ze,pt)+1}function yr(be,ze){return 120<ze?ze-120:1<=(pt=((pt=Zl[ze-1])>>4)*be+(8-(15&pt)))?pt:1;var pt}function Mr(be,ze,pt){var Ht=bn(pt),dr=be[ze+=255&Ht].g-8;return 0<dr&&(Gn(pt,pt.u+8),Ht=bn(pt),ze+=be[ze].value,ze+=Ht&(1<<dr)-1),Gn(pt,pt.u+be[ze].g),be[ze].value}function Qr(be,ze,pt){return pt.g+=be.g,pt.value+=be.value<<ze>>>0,_e(8>=pt.g),be.g}function Ir(be,ze,pt){var Ht=be.xc;return _e((ze=Ht==0?0:be.vc[be.md*(pt>>Ht)+(ze>>Ht)])<be.Wb),be.Ya[ze]}function Gt(be,ze,pt,Ht){var dr=be.ab,Cr=be.c*ze,Re=be.C;ze=Re+ze;var re=pt,xe=Ht;for(Ht=be.Ta,pt=be.Ua;0<dr--;){var Ge=be.gc[dr],ot=Re,Ct=ze,_t=re,Dt=xe,vr=(xe=Ht,re=pt,Ge.Ea);switch(_e(ot<Ct),_e(Ct<=Ge.nc),Ge.hc){case 2:Qo(_t,Dt,(Ct-ot)*vr,xe,re);break;case 0:var Lr=ot,mr=Ct,ur=xe,Tr=re,kr=(di=Ge).Ea;Lr==0&&(Es(_t,Dt,null,null,1,ur,Tr),cr(_t,Dt+1,0,0,kr-1,ur,Tr+1),Dt+=kr,Tr+=kr,++Lr);for(var an=1<<di.b,jn=an-1,Vn=Fi(kr,di.b),Ei=di.K,di=di.w+(Lr>>di.b)*Vn;Lr<mr;){var ua=Ei,ji=di,Ca=1;for(as(_t,Dt,ur,Tr-kr,1,ur,Tr);Ca<kr;){var ha=(Ca&~jn)+an;ha>kr&&(ha=kr),(0,Lo[ua[ji++]>>8&15])(_t,Dt+ +Ca,ur,Tr+Ca-kr,ha-Ca,ur,Tr+Ca),Ca=ha}Dt+=kr,Tr+=kr,++Lr&jn||(di+=Vn)}Ct!=Ge.nc&&He(xe,re-vr,xe,re+(Ct-ot-1)*vr,vr);break;case 1:for(vr=_t,mr=Dt,kr=(_t=Ge.Ea)-(Tr=_t&~(ur=(Dt=1<<Ge.b)-1)),Lr=Fi(_t,Ge.b),an=Ge.K,Ge=Ge.w+(ot>>Ge.b)*Lr;ot<Ct;){for(jn=an,Vn=Ge,Ei=new Xr,di=mr+Tr,ua=mr+_t;mr<di;)_r(jn[Vn++],Ei),ls(Ei,vr,mr,Dt,xe,re),mr+=Dt,re+=Dt;mr<ua&&(_r(jn[Vn++],Ei),ls(Ei,vr,mr,kr,xe,re),mr+=kr,re+=kr),++ot&ur||(Ge+=Lr)}break;case 3:if(_t==xe&&Dt==re&&0<Ge.b){for(mr=xe,_t=vr=re+(Ct-ot)*vr-(Tr=(Ct-ot)*Fi(Ge.Ea,Ge.b)),Dt=xe,ur=re,Lr=[],Tr=(kr=Tr)-1;0<=Tr;--Tr)Lr[Tr]=Dt[ur+Tr];for(Tr=kr-1;0<=Tr;--Tr)mr[_t+Tr]=Lr[Tr];hs(Ge,ot,Ct,xe,vr,xe,re)}else hs(Ge,ot,Ct,_t,Dt,xe,re)}re=Ht,xe=pt}xe!=pt&&He(Ht,pt,re,xe,Cr)}function Sr(be,ze){var pt=be.V,Ht=be.Ba+be.c*be.C,dr=ze-be.C;if(_e(ze<=be.l.o),_e(16>=dr),0<dr){var Cr=be.l,Re=be.Ta,re=be.Ua,xe=Cr.width;if(Gt(be,dr,pt,Ht),dr=re=[re],_e((pt=be.C)<(Ht=ze)),_e(Cr.v<Cr.va),Ht>Cr.o&&(Ht=Cr.o),pt<Cr.j){var Ge=Cr.j-pt;pt=Cr.j,dr[0]+=Ge*xe}if(pt>=Ht?pt=0:(dr[0]+=4*Cr.v,Cr.ka=pt-Cr.j,Cr.U=Cr.va-Cr.v,Cr.T=Ht-pt,pt=1),pt){if(re=re[0],11>(pt=be.ca).S){var ot=pt.f.RGBA,Ct=(Ht=pt.S,dr=Cr.U,Cr=Cr.T,Ge=ot.eb,ot.A),_t=Cr;for(ot=ot.fb+be.Ma*ot.A;0<_t--;){var Dt=Re,vr=re,Lr=dr,mr=Ge,ur=ot;switch(Ht){case Fl:Zs(Dt,vr,Lr,mr,ur);break;case oc:vs(Dt,vr,Lr,mr,ur);break;case Cc:vs(Dt,vr,Lr,mr,ur),xl(mr,ur,0,Lr,1,0);break;case sc:Rs(Dt,vr,Lr,mr,ur);break;case Ql:wn(Dt,vr,Lr,mr,ur,1);break;case Al:wn(Dt,vr,Lr,mr,ur,1),xl(mr,ur,0,Lr,1,0);break;case Vs:wn(Dt,vr,Lr,mr,ur,0);break;case Ll:wn(Dt,vr,Lr,mr,ur,0),xl(mr,ur,1,Lr,1,0);break;case lc:Fs(Dt,vr,Lr,mr,ur);break;case Kl:Fs(Dt,vr,Lr,mr,ur),Bl(mr,ur,Lr,1,0);break;case cc:Us(Dt,vr,Lr,mr,ur);break;default:_e(0)}re+=xe,ot+=Ct}be.Ma+=Cr}else alert("todo:EmitRescaledRowsYUVA");_e(be.Ma<=pt.height)}}be.C=ze,_e(be.C<=be.i)}function Zt(be){var ze;if(0<be.ua)return 0;for(ze=0;ze<be.Wb;++ze){var pt=be.Ya[ze].G,Ht=be.Ya[ze].H;if(0<pt[1][Ht[1]+0].g||0<pt[2][Ht[2]+0].g||0<pt[3][Ht[3]+0].g)return 0}return 1}function jr(be,ze,pt,Ht,dr,Cr){if(be.Z!=0){var Re=be.qd,re=be.rd;for(_e(bl[be.Z]!=null);ze<pt;++ze)bl[be.Z](Re,re,Ht,dr,Ht,dr,Cr),Re=Ht,re=dr,dr+=Cr;be.qd=Re,be.rd=re}}function Kr(be,ze){var pt=be.l.ma,Ht=pt.Z==0||pt.Z==1?be.l.j:be.C;if(Ht=be.C<Ht?Ht:be.C,_e(ze<=be.l.o),ze>Ht){var dr=be.l.width,Cr=pt.ca,Re=pt.tb+dr*Ht,re=be.V,xe=be.Ba+be.c*Ht,Ge=be.gc;_e(be.ab==1),_e(Ge[0].hc==3),sl(Ge[0],Ht,ze,re,xe,Cr,Re),jr(pt,Ht,ze,Cr,Re,dr)}be.C=be.Ma=ze}function pn(be,ze,pt,Ht,dr,Cr,Re){var re=be.$/Ht,xe=be.$%Ht,Ge=be.m,ot=be.s,Ct=pt+be.$,_t=Ct;dr=pt+Ht*dr;var Dt=pt+Ht*Cr,vr=280+ot.ua,Lr=be.Pb?re:16777216,mr=0<ot.ua?ot.Wa:null,ur=ot.wc,Tr=Ct<Dt?Ir(ot,xe,re):null;_e(be.C<Cr),_e(Dt<=dr);var kr=!1;e:for(;;){for(;kr||Ct<Dt;){var an=0;if(re>=Lr){var jn=Ct-pt;_e((Lr=be).Pb),Lr.wd=Lr.m,Lr.xd=jn,0<Lr.s.ua&&ln(Lr.s.Wa,Lr.s.vb),Lr=re+$l}if(xe&ur||(Tr=Ir(ot,xe,re)),_e(Tr!=null),Tr.Qb&&(ze[Ct]=Tr.qb,kr=!0),!kr)if($n(Ge),Tr.jc){an=Ge,jn=ze;var Vn=Ct,Ei=Tr.pd[bn(an)&So-1];_e(Tr.jc),256>Ei.g?(Gn(an,an.u+Ei.g),jn[Vn]=Ei.value,an=0):(Gn(an,an.u+Ei.g-256),_e(256<=Ei.value),an=Ei.value),an==0&&(kr=!0)}else an=Mr(Tr.G[0],Tr.H[0],Ge);if(Ge.h)break;if(kr||256>an){if(!kr)if(Tr.nd)ze[Ct]=(Tr.qb|an<<8)>>>0;else{if($n(Ge),kr=Mr(Tr.G[1],Tr.H[1],Ge),$n(Ge),jn=Mr(Tr.G[2],Tr.H[2],Ge),Vn=Mr(Tr.G[3],Tr.H[3],Ge),Ge.h)break;ze[Ct]=(Vn<<24|kr<<16|an<<8|jn)>>>0}if(kr=!1,++Ct,++xe>=Ht&&(xe=0,++re,Re!=null&&re<=Cr&&!(re%16)&&Re(be,re),mr!=null))for(;_t<Ct;)an=ze[_t++],mr.X[(506832829*an&4294967295)>>>mr.Mb]=an}else if(280>an){if(an=zi(an-256,Ge),jn=Mr(Tr.G[4],Tr.H[4],Ge),$n(Ge),jn=yr(Ht,jn=zi(jn,Ge)),Ge.h)break;if(Ct-pt<jn||dr-Ct<an)break e;for(Vn=0;Vn<an;++Vn)ze[Ct+Vn]=ze[Ct+Vn-jn];for(Ct+=an,xe+=an;xe>=Ht;)xe-=Ht,++re,Re!=null&&re<=Cr&&!(re%16)&&Re(be,re);if(_e(Ct<=dr),xe&ur&&(Tr=Ir(ot,xe,re)),mr!=null)for(;_t<Ct;)an=ze[_t++],mr.X[(506832829*an&4294967295)>>>mr.Mb]=an}else{if(!(an<vr))break e;for(kr=an-280,_e(mr!=null);_t<Ct;)an=ze[_t++],mr.X[(506832829*an&4294967295)>>>mr.Mb]=an;an=Ct,_e(!(kr>>>(jn=mr).Xa)),ze[an]=jn.X[kr],kr=!0}kr||_e(Ge.h==Mn(Ge))}if(be.Pb&&Ge.h&&Ct<dr)_e(be.m.h),be.a=5,be.m=be.wd,be.$=be.xd,0<be.s.ua&&ln(be.s.vb,be.s.Wa);else{if(Ge.h)break e;Re!=null&&Re(be,re>Cr?Cr:re),be.a=0,be.$=Ct-pt}return 1}return be.a=3,0}function sn(be){_e(be!=null),be.vc=null,be.yc=null,be.Ya=null;var ze=be.Wa;ze!=null&&(ze.X=null),be.vb=null,_e(be!=null)}function yn(){var be=new Xs;return be==null?null:(be.a=0,be.xb=ec,_n("Predictor","VP8LPredictors"),_n("Predictor","VP8LPredictors_C"),_n("PredictorAdd","VP8LPredictorsAdd"),_n("PredictorAdd","VP8LPredictorsAdd_C"),Qo=lr,ls=Rr,Zs=on,vs=En,Fs=An,Us=Rn,Rs=Un,kn.VP8LMapColor32b=vl,kn.VP8LMapColor8b=fs,be)}function Fn(be,ze,pt,Ht,dr){var Cr=1,Re=[be],re=[ze],xe=Ht.m,Ge=Ht.s,ot=null,Ct=0;e:for(;;){if(pt)for(;Cr&&Mi(xe,1);){var _t=Re,Dt=re,vr=Ht,Lr=1,mr=vr.m,ur=vr.gc[vr.ab],Tr=Mi(mr,2);if(vr.Oc&1<<Tr)Cr=0;else{switch(vr.Oc|=1<<Tr,ur.hc=Tr,ur.Ea=_t[0],ur.nc=Dt[0],ur.K=[null],++vr.ab,_e(4>=vr.ab),Tr){case 0:case 1:ur.b=Mi(mr,3)+2,Lr=Fn(Fi(ur.Ea,ur.b),Fi(ur.nc,ur.b),0,vr,ur.K),ur.K=ur.K[0];break;case 3:var kr,an=Mi(mr,8)+1,jn=16<an?0:4<an?1:2<an?2:3;if(_t[0]=Fi(ur.Ea,jn),ur.b=jn,kr=Lr=Fn(an,1,0,vr,ur.K)){var Vn,Ei=an,di=ur,ua=1<<(8>>di.b),ji=Ye(ua);if(ji==null)kr=0;else{var Ca=di.K[0],ha=di.w;for(ji[0]=di.K[0][0],Vn=1;Vn<1*Ei;++Vn)ji[Vn]=ea(Ca[ha+Vn],ji[Vn-1]);for(;Vn<4*ua;++Vn)ji[Vn]=0;di.K[0]=null,di.K[0]=ji,kr=1}}Lr=kr;break;case 2:break;default:_e(0)}Cr=Lr}}if(Re=Re[0],re=re[0],Cr&&Mi(xe,1)&&!(Cr=1<=(Ct=Mi(xe,4))&&11>=Ct)){Ht.a=3;break e}var Za;if(Za=Cr)t:{var po,F,K,te=Ht,ae=Re,he=re,Pe=Ct,mt=pt,It=te.m,Yt=te.s,rr=[null],en=1,hn=0,Dn=uc[Pe];r:for(;;){if(mt&&Mi(It,1)){var Bn=Mi(It,3)+2,vi=Fi(ae,Bn),Ki=Fi(he,Bn),Qi=vi*Ki;if(!Fn(vi,Ki,0,te,rr))break r;for(rr=rr[0],Yt.xc=Bn,po=0;po<Qi;++po){var Xi=rr[po]>>8&65535;rr[po]=Xi,Xi>=en&&(en=Xi+1)}}if(It.h)break r;for(F=0;5>F;++F){var Vi=jc[F];!F&&0<Pe&&(Vi+=1<<Pe),hn<Vi&&(hn=Vi)}var fa=et(en*Dn,xn),ba=en,qa=et(ba,ui);if(qa==null)var Ba=null;else _e(65536>=ba),Ba=qa;var Eo=Ye(hn);if(Ba==null||Eo==null||fa==null){te.a=1;break r}var Wo=fa;for(po=K=0;po<en;++po){var cs=Ba[po],$o=cs.G,Ms=cs.H,Qs=0,Ts=1,Js=0;for(F=0;5>F;++F){Vi=jc[F],$o[F]=Wo,Ms[F]=K,!F&&0<Pe&&(Vi+=1<<Pe);i:{var ks,aa=Vi,os=te,rs=Eo,As=Wo,Ac=K,No=0,Ao=os.m,ml=Mi(Ao,1);if(Je(rs,0,0,aa),ml){var Gs=Mi(Ao,1)+1,yc=Mi(Ao,1),Dl=Mi(Ao,yc==0?1:8);rs[Dl]=1,Gs==2&&(rs[Dl=Mi(Ao,8)]=1);var gl=1}else{var Xl=Ye(19),rl=Mi(Ao,4)+4;if(19<rl){os.a=3;var Rl=0;break i}for(ks=0;ks<rl;++ks)Xl[yl[ks]]=Mi(Ao,3);var Mc=void 0,Qc=void 0,vu=os,Au=Xl,tu=aa,yu=rs,su=0,bc=vu.m,hu=8,bu=et(128,xn);n:for(;Vr(bu,0,7,Au,19);){if(Mi(bc,1)){var Tu=2+2*Mi(bc,3);if((Mc=2+Mi(bc,Tu))>tu)break n}else Mc=tu;for(Qc=0;Qc<tu&&Mc--;){$n(bc);var wu=bu[0+(127&bn(bc))];Gn(bc,bc.u+wu.g);var rc=wu.value;if(16>rc)yu[Qc++]=rc,rc!=0&&(hu=rc);else{var Ml=rc==16,fu=rc-16,lu=El[fu],Su=Mi(bc,Jl[fu])+lu;if(Qc+Su>tu)break n;for(var Cu=Ml?hu:0;0<Su--;)yu[Qc++]=Cu}}su=1;break n}su||(vu.a=3),gl=su}(gl=gl&&!Ao.h)&&(No=Vr(As,Ac,8,rs,aa)),gl&&No!=0?Rl=No:(os.a=3,Rl=0)}if(Rl==0)break r;if(Ts&&Hc[F]==1&&(Ts=Wo[K].g==0),Qs+=Wo[K].g,K+=Rl,3>=F){var kc,wc=Eo[0];for(kc=1;kc<Vi;++kc)Eo[kc]>wc&&(wc=Eo[kc]);Js+=wc}}if(cs.nd=Ts,cs.Qb=0,Ts&&(cs.qb=($o[3][Ms[3]+0].value<<24|$o[1][Ms[1]+0].value<<16|$o[2][Ms[2]+0].value)>>>0,Qs==0&&256>$o[0][Ms[0]+0].value&&(cs.Qb=1,cs.qb+=$o[0][Ms[0]+0].value<<8)),cs.jc=!cs.Qb&&6>Js,cs.jc){var Pc,nc=cs;for(Pc=0;Pc<So;++Pc){var Il=Pc,Sc=nc.pd[Il],cu=nc.G[0][nc.H[0]+Il];256<=cu.value?(Sc.g=cu.g+256,Sc.value=cu.value):(Sc.g=0,Sc.value=0,Il>>=Qr(cu,8,Sc),Il>>=Qr(nc.G[1][nc.H[1]+Il],16,Sc),Il>>=Qr(nc.G[2][nc.H[2]+Il],0,Sc),Qr(nc.G[3][nc.H[3]+Il],24,Sc))}}}Yt.vc=rr,Yt.Wb=en,Yt.Ya=Ba,Yt.yc=fa,Za=1;break t}Za=0}if(!(Cr=Za)){Ht.a=3;break e}if(0<Ct){if(Ge.ua=1<<Ct,!pi(Ge.Wa,Ct)){Ht.a=1,Cr=0;break e}}else Ge.ua=0;var uu=Ht,xu=Re,Eu=re,pu=uu.s,mu=pu.xc;if(uu.c=xu,uu.i=Eu,pu.md=Fi(xu,mu),pu.wc=mu==0?-1:(1<<mu)-1,pt){Ht.xb=ql;break e}if((ot=Ye(Re*re))==null){Ht.a=1,Cr=0;break e}Cr=(Cr=pn(Ht,ot,0,Re,re,re,null))&&!xe.h;break e}return Cr?(dr!=null?dr[0]=ot:(_e(ot==null),_e(pt)),Ht.$=0,pt||sn(Ge)):sn(Ge),Cr}function Xn(be,ze){var pt=be.c*be.i,Ht=pt+ze+16*ze;return _e(be.c<=ze),be.V=Ye(Ht),be.V==null?(be.Ta=null,be.Ua=0,be.a=1,0):(be.Ta=be.V,be.Ua=be.Ba+pt+ze,1)}function Jn(be,ze){var pt=be.C,Ht=ze-pt,dr=be.V,Cr=be.Ba+be.c*pt;for(_e(ze<=be.l.o);0<Ht;){var Re=16<Ht?16:Ht,re=be.l.ma,xe=be.l.width,Ge=xe*Re,ot=re.ca,Ct=re.tb+xe*pt,_t=be.Ta,Dt=be.Ua;Gt(be,Re,dr,Cr),_l(_t,Dt,ot,Ct,Ge),jr(re,pt,pt+Re,ot,Ct,xe),Ht-=Re,dr+=Re*be.c,pt+=Re}_e(pt==ze),be.C=be.Ma=ze}function Ti(){this.ub=this.yd=this.td=this.Rb=0}function ta(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function oa(){this.Fb=this.Bb=this.Cb=0,this.Zb=Ye(4),this.Lb=Ye(4)}function da(){this.Yb=function(){var be=[];return function ze(pt,Ht,dr){for(var Cr=dr[Ht],Re=0;Re<Cr&&(pt.push(dr.length>Ht+1?[]:0),!(dr.length<Ht+1));Re++)ze(pt[Re],Ht+1,dr)}(be,0,[3,11]),be}()}function ca(){this.jb=Ye(3),this.Wc=wt([4,8],da),this.Xc=wt([4,17],da)}function ma(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Ye(4),this.od=new Ye(4)}function Ui(){this.ld=this.La=this.dd=this.tc=0}function Ni(){this.Na=this.la=0}function ra(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function qi(){this.ad=Ye(384),this.Za=0,this.Ob=Ye(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Aa(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ui),this.Y=0,this.ya=Array(new qi),this.aa=0,this.l=new La}function Oa(){this.y=Ye(16),this.f=Ye(8),this.ea=Ye(8)}function Zi(){this.cb=this.a=0,this.sc="",this.m=new dn,this.Od=new Ti,this.Kc=new ta,this.ed=new ma,this.Qa=new oa,this.Ic=this.$c=this.Aa=0,this.D=new Aa,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=et(8,dn),this.ia=0,this.pb=et(4,ra),this.Pa=new ca,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Oa),this.Hd=0,this.rb=Array(new Ni),this.sb=0,this.wa=Array(new Ui),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 qi),this.L=this.aa=0,this.gd=wt([4,2],Ui),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 Gi(be,ze){return 0>be?0:be>ze?ze:be}function La(){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 va(){var be=new Zi;return be!=null&&(be.a=0,be.sc="OK",be.cb=0,be.Xb=0,Ul||(Ul=Na)),be}function Ci(be,ze,pt){return be.a==0&&(be.a=ze,be.sc=pt,be.cb=0),0}function Sa(be,ze,pt){return 3<=pt&&be[ze+0]==157&&be[ze+1]==1&&be[ze+2]==42}function Da(be,ze){if(be==null)return 0;if(be.a=0,be.sc="OK",ze==null)return Ci(be,2,"null VP8Io passed to VP8GetHeaders()");var pt=ze.data,Ht=ze.w,dr=ze.ha;if(4>dr)return Ci(be,7,"Truncated header.");var Cr=pt[Ht+0]|pt[Ht+1]<<8|pt[Ht+2]<<16,Re=be.Od;if(Re.Rb=!(1&Cr),Re.td=Cr>>1&7,Re.yd=Cr>>4&1,Re.ub=Cr>>5,3<Re.td)return Ci(be,3,"Incorrect keyframe parameters.");if(!Re.yd)return Ci(be,4,"Frame not displayable.");Ht+=3,dr-=3;var re=be.Kc;if(Re.Rb){if(7>dr)return Ci(be,7,"cannot parse picture header");if(!Sa(pt,Ht,dr))return Ci(be,3,"Bad code word");re.c=16383&(pt[Ht+4]<<8|pt[Ht+3]),re.Td=pt[Ht+4]>>6,re.i=16383&(pt[Ht+6]<<8|pt[Ht+5]),re.Ud=pt[Ht+6]>>6,Ht+=7,dr-=7,be.za=re.c+15>>4,be.Ub=re.i+15>>4,ze.width=re.c,ze.height=re.i,ze.Da=0,ze.j=0,ze.v=0,ze.va=ze.width,ze.o=ze.height,ze.da=0,ze.ib=ze.width,ze.hb=ze.height,ze.U=ze.width,ze.T=ze.height,Je((Cr=be.Pa).jb,0,255,Cr.jb.length),_e((Cr=be.Qa)!=null),Cr.Cb=0,Cr.Bb=0,Cr.Fb=1,Je(Cr.Zb,0,0,Cr.Zb.length),Je(Cr.Lb,0,0,Cr.Lb)}if(Re.ub>dr)return Ci(be,7,"bad partition length");qn(Cr=be.m,pt,Ht,Re.ub),Ht+=Re.ub,dr-=Re.ub,Re.Rb&&(re.Ld=fi(Cr),re.Kd=fi(Cr)),re=be.Qa;var xe,Ge=be.Pa;if(_e(Cr!=null),_e(re!=null),re.Cb=fi(Cr),re.Cb){if(re.Bb=fi(Cr),fi(Cr)){for(re.Fb=fi(Cr),xe=0;4>xe;++xe)re.Zb[xe]=fi(Cr)?Qn(Cr,7):0;for(xe=0;4>xe;++xe)re.Lb[xe]=fi(Cr)?Qn(Cr,6):0}if(re.Bb)for(xe=0;3>xe;++xe)Ge.jb[xe]=fi(Cr)?wi(Cr,8):255}else re.Bb=0;if(Cr.Ka)return Ci(be,3,"cannot parse segment header");if((re=be.ed).zd=fi(Cr),re.Tb=wi(Cr,6),re.wb=wi(Cr,3),re.Pc=fi(Cr),re.Pc&&fi(Cr)){for(Ge=0;4>Ge;++Ge)fi(Cr)&&(re.vd[Ge]=Qn(Cr,6));for(Ge=0;4>Ge;++Ge)fi(Cr)&&(re.od[Ge]=Qn(Cr,6))}if(be.L=re.Tb==0?0:re.zd?1:2,Cr.Ka)return Ci(be,3,"cannot parse filter header");var ot=dr;if(dr=xe=Ht,Ht=xe+ot,re=ot,be.Xb=(1<<wi(be.m,2))-1,ot<3*(Ge=be.Xb))pt=7;else{for(xe+=3*Ge,re-=3*Ge,ot=0;ot<Ge;++ot){var Ct=pt[dr+0]|pt[dr+1]<<8|pt[dr+2]<<16;Ct>re&&(Ct=re),qn(be.Jc[+ot],pt,xe,Ct),xe+=Ct,re-=Ct,dr+=3}qn(be.Jc[+Ge],pt,xe,re),pt=xe<Ht?0:5}if(pt!=0)return Ci(be,pt,"cannot parse partitions");for(pt=wi(xe=be.m,7),dr=fi(xe)?Qn(xe,4):0,Ht=fi(xe)?Qn(xe,4):0,re=fi(xe)?Qn(xe,4):0,Ge=fi(xe)?Qn(xe,4):0,xe=fi(xe)?Qn(xe,4):0,ot=be.Qa,Ct=0;4>Ct;++Ct){if(ot.Cb){var _t=ot.Zb[Ct];ot.Fb||(_t+=pt)}else{if(0<Ct){be.pb[Ct]=be.pb[0];continue}_t=pt}var Dt=be.pb[Ct];Dt.Sc[0]=Ss[Gi(_t+dr,127)],Dt.Sc[1]=dl[Gi(_t+0,127)],Dt.Eb[0]=2*Ss[Gi(_t+Ht,127)],Dt.Eb[1]=101581*dl[Gi(_t+re,127)]>>16,8>Dt.Eb[1]&&(Dt.Eb[1]=8),Dt.Qc[0]=Ss[Gi(_t+Ge,117)],Dt.Qc[1]=dl[Gi(_t+xe,127)],Dt.lc=_t+xe}if(!Re.Rb)return Ci(be,4,"Not a key frame.");for(fi(Cr),Re=be.Pa,pt=0;4>pt;++pt){for(dr=0;8>dr;++dr)for(Ht=0;3>Ht;++Ht)for(re=0;11>re;++re)Ge=gi(Cr,_c[pt][dr][Ht][re])?wi(Cr,8):zl[pt][dr][Ht][re],Re.Wc[pt][dr].Yb[Ht][re]=Ge;for(dr=0;17>dr;++dr)Re.Xc[pt][dr]=Re.Wc[pt][Kc[dr]]}return be.kc=fi(Cr),be.kc&&(be.Bd=wi(Cr,8)),be.cb=1}function Na(be,ze,pt,Ht,dr,Cr,Re){var re=ze[dr].Yb[pt];for(pt=0;16>dr;++dr){if(!gi(be,re[pt+0]))return dr;for(;!gi(be,re[pt+1]);)if(re=ze[++dr].Yb[0],pt=0,dr==16)return 16;var xe=ze[dr+1].Yb;if(gi(be,re[pt+2])){var Ge=be,ot=0;if(gi(Ge,(_t=re)[(Ct=pt)+3]))if(gi(Ge,_t[Ct+6])){for(re=0,Ct=2*(ot=gi(Ge,_t[Ct+8]))+(_t=gi(Ge,_t[Ct+9+ot])),ot=0,_t=Ic[Ct];_t[re];++re)ot+=ot+gi(Ge,_t[re]);ot+=3+(8<<Ct)}else gi(Ge,_t[Ct+7])?(ot=7+2*gi(Ge,165),ot+=gi(Ge,145)):ot=5+gi(Ge,159);else ot=gi(Ge,_t[Ct+4])?3+gi(Ge,_t[Ct+5]):2;re=xe[2]}else ot=1,re=xe[1];xe=Re+dc[dr],0>(Ge=be).b&&hi(Ge);var Ct,_t=Ge.b,Dt=(Ct=Ge.Ca>>1)-(Ge.I>>_t)>>31;--Ge.b,Ge.Ca+=Dt,Ge.Ca|=1,Ge.I-=(Ct+1&Dt)<<_t,Cr[xe]=((ot^Dt)-Dt)*Ht[(0<dr)+0]}return 16}function Ua(be){var ze=be.rb[be.sb-1];ze.la=0,ze.Na=0,Je(be.zc,0,0,be.zc.length),be.ja=0}function Pa(be,ze){if(be==null)return 0;if(ze==null)return Ci(be,2,"NULL VP8Io parameter in VP8Decode().");if(!be.cb&&!Da(be,ze))return 0;if(_e(be.cb),ze.ac==null||ze.ac(ze)){ze.ob&&(be.L=0);var pt=wl[be.L];if(be.L==2?(be.yb=0,be.zb=0):(be.yb=ze.v-pt>>4,be.zb=ze.j-pt>>4,0>be.yb&&(be.yb=0),0>be.zb&&(be.zb=0)),be.Va=ze.o+15+pt>>4,be.Hb=ze.va+15+pt>>4,be.Hb>be.za&&(be.Hb=be.za),be.Va>be.Ub&&(be.Va=be.Ub),0<be.L){var Ht=be.ed;for(pt=0;4>pt;++pt){var dr;if(be.Qa.Cb){var Cr=be.Qa.Lb[pt];be.Qa.Fb||(Cr+=Ht.Tb)}else Cr=Ht.Tb;for(dr=0;1>=dr;++dr){var Re=be.gd[pt][dr],re=Cr;if(Ht.Pc&&(re+=Ht.vd[0],dr&&(re+=Ht.od[0])),0<(re=0>re?0:63<re?63:re)){var xe=re;0<Ht.wb&&(xe=4<Ht.wb?xe>>2:xe>>1)>9-Ht.wb&&(xe=9-Ht.wb),1>xe&&(xe=1),Re.dd=xe,Re.tc=2*re+xe,Re.ld=40<=re?2:15<=re?1:0}else Re.tc=0;Re.La=dr}}}pt=0}else Ci(be,6,"Frame setup failed"),pt=be.a;if(pt=pt==0){if(pt){be.$c=0,0<be.Aa||(be.Ic=Cl);e:{pt=be.Ic,Ht=4*(xe=be.za);var Ge=32*xe,ot=xe+1,Ct=0<be.L?xe*(0<be.Aa?2:1):0,_t=(be.Aa==2?2:1)*xe;if((Re=Ht+832+(dr=3*(16*pt+wl[be.L])/2*Ge)+(Cr=be.Fa!=null&&0<be.Fa.length?be.Kc.c*be.Kc.i:0))!=Re)pt=0;else{if(Re>be.Vb){if(be.Vb=0,be.Ec=Ye(Re),be.Fc=0,be.Ec==null){pt=Ci(be,1,"no memory during frame initialization.");break e}be.Vb=Re}Re=be.Ec,re=be.Fc,be.Ac=Re,be.Bc=re,re+=Ht,be.Gd=et(Ge,Oa),be.Hd=0,be.rb=et(ot+1,Ni),be.sb=1,be.wa=Ct?et(Ct,Ui):null,be.Y=0,be.D.Nb=0,be.D.wa=be.wa,be.D.Y=be.Y,0<be.Aa&&(be.D.Y+=xe),_e(!0),be.oc=Re,be.pc=re,re+=832,be.ya=et(_t,qi),be.aa=0,be.D.ya=be.ya,be.D.aa=be.aa,be.Aa==2&&(be.D.aa+=xe),be.R=16*xe,be.B=8*xe,xe=(Ge=wl[be.L])*be.R,Ge=Ge/2*be.B,be.sa=Re,be.ta=re+xe,be.qa=be.sa,be.ra=be.ta+16*pt*be.R+Ge,be.Ha=be.qa,be.Ia=be.ra+8*pt*be.B+Ge,be.$c=0,re+=dr,be.mb=Cr?Re:null,be.nb=Cr?re:null,_e(re+Cr<=be.Fc+be.Vb),Ua(be),Je(be.Ac,be.Bc,0,Ht),pt=1}}if(pt){if(ze.ka=0,ze.y=be.sa,ze.O=be.ta,ze.f=be.qa,ze.N=be.ra,ze.ea=be.Ha,ze.Vd=be.Ia,ze.fa=be.R,ze.Rc=be.B,ze.F=null,ze.J=0,!ac){for(pt=-255;255>=pt;++pt)Ol[255+pt]=0>pt?-pt:pt;for(pt=-1020;1020>=pt;++pt)Uc[1020+pt]=-128>pt?-128:127<pt?127:pt;for(pt=-112;112>=pt;++pt)ic[112+pt]=-16>pt?-16:15<pt?15:pt;for(pt=-255;510>=pt;++pt)Tc[255+pt]=0>pt?0:255<pt?255:pt;ac=1}al=Ra,$s=lo,js=Xa,Ga=Ta,ga=Qa,Ys=ia,Wa=il,oo=Ks,Jo=vo,Hs=Fo,bs=Ps,ws=no,Uo=ns,Io=ys,Zo=mo,xo=es,Ws=Ko,Sl=Bo,fl[0]=jo,fl[1]=yo,fl[2]=Ma,fl[3]=Do,fl[4]=Vo,fl[5]=wo,fl[6]=Go,fl[7]=Ia,fl[8]=ds,fl[9]=Po,hl[0]=eo,hl[1]=bo,hl[2]=co,hl[3]=uo,hl[4]=wa,hl[5]=ro,hl[6]=fo,Tl[0]=Xo,Tl[1]=ao,Tl[2]=ho,Tl[3]=Oo,Tl[4]=Cs,Tl[5]=nl,Tl[6]=_s,pt=1}else pt=0}pt&&(pt=function(Dt,vr){for(Dt.M=0;Dt.M<Dt.Va;++Dt.M){var Lr,mr=Dt.Jc[Dt.M&Dt.Xb],ur=Dt.m,Tr=Dt;for(Lr=0;Lr<Tr.za;++Lr){var kr=ur,an=Tr,jn=an.Ac,Vn=an.Bc+4*Lr,Ei=an.zc,di=an.ya[an.aa+Lr];if(an.Qa.Bb?di.$b=gi(kr,an.Pa.jb[0])?2+gi(kr,an.Pa.jb[2]):gi(kr,an.Pa.jb[1]):di.$b=0,an.kc&&(di.Ad=gi(kr,an.Bd)),di.Za=!gi(kr,145)+0,di.Za){var ua=di.Ob,ji=0;for(an=0;4>an;++an){var Ca,ha=Ei[0+an];for(Ca=0;4>Ca;++Ca){ha=hc[jn[Vn+Ca]][ha];for(var Za=Wl[gi(kr,ha[0])];0<Za;)Za=Wl[2*Za+gi(kr,ha[Za])];ha=-Za,jn[Vn+Ca]=ha}He(ua,ji,jn,Vn,4),ji+=4,Ei[0+an]=ha}}else ha=gi(kr,156)?gi(kr,128)?1:3:gi(kr,163)?2:0,di.Ob[0]=ha,Je(jn,Vn,ha,4),Je(Ei,0,ha,4);di.Dd=gi(kr,142)?gi(kr,114)?gi(kr,183)?1:3:2:0}if(Tr.m.Ka)return Ci(Dt,7,"Premature end-of-partition0 encountered.");for(;Dt.ja<Dt.za;++Dt.ja){if(Tr=mr,kr=(ur=Dt).rb[ur.sb-1],jn=ur.rb[ur.sb+ur.ja],Lr=ur.ya[ur.aa+ur.ja],Vn=ur.kc?Lr.Ad:0)kr.la=jn.la=0,Lr.Za||(kr.Na=jn.Na=0),Lr.Hc=0,Lr.Gc=0,Lr.ia=0;else{var po,F;if(kr=jn,jn=Tr,Vn=ur.Pa.Xc,Ei=ur.ya[ur.aa+ur.ja],di=ur.pb[Ei.$b],an=Ei.ad,ua=0,ji=ur.rb[ur.sb-1],ha=Ca=0,Je(an,ua,0,384),Ei.Za)var K=0,te=Vn[3];else{Za=Ye(16);var ae=kr.Na+ji.Na;if(ae=Ul(jn,Vn[1],ae,di.Eb,0,Za,0),kr.Na=ji.Na=(0<ae)+0,1<ae)al(Za,0,an,ua);else{var he=Za[0]+3>>3;for(Za=0;256>Za;Za+=16)an[ua+Za]=he}K=1,te=Vn[0]}var Pe=15&kr.la,mt=15&ji.la;for(Za=0;4>Za;++Za){var It=1&mt;for(he=F=0;4>he;++he)Pe=Pe>>1|(It=(ae=Ul(jn,te,ae=It+(1&Pe),di.Sc,K,an,ua))>K)<<7,F=F<<2|(3<ae?3:1<ae?2:an[ua+0]!=0),ua+=16;Pe>>=4,mt=mt>>1|It<<7,Ca=(Ca<<8|F)>>>0}for(te=Pe,K=mt>>4,po=0;4>po;po+=2){for(F=0,Pe=kr.la>>4+po,mt=ji.la>>4+po,Za=0;2>Za;++Za){for(It=1&mt,he=0;2>he;++he)ae=It+(1&Pe),Pe=Pe>>1|(It=0<(ae=Ul(jn,Vn[2],ae,di.Qc,0,an,ua)))<<3,F=F<<2|(3<ae?3:1<ae?2:an[ua+0]!=0),ua+=16;Pe>>=2,mt=mt>>1|It<<5}ha|=F<<4*po,te|=Pe<<4<<po,K|=(240&mt)<<po}kr.la=te,ji.la=K,Ei.Hc=Ca,Ei.Gc=ha,Ei.ia=43690&ha?0:di.ia,Vn=!(Ca|ha)}if(0<ur.L&&(ur.wa[ur.Y+ur.ja]=ur.gd[Lr.$b][Lr.Za],ur.wa[ur.Y+ur.ja].La|=!Vn),Tr.Ka)return Ci(Dt,7,"Premature end-of-file encountered.")}if(Ua(Dt),ur=vr,Tr=1,Lr=(mr=Dt).D,kr=0<mr.L&&mr.M>=mr.zb&&mr.M<=mr.Va,mr.Aa==0)e:{if(Lr.M=mr.M,Lr.uc=kr,to(mr,Lr),Tr=1,Lr=(F=mr.D).Nb,kr=(ha=wl[mr.L])*mr.R,jn=ha/2*mr.B,Za=16*Lr*mr.R,he=8*Lr*mr.B,Vn=mr.sa,Ei=mr.ta-kr+Za,di=mr.qa,an=mr.ra-jn+he,ua=mr.Ha,ji=mr.Ia-jn+he,mt=(Pe=F.M)==0,Ca=Pe>=mr.Va-1,mr.Aa==2&&to(mr,F),F.uc)for(It=(ae=mr).D.M,_e(ae.D.uc),F=ae.yb;F<ae.Hb;++F){K=F,te=It;var Yt=(rr=(Vi=ae).D).Nb;po=Vi.R;var rr=rr.wa[rr.Y+K],en=Vi.sa,hn=Vi.ta+16*Yt*po+16*K,Dn=rr.dd,Bn=rr.tc;if(Bn!=0)if(_e(3<=Bn),Vi.L==1)0<K&&xo(en,hn,po,Bn+4),rr.La&&Sl(en,hn,po,Bn),0<te&&Zo(en,hn,po,Bn+4),rr.La&&Ws(en,hn,po,Bn);else{var vi=Vi.B,Ki=Vi.qa,Qi=Vi.ra+8*Yt*vi+8*K,Xi=Vi.Ha,Vi=Vi.Ia+8*Yt*vi+8*K;Yt=rr.ld,0<K&&(oo(en,hn,po,Bn+4,Dn,Yt),Hs(Ki,Qi,Xi,Vi,vi,Bn+4,Dn,Yt)),rr.La&&(ws(en,hn,po,Bn,Dn,Yt),Io(Ki,Qi,Xi,Vi,vi,Bn,Dn,Yt)),0<te&&(Wa(en,hn,po,Bn+4,Dn,Yt),Jo(Ki,Qi,Xi,Vi,vi,Bn+4,Dn,Yt)),rr.La&&(bs(en,hn,po,Bn,Dn,Yt),Uo(Ki,Qi,Xi,Vi,vi,Bn,Dn,Yt))}}if(mr.ia&&alert("todo:DitherRow"),ur.put!=null){if(F=16*Pe,Pe=16*(Pe+1),mt?(ur.y=mr.sa,ur.O=mr.ta+Za,ur.f=mr.qa,ur.N=mr.ra+he,ur.ea=mr.Ha,ur.W=mr.Ia+he):(F-=ha,ur.y=Vn,ur.O=Ei,ur.f=di,ur.N=an,ur.ea=ua,ur.W=ji),Ca||(Pe-=ha),Pe>ur.o&&(Pe=ur.o),ur.F=null,ur.J=null,mr.Fa!=null&&0<mr.Fa.length&&F<Pe&&(ur.J=Rt(mr,ur,F,Pe-F),ur.F=mr.mb,ur.F==null&&ur.F.length==0)){Tr=Ci(mr,3,"Could not decode alpha data.");break e}F<ur.j&&(ha=ur.j-F,F=ur.j,_e(!(1&ha)),ur.O+=mr.R*ha,ur.N+=mr.B*(ha>>1),ur.W+=mr.B*(ha>>1),ur.F!=null&&(ur.J+=ur.width*ha)),F<Pe&&(ur.O+=ur.v,ur.N+=ur.v>>1,ur.W+=ur.v>>1,ur.F!=null&&(ur.J+=ur.v),ur.ka=F-ur.j,ur.U=ur.va-ur.v,ur.T=Pe-F,Tr=ur.put(ur))}Lr+1!=mr.Ic||Ca||(He(mr.sa,mr.ta-kr,Vn,Ei+16*mr.R,kr),He(mr.qa,mr.ra-jn,di,an+8*mr.B,jn),He(mr.Ha,mr.Ia-jn,ua,ji+8*mr.B,jn))}if(!Tr)return Ci(Dt,6,"Output aborted.")}return 1}(be,ze)),ze.bc!=null&&ze.bc(ze),pt&=1}return pt?(be.cb=0,pt):0}function za(be,ze,pt,Ht,dr){dr=be[ze+pt+32*Ht]+(dr>>3),be[ze+pt+32*Ht]=-256&dr?0>dr?0:255:dr}function xa(be,ze,pt,Ht,dr,Cr){za(be,ze,0,pt,Ht+dr),za(be,ze,1,pt,Ht+Cr),za(be,ze,2,pt,Ht-Cr),za(be,ze,3,pt,Ht-dr)}function ja(be){return(20091*be>>16)+be}function io(be,ze,pt,Ht){var dr,Cr=0,Re=Ye(16);for(dr=0;4>dr;++dr){var re=be[ze+0]+be[ze+8],xe=be[ze+0]-be[ze+8],Ge=(35468*be[ze+4]>>16)-ja(be[ze+12]),ot=ja(be[ze+4])+(35468*be[ze+12]>>16);Re[Cr+0]=re+ot,Re[Cr+1]=xe+Ge,Re[Cr+2]=xe-Ge,Re[Cr+3]=re-ot,Cr+=4,ze++}for(dr=Cr=0;4>dr;++dr)re=(be=Re[Cr+0]+4)+Re[Cr+8],xe=be-Re[Cr+8],Ge=(35468*Re[Cr+4]>>16)-ja(Re[Cr+12]),za(pt,Ht,0,0,re+(ot=ja(Re[Cr+4])+(35468*Re[Cr+12]>>16))),za(pt,Ht,1,0,xe+Ge),za(pt,Ht,2,0,xe-Ge),za(pt,Ht,3,0,re-ot),Cr++,Ht+=32}function ia(be,ze,pt,Ht){var dr=be[ze+0]+4,Cr=35468*be[ze+4]>>16,Re=ja(be[ze+4]),re=35468*be[ze+1]>>16;xa(pt,Ht,0,dr+Re,be=ja(be[ze+1]),re),xa(pt,Ht,1,dr+Cr,be,re),xa(pt,Ht,2,dr-Cr,be,re),xa(pt,Ht,3,dr-Re,be,re)}function lo(be,ze,pt,Ht,dr){io(be,ze,pt,Ht),dr&&io(be,ze+16,pt,Ht+4)}function Xa(be,ze,pt,Ht){$s(be,ze+0,pt,Ht,1),$s(be,ze+32,pt,Ht+128,1)}function Ta(be,ze,pt,Ht){var dr;for(be=be[ze+0]+4,dr=0;4>dr;++dr)for(ze=0;4>ze;++ze)za(pt,Ht,ze,dr,be)}function Qa(be,ze,pt,Ht){be[ze+0]&&Ga(be,ze+0,pt,Ht),be[ze+16]&&Ga(be,ze+16,pt,Ht+4),be[ze+32]&&Ga(be,ze+32,pt,Ht+128),be[ze+48]&&Ga(be,ze+48,pt,Ht+128+4)}function Ra(be,ze,pt,Ht){var dr,Cr=Ye(16);for(dr=0;4>dr;++dr){var Re=be[ze+0+dr]+be[ze+12+dr],re=be[ze+4+dr]+be[ze+8+dr],xe=be[ze+4+dr]-be[ze+8+dr],Ge=be[ze+0+dr]-be[ze+12+dr];Cr[0+dr]=Re+re,Cr[8+dr]=Re-re,Cr[4+dr]=Ge+xe,Cr[12+dr]=Ge-xe}for(dr=0;4>dr;++dr)Re=(be=Cr[0+4*dr]+3)+Cr[3+4*dr],re=Cr[1+4*dr]+Cr[2+4*dr],xe=Cr[1+4*dr]-Cr[2+4*dr],Ge=be-Cr[3+4*dr],pt[Ht+0]=Re+re>>3,pt[Ht+16]=Ge+xe>>3,pt[Ht+32]=Re-re>>3,pt[Ht+48]=Ge-xe>>3,Ht+=64}function _a(be,ze,pt){var Ht,dr=ze-32,Cr=tl,Re=255-be[dr-1];for(Ht=0;Ht<pt;++Ht){var re,xe=Cr,Ge=Re+be[ze-1];for(re=0;re<pt;++re)be[ze+re]=xe[Ge+be[dr+re]];ze+=32}}function yo(be,ze){_a(be,ze,4)}function ao(be,ze){_a(be,ze,8)}function bo(be,ze){_a(be,ze,16)}function co(be,ze){var pt;for(pt=0;16>pt;++pt)He(be,ze+32*pt,be,ze-32,16)}function uo(be,ze){var pt;for(pt=16;0<pt;--pt)Je(be,ze,be[ze-1],16),ze+=32}function Ya(be,ze,pt){var Ht;for(Ht=0;16>Ht;++Ht)Je(ze,pt+32*Ht,be,16)}function eo(be,ze){var pt,Ht=16;for(pt=0;16>pt;++pt)Ht+=be[ze-1+32*pt]+be[ze+pt-32];Ya(Ht>>5,be,ze)}function wa(be,ze){var pt,Ht=8;for(pt=0;16>pt;++pt)Ht+=be[ze-1+32*pt];Ya(Ht>>4,be,ze)}function ro(be,ze){var pt,Ht=8;for(pt=0;16>pt;++pt)Ht+=be[ze+pt-32];Ya(Ht>>4,be,ze)}function fo(be,ze){Ya(128,be,ze)}function Bi(be,ze,pt){return be+2*ze+pt+2>>2}function Ma(be,ze){var pt,Ht=ze-32;for(Ht=new Uint8Array([Bi(be[Ht-1],be[Ht+0],be[Ht+1]),Bi(be[Ht+0],be[Ht+1],be[Ht+2]),Bi(be[Ht+1],be[Ht+2],be[Ht+3]),Bi(be[Ht+2],be[Ht+3],be[Ht+4])]),pt=0;4>pt;++pt)He(be,ze+32*pt,Ht,0,Ht.length)}function Do(be,ze){var pt=be[ze-1],Ht=be[ze-1+32],dr=be[ze-1+64],Cr=be[ze-1+96];Wi(be,ze+0,16843009*Bi(be[ze-1-32],pt,Ht)),Wi(be,ze+32,16843009*Bi(pt,Ht,dr)),Wi(be,ze+64,16843009*Bi(Ht,dr,Cr)),Wi(be,ze+96,16843009*Bi(dr,Cr,Cr))}function jo(be,ze){var pt,Ht=4;for(pt=0;4>pt;++pt)Ht+=be[ze+pt-32]+be[ze-1+32*pt];for(Ht>>=3,pt=0;4>pt;++pt)Je(be,ze+32*pt,Ht,4)}function Vo(be,ze){var pt=be[ze-1+0],Ht=be[ze-1+32],dr=be[ze-1+64],Cr=be[ze-1-32],Re=be[ze+0-32],re=be[ze+1-32],xe=be[ze+2-32],Ge=be[ze+3-32];be[ze+0+96]=Bi(Ht,dr,be[ze-1+96]),be[ze+1+96]=be[ze+0+64]=Bi(pt,Ht,dr),be[ze+2+96]=be[ze+1+64]=be[ze+0+32]=Bi(Cr,pt,Ht),be[ze+3+96]=be[ze+2+64]=be[ze+1+32]=be[ze+0+0]=Bi(Re,Cr,pt),be[ze+3+64]=be[ze+2+32]=be[ze+1+0]=Bi(re,Re,Cr),be[ze+3+32]=be[ze+2+0]=Bi(xe,re,Re),be[ze+3+0]=Bi(Ge,xe,re)}function Go(be,ze){var pt=be[ze+1-32],Ht=be[ze+2-32],dr=be[ze+3-32],Cr=be[ze+4-32],Re=be[ze+5-32],re=be[ze+6-32],xe=be[ze+7-32];be[ze+0+0]=Bi(be[ze+0-32],pt,Ht),be[ze+1+0]=be[ze+0+32]=Bi(pt,Ht,dr),be[ze+2+0]=be[ze+1+32]=be[ze+0+64]=Bi(Ht,dr,Cr),be[ze+3+0]=be[ze+2+32]=be[ze+1+64]=be[ze+0+96]=Bi(dr,Cr,Re),be[ze+3+32]=be[ze+2+64]=be[ze+1+96]=Bi(Cr,Re,re),be[ze+3+64]=be[ze+2+96]=Bi(Re,re,xe),be[ze+3+96]=Bi(re,xe,xe)}function wo(be,ze){var pt=be[ze-1+0],Ht=be[ze-1+32],dr=be[ze-1+64],Cr=be[ze-1-32],Re=be[ze+0-32],re=be[ze+1-32],xe=be[ze+2-32],Ge=be[ze+3-32];be[ze+0+0]=be[ze+1+64]=Cr+Re+1>>1,be[ze+1+0]=be[ze+2+64]=Re+re+1>>1,be[ze+2+0]=be[ze+3+64]=re+xe+1>>1,be[ze+3+0]=xe+Ge+1>>1,be[ze+0+96]=Bi(dr,Ht,pt),be[ze+0+64]=Bi(Ht,pt,Cr),be[ze+0+32]=be[ze+1+96]=Bi(pt,Cr,Re),be[ze+1+32]=be[ze+2+96]=Bi(Cr,Re,re),be[ze+2+32]=be[ze+3+96]=Bi(Re,re,xe),be[ze+3+32]=Bi(re,xe,Ge)}function Ia(be,ze){var pt=be[ze+0-32],Ht=be[ze+1-32],dr=be[ze+2-32],Cr=be[ze+3-32],Re=be[ze+4-32],re=be[ze+5-32],xe=be[ze+6-32],Ge=be[ze+7-32];be[ze+0+0]=pt+Ht+1>>1,be[ze+1+0]=be[ze+0+64]=Ht+dr+1>>1,be[ze+2+0]=be[ze+1+64]=dr+Cr+1>>1,be[ze+3+0]=be[ze+2+64]=Cr+Re+1>>1,be[ze+0+32]=Bi(pt,Ht,dr),be[ze+1+32]=be[ze+0+96]=Bi(Ht,dr,Cr),be[ze+2+32]=be[ze+1+96]=Bi(dr,Cr,Re),be[ze+3+32]=be[ze+2+96]=Bi(Cr,Re,re),be[ze+3+64]=Bi(Re,re,xe),be[ze+3+96]=Bi(re,xe,Ge)}function Po(be,ze){var pt=be[ze-1+0],Ht=be[ze-1+32],dr=be[ze-1+64],Cr=be[ze-1+96];be[ze+0+0]=pt+Ht+1>>1,be[ze+2+0]=be[ze+0+32]=Ht+dr+1>>1,be[ze+2+32]=be[ze+0+64]=dr+Cr+1>>1,be[ze+1+0]=Bi(pt,Ht,dr),be[ze+3+0]=be[ze+1+32]=Bi(Ht,dr,Cr),be[ze+3+32]=be[ze+1+64]=Bi(dr,Cr,Cr),be[ze+3+64]=be[ze+2+64]=be[ze+0+96]=be[ze+1+96]=be[ze+2+96]=be[ze+3+96]=Cr}function ds(be,ze){var pt=be[ze-1+0],Ht=be[ze-1+32],dr=be[ze-1+64],Cr=be[ze-1+96],Re=be[ze-1-32],re=be[ze+0-32],xe=be[ze+1-32],Ge=be[ze+2-32];be[ze+0+0]=be[ze+2+32]=pt+Re+1>>1,be[ze+0+32]=be[ze+2+64]=Ht+pt+1>>1,be[ze+0+64]=be[ze+2+96]=dr+Ht+1>>1,be[ze+0+96]=Cr+dr+1>>1,be[ze+3+0]=Bi(re,xe,Ge),be[ze+2+0]=Bi(Re,re,xe),be[ze+1+0]=be[ze+3+32]=Bi(pt,Re,re),be[ze+1+32]=be[ze+3+64]=Bi(Ht,pt,Re),be[ze+1+64]=be[ze+3+96]=Bi(dr,Ht,pt),be[ze+1+96]=Bi(Cr,dr,Ht)}function ho(be,ze){var pt;for(pt=0;8>pt;++pt)He(be,ze+32*pt,be,ze-32,8)}function Oo(be,ze){var pt;for(pt=0;8>pt;++pt)Je(be,ze,be[ze-1],8),ze+=32}function Ka(be,ze,pt){var Ht;for(Ht=0;8>Ht;++Ht)Je(ze,pt+32*Ht,be,8)}function Xo(be,ze){var pt,Ht=8;for(pt=0;8>pt;++pt)Ht+=be[ze+pt-32]+be[ze-1+32*pt];Ka(Ht>>4,be,ze)}function nl(be,ze){var pt,Ht=4;for(pt=0;8>pt;++pt)Ht+=be[ze+pt-32];Ka(Ht>>3,be,ze)}function Cs(be,ze){var pt,Ht=4;for(pt=0;8>pt;++pt)Ht+=be[ze-1+32*pt];Ka(Ht>>3,be,ze)}function _s(be,ze){Ka(128,be,ze)}function xs(be,ze,pt){var Ht=be[ze-pt],dr=be[ze+0],Cr=3*(dr-Ht)+Hl[1020+be[ze-2*pt]-be[ze+pt]],Re=zs[112+(Cr+4>>3)];be[ze-pt]=tl[255+Ht+zs[112+(Cr+3>>3)]],be[ze+0]=tl[255+dr-Re]}function ps(be,ze,pt,Ht){var dr=be[ze+0],Cr=be[ze+pt];return ll[255+be[ze-2*pt]-be[ze-pt]]>Ht||ll[255+Cr-dr]>Ht}function Os(be,ze,pt,Ht){return 4*ll[255+be[ze-pt]-be[ze+0]]+ll[255+be[ze-2*pt]-be[ze+pt]]<=Ht}function Ho(be,ze,pt,Ht,dr){var Cr=be[ze-3*pt],Re=be[ze-2*pt],re=be[ze-pt],xe=be[ze+0],Ge=be[ze+pt],ot=be[ze+2*pt],Ct=be[ze+3*pt];return 4*ll[255+re-xe]+ll[255+Re-Ge]>Ht?0:ll[255+be[ze-4*pt]-Cr]<=dr&&ll[255+Cr-Re]<=dr&&ll[255+Re-re]<=dr&&ll[255+Ct-ot]<=dr&&ll[255+ot-Ge]<=dr&&ll[255+Ge-xe]<=dr}function mo(be,ze,pt,Ht){var dr=2*Ht+1;for(Ht=0;16>Ht;++Ht)Os(be,ze+Ht,pt,dr)&&xs(be,ze+Ht,pt)}function es(be,ze,pt,Ht){var dr=2*Ht+1;for(Ht=0;16>Ht;++Ht)Os(be,ze+Ht*pt,1,dr)&&xs(be,ze+Ht*pt,1)}function Ko(be,ze,pt,Ht){var dr;for(dr=3;0<dr;--dr)mo(be,ze+=4*pt,pt,Ht)}function Bo(be,ze,pt,Ht){var dr;for(dr=3;0<dr;--dr)es(be,ze+=4,pt,Ht)}function zr(be,ze,pt,Ht,dr,Cr,Re,re){for(Cr=2*Cr+1;0<dr--;){if(Ho(be,ze,pt,Cr,Re))if(ps(be,ze,pt,re))xs(be,ze,pt);else{var xe=be,Ge=ze,ot=pt,Ct=xe[Ge-2*ot],_t=xe[Ge-ot],Dt=xe[Ge+0],vr=xe[Ge+ot],Lr=xe[Ge+2*ot],mr=27*(Tr=Hl[1020+3*(Dt-_t)+Hl[1020+Ct-vr]])+63>>7,ur=18*Tr+63>>7,Tr=9*Tr+63>>7;xe[Ge-3*ot]=tl[255+xe[Ge-3*ot]+Tr],xe[Ge-2*ot]=tl[255+Ct+ur],xe[Ge-ot]=tl[255+_t+mr],xe[Ge+0]=tl[255+Dt-mr],xe[Ge+ot]=tl[255+vr-ur],xe[Ge+2*ot]=tl[255+Lr-Tr]}ze+=Ht}}function Yo(be,ze,pt,Ht,dr,Cr,Re,re){for(Cr=2*Cr+1;0<dr--;){if(Ho(be,ze,pt,Cr,Re))if(ps(be,ze,pt,re))xs(be,ze,pt);else{var xe=be,Ge=ze,ot=pt,Ct=xe[Ge-ot],_t=xe[Ge+0],Dt=xe[Ge+ot],vr=zs[112+((Lr=3*(_t-Ct))+4>>3)],Lr=zs[112+(Lr+3>>3)],mr=vr+1>>1;xe[Ge-2*ot]=tl[255+xe[Ge-2*ot]+mr],xe[Ge-ot]=tl[255+Ct+Lr],xe[Ge+0]=tl[255+_t-vr],xe[Ge+ot]=tl[255+Dt-mr]}ze+=Ht}}function il(be,ze,pt,Ht,dr,Cr){zr(be,ze,pt,1,16,Ht,dr,Cr)}function Ks(be,ze,pt,Ht,dr,Cr){zr(be,ze,1,pt,16,Ht,dr,Cr)}function Ps(be,ze,pt,Ht,dr,Cr){var Re;for(Re=3;0<Re;--Re)Yo(be,ze+=4*pt,pt,1,16,Ht,dr,Cr)}function no(be,ze,pt,Ht,dr,Cr){var Re;for(Re=3;0<Re;--Re)Yo(be,ze+=4,1,pt,16,Ht,dr,Cr)}function vo(be,ze,pt,Ht,dr,Cr,Re,re){zr(be,ze,dr,1,8,Cr,Re,re),zr(pt,Ht,dr,1,8,Cr,Re,re)}function Fo(be,ze,pt,Ht,dr,Cr,Re,re){zr(be,ze,1,dr,8,Cr,Re,re),zr(pt,Ht,1,dr,8,Cr,Re,re)}function ns(be,ze,pt,Ht,dr,Cr,Re,re){Yo(be,ze+4*dr,dr,1,8,Cr,Re,re),Yo(pt,Ht+4*dr,dr,1,8,Cr,Re,re)}function ys(be,ze,pt,Ht,dr,Cr,Re,re){Yo(be,ze+4,1,dr,8,Cr,Re,re),Yo(pt,Ht+4,1,dr,8,Cr,Re,re)}function ms(){this.ba=new ni,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new li,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Is(){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 ol(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ls(){this.ua=0,this.Wa=new _i,this.vb=new _i,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ui,this.yc=new xn}function Xs(){this.xb=this.a=0,this.l=new La,this.ca=new ni,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Ur,this.Pb=0,this.wd=new Ur,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ls,this.ab=0,this.gc=et(4,ol),this.Oc=0}function Bs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new La,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function gs(be,ze,pt,Ht,dr,Cr,Re){for(be=be==null?0:be[ze+0],ze=0;ze<Re;++ze)dr[Cr+ze]=be+pt[Ht+ze]&255,be=dr[Cr+ze]}function Ns(be,ze,pt,Ht,dr,Cr,Re){var re;if(be==null)gs(null,null,pt,Ht,dr,Cr,Re);else for(re=0;re<Re;++re)dr[Cr+re]=be[ze+re]+pt[Ht+re]&255}function Tt(be,ze,pt,Ht,dr,Cr,Re){if(be==null)gs(null,null,pt,Ht,dr,Cr,Re);else{var re,xe=be[ze+0],Ge=xe,ot=xe;for(re=0;re<Re;++re)Ge=ot+(xe=be[ze+re])-Ge,ot=pt[Ht+re]+(-256&Ge?0>Ge?0:255:Ge)&255,Ge=xe,dr[Cr+re]=ot}}function Rt(be,ze,pt,Ht){var dr=ze.width,Cr=ze.o;if(_e(be!=null&&ze!=null),0>pt||0>=Ht||pt+Ht>Cr)return null;if(!be.Cc){if(be.ga==null){var Re;if(be.ga=new Bs,(Re=be.ga==null)||(Re=ze.width*ze.o,_e(be.Gb.length==0),be.Gb=Ye(Re),be.Uc=0,be.Gb==null?Re=0:(be.mb=be.Gb,be.nb=be.Uc,be.rc=null,Re=1),Re=!Re),!Re){Re=be.ga;var re=be.Fa,xe=be.P,Ge=be.qc,ot=be.mb,Ct=be.nb,_t=xe+1,Dt=Ge-1,vr=Re.l;if(_e(re!=null&&ot!=null&&ze!=null),bl[0]=null,bl[1]=gs,bl[2]=Ns,bl[3]=Tt,Re.ca=ot,Re.tb=Ct,Re.c=ze.width,Re.i=ze.height,_e(0<Re.c&&0<Re.i),1>=Ge)ze=0;else if(Re.$a=re[xe+0]>>0&3,Re.Z=re[xe+0]>>2&3,Re.Lc=re[xe+0]>>4&3,xe=re[xe+0]>>6&3,0>Re.$a||1<Re.$a||4<=Re.Z||1<Re.Lc||xe)ze=0;else if(vr.put=Li,vr.ac=mi,vr.bc=Wn,vr.ma=Re,vr.width=ze.width,vr.height=ze.height,vr.Da=ze.Da,vr.v=ze.v,vr.va=ze.va,vr.j=ze.j,vr.o=ze.o,Re.$a)e:{_e(Re.$a==1),ze=yn();t:for(;;){if(ze==null){ze=0;break e}if(_e(Re!=null),Re.mc=ze,ze.c=Re.c,ze.i=Re.i,ze.l=Re.l,ze.l.ma=Re,ze.l.width=Re.c,ze.l.height=Re.i,ze.a=0,Hi(ze.m,re,_t,Dt),!Fn(Re.c,Re.i,1,ze,null))break t;if(ze.ab==1&&ze.gc[0].hc==3&&Zt(ze.s)?(Re.ic=1,re=ze.c*ze.i,ze.Ta=null,ze.Ua=0,ze.V=Ye(re),ze.Ba=0,ze.V==null?(ze.a=1,ze=0):ze=1):(Re.ic=0,ze=Xn(ze,Re.c)),!ze)break t;ze=1;break e}Re.mc=null,ze=0}else ze=Dt>=Re.c*Re.i;Re=!ze}if(Re)return null;be.ga.Lc!=1?be.Ga=0:Ht=Cr-pt}_e(be.ga!=null),_e(pt+Ht<=Cr);e:{if(ze=(re=be.ga).c,Cr=re.l.o,re.$a==0){if(_t=be.rc,Dt=be.Vc,vr=be.Fa,xe=be.P+1+pt*ze,Ge=be.mb,ot=be.nb+pt*ze,_e(xe<=be.P+be.qc),re.Z!=0)for(_e(bl[re.Z]!=null),Re=0;Re<Ht;++Re)bl[re.Z](_t,Dt,vr,xe,Ge,ot,ze),_t=Ge,Dt=ot,ot+=ze,xe+=ze;else for(Re=0;Re<Ht;++Re)He(Ge,ot,vr,xe,ze),_t=Ge,Dt=ot,ot+=ze,xe+=ze;be.rc=_t,be.Vc=Dt}else{if(_e(re.mc!=null),ze=pt+Ht,_e((Re=re.mc)!=null),_e(ze<=Re.i),Re.C>=ze)ze=1;else if(re.ic||ye(),re.ic){re=Re.V,_t=Re.Ba,Dt=Re.c;var Lr=Re.i,mr=(vr=1,xe=Re.$/Dt,Ge=Re.$%Dt,ot=Re.m,Ct=Re.s,Re.$),ur=Dt*Lr,Tr=Dt*ze,kr=Ct.wc,an=mr<Tr?Ir(Ct,Ge,xe):null;_e(mr<=ur),_e(ze<=Lr),_e(Zt(Ct));t:for(;;){for(;!ot.h&&mr<Tr;){if(Ge&kr||(an=Ir(Ct,Ge,xe)),_e(an!=null),$n(ot),256>(Lr=Mr(an.G[0],an.H[0],ot)))re[_t+mr]=Lr,++mr,++Ge>=Dt&&(Ge=0,++xe<=ze&&!(xe%16)&&Kr(Re,xe));else{if(!(280>Lr)){vr=0;break t}Lr=zi(Lr-256,ot);var jn,Vn=Mr(an.G[4],an.H[4],ot);if($n(ot),!(mr>=(Vn=yr(Dt,Vn=zi(Vn,ot)))&&ur-mr>=Lr)){vr=0;break t}for(jn=0;jn<Lr;++jn)re[_t+mr+jn]=re[_t+mr+jn-Vn];for(mr+=Lr,Ge+=Lr;Ge>=Dt;)Ge-=Dt,++xe<=ze&&!(xe%16)&&Kr(Re,xe);mr<Tr&&Ge&kr&&(an=Ir(Ct,Ge,xe))}_e(ot.h==Mn(ot))}Kr(Re,xe>ze?ze:xe);break t}!vr||ot.h&&mr<ur?(vr=0,Re.a=ot.h?5:3):Re.$=mr,ze=vr}else ze=pn(Re,Re.V,Re.Ba,Re.c,Re.i,ze,Jn);if(!ze){Ht=0;break e}}pt+Ht>=Cr&&(be.Cc=1),Ht=1}if(!Ht)return null;if(be.Cc&&((Ht=be.ga)!=null&&(Ht.mc=null),be.ga=null,0<be.Ga))return alert("todo:WebPDequantizeLevels"),null}return be.nb+pt*dr}function rn(be,ze,pt,Ht,dr,Cr){for(;0<dr--;){var Re,re=be,xe=ze+(pt?1:0),Ge=be,ot=ze+(pt?0:3);for(Re=0;Re<Ht;++Re){var Ct=Ge[ot+4*Re];Ct!=255&&(Ct*=32897,re[xe+4*Re+0]=re[xe+4*Re+0]*Ct>>23,re[xe+4*Re+1]=re[xe+4*Re+1]*Ct>>23,re[xe+4*Re+2]=re[xe+4*Re+2]*Ct>>23)}ze+=Cr}}function On(be,ze,pt,Ht,dr){for(;0<Ht--;){var Cr;for(Cr=0;Cr<pt;++Cr){var Re=be[ze+2*Cr+0],re=15&(Ge=be[ze+2*Cr+1]),xe=4369*re,Ge=(240&Ge|Ge>>4)*xe>>16;be[ze+2*Cr+0]=(240&Re|Re>>4)*xe>>16&240|(15&Re|Re<<4)*xe>>16>>4&15,be[ze+2*Cr+1]=240&Ge|re}ze+=dr}}function vt(be,ze,pt,Ht,dr,Cr,Re,re){var xe,Ge,ot=255;for(Ge=0;Ge<dr;++Ge){for(xe=0;xe<Ht;++xe){var Ct=be[ze+xe];Cr[Re+4*xe]=Ct,ot&=Ct}ze+=pt,Re+=re}return ot!=255}function se(be,ze,pt,Ht,dr){var Cr;for(Cr=0;Cr<dr;++Cr)pt[Ht+Cr]=be[ze+Cr]>>8}function ye(){xl=rn,Bl=On,el=vt,_l=se}function Se(be,ze,pt){kn[be]=function(Ht,dr,Cr,Re,re,xe,Ge,ot,Ct,_t,Dt,vr,Lr,mr,ur,Tr,kr){var an,jn=kr-1>>1,Vn=re[xe+0]|Ge[ot+0]<<16,Ei=Ct[_t+0]|Dt[vr+0]<<16;_e(Ht!=null);var di=3*Vn+Ei+131074>>2;for(ze(Ht[dr+0],255&di,di>>16,Lr,mr),Cr!=null&&(di=3*Ei+Vn+131074>>2,ze(Cr[Re+0],255&di,di>>16,ur,Tr)),an=1;an<=jn;++an){var ua=re[xe+an]|Ge[ot+an]<<16,ji=Ct[_t+an]|Dt[vr+an]<<16,Ca=Vn+ua+Ei+ji+524296,ha=Ca+2*(ua+Ei)>>3;di=ha+Vn>>1,Vn=(Ca=Ca+2*(Vn+ji)>>3)+ua>>1,ze(Ht[dr+2*an-1],255&di,di>>16,Lr,mr+(2*an-1)*pt),ze(Ht[dr+2*an-0],255&Vn,Vn>>16,Lr,mr+(2*an-0)*pt),Cr!=null&&(di=Ca+Ei>>1,Vn=ha+ji>>1,ze(Cr[Re+2*an-1],255&di,di>>16,ur,Tr+(2*an-1)*pt),ze(Cr[Re+2*an+0],255&Vn,Vn>>16,ur,Tr+(2*an+0)*pt)),Vn=ua,Ei=ji}1&kr||(di=3*Vn+Ei+131074>>2,ze(Ht[dr+kr-1],255&di,di>>16,Lr,mr+(kr-1)*pt),Cr!=null&&(di=3*Ei+Vn+131074>>2,ze(Cr[Re+kr-1],255&di,di>>16,ur,Tr+(kr-1)*pt)))}}function Ue(){cl[Fl]=fc,cl[oc]=Wc,cl[sc]=pc,cl[Ql]=Oc,cl[Vs]=Lc,cl[lc]=zc,cl[cc]=Vl,cl[Cc]=Wc,cl[Al]=Oc,cl[Ll]=Lc,cl[Kl]=zc}function ht(be){return be&~Vc?0>be?0:255:be>>mc}function Nt(be,ze){return ht((19077*be>>8)+(26149*ze>>8)-14234)}function br(be,ze,pt){return ht((19077*be>>8)-(6419*ze>>8)-(13320*pt>>8)+8708)}function Or(be,ze){return ht((19077*be>>8)+(33050*ze>>8)-17685)}function Zr(be,ze,pt,Ht,dr){Ht[dr+0]=Nt(be,pt),Ht[dr+1]=br(be,ze,pt),Ht[dr+2]=Or(be,ze)}function Tn(be,ze,pt,Ht,dr){Ht[dr+0]=Or(be,ze),Ht[dr+1]=br(be,ze,pt),Ht[dr+2]=Nt(be,pt)}function Hn(be,ze,pt,Ht,dr){var Cr=br(be,ze,pt);ze=Cr<<3&224|Or(be,ze)>>3,Ht[dr+0]=248&Nt(be,pt)|Cr>>5,Ht[dr+1]=ze}function si(be,ze,pt,Ht,dr){var Cr=240&Or(be,ze)|15;Ht[dr+0]=240&Nt(be,pt)|br(be,ze,pt)>>4,Ht[dr+1]=Cr}function xi(be,ze,pt,Ht,dr){Ht[dr+0]=255,Zr(be,ze,pt,Ht,dr+1)}function Ri(be,ze,pt,Ht,dr){Tn(be,ze,pt,Ht,dr),Ht[dr+3]=255}function sa(be,ze,pt,Ht,dr){Zr(be,ze,pt,Ht,dr),Ht[dr+3]=255}function Gi(be,ze){return 0>be?0:be>ze?ze:be}function ya(be,ze,pt){kn[be]=function(Ht,dr,Cr,Re,re,xe,Ge,ot,Ct){for(var _t=ot+(-2&Ct)*pt;ot!=_t;)ze(Ht[dr+0],Cr[Re+0],re[xe+0],Ge,ot),ze(Ht[dr+1],Cr[Re+0],re[xe+0],Ge,ot+pt),dr+=2,++Re,++xe,ot+=2*pt;1&Ct&&ze(Ht[dr+0],Cr[Re+0],re[xe+0],Ge,ot)}}function Ja(be,ze,pt){return pt==0?be==0?ze==0?6:5:ze==0?4:0:pt}function $a(be,ze,pt,Ht,dr){switch(be>>>30){case 3:$s(ze,pt,Ht,dr,0);break;case 2:Ys(ze,pt,Ht,dr);break;case 1:Ga(ze,pt,Ht,dr)}}function to(be,ze){var pt,Ht,dr=ze.M,Cr=ze.Nb,Re=be.oc,re=be.pc+40,xe=be.oc,Ge=be.pc+584,ot=be.oc,Ct=be.pc+600;for(pt=0;16>pt;++pt)Re[re+32*pt-1]=129;for(pt=0;8>pt;++pt)xe[Ge+32*pt-1]=129,ot[Ct+32*pt-1]=129;for(0<dr?Re[re-1-32]=xe[Ge-1-32]=ot[Ct-1-32]=129:(Je(Re,re-32-1,127,21),Je(xe,Ge-32-1,127,9),Je(ot,Ct-32-1,127,9)),Ht=0;Ht<be.za;++Ht){var _t=ze.ya[ze.aa+Ht];if(0<Ht){for(pt=-1;16>pt;++pt)He(Re,re+32*pt-4,Re,re+32*pt+12,4);for(pt=-1;8>pt;++pt)He(xe,Ge+32*pt-4,xe,Ge+32*pt+4,4),He(ot,Ct+32*pt-4,ot,Ct+32*pt+4,4)}var Dt=be.Gd,vr=be.Hd+Ht,Lr=_t.ad,mr=_t.Hc;if(0<dr&&(He(Re,re-32,Dt[vr].y,0,16),He(xe,Ge-32,Dt[vr].f,0,8),He(ot,Ct-32,Dt[vr].ea,0,8)),_t.Za){var ur=Re,Tr=re-32+16;for(0<dr&&(Ht>=be.za-1?Je(ur,Tr,Dt[vr].y[15],4):He(ur,Tr,Dt[vr+1].y,0,4)),pt=0;4>pt;pt++)ur[Tr+128+pt]=ur[Tr+256+pt]=ur[Tr+384+pt]=ur[Tr+0+pt];for(pt=0;16>pt;++pt,mr<<=2)ur=Re,Tr=re+gc[pt],fl[_t.Ob[pt]](ur,Tr),$a(mr,Lr,16*+pt,ur,Tr)}else if(ur=Ja(Ht,dr,_t.Ob[0]),hl[ur](Re,re),mr!=0)for(pt=0;16>pt;++pt,mr<<=2)$a(mr,Lr,16*+pt,Re,re+gc[pt]);for(pt=_t.Gc,ur=Ja(Ht,dr,_t.Dd),Tl[ur](xe,Ge),Tl[ur](ot,Ct),mr=Lr,ur=xe,Tr=Ge,255&(_t=pt>>0)&&(170&_t?js(mr,256,ur,Tr):ga(mr,256,ur,Tr)),_t=ot,mr=Ct,255&(pt>>=8)&&(170&pt?js(Lr,320,_t,mr):ga(Lr,320,_t,mr)),dr<be.Ub-1&&(He(Dt[vr].y,0,Re,re+480,16),He(Dt[vr].f,0,xe,Ge+224,8),He(Dt[vr].ea,0,ot,Ct+224,8)),pt=8*Cr*be.B,Dt=be.sa,vr=be.ta+16*Ht+16*Cr*be.R,Lr=be.qa,_t=be.ra+8*Ht+pt,mr=be.Ha,ur=be.Ia+8*Ht+pt,pt=0;16>pt;++pt)He(Dt,vr+pt*be.R,Re,re+32*pt,16);for(pt=0;8>pt;++pt)He(Lr,_t+pt*be.B,xe,Ge+32*pt,8),He(mr,ur+pt*be.B,ot,Ct+32*pt,8)}}function _o(be,ze,pt,Ht,dr,Cr,Re,re,xe){var Ge=[0],ot=[0],Ct=0,_t=xe!=null?xe.kd:0,Dt=xe!=null?xe:new Is;if(be==null||12>pt)return 7;Dt.data=be,Dt.w=ze,Dt.ha=pt,ze=[ze],pt=[pt],Dt.gb=[Dt.gb];e:{var vr=ze,Lr=pt,mr=Dt.gb;if(_e(be!=null),_e(Lr!=null),_e(mr!=null),mr[0]=0,12<=Lr[0]&&!Be(be,vr[0],"RIFF")){if(Be(be,vr[0]+8,"WEBP")){mr=3;break e}var ur=Ha(be,vr[0]+4);if(12>ur||4294967286<ur){mr=3;break e}if(_t&&ur>Lr[0]-8){mr=7;break e}mr[0]=ur,vr[0]+=12,Lr[0]-=12}mr=0}if(mr!=0)return mr;for(ur=0<Dt.gb[0],pt=pt[0];;){e:{var Tr=be;Lr=ze,mr=pt;var kr=Ge,an=ot,jn=vr=[0];if((di=Ct=[Ct])[0]=0,8>mr[0])mr=7;else{if(!Be(Tr,Lr[0],"VP8X")){if(Ha(Tr,Lr[0]+4)!=10){mr=3;break e}if(18>mr[0]){mr=7;break e}var Vn=Ha(Tr,Lr[0]+8),Ei=1+$i(Tr,Lr[0]+12);if(2147483648<=Ei*(Tr=1+$i(Tr,Lr[0]+15))){mr=3;break e}jn!=null&&(jn[0]=Vn),kr!=null&&(kr[0]=Ei),an!=null&&(an[0]=Tr),Lr[0]+=18,mr[0]-=18,di[0]=1}mr=0}}if(Ct=Ct[0],vr=vr[0],mr!=0)return mr;if(Lr=!!(2&vr),!ur&&Ct)return 3;if(Cr!=null&&(Cr[0]=!!(16&vr)),Re!=null&&(Re[0]=Lr),re!=null&&(re[0]=0),Re=Ge[0],vr=ot[0],Ct&&Lr&&xe==null){mr=0;break}if(4>pt){mr=7;break}if(ur&&Ct||!ur&&!Ct&&!Be(be,ze[0],"ALPH")){pt=[pt],Dt.na=[Dt.na],Dt.P=[Dt.P],Dt.Sa=[Dt.Sa];e:{Vn=be,mr=ze,ur=pt;var di=Dt.gb;kr=Dt.na,an=Dt.P,jn=Dt.Sa,Ei=22,_e(Vn!=null),_e(ur!=null),Tr=mr[0];var ua=ur[0];for(_e(kr!=null),_e(jn!=null),kr[0]=null,an[0]=null,jn[0]=0;;){if(mr[0]=Tr,ur[0]=ua,8>ua){mr=7;break e}var ji=Ha(Vn,Tr+4);if(4294967286<ji){mr=3;break e}var Ca=8+ji+1&-2;if(Ei+=Ca,0<di&&Ei>di){mr=3;break e}if(!Be(Vn,Tr,"VP8 ")||!Be(Vn,Tr,"VP8L")){mr=0;break e}if(ua[0]<Ca){mr=7;break e}Be(Vn,Tr,"ALPH")||(kr[0]=Vn,an[0]=Tr+8,jn[0]=ji),Tr+=Ca,ua-=Ca}}if(pt=pt[0],Dt.na=Dt.na[0],Dt.P=Dt.P[0],Dt.Sa=Dt.Sa[0],mr!=0)break}pt=[pt],Dt.Ja=[Dt.Ja],Dt.xa=[Dt.xa];e:if(di=be,mr=ze,ur=pt,kr=Dt.gb[0],an=Dt.Ja,jn=Dt.xa,Vn=mr[0],Tr=!Be(di,Vn,"VP8 "),Ei=!Be(di,Vn,"VP8L"),_e(di!=null),_e(ur!=null),_e(an!=null),_e(jn!=null),8>ur[0])mr=7;else{if(Tr||Ei){if(di=Ha(di,Vn+4),12<=kr&&di>kr-12){mr=3;break e}if(_t&&di>ur[0]-8){mr=7;break e}an[0]=di,mr[0]+=8,ur[0]-=8,jn[0]=Ei}else jn[0]=5<=ur[0]&&di[Vn+0]==47&&!(di[Vn+4]>>5),an[0]=ur[0];mr=0}if(pt=pt[0],Dt.Ja=Dt.Ja[0],Dt.xa=Dt.xa[0],ze=ze[0],mr!=0)break;if(4294967286<Dt.Ja)return 3;if(re==null||Lr||(re[0]=Dt.xa?2:1),Re=[Re],vr=[vr],Dt.xa){if(5>pt){mr=7;break}re=Re,_t=vr,Lr=Cr,be==null||5>pt?be=0:5<=pt&&be[ze+0]==47&&!(be[ze+4]>>5)?(ur=[0],di=[0],kr=[0],Hi(an=new Ur,be,ze,pt),Di(an,ur,di,kr)?(re!=null&&(re[0]=ur[0]),_t!=null&&(_t[0]=di[0]),Lr!=null&&(Lr[0]=kr[0]),be=1):be=0):be=0}else{if(10>pt){mr=7;break}re=vr,be==null||10>pt||!Sa(be,ze+3,pt-3)?be=0:(_t=be[ze+0]|be[ze+1]<<8|be[ze+2]<<16,Lr=16383&(be[ze+7]<<8|be[ze+6]),be=16383&(be[ze+9]<<8|be[ze+8]),1&_t||3<(_t>>1&7)||!(_t>>4&1)||_t>>5>=Dt.Ja||!Lr||!be?be=0:(Re&&(Re[0]=Lr),re&&(re[0]=be),be=1))}if(!be)return 3;if(Re=Re[0],vr=vr[0],Ct&&(Ge[0]!=Re||ot[0]!=vr))return 3;xe!=null&&(xe[0]=Dt,xe.offset=ze-xe.w,_e(4294967286>ze-xe.w),_e(xe.offset==xe.ha-pt));break}return mr==0||mr==7&&Ct&&xe==null?(Cr!=null&&(Cr[0]|=Dt.na!=null&&0<Dt.na.length),Ht!=null&&(Ht[0]=Re),dr!=null&&(dr[0]=vr),0):mr}function To(be,ze,pt){var Ht=ze.width,dr=ze.height,Cr=0,Re=0,re=Ht,xe=dr;if(ze.Da=be!=null&&0<be.Da,ze.Da&&(re=be.cd,xe=be.bd,Cr=be.v,Re=be.j,11>pt||(Cr&=-2,Re&=-2),0>Cr||0>Re||0>=re||0>=xe||Cr+re>Ht||Re+xe>dr))return 0;if(ze.v=Cr,ze.j=Re,ze.va=Cr+re,ze.o=Re+xe,ze.U=re,ze.T=xe,ze.da=be!=null&&0<be.da,ze.da){if(!Ji(re,xe,pt=[be.ib],Cr=[be.hb]))return 0;ze.ib=pt[0],ze.hb=Cr[0]}return ze.ob=be!=null&&be.ob,ze.Kb=be==null||!be.Sd,ze.da&&(ze.ob=ze.ib<3*Ht/4&&ze.hb<3*dr/4,ze.Kb=0),1}function Ro(be){if(be==null)return 2;if(11>be.S){var ze=be.f.RGBA;ze.fb+=(be.height-1)*ze.A,ze.A=-ze.A}else ze=be.f.kb,be=be.height,ze.O+=(be-1)*ze.fa,ze.fa=-ze.fa,ze.N+=(be-1>>1)*ze.Ab,ze.Ab=-ze.Ab,ze.W+=(be-1>>1)*ze.Db,ze.Db=-ze.Db,ze.F!=null&&(ze.J+=(be-1)*ze.lb,ze.lb=-ze.lb);return 0}function go(be,ze,pt,Ht){if(Ht==null||0>=be||0>=ze)return 2;if(pt!=null){if(pt.Da){var dr=pt.cd,Cr=pt.bd,Re=-2&pt.v,re=-2&pt.j;if(0>Re||0>re||0>=dr||0>=Cr||Re+dr>be||re+Cr>ze)return 2;be=dr,ze=Cr}if(pt.da){if(!Ji(be,ze,dr=[pt.ib],Cr=[pt.hb]))return 2;be=dr[0],ze=Cr[0]}}Ht.width=be,Ht.height=ze;e:{var xe=Ht.width,Ge=Ht.height;if(be=Ht.S,0>=xe||0>=Ge||!(be>=Fl&&13>be))be=2;else{if(0>=Ht.Rd&&Ht.sd==null){Re=Cr=dr=ze=0;var ot=(re=xe*tc[be])*Ge;if(11>be||(Cr=(Ge+1)/2*(ze=(xe+1)/2),be==12&&(Re=(dr=xe)*Ge)),(Ge=Ye(ot+2*Cr+Re))==null){be=1;break e}Ht.sd=Ge,11>be?((xe=Ht.f.RGBA).eb=Ge,xe.fb=0,xe.A=re,xe.size=ot):((xe=Ht.f.kb).y=Ge,xe.O=0,xe.fa=re,xe.Fd=ot,xe.f=Ge,xe.N=0+ot,xe.Ab=ze,xe.Cd=Cr,xe.ea=Ge,xe.W=0+ot+Cr,xe.Db=ze,xe.Ed=Cr,be==12&&(xe.F=Ge,xe.J=0+ot+2*Cr),xe.Tc=Re,xe.lb=dr)}if(ze=1,dr=Ht.S,Cr=Ht.width,Re=Ht.height,dr>=Fl&&13>dr)if(11>dr)be=Ht.f.RGBA,ze&=(re=Math.abs(be.A))*(Re-1)+Cr<=be.size,ze&=re>=Cr*tc[dr],ze&=be.eb!=null;else{be=Ht.f.kb,re=(Cr+1)/2,ot=(Re+1)/2,xe=Math.abs(be.fa),Ge=Math.abs(be.Ab);var Ct=Math.abs(be.Db),_t=Math.abs(be.lb),Dt=_t*(Re-1)+Cr;ze&=xe*(Re-1)+Cr<=be.Fd,ze&=Ge*(ot-1)+re<=be.Cd,ze=(ze&=Ct*(ot-1)+re<=be.Ed)&xe>=Cr&Ge>=re&Ct>=re,ze&=be.y!=null,ze&=be.f!=null,ze&=be.ea!=null,dr==12&&(ze&=_t>=Cr,ze&=Dt<=be.Tc,ze&=be.F!=null)}else ze=0;be=ze?0:2}}return be!=0||pt!=null&&pt.fd&&(be=Ro(Ht)),be}var So=64,is=[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,Co=32,Yi=8,Ds=[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];Vt("Predictor0","PredictorAdd0"),kn.Predictor0=function(){return 4278190080},kn.Predictor1=function(be){return be},kn.Predictor2=function(be,ze,pt){return ze[pt+0]},kn.Predictor3=function(be,ze,pt){return ze[pt+1]},kn.Predictor4=function(be,ze,pt){return ze[pt-1]},kn.Predictor5=function(be,ze,pt){return nn(nn(be,ze[pt+1]),ze[pt+0])},kn.Predictor6=function(be,ze,pt){return nn(be,ze[pt-1])},kn.Predictor7=function(be,ze,pt){return nn(be,ze[pt+0])},kn.Predictor8=function(be,ze,pt){return nn(ze[pt-1],ze[pt+0])},kn.Predictor9=function(be,ze,pt){return nn(ze[pt+0],ze[pt+1])},kn.Predictor10=function(be,ze,pt){return nn(nn(be,ze[pt-1]),nn(ze[pt+0],ze[pt+1]))},kn.Predictor11=function(be,ze,pt){var Ht=ze[pt+0];return 0>=Lt(Ht>>24&255,be>>24&255,(ze=ze[pt-1])>>24&255)+Lt(Ht>>16&255,be>>16&255,ze>>16&255)+Lt(Ht>>8&255,be>>8&255,ze>>8&255)+Lt(255&Ht,255&be,255&ze)?Ht:be},kn.Predictor12=function(be,ze,pt){var Ht=ze[pt+0];return(fn((be>>24&255)+(Ht>>24&255)-((ze=ze[pt-1])>>24&255))<<24|fn((be>>16&255)+(Ht>>16&255)-(ze>>16&255))<<16|fn((be>>8&255)+(Ht>>8&255)-(ze>>8&255))<<8|fn((255&be)+(255&Ht)-(255&ze)))>>>0},kn.Predictor13=function(be,ze,pt){var Ht=ze[pt-1];return(Ze((be=nn(be,ze[pt+0]))>>24&255,Ht>>24&255)<<24|Ze(be>>16&255,Ht>>16&255)<<16|Ze(be>>8&255,Ht>>8&255)<<8|Ze(be>>0&255,Ht>>0&255))>>>0};var Es=kn.PredictorAdd0;kn.PredictorAdd1=cr,Vt("Predictor2","PredictorAdd2"),Vt("Predictor3","PredictorAdd3"),Vt("Predictor4","PredictorAdd4"),Vt("Predictor5","PredictorAdd5"),Vt("Predictor6","PredictorAdd6"),Vt("Predictor7","PredictorAdd7"),Vt("Predictor8","PredictorAdd8"),Vt("Predictor9","PredictorAdd9"),Vt("Predictor10","PredictorAdd10"),Vt("Predictor11","PredictorAdd11"),Vt("Predictor12","PredictorAdd12"),Vt("Predictor13","PredictorAdd13");var as=kn.PredictorAdd2;Wr("ColorIndexInverseTransform","MapARGB","32b",function(be){return be>>8&255},function(be){return be}),Wr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(be){return be},function(be){return be>>8&255});var Qo,hs=kn.ColorIndexInverseTransform,vl=kn.MapARGB,sl=kn.VP8LColorIndexInverseTransformAlpha,fs=kn.MapAlpha,Lo=kn.VP8LPredictorsAdd=[];Lo.length=16,(kn.VP8LPredictors=[]).length=16,(kn.VP8LPredictorsAdd_C=[]).length=16,(kn.VP8LPredictors_C=[]).length=16;var ls,Zs,vs,Fs,Us,Rs,al,$s,Ys,js,Ga,ga,Wa,oo,Jo,Hs,bs,ws,Uo,Io,Zo,xo,Ws,Sl,xl,Bl,el,_l,Ol=Ye(511),Uc=Ye(2041),ic=Ye(225),Tc=Ye(767),ac=0,Hl=Uc,zs=ic,tl=Tc,ll=Ol,Fl=0,oc=1,sc=2,Ql=3,Vs=4,lc=5,cc=6,Cc=7,Al=8,Ll=9,Kl=10,Jl=[2,3,7],El=[3,3,11],jc=[280,256,256,256,40],Hc=[0,1,1,1,0],yl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zl=[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],uc=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],$l=8,Ss=[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],dl=[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,Ic=[[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]],dc=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Wl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],zl=[[[[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]]]],hc=[[[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]]],_c=[[[[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]]]],Kc=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hl=[],fl=[],Tl=[],ql=1,ec=2,bl=[],cl=[];Se("UpsampleRgbLinePair",Zr,3),Se("UpsampleBgrLinePair",Tn,3),Se("UpsampleRgbaLinePair",sa,4),Se("UpsampleBgraLinePair",Ri,4),Se("UpsampleArgbLinePair",xi,4),Se("UpsampleRgba4444LinePair",si,2),Se("UpsampleRgb565LinePair",Hn,2);var fc=kn.UpsampleRgbLinePair,pc=kn.UpsampleBgrLinePair,Wc=kn.UpsampleRgbaLinePair,Oc=kn.UpsampleBgraLinePair,Lc=kn.UpsampleArgbLinePair,zc=kn.UpsampleRgba4444LinePair,Vl=kn.UpsampleRgb565LinePair,pl=16,Nl=1<<pl-1,Gl=-227,jl=482,mc=6,Vc=(256<<mc)-1,Nc=0,eu=Ye(256),Dc=Ye(256),Gc=Ye(256),Xc=Ye(256),Yc=Ye(jl-Gl),Rc=Ye(jl-Gl);ya("YuvToRgbRow",Zr,3),ya("YuvToBgrRow",Tn,3),ya("YuvToRgbaRow",sa,4),ya("YuvToBgraRow",Ri,4),ya("YuvToArgbRow",xi,4),ya("YuvToRgba4444Row",si,2),ya("YuvToRgb565Row",Hn,2);var gc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],wl=[0,2,8],vc=[8,7,6,4,4,2,2,2,1,1,1,1],Cl=1;this.WebPDecodeRGBA=function(be,ze,pt,Ht,dr){var Cr=oc,Re=new ms,re=new ni;Re.ba=re,re.S=Cr,re.width=[re.width],re.height=[re.height];var xe=re.width,Ge=re.height,ot=new yi;if(ot==null||be==null)var Ct=2;else _e(ot!=null),Ct=_o(be,ze,pt,ot.width,ot.height,ot.Pd,ot.Qd,ot.format,null);if(Ct!=0?xe=0:(xe!=null&&(xe[0]=ot.width[0]),Ge!=null&&(Ge[0]=ot.height[0]),xe=1),xe){re.width=re.width[0],re.height=re.height[0],Ht!=null&&(Ht[0]=re.width),dr!=null&&(dr[0]=re.height);e:{if(Ht=new La,(dr=new Is).data=be,dr.w=ze,dr.ha=pt,dr.kd=1,ze=[0],_e(dr!=null),((be=_o(dr.data,dr.w,dr.ha,null,null,null,ze,null,dr))==0||be==7)&&ze[0]&&(be=4),(ze=be)==0){if(_e(Re!=null),Ht.data=dr.data,Ht.w=dr.w+dr.offset,Ht.ha=dr.ha-dr.offset,Ht.put=Li,Ht.ac=mi,Ht.bc=Wn,Ht.ma=Re,dr.xa){if((be=yn())==null){Re=1;break e}if(function(_t,Dt){var vr=[0],Lr=[0],mr=[0];t:for(;;){if(_t==null)return 0;if(Dt==null)return _t.a=2,0;if(_t.l=Dt,_t.a=0,Hi(_t.m,Dt.data,Dt.w,Dt.ha),!Di(_t.m,vr,Lr,mr)){_t.a=3;break t}if(_t.xb=ec,Dt.width=vr[0],Dt.height=Lr[0],!Fn(vr[0],Lr[0],1,_t,null))break t;return 1}return _e(_t.a!=0),0}(be,Ht)){if(Ht=(ze=go(Ht.width,Ht.height,Re.Oa,Re.ba))==0){t:{Ht=be;r:for(;;){if(Ht==null){Ht=0;break t}if(_e(Ht.s.yc!=null),_e(Ht.s.Ya!=null),_e(0<Ht.s.Wb),_e((pt=Ht.l)!=null),_e((dr=pt.ma)!=null),Ht.xb!=0){if(Ht.ca=dr.ba,Ht.tb=dr.tb,_e(Ht.ca!=null),!To(dr.Oa,pt,Ql)){Ht.a=2;break r}if(!Xn(Ht,pt.width))break r;if(pt.da)break r;if((pt.da||Cn(Ht.ca.S))&&ye(),11>Ht.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Ht.ca.f.kb.F!=null&&ye()),Ht.Pb&&0<Ht.s.ua&&Ht.s.vb.X==null&&!pi(Ht.s.vb,Ht.s.Wa.Xa)){Ht.a=1;break r}Ht.xb=0}if(!pn(Ht,Ht.V,Ht.Ba,Ht.c,Ht.i,pt.o,Sr))break r;dr.Dc=Ht.Ma,Ht=1;break t}_e(Ht.a!=0),Ht=0}Ht=!Ht}Ht&&(ze=be.a)}else ze=be.a}else{if((be=new va)==null){Re=1;break e}if(be.Fa=dr.na,be.P=dr.P,be.qc=dr.Sa,Da(be,Ht)){if((ze=go(Ht.width,Ht.height,Re.Oa,Re.ba))==0){if(be.Aa=0,pt=Re.Oa,_e((dr=be)!=null),pt!=null){if(0<(xe=0>(xe=pt.Md)?0:100<xe?255:255*xe/100)){for(Ge=ot=0;4>Ge;++Ge)12>(Ct=dr.pb[Ge]).lc&&(Ct.ia=xe*vc[0>Ct.lc?0:Ct.lc]>>3),ot|=Ct.ia;ot&&(alert("todo:VP8InitRandom"),dr.ia=1)}dr.Ga=pt.Id,100<dr.Ga?dr.Ga=100:0>dr.Ga&&(dr.Ga=0)}Pa(be,Ht)||(ze=be.a)}}else ze=be.a}ze==0&&Re.Oa!=null&&Re.Oa.fd&&(ze=Ro(Re.ba))}Re=ze}Cr=Re!=0?null:11>Cr?re.f.RGBA.eb:re.f.kb.y}else Cr=null;return Cr};var tc=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Ft(bi,kn){for(var Ii="",gn=0;gn<4;gn++)Ii+=String.fromCharCode(bi[kn++]);return Ii}function wr(bi,kn){return(bi[kn+0]<<0|bi[kn+1]<<8|bi[kn+2]<<16)>>>0}function hr(bi,kn){return(bi[kn+0]<<0|bi[kn+1]<<8|bi[kn+2]<<16|bi[kn+3]<<24)>>>0}new ut;var Nr=[0],Kt=[0],un=[],ar=new ut,Gr=$e,Br=function(bi,kn){var Ii={},gn=0,Vr=!1,xn=0,tn=0;if(Ii.frames=[],!function(Ur,bn,Mn,Gn){for(var $n=0;$n<Gn;$n++)if(Ur[bn+$n]!=Mn.charCodeAt($n))return!0;return!1}(bi,kn,"RIFF",4)){var ui,qn;for(hr(bi,kn+=4),kn+=8;kn<bi.length;){var wi=Ft(bi,kn),Qn=hr(bi,kn+=4);kn+=4;var Hi=Qn+(1&Qn);switch(wi){case"VP8 ":case"VP8L":Ii.frames[gn]===void 0&&(Ii.frames[gn]={}),(dn=Ii.frames[gn]).src_off=Vr?tn:kn-8,dn.src_size=xn+Qn+8,gn++,Vr&&(Vr=!1,xn=0,tn=0);break;case"VP8X":(dn=Ii.header={}).feature_flags=bi[kn];var ri=kn+4;dn.canvas_width=1+wr(bi,ri),ri+=3,dn.canvas_height=1+wr(bi,ri),ri+=3;break;case"ALPH":Vr=!0,xn=Hi+8,tn=kn-8;break;case"ANIM":(dn=Ii.header).bgcolor=hr(bi,kn),ri=kn+4,dn.loop_count=(ui=bi)[(qn=ri)+0]<<0|ui[qn+1]<<8,ri+=2;break;case"ANMF":var Mi,dn;(dn=Ii.frames[gn]={}).offset_x=2*wr(bi,kn),kn+=3,dn.offset_y=2*wr(bi,kn),kn+=3,dn.width=1+wr(bi,kn),kn+=3,dn.height=1+wr(bi,kn),kn+=3,dn.duration=wr(bi,kn),kn+=3,Mi=bi[kn++],dn.dispose=1&Mi,dn.blend=Mi>>1&1}wi!="ANMF"&&(kn+=Hi)}return Ii}}(Gr,0);Br.response=Gr,Br.rgbaoutput=!0,Br.dataurl=!1;var gr=Br.header?Br.header:null,Sn=Br.frames?Br.frames:null;if(gr){gr.loop_counter=gr.loop_count,Nr=[gr.canvas_height],Kt=[gr.canvas_width];for(var Pn=0;Pn<Sn.length&&Sn[Pn].blend!=0;Pn++);}var ii=Sn[0],oi=ar.WebPDecodeRGBA(Gr,ii.src_off,ii.src_size,Kt,Nr);ii.rgba=oi,ii.imgwidth=Kt[0],ii.imgheight=Nr[0];for(var ti=0;ti<Kt[0]*Nr[0]*4;ti++)un[ti]=oi[ti];return this.width=Kt,this.height=Nr,this.data=un,this}!function($e){var _e=function(){return typeof E.b=="function"},Be=function(Kt,un,ar,Gr){var Br=4,gr=et;switch(Gr){case $e.image_compression.FAST:Br=1,gr=Ye;break;case $e.image_compression.MEDIUM:Br=6,gr=wt;break;case $e.image_compression.SLOW:Br=9,gr=ut}Kt=He(Kt,un,ar,gr);var Sn=Object(E.b)(Kt,{level:Br});return $e.__addimage__.arrayBufferToBinaryString(Sn)},He=function(Kt,un,ar,Gr){for(var Br,gr,Sn,Pn=Kt.length/un,ii=new Uint8Array(Kt.length+Pn),oi=wr(),ti=0;ti<Pn;ti+=1){if(Sn=ti*un,Br=Kt.subarray(Sn,Sn+un),Gr)ii.set(Gr(Br,ar,gr),Sn+ti);else{for(var bi,kn=oi.length,Ii=[];bi<kn;bi+=1)Ii[bi]=oi[bi](Br,ar,gr);var gn=hr(Ii.concat());ii.set(Ii[gn],Sn+ti)}gr=Br}return ii},Je=function(Kt){var un=Array.apply([],Kt);return un.unshift(0),un},Ye=function(Kt,un){var ar,Gr=[],Br=Kt.length;Gr[0]=1;for(var gr=0;gr<Br;gr+=1)ar=Kt[gr-un]||0,Gr[gr+1]=Kt[gr]-ar+256&255;return Gr},et=function(Kt,un,ar){var Gr,Br=[],gr=Kt.length;Br[0]=2;for(var Sn=0;Sn<gr;Sn+=1)Gr=ar&&ar[Sn]||0,Br[Sn+1]=Kt[Sn]-Gr+256&255;return Br},wt=function(Kt,un,ar){var Gr,Br,gr=[],Sn=Kt.length;gr[0]=3;for(var Pn=0;Pn<Sn;Pn+=1)Gr=Kt[Pn-un]||0,Br=ar&&ar[Pn]||0,gr[Pn+1]=Kt[Pn]+256-(Gr+Br>>>1)&255;return gr},ut=function(Kt,un,ar){var Gr,Br,gr,Sn,Pn=[],ii=Kt.length;Pn[0]=4;for(var oi=0;oi<ii;oi+=1)Gr=Kt[oi-un]||0,Br=ar&&ar[oi]||0,gr=ar&&ar[oi-un]||0,Sn=Ft(Gr,Br,gr),Pn[oi+1]=Kt[oi]-Sn+256&255;return Pn},Ft=function(Kt,un,ar){if(Kt===un&&un===ar)return Kt;var Gr=Math.abs(un-ar),Br=Math.abs(Kt-ar),gr=Math.abs(Kt+un-ar-ar);return Gr<=Br&&Gr<=gr?Kt:Br<=gr?un:ar},wr=function(){return[Je,Ye,et,wt,ut]},hr=function(Kt){var un=Kt.map(function(ar){return ar.reduce(function(Gr,Br){return Gr+Math.abs(Br)},0)});return un.indexOf(Math.min.apply(null,un))};$e.processPNG=function(Nr,Kt,un,ar){var Gr,Br,gr,Sn,Pn,ii,oi,ti,bi,kn,Ii,gn,Vr,xn,tn,ui=this.decode.FLATE_DECODE,qn="";if(this.__addimage__.isArrayBuffer(Nr)&&(Nr=new Uint8Array(Nr)),this.__addimage__.isArrayBufferView(Nr)){if(Nr=(gr=new at(Nr)).imgData,Br=gr.bits,Gr=gr.colorSpace,Pn=gr.colors,[4,6].indexOf(gr.colorType)!==-1){if(gr.bits===8){bi=(ti=gr.pixelBitlength==32?new Uint32Array(gr.decodePixels().buffer):gr.pixelBitlength==16?new Uint16Array(gr.decodePixels().buffer):new Uint8Array(gr.decodePixels().buffer)).length,Ii=new Uint8Array(bi*gr.colors),kn=new Uint8Array(bi);var wi,Qn=gr.pixelBitlength-gr.bits;for(xn=0,tn=0;xn<bi;xn++){for(Vr=ti[xn],wi=0;wi<Qn;)Ii[tn++]=Vr>>>wi&255,wi+=gr.bits;kn[xn]=Vr>>>wi&255}}if(gr.bits===16){bi=(ti=new Uint32Array(gr.decodePixels().buffer)).length,Ii=new Uint8Array(bi*(32/gr.pixelBitlength)*gr.colors),kn=new Uint8Array(bi*(32/gr.pixelBitlength)),gn=gr.colors>1,xn=0,tn=0;for(var Hi=0;xn<bi;)Vr=ti[xn++],Ii[tn++]=Vr>>>0&255,gn&&(Ii[tn++]=Vr>>>16&255,Vr=ti[xn++],Ii[tn++]=Vr>>>0&255),kn[Hi++]=Vr>>>16&255;Br=8}ar!==$e.image_compression.NONE&&_e()?(Nr=Be(Ii,gr.width*gr.colors,gr.colors,ar),oi=Be(kn,gr.width,1,ar)):(Nr=Ii,oi=kn,ui=void 0)}if(gr.colorType===3&&(Gr=this.color_spaces.INDEXED,ii=gr.palette,gr.transparency.indexed)){var ri=gr.transparency.indexed,Mi=0;for(xn=0,bi=ri.length;xn<bi;++xn)Mi+=ri[xn];if((Mi/=255)===bi-1&&ri.indexOf(0)!==-1)Sn=[ri.indexOf(0)];else if(Mi!==bi){for(ti=gr.decodePixels(),kn=new Uint8Array(ti.length),xn=0,bi=ti.length;xn<bi;xn++)kn[xn]=ri[ti[xn]];oi=Be(kn,gr.width,1)}}var dn=function(Ur){var bn;switch(Ur){case $e.image_compression.FAST:bn=11;break;case $e.image_compression.MEDIUM:bn=13;break;case $e.image_compression.SLOW:bn=14;break;default:bn=12}return bn}(ar);return ui===this.decode.FLATE_DECODE&&(qn="/Predictor "+dn+" "),qn+="/Colors "+Pn+" /BitsPerComponent "+Br+" /Columns "+gr.width,(this.__addimage__.isArrayBuffer(Nr)||this.__addimage__.isArrayBufferView(Nr))&&(Nr=this.__addimage__.arrayBufferToBinaryString(Nr)),(oi&&this.__addimage__.isArrayBuffer(oi)||this.__addimage__.isArrayBufferView(oi))&&(oi=this.__addimage__.arrayBufferToBinaryString(oi)),{alias:un,data:Nr,index:Kt,filter:ui,decodeParameters:qn,transparency:Sn,palette:ii,sMask:oi,predictor:dn,width:gr.width,height:gr.height,bitsPerComponent:Br,colorSpace:Gr}}}}(U.API),function($e){$e.processGIF89A=function(_e,Be,He,Je){var Ye=new zt(_e),et=Ye.width,wt=Ye.height,ut=[];Ye.decodeAndBlitFrameRGBA(0,ut);var Ft={data:ut,width:et,height:wt},wr=new Xt(100).encode(Ft,100);return $e.processJPEG.call(this,wr,Be,He,Je)},$e.processGIF87A=$e.processGIF89A}(U.API),Dr.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 $e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array($e);for(var _e=0;_e<$e;_e++){var Be=this.datav.getUint8(this.pos++,!0),He=this.datav.getUint8(this.pos++,!0),Je=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0);this.palette[_e]={red:Je,green:He,blue:Be,quad:Ye}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Dr.prototype.parseBGR=function(){this.pos=this.offset;try{var $e="bit"+this.bitPP,_e=this.width*this.height*4;this.data=new Uint8Array(_e),this[$e]()}catch(Be){m.log("bit decode error:"+Be)}},Dr.prototype.bit1=function(){var $e,_e=Math.ceil(this.width/8),Be=_e%4;for($e=this.height-1;$e>=0;$e--){for(var He=this.bottom_up?$e:this.height-1-$e,Je=0;Je<_e;Je++)for(var Ye=this.datav.getUint8(this.pos++,!0),et=He*this.width*4+8*Je*4,wt=0;wt<8&&8*Je+wt<this.width;wt++){var ut=this.palette[Ye>>7-wt&1];this.data[et+4*wt]=ut.blue,this.data[et+4*wt+1]=ut.green,this.data[et+4*wt+2]=ut.red,this.data[et+4*wt+3]=255}Be!==0&&(this.pos+=4-Be)}},Dr.prototype.bit4=function(){for(var $e=Math.ceil(this.width/2),_e=$e%4,Be=this.height-1;Be>=0;Be--){for(var He=this.bottom_up?Be:this.height-1-Be,Je=0;Je<$e;Je++){var Ye=this.datav.getUint8(this.pos++,!0),et=He*this.width*4+2*Je*4,wt=Ye>>4,ut=15&Ye,Ft=this.palette[wt];if(this.data[et]=Ft.blue,this.data[et+1]=Ft.green,this.data[et+2]=Ft.red,this.data[et+3]=255,2*Je+1>=this.width)break;Ft=this.palette[ut],this.data[et+4]=Ft.blue,this.data[et+4+1]=Ft.green,this.data[et+4+2]=Ft.red,this.data[et+4+3]=255}_e!==0&&(this.pos+=4-_e)}},Dr.prototype.bit8=function(){for(var $e=this.width%4,_e=this.height-1;_e>=0;_e--){for(var Be=this.bottom_up?_e:this.height-1-_e,He=0;He<this.width;He++){var Je=this.datav.getUint8(this.pos++,!0),Ye=Be*this.width*4+4*He;if(Je<this.palette.length){var et=this.palette[Je];this.data[Ye]=et.red,this.data[Ye+1]=et.green,this.data[Ye+2]=et.blue,this.data[Ye+3]=255}else this.data[Ye]=255,this.data[Ye+1]=255,this.data[Ye+2]=255,this.data[Ye+3]=255}$e!==0&&(this.pos+=4-$e)}},Dr.prototype.bit15=function(){for(var $e=this.width%3,_e=parseInt("11111",2),Be=this.height-1;Be>=0;Be--){for(var He=this.bottom_up?Be:this.height-1-Be,Je=0;Je<this.width;Je++){var Ye=this.datav.getUint16(this.pos,!0);this.pos+=2;var et=(Ye&_e)/_e*255|0,wt=(Ye>>5&_e)/_e*255|0,ut=(Ye>>10&_e)/_e*255|0,Ft=Ye>>15?255:0,wr=He*this.width*4+4*Je;this.data[wr]=ut,this.data[wr+1]=wt,this.data[wr+2]=et,this.data[wr+3]=Ft}this.pos+=$e}},Dr.prototype.bit16=function(){for(var $e=this.width%3,_e=parseInt("11111",2),Be=parseInt("111111",2),He=this.height-1;He>=0;He--){for(var Je=this.bottom_up?He:this.height-1-He,Ye=0;Ye<this.width;Ye++){var et=this.datav.getUint16(this.pos,!0);this.pos+=2;var wt=(et&_e)/_e*255|0,ut=(et>>5&Be)/Be*255|0,Ft=(et>>11)/_e*255|0,wr=Je*this.width*4+4*Ye;this.data[wr]=Ft,this.data[wr+1]=ut,this.data[wr+2]=wt,this.data[wr+3]=255}this.pos+=$e}},Dr.prototype.bit24=function(){for(var $e=this.height-1;$e>=0;$e--){for(var _e=this.bottom_up?$e:this.height-1-$e,Be=0;Be<this.width;Be++){var He=this.datav.getUint8(this.pos++,!0),Je=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),et=_e*this.width*4+4*Be;this.data[et]=Ye,this.data[et+1]=Je,this.data[et+2]=He,this.data[et+3]=255}this.pos+=this.width%4}},Dr.prototype.bit32=function(){for(var $e=this.height-1;$e>=0;$e--)for(var _e=this.bottom_up?$e:this.height-1-$e,Be=0;Be<this.width;Be++){var He=this.datav.getUint8(this.pos++,!0),Je=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),et=this.datav.getUint8(this.pos++,!0),wt=_e*this.width*4+4*Be;this.data[wt]=Ye,this.data[wt+1]=Je,this.data[wt+2]=He,this.data[wt+3]=et}},Dr.prototype.getData=function(){return this.data},function($e){$e.processBMP=function(_e,Be,He,Je){var Ye=new Dr(_e,!1),et=Ye.width,wt=Ye.height,ut={data:Ye.getData(),width:et,height:wt},Ft=new Xt(100).encode(ut,100);return $e.processJPEG.call(this,Ft,Be,He,Je)}}(U.API),Pr.prototype.getData=function(){return this.data},function($e){$e.processWEBP=function(_e,Be,He,Je){var Ye=new Pr(_e,!1),et=Ye.width,wt=Ye.height,ut={data:Ye.getData(),width:et,height:wt},Ft=new Xt(100).encode(ut,100);return $e.processJPEG.call(this,Ft,Be,He,Je)}}(U.API),U.API.processRGBA=function($e,_e,Be){for(var He=$e.data,Je=He.length,Ye=new Uint8Array(Je/4*3),et=new Uint8Array(Je/4),wt=0,ut=0,Ft=0;Ft<Je;Ft+=4){var wr=He[Ft],hr=He[Ft+1],Nr=He[Ft+2],Kt=He[Ft+3];Ye[wt++]=wr,Ye[wt++]=hr,Ye[wt++]=Nr,et[ut++]=Kt}var un=this.__addimage__.arrayBufferToBinaryString(Ye);return{alpha:this.__addimage__.arrayBufferToBinaryString(et),data:un,index:_e,alias:Be,colorSpace:"DeviceRGB",bitsPerComponent:8,width:$e.width,height:$e.height}},U.API.setLanguage=function($e){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"}[$e]!==void 0&&(this.internal.languageSettings.languageCode=$e,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},tt=U.API,nt=tt.getCharWidthsArray=function($e,_e){var Be,He,Je=(_e=_e||{}).font||this.internal.getFont(),Ye=_e.fontSize||this.internal.getFontSize(),et=_e.charSpace||this.internal.getCharSpace(),wt=_e.widths?_e.widths:Je.metadata.Unicode.widths,ut=wt.fof?wt.fof:1,Ft=_e.kerning?_e.kerning:Je.metadata.Unicode.kerning,wr=Ft.fof?Ft.fof:1,hr=_e.doKerning!==!1,Nr=0,Kt=$e.length,un=0,ar=wt[0]||ut,Gr=[];for(Be=0;Be<Kt;Be++)He=$e.charCodeAt(Be),typeof Je.metadata.widthOfString=="function"?Gr.push((Je.metadata.widthOfGlyph(Je.metadata.characterToGlyph(He))+et*(1e3/Ye)||0)/1e3):(Nr=hr&&L()(Ft[He])==="object"&&!isNaN(parseInt(Ft[He][un],10))?Ft[He][un]/wr:0,Gr.push((wt[He]||ar)/ut+Nr)),un=He;return Gr},Te=tt.getStringUnitWidth=function($e,_e){var Be=(_e=_e||{}).fontSize||this.internal.getFontSize(),He=_e.font||this.internal.getFont(),Je=_e.charSpace||this.internal.getCharSpace();return tt.processArabic&&($e=tt.processArabic($e)),typeof He.metadata.widthOfString=="function"?He.metadata.widthOfString($e,Be,Je)/Be:nt.apply(this,arguments).reduce(function(Ye,et){return Ye+et},0)},Me=function(_e,Be,He,Je){for(var Ye=[],et=0,wt=_e.length,ut=0;et!==wt&&ut+Be[et]<He;)ut+=Be[et],et++;Ye.push(_e.slice(0,et));var Ft=et;for(ut=0;et!==wt;)ut+Be[et]>Je&&(Ye.push(_e.slice(Ft,et)),ut=0,Ft=et),ut+=Be[et],et++;return Ft!==et&&Ye.push(_e.slice(Ft,et)),Ye},Xe=function(_e,Be,He){He||(He={});var Je,Ye,et,wt,ut,Ft,wr,hr=[],Nr=[hr],Kt=He.textIndent||0,un=0,ar=0,Gr=_e.split(" "),Br=nt.apply(this,[" ",He])[0];if(Ft=He.lineIndent===-1?Gr[0].length+2:He.lineIndent||0){var gr=Array(Ft).join(" "),Sn=[];Gr.map(function(ii){(ii=ii.split(/\s*\n/)).length>1?Sn=Sn.concat(ii.map(function(oi,ti){return(ti&&oi.length?`
|
|
|
`:"")+oi})):Sn.push(ii[0])}),Gr=Sn,Ft=Te.apply(this,[gr,He])}for(et=0,wt=Gr.length;et<wt;et++){var Pn=0;if(Je=Gr[et],Ft&&Je[0]==`
|
|
|
`&&(Je=Je.substr(1),Pn=1),Kt+un+(ar=(Ye=nt.apply(this,[Je,He])).reduce(function(ii,oi){return ii+oi},0))>Be||Pn){if(ar>Be){for(ut=Me.apply(this,[Je,Ye,Be-(Kt+un),Be]),hr.push(ut.shift()),hr=[ut.pop()];ut.length;)Nr.push([ut.shift()]);ar=Ye.slice(Je.length-(hr[0]?hr[0].length:0)).reduce(function(ii,oi){return ii+oi},0)}else hr=[Je];Nr.push(hr),Kt=ar+Ft,un=Br}else hr.push(Je),Kt+=un+ar,un=Br}return wr=Ft?function(ii,oi){return(oi?gr:"")+ii.join(" ")}:function(ii){return ii.join(" ")},Nr.map(wr)},tt.splitTextToSize=function($e,_e,Be){var He,Je=(Be=Be||{}).fontSize||this.internal.getFontSize(),Ye=function(wr){if(wr.widths&&wr.kerning)return{widths:wr.widths,kerning:wr.kerning};var hr=this.internal.getFont(wr.fontName,wr.fontStyle);return hr.metadata.Unicode?{widths:hr.metadata.Unicode.widths||{0:1},kerning:hr.metadata.Unicode.kerning||{}}:{font:hr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Be);He=Array.isArray($e)?$e:String($e).split(/\r?\n/);var et=1*this.internal.scaleFactor*_e/Je;Ye.textIndent=Be.textIndent?1*Be.textIndent*this.internal.scaleFactor/Je:0,Ye.lineIndent=Be.lineIndent;var wt,ut,Ft=[];for(wt=0,ut=He.length;wt<ut;wt++)Ft=Ft.concat(Xe.apply(this,[He[wt],et,Ye]));return Ft},function($e){$e.__fontmetrics__=$e.__fontmetrics__||{};for(var _e="klmnopqrstuvwxyz",Be={},He={},Je=0;Je<_e.length;Je++)Be[_e[Je]]="0123456789abcdef"[Je],He["0123456789abcdef"[Je]]=_e[Je];var Ye=function(Nr){return"0x"+parseInt(Nr,10).toString(16)},et=$e.__fontmetrics__.compress=function(hr){var Nr,Kt,un,ar,Gr=["{"];for(var Br in hr){if(Nr=hr[Br],isNaN(parseInt(Br,10))?Kt="'"+Br+"'":(Br=parseInt(Br,10),Kt=(Kt=Ye(Br).slice(2)).slice(0,-1)+He[Kt.slice(-1)]),typeof Nr=="number")Nr<0?(un=Ye(Nr).slice(3),ar="-"):(un=Ye(Nr).slice(2),ar=""),un=ar+un.slice(0,-1)+He[un.slice(-1)];else{if(L()(Nr)!=="object")throw new Error("Don't know what to do with value type "+L()(Nr)+".");un=et(Nr)}Gr.push(Kt+un)}return Gr.push("}"),Gr.join("")},wt=$e.__fontmetrics__.uncompress=function(hr){if(typeof hr!="string")throw new Error("Invalid argument passed to uncompress.");for(var Nr,Kt,un,ar,Gr={},Br=1,gr=Gr,Sn=[],Pn="",ii="",oi=hr.length-1,ti=1;ti<oi;ti+=1)(ar=hr[ti])=="'"?Nr?(un=Nr.join(""),Nr=void 0):Nr=[]:Nr?Nr.push(ar):ar=="{"?(Sn.push([gr,un]),gr={},un=void 0):ar=="}"?((Kt=Sn.pop())[0][Kt[1]]=gr,un=void 0,gr=Kt[0]):ar=="-"?Br=-1:un===void 0?Be.hasOwnProperty(ar)?(Pn+=Be[ar],un=parseInt(Pn,16)*Br,Br=1,Pn=""):Pn+=ar:Be.hasOwnProperty(ar)?(ii+=Be[ar],gr[un]=parseInt(ii,16)*Br,Br=1,un=void 0,ii=""):ii+=ar;return Gr},ut={codePages:["WinAnsiEncoding"],WinAnsiEncoding:wt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Ft={Unicode:{Courier:ut,"Courier-Bold":ut,"Courier-BoldOblique":ut,"Courier-Oblique":ut,Helvetica:ut,"Helvetica-Bold":ut,"Helvetica-BoldOblique":ut,"Helvetica-Oblique":ut,"Times-Roman":ut,"Times-Bold":ut,"Times-BoldItalic":ut,"Times-Italic":ut}},wr={Unicode:{"Courier-Oblique":wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":wt("{'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":wt("{'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:wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":wt("{'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:wt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:wt("{'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":wt("{'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:wt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":wt("{'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":wt("{'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":wt("{'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}}}")}};$e.events.push(["addFont",function(hr){var Nr=hr.font,Kt=wr.Unicode[Nr.postScriptName];Kt&&(Nr.metadata.Unicode={},Nr.metadata.Unicode.widths=Kt.widths,Nr.metadata.Unicode.kerning=Kt.kerning);var un=Ft.Unicode[Nr.postScriptName];un&&(Nr.metadata.Unicode.encoding=un,Nr.encoding=un.codePages[0])}])}(U.API),function($e){var _e=function(He){for(var Je=He.length,Ye=new Uint8Array(Je),et=0;et<Je;et++)Ye[et]=He.charCodeAt(et);return Ye};$e.API.events.push(["addFont",function(Be){var He=void 0,Je=Be.font,Ye=Be.instance;if(!Je.isStandardFont){if(Ye===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Je.postScriptName+"').");if(typeof(He=Ye.existsFileInVFS(Je.postScriptName)===!1?Ye.loadFile(Je.postScriptName):Ye.getFileFromVFS(Je.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Je.postScriptName+"').");!function(et,wt){wt=/^\x00\x01\x00\x00/.test(wt)?_e(wt):_e(l(wt)),et.metadata=$e.API.TTFFont.open(wt),et.metadata.Unicode=et.metadata.Unicode||{encoding:{},kerning:{},widths:[]},et.metadata.glyIdsUsed=[0]}(Je,He)}}])}(U),function($e){function _e(){return(I.canvg?Promise.resolve(I.canvg):Promise.all([y.e(0),y.e(234)]).then(y.bind(null,"DXPr"))).catch(function(Be){return Promise.reject(new Error("Could not load canvg: "+Be))}).then(function(Be){return Be.default?Be.default:Be})}U.API.addSvgAsImage=function(Be,He,Je,Ye,et,wt,ut,Ft){if(isNaN(He)||isNaN(Je))throw m.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Ye)||isNaN(et))throw m.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var wr=document.createElement("canvas");wr.width=Ye,wr.height=et;var hr=wr.getContext("2d");hr.fillStyle="#fff",hr.fillRect(0,0,wr.width,wr.height);var Nr={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Kt=this;return _e().then(function(un){return un.fromString(hr,Be,Nr)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(un){return un.render(Nr)}).then(function(){Kt.addImage(wr.toDataURL("image/jpeg",1),He,Je,Ye,et,ut,Ft)})}}(),U.API.putTotalPages=function($e){var _e,Be=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(_e=new RegExp($e,"g"),Be=this.internal.getNumberOfPages()):(_e=new RegExp(this.pdfEscape16($e,this.internal.getFont()),"g"),Be=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var He=1;He<=this.internal.getNumberOfPages();He++)for(var Je=0;Je<this.internal.pages[He].length;Je++)this.internal.pages[He][Je]=this.internal.pages[He][Je].replace(_e,Be);return this},U.API.viewerPreferences=function($e,_e){var Be;$e=$e||{},_e=_e||!1;var He,Je,Ye,et={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}},wt=Object.keys(et),ut=[],Ft=0,wr=0,hr=0;function Nr(un,ar){var Gr,Br=!1;for(Gr=0;Gr<un.length;Gr+=1)un[Gr]===ar&&(Br=!0);return Br}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(et)),this.internal.viewerpreferences.isSubscribed=!1),Be=this.internal.viewerpreferences.configuration,$e==="reset"||_e===!0){var Kt=wt.length;for(hr=0;hr<Kt;hr+=1)Be[wt[hr]].value=Be[wt[hr]].defaultValue,Be[wt[hr]].explicitSet=!1}if(L()($e)==="object"){for(Je in $e)if(Ye=$e[Je],Nr(wt,Je)&&Ye!==void 0){if(Be[Je].type==="boolean"&&typeof Ye=="boolean")Be[Je].value=Ye;else if(Be[Je].type==="name"&&Nr(Be[Je].valueSet,Ye))Be[Je].value=Ye;else if(Be[Je].type==="integer"&&Number.isInteger(Ye))Be[Je].value=Ye;else if(Be[Je].type==="array"){for(Ft=0;Ft<Ye.length;Ft+=1)if(He=!0,Ye[Ft].length===1&&typeof Ye[Ft][0]=="number")ut.push(String(Ye[Ft]-1));else if(Ye[Ft].length>1){for(wr=0;wr<Ye[Ft].length;wr+=1)typeof Ye[Ft][wr]!="number"&&(He=!1);He===!0&&ut.push([Ye[Ft][0]-1,Ye[Ft][1]-1].join(" "))}Be[Je].value="["+ut.join(" ")+"]"}else Be[Je].value=Be[Je].defaultValue;Be[Je].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var un,ar=[];for(un in Be)Be[un].explicitSet===!0&&(Be[un].type==="name"?ar.push("/"+un+" /"+Be[un].value):ar.push("/"+un+" "+Be[un].value));ar.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+ar.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Be,this},function($e){var _e=function(){var Je='<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>',Ye=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),et=unescape(encodeURIComponent(Je)),wt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ut=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Ft=unescape(encodeURIComponent("</x:xmpmeta>")),wr=et.length+wt.length+ut.length+Ye.length+Ft.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+wr+" >>"),this.internal.write("stream"),this.internal.write(Ye+et+wt+ut+Ft),this.internal.write("endstream"),this.internal.write("endobj")},Be=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};$e.addMetadata=function(He,Je){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:He,namespaceuri:Je||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Be),this.internal.events.subscribe("postPutResources",_e)),this}}(U.API),function($e){var _e=$e.API,Be=_e.pdfEscape16=function(Ye,et){for(var wt,ut=et.metadata.Unicode.widths,Ft=["","0","00","000","0000"],wr=[""],hr=0,Nr=Ye.length;hr<Nr;++hr){if(wt=et.metadata.characterToGlyph(Ye.charCodeAt(hr)),et.metadata.glyIdsUsed.push(wt),et.metadata.toUnicode[wt]=Ye.charCodeAt(hr),ut.indexOf(wt)==-1&&(ut.push(wt),ut.push([parseInt(et.metadata.widthOfGlyph(wt),10)])),wt=="0")return wr.join("");wt=wt.toString(16),wr.push(Ft[4-wt.length],wt)}return wr.join("")},He=function(et){var wt,ut,Ft,wr,hr,Nr,Kt;for(hr=`/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`,Ft=[],Nr=0,Kt=(ut=Object.keys(et).sort(function(un,ar){return un-ar})).length;Nr<Kt;Nr++)wt=ut[Nr],Ft.length>=100&&(hr+=`
|
|
|
`+Ft.length+` beginbfchar
|
|
|
`+Ft.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Ft=[]),et[wt]!==void 0&&et[wt]!==null&&typeof et[wt].toString=="function"&&(wr=("0000"+et[wt].toString(16)).slice(-4),wt=("0000"+(+wt).toString(16)).slice(-4),Ft.push("<"+wt+"><"+wr+">"));return Ft.length&&(hr+=`
|
|
|
`+Ft.length+` beginbfchar
|
|
|
`+Ft.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),hr+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};_e.events.push(["putFont",function(Ye){!function(et){var wt=et.font,ut=et.out,Ft=et.newObject,wr=et.putStream;if(wt.metadata instanceof $e.API.TTFFont&&wt.encoding==="Identity-H"){for(var hr=wt.metadata.Unicode.widths,Nr=wt.metadata.subset.encode(wt.metadata.glyIdsUsed,1),Kt="",un=0;un<Nr.length;un++)Kt+=String.fromCharCode(Nr[un]);var ar=Ft();wr({data:Kt,addLength1:!0,objectId:ar}),ut("endobj");var Gr=Ft();wr({data:He(wt.metadata.toUnicode),addLength1:!0,objectId:Gr}),ut("endobj");var Br=Ft();ut("<<"),ut("/Type /FontDescriptor"),ut("/FontName /"+_(wt.fontName)),ut("/FontFile2 "+ar+" 0 R"),ut("/FontBBox "+$e.API.PDFObject.convert(wt.metadata.bbox)),ut("/Flags "+wt.metadata.flags),ut("/StemV "+wt.metadata.stemV),ut("/ItalicAngle "+wt.metadata.italicAngle),ut("/Ascent "+wt.metadata.ascender),ut("/Descent "+wt.metadata.decender),ut("/CapHeight "+wt.metadata.capHeight),ut(">>"),ut("endobj");var gr=Ft();ut("<<"),ut("/Type /Font"),ut("/BaseFont /"+_(wt.fontName)),ut("/FontDescriptor "+Br+" 0 R"),ut("/W "+$e.API.PDFObject.convert(hr)),ut("/CIDToGIDMap /Identity"),ut("/DW 1000"),ut("/Subtype /CIDFontType2"),ut("/CIDSystemInfo"),ut("<<"),ut("/Supplement 0"),ut("/Registry (Adobe)"),ut("/Ordering ("+wt.encoding+")"),ut(">>"),ut(">>"),ut("endobj"),wt.objectNumber=Ft(),ut("<<"),ut("/Type /Font"),ut("/Subtype /Type0"),ut("/ToUnicode "+Gr+" 0 R"),ut("/BaseFont /"+_(wt.fontName)),ut("/Encoding /"+wt.encoding),ut("/DescendantFonts ["+gr+" 0 R]"),ut(">>"),ut("endobj"),wt.isAlreadyPutted=!0}}(Ye)}]),_e.events.push(["putFont",function(Ye){!function(et){var wt=et.font,ut=et.out,Ft=et.newObject,wr=et.putStream;if(wt.metadata instanceof $e.API.TTFFont&&wt.encoding==="WinAnsiEncoding"){for(var hr=wt.metadata.rawData,Nr="",Kt=0;Kt<hr.length;Kt++)Nr+=String.fromCharCode(hr[Kt]);var un=Ft();wr({data:Nr,addLength1:!0,objectId:un}),ut("endobj");var ar=Ft();wr({data:He(wt.metadata.toUnicode),addLength1:!0,objectId:ar}),ut("endobj");var Gr=Ft();ut("<<"),ut("/Descent "+wt.metadata.decender),ut("/CapHeight "+wt.metadata.capHeight),ut("/StemV "+wt.metadata.stemV),ut("/Type /FontDescriptor"),ut("/FontFile2 "+un+" 0 R"),ut("/Flags 96"),ut("/FontBBox "+$e.API.PDFObject.convert(wt.metadata.bbox)),ut("/FontName /"+_(wt.fontName)),ut("/ItalicAngle "+wt.metadata.italicAngle),ut("/Ascent "+wt.metadata.ascender),ut(">>"),ut("endobj"),wt.objectNumber=Ft();for(var Br=0;Br<wt.metadata.hmtx.widths.length;Br++)wt.metadata.hmtx.widths[Br]=parseInt(wt.metadata.hmtx.widths[Br]*(1e3/wt.metadata.head.unitsPerEm));ut("<</Subtype/TrueType/Type/Font/ToUnicode "+ar+" 0 R/BaseFont/"+_(wt.fontName)+"/FontDescriptor "+Gr+" 0 R/Encoding/"+wt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+$e.API.PDFObject.convert(wt.metadata.hmtx.widths)+">>"),ut("endobj"),wt.isAlreadyPutted=!0}}(Ye)}]);var Je=function(et){var wt,ut=et.text||"",Ft=et.x,wr=et.y,hr=et.options||{},Nr=et.mutex||{},Kt=Nr.pdfEscape,un=Nr.activeFontKey,ar=Nr.fonts,Gr=un,Br="",gr=0,Sn="",Pn=ar[Gr].encoding;if(ar[Gr].encoding!=="Identity-H")return{text:ut,x:Ft,y:wr,options:hr,mutex:Nr};for(Sn=ut,Gr=un,Array.isArray(ut)&&(Sn=ut[0]),gr=0;gr<Sn.length;gr+=1)ar[Gr].metadata.hasOwnProperty("cmap")&&(wt=ar[Gr].metadata.cmap.unicode.codeMap[Sn[gr].charCodeAt(0)]),wt||Sn[gr].charCodeAt(0)<256&&ar[Gr].metadata.hasOwnProperty("Unicode")?Br+=Sn[gr]:Br+="";var ii="";return parseInt(Gr.slice(1))<14||Pn==="WinAnsiEncoding"?ii=Kt(Br,Gr).split("").map(function(oi){return oi.charCodeAt(0).toString(16)}).join(""):Pn==="Identity-H"&&(ii=Be(Br,ar[Gr])),Nr.isHex=!0,{text:ii,x:Ft,y:wr,options:hr,mutex:Nr}};_e.events.push(["postProcessText",function(Ye){var et=Ye.text||"",wt=[],ut={text:et,x:Ye.x,y:Ye.y,options:Ye.options,mutex:Ye.mutex};if(Array.isArray(et)){var Ft=0;for(Ft=0;Ft<et.length;Ft+=1)Array.isArray(et[Ft])&&et[Ft].length===3?wt.push([Je(Object.assign({},ut,{text:et[Ft][0]})).text,et[Ft][1],et[Ft][2]]):wt.push(Je(Object.assign({},ut,{text:et[Ft]})).text);Ye.text=wt}else Ye.text=Je(Object.assign({},ut,{text:et})).text}])}(U),function($e){var _e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};$e.existsFileInVFS=function(Be){return _e.call(this),this.internal.vFS[Be]!==void 0},$e.addFileToVFS=function(Be,He){return _e.call(this),this.internal.vFS[Be]=He,this},$e.getFileFromVFS=function(Be){return _e.call(this),this.internal.vFS[Be]!==void 0?this.internal.vFS[Be]:null}}(U.API),function($e){$e.__bidiEngine__=$e.prototype.__bidiEngine__=function(He){var Je,Ye,et,wt,ut,Ft,wr,hr=_e,Nr=[[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]],Kt=[[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]],un={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},ar={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Gr=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],Br=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)$/),gr=!1,Sn=0;this.__bidiEngine__={};var Pn=function(Vr){var xn=Vr.charCodeAt(),tn=xn>>8,ui=ar[tn];return ui!==void 0?hr[256*ui+(255&xn)]:tn===252||tn===253?"AL":Br.test(tn)?"L":tn===8?"R":"N"},ii=function(Vr){for(var xn,tn=0;tn<Vr.length;tn++){if((xn=Pn(Vr.charAt(tn)))==="L")return!1;if(xn==="R")return!0}return!1},oi=function(Vr,xn,tn,ui){var qn,wi,Qn,Hi,ri=xn[ui];switch(ri){case"L":case"R":gr=!1;break;case"N":case"AN":break;case"EN":gr&&(ri="AN");break;case"AL":gr=!0,ri="R";break;case"WS":ri="N";break;case"CS":ui<1||ui+1>=xn.length||(qn=tn[ui-1])!=="EN"&&qn!=="AN"||(wi=xn[ui+1])!=="EN"&&wi!=="AN"?ri="N":gr&&(wi="AN"),ri=wi===qn?wi:"N";break;case"ES":ri=(qn=ui>0?tn[ui-1]:"B")==="EN"&&ui+1<xn.length&&xn[ui+1]==="EN"?"EN":"N";break;case"ET":if(ui>0&&tn[ui-1]==="EN"){ri="EN";break}if(gr){ri="N";break}for(Qn=ui+1,Hi=xn.length;Qn<Hi&&xn[Qn]==="ET";)Qn++;ri=Qn<Hi&&xn[Qn]==="EN"?"EN":"N";break;case"NSM":if(et&&!wt){for(Hi=xn.length,Qn=ui+1;Qn<Hi&&xn[Qn]==="NSM";)Qn++;if(Qn<Hi){var Mi=Vr[ui],dn=Mi>=1425&&Mi<=2303||Mi===64286;if(qn=xn[Qn],dn&&(qn==="R"||qn==="AL")){ri="R";break}}}ri=ui<1||(qn=xn[ui-1])==="B"?"N":tn[ui-1];break;case"B":gr=!1,Je=!0,ri=Sn;break;case"S":Ye=!0,ri="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":gr=!1;break;case"BN":ri="N"}return ri},ti=function(Vr,xn,tn){var ui=Vr.split("");return tn&&bi(ui,tn,{hiLevel:Sn}),ui.reverse(),xn&&xn.reverse(),ui.join("")},bi=function(Vr,xn,tn){var ui,qn,wi,Qn,Hi,ri=-1,Mi=Vr.length,dn=0,Ur=[],bn=Sn?Kt:Nr,Mn=[];for(gr=!1,Je=!1,Ye=!1,qn=0;qn<Mi;qn++)Mn[qn]=Pn(Vr[qn]);for(wi=0;wi<Mi;wi++){if(Hi=dn,Ur[wi]=oi(Vr,Mn,Ur,wi),ui=240&(dn=bn[Hi][un[Ur[wi]]]),dn&=15,xn[wi]=Qn=bn[dn][5],ui>0)if(ui===16){for(qn=ri;qn<wi;qn++)xn[qn]=1;ri=-1}else ri=-1;if(bn[dn][6])ri===-1&&(ri=wi);else if(ri>-1){for(qn=ri;qn<wi;qn++)xn[qn]=Qn;ri=-1}Mn[wi]==="B"&&(xn[wi]=0),tn.hiLevel|=Qn}Ye&&function(Gn,$n,hi){for(var fi=0;fi<hi;fi++)if(Gn[fi]==="S"){$n[fi]=Sn;for(var gi=fi-1;gi>=0&&Gn[gi]==="WS";gi--)$n[gi]=Sn}}(Mn,xn,Mi)},kn=function(Vr,xn,tn,ui,qn){if(!(qn.hiLevel<Vr)){if(Vr===1&&Sn===1&&!Je)return xn.reverse(),void(tn&&tn.reverse());for(var wi,Qn,Hi,ri,Mi=xn.length,dn=0;dn<Mi;){if(ui[dn]>=Vr){for(Hi=dn+1;Hi<Mi&&ui[Hi]>=Vr;)Hi++;for(ri=dn,Qn=Hi-1;ri<Qn;ri++,Qn--)wi=xn[ri],xn[ri]=xn[Qn],xn[Qn]=wi,tn&&(wi=tn[ri],tn[ri]=tn[Qn],tn[Qn]=wi);dn=Hi}dn++}}},Ii=function(Vr,xn,tn){var ui=Vr.split(""),qn={hiLevel:Sn};return tn||(tn=[]),bi(ui,tn,qn),function(wi,Qn,Hi){if(Hi.hiLevel!==0&&wr)for(var ri,Mi=0;Mi<wi.length;Mi++)Qn[Mi]===1&&(ri=Gr.indexOf(wi[Mi]))>=0&&(wi[Mi]=Gr[ri+1])}(ui,tn,qn),kn(2,ui,xn,tn,qn),kn(1,ui,xn,tn,qn),ui.join("")};return this.__bidiEngine__.doBidiReorder=function(gn,Vr,xn){if(function(ui,qn){if(qn)for(var wi=0;wi<ui.length;wi++)qn[wi]=wi;wt===void 0&&(wt=ii(ui)),Ft===void 0&&(Ft=ii(ui))}(gn,Vr),et||!ut||Ft)if(et&&ut&&wt^Ft)Sn=wt?1:0,gn=ti(gn,Vr,xn);else if(!et&&ut&&Ft)Sn=wt?1:0,gn=Ii(gn,Vr,xn),gn=ti(gn,Vr);else if(!et||wt||ut||Ft){if(et&&!ut&&wt^Ft)gn=ti(gn,Vr),wt?(Sn=0,gn=Ii(gn,Vr,xn)):(Sn=1,gn=Ii(gn,Vr,xn),gn=ti(gn,Vr));else if(et&&wt&&!ut&&Ft)Sn=1,gn=Ii(gn,Vr,xn),gn=ti(gn,Vr);else if(!et&&!ut&&wt^Ft){var tn=wr;wt?(Sn=1,gn=Ii(gn,Vr,xn),Sn=0,wr=!1,gn=Ii(gn,Vr,xn),wr=tn):(Sn=0,gn=Ii(gn,Vr,xn),gn=ti(gn,Vr),Sn=1,wr=!1,gn=Ii(gn,Vr,xn),wr=tn,gn=ti(gn,Vr))}}else Sn=0,gn=Ii(gn,Vr,xn);else Sn=wt?1:0,gn=Ii(gn,Vr,xn);return gn},this.__bidiEngine__.setOptions=function(gn){gn&&(et=gn.isInputVisual,ut=gn.isOutputVisual,wt=gn.isInputRtl,Ft=gn.isOutputRtl,wr=gn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(He),this.__bidiEngine__};var _e=["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"],Be=new $e.__bidiEngine__({isInputVisual:!0});$e.API.events.push(["postProcessText",function(He){var Je=He.text,Ye=(He.x,He.y,He.options||{}),et=(He.mutex,Ye.lang,[]);if(Ye.isInputVisual=typeof Ye.isInputVisual!="boolean"||Ye.isInputVisual,Be.setOptions(Ye),Object.prototype.toString.call(Je)==="[object Array]"){var wt=0;for(et=[],wt=0;wt<Je.length;wt+=1)Object.prototype.toString.call(Je[wt])==="[object Array]"?et.push([Be.doBidiReorder(Je[wt][0]),Je[wt][1],Je[wt][2]]):et.push([Be.doBidiReorder(Je[wt])]);He.text=et}else He.text=Be.doBidiReorder(Je);Be.setOptions({isInputVisual:!0})}])}(U),U.API.TTFFont=function(){function $e(_e){var Be;if(this.rawData=_e,Be=this.contents=new jt(_e),this.contents.pos=4,Be.readString(4)==="ttcf")throw new Error("TTCF not supported.");Be.pos=0,this.parse(),this.subset=new Pi(this),this.registerTTF()}return $e.open=function(_e){return new $e(_e)},$e.prototype.parse=function(){return this.directory=new gt(this.contents),this.head=new Jt(this),this.name=new ir(this),this.cmap=new Pt(this),this.toUnicode={},this.hhea=new yt(this),this.maxp=new Yr(this),this.hmtx=new Jr(this),this.post=new pr(this),this.os2=new Ut(this),this.loca=new Ai(this),this.glyf=new Nn(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]},$e.prototype.registerTTF=function(){var _e,Be,He,Je,Ye;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var et,wt,ut,Ft;for(Ft=[],et=0,wt=(ut=this.bbox).length;et<wt;et++)_e=ut[et],Ft.push(Math.round(_e*this.scaleFactor));return Ft}.call(this),this.stemV=0,this.post.exists?(He=255&(Je=this.post.italic_angle),(32768&(Be=Je>>16))!=0&&(Be=-(1+(65535^Be))),this.italicAngle=+(Be+"."+He)):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=(Ye=this.familyClass)===1||Ye===2||Ye===3||Ye===4||Ye===5||Ye===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")},$e.prototype.characterToGlyph=function(_e){var Be;return((Be=this.cmap.unicode)!=null?Be.codeMap[_e]:void 0)||0},$e.prototype.widthOfGlyph=function(_e){var Be;return Be=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(_e).advance*Be},$e.prototype.widthOfString=function(_e,Be,He){var Je,Ye,et,wt;for(et=0,Ye=0,wt=(_e=""+_e).length;0<=wt?Ye<wt:Ye>wt;Ye=0<=wt?++Ye:--Ye)Je=_e.charCodeAt(Ye),et+=this.widthOfGlyph(this.characterToGlyph(Je))+He*(1e3/Be)||0;return et*(Be/1e3)},$e.prototype.lineHeight=function(_e,Be){var He;return Be==null&&(Be=!1),He=Be?this.lineGap:0,(this.ascender+He-this.decender)/1e3*_e},$e}();var cn,jt=function(){function $e(_e){this.data=_e!=null?_e:[],this.pos=0,this.length=this.data.length}return $e.prototype.readByte=function(){return this.data[this.pos++]},$e.prototype.writeByte=function(_e){return this.data[this.pos++]=_e},$e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},$e.prototype.writeUInt32=function(_e){return this.writeByte(_e>>>24&255),this.writeByte(_e>>16&255),this.writeByte(_e>>8&255),this.writeByte(255&_e)},$e.prototype.readInt32=function(){var _e;return(_e=this.readUInt32())>=2147483648?_e-4294967296:_e},$e.prototype.writeInt32=function(_e){return _e<0&&(_e+=4294967296),this.writeUInt32(_e)},$e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},$e.prototype.writeUInt16=function(_e){return this.writeByte(_e>>8&255),this.writeByte(255&_e)},$e.prototype.readInt16=function(){var _e;return(_e=this.readUInt16())>=32768?_e-65536:_e},$e.prototype.writeInt16=function(_e){return _e<0&&(_e+=65536),this.writeUInt16(_e)},$e.prototype.readString=function(_e){var Be,He;for(He=[],Be=0;0<=_e?Be<_e:Be>_e;Be=0<=_e?++Be:--Be)He[Be]=String.fromCharCode(this.readByte());return He.join("")},$e.prototype.writeString=function(_e){var Be,He,Je;for(Je=[],Be=0,He=_e.length;0<=He?Be<He:Be>He;Be=0<=He?++Be:--Be)Je.push(this.writeByte(_e.charCodeAt(Be)));return Je},$e.prototype.readShort=function(){return this.readInt16()},$e.prototype.writeShort=function(_e){return this.writeInt16(_e)},$e.prototype.readLongLong=function(){var _e,Be,He,Je,Ye,et,wt,ut;return _e=this.readByte(),Be=this.readByte(),He=this.readByte(),Je=this.readByte(),Ye=this.readByte(),et=this.readByte(),wt=this.readByte(),ut=this.readByte(),128&_e?-1*(72057594037927940*(255^_e)+281474976710656*(255^Be)+1099511627776*(255^He)+4294967296*(255^Je)+16777216*(255^Ye)+65536*(255^et)+256*(255^wt)+(255^ut)+1):72057594037927940*_e+281474976710656*Be+1099511627776*He+4294967296*Je+16777216*Ye+65536*et+256*wt+ut},$e.prototype.writeLongLong=function(_e){var Be,He;return Be=Math.floor(_e/4294967296),He=4294967295&_e,this.writeByte(Be>>24&255),this.writeByte(Be>>16&255),this.writeByte(Be>>8&255),this.writeByte(255&Be),this.writeByte(He>>24&255),this.writeByte(He>>16&255),this.writeByte(He>>8&255),this.writeByte(255&He)},$e.prototype.readInt=function(){return this.readInt32()},$e.prototype.writeInt=function(_e){return this.writeInt32(_e)},$e.prototype.read=function(_e){var Be,He;for(Be=[],He=0;0<=_e?He<_e:He>_e;He=0<=_e?++He:--He)Be.push(this.readByte());return Be},$e.prototype.write=function(_e){var Be,He,Je,Ye;for(Ye=[],He=0,Je=_e.length;He<Je;He++)Be=_e[He],Ye.push(this.writeByte(Be));return Ye},$e}(),gt=function(){var $e;function _e(Be){var He,Je,Ye;for(this.scalarType=Be.readInt(),this.tableCount=Be.readShort(),this.searchRange=Be.readShort(),this.entrySelector=Be.readShort(),this.rangeShift=Be.readShort(),this.tables={},Je=0,Ye=this.tableCount;0<=Ye?Je<Ye:Je>Ye;Je=0<=Ye?++Je:--Je)He={tag:Be.readString(4),checksum:Be.readInt(),offset:Be.readInt(),length:Be.readInt()},this.tables[He.tag]=He}return _e.prototype.encode=function(Be){var He,Je,Ye,et,wt,ut,Ft,wr,hr,Nr,Kt,un,ar;for(ar in Kt=Object.keys(Be).length,ut=Math.log(2),hr=16*Math.floor(Math.log(Kt)/ut),et=Math.floor(hr/ut),wr=16*Kt-hr,(Je=new jt).writeInt(this.scalarType),Je.writeShort(Kt),Je.writeShort(hr),Je.writeShort(et),Je.writeShort(wr),Ye=16*Kt,Ft=Je.pos+Ye,wt=null,un=[],Be)for(Nr=Be[ar],Je.writeString(ar),Je.writeInt($e(Nr)),Je.writeInt(Ft),Je.writeInt(Nr.length),un=un.concat(Nr),ar==="head"&&(wt=Ft),Ft+=Nr.length;Ft%4;)un.push(0),Ft++;return Je.write(un),He=2981146554-$e(Je.data),Je.pos=wt+8,Je.writeUInt32(He),Je.data},$e=function(He){var Je,Ye,et,wt;for(He=In.call(He);He.length%4;)He.push(0);for(et=new jt(He),Ye=0,Je=0,wt=He.length;Je<wt;Je=Je+=4)Ye+=et.readUInt32();return 4294967295&Ye},_e}(),dt={}.hasOwnProperty,Qt=function(_e,Be){for(var He in Be)dt.call(Be,He)&&(_e[He]=Be[He]);function Je(){this.constructor=_e}return Je.prototype=Be.prototype,_e.prototype=new Je,_e.__super__=Be.prototype,_e};cn=function(){function $e(_e){var Be;this.file=_e,Be=this.file.directory.tables[this.tag],this.exists=!!Be,Be&&(this.offset=Be.offset,this.length=Be.length,this.parse(this.file.contents))}return $e.prototype.parse=function(){},$e.prototype.encode=function(){},$e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},$e}();var Jt=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="head",_e.prototype.parse=function(Be){return Be.pos=this.offset,this.version=Be.readInt(),this.revision=Be.readInt(),this.checkSumAdjustment=Be.readInt(),this.magicNumber=Be.readInt(),this.flags=Be.readShort(),this.unitsPerEm=Be.readShort(),this.created=Be.readLongLong(),this.modified=Be.readLongLong(),this.xMin=Be.readShort(),this.yMin=Be.readShort(),this.xMax=Be.readShort(),this.yMax=Be.readShort(),this.macStyle=Be.readShort(),this.lowestRecPPEM=Be.readShort(),this.fontDirectionHint=Be.readShort(),this.indexToLocFormat=Be.readShort(),this.glyphDataFormat=Be.readShort()},_e.prototype.encode=function(Be){var He;return(He=new jt).writeInt(this.version),He.writeInt(this.revision),He.writeInt(this.checkSumAdjustment),He.writeInt(this.magicNumber),He.writeShort(this.flags),He.writeShort(this.unitsPerEm),He.writeLongLong(this.created),He.writeLongLong(this.modified),He.writeShort(this.xMin),He.writeShort(this.yMin),He.writeShort(this.xMax),He.writeShort(this.yMax),He.writeShort(this.macStyle),He.writeShort(this.lowestRecPPEM),He.writeShort(this.fontDirectionHint),He.writeShort(Be),He.writeShort(this.glyphDataFormat),He.data},_e}(),xt=function(){function $e(_e,Be){var He,Je,Ye,et,wt,ut,Ft,wr,hr,Nr,Kt,un,ar,Gr,Br,gr,Sn;switch(this.platformID=_e.readUInt16(),this.encodingID=_e.readShort(),this.offset=Be+_e.readInt(),hr=_e.pos,_e.pos=this.offset,this.format=_e.readUInt16(),this.length=_e.readUInt16(),this.language=_e.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(ut=0;ut<256;++ut)this.codeMap[ut]=_e.readByte();break;case 4:for(Kt=_e.readUInt16(),Nr=Kt/2,_e.pos+=6,Ye=function(){var Pn,ii;for(ii=[],ut=Pn=0;0<=Nr?Pn<Nr:Pn>Nr;ut=0<=Nr?++Pn:--Pn)ii.push(_e.readUInt16());return ii}(),_e.pos+=2,ar=function(){var Pn,ii;for(ii=[],ut=Pn=0;0<=Nr?Pn<Nr:Pn>Nr;ut=0<=Nr?++Pn:--Pn)ii.push(_e.readUInt16());return ii}(),Ft=function(){var Pn,ii;for(ii=[],ut=Pn=0;0<=Nr?Pn<Nr:Pn>Nr;ut=0<=Nr?++Pn:--Pn)ii.push(_e.readUInt16());return ii}(),wr=function(){var Pn,ii;for(ii=[],ut=Pn=0;0<=Nr?Pn<Nr:Pn>Nr;ut=0<=Nr?++Pn:--Pn)ii.push(_e.readUInt16());return ii}(),Je=(this.length-_e.pos+this.offset)/2,wt=function(){var Pn,ii;for(ii=[],ut=Pn=0;0<=Je?Pn<Je:Pn>Je;ut=0<=Je?++Pn:--Pn)ii.push(_e.readUInt16());return ii}(),ut=Br=0,Sn=Ye.length;Br<Sn;ut=++Br)for(Gr=Ye[ut],He=gr=un=ar[ut];un<=Gr?gr<=Gr:gr>=Gr;He=un<=Gr?++gr:--gr)wr[ut]===0?et=He+Ft[ut]:(et=wt[wr[ut]/2+(He-un)-(Nr-ut)]||0)!==0&&(et+=Ft[ut]),this.codeMap[He]=65535&et}_e.pos=hr}return $e.encode=function(_e,Be){var He,Je,Ye,et,wt,ut,Ft,wr,hr,Nr,Kt,un,ar,Gr,Br,gr,Sn,Pn,ii,oi,ti,bi,kn,Ii,gn,Vr,xn,tn,ui,qn,wi,Qn,Hi,ri,Mi,dn,Ur,bn,Mn,Gn,$n,hi,fi,gi,Wi,na;switch(tn=new jt,et=Object.keys(_e).sort(function($i,Ha){return $i-Ha}),Be){case"macroman":for(ar=0,Gr=function(){var $i=[];for(un=0;un<256;++un)$i.push(0);return $i}(),gr={0:0},Ye={},ui=0,Hi=et.length;ui<Hi;ui++)gr[fi=_e[Je=et[ui]]]==null&&(gr[fi]=++ar),Ye[Je]={old:_e[Je],new:gr[_e[Je]]},Gr[Je]=gr[_e[Je]];return tn.writeUInt16(1),tn.writeUInt16(0),tn.writeUInt32(12),tn.writeUInt16(0),tn.writeUInt16(262),tn.writeUInt16(0),tn.write(Gr),{charMap:Ye,subtable:tn.data,maxGlyphID:ar+1};case"unicode":for(Vr=[],hr=[],Sn=0,gr={},He={},Br=Ft=null,qn=0,ri=et.length;qn<ri;qn++)gr[ii=_e[Je=et[qn]]]==null&&(gr[ii]=++Sn),He[Je]={old:ii,new:gr[ii]},wt=gr[ii]-Je,Br!=null&&wt===Ft||(Br&&hr.push(Br),Vr.push(Je),Ft=wt),Br=Je;for(Br&&hr.push(Br),hr.push(65535),Vr.push(65535),Ii=2*(kn=Vr.length),bi=2*Math.pow(Math.log(kn)/Math.LN2,2),Nr=Math.log(bi/2)/Math.LN2,ti=2*kn-bi,ut=[],oi=[],Kt=[],un=wi=0,Mi=Vr.length;wi<Mi;un=++wi){if(gn=Vr[un],wr=hr[un],gn===65535){ut.push(0),oi.push(0);break}if(gn-(xn=He[gn].new)>=32768)for(ut.push(0),oi.push(2*(Kt.length+kn-un)),Je=Qn=gn;gn<=wr?Qn<=wr:Qn>=wr;Je=gn<=wr?++Qn:--Qn)Kt.push(He[Je].new);else ut.push(xn-gn),oi.push(0)}for(tn.writeUInt16(3),tn.writeUInt16(1),tn.writeUInt32(12),tn.writeUInt16(4),tn.writeUInt16(16+8*kn+2*Kt.length),tn.writeUInt16(0),tn.writeUInt16(Ii),tn.writeUInt16(bi),tn.writeUInt16(Nr),tn.writeUInt16(ti),$n=0,dn=hr.length;$n<dn;$n++)Je=hr[$n],tn.writeUInt16(Je);for(tn.writeUInt16(0),hi=0,Ur=Vr.length;hi<Ur;hi++)Je=Vr[hi],tn.writeUInt16(Je);for(gi=0,bn=ut.length;gi<bn;gi++)wt=ut[gi],tn.writeUInt16(wt);for(Wi=0,Mn=oi.length;Wi<Mn;Wi++)Pn=oi[Wi],tn.writeUInt16(Pn);for(na=0,Gn=Kt.length;na<Gn;na++)ar=Kt[na],tn.writeUInt16(ar);return{charMap:He,subtable:tn.data,maxGlyphID:Sn+1}}},$e}(),Pt=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="cmap",_e.prototype.parse=function(Be){var He,Je,Ye;for(Be.pos=this.offset,this.version=Be.readUInt16(),Ye=Be.readUInt16(),this.tables=[],this.unicode=null,Je=0;0<=Ye?Je<Ye:Je>Ye;Je=0<=Ye?++Je:--Je)He=new xt(Be,this.offset),this.tables.push(He),He.isUnicode&&this.unicode==null&&(this.unicode=He);return!0},_e.encode=function(Be,He){var Je,Ye;return He==null&&(He="macroman"),Je=xt.encode(Be,He),(Ye=new jt).writeUInt16(0),Ye.writeUInt16(1),Je.table=Ye.data.concat(Je.subtable),Je},_e}(),yt=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="hhea",_e.prototype.parse=function(Be){return Be.pos=this.offset,this.version=Be.readInt(),this.ascender=Be.readShort(),this.decender=Be.readShort(),this.lineGap=Be.readShort(),this.advanceWidthMax=Be.readShort(),this.minLeftSideBearing=Be.readShort(),this.minRightSideBearing=Be.readShort(),this.xMaxExtent=Be.readShort(),this.caretSlopeRise=Be.readShort(),this.caretSlopeRun=Be.readShort(),this.caretOffset=Be.readShort(),Be.pos+=8,this.metricDataFormat=Be.readShort(),this.numberOfMetrics=Be.readUInt16()},_e}(),Ut=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="OS/2",_e.prototype.parse=function(Be){if(Be.pos=this.offset,this.version=Be.readUInt16(),this.averageCharWidth=Be.readShort(),this.weightClass=Be.readUInt16(),this.widthClass=Be.readUInt16(),this.type=Be.readShort(),this.ySubscriptXSize=Be.readShort(),this.ySubscriptYSize=Be.readShort(),this.ySubscriptXOffset=Be.readShort(),this.ySubscriptYOffset=Be.readShort(),this.ySuperscriptXSize=Be.readShort(),this.ySuperscriptYSize=Be.readShort(),this.ySuperscriptXOffset=Be.readShort(),this.ySuperscriptYOffset=Be.readShort(),this.yStrikeoutSize=Be.readShort(),this.yStrikeoutPosition=Be.readShort(),this.familyClass=Be.readShort(),this.panose=function(){var He,Je;for(Je=[],He=0;He<10;++He)Je.push(Be.readByte());return Je}(),this.charRange=function(){var He,Je;for(Je=[],He=0;He<4;++He)Je.push(Be.readInt());return Je}(),this.vendorID=Be.readString(4),this.selection=Be.readShort(),this.firstCharIndex=Be.readShort(),this.lastCharIndex=Be.readShort(),this.version>0&&(this.ascent=Be.readShort(),this.descent=Be.readShort(),this.lineGap=Be.readShort(),this.winAscent=Be.readShort(),this.winDescent=Be.readShort(),this.codePageRange=function(){var He,Je;for(Je=[],He=0;He<2;He=++He)Je.push(Be.readInt());return Je}(),this.version>1))return this.xHeight=Be.readShort(),this.capHeight=Be.readShort(),this.defaultChar=Be.readShort(),this.breakChar=Be.readShort(),this.maxContext=Be.readShort()},_e}(),pr=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="post",_e.prototype.parse=function(Be){var He,Je,Ye;switch(Be.pos=this.offset,this.format=Be.readInt(),this.italicAngle=Be.readInt(),this.underlinePosition=Be.readShort(),this.underlineThickness=Be.readShort(),this.isFixedPitch=Be.readInt(),this.minMemType42=Be.readInt(),this.maxMemType42=Be.readInt(),this.minMemType1=Be.readInt(),this.maxMemType1=Be.readInt(),this.format){case 65536:break;case 131072:var et;for(Je=Be.readUInt16(),this.glyphNameIndex=[],et=0;0<=Je?et<Je:et>Je;et=0<=Je?++et:--et)this.glyphNameIndex.push(Be.readUInt16());for(this.names=[],Ye=[];Be.pos<this.offset+this.length;)He=Be.readByte(),Ye.push(this.names.push(Be.readString(He)));return Ye;case 151552:return Je=Be.readUInt16(),this.offsets=Be.read(Je);case 196608:break;case 262144:return this.map=function(){var wt,ut,Ft;for(Ft=[],et=wt=0,ut=this.file.maxp.numGlyphs;0<=ut?wt<ut:wt>ut;et=0<=ut?++wt:--wt)Ft.push(Be.readUInt32());return Ft}.call(this)}},_e}(),sr=function(_e,Be){this.raw=_e,this.length=_e.length,this.platformID=Be.platformID,this.encodingID=Be.encodingID,this.languageID=Be.languageID},ir=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="name",_e.prototype.parse=function(Be){var He,Je,Ye,et,wt,ut,Ft,wr,hr,Nr,Kt;for(Be.pos=this.offset,Be.readShort(),He=Be.readShort(),ut=Be.readShort(),Je=[],et=0;0<=He?et<He:et>He;et=0<=He?++et:--et)Je.push({platformID:Be.readShort(),encodingID:Be.readShort(),languageID:Be.readShort(),nameID:Be.readShort(),length:Be.readShort(),offset:this.offset+ut+Be.readShort()});for(Ft={},et=hr=0,Nr=Je.length;hr<Nr;et=++hr)Ye=Je[et],Be.pos=Ye.offset,wr=Be.readString(Ye.length),wt=new sr(wr,Ye),Ft[Kt=Ye.nameID]==null&&(Ft[Kt]=[]),Ft[Ye.nameID].push(wt);this.strings=Ft,this.copyright=Ft[0],this.fontFamily=Ft[1],this.fontSubfamily=Ft[2],this.uniqueSubfamily=Ft[3],this.fontName=Ft[4],this.version=Ft[5];try{this.postscriptName=Ft[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(un){this.postscriptName=Ft[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Ft[7],this.manufacturer=Ft[8],this.designer=Ft[9],this.description=Ft[10],this.vendorUrl=Ft[11],this.designerUrl=Ft[12],this.license=Ft[13],this.licenseUrl=Ft[14],this.preferredFamily=Ft[15],this.preferredSubfamily=Ft[17],this.compatibleFull=Ft[18],this.sampleText=Ft[19]},_e}(),Yr=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="maxp",_e.prototype.parse=function(Be){return Be.pos=this.offset,this.version=Be.readInt(),this.numGlyphs=Be.readUInt16(),this.maxPoints=Be.readUInt16(),this.maxContours=Be.readUInt16(),this.maxCompositePoints=Be.readUInt16(),this.maxComponentContours=Be.readUInt16(),this.maxZones=Be.readUInt16(),this.maxTwilightPoints=Be.readUInt16(),this.maxStorage=Be.readUInt16(),this.maxFunctionDefs=Be.readUInt16(),this.maxInstructionDefs=Be.readUInt16(),this.maxStackElements=Be.readUInt16(),this.maxSizeOfInstructions=Be.readUInt16(),this.maxComponentElements=Be.readUInt16(),this.maxComponentDepth=Be.readUInt16()},_e}(),Jr=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="hmtx",_e.prototype.parse=function(Be){var He,Je,Ye,et,wt,ut,Ft;for(Be.pos=this.offset,this.metrics=[],He=0,ut=this.file.hhea.numberOfMetrics;0<=ut?He<ut:He>ut;He=0<=ut?++He:--He)this.metrics.push({advance:Be.readUInt16(),lsb:Be.readInt16()});for(Ye=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var wr,hr;for(hr=[],He=wr=0;0<=Ye?wr<Ye:wr>Ye;He=0<=Ye?++wr:--wr)hr.push(Be.readInt16());return hr}(),this.widths=function(){var wr,hr,Nr,Kt;for(Kt=[],wr=0,hr=(Nr=this.metrics).length;wr<hr;wr++)et=Nr[wr],Kt.push(et.advance);return Kt}.call(this),Je=this.widths[this.widths.length-1],Ft=[],He=wt=0;0<=Ye?wt<Ye:wt>Ye;He=0<=Ye?++wt:--wt)Ft.push(this.widths.push(Je));return Ft},_e.prototype.forGlyph=function(Be){return Be in this.metrics?this.metrics[Be]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Be-this.metrics.length]}},_e}(),In=[].slice,Nn=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="glyf",_e.prototype.parse=function(){return this.cache={}},_e.prototype.glyphFor=function(Be){var He,Je,Ye,et,wt,ut,Ft,wr,hr,Nr;return Be in this.cache?this.cache[Be]:(et=this.file.loca,He=this.file.contents,Je=et.indexOf(Be),(Ye=et.lengthOf(Be))===0?this.cache[Be]=null:(He.pos=this.offset+Je,wt=(ut=new jt(He.read(Ye))).readShort(),wr=ut.readShort(),Nr=ut.readShort(),Ft=ut.readShort(),hr=ut.readShort(),this.cache[Be]=wt===-1?new ei(ut,wr,Nr,Ft,hr):new zn(ut,wt,wr,Nr,Ft,hr),this.cache[Be]))},_e.prototype.encode=function(Be,He,Je){var Ye,et,wt,ut,Ft;for(wt=[],et=[],ut=0,Ft=He.length;ut<Ft;ut++)Ye=Be[He[ut]],et.push(wt.length),Ye&&(wt=wt.concat(Ye.encode(Je)));return et.push(wt.length),{table:wt,offsets:et}},_e}(),zn=function(){function $e(_e,Be,He,Je,Ye,et){this.raw=_e,this.numberOfContours=Be,this.xMin=He,this.yMin=Je,this.xMax=Ye,this.yMax=et,this.compound=!1}return $e.prototype.encode=function(){return this.raw.data},$e}(),ei=function(){function $e(_e,Be,He,Je,Ye){var et,wt;for(this.raw=_e,this.xMin=Be,this.yMin=He,this.xMax=Je,this.yMax=Ye,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],et=this.raw;wt=et.readShort(),this.glyphOffsets.push(et.pos),this.glyphIDs.push(et.readUInt16()),32&wt;)et.pos+=1&wt?4:2,128&wt?et.pos+=8:64&wt?et.pos+=4:8&wt&&(et.pos+=2)}return $e.prototype.encode=function(){var _e,Be,He;for(Be=new jt(In.call(this.raw.data)),_e=0,He=this.glyphIDs.length;_e<He;++_e)Be.pos=this.glyphOffsets[_e];return Be.data},$e}(),Ai=function($e){function _e(){return _e.__super__.constructor.apply(this,arguments)}return Qt(_e,cn),_e.prototype.tag="loca",_e.prototype.parse=function(Be){var He,Je;return Be.pos=this.offset,He=this.file.head.indexToLocFormat,this.offsets=He===0?function(){var Ye,et;for(et=[],Je=0,Ye=this.length;Je<Ye;Je+=2)et.push(2*Be.readUInt16());return et}.call(this):function(){var Ye,et;for(et=[],Je=0,Ye=this.length;Je<Ye;Je+=4)et.push(Be.readUInt32());return et}.call(this)},_e.prototype.indexOf=function(Be){return this.offsets[Be]},_e.prototype.lengthOf=function(Be){return this.offsets[Be+1]-this.offsets[Be]},_e.prototype.encode=function(Be,He){for(var Je=new Uint32Array(this.offsets.length),Ye=0,et=0,wt=0;wt<Je.length;++wt)if(Je[wt]=Ye,et<He.length&&He[et]==wt){++et,Je[wt]=Ye;var ut=this.offsets[wt],Ft=this.offsets[wt+1]-ut;Ft>0&&(Ye+=Ft)}for(var wr=new Array(4*Je.length),hr=0;hr<Je.length;++hr)wr[4*hr+3]=255&Je[hr],wr[4*hr+2]=(65280&Je[hr])>>8,wr[4*hr+1]=(16711680&Je[hr])>>16,wr[4*hr]=(4278190080&Je[hr])>>24;return wr},_e}(),Pi=function(){function $e(_e){this.font=_e,this.subset={},this.unicodes={},this.next=33}return $e.prototype.generateCmap=function(){var _e,Be,He,Je,Ye;for(Be in Je=this.font.cmap.tables[0].codeMap,_e={},Ye=this.subset)He=Ye[Be],_e[Be]=Je[He];return _e},$e.prototype.glyphsFor=function(_e){var Be,He,Je,Ye,et,wt,ut;for(Je={},et=0,wt=_e.length;et<wt;et++)Je[Ye=_e[et]]=this.font.glyf.glyphFor(Ye);for(Ye in Be=[],Je)((He=Je[Ye])!=null?He.compound:void 0)&&Be.push.apply(Be,He.glyphIDs);if(Be.length>0)for(Ye in ut=this.glyphsFor(Be))He=ut[Ye],Je[Ye]=He;return Je},$e.prototype.encode=function(_e,Be){var He,Je,Ye,et,wt,ut,Ft,wr,hr,Nr,Kt,un,ar,Gr,Br;for(Je in He=Pt.encode(this.generateCmap(),"unicode"),et=this.glyphsFor(_e),Kt={0:0},Br=He.charMap)Kt[(ut=Br[Je]).old]=ut.new;for(un in Nr=He.maxGlyphID,et)un in Kt||(Kt[un]=Nr++);return wr=function(gr){var Sn,Pn;for(Sn in Pn={},gr)Pn[gr[Sn]]=Sn;return Pn}(Kt),hr=Object.keys(wr).sort(function(gr,Sn){return gr-Sn}),ar=function(){var gr,Sn,Pn;for(Pn=[],gr=0,Sn=hr.length;gr<Sn;gr++)wt=hr[gr],Pn.push(wr[wt]);return Pn}(),Ye=this.font.glyf.encode(et,ar,Kt),Ft=this.font.loca.encode(Ye.offsets,ar),Gr={cmap:this.font.cmap.raw(),glyf:Ye.table,loca:Ft,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(Be)},this.font.os2.exists&&(Gr["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Gr)},$e}();U.API.PDFObject=function(){var $e;function _e(){}return $e=function(He,Je){return(Array(Je+1).join("0")+He).slice(-Je)},_e.convert=function(Be){var He,Je,Ye,et;if(Array.isArray(Be))return"["+function(){var wt,ut,Ft;for(Ft=[],wt=0,ut=Be.length;wt<ut;wt++)He=Be[wt],Ft.push(_e.convert(He));return Ft}().join(" ")+"]";if(typeof Be=="string")return"/"+Be;if(Be!=null?Be.isString:void 0)return"("+Be+")";if(Be instanceof Date)return"(D:"+$e(Be.getUTCFullYear(),4)+$e(Be.getUTCMonth(),2)+$e(Be.getUTCDate(),2)+$e(Be.getUTCHours(),2)+$e(Be.getUTCMinutes(),2)+$e(Be.getUTCSeconds(),2)+"Z)";if({}.toString.call(Be)==="[object Object]"){for(Je in Ye=["<<"],Be)et=Be[Je],Ye.push("/"+Je+" "+_e.convert(et));return Ye.push(">>"),Ye.join(`
|
|
|
`)}return""+Be},_e}(),z.default=U}.call(this,y("yLpj"))},e5VY:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("YNAk"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},e7zE:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("3y9D"),y("WYAk"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.Base,I=L.WordArray,o=N.algo,m=o.SHA1,f=o.HMAC,s=o.PBKDF2=E.extend({cfg:E.extend({keySize:128/32,hasher:m,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,a){for(var r=this.cfg,u=f.create(r.hasher,l),e=I.create(),n=I.create([1]),i=e.words,c=n.words,d=r.keySize,h=r.iterations;i.length<d;){var p=u.update(a).finalize(n);u.reset();for(var g=p.words,v=g.length,A=p,x=1;x<h;x++){A=u.finalize(A),u.reset();for(var b=A.words,w=0;w<v;w++)g[w]^=b[w]}e.concat(p),c[0]++}return e.sigBytes=d*4,e}});N.PBKDF2=function(t,l,a){return s.create(a).compute(t,l)}}(),D.PBKDF2})},eIcI:function(fe,z,y){var D=y("bYtY"),N=y("hM6l");function L(I,o,m){N.call(this,I,o,m),this.type="value",this.angle=0,this.name="",this.model}D.inherits(L,N);var E=L;fe.exports=E},eJH7:function(fe,z,y){var D=y("bYtY");function N(L){var E=L.polar;if(E){D.isArray(E)||(E=[E]);var I=[];D.each(E,function(o,m){o.indicator?(o.type&&!o.shape&&(o.shape=o.type),L.radar=L.radar||[],D.isArray(L.radar)||(L.radar=[L.radar]),L.radar.push(o)):I.push(o)}),L.polar=I}D.each(L.series,function(o){o&&o.type==="radar"&&o.polarIndex&&(o.radarIndex=o.polarIndex)})}fe.exports=N},eP3c:function(fe,z,y){"use strict";function D(je){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(ie){return typeof ie}:D=function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},D(je)}Object.defineProperty(z,"__esModule",{value:!0}),z.inflateReset=ce,z.inflateReset2=ne,z.inflateResetKeep=Ee,z.inflateInit=Ae,z.inflateInit2=ee,z.inflate=ft,z.inflateEnd=At,z.inflateGetHeader=bt,z.inflateSetDictionary=St,z.inflateInfo=z.Z_DEFLATED=z.Z_BUF_ERROR=z.Z_MEM_ERROR=z.Z_DATA_ERROR=z.Z_STREAM_ERROR=z.Z_NEED_DICT=z.Z_STREAM_END=z.Z_OK=z.Z_TREES=z.Z_BLOCK=z.Z_FINISH=void 0;var N=s(y("6BzB")),L=m(y("xlC8")),E=m(y("QV2g")),I=m(y("sjKO")),o=m(y("JSwD"));function m(je){return je&&je.__esModule?je:{default:je}}function f(){if(typeof WeakMap!="function")return null;var je=new WeakMap;return f=function(){return je},je}function s(je){if(je&&je.__esModule)return je;if(je===null||D(je)!=="object"&&typeof je!="function")return{default:je};var pe=f();if(pe&&pe.has(je))return pe.get(je);var ie={},st=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Qe in je)if(Object.prototype.hasOwnProperty.call(je,Qe)){var ve=st?Object.getOwnPropertyDescriptor(je,Qe):null;ve&&(ve.get||ve.set)?Object.defineProperty(ie,Qe,ve):ie[Qe]=je[Qe]}return ie.default=je,pe&&pe.set(je,ie),ie}var t=0,l=1,a=2,r=4;z.Z_FINISH=r;var u=5;z.Z_BLOCK=u;var e=6;z.Z_TREES=e;var n=0;z.Z_OK=n;var i=1;z.Z_STREAM_END=i;var c=2;z.Z_NEED_DICT=c;var d=-2;z.Z_STREAM_ERROR=d;var h=-3;z.Z_DATA_ERROR=h;var p=-4;z.Z_MEM_ERROR=p;var g=-5;z.Z_BUF_ERROR=g;var v=8;z.Z_DEFLATED=v;var A=1,x=2,b=3,w=4,S=5,T=6,C=7,O=8,_=9,M=10,k=11,R=12,B=13,P=14,U=15,j=16,H=17,W=18,G=19,V=20,Z=21,Y=22,Q=23,oe=24,ue=25,Le=26,me=27,Ie=28,X=29,q=30,We=31,$=32,J=852,le=592,de=15,Ne=de;function we(je){return(je>>>24&255)+(je>>>8&65280)+((je&65280)<<8)+((je&255)<<24)}function De(){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 N.Buf16(320),this.work=new N.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ee(je){var pe;return!je||!je.state?d:(pe=je.state,je.total_in=je.total_out=pe.total=0,je.msg="",pe.wrap&&(je.adler=pe.wrap&1),pe.mode=A,pe.last=0,pe.havedict=0,pe.dmax=32768,pe.head=null,pe.hold=0,pe.bits=0,pe.lencode=pe.lendyn=new N.Buf32(J),pe.distcode=pe.distdyn=new N.Buf32(le),pe.sane=1,pe.back=-1,n)}function ce(je){var pe;return!je||!je.state?d:(pe=je.state,pe.wsize=0,pe.whave=0,pe.wnext=0,Ee(je))}function ne(je,pe){var ie,st;return!je||!je.state?d:(st=je.state,pe<0?(ie=0,pe=-pe):(ie=(pe>>4)+1,pe<48&&(pe&=15)),pe&&(pe<8||pe>15)?d:(st.window!==null&&st.wbits!==pe&&(st.window=null),st.wrap=ie,st.wbits=pe,ce(je)))}function ee(je,pe){var ie,st;return je?(st=new De,je.state=st,st.window=null,ie=ne(je,pe),ie!==n&&(je.state=null),ie):d}function Ae(je){return ee(je,Ne)}var Ve=!0,Ke,Oe;function it(je){if(Ve){var pe;for(Ke=new N.Buf32(512),Oe=new N.Buf32(32),pe=0;pe<144;)je.lens[pe++]=8;for(;pe<256;)je.lens[pe++]=9;for(;pe<280;)je.lens[pe++]=7;for(;pe<288;)je.lens[pe++]=8;for((0,o.default)(l,je.lens,0,288,Ke,0,je.work,{bits:9}),pe=0;pe<32;)je.lens[pe++]=5;(0,o.default)(a,je.lens,0,32,Oe,0,je.work,{bits:5}),Ve=!1}je.lencode=Ke,je.lenbits=9,je.distcode=Oe,je.distbits=5}function Fe(je,pe,ie,st){var Qe,ve=je.state;return ve.window===null&&(ve.wsize=1<<ve.wbits,ve.wnext=0,ve.whave=0,ve.window=new N.Buf8(ve.wsize)),st>=ve.wsize?(N.arraySet(ve.window,pe,ie-ve.wsize,ve.wsize,0),ve.wnext=0,ve.whave=ve.wsize):(Qe=ve.wsize-ve.wnext,Qe>st&&(Qe=st),N.arraySet(ve.window,pe,ie-st,Qe,ve.wnext),st-=Qe,st?(N.arraySet(ve.window,pe,ie-st,st,0),ve.wnext=st,ve.whave=ve.wsize):(ve.wnext+=Qe,ve.wnext===ve.wsize&&(ve.wnext=0),ve.whave<ve.wsize&&(ve.whave+=Qe))),0}function ft(je,pe){var ie,st,Qe,ve,Bt,qt,ct,Wt,or,Fr,er,nr,Ot,lt,qe=0,tr,xr,Ar,fr,vn,$r,Ln,tt,nt=new N.Buf8(4),Te,Me,Xe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!je||!je.state||!je.output||!je.input&&je.avail_in!==0)return d;ie=je.state,ie.mode===R&&(ie.mode=B),Bt=je.next_out,Qe=je.output,ct=je.avail_out,ve=je.next_in,st=je.input,qt=je.avail_in,Wt=ie.hold,or=ie.bits,Fr=qt,er=ct,tt=n;e:for(;;)switch(ie.mode){case A:if(ie.wrap===0){ie.mode=B;break}for(;or<16;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if(ie.wrap&2&&Wt===35615){ie.check=0,nt[0]=Wt&255,nt[1]=Wt>>>8&255,ie.check=(0,E.default)(ie.check,nt,2,0),Wt=0,or=0,ie.mode=x;break}if(ie.flags=0,ie.head&&(ie.head.done=!1),!(ie.wrap&1)||(((Wt&255)<<8)+(Wt>>8))%31){je.msg="incorrect header check",ie.mode=q;break}if((Wt&15)!==v){je.msg="unknown compression method",ie.mode=q;break}if(Wt>>>=4,or-=4,Ln=(Wt&15)+8,ie.wbits===0)ie.wbits=Ln;else if(Ln>ie.wbits){je.msg="invalid window size",ie.mode=q;break}ie.dmax=1<<Ln,je.adler=ie.check=1,ie.mode=Wt&512?M:R,Wt=0,or=0;break;case x:for(;or<16;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if(ie.flags=Wt,(ie.flags&255)!==v){je.msg="unknown compression method",ie.mode=q;break}if(ie.flags&57344){je.msg="unknown header flags set",ie.mode=q;break}ie.head&&(ie.head.text=Wt>>8&1),ie.flags&512&&(nt[0]=Wt&255,nt[1]=Wt>>>8&255,ie.check=(0,E.default)(ie.check,nt,2,0)),Wt=0,or=0,ie.mode=b;case b:for(;or<32;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}ie.head&&(ie.head.time=Wt),ie.flags&512&&(nt[0]=Wt&255,nt[1]=Wt>>>8&255,nt[2]=Wt>>>16&255,nt[3]=Wt>>>24&255,ie.check=(0,E.default)(ie.check,nt,4,0)),Wt=0,or=0,ie.mode=w;case w:for(;or<16;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}ie.head&&(ie.head.xflags=Wt&255,ie.head.os=Wt>>8),ie.flags&512&&(nt[0]=Wt&255,nt[1]=Wt>>>8&255,ie.check=(0,E.default)(ie.check,nt,2,0)),Wt=0,or=0,ie.mode=S;case S:if(ie.flags&1024){for(;or<16;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}ie.length=Wt,ie.head&&(ie.head.extra_len=Wt),ie.flags&512&&(nt[0]=Wt&255,nt[1]=Wt>>>8&255,ie.check=(0,E.default)(ie.check,nt,2,0)),Wt=0,or=0}else ie.head&&(ie.head.extra=null);ie.mode=T;case T:if(ie.flags&1024&&(nr=ie.length,nr>qt&&(nr=qt),nr&&(ie.head&&(Ln=ie.head.extra_len-ie.length,ie.head.extra||(ie.head.extra=new Array(ie.head.extra_len)),N.arraySet(ie.head.extra,st,ve,nr,Ln)),ie.flags&512&&(ie.check=(0,E.default)(ie.check,st,nr,ve)),qt-=nr,ve+=nr,ie.length-=nr),ie.length))break e;ie.length=0,ie.mode=C;case C:if(ie.flags&2048){if(qt===0)break e;nr=0;do Ln=st[ve+nr++],ie.head&&Ln&&ie.length<65536&&(ie.head.name+=String.fromCharCode(Ln));while(Ln&&nr<qt);if(ie.flags&512&&(ie.check=(0,E.default)(ie.check,st,nr,ve)),qt-=nr,ve+=nr,Ln)break e}else ie.head&&(ie.head.name=null);ie.length=0,ie.mode=O;case O:if(ie.flags&4096){if(qt===0)break e;nr=0;do Ln=st[ve+nr++],ie.head&&Ln&&ie.length<65536&&(ie.head.comment+=String.fromCharCode(Ln));while(Ln&&nr<qt);if(ie.flags&512&&(ie.check=(0,E.default)(ie.check,st,nr,ve)),qt-=nr,ve+=nr,Ln)break e}else ie.head&&(ie.head.comment=null);ie.mode=_;case _:if(ie.flags&512){for(;or<16;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if(Wt!==(ie.check&65535)){je.msg="header crc mismatch",ie.mode=q;break}Wt=0,or=0}ie.head&&(ie.head.hcrc=ie.flags>>9&1,ie.head.done=!0),je.adler=ie.check=0,ie.mode=R;break;case M:for(;or<32;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}je.adler=ie.check=we(Wt),Wt=0,or=0,ie.mode=k;case k:if(ie.havedict===0)return je.next_out=Bt,je.avail_out=ct,je.next_in=ve,je.avail_in=qt,ie.hold=Wt,ie.bits=or,c;je.adler=ie.check=1,ie.mode=R;case R:if(pe===u||pe===e)break e;case B:if(ie.last){Wt>>>=or&7,or-=or&7,ie.mode=me;break}for(;or<3;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}ie.last=Wt&1,Wt>>>=1,or-=1;switch(Wt&3){case 0:ie.mode=P;break;case 1:if(it(ie),ie.mode=V,pe===e){Wt>>>=2,or-=2;break e}break;case 2:ie.mode=H;break;case 3:je.msg="invalid block type",ie.mode=q}Wt>>>=2,or-=2;break;case P:for(Wt>>>=or&7,or-=or&7;or<32;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if((Wt&65535)!==(Wt>>>16^65535)){je.msg="invalid stored block lengths",ie.mode=q;break}if(ie.length=Wt&65535,Wt=0,or=0,ie.mode=U,pe===e)break e;case U:ie.mode=j;case j:if(nr=ie.length,nr){if(nr>qt&&(nr=qt),nr>ct&&(nr=ct),nr===0)break e;N.arraySet(Qe,st,ve,nr,Bt),qt-=nr,ve+=nr,ct-=nr,Bt+=nr,ie.length-=nr;break}ie.mode=R;break;case H:for(;or<14;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if(ie.nlen=(Wt&31)+257,Wt>>>=5,or-=5,ie.ndist=(Wt&31)+1,Wt>>>=5,or-=5,ie.ncode=(Wt&15)+4,Wt>>>=4,or-=4,ie.nlen>286||ie.ndist>30){je.msg="too many length or distance symbols",ie.mode=q;break}ie.have=0,ie.mode=W;case W:for(;ie.have<ie.ncode;){for(;or<3;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}ie.lens[Xe[ie.have++]]=Wt&7,Wt>>>=3,or-=3}for(;ie.have<19;)ie.lens[Xe[ie.have++]]=0;if(ie.lencode=ie.lendyn,ie.lenbits=7,Te={bits:ie.lenbits},tt=(0,o.default)(t,ie.lens,0,19,ie.lencode,0,ie.work,Te),ie.lenbits=Te.bits,tt){je.msg="invalid code lengths set",ie.mode=q;break}ie.have=0,ie.mode=G;case G:for(;ie.have<ie.nlen+ie.ndist;){for(;!(qe=ie.lencode[Wt&(1<<ie.lenbits)-1],tr=qe>>>24,xr=qe>>>16&255,Ar=qe&65535,tr<=or);){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if(Ar<16)Wt>>>=tr,or-=tr,ie.lens[ie.have++]=Ar;else{if(Ar===16){for(Me=tr+2;or<Me;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if(Wt>>>=tr,or-=tr,ie.have===0){je.msg="invalid bit length repeat",ie.mode=q;break}Ln=ie.lens[ie.have-1],nr=3+(Wt&3),Wt>>>=2,or-=2}else if(Ar===17){for(Me=tr+3;or<Me;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}Wt>>>=tr,or-=tr,Ln=0,nr=3+(Wt&7),Wt>>>=3,or-=3}else{for(Me=tr+7;or<Me;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}Wt>>>=tr,or-=tr,Ln=0,nr=11+(Wt&127),Wt>>>=7,or-=7}if(ie.have+nr>ie.nlen+ie.ndist){je.msg="invalid bit length repeat",ie.mode=q;break}for(;nr--;)ie.lens[ie.have++]=Ln}}if(ie.mode===q)break;if(ie.lens[256]===0){je.msg="invalid code -- missing end-of-block",ie.mode=q;break}if(ie.lenbits=9,Te={bits:ie.lenbits},tt=(0,o.default)(l,ie.lens,0,ie.nlen,ie.lencode,0,ie.work,Te),ie.lenbits=Te.bits,tt){je.msg="invalid literal/lengths set",ie.mode=q;break}if(ie.distbits=6,ie.distcode=ie.distdyn,Te={bits:ie.distbits},tt=(0,o.default)(a,ie.lens,ie.nlen,ie.ndist,ie.distcode,0,ie.work,Te),ie.distbits=Te.bits,tt){je.msg="invalid distances set",ie.mode=q;break}if(ie.mode=V,pe===e)break e;case V:ie.mode=Z;case Z:if(qt>=6&&ct>=258){je.next_out=Bt,je.avail_out=ct,je.next_in=ve,je.avail_in=qt,ie.hold=Wt,ie.bits=or,(0,I.default)(je,er),Bt=je.next_out,Qe=je.output,ct=je.avail_out,ve=je.next_in,st=je.input,qt=je.avail_in,Wt=ie.hold,or=ie.bits,ie.mode===R&&(ie.back=-1);break}for(ie.back=0;!(qe=ie.lencode[Wt&(1<<ie.lenbits)-1],tr=qe>>>24,xr=qe>>>16&255,Ar=qe&65535,tr<=or);){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if(xr&&(xr&240)===0){for(fr=tr,vn=xr,$r=Ar;!(qe=ie.lencode[$r+((Wt&(1<<fr+vn)-1)>>fr)],tr=qe>>>24,xr=qe>>>16&255,Ar=qe&65535,fr+tr<=or);){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}Wt>>>=fr,or-=fr,ie.back+=fr}if(Wt>>>=tr,or-=tr,ie.back+=tr,ie.length=Ar,xr===0){ie.mode=Le;break}if(xr&32){ie.back=-1,ie.mode=R;break}if(xr&64){je.msg="invalid literal/length code",ie.mode=q;break}ie.extra=xr&15,ie.mode=Y;case Y:if(ie.extra){for(Me=ie.extra;or<Me;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}ie.length+=Wt&(1<<ie.extra)-1,Wt>>>=ie.extra,or-=ie.extra,ie.back+=ie.extra}ie.was=ie.length,ie.mode=Q;case Q:for(;!(qe=ie.distcode[Wt&(1<<ie.distbits)-1],tr=qe>>>24,xr=qe>>>16&255,Ar=qe&65535,tr<=or);){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if((xr&240)===0){for(fr=tr,vn=xr,$r=Ar;!(qe=ie.distcode[$r+((Wt&(1<<fr+vn)-1)>>fr)],tr=qe>>>24,xr=qe>>>16&255,Ar=qe&65535,fr+tr<=or);){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}Wt>>>=fr,or-=fr,ie.back+=fr}if(Wt>>>=tr,or-=tr,ie.back+=tr,xr&64){je.msg="invalid distance code",ie.mode=q;break}ie.offset=Ar,ie.extra=xr&15,ie.mode=oe;case oe:if(ie.extra){for(Me=ie.extra;or<Me;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}ie.offset+=Wt&(1<<ie.extra)-1,Wt>>>=ie.extra,or-=ie.extra,ie.back+=ie.extra}if(ie.offset>ie.dmax){je.msg="invalid distance too far back",ie.mode=q;break}ie.mode=ue;case ue:if(ct===0)break e;if(nr=er-ct,ie.offset>nr){if(nr=ie.offset-nr,nr>ie.whave&&ie.sane){je.msg="invalid distance too far back",ie.mode=q;break}nr>ie.wnext?(nr-=ie.wnext,Ot=ie.wsize-nr):Ot=ie.wnext-nr,nr>ie.length&&(nr=ie.length),lt=ie.window}else lt=Qe,Ot=Bt-ie.offset,nr=ie.length;nr>ct&&(nr=ct),ct-=nr,ie.length-=nr;do Qe[Bt++]=lt[Ot++];while(--nr);ie.length===0&&(ie.mode=Z);break;case Le:if(ct===0)break e;Qe[Bt++]=ie.length,ct--,ie.mode=Z;break;case me:if(ie.wrap){for(;or<32;){if(qt===0)break e;qt--,Wt|=st[ve++]<<or,or+=8}if(er-=ct,je.total_out+=er,ie.total+=er,er&&(je.adler=ie.check=ie.flags?(0,E.default)(ie.check,Qe,er,Bt-er):(0,L.default)(ie.check,Qe,er,Bt-er)),er=ct,(ie.flags?Wt:we(Wt))!==ie.check){je.msg="incorrect data check",ie.mode=q;break}Wt=0,or=0}ie.mode=Ie;case Ie:if(ie.wrap&&ie.flags){for(;or<32;){if(qt===0)break e;qt--,Wt+=st[ve++]<<or,or+=8}if(Wt!==(ie.total&4294967295)){je.msg="incorrect length check",ie.mode=q;break}Wt=0,or=0}ie.mode=X;case X:tt=i;break e;case q:tt=h;break e;case We:return p;case $:default:return d}return je.next_out=Bt,je.avail_out=ct,je.next_in=ve,je.avail_in=qt,ie.hold=Wt,ie.bits=or,(ie.wsize||er!==je.avail_out&&ie.mode<q&&(ie.mode<me||pe!==r))&&Fe(je,je.output,je.next_out,er-je.avail_out)?(ie.mode=We,p):(Fr-=je.avail_in,er-=je.avail_out,je.total_in+=Fr,je.total_out+=er,ie.total+=er,ie.wrap&&er&&(je.adler=ie.check=ie.flags?(0,E.default)(ie.check,Qe,er,je.next_out-er):(0,L.default)(ie.check,Qe,er,je.next_out-er)),je.data_type=ie.bits+(ie.last?64:0)+(ie.mode===R?128:0)+(ie.mode===V||ie.mode===U?256:0),(Fr===0&&er===0||pe===r)&&tt===n&&(tt=g),tt)}function At(je){if(!je||!je.state)return d;var pe=je.state;return pe.window&&(pe.window=null),je.state=null,n}function bt(je,pe){var ie;return!je||!je.state?d:(ie=je.state,(ie.wrap&2)===0?d:(ie.head=pe,pe.done=!1,n))}function St(je,pe){var ie=pe.length,st,Qe,ve;return!je||!je.state?d:(st=je.state,st.wrap!==0&&st.mode!==k?d:st.mode===k&&(Qe=1,Qe=(0,L.default)(Qe,pe,ie,0),Qe!==st.check)?h:(ve=Fe(je,pe,ie,ie),ve?(st.mode=We,p):(st.havedict=1,n)))}var Et="pako inflate (from Nodeca project)";z.inflateInfo=Et},ePAk:function(fe,z,y){var D=y("ProS");y("2fGM");var N=D.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(L){var E,I=this.ecModel;return I.eachComponent(L,function(o){o.getCoordSysModel()===this&&(E=o)},this),E},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});fe.exports=N},eRkO:function(fe,z,y){var D=y("+TT/"),N=D.getLayoutRect,L=D.box,E=D.positionElement,I=y("7aKB"),o=y("IwbS");function m(s,t,l){var a=t.getBoxLayoutParams(),r=t.get("padding"),u={width:l.getWidth(),height:l.getHeight()},e=N(a,u,r);L(t.get("orient"),s,t.get("itemGap"),e.width,e.height),E(s,a,u,r)}function f(s,t){var l=I.normalizeCssArray(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var s=new o.Rect({shape:{x:s.x-l[3],y:s.y-l[0],width:s.width+l[1]+l[3],height:s.height+l[0]+l[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1});return s}z.layout=m,z.makeBackground=f},eS4l:function(fe,z,y){y("HM/N"),y("FNN5")},eUgh:function(fe,z){function y(D,N){for(var L=-1,E=D==null?0:D.length,I=Array(E);++L<E;)I[L]=N(D[L],L,D);return I}fe.exports=y},ewwo:function(fe,z,y){var D=y("bMXI"),N=y("+TT/"),L=N.getLayoutRect,E=y("4mN7");function I(m,f,s){var t=m.getBoxLayoutParams();return t.aspect=s,L(t,{width:f.getWidth(),height:f.getHeight()})}function o(m,f){var s=[];return m.eachSeriesByType("graph",function(t){var l=t.get("coordinateSystem");if(!l||l==="view"){var a=t.getData(),r=a.mapArray(function(v){var A=a.getItemModel(v);return[+A.get("x"),+A.get("y")]}),u=[],e=[];E.fromPoints(r,u,e),e[0]-u[0]===0&&(e[0]+=1,u[0]-=1),e[1]-u[1]===0&&(e[1]+=1,u[1]-=1);var n=(e[0]-u[0])/(e[1]-u[1]),i=I(t,f,n);isNaN(n)&&(u=[i.x,i.y],e=[i.x+i.width,i.y+i.height]);var c=e[0]-u[0],d=e[1]-u[1],h=i.width,p=i.height,g=t.coordinateSystem=new D;g.zoomLimit=t.get("scaleLimit"),g.setBoundingRect(u[0],u[1],c,d),g.setViewRect(i.x,i.y,h,p),g.setCenter(t.get("center")),g.setZoom(t.get("zoom")),s.push(g)}}),s}fe.exports=o},f1nB:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("bYtY"),I=y("4NO4"),o=y("IwbS"),m=y("+TT/"),f=y("OELB"),s=f.parsePercent,t={path:null,compoundPath:null,group:o.Group,image:o.Image,text:o.Text};L.registerPreprocessor(function(h){var p=h.graphic;E.isArray(p)?!p[0]||!p[0].elements?h.graphic=[{elements:p}]:h.graphic=[h.graphic[0]]:p&&!p.elements&&(h.graphic=[{elements:[p]}])});var l=L.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(h){var p=this.option.elements;this.option.elements=null,l.superApply(this,"mergeOption",arguments),this.option.elements=p},optionUpdated:function(h,p){var g=this.option,v=(p?g:h).elements,A=g.elements=p?[]:g.elements,x=[];this._flatten(v,x);var b=I.mappingToExists(A,x);I.makeIdAndName(b);var w=this._elOptionsToUpdate=[];E.each(b,function(T,C){var O=T.option;if(!O)return;w.push(O),n(T,O),i(A,C,O),c(A[C],O)},this);for(var S=A.length-1;S>=0;S--)A[S]==null?A.splice(S,1):delete A[S].$action},_flatten:function(h,p,g){E.each(h,function(v){if(!v)return;g&&(v.parentOption=g),p.push(v);var A=v.children;v.type==="group"&&A&&this._flatten(A,p,v),delete v.children},this)},useElOptionsToUpdate:function(){var h=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,h}});L.extendComponentView({type:"graphic",init:function(h,p){this._elMap=E.createHashMap(),this._lastGraphicModel},render:function(h,p,g){h!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=h,this._updateElements(h),this._relocate(h,g)},_updateElements:function(h){var p=h.useElOptionsToUpdate();if(!p)return;var g=this._elMap,v=this.group;E.each(p,function(A){var x=A.$action,b=A.id,w=g.get(b),S=A.parentId,T=S!=null?g.get(S):v,C=A.style;A.type==="text"&&C&&(A.hv&&A.hv[1]&&(C.textVerticalAlign=C.textBaseline=null),!C.hasOwnProperty("textFill")&&C.fill&&(C.textFill=C.fill),!C.hasOwnProperty("textStroke")&&C.stroke&&(C.textStroke=C.stroke));var O=u(A);!x||x==="merge"?w?w.attr(O):a(b,T,O,g):x==="replace"?(r(w,g),a(b,T,O,g)):x==="remove"&&r(w,g);var _=g.get(b);_&&(_.__ecGraphicWidthOption=A.width,_.__ecGraphicHeightOption=A.height,d(_,h,A))})},_relocate:function(h,p){for(var g=h.option.elements,v=this.group,A=this._elMap,x=p.getWidth(),b=p.getHeight(),w=0;w<g.length;w++){var S=g[w],T=A.get(S.id);if(!T||!T.isGroup)continue;var C=T.parent,O=C===v;T.__ecGraphicWidth=s(T.__ecGraphicWidthOption,O?x:C.__ecGraphicWidth)||0,T.__ecGraphicHeight=s(T.__ecGraphicHeightOption,O?b:C.__ecGraphicHeight)||0}for(var w=g.length-1;w>=0;w--){var S=g[w],T=A.get(S.id);if(!T)continue;var C=T.parent,_=C===v?{width:x,height:b}:{width:C.__ecGraphicWidth,height:C.__ecGraphicHeight};m.positionElement(T,S,_,null,{hv:S.hv,boundingMode:S.bounding})}},_clear:function(){var h=this._elMap;h.each(function(p){r(p,h)}),this._elMap=E.createHashMap()},dispose:function(){this._clear()}});function a(h,p,g,v){var A=g.type,x=t.hasOwnProperty(A)?t[A]:o.getShapeClass(A),b=new x(g);p.add(b),v.set(h,b),b.__ecGraphicId=h}function r(h,p){var g=h&&h.parent;g&&(h.type==="group"&&h.traverse(function(v){r(v,p)}),p.removeKey(h.__ecGraphicId),g.remove(h))}function u(h){return h=E.extend({},h),E.each(["id","parentId","$action","hv","bounding"].concat(m.LOCATION_PARAMS),function(p){delete h[p]}),h}function e(h,p){var g;return E.each(p,function(v){h[v]!=null&&h[v]!=="auto"&&(g=!0)}),g}function n(h,p){var g=h.exist;if(p.id=h.keyInfo.id,!p.type&&g&&(p.type=g.type),p.parentId==null){var v=p.parentOption;v?p.parentId=v.id:g&&(p.parentId=g.parentId)}p.parentOption=null}function i(h,p,g){var v=E.extend({},g),A=h[p],x=g.$action||"merge";x==="merge"?A?(E.merge(A,v,!0),m.mergeLayoutParam(A,v,{ignoreSize:!0}),m.copyLayoutParams(g,A)):h[p]=v:x==="replace"?h[p]=v:x==="remove"&&(A&&(h[p]=null))}function c(h,p){if(!h)return;h.hv=p.hv=[e(p,["left","right"]),e(p,["top","bottom"])],h.type==="group"&&(h.width==null&&(h.width=p.width=0),h.height==null&&(h.height=p.height=0))}function d(h,p,g){var v=h.eventData;!h.silent&&!h.ignore&&!v&&(v=h.eventData={componentType:"graphic",componentIndex:p.componentIndex,name:h.name}),v&&(v.info=h.info)}},f3JH:function(fe,z,y){y("aTJb"),y("OlYY"),y("fc+c"),y("oY9F"),y("MqEG"),y("LBfv"),y("noeP")},f4xo:function(fe,z,y){var D=y("nVVt");function N(L){this.mode=D.MODE_8BIT_BYTE,this.data=L}N.prototype={getLength:function(E){return this.data.length},write:function(E){for(var I=0;I<this.data.length;I++)E.put(this.data.charCodeAt(I),8)}},fe.exports=N},f5HG:function(fe,z,y){var D=y("IwbS"),N=y("QBsz"),L=D.Line.prototype,E=D.BezierCurve.prototype;function I(m){return isNaN(+m.cpx1)||isNaN(+m.cpy1)}var o=D.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(m,f){this[I(f)?"_buildPathLine":"_buildPathCurve"](m,f)},_buildPathLine:L.buildPath,_buildPathCurve:E.buildPath,pointAt:function(m){return this[I(this.shape)?"_pointAtLine":"_pointAtCurve"](m)},_pointAtLine:L.pointAt,_pointAtCurve:E.pointAt,tangentAt:function(m){var f=this.shape,s=I(f)?[f.x2-f.x1,f.y2-f.y1]:this._tangentAtCurve(m);return N.normalize(s,s)},_tangentAtCurve:E.tangentAt});fe.exports=o},f5Yq:function(fe,z,y){var D=y("bYtY"),N=D.isFunction;function L(E,I,o){return{seriesType:E,performRawSeries:!0,reset:function(m,f,s){var t=m.getData(),l=m.get("symbol"),a=m.get("symbolSize"),r=m.get("symbolKeepAspect"),u=m.get("symbolRotate"),e=N(l),n=N(a),i=N(u),c=e||n||i,d=!e&&l?l:I,h=n?null:a,p=i?null:p;if(t.setVisual({legendSymbol:o||d,symbol:d,symbolSize:h,symbolKeepAspect:r,symbolRotate:u}),f.isSeriesFiltered(m))return;function g(v,A){if(c){var x=m.getRawValue(A),b=m.getDataParams(A);e&&v.setItemVisual(A,"symbol",l(x,b)),n&&v.setItemVisual(A,"symbolSize",a(x,b)),i&&v.setItemVisual(A,"symbolRotate",u(x,b))}if(v.hasItemOption){var w=v.getItemModel(A),S=w.getShallow("symbol",!0),T=w.getShallow("symbolSize",!0),C=w.getShallow("symbolRotate",!0),O=w.getShallow("symbolKeepAspect",!0);S!=null&&v.setItemVisual(A,"symbol",S),T!=null&&v.setItemVisual(A,"symbolSize",T),C!=null&&v.setItemVisual(A,"symbolRotate",C),O!=null&&v.setItemVisual(A,"symbolKeepAspect",O)}}return{dataEach:t.hasItemOption||c?g:null}}}}fe.exports=L},fAei:function(fe,z,y){"use strict";y.d(z,"a",function(){return h.a});var D=y("rePB"),N=y("VTBJ"),L=y("KQm4"),E=y("1OyB"),I=y("vuIU"),o=y("Ji7U"),m=y("LK+K"),f=y("q1tI"),s=y("4IlW"),t=y("Kwbf"),l=y("TSYQ"),a=y.n(l),r=y("sboe"),u=y("OZM5"),e=y("815F"),n=y("ODXe"),i=y("Ff2n"),c=y("+nKL"),d=y("8XRh"),h=y("WaYH"),p=function(V,Z){var Y=V.className,Q=V.style,oe=V.motion,ue=V.motionNodes,Le=V.motionType,me=V.onMotionStart,Ie=V.onMotionEnd,X=V.active,q=V.treeNodeRequiredProps,We=Object(i.a)(V,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),$=f.useState(!0),J=Object(n.a)($,2),le=J[0],de=J[1],Ne=f.useContext(r.a),we=Ne.prefixCls,De=f.useRef(!1),Ee=function(){De.current||Ie(),De.current=!0};return Object(f.useEffect)(function(){ue&&Le==="hide"&&le&&de(!1)},[ue]),Object(f.useEffect)(function(){return ue&&me(),function(){ue&&Ee()}},[]),ue?f.createElement(d.default,Object.assign({ref:Z,visible:le},oe,{motionAppear:Le==="show",onAppearEnd:Ee,onLeaveEnd:Ee}),function(ce,ne){var ee=ce.className,Ae=ce.style;return f.createElement("div",{ref:ne,className:a()("".concat(we,"-treenode-motion"),ee),style:Ae},ue.map(function(Ve){var Ke=Ve.data,Oe=Ke.key,it=Object(i.a)(Ke,["key"]),Fe=Ve.isStart,ft=Ve.isEnd;delete it.children;var At=Object(e.f)(Oe,q);return f.createElement(h.a,Object.assign({},it,At,{active:X,data:Ve.data,key:Oe,isStart:Fe,isEnd:ft}))}))}):f.createElement(h.a,Object.assign({domRef:Z,className:Y,style:Q},We,{active:X}))};p.displayName="MotionTreeNode";var g=f.forwardRef(p),v=g;function A(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Z=G.length,Y=V.length;if(Math.abs(Z-Y)!==1)return{add:!1,key:null};function Q(oe,ue){var Le=new Map;oe.forEach(function(Ie){Le.set(Ie,!0)});var me=ue.filter(function(Ie){return!Le.has(Ie)});return me.length===1?me[0]:null}return Z<Y?{add:!0,key:Q(G,V)}:{add:!1,key:Q(V,G)}}function x(G,V,Z){var Y=G.findIndex(function(Le){var me=Le.data;return me.key===Z}),Q=G[Y+1],oe=V.findIndex(function(Le){var me=Le.data;return me.key===Z});if(Q){var ue=V.findIndex(function(Le){var me=Le.data;return me.key===Q.data.key});return V.slice(oe+1,ue)}return V.slice(oe+1)}var b={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},w=function(){},S="RC_TREE_MOTION_".concat(Math.random()),T={key:S},C={key:S,level:0,index:0,pos:"0",node:T},O={parent:null,children:[],pos:C.pos,data:T,isStart:[],isEnd:[]};function _(G,V,Z,Y){return V===!1||!Z?G:G.slice(0,Math.ceil(Z/Y)+1)}function M(G){var V=G.data.key,Z=G.pos;return Object(e.e)(V,Z)}function k(G){for(var V=String(G.data.key),Z=G;Z.parent;)Z=Z.parent,V="".concat(Z.data.key," > ").concat(V);return V}var R=function(V,Z){var Y=V.prefixCls,Q=V.data,oe=V.selectable,ue=V.checkable,Le=V.expandedKeys,me=V.selectedKeys,Ie=V.checkedKeys,X=V.loadedKeys,q=V.loadingKeys,We=V.halfCheckedKeys,$=V.keyEntities,J=V.disabled,le=V.dragging,de=V.dragOverNodeKey,Ne=V.dropPosition,we=V.motion,De=V.height,Ee=V.itemHeight,ce=V.virtual,ne=V.focusable,ee=V.activeItem,Ae=V.focused,Ve=V.tabIndex,Ke=V.onKeyDown,Oe=V.onFocus,it=V.onBlur,Fe=V.onActiveChange,ft=V.onListChangeStart,At=V.onListChangeEnd,bt=Object(i.a)(V,["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"]),St=f.useRef(null);f.useImperativeHandle(Z,function(){return{scrollTo:function(Ln){St.current.scrollTo(Ln)}}});var Et=f.useState(Le),je=Object(n.a)(Et,2),pe=je[0],ie=je[1],st=f.useState(Q),Qe=Object(n.a)(st,2),ve=Qe[0],Bt=Qe[1],qt=f.useState(Q),ct=Object(n.a)(qt,2),Wt=ct[0],or=ct[1],Fr=f.useState([]),er=Object(n.a)(Fr,2),nr=er[0],Ot=er[1],lt=f.useState(null),qe=Object(n.a)(lt,2),tr=qe[0],xr=qe[1];function Ar(){Bt(Q),or(Q),Ot([]),xr(null),At()}f.useEffect(function(){ie(Le);var $r=A(pe,Le);if($r.key!==null)if($r.add){var Ln=ve.findIndex(function(at){var zt=at.data.key;return zt===$r.key}),tt=_(x(ve,Q,$r.key),ce,De,Ee),nt=ve.slice();nt.splice(Ln+1,0,O),or(nt),Ot(tt),xr("show")}else{var Te=Q.findIndex(function(at){var zt=at.data.key;return zt===$r.key}),Me=_(x(Q,ve,$r.key),ce,De,Ee),Xe=Q.slice();Xe.splice(Te+1,0,O),or(Xe),Ot(Me),xr("hide")}else ve!==Q&&(Bt(Q),or(Q))},[Le,Q]),f.useEffect(function(){le||Ar()},[le]);var fr=we?Wt:Q,vn={expandedKeys:Le,selectedKeys:me,loadedKeys:X,loadingKeys:q,checkedKeys:Ie,halfCheckedKeys:We,dragOverNodeKey:de,dropPosition:Ne,keyEntities:$};return f.createElement(f.Fragment,null,Ae&&ee&&f.createElement("span",{style:b,"aria-live":"assertive"},k(ee)),f.createElement("div",{role:"tree"},f.createElement("input",{style:b,disabled:ne===!1||J,tabIndex:ne!==!1?Ve:null,onKeyDown:Ke,onFocus:Oe,onBlur:it,value:"",onChange:w})),f.createElement(c.a,Object.assign({},bt,{data:fr,itemKey:M,height:De,fullHeight:!1,virtual:ce,itemHeight:Ee,prefixCls:"".concat(Y,"-list"),ref:St}),function($r){var Ln=$r.pos,tt=$r.data,nt=tt.key,Te=Object(i.a)(tt,["key"]),Me=$r.isStart,Xe=$r.isEnd,at=Object(e.e)(nt,Ln);delete Te.children;var zt=Object(e.f)(at,vn);return f.createElement(v,Object.assign({},Te,zt,{active:ee&&nt===ee.data.key,pos:Ln,data:$r.data,isStart:Me,isEnd:Xe,motion:we,motionNodes:nt===S?nr:null,motionType:tr,onMotionStart:ft,onMotionEnd:Ar,treeNodeRequiredProps:vn,onMouseMove:function(){Fe(null)}}))}))},B=f.forwardRef(R);B.displayName="NodeList";var P=B,U=y("NvD2"),j=function(G){Object(o.a)(Z,G);var V=Object(m.a)(Z);function Z(){var Y;return Object(E.a)(this,Z),Y=V.apply(this,arguments),Y.destroyed=!1,Y.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},Y.listRef=f.createRef(),Y.onNodeDragStart=function(Q,oe){var ue=Y.state,Le=ue.expandedKeys,me=ue.keyEntities,Ie=Y.props.onDragStart,X=oe.props.eventKey;Y.dragNode=oe;var q=Object(u.b)(Le,X);Y.setState({dragging:!0,dragNodesKeys:Object(u.g)(X,me)}),Y.setExpandedKeys(q),Ie&&Ie({event:Q,node:Object(e.b)(oe.props)})},Y.onNodeDragEnter=function(Q,oe){var ue=Y.state,Le=ue.expandedKeys,me=ue.keyEntities,Ie=ue.dragNodesKeys,X=Y.props.onDragEnter,q=oe.props,We=q.pos,$=q.eventKey;if(!Y.dragNode||Ie.indexOf($)!==-1)return;var J=Object(u.c)(Q,oe);if(Y.dragNode.props.eventKey===$&&J===0){Y.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Y.setState({dragOverNodeKey:$,dropPosition:J}),Y.delayedDragEnterLogic||(Y.delayedDragEnterLogic={}),Object.keys(Y.delayedDragEnterLogic).forEach(function(le){clearTimeout(Y.delayedDragEnterLogic[le])}),Y.delayedDragEnterLogic[We]=window.setTimeout(function(){if(!Y.state.dragging)return;var le=Object(L.a)(Le),de=me[$];de&&(de.children||[]).length&&(le=Object(u.a)(Le,$)),"expandedKeys"in Y.props||Y.setExpandedKeys(le),X&&X({event:Q,node:Object(e.b)(oe.props),expandedKeys:le})},400)},0)},Y.onNodeDragOver=function(Q,oe){var ue=Y.state.dragNodesKeys,Le=Y.props.onDragOver,me=oe.props.eventKey;if(ue.indexOf(me)!==-1)return;if(Y.dragNode&&me===Y.state.dragOverNodeKey){var Ie=Object(u.c)(Q,oe);if(Ie===Y.state.dropPosition)return;Y.setState({dropPosition:Ie})}Le&&Le({event:Q,node:Object(e.b)(oe.props)})},Y.onNodeDragLeave=function(Q,oe){var ue=Y.props.onDragLeave;Y.setState({dragOverNodeKey:""}),ue&&ue({event:Q,node:Object(e.b)(oe.props)})},Y.onNodeDragEnd=function(Q,oe){var ue=Y.props.onDragEnd;Y.setState({dragOverNodeKey:""}),Y.cleanDragState(),ue&&ue({event:Q,node:Object(e.b)(oe.props)}),Y.dragNode=null},Y.onNodeDrop=function(Q,oe){var ue=Y.state,Le=ue.dragNodesKeys,me=Le===void 0?[]:Le,Ie=ue.dropPosition,X=Y.props.onDrop,q=oe.props,We=q.eventKey,$=q.pos;if(Y.setState({dragOverNodeKey:""}),Y.cleanDragState(),me.indexOf(We)!==-1){Object(t.a)(!1,"Can not drop to dragNode(include it's children node)");return}var J=Object(u.k)($),le={event:Q,node:Object(e.b)(oe.props),dragNode:Y.dragNode?Object(e.b)(Y.dragNode.props):null,dragNodesKeys:me.slice(),dropPosition:Ie+Number(J[J.length-1]),dropToGap:!1};Ie!==0&&(le.dropToGap=!0),X&&X(le),Y.dragNode=null},Y.cleanDragState=function(){var Q=Y.state.dragging;Q&&Y.setState({dragging:!1})},Y.onNodeClick=function(Q,oe){var ue=Y.props.onClick;ue&&ue(Q,oe)},Y.onNodeDoubleClick=function(Q,oe){var ue=Y.props.onDoubleClick;ue&&ue(Q,oe)},Y.onNodeSelect=function(Q,oe){var ue=Y.state.selectedKeys,Le=Y.state.keyEntities,me=Y.props,Ie=me.onSelect,X=me.multiple,q=oe.selected,We=oe.key,$=!q;$?X?ue=Object(u.a)(ue,We):ue=[We]:ue=Object(u.b)(ue,We);var J=ue.map(function(le){var de=Le[le];return de?de.node:null}).filter(function(le){return le});Y.setUncontrolledState({selectedKeys:ue}),Ie&&Ie(ue,{event:"select",selected:$,node:oe,selectedNodes:J,nativeEvent:Q.nativeEvent})},Y.onNodeCheck=function(Q,oe,ue){var Le=Y.state,me=Le.keyEntities,Ie=Le.checkedKeys,X=Le.halfCheckedKeys,q=Y.props,We=q.checkStrictly,$=q.onCheck,J=oe.key,le,de={event:"check",node:oe,checked:ue,nativeEvent:Q.nativeEvent};if(We){var Ne=ue?Object(u.a)(Ie,J):Object(u.b)(Ie,J),we=Object(u.b)(X,J);le={checked:Ne,halfChecked:we},de.checkedNodes=Ne.map(function(Ae){return me[Ae]}).filter(function(Ae){return Ae}).map(function(Ae){return Ae.node}),Y.setUncontrolledState({checkedKeys:Ne})}else{var De=Object(U.a)([].concat(Object(L.a)(Ie),[J]),!0,me),Ee=De.checkedKeys,ce=De.halfCheckedKeys;if(!ue){var ne=new Set(Ee);ne.delete(J);var ee=Object(U.a)(Array.from(ne),{checked:!1,halfCheckedKeys:ce},me);Ee=ee.checkedKeys,ce=ee.halfCheckedKeys}le=Ee,de.checkedNodes=[],de.checkedNodesPositions=[],de.halfCheckedKeys=ce,Ee.forEach(function(Ae){var Ve=me[Ae];if(!Ve)return;var Ke=Ve.node,Oe=Ve.pos;de.checkedNodes.push(Ke),de.checkedNodesPositions.push({node:Ke,pos:Oe})}),Y.setUncontrolledState({checkedKeys:Ee},!1,{halfCheckedKeys:ce})}$&&$(le,de)},Y.onNodeLoad=function(Q){return new Promise(function(oe){Y.setState(function(ue){var Le=ue.loadedKeys,me=Le===void 0?[]:Le,Ie=ue.loadingKeys,X=Ie===void 0?[]:Ie,q=Y.props,We=q.loadData,$=q.onLoad,J=Q.key;if(!We||me.indexOf(J)!==-1||X.indexOf(J)!==-1)return{};var le=We(Q);return le.then(function(){var de=Y.state,Ne=de.loadedKeys,we=de.loadingKeys,De=Object(u.a)(Ne,J),Ee=Object(u.b)(we,J);$&&$(De,{event:"load",node:Q}),Y.setUncontrolledState({loadedKeys:De}),Y.setState({loadingKeys:Ee}),oe()}),{loadingKeys:Object(u.a)(X,J)}})})},Y.onNodeMouseEnter=function(Q,oe){var ue=Y.props.onMouseEnter;ue&&ue({event:Q,node:oe})},Y.onNodeMouseLeave=function(Q,oe){var ue=Y.props.onMouseLeave;ue&&ue({event:Q,node:oe})},Y.onNodeContextMenu=function(Q,oe){var ue=Y.props.onRightClick;ue&&(Q.preventDefault(),ue({event:Q,node:oe}))},Y.onFocus=function(){var Q=Y.props.onFocus;Y.setState({focused:!0}),Q&&Q.apply(void 0,arguments)},Y.onBlur=function(){var Q=Y.props.onBlur;Y.setState({focused:!1}),Y.onActiveChange(null),Q&&Q.apply(void 0,arguments)},Y.getTreeNodeRequiredProps=function(){var Q=Y.state,oe=Q.expandedKeys,ue=Q.selectedKeys,Le=Q.loadedKeys,me=Q.loadingKeys,Ie=Q.checkedKeys,X=Q.halfCheckedKeys,q=Q.dragOverNodeKey,We=Q.dropPosition,$=Q.keyEntities;return{expandedKeys:oe||[],selectedKeys:ue||[],loadedKeys:Le||[],loadingKeys:me||[],checkedKeys:Ie||[],halfCheckedKeys:X||[],dragOverNodeKey:q,dropPosition:We,keyEntities:$}},Y.setExpandedKeys=function(Q){var oe=Y.state.treeData,ue=Object(e.d)(oe,Q);Y.setUncontrolledState({expandedKeys:Q,flattenNodes:ue},!0)},Y.onNodeExpand=function(Q,oe){var ue=Y.state.expandedKeys,Le=Y.state.listChanging,me=Y.props,Ie=me.onExpand,X=me.loadData,q=oe.key,We=oe.expanded;if(Le)return;var $=ue.indexOf(q),J=!We;if(Object(t.a)(We&&$!==-1||!We&&$===-1,"Expand state not sync with index check"),J?ue=Object(u.a)(ue,q):ue=Object(u.b)(ue,q),Y.setExpandedKeys(ue),Ie&&Ie(ue,{node:oe,expanded:J,nativeEvent:Q.nativeEvent}),J&&X){var le=Y.onNodeLoad(oe);le&&le.then(function(){var de=Object(e.d)(Y.state.treeData,ue);Y.setUncontrolledState({flattenNodes:de})})}},Y.onListChangeStart=function(){Y.setUncontrolledState({listChanging:!0})},Y.onListChangeEnd=function(){setTimeout(function(){Y.setUncontrolledState({listChanging:!1})})},Y.onActiveChange=function(Q){var oe=Y.state.activeKey,ue=Y.props.onActiveChange;if(oe===Q)return;Y.setState({activeKey:Q}),Q!==null&&Y.scrollTo({key:Q}),ue&&ue(Q)},Y.getActiveItem=function(){var Q=Y.state,oe=Q.activeKey,ue=Q.flattenNodes;return oe===null?null:ue.find(function(Le){var me=Le.data.key;return me===oe})||null},Y.offsetActiveKey=function(Q){var oe=Y.state,ue=oe.flattenNodes,Le=oe.activeKey,me=ue.findIndex(function(q){var We=q.data.key;return We===Le});me===-1&&Q<0&&(me=ue.length),me=(me+Q+ue.length)%ue.length;var Ie=ue[me];if(Ie){var X=Ie.data.key;Y.onActiveChange(X)}else Y.onActiveChange(null)},Y.onKeyDown=function(Q){var oe=Y.state,ue=oe.activeKey,Le=oe.expandedKeys,me=oe.checkedKeys,Ie=Y.props,X=Ie.onKeyDown,q=Ie.checkable,We=Ie.selectable;switch(Q.which){case s.a.UP:{Y.offsetActiveKey(-1),Q.preventDefault();break}case s.a.DOWN:{Y.offsetActiveKey(1),Q.preventDefault();break}}var $=Y.getActiveItem();if($&&$.data){var J=Y.getTreeNodeRequiredProps(),le=$.data.isLeaf===!1||!!($.data.children||[]).length,de=Object(e.b)(Object(N.a)(Object(N.a)({},Object(e.f)(ue,J)),{},{data:$.data,active:!0}));switch(Q.which){case s.a.LEFT:{le&&Le.includes(ue)?Y.onNodeExpand({},de):$.parent&&Y.onActiveChange($.parent.data.key),Q.preventDefault();break}case s.a.RIGHT:{le&&!Le.includes(ue)?Y.onNodeExpand({},de):$.children&&$.children.length&&Y.onActiveChange($.children[0].data.key),Q.preventDefault();break}case s.a.ENTER:case s.a.SPACE:{q&&!de.disabled&&de.checkable!==!1&&!de.disableCheckbox?Y.onNodeCheck({},de,!me.includes(ue)):!q&&We&&!de.disabled&&de.selectable!==!1&&Y.onNodeSelect({},de);break}}}X&&X(Q)},Y.setUncontrolledState=function(Q){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Y.destroyed)return;var Le=!1,me=!0,Ie={};Object.keys(Q).forEach(function(X){if(X in Y.props){me=!1;return}Le=!0,Ie[X]=Q[X]}),Le&&(!oe||me)&&Y.setState(Object(N.a)(Object(N.a)({},Ie),ue))},Y.scrollTo=function(Q){Y.listRef.current.scrollTo(Q)},Y}return Object(I.a)(Z,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Q,oe=this.state,ue=oe.focused,Le=oe.flattenNodes,me=oe.keyEntities,Ie=oe.dragging,X=oe.activeKey,q=this.props,We=q.prefixCls,$=q.className,J=q.style,le=q.showLine,de=q.focusable,Ne=q.tabIndex,we=Ne===void 0?0:Ne,De=q.selectable,Ee=q.showIcon,ce=q.icon,ne=q.switcherIcon,ee=q.draggable,Ae=q.checkable,Ve=q.checkStrictly,Ke=q.disabled,Oe=q.motion,it=q.loadData,Fe=q.filterTreeNode,ft=q.height,At=q.itemHeight,bt=q.virtual,St=q.titleRender,Et=q.onContextMenu,je=Object(u.f)(this.props);return f.createElement(r.a.Provider,{value:{prefixCls:We,selectable:De,showIcon:Ee,icon:ce,switcherIcon:ne,draggable:ee,checkable:Ae,checkStrictly:Ve,disabled:Ke,keyEntities:me,loadData:it,filterTreeNode:Fe,titleRender:St,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},f.createElement("div",{className:a()(We,$,(Q={},Object(D.a)(Q,"".concat(We,"-show-line"),le),Object(D.a)(Q,"".concat(We,"-focused"),ue),Object(D.a)(Q,"".concat(We,"-active-focused"),X!==null),Q))},f.createElement(P,Object.assign({ref:this.listRef,prefixCls:We,style:J,data:Le,disabled:Ke,selectable:De,checkable:!!Ae,motion:Oe,dragging:Ie,height:ft,itemHeight:At,virtual:bt,focusable:de,focused:ue,tabIndex:we,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Et},this.getTreeNodeRequiredProps(),je))))}}],[{key:"getDerivedStateFromProps",value:function(Q,oe){var ue=oe.prevProps,Le={prevProps:Q};function me(ce){return!ue&&ce in Q||ue&&ue[ce]!==Q[ce]}var Ie;if(me("treeData")?Ie=Q.treeData:me("children")&&(Object(t.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ie=Object(e.c)(Q.children)),Ie){Le.treeData=Ie;var X=Object(e.a)(Ie);Le.keyEntities=Object(N.a)(Object(D.a)({},S,C),X.keyEntities)}var q=Le.keyEntities||oe.keyEntities;if(me("expandedKeys")||ue&&me("autoExpandParent"))Le.expandedKeys=Q.autoExpandParent||!ue&&Q.defaultExpandParent?Object(u.e)(Q.expandedKeys,q):Q.expandedKeys;else if(!ue&&Q.defaultExpandAll){var We=Object(N.a)({},q);delete We[S],Le.expandedKeys=Object.keys(We).map(function(ce){return We[ce].key})}else!ue&&Q.defaultExpandedKeys&&(Le.expandedKeys=Q.autoExpandParent||Q.defaultExpandParent?Object(u.e)(Q.defaultExpandedKeys,q):Q.defaultExpandedKeys);if(Le.expandedKeys||delete Le.expandedKeys,Ie||Le.expandedKeys){var $=Object(e.d)(Ie||oe.treeData,Le.expandedKeys||oe.expandedKeys);Le.flattenNodes=$}if(Q.selectable&&(me("selectedKeys")?Le.selectedKeys=Object(u.d)(Q.selectedKeys,Q):!ue&&Q.defaultSelectedKeys&&(Le.selectedKeys=Object(u.d)(Q.defaultSelectedKeys,Q))),Q.checkable){var J;if(me("checkedKeys")?J=Object(u.j)(Q.checkedKeys)||{}:!ue&&Q.defaultCheckedKeys?J=Object(u.j)(Q.defaultCheckedKeys)||{}:Ie&&(J=Object(u.j)(Q.checkedKeys)||{checkedKeys:oe.checkedKeys,halfCheckedKeys:oe.halfCheckedKeys}),J){var le=J,de=le.checkedKeys,Ne=de===void 0?[]:de,we=le.halfCheckedKeys,De=we===void 0?[]:we;if(!Q.checkStrictly){var Ee=Object(U.a)(Ne,!0,q);Ne=Ee.checkedKeys,De=Ee.halfCheckedKeys}Le.checkedKeys=Ne,Le.halfCheckedKeys=De}}return me("loadedKeys")&&(Le.loadedKeys=Q.loadedKeys),Le}}]),Z}(f.Component);j.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:[]},j.TreeNode=h.a;var H=j,W=z.b=H},fE02:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("/IIm"),E=y("vZ6x"),I=y("b9oc"),o=y("72pK"),m=y("Kagy"),f=y("IUWy");y("3TkU");var s=m.toolbox.dataZoom,t=N.each,l="\0_ec_\0toolbox-dataZoom_";function a(d,h,p){(this._brushController=new L(p.getZr())).on("brush",N.bind(this._onBrush,this)).mount(),this._isZoomActive}a.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:N.clone(s.title)};var r=a.prototype;r.render=function(d,h,p,g){this.model=d,this.ecModel=h,this.api=p,i(d,h,this,g,p),n(d,h)},r.onclick=function(d,h,p){u[p].call(this)},r.remove=function(d,h){this._brushController.unmount()},r.dispose=function(d,h){this._brushController.dispose()};var u={zoom:function(){var d=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:d})},back:function(){this._dispatchZoomAction(I.pop(this.ecModel))}};r._onBrush=function(d,h){if(!h.isEnd||!d.length)return;var p={},g=this.ecModel;this._brushController.updateCovers([]);var v=new E(e(this.model.option),g,{include:["grid"]});v.matchOutputRanges(d,g,function(b,w,S){if(S.type!=="cartesian2d")return;var T=b.brushType;T==="rect"?(A("x",S,w[0]),A("y",S,w[1])):A({lineX:"x",lineY:"y"}[T],S,w)}),I.push(g,p),this._dispatchZoomAction(p);function A(b,w,S){var T=w.getAxis(b),C=T.model,O=x(b,C,g),_=O.findRepresentativeAxisProxy(C).getMinMaxSpan();(_.minValueSpan!=null||_.maxValueSpan!=null)&&(S=o(0,S.slice(),T.scale.getExtent(),0,_.minValueSpan,_.maxValueSpan)),O&&(p[O.id]={dataZoomId:O.id,startValue:S[0],endValue:S[1]})}function x(b,w,S){var T;return S.eachComponent({mainType:"dataZoom",subType:"select"},function(C){var O=C.getAxisModel(b,w.componentIndex);O&&(T=C)}),T}},r._dispatchZoomAction=function(d){var h=[];t(d,function(p,g){h.push(N.clone(p))}),h.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:h})};function e(d){var h={};return N.each(["xAxisIndex","yAxisIndex"],function(p){h[p]=d[p],h[p]==null&&(h[p]="all"),(h[p]===!1||h[p]==="none")&&(h[p]=[])}),h}function n(d,h){d.setIconStatus("back",I.count(h)>1?"emphasis":"normal")}function i(d,h,p,g,v){var A=p._isZoomActive;g&&g.type==="takeGlobalCursor"&&(A=g.key==="dataZoomSelect"?g.dataZoomSelectActive:!1),p._isZoomActive=A,d.setIconStatus("zoom",A?"emphasis":"normal");var x=new E(e(d.option),h,{include:["grid"]});p._brushController.setPanels(x.makePanelOpts(v,function(b){return b.xAxisDeclared&&!b.yAxisDeclared?"lineX":!b.xAxisDeclared&&b.yAxisDeclared?"lineY":"rect"})).enableBrush(A?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}f.register("dataZoom",a),D.registerPreprocessor(function(d){if(!d)return;var h=d.dataZoom||(d.dataZoom=[]);N.isArray(h)||(d.dataZoom=h=[h]);var p=d.toolbox;if(p&&(N.isArray(p)&&(p=p[0]),p&&p.feature)){var g=p.feature.dataZoom;v("xAxis",g),v("yAxis",g)}function v(x,b){if(!b)return;var w=x+"Index",S=b[w];S!=null&&S!=="all"&&!N.isArray(S)&&(S=S===!1||S==="none"?[]:[S]),A(x,function(T,C){if(S!=null&&S!=="all"&&N.indexOf(S,C)===-1)return;var O={type:"select",$fromToolbox:!0,filterMode:b.filterMode||"filter",id:l+x+C};O[w]=C,h.push(O)})}function A(x,b){var w=d[x];N.isArray(w)||(w=w?[w]:[]),t(w,b)}});var c=a;fe.exports=c},fNCr:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("tSko"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},fUL4:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("r+aA"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},fW2E:function(fe,z){var y={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function D(N,L,E){return y.hasOwnProperty(L)?E*=N.dpr:E}fe.exports=D},"fc+c":function(fe,z,y){var D=y("sS/r"),N=D.extend({type:"dataZoom",render:function(L,E,I,o){this.dataZoomModel=L,this.ecModel=E,this.api=I},getTargetCoordInfo:function(){var L=this.dataZoomModel,E=this.ecModel,I={};L.eachTargetAxis(function(m,f){var s=E.getComponent(m.axis,f);if(s){var t=s.getCoordSysModel();t&&o(t,s,I[t.mainType]||(I[t.mainType]=[]),t.componentIndex)}},this);function o(m,f,s,t){for(var l,a=0;a<s.length;a++)if(s[a].model===m){l=s[a];break}l||s.push(l={model:m,axisModels:[],coordIndex:t}),l.axisModels.push(f)}return I}});fe.exports=N},fjKi:function(fe,z,y){var D=y("ProS");y("Q7if"),y("jndi"),D.registerPreprocessor(function(N){N.markArea=N.markArea||{}})},fls0:function(fe,z,y){var D=y("bYtY"),N=y("QBsz"),L=y("oVpE"),E=y("f5HG"),I=y("IwbS"),o=y("OELB"),m=o.round,f=["fromSymbol","toSymbol"];function s(i){return"_"+i+"Type"}function t(i,c,d){var h=c.getItemVisual(d,"color"),p=c.getItemVisual(d,i),g=c.getItemVisual(d,i+"Size");if(!p||p==="none")return;D.isArray(g)||(g=[g,g]);var v=L.createSymbol(p,-g[0]/2,-g[1]/2,g[0],g[1],h);return v.name=i,v}function l(i){var c=new E({name:"line",subPixelOptimize:!0});return a(c.shape,i),c}function a(i,c){i.x1=c[0][0],i.y1=c[0][1],i.x2=c[1][0],i.y2=c[1][1],i.percent=1;var d=c[2];d?(i.cpx1=d[0],i.cpy1=d[1]):(i.cpx1=NaN,i.cpy1=NaN)}function r(){var i=this,c=i.childOfName("fromSymbol"),d=i.childOfName("toSymbol"),h=i.childOfName("label");if(!c&&!d&&h.ignore)return;for(var p=1,g=this.parent;g;)g.scale&&(p/=g.scale[0]),g=g.parent;var v=i.childOfName("line");if(!this.__dirty&&!v.__dirty)return;var A=v.shape.percent,x=v.pointAt(0),b=v.pointAt(A),w=N.sub([],b,x);if(N.normalize(w,w),c){c.attr("position",x);var S=v.tangentAt(0);c.attr("rotation",Math.PI/2-Math.atan2(S[1],S[0])),c.attr("scale",[p*A,p*A])}if(d){d.attr("position",b);var S=v.tangentAt(1);d.attr("rotation",-Math.PI/2-Math.atan2(S[1],S[0])),d.attr("scale",[p*A,p*A])}if(!h.ignore){h.attr("position",b);var T,C,O,_,M=h.__labelDistance,k=M[0]*p,R=M[1]*p,B=A/2,S=v.tangentAt(B),P=[S[1],-S[0]],U=v.pointAt(B);P[1]>0&&(P[0]=-P[0],P[1]=-P[1]);var j=S[0]<0?-1:1;if(h.__position!=="start"&&h.__position!=="end"){var H=-Math.atan2(S[1],S[0]);b[0]<x[0]&&(H=Math.PI+H),h.attr("rotation",H)}var W;switch(h.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":W=-R,O="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":W=R,O="top";break;default:W=0,O="middle"}switch(h.__position){case"end":T=[w[0]*k+b[0],w[1]*R+b[1]],C=w[0]>.8?"left":w[0]<-.8?"right":"center",O=w[1]>.8?"top":w[1]<-.8?"bottom":"middle";break;case"start":T=[-w[0]*k+x[0],-w[1]*R+x[1]],C=w[0]>.8?"right":w[0]<-.8?"left":"center",O=w[1]>.8?"bottom":w[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":T=[k*j+x[0],x[1]+W],C=S[0]<0?"right":"left",_=[-k*j,-W];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":T=[U[0],U[1]+W],C="center",_=[0,-W];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":T=[-k*j+b[0],b[1]+W],C=S[0]>=0?"right":"left",_=[k*j,-W];break}h.attr({style:{textVerticalAlign:h.__verticalAlign||O,textAlign:h.__textAlign||C},position:T,scale:[p,p],origin:_})}}function u(i,c,d){I.Group.call(this),this._createLine(i,c,d)}var e=u.prototype;e.beforeUpdate=r,e._createLine=function(i,c,d){var h=i.hostModel,p=i.getItemLayout(c),g=l(p);g.shape.percent=0,I.initProps(g,{shape:{percent:1}},h,c),this.add(g);var v=new I.Text({name:"label",lineLabelOriginalOpacity:1});this.add(v),D.each(f,function(A){var x=t(A,i,c);this.add(x),this[s(A)]=i.getItemVisual(c,A)},this),this._updateCommonStl(i,c,d)},e.updateData=function(i,c,d){var h=i.hostModel,p=this.childOfName("line"),g=i.getItemLayout(c),v={shape:{}};a(v.shape,g),I.updateProps(p,v,h,c),D.each(f,function(A){var x=i.getItemVisual(c,A),b=s(A);if(this[b]!==x){this.remove(this.childOfName(A));var w=t(A,i,c);this.add(w)}this[b]=x},this),this._updateCommonStl(i,c,d)},e._updateCommonStl=function(i,c,d){var h=i.hostModel,p=this.childOfName("line"),g=d&&d.lineStyle,v=d&&d.hoverLineStyle,A=d&&d.labelModel,x=d&&d.hoverLabelModel;if(!d||i.hasItemOption){var b=i.getItemModel(c);g=b.getModel("lineStyle").getLineStyle(),v=b.getModel("emphasis.lineStyle").getLineStyle(),A=b.getModel("label"),x=b.getModel("emphasis.label")}var w=i.getItemVisual(c,"color"),S=D.retrieve3(i.getItemVisual(c,"opacity"),g.opacity,1);p.useStyle(D.defaults({strokeNoScale:!0,fill:"none",stroke:w,opacity:S},g)),p.hoverStyle=v,D.each(f,function(j){var H=this.childOfName(j);H&&(H.setColor(w),H.setStyle({opacity:S}))},this);var T=A.getShallow("show"),C=x.getShallow("show"),O=this.childOfName("label"),_,M;if((T||C)&&(_=w||"#000",M=h.getFormattedLabel(c,"normal",i.dataType),M==null)){var k=h.getRawValue(c);M=k==null?i.getName(c):isFinite(k)?m(k):k}var R=T?M:null,B=C?D.retrieve2(h.getFormattedLabel(c,"emphasis",i.dataType),M):null,P=O.style;if(R!=null||B!=null){I.setTextStyle(O.style,A,{text:R},{autoColor:_}),O.__textAlign=P.textAlign,O.__verticalAlign=P.textVerticalAlign,O.__position=A.get("position")||"middle";var U=A.get("distance");D.isArray(U)||(U=[U,U]),O.__labelDistance=U}B!=null?O.hoverStyle={text:B,textFill:x.getTextColor(!0),fontStyle:x.getShallow("fontStyle"),fontWeight:x.getShallow("fontWeight"),fontSize:x.getShallow("fontSize"),fontFamily:x.getShallow("fontFamily")}:O.hoverStyle={text:null},O.ignore=!T&&!C,I.setHoverStyle(this)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateLayout=function(i,c){this.setLinePoints(i.getItemLayout(c))},e.setLinePoints=function(i){var c=this.childOfName("line");a(c.shape,i),c.dirty()},D.inherits(u,I.Group);var n=u;fe.exports=n},fmMI:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=L.each,I=L.filter,o=L.map,m=L.isArray,f=L.indexOf,s=L.isObject,t=L.isString,l=L.createHashMap,a=L.assert,r=L.clone,u=L.merge,e=L.extend,n=L.mixin,i=y("4NO4"),c=y("Qxkt"),d=y("bLfw"),h=y("iXHM"),p=y("5Hur"),g=y("D5nY"),v=g.resetSourceDefaulter,A="\0_ec_inner",x=c.extend({init:function(R,B,P,U){P=P||{},this.option=null,this._theme=new c(P),this._optionManager=U},setOption:function(R,B){a(!(A in R),"please use chart.getOption()"),this._optionManager.setOption(R,B),this.resetOption(null)},resetOption:function(R){var B=!1,P=this._optionManager;if(!R||R==="recreate"){var U=P.mountOption(R==="recreate");!this.option||R==="recreate"?S.call(this,U):(this.restoreData(),this.mergeOption(U)),B=!0}if((R==="timeline"||R==="media")&&this.restoreData(),!R||R==="recreate"||R==="timeline"){var j=P.getTimelineOption(this);j&&(this.mergeOption(j),B=!0)}if(!R||R==="recreate"||R==="media"){var H=P.getMediaOption(this,this._api);H.length&&E(H,function(W){this.mergeOption(W,B=!0)},this)}return B},mergeOption:function(R){var B=this.option,P=this._componentsMap,U=[];v(this),E(R,function(H,W){if(H==null)return;d.hasClass(W)?W&&U.push(W):B[W]=B[W]==null?r(H):u(B[W],H,!0)}),d.topologicalTravel(U,d.getAllClassMainTypes(),j,this);function j(H,W){var G=i.normalizeToArray(R[H]),V=i.mappingToExists(P.get(H),G);i.makeIdAndName(V),E(V,function(Y,Q){var oe=Y.option;s(oe)&&(Y.keyInfo.mainType=H,Y.keyInfo.subType=C(H,oe,Y.exist))});var Z=T(P,W);B[H]=[],P.set(H,[]),E(V,function(Y,Q){var oe=Y.exist,ue=Y.option;if(a(s(ue)||oe,"Empty component definition"),!ue)oe.mergeOption({},this),oe.optionUpdated({},!1);else{var Le=d.getClass(H,Y.keyInfo.subType,!0);if(oe&&oe.constructor===Le)oe.name=Y.keyInfo.name,oe.mergeOption(ue,this),oe.optionUpdated(ue,!1);else{var me=e({dependentModels:Z,componentIndex:Q},Y.keyInfo);oe=new Le(ue,this,this,me),e(oe,me),oe.init(ue,this,this,me),oe.optionUpdated(null,!0)}}P.get(H)[Q]=oe,B[H][Q]=oe.option},this),H==="series"&&O(this,P.get("series"))}this._seriesIndicesMap=l(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var R=r(this.option);return E(R,function(B,P){if(d.hasClass(P)){for(var B=i.normalizeToArray(B),U=B.length-1;U>=0;U--)i.isIdInner(B[U])&&B.splice(U,1);R[P]=B}}),delete R[A],R},getTheme:function(){return this._theme},getComponent:function(R,B){var P=this._componentsMap.get(R);if(P)return P[B||0]},queryComponents:function(R){var B=R.mainType;if(!B)return[];var P=R.index,U=R.id,j=R.name,H=this._componentsMap.get(B);if(!H||!H.length)return[];var W;if(P!=null)m(P)||(P=[P]),W=I(o(P,function(Z){return H[Z]}),function(Z){return!!Z});else if(U!=null){var G=m(U);W=I(H,function(Z){return G&&f(U,Z.id)>=0||!G&&Z.id===U})}else if(j!=null){var V=m(j);W=I(H,function(Z){return V&&f(j,Z.name)>=0||!V&&Z.name===j})}else W=H.slice();return _(W,R)},findComponents:function(R){var B=R.query,P=R.mainType,U=H(B),j=U?this.queryComponents(U):this._componentsMap.get(P);return W(_(j,R));function H(G){var V=P+"Index",Z=P+"Id",Y=P+"Name";return G&&(G[V]!=null||G[Z]!=null||G[Y]!=null)?{mainType:P,index:G[V],id:G[Z],name:G[Y]}:null}function W(G){return R.filter?I(G,R.filter):G}},eachComponent:function(R,B,P){var U=this._componentsMap;if(typeof R=="function")P=B,B=R,U.each(function(H,W){E(H,function(G,V){B.call(P,W,G,V)})});else if(t(R))E(U.get(R),B,P);else if(s(R)){var j=this.findComponents(R);E(j,B,P)}},getSeriesByName:function(R){var B=this._componentsMap.get("series");return I(B,function(P){return P.name===R})},getSeriesByIndex:function(R){return this._componentsMap.get("series")[R]},getSeriesByType:function(R){var B=this._componentsMap.get("series");return I(B,function(P){return P.subType===R})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(R,B){M(this),E(this._seriesIndices,function(P){var U=this._componentsMap.get("series")[P];R.call(B,U,P)},this)},eachRawSeries:function(R,B){E(this._componentsMap.get("series"),R,B)},eachSeriesByType:function(R,B,P){M(this),E(this._seriesIndices,function(U){var j=this._componentsMap.get("series")[U];j.subType===R&&B.call(P,j,U)},this)},eachRawSeriesByType:function(R,B,P){return E(this.getSeriesByType(R),B,P)},isSeriesFiltered:function(R){return M(this),this._seriesIndicesMap.get(R.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(R,B){M(this);var P=I(this._componentsMap.get("series"),R,B);O(this,P)},restoreData:function(R){var B=this._componentsMap;O(this,B.get("series"));var P=[];B.each(function(U,j){P.push(j)}),d.topologicalTravel(P,d.getAllClassMainTypes(),function(U,j){E(B.get(U),function(H){(U!=="series"||!b(H,R))&&H.restoreData()})})}});function b(R,B){if(B){var P=B.seiresIndex,U=B.seriesId,j=B.seriesName;return P!=null&&R.componentIndex!==P||U!=null&&R.id!==U||j!=null&&R.name!==j}}function w(R,B){var P=R.color&&!R.colorLayer;E(B,function(U,j){if(j==="colorLayer"&&P)return;d.hasClass(j)||(typeof U=="object"?R[j]=R[j]?u(R[j],U,!1):r(U):R[j]==null&&(R[j]=U))})}function S(R){R=R,this.option={},this.option[A]=1,this._componentsMap=l({series:[]}),this._seriesIndices,this._seriesIndicesMap,w(R,this._theme.option),u(R,h,!1),this.mergeOption(R)}function T(R,B){m(B)||(B=B?[B]:[]);var P={};return E(B,function(U){P[U]=(R.get(U)||[]).slice()}),P}function C(R,B,P){var U=B.type?B.type:P?P.subType:d.determineSubType(R,B);return U}function O(R,B){R._seriesIndicesMap=l(R._seriesIndices=o(B,function(P){return P.componentIndex})||[])}function _(R,B){return B.hasOwnProperty("subType")?I(R,function(P){return P.subType===B.subType}):R}function M(R){}n(x,p);var k=x;fe.exports=k},fyUT:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("q1tI"),o=y.n(I),m=y("TSYQ"),f=y.n(m),s=y("Ff2n"),t=y("rePB"),l=y("1OyB"),a=y("vuIU"),r=y("Ji7U"),u=y("md7G"),e=y("foSv"),n=y("4IlW");function i(W,G){var V=Object.keys(W);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(W);G&&(Z=Z.filter(function(Y){return Object.getOwnPropertyDescriptor(W,Y).enumerable})),V.push.apply(V,Z)}return V}function c(W){for(var G=1;G<arguments.length;G++){var V=arguments[G]!=null?arguments[G]:{};G%2?i(Object(V),!0).forEach(function(Z){Object(t.a)(W,Z,V[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(V)):i(Object(V)).forEach(function(Z){Object.defineProperty(W,Z,Object.getOwnPropertyDescriptor(V,Z))})}return W}function d(W){var G=h();return function(){var Z=Object(e.a)(W),Y;if(G){var Q=Object(e.a)(this).constructor;Y=Reflect.construct(Z,arguments,Q)}else Y=Z.apply(this,arguments);return Object(u.a)(this,Y)}}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(W){return!1}}function p(){}function g(W){W.preventDefault()}var v=function(G){return G.replace(/[^\w.-]+/g,"")},A=200,x=600,b=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(G){return G!=null},S=function(G,V){return V===G||typeof V=="number"&&typeof G=="number"&&isNaN(V)&&isNaN(G)},T=function(W){Object(r.a)(V,W);var G=d(V);function V(Z){var Y;Object(l.a)(this,V),Y=G.call(this,Z),Y.onKeyDown=function(ue){var Le=Y.props,me=Le.onKeyDown,Ie=Le.onPressEnter;if(ue.keyCode===n.a.UP){var X=Y.getRatio(ue);Y.up(ue,X,null),Y.stop()}else if(ue.keyCode===n.a.DOWN){var q=Y.getRatio(ue);Y.down(ue,q,null),Y.stop()}else ue.keyCode===n.a.ENTER&&Ie&&Ie(ue);if(Y.recordCursorPosition(),Y.lastKeyCode=ue.keyCode,me){for(var We=arguments.length,$=new Array(We>1?We-1:0),J=1;J<We;J++)$[J-1]=arguments[J];me.apply(void 0,[ue].concat($))}},Y.onKeyUp=function(ue){var Le=Y.props.onKeyUp;if(Y.stop(),Y.recordCursorPosition(),Le){for(var me=arguments.length,Ie=new Array(me>1?me-1:0),X=1;X<me;X++)Ie[X-1]=arguments[X];Le.apply(void 0,[ue].concat(Ie))}},Y.onChange=function(ue){var Le=Y.props.onChange;Y.state.focused&&(Y.inputting=!0),Y.rawInput=Y.props.parser(Y.getValueFromEvent(ue)),Y.setState({inputValue:Y.rawInput}),Le(Y.toNumber(Y.rawInput))},Y.onMouseUp=function(){var ue=Y.props.onMouseUp;Y.recordCursorPosition(),ue&&ue.apply(void 0,arguments)},Y.onFocus=function(){var ue;Y.setState({focused:!0}),(ue=Y.props).onFocus.apply(ue,arguments)},Y.onBlur=function(){var ue=Y.props.onBlur;Y.inputting=!1,Y.setState({focused:!1});var Le=Y.getCurrentValidValue(Y.state.inputValue),me=Y.setValue(Le,p);if(ue){var Ie=Y.input.value,X=Y.getInputDisplayValue({focus:!1,value:me});Y.input.value=X&&Number(X),ue.apply(void 0,arguments),Y.input.value=Ie}},Y.getRatio=function(ue){var Le=1;return ue.metaKey||ue.ctrlKey?Le=.1:ue.shiftKey&&(Le=10),Le},Y.getFullNum=function(ue){return isNaN(ue)?ue:/e/i.test(String(ue))?Number(ue).toFixed(18).replace(/\.?0+$/,""):ue},Y.getPrecision=function(ue){if(w(Y.props.precision))return Y.props.precision;var Le=String(ue);if(Le.indexOf("e-")>=0)return parseInt(Le.slice(Le.indexOf("e-")+2),10);var me=0;return Le.indexOf(".")>=0&&(me=Le.length-Le.indexOf(".")-1),me},Y.getInputDisplayValue=function(ue){var Le=ue||Y.state,me=Le.focused,Ie=Le.inputValue,X=Le.value,q;me?q=Ie:q=Y.toPrecisionAsStep(X),q==null&&(q="");var We=Y.formatWrapper(q);return w(Y.props.decimalSeparator)&&(We=We.toString().replace(".",Y.props.decimalSeparator)),We},Y.recordCursorPosition=function(){try{Y.cursorStart=Y.input.selectionStart,Y.cursorEnd=Y.input.selectionEnd,Y.currentValue=Y.input.value,Y.cursorBefore=Y.input.value.substring(0,Y.cursorStart),Y.cursorAfter=Y.input.value.substring(Y.cursorEnd)}catch(ue){}},Y.restoreByAfter=function(ue){if(ue===void 0)return!1;var Le=Y.input.value,me=Le.lastIndexOf(ue);if(me===-1)return!1;var Ie=Y.cursorBefore.length;return Y.lastKeyCode===n.a.DELETE&&Y.cursorBefore.charAt(Ie-1)===ue[0]?(Y.fixCaret(Ie,Ie),!0):me+ue.length===Le.length?(Y.fixCaret(me,me),!0):!1},Y.partRestoreByAfter=function(ue){return ue===void 0?!1:Array.prototype.some.call(ue,function(Le,me){var Ie=ue.substring(me);return Y.restoreByAfter(Ie)})},Y.isNotCompleteNumber=function(ue){return isNaN(ue)||ue===""||ue===null||ue&&ue.toString().indexOf(".")===ue.toString().length-1},Y.stop=function(){Y.autoStepTimer&&clearTimeout(Y.autoStepTimer)},Y.down=function(ue,Le,me){Y.pressingUpOrDown=!0,Y.step("down",ue,Le,me)},Y.up=function(ue,Le,me){Y.pressingUpOrDown=!0,Y.step("up",ue,Le,me)},Y.saveInput=function(ue){Y.input=ue};var Q=Z.value;Q===void 0&&(Q=Z.defaultValue),Y.state={focused:Z.autoFocus};var oe=Y.getValidValue(Y.toNumber(Q));return Y.state=c(c({},Y.state),{},{inputValue:Y.toPrecisionAsStep(oe),value:oe}),Y}return Object(a.a)(V,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(Y){var Q=this.props,oe=Q.value,ue=Q.onChange,Le=Q.max,me=Q.min,Ie=this.state.focused;if(Y){if(!S(Y.value,oe)||!S(Y.max,Le)||!S(Y.min,me)){var X=Ie?oe:this.getValidValue(oe),q;this.pressingUpOrDown?q=X:this.inputting?q=this.rawInput:q=this.toPrecisionAsStep(X),this.setState({value:X,inputValue:q})}var We="value"in this.props?oe:this.state.value;"max"in this.props&&Y.max!==Le&&typeof We=="number"&&We>Le&&ue&&ue(Le),"min"in this.props&&Y.min!==me&&typeof We=="number"&&We<me&&ue&&ue(me)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var $=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===n.a.BACKSPACE?$=this.cursorStart-1:this.lastKeyCode===n.a.DELETE&&($=this.cursorStart):$=this.input.value.length,this.fixCaret($,$)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case n.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case n.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(J){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(Y){var Q=Y;return Q===""?Q="":this.isNotCompleteNumber(parseFloat(Q))?Q=this.state.value:Q=this.getValidValue(Q),this.toNumber(Q)}},{key:"getValueFromEvent",value:function(Y){var Q=Y.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(Q=Q.replace(this.props.decimalSeparator,".")),Q}},{key:"getValidValue",value:function(Y){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,ue=parseFloat(Y);return isNaN(ue)?Y:(ue<Q&&(ue=Q),ue>oe&&(ue=oe),ue)}},{key:"setValue",value:function(Y,Q){var oe=this.props.precision,ue=this.isNotCompleteNumber(parseFloat(Y))?null:parseFloat(Y),Le=this.state.value,me=Le===void 0?null:Le,Ie=this.state.inputValue,X=Ie===void 0?null:Ie,q=typeof ue=="number"?ue.toFixed(oe):"".concat(ue),We=ue!==me||q!=="".concat(X);return"value"in this.props?(X=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:X},Q)):this.setState({value:ue,inputValue:this.toPrecisionAsStep(Y)},Q),We&&this.props.onChange(ue),ue}},{key:"getMaxPrecision",value:function(Y){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=this.props,ue=oe.precision,Le=oe.step;if(w(ue))return ue;var me=this.getPrecision(Q),Ie=this.getPrecision(Le),X=this.getPrecision(Y);return Y?Math.max(X,me+Ie):me+Ie}},{key:"getPrecisionFactor",value:function(Y){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=this.getMaxPrecision(Y,Q);return Math.pow(10,oe)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(Y){return this.props.formatter?this.props.formatter(Y):Y}},{key:"toPrecisionAsStep",value:function(Y){if(this.isNotCompleteNumber(Y)||Y==="")return Y;var Q=Math.abs(this.getMaxPrecision(Y));return isNaN(Q)?Y.toString():Number(Y).toFixed(Q)}},{key:"toNumber",value:function(Y){var Q=this.props.precision,oe=this.state.focused,ue=Y&&Y.length>16&&oe;return this.isNotCompleteNumber(Y)||ue?Y:w(Q)?Math.round(Y*Math.pow(10,Q))/Math.pow(10,Q):Number(Y)}},{key:"upStep",value:function(Y,Q){var oe=this.props.step,ue=this.getPrecisionFactor(Y,Q),Le=Math.abs(this.getMaxPrecision(Y,Q)),me=((ue*Y+ue*oe*Q)/ue).toFixed(Le);return this.toNumber(me)}},{key:"downStep",value:function(Y,Q){var oe=this.props.step,ue=this.getPrecisionFactor(Y,Q),Le=Math.abs(this.getMaxPrecision(Y,Q)),me=((ue*Y-ue*oe*Q)/ue).toFixed(Le);return this.toNumber(me)}},{key:"step",value:function(Y,Q){var oe=this,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Le=arguments.length>3?arguments[3]:void 0;this.stop(),Q&&(Q.persist(),Q.preventDefault());var me=this.props;if(me.disabled)return;var Ie=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(Ie))return;var X=this["".concat(Y,"Step")](Ie,ue),q=X>me.max||X<me.min;if(X>me.max?X=me.max:X<me.min&&(X=me.min),this.setValue(X,null),this.setState({focused:!0},function(){oe.pressingUpOrDown=!1}),q)return;this.autoStepTimer=setTimeout(function(){oe[Y](Q,ue,!0)},Le?A:x)}},{key:"fixCaret",value:function(Y,Q){if(Y===void 0||Q===void 0||!this.input||!this.input.value)return;try{var oe=this.input.selectionStart,ue=this.input.selectionEnd;(Y!==oe||Q!==ue)&&this.input.setSelectionRange(Y,Q)}catch(Le){}}},{key:"render",value:function(){var Y,Q=this.props,oe=Q.prefixCls,ue=Q.disabled,Le=Q.readOnly,me=Q.useTouch,Ie=Q.autoComplete,X=Q.upHandler,q=Q.downHandler,We=Q.className,$=Q.max,J=Q.min,le=Q.style,de=Q.title,Ne=Q.onMouseEnter,we=Q.onMouseLeave,De=Q.onMouseOver,Ee=Q.onMouseOut,ce=Q.required,ne=Q.onClick,ee=Q.tabIndex,Ae=Q.type,Ve=Q.placeholder,Ke=Q.id,Oe=Q.inputMode,it=Q.pattern,Fe=Q.step,ft=Q.maxLength,At=Q.autoFocus,bt=Q.name,St=Q.onPaste,Et=Q.onInput,je=Object(s.a)(Q,["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"]),pe=this.state,ie=pe.value,st=pe.focused,Qe=f()(oe,(Y={},Object(t.a)(Y,We,!!We),Object(t.a)(Y,"".concat(oe,"-disabled"),ue),Object(t.a)(Y,"".concat(oe,"-focused"),st),Y)),ve={};Object.keys(je).forEach(function(qe){(qe.substr(0,5)==="data-"||qe.substr(0,5)==="aria-"||qe==="role")&&(ve[qe]=je[qe])});var Bt=!Le&&!ue,qt=this.getInputDisplayValue(null),ct=(ie||ie===0)&&(isNaN(ie)||Number(ie)>=$),Wt=(ie||ie===0)&&(isNaN(ie)||Number(ie)<=J),or=ct||ue||Le,Fr=Wt||ue||Le,er=f()("".concat(oe,"-handler"),"".concat(oe,"-handler-up"),Object(t.a)({},"".concat(oe,"-handler-up-disabled"),or)),nr=f()("".concat(oe,"-handler"),"".concat(oe,"-handler-down"),Object(t.a)({},"".concat(oe,"-handler-down-disabled"),Fr)),Ot=me?{onTouchStart:or?p:this.up,onTouchEnd:this.stop}:{onMouseDown:or?p:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},lt=me?{onTouchStart:Fr?p:this.down,onTouchEnd:this.stop}:{onMouseDown:Fr?p:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return o.a.createElement("div",{className:Qe,style:le,title:de,onMouseEnter:Ne,onMouseLeave:we,onMouseOver:De,onMouseOut:Ee,onFocus:function(){return null},onBlur:function(){return null}},o.a.createElement("div",{className:"".concat(oe,"-handler-wrap")},o.a.createElement("span",Object.assign({unselectable:"on"},Ot,{role:"button","aria-label":"Increase Value","aria-disabled":or,className:er}),X||o.a.createElement("span",{unselectable:"on",className:"".concat(oe,"-handler-up-inner"),onClick:g})),o.a.createElement("span",Object.assign({unselectable:"on"},lt,{role:"button","aria-label":"Decrease Value","aria-disabled":Fr,className:nr}),q||o.a.createElement("span",{unselectable:"on",className:"".concat(oe,"-handler-down-inner"),onClick:g}))),o.a.createElement("div",{className:"".concat(oe,"-input-wrap")},o.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":J,"aria-valuemax":$,"aria-valuenow":ie,required:ce,type:Ae,placeholder:Ve,onPaste:St,onClick:ne,onMouseUp:this.onMouseUp,className:"".concat(oe,"-input"),tabIndex:ee,autoComplete:Ie,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Bt?this.onKeyDown:p,onKeyUp:Bt?this.onKeyUp:p,autoFocus:At,maxLength:ft,readOnly:Le,disabled:ue,max:$,min:J,step:Fe,name:bt,title:de,id:Ke,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(qt),pattern:it,inputMode:Oe,onInput:Et},ve))))}}]),V}(o.a.Component);T.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:b,min:-b,step:1,style:{},onChange:p,onKeyDown:p,onPressEnter:p,onFocus:p,onBlur:p,parser:v,required:!1,autoComplete:"off"};var C=T,O=C,_=y("FH2Y"),M=y.n(_),k=y("HQEm"),R=y.n(k),B=y("H84U"),P=y("3Nzz"),U=function(W,G){var V={};for(var Z in W)Object.prototype.hasOwnProperty.call(W,Z)&&G.indexOf(Z)<0&&(V[Z]=W[Z]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,Z=Object.getOwnPropertySymbols(W);Y<Z.length;Y++)G.indexOf(Z[Y])<0&&Object.prototype.propertyIsEnumerable.call(W,Z[Y])&&(V[Z[Y]]=W[Z[Y]]);return V},j=I.forwardRef(function(W,G){var V=function(Y){var Q=Y.getPrefixCls,oe=Y.direction,ue=W.className,Le=W.size,me=W.prefixCls,Ie=W.readOnly,X=U(W,["className","size","prefixCls","readOnly"]),q=Q("input-number",me),We=I.createElement(M.a,{className:"".concat(q,"-handler-up-inner")}),$=I.createElement(R.a,{className:"".concat(q,"-handler-down-inner")});return I.createElement(P.b.Consumer,null,function(J){var le,de=Le||J,Ne=f()((le={},E()(le,"".concat(q,"-lg"),de==="large"),E()(le,"".concat(q,"-sm"),de==="small"),E()(le,"".concat(q,"-rtl"),oe==="rtl"),E()(le,"".concat(q,"-readonly"),Ie),le),ue);return I.createElement(O,N()({ref:G,className:Ne,upHandler:We,downHandler:$,prefixCls:q,readOnly:Ie},X))})};return I.createElement(B.a,null,V)});j.defaultProps={step:1};var H=z.a=j},g0SD:function(fe,z,y){var D=y("bYtY"),N=y("9wZj"),L=y("OELB"),E=y("YXkt"),I=y("kj2x"),o=y("iPDy");function m(t,l,a){var r=l.coordinateSystem;t.each(function(u){var e=t.getItemModel(u),n,i=L.parsePercent(e.get("x"),a.getWidth()),c=L.parsePercent(e.get("y"),a.getHeight());if(!isNaN(i)&&!isNaN(c))n=[i,c];else if(l.getMarkerPosition)n=l.getMarkerPosition(t.getValues(t.dimensions,u));else if(r){var d=t.get(r.dimensions[0],u),h=t.get(r.dimensions[1],u);n=r.dataToPoint([d,h])}isNaN(i)||(n[0]=i),isNaN(c)||(n[1]=c),t.setItemLayout(u,n)})}var f=o.extend({type:"markPoint",updateTransform:function(t,l,a){l.eachSeries(function(r){var u=r.markPointModel;u&&(m(u.getData(),r,a),this.markerGroupMap.get(r.id).updateLayout(u))},this)},renderSeries:function(t,l,a,r){var u=t.coordinateSystem,e=t.id,n=t.getData(),i=this.markerGroupMap,c=i.get(e)||i.set(e,new N),d=s(u,t,l);l.setData(d),m(l.getData(),t,r),d.each(function(h){var p=d.getItemModel(h),g=p.getShallow("symbol"),v=p.getShallow("symbolSize"),A=D.isFunction(g),x=D.isFunction(v);if(A||x){var b=l.getRawValue(h),w=l.getDataParams(h);A&&(g=g(b,w)),x&&(v=v(b,w))}d.setItemVisual(h,{symbol:g,symbolSize:v,color:p.get("itemStyle.color")||n.getVisual("color")})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(h){h.traverse(function(p){p.dataModel=l})}),c.__keep=!0,c.group.silent=l.get("silent")||t.get("silent")}});function s(t,l,a){var r;t?r=D.map(t&&t.dimensions,function(n){var i=l.getData().getDimensionInfo(l.getData().mapDimension(n))||{};return D.defaults({name:n},i)}):r=[{name:"value",type:"float"}];var u=new E(r,a),e=D.map(a.get("data"),D.curry(I.dataTransform,l));return t&&(e=D.filter(e,D.curry(I.dataFilter,t))),u.initData(e,null,t?I.dimValueGetter:function(n){return n.value}),u}fe.exports=f},g7p0:function(fe,z,y){var D=y("bYtY"),N=y("bLfw"),L=y("+TT/"),E=L.getLayoutParams,I=L.sizeCalculable,o=L.mergeLayoutParam,m=N.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(t,l,a,r){var u=E(t);m.superApply(this,"init",arguments),f(t,u)},mergeOption:function(t,l){m.superApply(this,"mergeOption",arguments),f(this.option,t)}});function f(t,l){var a=t.cellSize;D.isArray(a)?a.length===1&&(a[1]=a[0]):a=t.cellSize=[a,a];var r=D.map([0,1],function(u){return I(l,u)&&(a[u]="auto"),a[u]!=null&&a[u]!=="auto"});o(t,l,{type:"box",ignoreSize:r})}var s=m;fe.exports=s},g9YV:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("pED+"),E=y.n(L),I=y("+L6B"),o=y("R9oj"),m=y("7Kak"),f=y("sRBo"),s=y("qVdP"),t=y("T2oS"),l=y("DjyN"),a=y("5Dmo")},gIYZ:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D={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"};z.default=D},gKaM:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},gPAo:function(fe,z){function y(E){return E}function D(E,I,o,m,f){this._old=E,this._new=I,this._oldKeyGetter=o||y,this._newKeyGetter=m||y,this.context=f}D.prototype={constructor:D,add:function(E){return this._add=E,this},update:function(E){return this._update=E,this},remove:function(E){return this._remove=E,this},execute:function(){var E=this._old,I=this._new,o={},m={},f=[],s=[],t;for(N(E,o,f,"_oldKeyGetter",this),N(I,m,s,"_newKeyGetter",this),t=0;t<E.length;t++){var l=f[t],a=m[l];if(a!=null){var r=a.length;r?(r===1&&(m[l]=null),a=a.shift()):m[l]=null,this._update&&this._update(a,t)}else this._remove&&this._remove(t)}for(var t=0;t<s.length;t++){var l=s[t];if(m.hasOwnProperty(l)){var a=m[l];if(a==null)continue;if(!a.length)this._add&&this._add(a);else for(var u=0,r=a.length;u<r;u++)this._add&&this._add(a[u])}}}};function N(E,I,o,m,f){for(var s=0;s<E.length;s++){var t="_ec_"+f[m](E[s],s),l=I[t];l==null?(o.push(t),I[t]=s):(l.length||(I[t]=l=[l]),l.push(s))}}var L=D;fe.exports=L},gRFJ:function(fe,z,y){fe.exports=[y("rdUC"),y("ynwM"),y("RELg"),y("DlR+"),y("CrYA"),y("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(fe){return fe<10?"0"+fe:fe}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(fe){return rx_escapable.lastIndex=0,rx_escapable.test(fe)?'"'+fe.replace(rx_escapable,function(z){var y=meta[z];return typeof y=="string"?y:"\\u"+("0000"+z.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+fe+'"'}function str(fe,z){var y,D,N,L,E=gap,I,o=z[fe];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(fe)),typeof rep=="function"&&(o=rep.call(z,fe,o));switch(typeof o){case"string":return quote(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(gap+=indent,I=[],Object.prototype.toString.apply(o)==="[object Array]"){for(L=o.length,y=0;y<L;y+=1)I[y]=str(y,o)||"null";return N=I.length===0?"[]":gap?`[
|
|
|
`+gap+I.join(`,
|
|
|
`+gap)+`
|
|
|
`+E+"]":"["+I.join(",")+"]",gap=E,N}if(rep&&typeof rep=="object")for(L=rep.length,y=0;y<L;y+=1)typeof rep[y]=="string"&&(D=rep[y],N=str(D,o),N&&I.push(quote(D)+(gap?": ":":")+N));else for(D in o)Object.prototype.hasOwnProperty.call(o,D)&&(N=str(D,o),N&&I.push(quote(D)+(gap?": ":":")+N));return N=I.length===0?"{}":gap?`{
|
|
|
`+gap+I.join(`,
|
|
|
`+gap)+`
|
|
|
`+E+"}":"{"+I.join(",")+"}",gap=E,N}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(fe,z,y){var D;if(gap="",indent="",typeof y=="number")for(D=0;D<y;D+=1)indent+=" ";else typeof y=="string"&&(indent=y);if(rep=z,z&&typeof z!="function"&&(typeof z!="object"||typeof z.length!="number"))throw new Error("JSON.stringify");return str("",{"":fe})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(fe,z){var y,D,N=fe[z];if(N&&typeof N=="object")for(y in N)Object.prototype.hasOwnProperty.call(N,y)&&(D=walk(N,y),D!==void 0?N[y]=D:delete N[y]);return reviver.call(fe,z,N)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(fe){return"\\u"+("0000"+fe.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(fe,z,y){var D=y("+TT/"),N=y("bYtY"),L=y("4NO4"),E=L.groupData;function I(S,T,C){S.eachSeriesByType("sankey",function(O){var _=O.get("nodeWidth"),M=O.get("nodeGap"),k=o(O,T);O.layoutInfo=k;var R=k.width,B=k.height,P=O.getGraph(),U=P.nodes,j=P.edges;f(U);var H=N.filter(U,function(Z){return Z.getLayout().value===0}),W=H.length!==0?0:O.get("layoutIterations"),G=O.get("orient"),V=O.get("nodeAlign");m(U,j,_,M,R,B,W,G,V)})}function o(S,T){return D.getLayoutRect(S.getBoxLayoutParams(),{width:T.getWidth(),height:T.getHeight()})}function m(S,T,C,O,_,M,k,R,B){s(S,T,C,_,M,R,B),u(S,T,M,_,O,k,R),w(S,R)}function f(S){N.each(S,function(T){var C=x(T.outEdges,A),O=x(T.inEdges,A),_=T.getValue()||0,M=Math.max(C,O,_);T.setLayout({value:M},!0)})}function s(S,T,C,O,_,M,k){for(var R=[],B=[],P=[],U=[],j=0,H=0,W=0;W<T.length;W++)R[W]=1;for(W=0;W<S.length;W++)B[W]=S[W].inEdges.length,B[W]===0&&P.push(S[W]);for(var G=-1;P.length;){for(var V=0;V<P.length;V++){var Z=P[V],Y=Z.hostGraph.data.getRawDataItem(Z.dataIndex),Q=Y.depth!=null&&Y.depth>=0;Q&&Y.depth>G&&(G=Y.depth),Z.setLayout({depth:Q?Y.depth:j},!0),M==="vertical"?Z.setLayout({dy:C},!0):Z.setLayout({dx:C},!0);for(var oe=0;oe<Z.outEdges.length;oe++){var ue=Z.outEdges[oe],Le=T.indexOf(ue);R[Le]=0;var me=ue.node2,Ie=S.indexOf(me);--B[Ie]===0&&U.indexOf(me)<0&&U.push(me)}}++j,P=U,U=[]}for(W=0;W<R.length;W++)if(R[W]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var X=G>j-1?G:j-1;k&&k!=="left"&&l(S,k,M,X);var H=M==="vertical"?(_-C)/X:(O-C)/X;r(S,H,M)}function t(S){var T=S.hostGraph.data.getRawDataItem(S.dataIndex);return T.depth!=null&&T.depth>=0}function l(S,T,C,O){if(T==="right"){for(var _=[],M=S,k=0;M.length;){for(var R=0;R<M.length;R++){var B=M[R];B.setLayout({skNodeHeight:k},!0);for(var P=0;P<B.inEdges.length;P++){var U=B.inEdges[P];_.indexOf(U.node1)<0&&_.push(U.node1)}}M=_,_=[],++k}N.each(S,function(j){t(j)||j.setLayout({depth:Math.max(0,O-j.getLayout().skNodeHeight)},!0)})}else T==="justify"&&a(S,O)}function a(S,T){N.each(S,function(C){!t(C)&&!C.outEdges.length&&C.setLayout({depth:T},!0)})}function r(S,T,C){N.each(S,function(O){var _=O.getLayout().depth*T;C==="vertical"?O.setLayout({y:_},!0):O.setLayout({x:_},!0)})}function u(S,T,C,O,_,M,k){var R=e(S,k);n(R,T,C,O,_,k),i(R,_,C,O,k);for(var B=1;M>0;M--)B*=.99,c(R,B,k),i(R,_,C,O,k),b(R,B,k),i(R,_,C,O,k)}function e(S,T){var C=[],O=T==="vertical"?"y":"x",_=E(S,function(M){return M.getLayout()[O]});return _.keys.sort(function(M,k){return M-k}),N.each(_.keys,function(M){C.push(_.buckets.get(M))}),C}function n(S,T,C,O,_,M){var k=Infinity;N.each(S,function(R){var B=R.length,P=0;N.each(R,function(j){P+=j.getLayout().value});var U=M==="vertical"?(O-(B-1)*_)/P:(C-(B-1)*_)/P;U<k&&(k=U)}),N.each(S,function(R){N.each(R,function(B,P){var U=B.getLayout().value*k;M==="vertical"?(B.setLayout({x:P},!0),B.setLayout({dx:U},!0)):(B.setLayout({y:P},!0),B.setLayout({dy:U},!0))})}),N.each(T,function(R){var B=+R.getValue()*k;R.setLayout({dy:B},!0)})}function i(S,T,C,O,_){var M=_==="vertical"?"x":"y";N.each(S,function(k){k.sort(function(V,Z){return V.getLayout()[M]-Z.getLayout()[M]});for(var R,B,P,U=0,j=k.length,H=_==="vertical"?"dx":"dy",W=0;W<j;W++)B=k[W],P=U-B.getLayout()[M],P>0&&(R=B.getLayout()[M]+P,_==="vertical"?B.setLayout({x:R},!0):B.setLayout({y:R},!0)),U=B.getLayout()[M]+B.getLayout()[H]+T;var G=_==="vertical"?O:C;if(P=U-T-G,P>0)for(R=B.getLayout()[M]-P,_==="vertical"?B.setLayout({x:R},!0):B.setLayout({y:R},!0),U=R,W=j-2;W>=0;--W)B=k[W],P=B.getLayout()[M]+B.getLayout()[H]+T-U,P>0&&(R=B.getLayout()[M]-P,_==="vertical"?B.setLayout({x:R},!0):B.setLayout({y:R},!0)),U=B.getLayout()[M]})}function c(S,T,C){N.each(S.slice().reverse(),function(O){N.each(O,function(_){if(_.outEdges.length){var M=x(_.outEdges,d,C)/x(_.outEdges,A,C);if(isNaN(M)){var k=_.outEdges.length;M=k?x(_.outEdges,h,C)/k:0}if(C==="vertical"){var R=_.getLayout().x+(M-v(_,C))*T;_.setLayout({x:R},!0)}else{var B=_.getLayout().y+(M-v(_,C))*T;_.setLayout({y:B},!0)}}})})}function d(S,T){return v(S.node2,T)*S.getValue()}function h(S,T){return v(S.node2,T)}function p(S,T){return v(S.node1,T)*S.getValue()}function g(S,T){return v(S.node1,T)}function v(S,T){return T==="vertical"?S.getLayout().x+S.getLayout().dx/2:S.getLayout().y+S.getLayout().dy/2}function A(S){return S.getValue()}function x(S,T,C){for(var O=0,_=S.length,M=-1;++M<_;){var k=+T.call(S,S[M],C);isNaN(k)||(O+=k)}return O}function b(S,T,C){N.each(S,function(O){N.each(O,function(_){if(_.inEdges.length){var M=x(_.inEdges,p,C)/x(_.inEdges,A,C);if(isNaN(M)){var k=_.inEdges.length;M=k?x(_.inEdges,g,C)/k:0}if(C==="vertical"){var R=_.getLayout().x+(M-v(_,C))*T;_.setLayout({x:R},!0)}else{var B=_.getLayout().y+(M-v(_,C))*T;_.setLayout({y:B},!0)}}})})}function w(S,T){var C=T==="vertical"?"x":"y";N.each(S,function(O){O.outEdges.sort(function(_,M){return _.node2.getLayout()[C]-M.node2.getLayout()[C]}),O.inEdges.sort(function(_,M){return _.node1.getLayout()[C]-M.node1.getLayout()[C]})}),N.each(S,function(O){var _=0,M=0;N.each(O.outEdges,function(k){k.setLayout({sy:_},!0),_+=k.getLayout().dy}),N.each(O.inEdges,function(k){k.setLayout({ty:M},!0),M+=k.getLayout().dy})})}fe.exports=I},"gb/T":function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return D.mode.ECB=function(){var N=D.lib.BlockCipherMode.extend();return N.Encryptor=N.extend({processBlock:function(E,I){this._cipher.encryptBlock(E,I)}}),N.Decryptor=N.extend({processBlock:function(E,I){this._cipher.decryptBlock(E,I)}}),N}(),D.mode.ECB})},"giR+":function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("QbM5"),E=y.n(L)},gut8:function(fe,z){var y={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},D=9;z.ContextCachedBy=y,z.WILL_BE_RESTORED=D},gvm7:function(fe,z,y){var D=y("bYtY"),N=y("dqUG");function L(I){this._zr=I.getZr(),this._show=!1,this._hideTimeout}L.prototype={constructor:L,_enterable:!0,update:function(){},show:function(I){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(I,o,m){this.el&&this._zr.remove(this.el);for(var f={},s=I,t="{marker",l="|}",a=s.indexOf(t);a>=0;){var r=s.indexOf(l),u=s.substr(a+t.length,r-a-t.length);u.indexOf("sub")>-1?f["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:o[u],textOffset:[3,0]}:f["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:o[u]},s=s.substr(r+1),a=s.indexOf("{marker")}this.el=new N({style:{rich:f,text:I,textLineHeight:20,textBackgroundColor:m.get("backgroundColor"),textBorderRadius:m.get("borderRadius"),textFill:m.get("textStyle.color"),textPadding:m.get("padding")},z:m.get("z")}),this._zr.add(this.el);var e=this;this.el.on("mouseover",function(){e._enterable&&(clearTimeout(e._hideTimeout),e._show=!0),e._inContent=!0}),this.el.on("mouseout",function(){e._enterable&&(e._show&&e.hideLater(e._hideDelay)),e._inContent=!1})},setEnterable:function(I){this._enterable=I},getSize:function(){var I=this.el.getBoundingRect();return[I.width,I.height]},moveTo:function(I,o){this.el&&this.el.attr("position",[I,o])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(I){this._show&&!(this._inContent&&this._enterable)&&(I?(this._hideDelay=I,this._show=!1,this._hideTimeout=setTimeout(D.bind(this.hide,this),I)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var I=this.getSize();return{width:I[0],height:I[1]}}};var E=L;fe.exports=E},gwTy:function(fe,z,y){},h54F:function(fe,z,y){var D=y("ProS"),N=y("YXkt"),L=y("bYtY"),E=y("4NO4"),I=E.defaultEmphasis,o=y("Qxkt"),m=y("7aKB"),f=m.encodeHTML,s=y("I3/A"),t=y("xKMd"),l=D.extendSeriesModel({type:"series.graph",init:function(r){l.superApply(this,"init",arguments);var u=this;function e(){return u._categoriesData}this.legendVisualProvider=new t(e,e),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},mergeOption:function(r){l.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(r){l.superApply(this,"mergeDefaultAndTheme",arguments),I(r,["edgeLabel"],["show"])},getInitialData:function(r,u){var e=r.edges||r.links||[],n=r.data||r.nodes||[],i=this;if(n&&e)return s(n,e,this,!0,c).data;function c(d,h){d.wrapMethod("getItemModel",function(b){var w=i._categoriesModels,S=b.getShallow("category"),T=w[S];return T&&(T.parentModel=b.parentModel,b.parentModel=T),b});var p=i.getModel("edgeLabel"),g=new o({label:p.option},p.parentModel,u),v=i.getModel("emphasis.edgeLabel"),A=new o({emphasis:{label:v.option}},v.parentModel,u);h.wrapMethod("getItemModel",function(b){return b.customizeGetParent(x),b});function x(b){return b=this.parsePath(b),b&&b[0]==="label"?g:b&&b[0]==="emphasis"&&b[1]==="label"?A:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(r,u,e){if(e==="edge"){var n=this.getData(),i=this.getDataParams(r,e),c=n.graph.getEdgeByIndex(r),d=n.getName(c.node1.dataIndex),h=n.getName(c.node2.dataIndex),p=[];return d!=null&&p.push(d),h!=null&&p.push(h),p=f(p.join(" > ")),i.value&&(p+=" : "+f(i.value)),p}else return l.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var r=L.map(this.option.categories||[],function(e){return e.value!=null?e:L.extend({value:0},e)}),u=new N(["value"],this);u.initData(r),this._categoriesData=u,this._categoriesModels=u.mapArray(function(e){return u.getItemModel(e,!0)})},setZoom:function(r){this.option.zoom=r},setCenter:function(r){this.option.center=r},isAnimationEnabled:function(){return l.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}}}}),a=l;fe.exports=a},h7HQ:function(fe,z,y){var D=y("y+Vt"),N=y("T6xi"),L=D.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(I,o){N.buildPath(I,o,!0)}});fe.exports=L},h8O9:function(fe,z,y){var D=y("bYtY"),N=D.map,L=y("zM3Q"),E=y("7hqr"),I=E.isDimensionStacked;function o(m){return{seriesType:m,plan:L(),reset:function(f){var s=f.getData(),t=f.coordinateSystem,l=f.pipelineContext,a=l.large;if(!t)return;var r=N(t.dimensions,function(i){return s.mapDimension(i)}).slice(0,2),u=r.length,e=s.getCalculationInfo("stackResultDimension");I(s,r[0])&&(r[0]=e),I(s,r[1])&&(r[1]=e);function n(i,c){for(var d=i.end-i.start,h=a&&new Float32Array(d*u),p=i.start,g=0,v=[],A=[];p<i.end;p++){var x;if(u===1){var b=c.get(r[0],p);x=!isNaN(b)&&t.dataToPoint(b,null,A)}else{var b=v[0]=c.get(r[0],p),w=v[1]=c.get(r[1],p);x=!isNaN(b)&&!isNaN(w)&&t.dataToPoint(v,null,A)}a?(h[g++]=x?x[0]:NaN,h[g++]=x?x[1]:NaN):c.setItemLayout(p,x&&x.slice()||[NaN,NaN])}a&&c.setLayout("symbolPoints",h)}return u&&{progress:n}}}}fe.exports=o},hD7B:function(fe,z,y){var D=y("bYtY"),N=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function L(I){D.each(N,function(o){this[o]=D.bind(I[o],I)},this)}var E=L;fe.exports=E},hFmY:function(fe,z,y){var D=y("ProS"),N={type:"axisAreaSelect",event:"axisAreaSelected"};D.registerAction(N,function(L,E){E.eachComponent({mainType:"parallelAxis",query:L},function(I){I.axis.model.setActiveIntervals(L.intervals)})}),D.registerAction("parallelAxisExpand",function(L,E){E.eachComponent({mainType:"parallel",query:L},function(I){I.setAxisExpand(L)})})},hJvP:function(fe,z,y){var D=y("2dDv"),N=y("IDmD");function L(E,I){var o=[];return E.eachComponent("parallel",function(m,f){var s=new D(m,E,I);s.name="parallel_"+f,s.resize(m,I),m.coordinateSystem=s,s.model=m,o.push(s)}),E.eachSeries(function(m){if(m.get("coordinateSystem")==="parallel"){var f=E.queryComponents({mainType:"parallel",index:m.get("parallelIndex"),id:m.get("parallelId")})[0];m.coordinateSystem=f.coordinateSystem}}),o}N.register("parallel",{create:L})},hM6l:function(fe,z,y){var D=y("bYtY"),N=D.each,L=D.map,E=y("OELB"),I=E.linearMap,o=E.getPixelPrecision,m=E.round,f=y("4HMb"),s=f.createAxisTicks,t=f.createAxisLabels,l=f.calculateCategoryInterval,a=[0,1],r=function(i,c,d){this.dim=i,this.scale=c,this._extent=d||[0,0],this.inverse=!1,this.onBand=!1};r.prototype={constructor:r,contain:function(i){var c=this._extent,d=Math.min(c[0],c[1]),h=Math.max(c[0],c[1]);return i>=d&&i<=h},containData:function(i){return this.scale.contain(i)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(i){return o(i||this.scale.getExtent(),this._extent)},setExtent:function(i,c){var d=this._extent;d[0]=i,d[1]=c},dataToCoord:function(i,c){var d=this._extent,h=this.scale;return i=h.normalize(i),this.onBand&&h.type==="ordinal"&&(d=d.slice(),u(d,h.count())),I(i,a,d,c)},coordToData:function(i,c){var d=this._extent,h=this.scale;this.onBand&&h.type==="ordinal"&&(d=d.slice(),u(d,h.count()));var p=I(i,d,a,c);return this.scale.scale(p)},pointToData:function(i,c){},getTicksCoords:function(i){i=i||{};var c=i.tickModel||this.getTickModel(),d=s(this,c),h=d.ticks,p=L(h,function(v){return{coord:this.dataToCoord(v),tickValue:v}},this),g=c.get("alignWithLabel");return e(this,p,g,i.clamp),p},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var i=this.model.getModel("minorTick"),c=i.get("splitNumber");c>0&&c<100||(c=5);var d=this.scale.getMinorTicks(c),h=L(d,function(p){return L(p,function(g){return{coord:this.dataToCoord(g),tickValue:g}},this)},this);return h},getViewLabels:function(){return t(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var i=this._extent,c=this.scale.getExtent(),d=c[1]-c[0]+(this.onBand?1:0);d===0&&(d=1);var h=Math.abs(i[1]-i[0]);return Math.abs(h)/d},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return l(this)}};function u(i,c){var d=i[1]-i[0],h=c,p=d/h/2;i[0]+=p,i[1]-=p}function e(i,c,d,h){var p=c.length;if(!i.onBand||d||!p)return;var g=i.getExtent(),v,A;if(p===1)c[0].coord=g[0],v=c[1]={coord:g[0]};else{var x=c[p-1].tickValue-c[0].tickValue,b=(c[p-1].coord-c[0].coord)/x;N(c,function(C){C.coord-=b/2});var w=i.scale.getExtent();A=1+w[1]-c[p-1].tickValue,v={coord:c[p-1].coord+b*A},c.push(v)}var S=g[0]>g[1];T(c[0].coord,g[0])&&(h?c[0].coord=g[0]:c.shift()),h&&T(g[0],c[0].coord)&&c.unshift({coord:g[0]}),T(g[1],v.coord)&&(h?v.coord=g[1]:c.pop()),h&&T(v.coord,g[1])&&c.push({coord:g[1]});function T(C,O){return C=m(C),O=m(O),S?C>O:C<O}}var n=r;fe.exports=n},hNWo:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("Qxkt"),E=y("4NO4"),I=E.isNameSpecified,o=y("Kagy"),m=o.legend.selector,f={all:{type:"all",title:N.clone(m.all)},inverse:{type:"inverse",title:N.clone(m.inverse)}},s=D.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(l,a,r){this.mergeDefaultAndTheme(l,r),l.selected=l.selected||{},this._updateSelector(l)},mergeOption:function(l){s.superCall(this,"mergeOption",l),this._updateSelector(l)},_updateSelector:function(l){var a=l.selector;a===!0&&(a=l.selector=["all","inverse"]),N.isArray(a)&&N.each(a,function(r,u){N.isString(r)&&(r={type:r}),a[u]=N.merge(r,f[r.type])})},optionUpdated:function(){this._updateData(this.ecModel);var l=this._data;if(l[0]&&this.get("selectedMode")==="single"){for(var a=!1,r=0;r<l.length;r++){var u=l[r].get("name");if(this.isSelected(u)){this.select(u),a=!0;break}}!a&&this.select(l[0].get("name"))}},_updateData:function(l){var a=[],r=[];l.eachRawSeries(function(n){var i=n.name;r.push(i);var c;if(n.legendVisualProvider){var d=n.legendVisualProvider,h=d.getAllNames();l.isSeriesFiltered(n)||(r=r.concat(h)),h.length?a=a.concat(h):c=!0}else c=!0;c&&I(n)&&a.push(n.name)}),this._availableNames=r;var u=this.get("data")||a,e=N.map(u,function(n){return(typeof n=="string"||typeof n=="number")&&(n={name:n}),new L(n,this,this.ecModel)},this);this._data=e},getData:function(){return this._data},select:function(l){var a=this.option.selected,r=this.get("selectedMode");if(r==="single"){var u=this._data;N.each(u,function(e){a[e.get("name")]=!1})}a[l]=!0},unSelect:function(l){this.get("selectedMode")!=="single"&&(this.option.selected[l]=!1)},toggleSelected:function(l){var a=this.option.selected;a.hasOwnProperty(l)||(a[l]=!0),this[a[l]?"unSelect":"select"](l)},allSelect:function(){var l=this._data,a=this.option.selected;N.each(l,function(r){a[r.get("name",!0)]=!0})},inverseSelect:function(){var l=this._data,a=this.option.selected;N.each(l,function(r){var u=r.get("name",!0);a.hasOwnProperty(u)||(a[u]=!0),a[u]=!a[u]})},isSelected:function(l){var a=this.option.selected;return!(a.hasOwnProperty(l)&&!a[l])&&N.indexOf(this._availableNames,l)>=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}}}),t=s;fe.exports=t},hOwI:function(fe,z){var y=Math.log(2);function D(L,E,I,o,m,f){var s=o+"-"+m,t=L.length;if(f.hasOwnProperty(s))return f[s];if(E===1){var l=Math.round(Math.log((1<<t)-1&~m)/y);return L[I][l]}for(var a=o|1<<I,r=I+1;o&1<<r;)r++;for(var u=0,e=0,n=0;e<t;e++){var i=1<<e;i&m||(u+=(n%2?-1:1)*L[I][e]*D(L,E-1,r,a,m|i,f),n++)}return f[s]=u,u}function N(L,E){var I=[[L[0],L[1],1,0,0,0,-E[0]*L[0],-E[0]*L[1]],[0,0,0,L[0],L[1],1,-E[1]*L[0],-E[1]*L[1]],[L[2],L[3],1,0,0,0,-E[2]*L[2],-E[2]*L[3]],[0,0,0,L[2],L[3],1,-E[3]*L[2],-E[3]*L[3]],[L[4],L[5],1,0,0,0,-E[4]*L[4],-E[4]*L[5]],[0,0,0,L[4],L[5],1,-E[5]*L[4],-E[5]*L[5]],[L[6],L[7],1,0,0,0,-E[6]*L[6],-E[6]*L[7]],[0,0,0,L[6],L[7],1,-E[7]*L[6],-E[7]*L[7]]],o={},m=D(I,8,0,0,0,o);if(m===0)return;for(var f=[],s=0;s<8;s++)for(var t=0;t<8;t++)f[t]==null&&(f[t]=0),f[t]+=((s+t)%2?-1:1)*D(I,7,s===0?1:0,1<<s,1<<t,o)/m*E[s];return function(l,a,r){var u=a*f[6]+r*f[7]+1;l[0]=(a*f[0]+r*f[1]+f[2])/u,l[1]=(a*f[3]+r*f[4]+f[5])/u}}z.buildTransformer=N},hX1E:function(fe,z){var y=Math.PI*2;function D(N){return N%=y,N<0&&(N+=y),N}z.normalizeRadian=D},hXwI:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;function D(I,o){if(!(I instanceof o))throw new TypeError("Cannot call a class as a function")}function N(I,o){for(var m=0;m<o.length;m++){var f=o[m];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(I,f.key,f)}}function L(I,o,m){return o&&N(I.prototype,o),m&&N(I,m),I}var E=function(){function I(){D(this,I)}return L(I,[{key:"decodeRect",value:function(m,f,s,t,l,a,r){if(l.rQwait("COPYRECT",4))return!1;var u=l.rQshift16(),e=l.rQshift16();return a.copyImage(u,e,m,f,s,t),!0}}]),I}();z.default=E},hi0g:function(fe,z,y){var D=y("bYtY"),N=D.createHashMap,L=D.each,E=D.isString,I=D.defaults,o=D.extend,m=D.isObject,f=D.clone,s=y("4NO4"),t=s.normalizeToArray,l=y("D5nY"),a=l.guessOrdinal,r=l.BE_ORDINAL,u=y("7G+c"),e=y("L0Ub"),n=e.OTHER_DIMENSIONS,i=y("Vi4m");function c(g,v,A){u.isInstance(v)||(v=u.seriesDataToSource(v)),A=A||{},g=(g||[]).slice();for(var x=(A.dimsDef||[]).slice(),b=N(),w=N(),S=[],T=d(v,g,x,A.dimCount),C=0;C<T;C++){var O=x[C]=o({},m(x[C])?x[C]:{name:x[C]}),_=O.name,M=S[C]=new i;_!=null&&b.get(_)==null&&(M.name=M.displayName=_,b.set(_,C)),O.type!=null&&(M.type=O.type),O.displayName!=null&&(M.displayName=O.displayName)}var k=A.encodeDef;!k&&A.encodeDefaulter&&(k=A.encodeDefaulter(v,T)),k=N(k),k.each(function(V,Z){if(V=t(V).slice(),V.length===1&&!E(V[0])&&V[0]<0){k.set(Z,!1);return}var Y=k.set(Z,[]);L(V,function(Q,oe){E(Q)&&(Q=b.get(Q)),Q!=null&&Q<T&&(Y[oe]=Q,B(S[Q],Z,oe))})});var R=0;L(g,function(V,Z){var Y,V,Q,oe;if(E(V))Y=V,V={};else{Y=V.name;var ue=V.ordinalMeta;V.ordinalMeta=null,V=f(V),V.ordinalMeta=ue,Q=V.dimsDef,oe=V.otherDims,V.name=V.coordDim=V.coordDimIndex=V.dimsDef=V.otherDims=null}var Le=k.get(Y);if(Le===!1)return;var Le=t(Le);if(!Le.length)for(var me=0;me<(Q&&Q.length||1);me++){for(;R<S.length&&S[R].coordDim!=null;)R++;R<S.length&&Le.push(R++)}L(Le,function(Ie,X){var q=S[Ie];if(B(I(q,V),Y,X),q.name==null&&Q){var We=Q[X];!m(We)&&(We={name:We}),q.name=q.displayName=We.name,q.defaultTooltip=We.defaultTooltip}oe&&I(q.otherDims,oe)})});function B(V,Z,Y){n.get(Z)!=null?V.otherDims[Z]=Y:(V.coordDim=Z,V.coordDimIndex=Y,w.set(Z,!0))}var P=A.generateCoord,U=A.generateCoordCount,j=U!=null;U=P?U||1:0;for(var H=P||"value",W=0;W<T;W++){var M=S[W]=S[W]||new i,G=M.coordDim;G==null&&(M.coordDim=h(H,w,j),M.coordDimIndex=0,(!P||U<=0)&&(M.isExtraCoord=!0),U--),M.name==null&&(M.name=h(M.coordDim,b)),M.type==null&&(a(v,W,M.name)===r.Must||M.isExtraCoord&&(M.otherDims.itemName!=null||M.otherDims.seriesName!=null))&&(M.type="ordinal")}return S}function d(g,v,A,x){var b=Math.max(g.dimensionsDetectCount||1,v.length,A.length,x||0);return L(v,function(w){var S=w.dimsDef;S&&(b=Math.max(b,S.length))}),b}function h(g,v,A){if(A||v.get(g)!=null){for(var x=0;v.get(g+x)!=null;)x++;g+=x}return v.set(g,!0),g}var p=c;fe.exports=p},hkKa:function(fe,z,y){"use strict";y.d(z,"a",function(){return I});var D=y("J4zp"),N=y.n(D),L=y("q1tI"),E=y.n(L);function I(){var o=L.useReducer(function(s){return s+1},0),m=N()(o,2),f=m[1];return f}},hw6D:function(fe,z,y){var D=y("bYtY");function N(I){I.eachSeriesByType("radar",function(o){var m=o.getData(),f=[],s=o.coordinateSystem;if(!s)return;var t=s.getIndicatorAxes();D.each(t,function(l,a){m.each(m.mapDimension(t[a].dim),function(r,u){f[u]=f[u]||[];var e=s.dataToPoint(r,a);f[u][a]=L(e)?e:E(s)})}),m.each(function(l){var a=D.find(f[l],function(r){return L(r)})||E(s);f[l].push(a.slice()),m.setItemLayout(l,f[l])})})}function L(I){return!isNaN(I[0])&&!isNaN(I[1])}function E(I){return[I.cx,I.cy]}fe.exports=N},hwYd:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("Nu4q")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="PictureTwoTone";var f=E.forwardRef(m);z.default=f},hydK:function(fe,z){var y="http://www.w3.org/2000/svg";function D(N){return document.createElementNS(y,N)}z.createElement=D},hyiK:function(fe,z){function y(D,N,L,E,I,o){if(o>N&&o>E||o<N&&o<E)return 0;if(E===N)return 0;var m=E<N?1:-1,f=(o-N)/(E-N);(f===1||f===0)&&(m=E<N?.5:-.5);var s=f*(L-D)+D;return s===I?Infinity:s>I?m:0}fe.exports=y},i38C:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=L.createHashMap,I=L.retrieve,o=L.each;function m(l){this.coordSysName=l,this.coordSysDims=[],this.axisMap=E(),this.categoryAxisMap=E(),this.firstCategoryDimIndex=null}function f(l){var a=l.get("coordinateSystem"),r=new m(a),u=s[a];if(u)return u(l,r,r.axisMap,r.categoryAxisMap),r}var s={cartesian2d:function(l,a,r,u){var e=l.getReferringComponents("xAxis")[0],n=l.getReferringComponents("yAxis")[0];a.coordSysDims=["x","y"],r.set("x",e),r.set("y",n),t(e)&&(u.set("x",e),a.firstCategoryDimIndex=0),t(n)&&(u.set("y",n),a.firstCategoryDimIndex==null&(a.firstCategoryDimIndex=1))},singleAxis:function(l,a,r,u){var e=l.getReferringComponents("singleAxis")[0];a.coordSysDims=["single"],r.set("single",e),t(e)&&(u.set("single",e),a.firstCategoryDimIndex=0)},polar:function(l,a,r,u){var e=l.getReferringComponents("polar")[0],n=e.findAxisModel("radiusAxis"),i=e.findAxisModel("angleAxis");a.coordSysDims=["radius","angle"],r.set("radius",n),r.set("angle",i),t(n)&&(u.set("radius",n),a.firstCategoryDimIndex=0),t(i)&&(u.set("angle",i),a.firstCategoryDimIndex==null&&(a.firstCategoryDimIndex=1))},geo:function(l,a,r,u){a.coordSysDims=["lng","lat"]},parallel:function(l,a,r,u){var e=l.ecModel,n=e.getComponent("parallel",l.get("parallelIndex")),i=a.coordSysDims=n.dimensions.slice();o(n.parallelAxisIndex,function(c,d){var h=e.getComponent("parallelAxis",c),p=i[d];r.set(p,h),t(h)&&a.firstCategoryDimIndex==null&&(u.set(p,h),a.firstCategoryDimIndex=d)})}};function t(l){return l.get("type")==="category"}z.getCoordSysInfoBySeries=f},i6bk:function(fe,z,y){"use strict";y.d(z,"b",function(){return D}),y.d(z,"a",function(){return N});function D(L){return L!=null&&L===L.window}function N(L,E){if(typeof window=="undefined")return 0;var I=E?"scrollTop":"scrollLeft",o=0;return D(L)?o=L[E?"pageYOffset":"pageXOffset"]:L instanceof Document?o=L.documentElement[I]:L&&(o=L[I]),L&&!D(L)&&typeof o!="number"&&(o=(L.ownerDocument||L).documentElement[I]),o}},i8CU:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("Fm1+"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},iLNv:function(fe,z){var y="\0__throttleOriginMethod",D="\0__throttleRate",N="\0__throttleType";function L(o,m,f){var s,t=0,l=0,a=null,r,u,e,n;m=m||0;function i(){l=new Date().getTime(),a=null,o.apply(u,e||[])}var c=function(){s=new Date().getTime(),u=this,e=arguments;var d=n||m,h=n||f;n=null,r=s-(h?t:l)-d,clearTimeout(a),h?a=setTimeout(i,d):r>=0?i():a=setTimeout(i,-r),t=s};return c.clear=function(){a&&(clearTimeout(a),a=null)},c.debounceNextCall=function(d){n=d},c}function E(o,m,f,s){var t=o[m];if(!t)return;var l=t[y]||t,a=t[N],r=t[D];if(r!==f||a!==s){if(f==null||!s)return o[m]=l;t=o[m]=L(l,f,s==="debounce"),t[y]=l,t[N]=s,t[D]=f}return t}function I(o,m){var f=o[m];f&&f[y]&&(o[m]=f[y])}z.throttle=L,z.createOrUpdate=E,z.clear=I},iPDy:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=D.extendComponentView({type:"marker",init:function(){this.markerGroupMap=N.createHashMap()},render:function(E,I,o){var m=this.markerGroupMap;m.each(function(s){s.__keep=!1});var f=this.type+"Model";I.eachSeries(function(s){var t=s[f];t&&this.renderSeries(s,t,I,o)},this),m.each(function(s){!s.__keep&&this.group.remove(s.group)},this)},renderSeries:function(){}});fe.exports=L},iQDF:function(fe,z,y){"use strict";var D=y("ZTW2"),N=y.n(D),L=y("+BJd"),E=y("+L6B")},iRjW:function(fe,z,y){var D=y("bYtY"),N=y("Yl7c"),L=N.parseClassType,E=0;function I(f){return[f||"",E++,Math.random().toFixed(5)].join("_")}function o(f){var s={};return f.registerSubTypeDefaulter=function(t,l){t=L(t),s[t.main]=l},f.determineSubType=function(t,l){var a=l.type;if(!a){var r=L(t).main;f.hasSubTypes(t)&&s[r]&&(a=s[r](l))}return a},f}function m(f,s){f.topologicalTravel=function(r,u,e,n){if(!r.length)return;var i=t(u),c=i.graph,d=i.noEntryList,h={};for(D.each(r,function(b){h[b]=!0});d.length;){var p=d.pop(),g=c[p],v=!!h[p];v&&(e.call(n,p,g.originalDeps.slice()),delete h[p]),D.each(g.successor,v?x:A)}D.each(h,function(){throw new Error("Circle dependency may exists")});function A(b){c[b].entryCount--,c[b].entryCount===0&&d.push(b)}function x(b){h[b]=!0,A(b)}};function t(r){var u={},e=[];return D.each(r,function(n){var i=l(u,n),c=i.originalDeps=s(n),d=a(c,r);i.entryCount=d.length,i.entryCount===0&&e.push(n),D.each(d,function(h){D.indexOf(i.predecessor,h)<0&&i.predecessor.push(h);var p=l(u,h);D.indexOf(p.successor,h)<0&&p.successor.push(n)})}),{graph:u,noEntryList:e}}function l(r,u){return r[u]||(r[u]={predecessor:[],successor:[]}),r[u]}function a(r,u){var e=[];return D.each(r,function(n){D.indexOf(u,n)>=0&&e.push(n)}),e}}z.getUID=I,z.enableSubTypeDefaulter=o,z.enableTopologicalTravel=m},iUHT:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;function D(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function N(g,v){for(var A=0;A<v.length;A++){var x=v[A];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}function L(g,v,A){return v&&N(g.prototype,v),A&&N(g,A),g}var E=[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],I=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],o=0,m,f,s,t,l,a;m=1<<16,f=1<<24,s=m|f,t=1<<2,l=1<<10,a=t|l;var r=[s|l,o|o,m|o,s|a,s|t,m|a,o|t,m|o,o|l,s|l,s|a,o|l,f|a,s|t,f|o,o|t,o|a,f|l,f|l,m|l,m|l,s|o,s|o,f|a,m|t,f|t,f|t,m|t,o|o,o|a,m|a,f|o,m|o,s|a,o|t,s|o,s|l,f|o,f|o,o|l,s|t,m|o,m|l,f|t,o|l,o|t,f|a,m|a,s|a,m|t,s|o,f|a,f|t,o|a,m|a,s|l,o|a,f|l,f|l,o|o,m|t,m|l,o|o,s|t];m=1<<20,f=1<<31,s=m|f,t=1<<5,l=1<<15,a=t|l;var u=[s|a,f|l,o|l,m|a,m|o,o|t,s|t,f|a,f|t,s|a,s|l,f|o,f|l,m|o,o|t,s|t,m|l,m|t,f|a,o|o,f|o,o|l,m|a,s|o,m|t,f|t,o|o,m|l,o|a,s|l,s|o,o|a,o|o,m|a,s|t,m|o,f|a,s|o,s|l,o|l,s|o,f|l,o|t,s|a,m|a,o|t,o|l,f|o,o|a,s|l,m|o,f|t,m|t,f|a,f|t,m|t,m|l,o|o,f|l,o|a,f|o,s|t,s|a,m|l];m=1<<17,f=1<<27,s=m|f,t=1<<3,l=1<<9,a=t|l;var e=[o|a,s|l,o|o,s|t,f|l,o|o,m|a,f|l,m|t,f|t,f|t,m|o,s|a,m|t,s|o,o|a,f|o,o|t,s|l,o|l,m|l,s|o,s|t,m|a,f|a,m|l,m|o,f|a,o|t,s|a,o|l,f|o,s|l,f|o,m|t,o|a,m|o,s|l,f|l,o|o,o|l,m|t,s|a,f|l,f|t,o|l,o|o,s|t,f|a,m|o,f|o,s|a,o|t,m|a,m|l,f|t,s|o,f|a,o|a,s|o,m|a,o|t,s|t,m|l];m=1<<13,f=1<<23,s=m|f,t=1<<0,l=1<<7,a=t|l;var n=[s|t,m|a,m|a,o|l,s|l,f|a,f|t,m|t,o|o,s|o,s|o,s|a,o|a,o|o,f|l,f|t,o|t,m|o,f|o,s|t,o|l,f|o,m|t,m|l,f|a,o|t,m|l,f|l,m|o,s|l,s|a,o|a,f|l,f|t,s|o,s|a,o|a,o|o,o|o,s|o,m|l,f|l,f|a,o|t,s|t,m|a,m|a,o|l,s|a,o|a,o|t,m|o,f|t,m|t,s|l,f|a,m|t,m|l,f|o,s|t,o|l,f|o,m|o,s|l];m=1<<25,f=1<<30,s=m|f,t=1<<8,l=1<<19,a=t|l;var i=[o|t,m|a,m|l,s|t,o|l,o|t,f|o,m|l,f|a,o|l,m|t,f|a,s|t,s|l,o|a,f|o,m|o,f|l,f|l,o|o,f|t,s|a,s|a,m|t,s|l,f|t,o|o,s|o,m|a,m|o,s|o,o|a,o|l,s|t,o|t,m|o,f|o,m|l,s|t,f|a,m|t,f|o,s|l,m|a,f|a,o|t,m|o,s|l,s|a,o|a,s|o,s|a,m|l,o|o,f|l,s|o,o|a,m|t,f|t,o|l,o|o,f|l,m|a,f|t];m=1<<22,f=1<<29,s=m|f,t=1<<4,l=1<<14,a=t|l;var c=[f|t,s|o,o|l,s|a,s|o,o|t,s|a,m|o,f|l,m|a,m|o,f|t,m|t,f|l,f|o,o|a,o|o,m|t,f|a,o|l,m|l,f|a,o|t,s|t,s|t,o|o,m|a,s|l,o|a,m|l,s|l,f|o,f|l,o|t,s|t,m|l,s|a,m|o,o|a,f|t,m|o,f|l,f|o,o|a,f|t,s|a,m|l,s|o,m|a,s|l,o|o,s|t,o|t,o|l,s|o,m|a,o|l,m|t,f|a,o|o,s|l,f|o,m|t,f|a];m=1<<21,f=1<<26,s=m|f,t=1<<1,l=1<<11,a=t|l;var d=[m|o,s|t,f|a,o|o,o|l,f|a,m|a,s|l,s|a,m|o,o|o,f|t,o|t,f|o,s|t,o|a,f|l,m|a,m|t,f|l,f|t,s|o,s|l,m|t,s|o,o|l,o|a,s|a,m|l,o|t,f|o,m|l,f|o,m|l,m|o,f|a,f|a,s|t,s|t,o|t,m|t,f|o,f|l,m|o,s|l,o|a,m|a,s|l,o|a,f|t,s|a,s|o,m|l,o|o,o|t,s|a,o|o,m|a,s|o,o|l,f|t,f|l,o|l,m|t];m=1<<18,f=1<<28,s=m|f,t=1<<6,l=1<<12,a=t|l;var h=[f|a,o|l,m|o,s|a,f|o,f|a,o|t,f|o,m|t,s|o,s|a,m|l,s|l,m|a,o|l,o|t,s|o,f|t,f|l,o|a,m|l,m|t,s|t,s|l,o|a,o|o,o|o,s|t,f|t,f|l,m|a,m|o,m|a,m|o,s|l,o|l,o|t,s|t,o|l,m|a,f|l,o|t,f|t,s|o,s|t,f|o,m|o,f|a,o|o,s|a,m|t,f|t,s|o,f|l,f|a,o|o,s|a,m|l,m|l,o|a,o|a,m|t,f|o,s|l],p=function(){function g(v){D(this,g),this.keys=[];for(var A=[],x=[],b=[],w=0,S=56;w<56;++w,S-=8){S+=S<-5?65:S<-3?31:S<-1?63:S===27?35:0;var T=S&7;A[w]=(v[S>>>3]&1<<T)!==0?1:0}for(var C=0;C<16;++C){var O=C<<1,_=O+1;b[O]=b[_]=0;for(var M=28;M<59;M+=28)for(var k=M-28;k<M;++k){var R=k+I[C];x[k]=R<M?A[R]:A[R-28]}for(var B=0;B<24;++B)x[E[B]]!==0&&(b[O]|=1<<23-B),x[E[B+24]]!==0&&(b[_]|=1<<23-B)}for(var P=0,U=0,j=0;P<16;++P){var H=b[U++],W=b[U++];this.keys[j]=(H&16515072)<<6,this.keys[j]|=(H&4032)<<10,this.keys[j]|=(W&16515072)>>>10,this.keys[j]|=(W&4032)>>>6,++j,this.keys[j]=(H&258048)<<12,this.keys[j]|=(H&63)<<16,this.keys[j]|=(W&258048)>>>4,this.keys[j]|=W&63,++j}}return L(g,[{key:"enc8",value:function(A){var x=A.slice(),b=0,w,S,T;w=x[b++]<<24|x[b++]<<16|x[b++]<<8|x[b++],S=x[b++]<<24|x[b++]<<16|x[b++]<<8|x[b++],T=(w>>>4^S)&252645135,S^=T,w^=T<<4,T=(w>>>16^S)&65535,S^=T,w^=T<<16,T=(S>>>2^w)&858993459,w^=T,S^=T<<2,T=(S>>>8^w)&16711935,w^=T,S^=T<<8,S=S<<1|S>>>31&1,T=(w^S)&2863311530,w^=T,S^=T,w=w<<1|w>>>31&1;for(var C=0,O=0;C<8;++C){T=S<<28|S>>>4,T^=this.keys[O++];var _=d[T&63];_|=i[T>>>8&63],_|=e[T>>>16&63],_|=r[T>>>24&63],T=S^this.keys[O++],_|=h[T&63],_|=c[T>>>8&63],_|=n[T>>>16&63],_|=u[T>>>24&63],w^=_,T=w<<28|w>>>4,T^=this.keys[O++],_=d[T&63],_|=i[T>>>8&63],_|=e[T>>>16&63],_|=r[T>>>24&63],T=w^this.keys[O++],_|=h[T&63],_|=c[T>>>8&63],_|=n[T>>>16&63],_|=u[T>>>24&63],S^=_}for(S=S<<31|S>>>1,T=(w^S)&2863311530,w^=T,S^=T,w=w<<31|w>>>1,T=(w>>>8^S)&16711935,S^=T,w^=T<<8,T=(w>>>2^S)&858993459,S^=T,w^=T<<2,T=(S>>>16^w)&65535,w^=T,S^=T<<16,T=(S>>>4^w)&252645135,w^=T,S^=T<<4,T=[S,w],b=0;b<8;b++)x[b]=(T[b>>>2]>>>8*(3-b%4))%256,x[b]<0&&(x[b]+=256);return x}},{key:"encrypt",value:function(A){return this.enc8(A.slice(0,8)).concat(this.enc8(A.slice(8,16)))}}]),g}();z.default=p},iXHM:function(fe,z){var y="";typeof navigator!="undefined"&&(y=navigator.platform||"");var D={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:y.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};fe.exports=D},iXp4:function(fe,z,y){var D=y("ItGF"),N=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function L(E){return D.browser.ie&&D.browser.version>=11?function(){var I=this.__clipPaths,o=this.style,m;if(I)for(var f=0;f<I.length;f++){var s=I[f],t=s&&s.shape,l=s&&s.type;if(t&&(l==="sector"&&t.startAngle===t.endAngle||l==="rect"&&(!t.width||!t.height))){for(var a=0;a<N.length;a++)N[a][2]=o[N[a][0]],o[N[a][0]]=N[a][1];m=!0;break}}if(E.apply(this,arguments),m)for(var a=0;a<N.length;a++)o[N[a][0]]=N[a][2]}:E}fe.exports=L},iYpf:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("ZLWo")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="FolderOpenOutlined";var f=E.forwardRef(m);z.default=f},ieMj:function(fe,z,y){var D=y("OELB"),N=y("7aKB"),L=y("4NgU"),E=y("lE7J"),I=D.round,o=L.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(f,s){var t=this._extent;isNaN(f)||(t[0]=parseFloat(f)),isNaN(s)||(t[1]=parseFloat(s))},unionExtent:function(f){var s=this._extent;f[0]<s[0]&&(s[0]=f[0]),f[1]>s[1]&&(s[1]=f[1]),o.prototype.setExtent.call(this,s[0],s[1])},getInterval:function(){return this._interval},setInterval:function(f){this._interval=f,this._niceExtent=this._extent.slice(),this._intervalPrecision=E.getIntervalPrecision(f)},getTicks:function(f){var s=this._interval,t=this._extent,l=this._niceExtent,a=this._intervalPrecision,r=[];if(!s)return r;var u=1e4;t[0]<l[0]&&(f?r.push(I(l[0]-s,a)):r.push(t[0]));for(var e=l[0];e<=l[1]&&!(r.push(e),e=I(e+s,a),e===r[r.length-1]);)if(r.length>u)return[];var n=r.length?r[r.length-1]:l[1];return t[1]>n&&(f?r.push(I(n+s,a)):r.push(t[1])),r},getMinorTicks:function(f){for(var s=this.getTicks(!0),t=[],l=this.getExtent(),a=1;a<s.length;a++){for(var r=s[a],u=s[a-1],e=0,n=[],i=r-u,c=i/f;e<f-1;){var d=D.round(u+(e+1)*c);d>l[0]&&d<l[1]&&n.push(d),e++}t.push(n)}return t},getLabel:function(f,s){if(f==null)return"";var t=s&&s.precision;return t==null?t=D.getPrecisionSafe(f)||0:t==="auto"&&(t=this._intervalPrecision),f=I(f,t,!0),N.addCommas(f)},niceTicks:function(f,s,t){f=f||5;var l=this._extent,a=l[1]-l[0];if(!isFinite(a))return;a<0&&(a=-a,l.reverse());var r=E.intervalScaleNiceTicks(l,f,s,t);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent},niceExtent:function(f){var s=this._extent;if(s[0]===s[1])if(s[0]!==0){var t=s[0];f.fixMax||(s[1]+=t/2),s[0]-=t/2}else s[1]=1;var l=s[1]-s[0];isFinite(l)||(s[0]=0,s[1]=1),this.niceTicks(f.splitNumber,f.minInterval,f.maxInterval);var a=this._interval;f.fixMin||(s[0]=I(Math.floor(s[0]/a)*a)),f.fixMax||(s[1]=I(Math.ceil(s[1]/a)*a))}});o.create=function(){return new o};var m=o;fe.exports=m},j5sG:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.createSensor=void 0;var D=N(y("NohK"));function N(E){return E&&E.__esModule?E:{default:E}}var L=function(I){var o=void 0,m=[],f=(0,D.default)(function(){m.forEach(function(r){r(I)})}),s=function(){var u=new ResizeObserver(f);return u.observe(I),f(),u},t=function(u){o||(o=s()),m.indexOf(u)===-1&&m.push(u)},l=function(){o.disconnect(),m=[],o=void 0},a=function(u){var e=m.indexOf(u);e!==-1&&m.splice(e,1),m.length===0&&o&&l()};return{element:I,bind:t,destroy:l,unbind:a}};z.createSensor=L},jCoz:function(fe,z,y){var D=y("bYtY"),N=y("4NgU"),L=y("OELB"),E=y("ieMj"),I=N.prototype,o=E.prototype,m=L.getPrecisionSafe,f=L.round,s=Math.floor,t=Math.ceil,l=Math.pow,a=Math.log,r=N.extend({type:"log",base:10,$constructor:function(){N.apply(this,arguments),this._originalScale=new E},getTicks:function(n){var i=this._originalScale,c=this._extent,d=i.getExtent();return D.map(o.getTicks.call(this,n),function(h){var p=L.round(l(this.base,h));return p=h===c[0]&&i.__fixMin?u(p,d[0]):p,p=h===c[1]&&i.__fixMax?u(p,d[1]):p,p},this)},getMinorTicks:o.getMinorTicks,getLabel:o.getLabel,scale:function(n){return n=I.scale.call(this,n),l(this.base,n)},setExtent:function(n,i){var c=this.base;n=a(n)/a(c),i=a(i)/a(c),o.setExtent.call(this,n,i)},getExtent:function(){var n=this.base,i=I.getExtent.call(this);i[0]=l(n,i[0]),i[1]=l(n,i[1]);var c=this._originalScale,d=c.getExtent();return c.__fixMin&&(i[0]=u(i[0],d[0])),c.__fixMax&&(i[1]=u(i[1],d[1])),i},unionExtent:function(n){this._originalScale.unionExtent(n);var i=this.base;n[0]=a(n[0])/a(i),n[1]=a(n[1])/a(i),I.unionExtent.call(this,n)},unionExtentFromData:function(n,i){this.unionExtent(n.getApproximateExtent(i))},niceTicks:function(n){n=n||10;var i=this._extent,c=i[1]-i[0];if(c===Infinity||c<=0)return;var d=L.quantity(c),h=n/c*d;for(h<=.5&&(d*=10);!isNaN(d)&&Math.abs(d)<1&&Math.abs(d)>0;)d*=10;var p=[L.round(t(i[0]/d)*d),L.round(s(i[1]/d)*d)];this._interval=d,this._niceExtent=p},niceExtent:function(n){o.niceExtent.call(this,n);var i=this._originalScale;i.__fixMin=n.fixMin,i.__fixMax=n.fixMax}});D.each(["contain","normalize"],function(n){r.prototype[n]=function(i){return i=a(i)/a(this.base),I[n].call(this,i)}}),r.create=function(){return new r};function u(n,i){return f(n,m(i))}var e=r;fe.exports=e},jN4g:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="CloseCircleFilled";var m=z.a=N.forwardRef(o)},jO45:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="CheckCircleFilled";var m=z.a=N.forwardRef(o)},jO9C:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return D.pad.Iso97971={pad:function(L,E){L.concat(D.lib.WordArray.create([2147483648],1)),D.pad.ZeroPadding.pad(L,E)},unpad:function(L){D.pad.ZeroPadding.unpad(L),L.sigBytes--}},D.pad.Iso97971})},jTL6:function(fe,z,y){var D=y("y+Vt"),N=D.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(E,I){var o=I.cx,m=I.cy,f=Math.max(I.r,0),s=I.startAngle,t=I.endAngle,l=I.clockwise,a=Math.cos(s),r=Math.sin(s);E.moveTo(a*f+o,r*f+m),E.arc(o,m,f,s,t,!l)}});fe.exports=N},je13:function(fe,z,y){var D=y("5nXd"),N=y("gRFJ"),L=[y("uQRt")];fe.exports=D.createStore(N,L)},jett:function(fe,z,y){var D=y("ProS");y("VSLf"),y("oBaM"),y("FGaS");var N=y("mOdp"),L=y("f5Yq"),E=y("hw6D"),I=y("0/Rx"),o=y("eJH7");D.registerVisual(N("radar")),D.registerVisual(L("radar","circle")),D.registerLayout(E),D.registerProcessor(I("radar")),D.registerPreprocessor(o)},jhfD:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="ArrowLeftOutlined";var m=z.a=N.forwardRef(o)},jkPA:function(fe,z,y){var D=y("bYtY"),N=D.createHashMap,L=D.isObject,E=D.map;function I(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}I.createByAxisModel=function(t){var l=t.option,a=l.data,r=a&&E(a,f);return new I({categories:r,needCollect:!r,deduplication:l.dedplication!==!1})};var o=I.prototype;o.getOrdinal=function(t){return m(this).get(t)},o.parseAndCollect=function(t){var l,a=this._needCollect;if(typeof t!="string"&&!a)return t;if(a&&!this._deduplication)return l=this.categories.length,this.categories[l]=t,l;var r=m(this);return l=r.get(t),l==null&&(a?(l=this.categories.length,this.categories[l]=t,r.set(t,l)):l=NaN),l};function m(t){return t._map||(t._map=N(t.categories))}function f(t){return L(t)&&t.value!=null?t.value:t+""}var s=I;fe.exports=s},jndi:function(fe,z,y){var D=y("bYtY"),N=y("Qe9p"),L=y("YXkt"),E=y("OELB"),I=y("IwbS"),o=y("kj2x"),m=y("iPDy"),f=function(e,n,i,c){var d=o.dataTransform(e,c[0]),h=o.dataTransform(e,c[1]),p=D.retrieve,g=d.coord,v=h.coord;g[0]=p(g[0],-Infinity),g[1]=p(g[1],-Infinity),v[0]=p(v[0],Infinity),v[1]=p(v[1],Infinity);var A=D.mergeAll([{},d,h]);return A.coord=[d.coord,h.coord],A.x0=d.x,A.y0=d.y,A.x1=h.x,A.y1=h.y,A};function s(e){return!isNaN(e)&&!isFinite(e)}function t(e,n,i,c){var d=1-e;return s(n[d])&&s(i[d])}function l(e,n){var i=n.coord[0],c=n.coord[1];return e.type==="cartesian2d"&&(i&&c&&(t(1,i,c,e)||t(0,i,c,e)))?!0:o.dataFilter(e,{coord:i,x:n.x0,y:n.y0})||o.dataFilter(e,{coord:c,x:n.x1,y:n.y1})}function a(e,n,i,c,d){var h=c.coordinateSystem,p=e.getItemModel(n),g,v=E.parsePercent(p.get(i[0]),d.getWidth()),A=E.parsePercent(p.get(i[1]),d.getHeight());if(!isNaN(v)&&!isNaN(A))g=[v,A];else{if(c.getMarkerPosition)g=c.getMarkerPosition(e.getValues(i,n));else{var x=e.get(i[0],n),b=e.get(i[1],n),w=[x,b];h.clampData&&h.clampData(w,w),g=h.dataToPoint(w,!0)}if(h.type==="cartesian2d"){var S=h.getAxis("x"),T=h.getAxis("y"),x=e.get(i[0],n),b=e.get(i[1],n);s(x)?g[0]=S.toGlobalCoord(S.getExtent()[i[0]==="x0"?0:1]):s(b)&&(g[1]=T.toGlobalCoord(T.getExtent()[i[1]==="y0"?0:1]))}isNaN(v)||(g[0]=v),isNaN(A)||(g[1]=A)}return g}var r=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];m.extend({type:"markArea",updateTransform:function(e,n,i){n.eachSeries(function(c){var d=c.markAreaModel;if(d){var h=d.getData();h.each(function(p){var g=D.map(r,function(A){return a(h,p,A,c,i)});h.setItemLayout(p,g);var v=h.getItemGraphicEl(p);v.setShape("points",g)})}},this)},renderSeries:function(e,n,i,c){var d=e.coordinateSystem,h=e.id,p=e.getData(),g=this.markerGroupMap,v=g.get(h)||g.set(h,{group:new I.Group});this.group.add(v.group),v.__keep=!0;var A=u(d,e,n);n.setData(A),A.each(function(x){A.setItemLayout(x,D.map(r,function(b){return a(A,x,b,e,c)})),A.setItemVisual(x,{color:p.getVisual("color")})}),A.diff(v.__data).add(function(x){var b=new I.Polygon({shape:{points:A.getItemLayout(x)}});A.setItemGraphicEl(x,b),v.group.add(b)}).update(function(x,b){var w=v.__data.getItemGraphicEl(b);I.updateProps(w,{shape:{points:A.getItemLayout(x)}},n,x),v.group.add(w),A.setItemGraphicEl(x,w)}).remove(function(x){var b=v.__data.getItemGraphicEl(x);v.group.remove(b)}).execute(),A.eachItemGraphicEl(function(x,b){var w=A.getItemModel(b),S=w.getModel("label"),T=w.getModel("emphasis.label"),C=A.getItemVisual(b,"color");x.useStyle(D.defaults(w.getModel("itemStyle").getItemStyle(),{fill:N.modifyAlpha(C,.4),stroke:C})),x.hoverStyle=w.getModel("emphasis.itemStyle").getItemStyle(),I.setLabelStyle(x.style,x.hoverStyle,S,T,{labelFetcher:n,labelDataIndex:b,defaultText:A.getName(b)||"",isRectText:!0,autoColor:C}),I.setHoverStyle(x,{}),x.dataModel=n}),v.__data=A,v.group.silent=n.get("silent")||e.get("silent")}});function u(e,n,i){var c,d,h=["x0","y0","x1","y1"];e?(c=D.map(e&&e.dimensions,function(v){var A=n.getData(),x=A.getDimensionInfo(A.mapDimension(v))||{};return D.defaults({name:v},x)}),d=new L(D.map(h,function(v,A){return{name:v,type:c[A%2].type}}),i)):(c=[{name:"value",type:"float"}],d=new L(c,i));var p=D.map(i.get("data"),D.curry(f,n,e,i));e&&(p=D.filter(p,D.curry(l,e)));var g=e?function(v,A,x,b){return v.coord[Math.floor(b/2)][b%2]}:function(v){return v.value};return d.initData(p,null,g),d.hasItemOption=!0,d}},"jsU+":function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("IUWy"),E=D.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){E.superApply(this,"optionUpdated",arguments),N.each(this.option.feature,function(o,m){var f=L.get(m);f&&N.merge(o,f.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}}}),I=E;fe.exports=I},jtI2:function(fe,z,y){y("SMc4");var D=y("bLfw"),N=D.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"}});fe.exports=N},juDX:function(fe,z,y){y("P47w");var D=y("aX58"),N=D.registerPainter,L=y("3CBa");N("svg",L)},k5C7:function(fe,z,y){y("0JAE"),y("g7p0"),y("7mYs")},k9D9:function(fe,z){var y="original",D="arrayRows",N="objectRows",L="keyedColumns",E="unknown",I="typedArray",o="column",m="row";z.SOURCE_FORMAT_ORIGINAL=y,z.SOURCE_FORMAT_ARRAY_ROWS=D,z.SOURCE_FORMAT_OBJECT_ROWS=N,z.SOURCE_FORMAT_KEYED_COLUMNS=L,z.SOURCE_FORMAT_UNKNOWN=E,z.SOURCE_FORMAT_TYPED_ARRAY=I,z.SERIES_LAYOUT_BY_COLUMN=o,z.SERIES_LAYOUT_BY_ROW=m},kDyi:function(fe,z){function y(D){var N=D.findComponents({mainType:"legend"});N&&N.length&&D.filterSeries(function(L){for(var E=0;E<N.length;E++)if(!N[E].isSelected(L.name))return!1;return!0})}fe.exports=y},kGiB:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("ABKa"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},kMLO:function(fe,z,y){var D=y("XxSj"),N=y("Qe9p"),L=y("bYtY"),E=L.isArray,I="itemStyle",o={seriesType:"treemap",reset:function(e,n,i,c){var d=e.getData().tree,h=d.root,p=e.getModel(I);if(h.isRemoved())return;var g=L.map(d.levelModels,function(v){return v?v.get(I):null});m(h,{},g,p,e.getViewRoot().getAncestors(),e)}};function m(e,n,i,c,d,h){var p=e.getModel(),g=e.getLayout();if(!g||g.invisible||!g.isInView)return;var v=e.getModel(I),A=i[e.depth],x=f(v,n,A,c),b=v.get("borderColor"),w=v.get("borderColorSaturation"),S;w!=null&&(S=s(x,e),b=t(w,S)),e.setVisual("borderColor",b);var T=e.viewChildren;if(!T||!T.length)S=s(x,e),e.setVisual("color",S);else{var C=a(e,p,g,v,x,T);L.each(T,function(O,_){if(O.depth>=d.length||O===d[O.depth]){var M=u(p,x,O,_,C,h);m(O,M,i,c,d,h)}})}}function f(e,n,i,c){var d=L.extend({},n);return L.each(["color","colorAlpha","colorSaturation"],function(h){var p=e.get(h,!0);p==null&&i&&(p=i[h]),p==null&&(p=n[h]),p==null&&(p=c.get(h)),p!=null&&(d[h]=p)}),d}function s(e){var n=l(e,"color");if(n){var i=l(e,"colorAlpha"),c=l(e,"colorSaturation");return c&&(n=N.modifyHSL(n,null,null,c)),i&&(n=N.modifyAlpha(n,i)),n}}function t(e,n){return n!=null?N.modifyHSL(n,null,null,e):null}function l(e,n){var i=e[n];if(i!=null&&i!=="none")return i}function a(e,n,i,c,d,h){if(!h||!h.length)return;var p=r(n,"color")||d.color!=null&&d.color!=="none"&&(r(n,"colorAlpha")||r(n,"colorSaturation"));if(!p)return;var g=n.get("visualMin"),v=n.get("visualMax"),A=i.dataExtent.slice();g!=null&&g<A[0]&&(A[0]=g),v!=null&&v>A[1]&&(A[1]=v);var x=n.get("colorMappingBy"),b={type:p.name,dataExtent:A,visual:p.range};b.type==="color"&&(x==="index"||x==="id")?(b.mappingMethod="category",b.loop=!0):b.mappingMethod="linear";var w=new D(b);return w.__drColorMappingBy=x,w}function r(e,n){var i=e.get(n);return E(i)&&i.length?{name:n,range:i}:null}function u(e,n,i,c,d,h){var p=L.extend({},n);if(d){var g=d.type,v=g==="color"&&d.__drColorMappingBy,A=v==="index"?c:v==="id"?h.mapIdToIndex(i.getId()):i.getValue(e.get("visualDimension"));p[g]=d.mapValueToVisual(A)}return p}fe.exports=o},"kVK+":function(fe,z){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */z.read=function(y,D,N,L,E){var I,o,m=E*8-L-1,f=(1<<m)-1,s=f>>1,t=-7,l=N?E-1:0,a=N?-1:1,r=y[D+l];for(l+=a,I=r&(1<<-t)-1,r>>=-t,t+=m;t>0;I=I*256+y[D+l],l+=a,t-=8);for(o=I&(1<<-t)-1,I>>=-t,t+=L;t>0;o=o*256+y[D+l],l+=a,t-=8);if(I===0)I=1-s;else{if(I===f)return o?NaN:(r?-1:1)*Infinity;o=o+Math.pow(2,L),I=I-s}return(r?-1:1)*o*Math.pow(2,I-L)},z.write=function(y,D,N,L,E,I){var o,m,f,s=I*8-E-1,t=(1<<s)-1,l=t>>1,a=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,r=L?0:I-1,u=L?1:-1,e=D<0||D===0&&1/D<0?1:0;for(D=Math.abs(D),isNaN(D)||D===Infinity?(m=isNaN(D)?1:0,o=t):(o=Math.floor(Math.log(D)/Math.LN2),D*(f=Math.pow(2,-o))<1&&(o--,f*=2),o+l>=1?D+=a/f:D+=a*Math.pow(2,1-l),D*f>=2&&(o++,f/=2),o+l>=t?(m=0,o=t):o+l>=1?(m=(D*f-1)*Math.pow(2,E),o=o+l):(m=D*Math.pow(2,l-1)*Math.pow(2,E),o=0));E>=8;y[N+r]=m&255,r+=u,m/=256,E-=8);for(o=o<<E|m,s+=E;s>0;y[N+r]=o&255,r+=u,o/=256,s-=8);y[N+r-u]|=e*128}},kj2x:function(fe,z,y){var D=y("bYtY"),N=y("OELB"),L=y("7hqr"),E=L.isDimensionStacked,I=D.indexOf;function o(i){return!(isNaN(parseFloat(i.x))&&isNaN(parseFloat(i.y)))}function m(i){return!isNaN(parseFloat(i.x))&&!isNaN(parseFloat(i.y))}function f(i,c,d,h,p,g){var v=[],A=E(c,h),x=A?c.getCalculationInfo("stackResultDimension"):h,b=n(c,x,i),w=c.indicesOfNearest(x,b)[0];v[p]=c.get(d,w),v[g]=c.get(x,w);var S=c.get(h,w),T=N.getPrecision(c.get(h,w));return T=Math.min(T,20),T>=0&&(v[g]=+v[g].toFixed(T)),[v,S]}var s=D.curry,t={min:s(f,"min"),max:s(f,"max"),average:s(f,"average")};function l(i,c){var d=i.getData(),h=i.coordinateSystem;if(c&&!m(c)&&!D.isArray(c.coord)&&h){var p=h.dimensions,g=a(c,d,h,i);if(c=D.clone(c),c.type&&t[c.type]&&g.baseAxis&&g.valueAxis){var v=I(p,g.baseAxis.dim),A=I(p,g.valueAxis.dim),x=t[c.type](d,g.baseDataDim,g.valueDataDim,v,A);c.coord=x[0],c.value=x[1]}else{for(var b=[c.xAxis!=null?c.xAxis:c.radiusAxis,c.yAxis!=null?c.yAxis:c.angleAxis],w=0;w<2;w++)t[b[w]]&&(b[w]=n(d,d.mapDimension(p[w]),b[w]));c.coord=b}}return c}function a(i,c,d,h){var p={};return i.valueIndex!=null||i.valueDim!=null?(p.valueDataDim=i.valueIndex!=null?c.getDimension(i.valueIndex):i.valueDim,p.valueAxis=d.getAxis(r(h,p.valueDataDim)),p.baseAxis=d.getOtherAxis(p.valueAxis),p.baseDataDim=c.mapDimension(p.baseAxis.dim)):(p.baseAxis=h.getBaseAxis(),p.valueAxis=d.getOtherAxis(p.baseAxis),p.baseDataDim=c.mapDimension(p.baseAxis.dim),p.valueDataDim=c.mapDimension(p.valueAxis.dim)),p}function r(i,c){var d=i.getData(),h=d.dimensions;c=d.getDimension(c);for(var p=0;p<h.length;p++){var g=d.getDimensionInfo(h[p]);if(g.name===c)return g.coordDim}}function u(i,c){return i&&i.containData&&c.coord&&!o(c)?i.containData(c.coord):!0}function e(i,c,d,h){return h<2?i.coord&&i.coord[h]:i.value}function n(i,c,d){if(d==="average"){var h=0,p=0;return i.each(c,function(g,v){isNaN(g)||(h+=g,p++)}),h/p}else return d==="median"?i.getMedian(c):i.getDataExtent(c,!0)[d==="max"?1:0]}z.dataTransform=l,z.getAxisInfo=a,z.dataFilter=u,z.dimValueGetter=e,z.numCalculate=n},knOB:function(fe,z,y){var D=y("bYtY"),N=y("hM6l");function L(I,o){N.call(this,"radius",I,o),this.type="category"}L.prototype={constructor:L,pointToData:function(I,o){return this.polar.pointToData(I,o)[this.dim==="radius"?0:1]},dataToRadius:N.prototype.dataToCoord,radiusToData:N.prototype.coordToData},D.inherits(L,N);var E=L;fe.exports=E},ko1b:function(fe,z,y){var D=y("bYtY"),N=y("T4UG"),L=y("Bsck"),E=y("Qxkt"),I=y("7aKB"),o=I.encodeHTML,m=I.addCommas,f=y("VaxA"),s=f.wrapTreePathInfo,t=N.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(r,u){var e={name:r.name,children:r.data};l(e);var n=r.levels||[];n=r.levels=a(n,u);var i=D.map(n||[],function(h){return new E(h,this,u)},this),c=L.createTree(e,this,null,d);function d(h){h.wrapMethod("getItemModel",function(p,g){var v=c.getNodeByDataIndex(g),A=i[v.depth];return A&&(p.parentModel=A),p})}return c.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(r){var u=this.getData(),e=this.getRawValue(r),n=D.isArray(e)?m(e[0]):m(e),i=u.getName(r);return o(i+": "+n)},getDataParams:function(r){var u=N.prototype.getDataParams.apply(this,arguments),e=this.getData().tree.getNodeByDataIndex(r);return u.treePathInfo=s(e,this),u},setLayoutInfo:function(r){this.layoutInfo=this.layoutInfo||{},D.extend(this.layoutInfo,r)},mapIdToIndex:function(r){var u=this._idIndexMap;u||(u=this._idIndexMap=D.createHashMap(),this._idIndexMapCount=0);var e=u.get(r);return e==null&&u.set(r,e=this._idIndexMapCount++),e},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(r){r?this._viewRoot=r:r=this._viewRoot;var u=this.getRawData().tree.root;(!r||r!==u&&!u.contains(r))&&(this._viewRoot=u)}});function l(r){var u=0;D.each(r.children,function(n){l(n);var i=n.value;D.isArray(i)&&(i=i[0]),u+=i});var e=r.value;D.isArray(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=u),e<0&&(e=0),D.isArray(r.value)?r.value[0]=e:r.value=e}function a(r,u){var e=u.get("color");if(!e)return;r=r||[];var n;if(D.each(r,function(c){var d=new E(c),h=d.get("color");(d.get("itemStyle.color")||h&&h!=="none")&&(n=!0)}),!n){var i=r[0]||(r[0]={});i.color=e.slice()}return r}fe.exports=t},kzFp:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D=z.pick=function(L,E){var I={};return E.forEach(function(o){I[o]=L[o]}),I}},kzvK:function(fe,z,y){var D=y("sS/r"),N=D.extend({type:"timeline"});fe.exports=N},"l+S1":function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="SearchOutlined";var m=z.a=N.forwardRef(o)},lE7J:function(fe,z,y){var D=y("OELB"),N=D.round;function L(m,f,s,t){var l={},a=m[1]-m[0],r=l.interval=D.nice(a/f,!0);s!=null&&r<s&&(r=l.interval=s),t!=null&&r>t&&(r=l.interval=t);var u=l.intervalPrecision=E(r),e=l.niceTickExtent=[N(Math.ceil(m[0]/r)*r,u),N(Math.floor(m[1]/r)*r,u)];return o(e,m),l}function E(m){return D.getPrecisionSafe(m)+2}function I(m,f,s){m[f]=Math.max(Math.min(m[f],s[1]),s[0])}function o(m,f){!isFinite(m[0])&&(m[0]=f[0]),!isFinite(m[1])&&(m[1]=f[1]),I(m,0,f),I(m,1,f),m[0]>m[1]&&(m[0]=m[1])}z.intervalScaleNiceTicks=L,z.getIntervalPrecision=E,z.fixExtent=o},lELe:function(fe,z,y){var D=y("bYtY");function N(L){var E=[];D.each(L.series,function(I){I&&I.type==="map"&&(E.push(I),I.map=I.map||I.mapType,D.defaults(I,I.mapLocation))})}fe.exports=N},lLGD:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("nVfU"),E=L.layout,I=L.largeLayout;y("Wqna"),y("F7hV"),y("Z8zF"),y("Ae16"),D.registerLayout(D.PRIORITY.VISUAL.LAYOUT,N.curry(E,"bar")),D.registerLayout(D.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,I),D.registerVisual({seriesType:"bar",reset:function(o){o.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(fe,z,y){"use strict";function D(ve){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(qt){return typeof qt}:D=function(qt){return qt&&typeof Symbol=="function"&&qt.constructor===Symbol&&qt!==Symbol.prototype?"symbol":typeof qt},D(ve)}Object.defineProperty(z,"__esModule",{value:!0}),z.deflateInit=je,z.deflateInit2=Et,z.deflateReset=bt,z.deflateResetKeep=At,z.deflateSetHeader=St,z.deflate=pe,z.deflateEnd=ie,z.deflateSetDictionary=st,z.deflateInfo=z.Z_DEFLATED=z.Z_UNKNOWN=z.Z_DEFAULT_STRATEGY=z.Z_FIXED=z.Z_RLE=z.Z_HUFFMAN_ONLY=z.Z_FILTERED=z.Z_DEFAULT_COMPRESSION=z.Z_BUF_ERROR=z.Z_DATA_ERROR=z.Z_STREAM_ERROR=z.Z_STREAM_END=z.Z_OK=z.Z_BLOCK=z.Z_FINISH=z.Z_FULL_FLUSH=z.Z_PARTIAL_FLUSH=z.Z_NO_FLUSH=void 0;var N=s(y("6BzB")),L=s(y("c5fP")),E=m(y("xlC8")),I=m(y("QV2g")),o=m(y("xSIq"));function m(ve){return ve&&ve.__esModule?ve:{default:ve}}function f(){if(typeof WeakMap!="function")return null;var ve=new WeakMap;return f=function(){return ve},ve}function s(ve){if(ve&&ve.__esModule)return ve;if(ve===null||D(ve)!=="object"&&typeof ve!="function")return{default:ve};var Bt=f();if(Bt&&Bt.has(ve))return Bt.get(ve);var qt={},ct=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Wt in ve)if(Object.prototype.hasOwnProperty.call(ve,Wt)){var or=ct?Object.getOwnPropertyDescriptor(ve,Wt):null;or&&(or.get||or.set)?Object.defineProperty(qt,Wt,or):qt[Wt]=ve[Wt]}return qt.default=ve,Bt&&Bt.set(ve,qt),qt}var t=0;z.Z_NO_FLUSH=t;var l=1;z.Z_PARTIAL_FLUSH=l;var a=3;z.Z_FULL_FLUSH=a;var r=4;z.Z_FINISH=r;var u=5;z.Z_BLOCK=u;var e=0;z.Z_OK=e;var n=1;z.Z_STREAM_END=n;var i=-2;z.Z_STREAM_ERROR=i;var c=-3;z.Z_DATA_ERROR=c;var d=-5;z.Z_BUF_ERROR=d;var h=-1;z.Z_DEFAULT_COMPRESSION=h;var p=1;z.Z_FILTERED=p;var g=2;z.Z_HUFFMAN_ONLY=g;var v=3;z.Z_RLE=v;var A=4;z.Z_FIXED=A;var x=0;z.Z_DEFAULT_STRATEGY=x;var b=2;z.Z_UNKNOWN=b;var w=8;z.Z_DEFLATED=w;var S=9,T=15,C=8,O=29,_=256,M=_+1+O,k=30,R=19,B=2*M+1,P=15,U=3,j=258,H=j+U+1,W=32,G=42,V=69,Z=73,Y=91,Q=103,oe=113,ue=666,Le=1,me=2,Ie=3,X=4,q=3;function We(ve,Bt){return ve.msg=o.default[Bt],Bt}function $(ve){return(ve<<1)-(ve>4?9:0)}function J(ve){for(var Bt=ve.length;--Bt>=0;)ve[Bt]=0}function le(ve){var Bt=ve.state,qt=Bt.pending;if(qt>ve.avail_out&&(qt=ve.avail_out),qt===0)return;N.arraySet(ve.output,Bt.pending_buf,Bt.pending_out,qt,ve.next_out),ve.next_out+=qt,Bt.pending_out+=qt,ve.total_out+=qt,ve.avail_out-=qt,Bt.pending-=qt,Bt.pending===0&&(Bt.pending_out=0)}function de(ve,Bt){L._tr_flush_block(ve,ve.block_start>=0?ve.block_start:-1,ve.strstart-ve.block_start,Bt),ve.block_start=ve.strstart,le(ve.strm)}function Ne(ve,Bt){ve.pending_buf[ve.pending++]=Bt}function we(ve,Bt){ve.pending_buf[ve.pending++]=Bt>>>8&255,ve.pending_buf[ve.pending++]=Bt&255}function De(ve,Bt,qt,ct){var Wt=ve.avail_in;return Wt>ct&&(Wt=ct),Wt===0?0:(ve.avail_in-=Wt,N.arraySet(Bt,ve.input,ve.next_in,Wt,qt),ve.state.wrap===1?ve.adler=(0,E.default)(ve.adler,Bt,Wt,qt):ve.state.wrap===2&&(ve.adler=(0,I.default)(ve.adler,Bt,Wt,qt)),ve.next_in+=Wt,ve.total_in+=Wt,Wt)}function Ee(ve,Bt){var qt=ve.max_chain_length,ct=ve.strstart,Wt,or,Fr=ve.prev_length,er=ve.nice_match,nr=ve.strstart>ve.w_size-H?ve.strstart-(ve.w_size-H):0,Ot=ve.window,lt=ve.w_mask,qe=ve.prev,tr=ve.strstart+j,xr=Ot[ct+Fr-1],Ar=Ot[ct+Fr];ve.prev_length>=ve.good_match&&(qt>>=2),er>ve.lookahead&&(er=ve.lookahead);do{if(Wt=Bt,Ot[Wt+Fr]!==Ar||Ot[Wt+Fr-1]!==xr||Ot[Wt]!==Ot[ct]||Ot[++Wt]!==Ot[ct+1])continue;ct+=2,Wt++;do;while(Ot[++ct]===Ot[++Wt]&&Ot[++ct]===Ot[++Wt]&&Ot[++ct]===Ot[++Wt]&&Ot[++ct]===Ot[++Wt]&&Ot[++ct]===Ot[++Wt]&&Ot[++ct]===Ot[++Wt]&&Ot[++ct]===Ot[++Wt]&&Ot[++ct]===Ot[++Wt]&&ct<tr);if(or=j-(tr-ct),ct=tr-j,or>Fr){if(ve.match_start=Bt,Fr=or,or>=er)break;xr=Ot[ct+Fr-1],Ar=Ot[ct+Fr]}}while((Bt=qe[Bt<])>nr&&--qt!==0);return Fr<=ve.lookahead?Fr:ve.lookahead}function ce(ve){var Bt=ve.w_size,qt,ct,Wt,or,Fr;do{if(or=ve.window_size-ve.lookahead-ve.strstart,ve.strstart>=Bt+(Bt-H)){N.arraySet(ve.window,ve.window,Bt,Bt,0),ve.match_start-=Bt,ve.strstart-=Bt,ve.block_start-=Bt,ct=ve.hash_size,qt=ct;do Wt=ve.head[--qt],ve.head[qt]=Wt>=Bt?Wt-Bt:0;while(--ct);ct=Bt,qt=ct;do Wt=ve.prev[--qt],ve.prev[qt]=Wt>=Bt?Wt-Bt:0;while(--ct);or+=Bt}if(ve.strm.avail_in===0)break;if(ct=De(ve.strm,ve.window,ve.strstart+ve.lookahead,or),ve.lookahead+=ct,ve.lookahead+ve.insert>=U)for(Fr=ve.strstart-ve.insert,ve.ins_h=ve.window[Fr],ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[Fr+1])&ve.hash_mask;ve.insert&&!(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[Fr+U-1])&ve.hash_mask,ve.prev[Fr&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=Fr,Fr++,ve.insert--,ve.lookahead+ve.insert<U););}while(ve.lookahead<H&&ve.strm.avail_in!==0)}function ne(ve,Bt){var qt=65535;for(qt>ve.pending_buf_size-5&&(qt=ve.pending_buf_size-5);;){if(ve.lookahead<=1){if(ce(ve),ve.lookahead===0&&Bt===t)return Le;if(ve.lookahead===0)break}ve.strstart+=ve.lookahead,ve.lookahead=0;var ct=ve.block_start+qt;if((ve.strstart===0||ve.strstart>=ct)&&(ve.lookahead=ve.strstart-ct,ve.strstart=ct,de(ve,!1),ve.strm.avail_out===0))return Le;if(ve.strstart-ve.block_start>=ve.w_size-H&&(de(ve,!1),ve.strm.avail_out===0))return Le}return ve.insert=0,Bt===r?(de(ve,!0),ve.strm.avail_out===0?Ie:X):(ve.strstart>ve.block_start&&(de(ve,!1),ve.strm.avail_out===0),Le)}function ee(ve,Bt){for(var qt,ct;;){if(ve.lookahead<H){if(ce(ve),ve.lookahead<H&&Bt===t)return Le;if(ve.lookahead===0)break}if(qt=0,ve.lookahead>=U&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+U-1])&ve.hash_mask,qt=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart),qt!==0&&ve.strstart-qt<=ve.w_size-H&&(ve.match_length=Ee(ve,qt)),ve.match_length>=U)if(ct=L._tr_tally(ve,ve.strstart-ve.match_start,ve.match_length-U),ve.lookahead-=ve.match_length,ve.match_length<=ve.max_lazy_match&&ve.lookahead>=U){ve.match_length--;do ve.strstart++,ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+U-1])&ve.hash_mask,qt=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart;while(--ve.match_length!==0);ve.strstart++}else ve.strstart+=ve.match_length,ve.match_length=0,ve.ins_h=ve.window[ve.strstart],ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+1])&ve.hash_mask;else ct=L._tr_tally(ve,0,ve.window[ve.strstart]),ve.lookahead--,ve.strstart++;if(ct&&(de(ve,!1),ve.strm.avail_out===0))return Le}return ve.insert=ve.strstart<U-1?ve.strstart:U-1,Bt===r?(de(ve,!0),ve.strm.avail_out===0?Ie:X):ve.last_lit&&(de(ve,!1),ve.strm.avail_out===0)?Le:me}function Ae(ve,Bt){for(var qt,ct,Wt;;){if(ve.lookahead<H){if(ce(ve),ve.lookahead<H&&Bt===t)return Le;if(ve.lookahead===0)break}if(qt=0,ve.lookahead>=U&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+U-1])&ve.hash_mask,qt=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart),ve.prev_length=ve.match_length,ve.prev_match=ve.match_start,ve.match_length=U-1,qt!==0&&ve.prev_length<ve.max_lazy_match&&ve.strstart-qt<=ve.w_size-H&&(ve.match_length=Ee(ve,qt),ve.match_length<=5&&(ve.strategy===p||ve.match_length===U&&ve.strstart-ve.match_start>4096)&&(ve.match_length=U-1)),ve.prev_length>=U&&ve.match_length<=ve.prev_length){Wt=ve.strstart+ve.lookahead-U,ct=L._tr_tally(ve,ve.strstart-1-ve.prev_match,ve.prev_length-U),ve.lookahead-=ve.prev_length-1,ve.prev_length-=2;do++ve.strstart<=Wt&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+U-1])&ve.hash_mask,qt=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart);while(--ve.prev_length!==0);if(ve.match_available=0,ve.match_length=U-1,ve.strstart++,ct&&(de(ve,!1),ve.strm.avail_out===0))return Le}else if(ve.match_available){if(ct=L._tr_tally(ve,0,ve.window[ve.strstart-1]),ct&&de(ve,!1),ve.strstart++,ve.lookahead--,ve.strm.avail_out===0)return Le}else ve.match_available=1,ve.strstart++,ve.lookahead--}return ve.match_available&&(ct=L._tr_tally(ve,0,ve.window[ve.strstart-1]),ve.match_available=0),ve.insert=ve.strstart<U-1?ve.strstart:U-1,Bt===r?(de(ve,!0),ve.strm.avail_out===0?Ie:X):ve.last_lit&&(de(ve,!1),ve.strm.avail_out===0)?Le:me}function Ve(ve,Bt){for(var qt,ct,Wt,or,Fr=ve.window;;){if(ve.lookahead<=j){if(ce(ve),ve.lookahead<=j&&Bt===t)return Le;if(ve.lookahead===0)break}if(ve.match_length=0,ve.lookahead>=U&&ve.strstart>0&&(Wt=ve.strstart-1,ct=Fr[Wt],ct===Fr[++Wt]&&ct===Fr[++Wt]&&ct===Fr[++Wt])){or=ve.strstart+j;do;while(ct===Fr[++Wt]&&ct===Fr[++Wt]&&ct===Fr[++Wt]&&ct===Fr[++Wt]&&ct===Fr[++Wt]&&ct===Fr[++Wt]&&ct===Fr[++Wt]&&ct===Fr[++Wt]&&Wt<or);ve.match_length=j-(or-Wt),ve.match_length>ve.lookahead&&(ve.match_length=ve.lookahead)}if(ve.match_length>=U?(qt=L._tr_tally(ve,1,ve.match_length-U),ve.lookahead-=ve.match_length,ve.strstart+=ve.match_length,ve.match_length=0):(qt=L._tr_tally(ve,0,ve.window[ve.strstart]),ve.lookahead--,ve.strstart++),qt&&(de(ve,!1),ve.strm.avail_out===0))return Le}return ve.insert=0,Bt===r?(de(ve,!0),ve.strm.avail_out===0?Ie:X):ve.last_lit&&(de(ve,!1),ve.strm.avail_out===0)?Le:me}function Ke(ve,Bt){for(var qt;;){if(ve.lookahead===0&&(ce(ve),ve.lookahead===0)){if(Bt===t)return Le;break}if(ve.match_length=0,qt=L._tr_tally(ve,0,ve.window[ve.strstart]),ve.lookahead--,ve.strstart++,qt&&(de(ve,!1),ve.strm.avail_out===0))return Le}return ve.insert=0,Bt===r?(de(ve,!0),ve.strm.avail_out===0?Ie:X):ve.last_lit&&(de(ve,!1),ve.strm.avail_out===0)?Le:me}function Oe(ve,Bt,qt,ct,Wt){this.good_length=ve,this.max_lazy=Bt,this.nice_length=qt,this.max_chain=ct,this.func=Wt}var it;it=[new Oe(0,0,0,0,ne),new Oe(4,4,8,4,ee),new Oe(4,5,16,8,ee),new Oe(4,6,32,32,ee),new Oe(4,4,16,16,Ae),new Oe(8,16,32,32,Ae),new Oe(8,16,128,128,Ae),new Oe(8,32,128,256,Ae),new Oe(32,128,258,1024,Ae),new Oe(32,258,258,4096,Ae)];function Fe(ve){ve.window_size=2*ve.w_size,J(ve.head),ve.max_lazy_match=it[ve.level].max_lazy,ve.good_match=it[ve.level].good_length,ve.nice_match=it[ve.level].nice_length,ve.max_chain_length=it[ve.level].max_chain,ve.strstart=0,ve.block_start=0,ve.lookahead=0,ve.insert=0,ve.match_length=ve.prev_length=U-1,ve.match_available=0,ve.ins_h=0}function ft(){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=w,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 N.Buf16(B*2),this.dyn_dtree=new N.Buf16((2*k+1)*2),this.bl_tree=new N.Buf16((2*R+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new N.Buf16(P+1),this.heap=new N.Buf16(2*M+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new N.Buf16(2*M+1),J(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 At(ve){var Bt;return!ve||!ve.state?We(ve,i):(ve.total_in=ve.total_out=0,ve.data_type=b,Bt=ve.state,Bt.pending=0,Bt.pending_out=0,Bt.wrap<0&&(Bt.wrap=-Bt.wrap),Bt.status=Bt.wrap?G:oe,ve.adler=Bt.wrap===2?0:1,Bt.last_flush=t,L._tr_init(Bt),e)}function bt(ve){var Bt=At(ve);return Bt===e&&Fe(ve.state),Bt}function St(ve,Bt){return!ve||!ve.state||ve.state.wrap!==2?i:(ve.state.gzhead=Bt,e)}function Et(ve,Bt,qt,ct,Wt,or){if(!ve)return i;var Fr=1;if(Bt===h&&(Bt=6),ct<0?(Fr=0,ct=-ct):ct>15&&(Fr=2,ct-=16),Wt<1||Wt>S||qt!==w||ct<8||ct>15||Bt<0||Bt>9||or<0||or>A)return We(ve,i);ct===8&&(ct=9);var er=new ft;return ve.state=er,er.strm=ve,er.wrap=Fr,er.gzhead=null,er.w_bits=ct,er.w_size=1<<er.w_bits,er.w_mask=er.w_size-1,er.hash_bits=Wt+7,er.hash_size=1<<er.hash_bits,er.hash_mask=er.hash_size-1,er.hash_shift=~~((er.hash_bits+U-1)/U),er.window=new N.Buf8(er.w_size*2),er.head=new N.Buf16(er.hash_size),er.prev=new N.Buf16(er.w_size),er.lit_bufsize=1<<Wt+6,er.pending_buf_size=er.lit_bufsize*4,er.pending_buf=new N.Buf8(er.pending_buf_size),er.d_buf=1*er.lit_bufsize,er.l_buf=(1+2)*er.lit_bufsize,er.level=Bt,er.strategy=or,er.method=qt,bt(ve)}function je(ve,Bt){return Et(ve,Bt,w,T,C,x)}function pe(ve,Bt){var qt,ct,Wt,or;if(!ve||!ve.state||Bt>u||Bt<0)return ve?We(ve,i):i;if(ct=ve.state,!ve.output||!ve.input&&ve.avail_in!==0||ct.status===ue&&Bt!==r)return We(ve,ve.avail_out===0?d:i);if(ct.strm=ve,qt=ct.last_flush,ct.last_flush=Bt,ct.status===G)if(ct.wrap===2)ve.adler=0,Ne(ct,31),Ne(ct,139),Ne(ct,8),ct.gzhead?(Ne(ct,(ct.gzhead.text?1:0)+(ct.gzhead.hcrc?2:0)+(ct.gzhead.extra?4:0)+(ct.gzhead.name?8:0)+(ct.gzhead.comment?16:0)),Ne(ct,ct.gzhead.time&255),Ne(ct,ct.gzhead.time>>8&255),Ne(ct,ct.gzhead.time>>16&255),Ne(ct,ct.gzhead.time>>24&255),Ne(ct,ct.level===9?2:ct.strategy>=g||ct.level<2?4:0),Ne(ct,ct.gzhead.os&255),ct.gzhead.extra&&ct.gzhead.extra.length&&(Ne(ct,ct.gzhead.extra.length&255),Ne(ct,ct.gzhead.extra.length>>8&255)),ct.gzhead.hcrc&&(ve.adler=(0,I.default)(ve.adler,ct.pending_buf,ct.pending,0)),ct.gzindex=0,ct.status=V):(Ne(ct,0),Ne(ct,0),Ne(ct,0),Ne(ct,0),Ne(ct,0),Ne(ct,ct.level===9?2:ct.strategy>=g||ct.level<2?4:0),Ne(ct,q),ct.status=oe);else{var Fr=w+(ct.w_bits-8<<4)<<8,er=-1;ct.strategy>=g||ct.level<2?er=0:ct.level<6?er=1:ct.level===6?er=2:er=3,Fr|=er<<6,ct.strstart!==0&&(Fr|=W),Fr+=31-Fr%31,ct.status=oe,we(ct,Fr),ct.strstart!==0&&(we(ct,ve.adler>>>16),we(ct,ve.adler&65535)),ve.adler=1}if(ct.status===V)if(ct.gzhead.extra){for(Wt=ct.pending;ct.gzindex<(ct.gzhead.extra.length&65535)&&!(ct.pending===ct.pending_buf_size&&(ct.gzhead.hcrc&&ct.pending>Wt&&(ve.adler=(0,I.default)(ve.adler,ct.pending_buf,ct.pending-Wt,Wt)),le(ve),Wt=ct.pending,ct.pending===ct.pending_buf_size));)Ne(ct,ct.gzhead.extra[ct.gzindex]&255),ct.gzindex++;ct.gzhead.hcrc&&ct.pending>Wt&&(ve.adler=(0,I.default)(ve.adler,ct.pending_buf,ct.pending-Wt,Wt)),ct.gzindex===ct.gzhead.extra.length&&(ct.gzindex=0,ct.status=Z)}else ct.status=Z;if(ct.status===Z)if(ct.gzhead.name){Wt=ct.pending;do{if(ct.pending===ct.pending_buf_size&&(ct.gzhead.hcrc&&ct.pending>Wt&&(ve.adler=(0,I.default)(ve.adler,ct.pending_buf,ct.pending-Wt,Wt)),le(ve),Wt=ct.pending,ct.pending===ct.pending_buf_size)){or=1;break}ct.gzindex<ct.gzhead.name.length?or=ct.gzhead.name.charCodeAt(ct.gzindex++)&255:or=0,Ne(ct,or)}while(or!==0);ct.gzhead.hcrc&&ct.pending>Wt&&(ve.adler=(0,I.default)(ve.adler,ct.pending_buf,ct.pending-Wt,Wt)),or===0&&(ct.gzindex=0,ct.status=Y)}else ct.status=Y;if(ct.status===Y)if(ct.gzhead.comment){Wt=ct.pending;do{if(ct.pending===ct.pending_buf_size&&(ct.gzhead.hcrc&&ct.pending>Wt&&(ve.adler=(0,I.default)(ve.adler,ct.pending_buf,ct.pending-Wt,Wt)),le(ve),Wt=ct.pending,ct.pending===ct.pending_buf_size)){or=1;break}ct.gzindex<ct.gzhead.comment.length?or=ct.gzhead.comment.charCodeAt(ct.gzindex++)&255:or=0,Ne(ct,or)}while(or!==0);ct.gzhead.hcrc&&ct.pending>Wt&&(ve.adler=(0,I.default)(ve.adler,ct.pending_buf,ct.pending-Wt,Wt)),or===0&&(ct.status=Q)}else ct.status=Q;if(ct.status===Q&&(ct.gzhead.hcrc?(ct.pending+2>ct.pending_buf_size&&le(ve),ct.pending+2<=ct.pending_buf_size&&(Ne(ct,ve.adler&255),Ne(ct,ve.adler>>8&255),ve.adler=0,ct.status=oe)):ct.status=oe),ct.pending!==0){if(le(ve),ve.avail_out===0)return ct.last_flush=-1,e}else if(ve.avail_in===0&&$(Bt)<=$(qt)&&Bt!==r)return We(ve,d);if(ct.status===ue&&ve.avail_in!==0)return We(ve,d);if(ve.avail_in!==0||ct.lookahead!==0||Bt!==t&&ct.status!==ue){var nr=ct.strategy===g?Ke(ct,Bt):ct.strategy===v?Ve(ct,Bt):it[ct.level].func(ct,Bt);if((nr===Ie||nr===X)&&(ct.status=ue),nr===Le||nr===Ie)return ve.avail_out===0&&(ct.last_flush=-1),e;if(nr===me&&(Bt===l?L._tr_align(ct):Bt!==u&&(L._tr_stored_block(ct,0,0,!1),Bt===a&&(J(ct.head),ct.lookahead===0&&(ct.strstart=0,ct.block_start=0,ct.insert=0))),le(ve),ve.avail_out===0))return ct.last_flush=-1,e}return Bt!==r?e:ct.wrap<=0?n:(ct.wrap===2?(Ne(ct,ve.adler&255),Ne(ct,ve.adler>>8&255),Ne(ct,ve.adler>>16&255),Ne(ct,ve.adler>>24&255),Ne(ct,ve.total_in&255),Ne(ct,ve.total_in>>8&255),Ne(ct,ve.total_in>>16&255),Ne(ct,ve.total_in>>24&255)):(we(ct,ve.adler>>>16),we(ct,ve.adler&65535)),le(ve),ct.wrap>0&&(ct.wrap=-ct.wrap),ct.pending!==0?e:n)}function ie(ve){var Bt;return!ve||!ve.state?i:(Bt=ve.state.status,Bt!==G&&Bt!==V&&Bt!==Z&&Bt!==Y&&Bt!==Q&&Bt!==oe&&Bt!==ue?We(ve,i):(ve.state=null,Bt===oe?We(ve,c):e))}function st(ve,Bt){var qt=Bt.length,ct,Wt,or,Fr,er,nr,Ot,lt;if(!ve||!ve.state)return i;if(ct=ve.state,Fr=ct.wrap,Fr===2||Fr===1&&ct.status!==G||ct.lookahead)return i;for(Fr===1&&(ve.adler=(0,E.default)(ve.adler,Bt,qt,0)),ct.wrap=0,qt>=ct.w_size&&(Fr===0&&(J(ct.head),ct.strstart=0,ct.block_start=0,ct.insert=0),lt=new N.Buf8(ct.w_size),N.arraySet(lt,Bt,qt-ct.w_size,ct.w_size,0),Bt=lt,qt=ct.w_size),er=ve.avail_in,nr=ve.next_in,Ot=ve.input,ve.avail_in=qt,ve.next_in=0,ve.input=Bt,ce(ct);ct.lookahead>=U;){Wt=ct.strstart,or=ct.lookahead-(U-1);do ct.ins_h=(ct.ins_h<<ct.hash_shift^ct.window[Wt+U-1])&ct.hash_mask,ct.prev[Wt&ct.w_mask]=ct.head[ct.ins_h],ct.head[ct.ins_h]=Wt,Wt++;while(--or);ct.strstart=Wt,ct.lookahead=U-1,ce(ct)}return ct.strstart+=ct.lookahead,ct.block_start=ct.strstart,ct.insert=ct.lookahead,ct.lookahead=0,ct.match_length=ct.prev_length=U-1,ct.match_available=0,ve.next_in=nr,ve.input=Ot,ve.avail_in=er,ct.wrap=Fr,e}var Qe="pako deflate (from Nodeca project)";z.deflateInfo=Qe},lOQZ:function(fe,z,y){var D=y("QBsz"),N=y("U/Mo"),L=N.getSymbolSize,E=N.getNodeGlobalScale,I=Math.PI,o=[];function m(s,t){var l=s.coordinateSystem;if(l&&l.type!=="view")return;var a=l.getBoundingRect(),r=s.getData(),u=r.graph,e=a.width/2+a.x,n=a.height/2+a.y,i=Math.min(a.width,a.height)/2,c=r.count();if(r.setLayout({cx:e,cy:n}),!c)return;f[t](s,l,u,r,i,e,n,c),u.eachEdge(function(d){var h=d.getModel().get("lineStyle.curveness")||0,p=D.clone(d.node1.getLayout()),g=D.clone(d.node2.getLayout()),v,A=(p[0]+g[0])/2,x=(p[1]+g[1])/2;+h&&(h*=3,v=[e*h+A*(1-h),n*h+x*(1-h)]),d.setLayout([p,g,v])})}var f={value:function(s,t,l,a,r,u,e,n){var i=0,c=a.getSum("value"),d=Math.PI*2/(c||n);l.eachNode(function(h){var p=h.getValue("value"),g=d*(c?p:1)/2;i+=g,h.setLayout([r*Math.cos(i)+u,r*Math.sin(i)+e]),i+=g})},symbolSize:function(s,t,l,a,r,u,e,n){var i=0;o.length=n;var c=E(s);l.eachNode(function(p){var g=L(p);isNaN(g)&&(g=2),g<0&&(g=0),g*=c;var v=Math.asin(g/2/r);isNaN(v)&&(v=I/2),o[p.dataIndex]=v,i+=v*2});var d=(2*I-i)/n/2,h=0;l.eachNode(function(p){var g=d+o[p.dataIndex];h+=g,p.setLayout([r*Math.cos(h)+u,r*Math.sin(h)+e]),h+=g})}};z.circularLayout=m},lPiR:function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){return function(N){var L=D,E=L.lib,I=E.WordArray,o=E.Hasher,m=L.algo,f=[],s=[];(function(){function a(n){for(var i=N.sqrt(n),c=2;c<=i;c++)if(!(n%c))return!1;return!0}function r(n){return(n-(n|0))*4294967296|0}for(var u=2,e=0;e<64;)a(u)&&(e<8&&(f[e]=r(N.pow(u,1/2))),s[e]=r(N.pow(u,1/3)),e++),u++})();var t=[],l=m.SHA256=o.extend({_doReset:function(){this._hash=new I.init(f.slice(0))},_doProcessBlock:function(r,u){for(var e=this._hash.words,n=e[0],i=e[1],c=e[2],d=e[3],h=e[4],p=e[5],g=e[6],v=e[7],A=0;A<64;A++){if(A<16)t[A]=r[u+A]|0;else{var x=t[A-15],b=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,w=t[A-2],S=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;t[A]=b+t[A-7]+S+t[A-16]}var T=h&p^~h&g,C=n&i^n&c^i&c,O=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=(h<<26|h>>>6)^(h<<21|h>>>11)^(h<<7|h>>>25),M=v+_+T+s[A]+t[A],k=O+C;v=g,g=p,p=h,h=d+M|0,d=c,c=i,i=n,n=M+k|0}e[0]=e[0]+n|0,e[1]=e[1]+i|0,e[2]=e[2]+c|0,e[3]=e[3]+d|0,e[4]=e[4]+h|0,e[5]=e[5]+p|0,e[6]=e[6]+g|0,e[7]=e[7]+v|0},_doFinalize:function(){var r=this._data,u=r.words,e=this._nDataBytes*8,n=r.sigBytes*8;return u[n>>>5]|=128<<24-n%32,u[(n+64>>>9<<4)+14]=N.floor(e/4294967296),u[(n+64>>>9<<4)+15]=e,r.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var r=o.clone.call(this);return r._hash=this._hash.clone(),r}});L.SHA256=o._createHelper(l),L.HmacSHA256=o._createHmacHelper(l)}(Math),D.SHA256})},lUTK:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("x54q"),E=y.n(L),I=y("5Dmo")},lZu9:function(fe,z,y){(function(D){D(y("VrN/"),y("1eCo"),y("8EBN"))})(function(D){"use strict";D.defineMode("markdown",function(N,L){var E=D.getMode(N,"text/html"),I=E.name=="null";function o(P){if(D.findModeByName){var U=D.findModeByName(P);U&&(P=U.mime||U.mimes[0])}var j=D.getMode(N,P);return j.name=="null"?null:j}L.highlightFormatting===void 0&&(L.highlightFormatting=!1),L.maxBlockquoteDepth===void 0&&(L.maxBlockquoteDepth=0),L.taskLists===void 0&&(L.taskLists=!1),L.strikethrough===void 0&&(L.strikethrough=!1),L.emoji===void 0&&(L.emoji=!1),L.fencedCodeBlockHighlighting===void 0&&(L.fencedCodeBlockHighlighting=!0),L.fencedCodeBlockDefaultMode===void 0&&(L.fencedCodeBlockDefaultMode="text/plain"),L.xml===void 0&&(L.xml=!0),L.tokenTypeOverrides===void 0&&(L.tokenTypeOverrides={});var m={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var f in m)m.hasOwnProperty(f)&&L.tokenTypeOverrides[f]&&(m[f]=L.tokenTypeOverrides[f]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,t=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,l=/^\[(x| )\](?=\s)/i,a=L.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,r=/^ {0,3}(?:\={1,}|-{2,})\s*$/,u=/^[^#!\[\]*_\\<>` "'(~:]+/,e=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,n=/^\s*\[[^\]]+?\]:.*$/,i=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,c=" ";function d(P,U,j){return U.f=U.inline=j,j(P,U)}function h(P,U,j){return U.f=U.block=j,j(P,U)}function p(P){return!P||!/\S/.test(P.string)}function g(P){if(P.linkTitle=!1,P.linkHref=!1,P.linkText=!1,P.em=!1,P.strong=!1,P.strikethrough=!1,P.quote=0,P.indentedCode=!1,P.f==A){var U=I;if(!U){var j=D.innerMode(E,P.htmlState);U=j.mode.name=="xml"&&j.state.tagStart===null&&!j.state.context&&j.state.tokenize.isInText}U&&(P.f=S,P.block=v,P.htmlState=null)}return P.trailingSpace=0,P.trailingSpaceNewLine=!1,P.prevLine=P.thisLine,P.thisLine={stream:null},null}function v(P,U){var j=P.column()===U.indentation,H=p(U.prevLine.stream),W=U.indentedCode,G=U.prevLine.hr,V=U.list!==!1,Z=(U.listStack[U.listStack.length-1]||0)+3;U.indentedCode=!1;var Y=U.indentation;if(U.indentationDiff===null&&(U.indentationDiff=U.indentation,V)){for(U.list=null;Y<U.listStack[U.listStack.length-1];)U.listStack.pop(),U.listStack.length?U.indentation=U.listStack[U.listStack.length-1]:U.list=!1;U.list!==!1&&(U.indentationDiff=Y-U.listStack[U.listStack.length-1])}var Q=!H&&!G&&!U.prevLine.header&&(!V||!W)&&!U.prevLine.fencedCodeEnd,oe=(U.list===!1||G||H)&&U.indentation<=Z&&P.match(s),ue=null;if(U.indentationDiff>=4&&(W||U.prevLine.fencedCodeEnd||U.prevLine.header||H))return P.skipToEnd(),U.indentedCode=!0,m.code;if(P.eatSpace())return null;if(j&&U.indentation<=Z&&(ue=P.match(a))&&ue[1].length<=6)return U.quote=0,U.header=ue[1].length,U.thisLine.header=!0,L.highlightFormatting&&(U.formatting="header"),U.f=U.inline,b(U);if(U.indentation<=Z&&P.eat(">"))return U.quote=j?1:U.quote+1,L.highlightFormatting&&(U.formatting="quote"),P.eatSpace(),b(U);if(!oe&&!U.setext&&j&&U.indentation<=Z&&(ue=P.match(t))){var Le=ue[1]?"ol":"ul";return U.indentation=Y+P.current().length,U.list=!0,U.quote=0,U.listStack.push(U.indentation),U.em=!1,U.strong=!1,U.code=!1,U.strikethrough=!1,L.taskLists&&P.match(l,!1)&&(U.taskList=!0),U.f=U.inline,L.highlightFormatting&&(U.formatting=["list","list-"+Le]),b(U)}else{if(j&&U.indentation<=Z&&(ue=P.match(e,!0)))return U.quote=0,U.fencedEndRE=new RegExp(ue[1]+"+ *$"),U.localMode=L.fencedCodeBlockHighlighting&&o(ue[2]||L.fencedCodeBlockDefaultMode),U.localMode&&(U.localState=D.startState(U.localMode)),U.f=U.block=x,L.highlightFormatting&&(U.formatting="code-block"),U.code=-1,b(U);if(U.setext||(!Q||!V)&&!U.quote&&U.list===!1&&!U.code&&!oe&&!n.test(P.string)&&(ue=P.lookAhead(1))&&(ue=ue.match(r)))return U.setext?(U.header=U.setext,U.setext=0,P.skipToEnd(),L.highlightFormatting&&(U.formatting="header")):(U.header=ue[0].charAt(0)=="="?1:2,U.setext=U.header),U.thisLine.header=!0,U.f=U.inline,b(U);if(oe)return P.skipToEnd(),U.hr=!0,U.thisLine.hr=!0,m.hr;if(P.peek()==="[")return d(P,U,M)}return d(P,U,U.inline)}function A(P,U){var j=E.token(P,U.htmlState);if(!I){var H=D.innerMode(E,U.htmlState);(H.mode.name=="xml"&&H.state.tagStart===null&&!H.state.context&&H.state.tokenize.isInText||U.md_inside&&P.current().indexOf(">")>-1)&&(U.f=S,U.block=v,U.htmlState=null)}return j}function x(P,U){var j=U.listStack[U.listStack.length-1]||0,H=U.indentation<j,W=j+3;if(U.fencedEndRE&&U.indentation<=W&&(H||P.match(U.fencedEndRE))){L.highlightFormatting&&(U.formatting="code-block");var G;return H||(G=b(U)),U.localMode=U.localState=null,U.block=v,U.f=S,U.fencedEndRE=null,U.code=0,U.thisLine.fencedCodeEnd=!0,H?h(P,U,U.block):G}else return U.localMode?U.localMode.token(P,U.localState):(P.skipToEnd(),m.code)}function b(P){var U=[];if(P.formatting){U.push(m.formatting),typeof P.formatting=="string"&&(P.formatting=[P.formatting]);for(var j=0;j<P.formatting.length;j++)U.push(m.formatting+"-"+P.formatting[j]),P.formatting[j]==="header"&&U.push(m.formatting+"-"+P.formatting[j]+"-"+P.header),P.formatting[j]==="quote"&&(!L.maxBlockquoteDepth||L.maxBlockquoteDepth>=P.quote?U.push(m.formatting+"-"+P.formatting[j]+"-"+P.quote):U.push("error"))}if(P.taskOpen)return U.push("meta"),U.length?U.join(" "):null;if(P.taskClosed)return U.push("property"),U.length?U.join(" "):null;if(P.linkHref?U.push(m.linkHref,"url"):(P.strong&&U.push(m.strong),P.em&&U.push(m.em),P.strikethrough&&U.push(m.strikethrough),P.emoji&&U.push(m.emoji),P.linkText&&U.push(m.linkText),P.code&&U.push(m.code),P.image&&U.push(m.image),P.imageAltText&&U.push(m.imageAltText,"link"),P.imageMarker&&U.push(m.imageMarker)),P.header&&U.push(m.header,m.header+"-"+P.header),P.quote&&(U.push(m.quote),!L.maxBlockquoteDepth||L.maxBlockquoteDepth>=P.quote?U.push(m.quote+"-"+P.quote):U.push(m.quote+"-"+L.maxBlockquoteDepth)),P.list!==!1){var H=(P.listStack.length-1)%3;H?H===1?U.push(m.list2):U.push(m.list3):U.push(m.list1)}return P.trailingSpaceNewLine?U.push("trailing-space-new-line"):P.trailingSpace&&U.push("trailing-space-"+(P.trailingSpace%2?"a":"b")),U.length?U.join(" "):null}function w(P,U){return P.match(u,!0)?b(U):void 0}function S(P,U){var j=U.text(P,U);if(typeof j!="undefined")return j;if(U.list)return U.list=null,b(U);if(U.taskList){var H=P.match(l,!0)[1]===" ";return H?U.taskOpen=!0:U.taskClosed=!0,L.highlightFormatting&&(U.formatting="task"),U.taskList=!1,b(U)}if(U.taskOpen=!1,U.taskClosed=!1,U.header&&P.match(/^#+$/,!0))return L.highlightFormatting&&(U.formatting="header"),b(U);var W=P.next();if(U.linkTitle){U.linkTitle=!1;var G=W;W==="("&&(G=")"),G=(G+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var V="^\\s*(?:[^"+G+"\\\\]+|\\\\\\\\|\\\\.)"+G;if(P.match(new RegExp(V),!0))return m.linkHref}if(W==="`"){var Z=U.formatting;L.highlightFormatting&&(U.formatting="code"),P.eatWhile("`");var Y=P.current().length;if(U.code==0&&(!U.quote||Y==1))return U.code=Y,b(U);if(Y==U.code){var Q=b(U);return U.code=0,Q}else return U.formatting=Z,b(U)}else if(U.code)return b(U);if(W==="\\"&&(P.next(),L.highlightFormatting)){var oe=b(U),ue=m.formatting+"-escape";return oe?oe+" "+ue:ue}if(W==="!"&&P.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return U.imageMarker=!0,U.image=!0,L.highlightFormatting&&(U.formatting="image"),b(U);if(W==="["&&U.imageMarker&&P.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return U.imageMarker=!1,U.imageAltText=!0,L.highlightFormatting&&(U.formatting="image"),b(U);if(W==="]"&&U.imageAltText){L.highlightFormatting&&(U.formatting="image");var oe=b(U);return U.imageAltText=!1,U.image=!1,U.inline=U.f=C,oe}if(W==="["&&!U.image)return U.linkText&&P.match(/^.*?\]/)||(U.linkText=!0,L.highlightFormatting&&(U.formatting="link")),b(U);if(W==="]"&&U.linkText){L.highlightFormatting&&(U.formatting="link");var oe=b(U);return U.linkText=!1,U.inline=U.f=P.match(/\(.*?\)| ?\[.*?\]/,!1)?C:S,oe}if(W==="<"&&P.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){U.f=U.inline=T,L.highlightFormatting&&(U.formatting="link");var oe=b(U);return oe?oe+=" ":oe="",oe+m.linkInline}if(W==="<"&&P.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){U.f=U.inline=T,L.highlightFormatting&&(U.formatting="link");var oe=b(U);return oe?oe+=" ":oe="",oe+m.linkEmail}if(L.xml&&W==="<"&&P.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Le=P.string.indexOf(">",P.pos);if(Le!=-1){var me=P.string.substring(P.start,Le);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(me)&&(U.md_inside=!0)}return P.backUp(1),U.htmlState=D.startState(E),h(P,U,A)}if(L.xml&&W==="<"&&P.match(/^\/\w*?>/))return U.md_inside=!1,"tag";if(W==="*"||W==="_"){for(var Ie=1,X=P.pos==1?" ":P.string.charAt(P.pos-2);Ie<3&&P.eat(W);)Ie++;var q=P.peek()||" ",We=!/\s/.test(q)&&(!i.test(q)||/\s/.test(X)||i.test(X)),$=!/\s/.test(X)&&(!i.test(X)||/\s/.test(q)||i.test(q)),J=null,le=null;if(Ie%2&&(!U.em&&We&&(W==="*"||!$||i.test(X))?J=!0:U.em==W&&$&&(W==="*"||!We||i.test(q))&&(J=!1)),Ie>1&&(!U.strong&&We&&(W==="*"||!$||i.test(X))?le=!0:U.strong==W&&$&&(W==="*"||!We||i.test(q))&&(le=!1)),le!=null||J!=null){L.highlightFormatting&&(U.formatting=J==null?"strong":le==null?"em":"strong em"),J===!0&&(U.em=W),le===!0&&(U.strong=W);var Q=b(U);return J===!1&&(U.em=!1),le===!1&&(U.strong=!1),Q}}else if(W===" "&&(P.eat("*")||P.eat("_"))){if(P.peek()===" ")return b(U);P.backUp(1)}if(L.strikethrough){if(W==="~"&&P.eatWhile(W)){if(U.strikethrough){L.highlightFormatting&&(U.formatting="strikethrough");var Q=b(U);return U.strikethrough=!1,Q}else if(P.match(/^[^\s]/,!1))return U.strikethrough=!0,L.highlightFormatting&&(U.formatting="strikethrough"),b(U)}else if(W===" "&&P.match(/^~~/,!0)){if(P.peek()===" ")return b(U);P.backUp(2)}}if(L.emoji&&W===":"&&P.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){U.emoji=!0,L.highlightFormatting&&(U.formatting="emoji");var de=b(U);return U.emoji=!1,de}return W===" "&&(P.match(/^ +$/,!1)?U.trailingSpace++:U.trailingSpace&&(U.trailingSpaceNewLine=!0)),b(U)}function T(P,U){var j=P.next();if(j===">"){U.f=U.inline=S,L.highlightFormatting&&(U.formatting="link");var H=b(U);return H?H+=" ":H="",H+m.linkInline}return P.match(/^[^>]+/,!0),m.linkInline}function C(P,U){if(P.eatSpace())return null;var j=P.next();return j==="("||j==="["?(U.f=U.inline=_(j==="("?")":"]"),L.highlightFormatting&&(U.formatting="link-string"),U.linkHref=!0,b(U)):"error"}var O={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function _(P){return function(U,j){var H=U.next();if(H===P){j.f=j.inline=S,L.highlightFormatting&&(j.formatting="link-string");var W=b(j);return j.linkHref=!1,W}return U.match(O[P]),j.linkHref=!0,b(j)}}function M(P,U){return P.match(/^([^\]\\]|\\.)*\]:/,!1)?(U.f=k,P.next(),L.highlightFormatting&&(U.formatting="link"),U.linkText=!0,b(U)):d(P,U,S)}function k(P,U){if(P.match(/^\]:/,!0)){U.f=U.inline=R,L.highlightFormatting&&(U.formatting="link");var j=b(U);return U.linkText=!1,j}return P.match(/^([^\]\\]|\\.)+/,!0),m.linkText}function R(P,U){return P.eatSpace()?null:(P.match(/^[^\s]+/,!0),P.peek()===void 0?U.linkTitle=!0:P.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),U.f=U.inline=S,m.linkHref+" url")}var B={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:S,text:w,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&D.copyState(E,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?D.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,j){if(j.formatting=!1,U!=j.thisLine.stream){if(j.header=0,j.hr=!1,U.match(/^\s*$/,!0))return g(j),null;if(j.prevLine=j.thisLine,j.thisLine={stream:U},j.taskList=!1,j.trailingSpace=0,j.trailingSpaceNewLine=!1,!j.localState&&(j.f=j.block,j.f!=A)){var H=U.match(/^\s*/,!0)[0].replace(/\t/g,c).length;if(j.indentation=H,j.indentationDiff=null,H>0)return null}}return j.f(U,j)},innerMode:function(U){return U.block==A?{state:U.htmlState,mode:E}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:B}},indent:function(U,j,H){return U.block==A&&E.indent?E.indent(U.htmlState,j,H):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,j,H):D.Pass},blankLine:g,getType:b,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return B},"xml"),D.defineMIME("text/markdown","markdown"),D.defineMIME("text/x-markdown","markdown")})},laiN:function(fe,z,y){var D=y("ProS");y("GVMX"),y("MH26"),D.registerPreprocessor(function(N){N.markLine=N.markLine||{}})},lnY3:function(fe,z,y){},loD1:function(fe,z){function y(D,N,L,E,I,o,m){if(I===0)return!1;var f=I,s=0,t=D;if(m>N+f&&m>E+f||m<N-f&&m<E-f||o>D+f&&o>L+f||o<D-f&&o<L-f)return!1;if(D!==L)s=(N-E)/(D-L),t=(D*E-L*N)/(D-L);else return Math.abs(o-D)<=f/2;var l=s*o-m+t,a=l*l/(s*s+1);return a<=f/2*f/2}z.containStroke=y},lrIw:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("cDf5"),E=y.n(L),I=y("J4zp"),o=y.n(I),m=y("q1tI"),f=y.n(m),s=y("Zm9Q"),t=y("TSYQ"),l=y.n(t),a=y("BGR+"),r=y("2fM7"),u=y("H84U"),e=y("uaoM"),n=y("0n0R"),i=r.a.Option,c=r.a;function d(g){return g&&g.type&&(g.type.isSelectOption||g.type.isSelectOptGroup)}var h=function(v,A){var x=v.prefixCls,b=v.className,w=v.children,S=v.dataSource,T=Object(s.a)(w),C=m.useRef();m.useImperativeHandle(A,function(){return C.current});var O;if(T.length===1&&Object(n.b)(T[0])&&!d(T[0])){var _=o()(T,1);O=_[0]}var M=function(){return O},k;return T.length&&d(T[0])?k=w:k=S?S.map(function(R){if(Object(n.b)(R))return R;switch(E()(R)){case"string":return m.createElement(i,{key:R,value:R},R);case"object":{var B=R.value;return m.createElement(i,{key:B,value:B},R.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],m.useEffect(function(){Object(e.a)(!("dataSource"in v),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(e.a)(!O||!("size"in v),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),m.createElement(u.a,null,function(R){var B=R.getPrefixCls,P=B("select",x);return m.createElement(c,N()({ref:C},Object(a.default)(v,["dataSource"]),{prefixCls:P,className:l()(b,"".concat(P,"-auto-complete")),mode:r.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:M}),k)})},p=m.forwardRef(h);p.Option=i,z.a=p},lwQL:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("9wZj"),E=y("c8qY"),I=y("SgGq"),o=y("Ae+d"),m=y("xSat"),f=m.onIrrelevantElement,s=y("IwbS"),t=y("SA8n"),l=y("U/Mo"),a=l.getNodeGlobalScale,r="__focusNodeAdjacency",u="__unfocusNodeAdjacency",e=["itemStyle","opacity"],n=["lineStyle","opacity"];function i(p,g){var v=p.getVisual("opacity");return v!=null?v:p.getModel().get(g)}function c(p,g,v){var A=p.getGraphicEl(),x=i(p,g);v!=null&&(x==null&&(x=1),x*=v),A.downplay&&A.downplay(),A.traverse(function(b){if(!b.isGroup){var w=b.lineLabelOriginalOpacity;(w==null||v!=null)&&(w=x),b.setStyle("opacity",w)}})}function d(p,g){var v=i(p,g),A=p.getGraphicEl();A.traverse(function(x){!x.isGroup&&x.setStyle("opacity",v)}),A.highlight&&A.highlight()}var h=D.extendChartView({type:"graph",init:function(p,g){var v=new L,A=new E,x=this.group;this._controller=new I(g.getZr()),this._controllerHost={target:x},x.add(v.group),x.add(A.group),this._symbolDraw=v,this._lineDraw=A,this._firstRender=!0},render:function(p,g,v){var A=this,x=p.coordinateSystem;this._model=p;var b=this._symbolDraw,w=this._lineDraw,S=this.group;if(x.type==="view"){var T={position:x.position,scale:x.scale};this._firstRender?S.attr(T):s.updateProps(S,T,p)}t(p.getGraph(),a(p));var C=p.getData();b.updateData(C);var O=p.getEdgeData();w.updateData(O),this._updateNodeAndLinkScale(),this._updateController(p,g,v),clearTimeout(this._layoutTimeout);var _=p.forceLayout,M=p.get("force.layoutAnimation");_&&this._startForceLayoutIteration(_,M),C.eachItemGraphicEl(function(P,U){var j=C.getItemModel(U);P.off("drag").off("dragend");var H=j.get("draggable");H&&P.on("drag",function(){_&&(_.warmUp(),!this._layouting&&this._startForceLayoutIteration(_,M),_.setFixed(U),C.setItemLayout(U,P.position))},this).on("dragend",function(){_&&_.setUnfixed(U)},this),P.setDraggable(H&&_),P[r]&&P.off("mouseover",P[r]),P[u]&&P.off("mouseout",P[u]),j.get("focusNodeAdjacency")&&(P.on("mouseover",P[r]=function(){A._clearTimer(),v.dispatchAction({type:"focusNodeAdjacency",seriesId:p.id,dataIndex:P.dataIndex})}),P.on("mouseout",P[u]=function(){A._dispatchUnfocus(v)}))},this),C.graph.eachEdge(function(P){var U=P.getGraphicEl();U[r]&&U.off("mouseover",U[r]),U[u]&&U.off("mouseout",U[u]),P.getModel().get("focusNodeAdjacency")&&(U.on("mouseover",U[r]=function(){A._clearTimer(),v.dispatchAction({type:"focusNodeAdjacency",seriesId:p.id,edgeDataIndex:P.dataIndex})}),U.on("mouseout",U[u]=function(){A._dispatchUnfocus(v)}))});var k=p.get("layout")==="circular"&&p.get("circular.rotateLabel"),R=C.getLayout("cx"),B=C.getLayout("cy");C.eachItemGraphicEl(function(P,U){var j=C.getItemModel(U),H=j.get("label.rotate")||0,W=P.getSymbolPath();if(k){var G=C.getItemLayout(U),V=Math.atan2(G[1]-B,G[0]-R);V<0&&(V=Math.PI*2+V);var Z=G[0]<R;Z&&(V=V-Math.PI);var Y=Z?"left":"right";s.modifyLabelStyle(W,{textRotation:-V,textPosition:Y,textOrigin:"center"},{textPosition:Y})}else s.modifyLabelStyle(W,{textRotation:H*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(p,g){var v=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){v._unfocusDelayTimer=null,p.dispatchAction({type:"unfocusNodeAdjacency",seriesId:v._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(p,g,v,A){var x=p.getData(),b=x.graph,w=A.dataIndex,S=A.edgeDataIndex,T=b.getNodeByIndex(w),C=b.getEdgeByIndex(S);if(!T&&!C)return;b.eachNode(function(O){c(O,e,.1)}),b.eachEdge(function(O){c(O,n,.1)}),T&&(d(T,e),N.each(T.edges,function(O){if(O.dataIndex<0)return;d(O,n),d(O.node1,e),d(O.node2,e)})),C&&(d(C,n),d(C.node1,e),d(C.node2,e))},unfocusNodeAdjacency:function(p,g,v,A){var x=p.getData().graph;x.eachNode(function(b){c(b,e)}),x.eachEdge(function(b){c(b,n)})},_startForceLayoutIteration:function(p,g){var v=this;(function A(){p.step(function(x){v.updateLayout(v._model),(v._layouting=!x)&&(g?v._layoutTimeout=setTimeout(A,16):A())})})()},_updateController:function(p,g,v){var A=this._controller,x=this._controllerHost,b=this.group;if(A.setPointerChecker(function(w,S,T){var C=b.getBoundingRect();return C.applyTransform(b.transform),C.contain(S,T)&&!f(w,v,p)}),p.coordinateSystem.type!=="view"){A.disable();return}A.enable(p.get("roam")),x.zoomLimit=p.get("scaleLimit"),x.zoom=p.coordinateSystem.getZoom(),A.off("pan").off("zoom").on("pan",function(w){o.updateViewOnPan(x,w.dx,w.dy),v.dispatchAction({seriesId:p.id,type:"graphRoam",dx:w.dx,dy:w.dy})}).on("zoom",function(w){o.updateViewOnZoom(x,w.scale,w.originX,w.originY),v.dispatchAction({seriesId:p.id,type:"graphRoam",zoom:w.scale,originX:w.originX,originY:w.originY}),this._updateNodeAndLinkScale(),t(p.getGraph(),a(p)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var p=this._model,g=p.getData(),v=a(p),A=[v,v];g.eachItemGraphicEl(function(x,b){x.attr("scale",A)})},updateLayout:function(p){t(p.getGraph(),a(p)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(p,g){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});fe.exports=h},m9t5:function(fe,z,y){var D=y("KCsZ"),N=D([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),L={getAreaStyle:function(E,I){return N(this,E,I)}};fe.exports=L},mFDi:function(fe,z,y){var D=y("QBsz"),N=y("Fofx"),L=D.applyTransform,E=Math.min,I=Math.max;function o(f,s,t,l){t<0&&(f=f+t,t=-t),l<0&&(s=s+l,l=-l),this.x=f,this.y=s,this.width=t,this.height=l}o.prototype={constructor:o,union:function(s){var t=E(s.x,this.x),l=E(s.y,this.y);this.width=I(s.x+s.width,this.x+this.width)-t,this.height=I(s.y+s.height,this.y+this.height)-l,this.x=t,this.y=l},applyTransform:function(){var f=[],s=[],t=[],l=[];return function(a){if(!a)return;f[0]=t[0]=this.x,f[1]=l[1]=this.y,s[0]=l[0]=this.x+this.width,s[1]=t[1]=this.y+this.height,L(f,f,a),L(s,s,a),L(t,t,a),L(l,l,a),this.x=E(f[0],s[0],t[0],l[0]),this.y=E(f[1],s[1],t[1],l[1]);var r=I(f[0],s[0],t[0],l[0]),u=I(f[1],s[1],t[1],l[1]);this.width=r-this.x,this.height=u-this.y}}(),calculateTransform:function(s){var t=this,l=s.width/t.width,a=s.height/t.height,r=N.create();return N.translate(r,r,[-t.x,-t.y]),N.scale(r,r,[l,a]),N.translate(r,r,[s.x,s.y]),r},intersect:function(s){if(!s)return!1;s instanceof o||(s=o.create(s));var t=this,l=t.x,a=t.x+t.width,r=t.y,u=t.y+t.height,e=s.x,n=s.x+s.width,i=s.y,c=s.y+s.height;return!(a<e||n<l||u<i||c<r)},contain:function(s,t){var l=this;return s>=l.x&&s<=l.x+l.width&&t>=l.y&&t<=l.y+l.height},clone:function(){return new o(this.x,this.y,this.width,this.height)},copy:function(s){this.x=s.x,this.y=s.y,this.width=s.width,this.height=s.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},o.create=function(f){return new o(f.x,f.y,f.width,f.height)};var m=o;fe.exports=m},mHUz:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D={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};z.default=D},mLcG:function(fe,z){var y=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(D){setTimeout(D,16)};fe.exports=y},"mO/d":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("I9Y+"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},mOdp:function(fe,z,y){var D=y("bYtY"),N=D.createHashMap;function L(E){return{getTargetSeries:function(I){var o={},m=N();return I.eachSeriesByType(E,function(f){f.__paletteScope=o,m.set(f.uid,f)}),m},reset:function(I,o){var m=I.getRawData(),f={},s=I.getData();s.each(function(t){var l=s.getRawIndex(t);f[l]=t}),m.each(function(t){var l=f[t],a=l!=null&&s.getItemVisual(l,"color",!0),r=l!=null&&s.getItemVisual(l,"borderColor",!0),u;if((!a||!r)&&(u=m.getItemModel(t)),!a){var e=u.get("itemStyle.color")||I.getColorFromPalette(m.getName(t)||t+"",I.__paletteScope,m.count());l!=null&&s.setItemVisual(l,"color",e)}if(!r){var n=u.get("itemStyle.borderColor");l!=null&&s.setItemVisual(l,"borderColor",n)}})}}}fe.exports=L},mTgk:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("mHUz"));function N(f){return f&&f.__esModule?f:{default:f}}var L={};function E(f,s){if(s===void 0)throw new Error('Undefined keysym for key "'+f+'"');if(f in L)throw new Error('Duplicate entry for key "'+f+'"');L[f]=[s,s,s,s]}function I(f,s,t){if(s===void 0)throw new Error('Undefined keysym for key "'+f+'"');if(t===void 0)throw new Error('Undefined keysym for key "'+f+'"');if(f in L)throw new Error('Duplicate entry for key "'+f+'"');L[f]=[s,s,t,s]}function o(f,s,t){if(s===void 0)throw new Error('Undefined keysym for key "'+f+'"');if(t===void 0)throw new Error('Undefined keysym for key "'+f+'"');if(f in L)throw new Error('Duplicate entry for key "'+f+'"');L[f]=[s,s,s,t]}I("Alt",D.default.XK_Alt_L,D.default.XK_Alt_R),E("AltGraph",D.default.XK_ISO_Level3_Shift),E("CapsLock",D.default.XK_Caps_Lock),I("Control",D.default.XK_Control_L,D.default.XK_Control_R),I("Meta",D.default.XK_Super_L,D.default.XK_Super_R),E("NumLock",D.default.XK_Num_Lock),E("ScrollLock",D.default.XK_Scroll_Lock),I("Shift",D.default.XK_Shift_L,D.default.XK_Shift_R),o("Enter",D.default.XK_Return,D.default.XK_KP_Enter),E("Tab",D.default.XK_Tab),o(" ",D.default.XK_space,D.default.XK_KP_Space),o("ArrowDown",D.default.XK_Down,D.default.XK_KP_Down),o("ArrowUp",D.default.XK_Up,D.default.XK_KP_Up),o("ArrowLeft",D.default.XK_Left,D.default.XK_KP_Left),o("ArrowRight",D.default.XK_Right,D.default.XK_KP_Right),o("End",D.default.XK_End,D.default.XK_KP_End),o("Home",D.default.XK_Home,D.default.XK_KP_Home),o("PageDown",D.default.XK_Next,D.default.XK_KP_Next),o("PageUp",D.default.XK_Prior,D.default.XK_KP_Prior),E("Backspace",D.default.XK_BackSpace),o("Clear",D.default.XK_Clear,D.default.XK_KP_Begin),E("Copy",D.default.XF86XK_Copy),E("Cut",D.default.XF86XK_Cut),o("Delete",D.default.XK_Delete,D.default.XK_KP_Delete),o("Insert",D.default.XK_Insert,D.default.XK_KP_Insert),E("Paste",D.default.XF86XK_Paste),E("Redo",D.default.XK_Redo),E("Undo",D.default.XK_Undo),E("Cancel",D.default.XK_Cancel),E("ContextMenu",D.default.XK_Menu),E("Escape",D.default.XK_Escape),E("Execute",D.default.XK_Execute),E("Find",D.default.XK_Find),E("Help",D.default.XK_Help),E("Pause",D.default.XK_Pause),E("Select",D.default.XK_Select),E("ZoomIn",D.default.XF86XK_ZoomIn),E("ZoomOut",D.default.XF86XK_ZoomOut),E("BrightnessDown",D.default.XF86XK_MonBrightnessDown),E("BrightnessUp",D.default.XF86XK_MonBrightnessUp),E("Eject",D.default.XF86XK_Eject),E("LogOff",D.default.XF86XK_LogOff),E("Power",D.default.XF86XK_PowerOff),E("PowerOff",D.default.XF86XK_PowerDown),E("PrintScreen",D.default.XK_Print),E("Hibernate",D.default.XF86XK_Hibernate),E("Standby",D.default.XF86XK_Standby),E("WakeUp",D.default.XF86XK_WakeUp),E("AllCandidates",D.default.XK_MultipleCandidate),E("Alphanumeric",D.default.XK_Eisu_Shift),E("CodeInput",D.default.XK_Codeinput),E("Compose",D.default.XK_Multi_key),E("Convert",D.default.XK_Henkan),E("GroupFirst",D.default.XK_ISO_First_Group),E("GroupLast",D.default.XK_ISO_Last_Group),E("GroupNext",D.default.XK_ISO_Next_Group),E("GroupPrevious",D.default.XK_ISO_Prev_Group),E("NonConvert",D.default.XK_Muhenkan),E("PreviousCandidate",D.default.XK_PreviousCandidate),E("SingleCandidate",D.default.XK_SingleCandidate),E("HangulMode",D.default.XK_Hangul),E("HanjaMode",D.default.XK_Hangul_Hanja),E("JunjuaMode",D.default.XK_Hangul_Jeonja),E("Eisu",D.default.XK_Eisu_toggle),E("Hankaku",D.default.XK_Hankaku),E("Hiragana",D.default.XK_Hiragana),E("HiraganaKatakana",D.default.XK_Hiragana_Katakana),E("KanaMode",D.default.XK_Kana_Shift),E("KanjiMode",D.default.XK_Kanji),E("Katakana",D.default.XK_Katakana),E("Romaji",D.default.XK_Romaji),E("Zenkaku",D.default.XK_Zenkaku),E("ZenkakuHanaku",D.default.XK_Zenkaku_Hankaku),E("F1",D.default.XK_F1),E("F2",D.default.XK_F2),E("F3",D.default.XK_F3),E("F4",D.default.XK_F4),E("F5",D.default.XK_F5),E("F6",D.default.XK_F6),E("F7",D.default.XK_F7),E("F8",D.default.XK_F8),E("F9",D.default.XK_F9),E("F10",D.default.XK_F10),E("F11",D.default.XK_F11),E("F12",D.default.XK_F12),E("F13",D.default.XK_F13),E("F14",D.default.XK_F14),E("F15",D.default.XK_F15),E("F16",D.default.XK_F16),E("F17",D.default.XK_F17),E("F18",D.default.XK_F18),E("F19",D.default.XK_F19),E("F20",D.default.XK_F20),E("F21",D.default.XK_F21),E("F22",D.default.XK_F22),E("F23",D.default.XK_F23),E("F24",D.default.XK_F24),E("F25",D.default.XK_F25),E("F26",D.default.XK_F26),E("F27",D.default.XK_F27),E("F28",D.default.XK_F28),E("F29",D.default.XK_F29),E("F30",D.default.XK_F30),E("F31",D.default.XK_F31),E("F32",D.default.XK_F32),E("F33",D.default.XK_F33),E("F34",D.default.XK_F34),E("F35",D.default.XK_F35),E("Close",D.default.XF86XK_Close),E("MailForward",D.default.XF86XK_MailForward),E("MailReply",D.default.XF86XK_Reply),E("MailSend",D.default.XF86XK_Send),E("MediaFastForward",D.default.XF86XK_AudioForward),E("MediaPause",D.default.XF86XK_AudioPause),E("MediaPlay",D.default.XF86XK_AudioPlay),E("MediaRecord",D.default.XF86XK_AudioRecord),E("MediaRewind",D.default.XF86XK_AudioRewind),E("MediaStop",D.default.XF86XK_AudioStop),E("MediaTrackNext",D.default.XF86XK_AudioNext),E("MediaTrackPrevious",D.default.XF86XK_AudioPrev),E("New",D.default.XF86XK_New),E("Open",D.default.XF86XK_Open),E("Print",D.default.XK_Print),E("Save",D.default.XF86XK_Save),E("SpellCheck",D.default.XF86XK_Spell),E("AudioVolumeDown",D.default.XF86XK_AudioLowerVolume),E("AudioVolumeUp",D.default.XF86XK_AudioRaiseVolume),E("AudioVolumeMute",D.default.XF86XK_AudioMute),E("MicrophoneVolumeMute",D.default.XF86XK_AudioMicMute),E("LaunchApplication1",D.default.XF86XK_MyComputer),E("LaunchApplication2",D.default.XF86XK_Calculator),E("LaunchCalendar",D.default.XF86XK_Calendar),E("LaunchMail",D.default.XF86XK_Mail),E("LaunchMediaPlayer",D.default.XF86XK_AudioMedia),E("LaunchMusicPlayer",D.default.XF86XK_Music),E("LaunchPhone",D.default.XF86XK_Phone),E("LaunchScreenSaver",D.default.XF86XK_ScreenSaver),E("LaunchSpreadsheet",D.default.XF86XK_Excel),E("LaunchWebBrowser",D.default.XF86XK_WWW),E("LaunchWebCam",D.default.XF86XK_WebCam),E("LaunchWordProcessor",D.default.XF86XK_Word),E("BrowserBack",D.default.XF86XK_Back),E("BrowserFavorites",D.default.XF86XK_Favorites),E("BrowserForward",D.default.XF86XK_Forward),E("BrowserHome",D.default.XF86XK_HomePage),E("BrowserRefresh",D.default.XF86XK_Refresh),E("BrowserSearch",D.default.XF86XK_Search),E("BrowserStop",D.default.XF86XK_Stop),E("Dimmer",D.default.XF86XK_BrightnessAdjust),E("MediaAudioTrack",D.default.XF86XK_AudioCycleTrack),E("RandomToggle",D.default.XF86XK_AudioRandomPlay),E("SplitScreenToggle",D.default.XF86XK_SplitScreen),E("Subtitle",D.default.XF86XK_Subtitle),E("VideoModeNext",D.default.XF86XK_Next_VMode),o("=",D.default.XK_equal,D.default.XK_KP_Equal),o("+",D.default.XK_plus,D.default.XK_KP_Add),o("-",D.default.XK_minus,D.default.XK_KP_Subtract),o("*",D.default.XK_asterisk,D.default.XK_KP_Multiply),o("/",D.default.XK_slash,D.default.XK_KP_Divide),o(".",D.default.XK_period,D.default.XK_KP_Decimal),o(",",D.default.XK_comma,D.default.XK_KP_Separator),o("0",D.default.XK_0,D.default.XK_KP_0),o("1",D.default.XK_1,D.default.XK_KP_1),o("2",D.default.XK_2,D.default.XK_KP_2),o("3",D.default.XK_3,D.default.XK_KP_3),o("4",D.default.XK_4,D.default.XK_KP_4),o("5",D.default.XK_5,D.default.XK_KP_5),o("6",D.default.XK_6,D.default.XK_KP_6),o("7",D.default.XK_7,D.default.XK_KP_7),o("8",D.default.XK_8,D.default.XK_KP_8),o("9",D.default.XK_9,D.default.XK_KP_9);var m=L;z.default=m},mYwL:function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L=y("6GrX"),E=Math.PI;function I(o,m){m=m||{},D.defaults(m,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var f=new N.Group,s=new N.Rect({style:{fill:m.maskColor},zlevel:m.zlevel,z:1e4});f.add(s);var t=m.fontSize+" sans-serif",l=new N.Rect({style:{fill:"none",text:m.text,font:t,textPosition:"right",textDistance:10,textFill:m.textColor},zlevel:m.zlevel,z:10001});if(f.add(l),m.showSpinner){var a=new N.Arc({shape:{startAngle:-E/2,endAngle:-E/2+.1,r:m.spinnerRadius},style:{stroke:m.color,lineCap:"round",lineWidth:m.lineWidth},zlevel:m.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:E*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:E*3/2}).delay(300).start("circularInOut"),f.add(a)}return f.resize=function(){var r=L.getWidth(m.text,t),u=m.showSpinner?m.spinnerRadius:0,e=(o.getWidth()-u*2-(m.showSpinner&&r?10:0)-r)/2-(m.showSpinner?0:r/2),n=o.getHeight()/2;m.showSpinner&&a.setShape({cx:e,cy:n}),l.setShape({x:e-u,y:n-u,width:u*2,height:u*2}),s.setShape({x:0,y:0,width:o.getWidth(),height:o.getHeight()})},f.resize(),f}fe.exports=I},mdZa:function(fe,z,y){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(N,L){"use strict";if(N==null)throw new TypeError("Cannot convert undefined or null to object");for(var E=Object(N),I=1;I<arguments.length;I++){var o=arguments[I];if(o!=null)for(var m in o)Object.prototype.hasOwnProperty.call(o,m)&&(E[m]=o[m])}return E},writable:!0,configurable:!0}),function(){function D(N,L){L=L||{bubbles:!1,cancelable:!1,detail:void 0};var E=document.createEvent("CustomEvent");return E.initCustomEvent(N,L.bubbles,L.cancelable,L.detail),E}D.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=D)}(),Number.isInteger=Number.isInteger||function(N){return typeof N=="number"&&isFinite(N)&&Math.floor(N)===N}},mr32:function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("J4zp"),o=y.n(I),m=y("q1tI"),f=y("TSYQ"),s=y.n(f),t=y("BGR+"),l=y("V/uB"),a=y.n(l),r=y("H84U"),u=function(x,b){var w={};for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&b.indexOf(S)<0&&(w[S]=x[S]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,S=Object.getOwnPropertySymbols(x);T<S.length;T++)b.indexOf(S[T])<0&&Object.prototype.propertyIsEnumerable.call(x,S[T])&&(w[S[T]]=x[S[T]]);return w},e=function(b){var w,S=m.useContext(r.b),T=S.getPrefixCls,C=function(U){var j=b.checked,H=b.onChange,W=b.onClick;H&&H(!j),W&&W(U)},O=b.prefixCls,_=b.className,M=b.checked,k=u(b,["prefixCls","className","checked"]),R=T("tag",O),B=s()(R,(w={},N()(w,"".concat(R,"-checkable"),!0),N()(w,"".concat(R,"-checkable-checked"),M),w),_);return delete k.onChange,m.createElement("span",E()({},k,{className:B,onClick:C}))},n=e,i=y("09Wf"),c=y("g0mS"),d=function(x,b){var w={};for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&b.indexOf(S)<0&&(w[S]=x[S]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,S=Object.getOwnPropertySymbols(x);T<S.length;T++)b.indexOf(S[T])<0&&Object.prototype.propertyIsEnumerable.call(x,S[T])&&(w[S[T]]=x[S[T]]);return w},h=new RegExp("^(".concat(i.a.join("|"),")(-inverse)?$")),p=new RegExp("^(".concat(i.b.join("|"),")$")),g=function(b,w){var S,T=b.prefixCls,C=b.className,O=b.style,_=b.children,M=b.icon,k=b.color,R=b.onClose,B=b.closeIcon,P=b.closable,U=P===void 0?!1:P,j=d(b,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),H=m.useContext(r.b),W=H.getPrefixCls,G=H.direction,V=m.useState(!0),Z=o()(V,2),Y=Z[0],Q=Z[1];m.useEffect(function(){"visible"in j&&Q(j.visible)},[j.visible]);var oe=function(){return k?h.test(k)||p.test(k):!1},ue=E()({backgroundColor:k&&!oe()?k:void 0},O),Le=oe(),me=W("tag",T),Ie=s()(me,(S={},N()(S,"".concat(me,"-").concat(k),Le),N()(S,"".concat(me,"-has-color"),k&&!Le),N()(S,"".concat(me,"-hidden"),!Y),N()(S,"".concat(me,"-rtl"),G==="rtl"),S),C),X=function(we){if(we.stopPropagation(),R&&R(we),we.defaultPrevented)return;"visible"in j||Q(!1)},q=function(){return U?B?m.createElement("div",{className:"".concat(me,"-close-icon"),onClick:X},B):m.createElement(a.a,{className:"".concat(me,"-close-icon"),onClick:X}):null},We="onClick"in j||_&&_.type==="a",$=Object(t.default)(j,["visible"]),J=M||null,le=J?m.createElement(m.Fragment,null,J,m.createElement("span",null,_)):_,de=m.createElement("span",E()({},$,{ref:w,className:Ie,style:ue}),le,q());return We?m.createElement(c.a,null,de):de},v=m.forwardRef(g);v.displayName="Tag",v.CheckableTag=n;var A=z.a=v},mxV5:function(fe,z,y){(function(D){var N,N;(function(L){if(!0)fe.exports=L();else var E})(function(){var L,E,I;return function(){function o(m,f,s){function t(r,u){if(!f[r]){if(!m[r]){var e=typeof N=="function"&&N;if(!u&&e)return N(r,!0);if(l)return l(r,!0);var n=new Error("Cannot find module '"+r+"'");throw n.code="MODULE_NOT_FOUND",n}var i=f[r]={exports:{}};m[r][0].call(i.exports,function(c){var d=m[r][1][c];return t(d||c)},i,i.exports,o,m,f,s)}return f[r].exports}for(var l=typeof N=="function"&&N,a=0;a<s.length;a++)t(s[a]);return t}return o}()({1:[function(o,m,f){"use strict";var s=o("./browser/client");s.Buffer=o("buffer").Buffer,s.urllib=o("../shims/xhr"),s.version=o("./browser/version").version,m.exports=s},{"../shims/xhr":407,"./browser/client":3,"./browser/version":6,buffer:85}],2:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator"));o("core-js/modules/es.object.to-string.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.array.slice.js");var a=o("assert"),r=o("../common/utils/checkBucketName"),u=r.checkBucketName,e=f;function n(c){return Array.isArray?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"}function i(c){return c?n(c)?c:[c]:[]}e.useBucket=function(d){return u(d),this.options.bucket=d,this},e.setBucket=function(d){return u(d),this.options.bucket=d,this},e.getBucket=function(){return this.options.bucket},e.deleteBucket=function(){var c=(0,l.default)(t.default.mark(function h(p,g){var v,A;return t.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return v=this._bucketRequestParams("DELETE",p,"",g),b.next=3,this.request(v);case 3:if(A=b.sent,!(A.status===200||A.status===204)){b.next=6;break}return b.abrupt("return",{res:A.res});case 6:return b.next=8,this.requestError(A);case 8:throw b.sent;case 9:case"end":return b.stop()}},h,this)}));function d(h,p){return c.apply(this,arguments)}return d}(),e.putBucketACL=function(){var c=(0,l.default)(t.default.mark(function h(p,g,v){var A,x;return t.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return A=this._bucketRequestParams("PUT",p,"acl",v),A.headers={"x-oss-acl":g},A.successStatuses=[200],w.next=5,this.request(A);case 5:return x=w.sent,w.abrupt("return",{bucket:x.headers.location&&x.headers.location.substring(1)||null,res:x.res});case 7:case"end":return w.stop()}},h,this)}));function d(h,p,g){return c.apply(this,arguments)}return d}(),e.getBucketACL=function(){var c=(0,l.default)(t.default.mark(function h(p,g){var v,A;return t.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return v=this._bucketRequestParams("GET",p,"acl",g),v.successStatuses=[200],v.xmlResponse=!0,b.next=5,this.request(v);case 5:return A=b.sent,b.abrupt("return",{acl:A.data.AccessControlList.Grant,owner:{id:A.data.Owner.ID,displayName:A.data.Owner.DisplayName},res:A.res});case 7:case"end":return b.stop()}},h,this)}));function d(h,p){return c.apply(this,arguments)}return d}(),e.putBucketLogging=function(){var c=(0,l.default)(t.default.mark(function h(p,g,v){var A,x,b;return t.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return A=this._bucketRequestParams("PUT",p,"logging",v),x="".concat(`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`).concat(p,`</TargetBucket>
|
|
|
`),g&&(x+="<TargetPrefix>".concat(g,`</TargetPrefix>
|
|
|
`)),x+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,A.content=x,A.mime="xml",A.successStatuses=[200],S.next=9,this.request(A);case 9:return b=S.sent,S.abrupt("return",{res:b.res});case 11:case"end":return S.stop()}},h,this)}));function d(h,p,g){return c.apply(this,arguments)}return d}(),e.getBucketLogging=function(){var c=(0,l.default)(t.default.mark(function h(p,g){var v,A,x;return t.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return v=this._bucketRequestParams("GET",p,"logging",g),v.successStatuses=[200],v.xmlResponse=!0,w.next=5,this.request(v);case 5:return A=w.sent,x=A.data.LoggingEnabled,w.abrupt("return",{enable:!!x,prefix:x&&x.TargetPrefix||null,res:A.res});case 8:case"end":return w.stop()}},h,this)}));function d(h,p){return c.apply(this,arguments)}return d}(),e.deleteBucketLogging=function(){var c=(0,l.default)(t.default.mark(function h(p,g){var v,A;return t.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return v=this._bucketRequestParams("DELETE",p,"logging",g),v.successStatuses=[204,200],b.next=4,this.request(v);case 4:return A=b.sent,b.abrupt("return",{res:A.res});case 6:case"end":return b.stop()}},h,this)}));function d(h,p){return c.apply(this,arguments)}return d}(),e.putBucketCORS=function(){var c=(0,l.default)(t.default.mark(function h(p,g,v){var A,x,b,w,S,T,C,O,_,M;return t.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:for(g=g||[],a(g.length,"rules is required"),g.forEach(function(B){a(B.allowedOrigin,"allowedOrigin is required"),a(B.allowedMethod,"allowedMethod is required")}),A=this._bucketRequestParams("PUT",p,"cors",v),x=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,b=function(P){x+="<AllowedOrigin>".concat(P,"</AllowedOrigin>")},w=function(P){x+="<AllowedMethod>".concat(P,"</AllowedMethod>")},S=function(P){x+="<AllowedHeader>".concat(P,"</AllowedHeader>")},T=function(P){x+="<ExposeHeader>".concat(P,"</ExposeHeader>")},C=0,O=g.length;C<O;C++)_=g[C],x+="<CORSRule>",i(_.allowedOrigin).forEach(b),i(_.allowedMethod).forEach(w),i(_.allowedHeader).forEach(S),i(_.exposeHeader).forEach(T),_.maxAgeSeconds&&(x+="<MaxAgeSeconds>".concat(_.maxAgeSeconds,"</MaxAgeSeconds>")),x+="</CORSRule>";return x+="</CORSConfiguration>",A.content=x,A.mime="xml",A.successStatuses=[200],R.next=16,this.request(A);case 16:return M=R.sent,R.abrupt("return",{res:M.res});case 18:case"end":return R.stop()}},h,this)}));function d(h,p,g){return c.apply(this,arguments)}return d}(),e.getBucketCORS=function(){var c=(0,l.default)(t.default.mark(function h(p,g){var v,A,x,b;return t.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return v=this._bucketRequestParams("GET",p,"cors",g),v.successStatuses=[200],v.xmlResponse=!0,S.next=5,this.request(v);case 5:return A=S.sent,x=[],A.data&&A.data.CORSRule&&(b=A.data.CORSRule,n(b)||(b=[b]),b.forEach(function(T){var C={};Object.keys(T).forEach(function(O){C[O.slice(0,1).toLowerCase()+O.slice(1,O.length)]=T[O]}),x.push(C)})),S.abrupt("return",{rules:x,res:A.res});case 9:case"end":return S.stop()}},h,this)}));function d(h,p){return c.apply(this,arguments)}return d}(),e.deleteBucketCORS=function(){var c=(0,l.default)(t.default.mark(function h(p,g){var v,A;return t.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return v=this._bucketRequestParams("DELETE",p,"cors",g),v.successStatuses=[204],b.next=4,this.request(v);case 4:return A=b.sent,b.abrupt("return",{res:A.res});case 6:case"end":return b.stop()}},h,this)}));function d(h,p){return c.apply(this,arguments)}return d}(),e.putBucketReferer=function(){var c=(0,l.default)(t.default.mark(function h(p,g,v,A){var x,b,w,S;return t.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(x=this._bucketRequestParams("PUT",p,"referer",A),b=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,b+=" <AllowEmptyReferer>".concat(g?"true":"false",`</AllowEmptyReferer>
|
|
|
`),v&&v.length>0){for(b+=` <RefererList>
|
|
|
`,w=0;w<v.length;w++)b+=" <Referer>".concat(v[w],`</Referer>
|
|
|
`);b+=` </RefererList>
|
|
|
`}else b+=` <RefererList />
|
|
|
`;return b+="</RefererConfiguration>",x.content=b,x.mime="xml",x.successStatuses=[200],C.next=10,this.request(x);case 10:return S=C.sent,C.abrupt("return",{res:S.res});case 12:case"end":return C.stop()}},h,this)}));function d(h,p,g,v){return c.apply(this,arguments)}return d}(),e.getBucketReferer=function(){var c=(0,l.default)(t.default.mark(function h(p,g){var v,A,x;return t.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return v=this._bucketRequestParams("GET",p,"referer",g),v.successStatuses=[200],v.xmlResponse=!0,w.next=5,this.request(v);case 5:return A=w.sent,x=A.data.RefererList.Referer||null,x&&(n(x)||(x=[x])),w.abrupt("return",{allowEmpty:A.data.AllowEmptyReferer==="true",referers:x,res:A.res});case 9:case"end":return w.stop()}},h,this)}));function d(h,p){return c.apply(this,arguments)}return d}(),e.deleteBucketReferer=function(){var c=(0,l.default)(t.default.mark(function h(p,g){return t.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.putBucketReferer(p,!0,null,g);case 2:return A.abrupt("return",A.sent);case 3:case"end":return A.stop()}},h,this)}));function d(h,p){return c.apply(this,arguments)}return d}(),e._bucketRequestParams=function(d,h,p,g){return{method:d,bucket:h,subres:p,timeout:g&&g.timeout,ctx:g&&g.ctx}}},{"../common/utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,assert:78,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/web.dom-collections.for-each.js":296}],3:[function(o,m,f){(function(s,t){(function(){"use strict";var l=o("@babel/runtime/helpers/interopRequireDefault"),a=l(o("@babel/runtime/regenerator")),r=l(o("@babel/runtime/helpers/asyncToGenerator"));o("core-js/modules/es.function.name.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.split.js"),o("core-js/modules/es.object.assign.js"),o("core-js/modules/es.array.includes.js"),o("core-js/modules/es.string.replace.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.symbol.js"),o("core-js/modules/es.symbol.description.js"),o("core-js/modules/es.array.slice.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.promise.js"),o("core-js/modules/es.regexp.to-string.js");var u=o("debug")("ali-oss"),e=o("xml2js"),n=o("agentkeepalive"),i=o("merge-descriptors"),c=o("platform"),d=o("utility"),h=o("urllib"),p=o("./version"),g=o("bowser"),v=o("../common/signUtils"),A=o("../common/client/initOptions"),x=o("../common/utils/createRequest"),b=x.createRequest,w=o("../common/utils/encoder"),S=w.encoder,T=o("../common/client/getReqUrl"),C=T.getReqUrl,O=o("../common/utils/setSTSToken"),_=O.setSTSToken,M=o("../common/utils/retry"),k=M.retry,R=o("../common/utils/isFunction"),B=R.isFunction,P=new n;function U(){var Z=c.name,Y=c.version;Z&&Z.toLowerCase&&Z.toLowerCase()==="ie"&&Y.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function j(){return location&&location.protocol==="https:"}function H(Z,Y){if(U(),!(this instanceof H))return new H(Z,Y);Z&&Z.inited?this.options=Z:this.options=H.initOptions(Z),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=h,this.agent=this.options.agent||P),this.ctx=Y,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}m.exports=H,H.initOptions=function(Y){Y.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Q=Object.assign({secure:j(),useFetch:!1},Y);return A(Q)};var W=H.prototype;W.debug=u,i(W,o("./object")),i(W,o("./bucket")),i(W,o("../common/bucket/getBucketWebsite")),i(W,o("../common/bucket/putBucketWebsite")),i(W,o("../common/bucket/deleteBucketWebsite")),i(W,o("../common/bucket/getBucketLifecycle")),i(W,o("../common/bucket/putBucketLifecycle")),i(W,o("../common/bucket/deleteBucketLifecycle")),i(W,o("../common/bucket/putBucketVersioning")),i(W,o("../common/bucket/getBucketVersioning")),i(W,o("../common/bucket/getBucketInventory")),i(W,o("../common/bucket/deleteBucketInventory")),i(W,o("../common/bucket/listBucketInventory")),i(W,o("../common/bucket/putBucketInventory")),i(W,o("../common/bucket/abortBucketWorm")),i(W,o("../common/bucket/completeBucketWorm")),i(W,o("../common/bucket/extendBucketWorm")),i(W,o("../common/bucket/getBucketWorm")),i(W,o("../common/bucket/initiateBucketWorm")),i(W,o("./managed-upload")),i(W,o("../common/multipart-copy")),i(W,o("../common/multipart")),i(W,o("../common/parallel")),W.signature=function(Y){return this.debug("authorization stringToSign: %s",Y,"info"),v.computeSignature(this.options.accessKeySecret,Y,this.options.headerEncoding)},W._getReqUrl=C,W.authorization=function(Y,Q,oe,ue){var Le=v.buildCanonicalString(Y.toUpperCase(),Q,{headers:ue,parameters:oe});return v.authorization(this.options.accessKeyId,this.options.accessKeySecret,Le,this.options.headerEncoding)},W.request=function(){var Z=(0,r.default)(a.default.mark(function Y(Q){var oe=this;return a.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!this.options.retryMax){Le.next=6;break}return Le.next=3,k(G.bind(this),this.options.retryMax,{errorHandler:function(Ie){var X=function(We){if(Q.stream)return!1;var $=[-1,-2].includes(We.status),J=oe.options.requestErrorRetryHandle||function(){return!0};return $&&J(We)};return!!X(Ie)}})(Q);case 3:return Le.abrupt("return",Le.sent);case 6:return Le.abrupt("return",G.call(this,Q));case 7:case"end":return Le.stop()}},Y,this)}));return function(Y){return Z.apply(this,arguments)}}();function G(Z){return V.apply(this,arguments)}function V(){return V=(0,r.default)(a.default.mark(function Z(Y){var Q,oe,ue,Le,me,Ie;return a.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(!(this.options.stsToken&&B(this.options.refreshSTSToken))){q.next=3;break}return q.next=3,_.call(this);case 3:return Q=b.call(this,Y),this.options.useFetch||(Q.params.mode="disable-fetch"),Le=!!Y.stream,q.prev=6,q.next=9,this.urllib.request(Q.url,Q.params);case 9:oe=q.sent,this.debug("response %s %s, got %s, headers: %j",Y.method,Q.url,oe.status,oe.headers,"info"),q.next=16;break;case 13:q.prev=13,q.t0=q.catch(6),ue=q.t0;case 16:if(!(oe&&Y.successStatuses&&Y.successStatuses.indexOf(oe.status)===-1)){q.next=28;break}return q.next=19,this.requestError(oe);case 19:if(me=q.sent,!(me.code==="RequestTimeTooSkewed"&&!Le)){q.next=25;break}return this.options.amendTimeSkewed=+new Date(me.serverTime)-new Date,q.next=24,this.request(Y);case 24:return q.abrupt("return",q.sent);case 25:me.params=Y,q.next=32;break;case 28:if(!ue){q.next=32;break}return q.next=31,this.requestError(ue);case 31:me=q.sent;case 32:if(!me){q.next=34;break}throw me;case 34:if(!Y.xmlResponse){q.next=39;break}return q.next=37,this.parseXML(oe.data);case 37:Ie=q.sent,oe.data=Ie;case 39:return q.abrupt("return",oe);case 40:case"end":return q.stop()}},Z,this,[[6,13]])})),V.apply(this,arguments)}W._getResource=function(Y){var Q="/";return Y.bucket&&(Q+="".concat(Y.bucket,"/")),Y.object&&(Q+=S(Y.object,this.options.headerEncoding)),Q},W._escape=function(Y){return d.encodeURIComponent(Y).replace(/%2F/g,"/")},W._getUserAgent=function(){var Y=t&&t.browser?"js":"nodejs",Q="aliyun-sdk-".concat(Y,"/").concat(p.version),oe=c.description;return!oe&&t&&(oe="Node.js ".concat(t.version.slice(1)," on ").concat(t.platform," ").concat(t.arch)),this._checkUserAgent("".concat(Q," ").concat(oe))},W._checkUserAgent=function(Y){var Q=Y.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Q},W.checkBrowserAndVersion=function(Y,Q){return g.name===Y&&g.version.split(".")[0]===Q},W.parseXML=function(Y){return new Promise(function(Q,oe){s.isBuffer(Y)&&(Y=Y.toString()),e.parseString(Y,{explicitRoot:!1,explicitArray:!1},function(ue,Le){ue?oe(ue):Q(Le)})})},W.requestError=function(){var Z=(0,r.default)(a.default.mark(function Q(oe){var ue,Le,me,Ie;return a.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(ue=null,!(!oe.data||!oe.data.length)){q.next=5;break}oe.status===-1||oe.status===-2?(ue=new Error(oe.message),ue.name=oe.name,ue.status=oe.status,ue.code=oe.name):(oe.status===404?(ue=new Error("Object not exists"),ue.name="NoSuchKeyError",ue.status=404,ue.code="NoSuchKey"):oe.status===412?(ue=new Error("Pre condition failed"),ue.name="PreconditionFailedError",ue.status=412,ue.code="PreconditionFailed"):(ue=new Error("Unknow error, status: ".concat(oe.status)),ue.name="UnknowError",ue.status=oe.status),ue.requestId=oe.headers["x-oss-request-id"],ue.host=""),q.next=32;break;case 5:return Le=String(oe.data),this.debug("request response error data: %s",Le,"error"),q.prev=7,q.next=10,this.parseXML(Le);case 10:if(q.t0=q.sent,q.t0){q.next=13;break}q.t0={};case 13:me=q.t0,q.next=23;break;case 16:return q.prev=16,q.t1=q.catch(7),this.debug(Le,"error"),q.t1.message+=`
|
|
|
raw xml: `.concat(Le),q.t1.status=oe.status,q.t1.requestId=oe.headers["x-oss-request-id"],q.abrupt("return",q.t1);case 23:Ie=me.Message||"unknow request error, status: ".concat(oe.status),me.Condition&&(Ie+=" (condition: ".concat(me.Condition,")")),ue=new Error(Ie),ue.name=me.Code?"".concat(me.Code,"Error"):"UnknowError",ue.status=oe.status,ue.code=me.Code,ue.requestId=me.RequestId,ue.hostId=me.HostId,ue.serverTime=me.ServerTime;case 32:return this.debug("generate error %j",ue,"error"),q.abrupt("return",ue);case 34:case"end":return q.stop()}},Q,this,[[7,16]])}));function Y(Q){return Z.apply(this,arguments)}return Y}()}).call(this)}).call(this,{isBuffer:o("../../node_modules/is-buffer/index.js")},o("_process"))},{"../../node_modules/is-buffer/index.js":312,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":48,"../common/signUtils":49,"../common/utils/createRequest":54,"../common/utils/encoder":57,"../common/utils/isFunction":65,"../common/utils/retry":70,"../common/utils/setSTSToken":72,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,agentkeepalive:77,bowser:83,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/es.string.split.js":268,"core-js/modules/es.symbol.description.js":270,"core-js/modules/es.symbol.js":271,debug:397,"merge-descriptors":315,platform:322,urllib:407,utility:406,xml2js:358}],4:[function(o,m,f){(function(s){(function(){"use strict";var t=o("@babel/runtime/helpers/interopRequireDefault"),l=t(o("@babel/runtime/regenerator"));o("core-js/modules/es.function.name.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.promise.js"),o("core-js/modules/es.array.from.js"),o("core-js/modules/es.string.iterator.js"),o("core-js/modules/es.array.map.js"),o("core-js/modules/es.array.filter.js"),o("core-js/modules/es.array.find.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.regexp.to-string.js"),o("core-js/modules/es.array.slice.js"),o("core-js/modules/es.array.iterator.js"),o("core-js/modules/es.array-buffer.slice.js"),o("core-js/modules/es.typed-array.uint8-array.js"),o("core-js/modules/es.typed-array.copy-within.js"),o("core-js/modules/es.typed-array.every.js"),o("core-js/modules/es.typed-array.fill.js"),o("core-js/modules/es.typed-array.filter.js"),o("core-js/modules/es.typed-array.find.js"),o("core-js/modules/es.typed-array.find-index.js"),o("core-js/modules/es.typed-array.for-each.js"),o("core-js/modules/es.typed-array.includes.js"),o("core-js/modules/es.typed-array.index-of.js"),o("core-js/modules/es.typed-array.iterator.js"),o("core-js/modules/es.typed-array.join.js"),o("core-js/modules/es.typed-array.last-index-of.js"),o("core-js/modules/es.typed-array.map.js"),o("core-js/modules/es.typed-array.reduce.js"),o("core-js/modules/es.typed-array.reduce-right.js"),o("core-js/modules/es.typed-array.reverse.js"),o("core-js/modules/es.typed-array.set.js"),o("core-js/modules/es.typed-array.slice.js"),o("core-js/modules/es.typed-array.some.js"),o("core-js/modules/es.typed-array.sort.js"),o("core-js/modules/es.typed-array.subarray.js"),o("core-js/modules/es.typed-array.to-locale-string.js"),o("core-js/modules/es.typed-array.to-string.js");var a=t(o("@babel/runtime/helpers/asyncToGenerator")),r=o("util"),u=o("path"),e=o("mime"),n=o("copy-to"),i=o("../common/utils/isBlob"),c=i.isBlob,d=o("../common/utils/isFile"),h=d.isFile,p=o("../common/utils/isArray"),g=p.isArray,v=o("../common/utils/isBuffer"),A=v.isBuffer,x=o("../common/utils/retry"),b=x.retry,w=f;w.multipartUpload=function(){var _=(0,a.default)(l.default.mark(function k(R,B){var P,U,j,H,W,G,V,Z,Y,Q=arguments;return l.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(P=Q.length>2&&Q[2]!==void 0?Q[2]:{},this.resetCancelFlag(),P.disabledMD5=P.disabledMD5===void 0?!0:!!P.disabledMD5,!(P.checkpoint&&P.checkpoint.uploadId)){ue.next=8;break}return B&&h(B)&&(P.checkpoint.file=B),ue.next=7,this._resumeMultipart(P.checkpoint,P);case 7:return ue.abrupt("return",ue.sent);case 8:return U=100*1024,P.mime||(h(B)?P.mime=e.getType(u.extname(B.name)):c(B)?P.mime=B.type:A(B)?P.mime="":P.mime=e.getType(u.extname(B))),P.headers=P.headers||{},this._convertMetaToHeaders(P.meta,P.headers),ue.next=14,this._getFileSize(B);case 14:if(j=ue.sent,!(j<U)){ue.next=26;break}return P.contentLength=j,ue.next=19,this.put(R,B,P);case 19:if(H=ue.sent,!(P&&P.progress)){ue.next=23;break}return ue.next=23,P.progress(1);case 23:return W={res:H.res,bucket:this.options.bucket,name:R,etag:H.res.headers.etag},(P.headers&&P.headers["x-oss-callback"]||P.callback)&&(W.data=H.data),ue.abrupt("return",W);case 26:if(!(P.partSize&&!(parseInt(P.partSize,10)===P.partSize))){ue.next=28;break}throw new Error("partSize must be int number");case 28:if(!(P.partSize&&P.partSize<U)){ue.next=30;break}throw new Error("partSize must not be smaller than ".concat(U));case 30:return ue.next=32,this.initMultipartUpload(R,P);case 32:if(G=ue.sent,V=G.uploadId,Z=this._getPartSize(j,P.partSize),Y={file:B,name:R,fileSize:j,partSize:Z,uploadId:V,doneParts:[]},!(P&&P.progress)){ue.next=39;break}return ue.next=39,P.progress(0,Y,G.res);case 39:return ue.next=41,this._resumeMultipart(Y,P);case 41:return ue.abrupt("return",ue.sent);case 42:case"end":return ue.stop()}},k,this)}));function M(k,R){return _.apply(this,arguments)}return M}(),w._resumeMultipart=function(){var _=(0,a.default)(l.default.mark(function k(R,B){var P,U,j,H,W,G,V,Z,Y,Q,oe,ue,Le,me,Ie,X,q,We,$;return l.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(P=this,!this.isCancel()){le.next=3;break}throw this._makeCancelEvent();case 3:return U=R.file,j=R.fileSize,H=R.partSize,W=R.uploadId,G=R.doneParts,V=R.name,Z=[],G.length>0&&n(G).to(Z),Y=this._divideParts(j,H),Q=Y.length,oe=!1,ue=function(Ne,we){return new Promise(function(){var De=(0,a.default)(l.default.mark(function Ee(ce,ne){var ee,Ae,Ve,Ke,Oe;return l.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Fe.prev=0,Ne.isCancel()){Fe.next=29;break}return ee=Y[we-1],Fe.next=5,Ne._createBuffer(U,ee.start,ee.end);case 5:return Ae=Fe.sent,Ve={content:Ae,size:ee.end-ee.start},Fe.prev=7,Fe.next=10,Ne._uploadPart(V,W,we,Ve,{timeout:B.timeout,disabledMD5:B.disabledMD5});case 10:Ke=Fe.sent,Fe.next=18;break;case 13:if(Fe.prev=13,Fe.t0=Fe.catch(7),!(Fe.t0.status===404)){Fe.next=17;break}throw Ne._makeAbortEvent();case 17:throw Fe.t0;case 18:if(!(!Ne.isCancel()&&!oe)){Fe.next=26;break}if(R.doneParts.push({number:we,etag:Ke.res.headers.etag}),!B.progress){Fe.next=23;break}return Fe.next=23,B.progress(G.length/Q,R,Ke.res);case 23:ce({number:we,etag:Ke.res.headers.etag}),Fe.next=27;break;case 26:ce();case 27:Fe.next=30;break;case 29:ce();case 30:Fe.next=41;break;case 32:Fe.prev=32,Fe.t1=Fe.catch(0),Oe=new Error,Oe.name=Fe.t1.name,Oe.message=Fe.t1.message,Oe.stack=Fe.t1.stack,Oe.partNum=we,n(Fe.t1).to(Oe),ne(Oe);case 41:case"end":return Fe.stop()}},Ee,null,[[0,32],[7,13]])}));return function(Ee,ce){return De.apply(this,arguments)}}())},Le=Array.from(new Array(Q),function(de,Ne){return Ne+1}),me=Z.map(function(de){return de.number}),Ie=Le.filter(function(de){return me.indexOf(de)<0}),X=5,q=B.parallel||X,le.next=17,this._parallel(Ie,q,function(de){return new Promise(function(Ne,we){ue(P,de).then(function(De){De&&Z.push(De),Ne()}).catch(function(De){we(De)})})});case 17:if(We=le.sent,oe=!0,$=We.find(function(de){return de.name==="abort"}),!$){le.next=22;break}throw $;case 22:if(!this.isCancel()){le.next=25;break}throw ue=null,this._makeCancelEvent();case 25:if(!(We&&We.length>0)){le.next=28;break}throw We[0].message="Failed to upload some parts with error: ".concat(We[0].toString()," part_num: ").concat(We[0].partNum),We[0];case 28:return le.next=30,this.completeMultipartUpload(V,W,Z,B);case 30:return le.abrupt("return",le.sent);case 31:case"end":return le.stop()}},k,this)}));function M(k,R){return _.apply(this,arguments)}return M}(),w._getFileSize=function(){var _=(0,a.default)(l.default.mark(function k(R){return l.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(!A(R)){P.next=4;break}return P.abrupt("return",R.length);case 4:if(!(c(R)||h(R))){P.next=6;break}return P.abrupt("return",R.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return P.stop()}},k)}));function M(k){return _.apply(this,arguments)}return M}();var S=o("stream"),T=S.Readable;function C(_,M){if(!(this instanceof C))return new C(_,M);T.call(this,M),this.file=_,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}r.inherits(C,T),C.prototype.readFileAndPush=function(M){if(this.fileBuffer)for(var k=!0;k&&this.fileBuffer&&this.start<this.fileBuffer.length;){var R=this.start,B=R+M;B=B>this.fileBuffer.length?this.fileBuffer.length:B,this.start=B,k=this.push(this.fileBuffer.slice(R,B))}},C.prototype._read=function(M){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 k=16*1024;M=M||k;var R=this;this.reader.onload=function(P){R.fileBuffer=s.from(new Uint8Array(P.target.result)),R.file=null,R.readFileAndPush(M)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(M)};function O(_){return _.arrayBuffer?_.arrayBuffer():new Promise(function(M,k){var R=new FileReader;R.onload=function(B){M(B.target.result)},R.onerror=function(B){k(B)},R.readAsArrayBuffer(_)})}w._createBuffer=function(){var _=(0,a.default)(l.default.mark(function k(R,B,P){var U,j;return l.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(!(c(R)||h(R))){W.next=8;break}return U=R.slice(B,P),W.next=4,O(U);case 4:return j=W.sent,W.abrupt("return",s.from(j));case 8:if(!A(R)){W.next=12;break}return W.abrupt("return",R.subarray(B,P));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return W.stop()}},k)}));function M(k,R,B){return _.apply(this,arguments)}return M}(),w._getPartSize=function(M,k){var R=10*1e3,B=1*1024*1024;k||(k=B);var P=Math.ceil(M/R);return k<P&&(k=P,console.warn("partSize has been set to ".concat(k,", because the partSize you provided causes partNumber to be greater than 10,000"))),k},w._divideParts=function(M,k){for(var R=Math.ceil(M/k),B=[],P=0;P<R;P++){var U=k*P,j=Math.min(U+k,M);B.push({start:U,end:j})}return B}}).call(this)}).call(this,o("buffer").Buffer)},{"../common/utils/isArray":61,"../common/utils/isBlob":62,"../common/utils/isBuffer":63,"../common/utils/isFile":64,"../common/utils/retry":70,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,buffer:85,"copy-to":88,"core-js/modules/es.array-buffer.slice.js":240,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.filter.js":243,"core-js/modules/es.array.find.js":244,"core-js/modules/es.array.from.js":245,"core-js/modules/es.array.iterator.js":247,"core-js/modules/es.array.map.js":249,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.iterator.js":264,"core-js/modules/es.typed-array.copy-within.js":272,"core-js/modules/es.typed-array.every.js":273,"core-js/modules/es.typed-array.fill.js":274,"core-js/modules/es.typed-array.filter.js":275,"core-js/modules/es.typed-array.find-index.js":276,"core-js/modules/es.typed-array.find.js":277,"core-js/modules/es.typed-array.for-each.js":278,"core-js/modules/es.typed-array.includes.js":279,"core-js/modules/es.typed-array.index-of.js":280,"core-js/modules/es.typed-array.iterator.js":281,"core-js/modules/es.typed-array.join.js":282,"core-js/modules/es.typed-array.last-index-of.js":283,"core-js/modules/es.typed-array.map.js":284,"core-js/modules/es.typed-array.reduce-right.js":285,"core-js/modules/es.typed-array.reduce.js":286,"core-js/modules/es.typed-array.reverse.js":287,"core-js/modules/es.typed-array.set.js":288,"core-js/modules/es.typed-array.slice.js":289,"core-js/modules/es.typed-array.some.js":290,"core-js/modules/es.typed-array.sort.js":291,"core-js/modules/es.typed-array.subarray.js":292,"core-js/modules/es.typed-array.to-locale-string.js":293,"core-js/modules/es.typed-array.to-string.js":294,"core-js/modules/es.typed-array.uint8-array.js":295,mime:317,path:321,stream:345,util:352}],5:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault");o("core-js/modules/es.function.name.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.regexp.to-string.js"),o("core-js/modules/es.array.map.js"),o("core-js/modules/es.number.constructor.js"),o("core-js/modules/es.object.assign.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.replace.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.promise.js");var t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("fs"),r=o("copy-to"),u=o("path"),e=o("mime"),n=o("../common/callback"),i=o("merge-descriptors"),c=o("../common/utils/isBlob"),d=c.isBlob,h=o("../common/utils/isFile"),p=h.isFile,g=o("../common/utils/isBuffer"),v=g.isBuffer,A=o("../common/utils/obj2xml"),x=A.obj2xml,b=f;b.append=function(){var w=(0,l.default)(t.default.mark(function T(C,O,_){var M;return t.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return _=_||{},_.position===void 0&&(_.position="0"),_.subres={append:"",position:_.position},_.method="POST",R.next=6,this.put(C,O,_);case 6:return M=R.sent,M.nextAppendPosition=M.res.headers["x-oss-next-append-position"],R.abrupt("return",M);case 9:case"end":return R.stop()}},T,this)}));function S(T,C,O){return w.apply(this,arguments)}return S}(),b.put=function(){var w=(0,l.default)(t.default.mark(function T(C,O,_){var M,k,R,B,P;return t.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(_=_||{},_.disabledMD5=_.disabledMD5===void 0?!0:!!_.disabledMD5,_.headers=_.headers||{},C=this._objectName(C),!v(O)){j.next=8;break}M=O,j.next=19;break;case 8:if(!(d(O)||p(O))){j.next=18;break}return _.mime||(p(O)?_.mime=e.getType(u.extname(O.name)):_.mime=O.type),j.next=12,this._createBuffer(O,0,O.size);case 12:return M=j.sent,j.next=15,this._getFileSize(O);case 15:_.contentLength=j.sent,j.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(_.meta,_.headers),k=_.method||"PUT",R=this._objectRequestParams(k,C,_),n.encodeCallback(R,_),R.mime=_.mime,R.disabledMD5=_.disabledMD5,R.content=M,R.successStatuses=[200],j.next=29,this.request(R);case 29:return B=j.sent,P={name:C,url:this._objectUrl(C),res:B.res},R.headers&&R.headers["x-oss-callback"]&&(P.data=JSON.parse(B.data.toString())),j.abrupt("return",P);case 33:case"end":return j.stop()}},T,this)}));function S(T,C,O){return w.apply(this,arguments)}return S}(),b.putStream=function(){var w=(0,l.default)(t.default.mark(function T(C,O,_){var M,k,R,B;return t.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return _=_||{},_.headers=_.headers||{},C=this._objectName(C),_.contentLength?_.headers["Content-Length"]=_.contentLength:_.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_.meta,_.headers),M=_.method||"PUT",k=this._objectRequestParams(M,C,_),n.encodeCallback(k,_),k.mime=_.mime,k.stream=O,k.successStatuses=[200],U.next=13,this.request(k);case 13:return R=U.sent,B={name:C,url:this._objectUrl(C),res:R.res},k.headers&&k.headers["x-oss-callback"]&&(B.data=JSON.parse(R.data.toString())),U.abrupt("return",B);case 17:case"end":return U.stop()}},T,this)}));function S(T,C,O){return w.apply(this,arguments)}return S}(),i(b,o("../common/object/copyObject")),i(b,o("../common/object/getObjectTagging")),i(b,o("../common/object/putObjectTagging")),i(b,o("../common/object/deleteObjectTagging")),i(b,o("../common/image")),i(b,o("../common/object/getBucketVersions")),i(b,o("../common/object/getACL")),i(b,o("../common/object/putACL")),i(b,o("../common/object/head")),i(b,o("../common/object/delete")),i(b,o("../common/object/get")),i(b,o("../common/object/putSymlink")),i(b,o("../common/object/getSymlink")),i(b,o("../common/object/deleteMulti")),i(b,o("../common/object/getObjectMeta")),i(b,o("../common/object/getObjectUrl")),i(b,o("../common/object/generateObjectUrl")),i(b,o("../common/object/signatureUrl")),b.putMeta=function(){var w=(0,l.default)(t.default.mark(function T(C,O,_){var M;return t.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,this.copy(C,C,{meta:O||{},timeout:_&&_.timeout,ctx:_&&_.ctx});case 2:return M=R.sent,R.abrupt("return",M);case 4:case"end":return R.stop()}},T,this)}));function S(T,C,O){return w.apply(this,arguments)}return S}(),b.list=function(){var w=(0,l.default)(t.default.mark(function T(C,O){var _,M,k,R,B;return t.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return _=this._objectRequestParams("GET","",O),_.query=C,_.xmlResponse=!0,_.successStatuses=[200],U.next=6,this.request(_);case 6:return M=U.sent,k=M.data.Contents||[],R=this,k&&(Array.isArray(k)||(k=[k]),k=k.map(function(j){return{name:j.Key,url:R._objectUrl(j.Key),lastModified:j.LastModified,etag:j.ETag,type:j.Type,size:Number(j.Size),storageClass:j.StorageClass,owner:{id:j.Owner.ID,displayName:j.Owner.DisplayName}}})),B=M.data.CommonPrefixes||null,B&&(Array.isArray(B)||(B=[B]),B=B.map(function(j){return j.Prefix})),U.abrupt("return",{res:M.res,objects:k,prefixes:B,nextMarker:M.data.NextMarker||null,isTruncated:M.data.IsTruncated==="true"});case 13:case"end":return U.stop()}},T,this)}));function S(T,C){return w.apply(this,arguments)}return S}(),b.listV2=function(){var w=(0,l.default)(t.default.mark(function T(C){var O,_,M,k,R,B,P,U=arguments;return t.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return O=U.length>1&&U[1]!==void 0?U[1]:{},_=C["continuation-token"]||C.continuationToken,_&&(O.subres=Object.assign({"continuation-token":_},O.subres)),M=this._objectRequestParams("GET","",O),M.query=Object.assign({"list-type":2},C),delete M.query["continuation-token"],delete M.query.continuationToken,M.xmlResponse=!0,M.successStatuses=[200],H.next=11,this.request(M);case 11:return k=H.sent,R=k.data.Contents||[],B=this,R&&(Array.isArray(R)||(R=[R]),R=R.map(function(W){return{name:W.Key,url:B._objectUrl(W.Key),lastModified:W.LastModified,etag:W.ETag,type:W.Type,size:Number(W.Size),storageClass:W.StorageClass,owner:W.Owner?{id:W.Owner.ID,displayName:W.Owner.DisplayName}:null}})),P=k.data.CommonPrefixes||null,P&&(Array.isArray(P)||(P=[P]),P=P.map(function(W){return W.Prefix})),H.abrupt("return",{res:k.res,objects:R,prefixes:P,isTruncated:k.data.IsTruncated==="true",keyCount:+k.data.KeyCount,continuationToken:k.data.ContinuationToken||null,nextContinuationToken:k.data.NextContinuationToken||null});case 18:case"end":return H.stop()}},T,this)}));function S(T){return w.apply(this,arguments)}return S}(),b.restore=function(){var w=(0,l.default)(t.default.mark(function T(C){var O,_,M,k,R=arguments;return t.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return O=R.length>1&&R[1]!==void 0?R[1]:{type:"Archive"},O=O||{},O.subres=Object.assign({restore:""},O.subres),O.versionId&&(O.subres.versionId=O.versionId),_=this._objectRequestParams("POST",C,O),O.type==="ColdArchive"&&(M={RestoreRequest:{Days:O.Days?O.Days:2,JobParameters:{Tier:O.JobParameters?O.JobParameters:"Standard"}}},_.content=x(M,{headers:!0}),_.mime="xml"),_.successStatuses=[202],P.next=9,this.request(_);case 9:return k=P.sent,P.abrupt("return",{res:k.res});case 11:case"end":return P.stop()}},T,this)}));function S(T){return w.apply(this,arguments)}return S}(),b._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},b._objectRequestParams=function(S,T,C){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");C=C||{},T=this._objectName(T);var O={object:T,bucket:this.options.bucket,method:S,subres:C&&C.subres,timeout:C&&C.timeout,ctx:C&&C.ctx};return C.headers&&(O.headers={},r(C.headers).to(O.headers)),O},b._objectName=function(S){return S.replace(/^\/+/,"")},b._convertMetaToHeaders=function(S,T){if(!S)return;Object.keys(S).forEach(function(C){T["x-oss-meta-".concat(C)]=S[C]})},b._deleteFileSafe=function(S){var T=this;return new Promise(function(C){a.exists(S,function(O){O?a.unlink(S,function(_){_&&T.debug("unlink %j error: %s",S,_,"error"),C()}):C()})})}},{"../common/callback":24,"../common/image":27,"../common/object/copyObject":31,"../common/object/delete":32,"../common/object/deleteMulti":33,"../common/object/deleteObjectTagging":34,"../common/object/generateObjectUrl":35,"../common/object/get":36,"../common/object/getACL":37,"../common/object/getBucketVersions":38,"../common/object/getObjectMeta":39,"../common/object/getObjectTagging":40,"../common/object/getObjectUrl":41,"../common/object/getSymlink":42,"../common/object/head":43,"../common/object/putACL":44,"../common/object/putObjectTagging":45,"../common/object/putSymlink":46,"../common/object/signatureUrl":47,"../common/utils/isBlob":62,"../common/utils/isBuffer":63,"../common/utils/isFile":64,"../common/utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"copy-to":88,"core-js/modules/es.array.map.js":249,"core-js/modules/es.function.name.js":253,"core-js/modules/es.number.constructor.js":254,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296,fs:84,"merge-descriptors":315,mime:317,path:321}],6:[function(o,m,f){"use strict";f.version="6.17.1"},{}],7:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.abortBucketWorm=void 0;var a=o("../utils/checkBucketName");function r(e,n){return u.apply(this,arguments)}function u(){return u=(0,l.default)(t.default.mark(function e(n,i){var c,d;return t.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a.checkBucketName(n),c=this._bucketRequestParams("DELETE",n,"worm",i),p.next=4,this.request(c);case 4:return d=p.sent,p.abrupt("return",{res:d.res,status:d.status});case 6:case"end":return p.stop()}},e,this)})),u.apply(this,arguments)}f.abortBucketWorm=r},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],8:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.completeBucketWorm=void 0;var a=o("../utils/checkBucketName");function r(e,n,i){return u.apply(this,arguments)}function u(){return u=(0,l.default)(t.default.mark(function e(n,i,c){var d,h;return t.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a.checkBucketName(n),d=this._bucketRequestParams("POST",n,{wormId:i},c),g.next=4,this.request(d);case 4:return h=g.sent,g.abrupt("return",{res:h.res,status:h.status});case 6:case"end":return g.stop()}},e,this)})),u.apply(this,arguments)}f.completeBucketWorm=r},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],9:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.deleteBucketInventory=void 0;var a=o("../utils/checkBucketName");function r(e,n){return u.apply(this,arguments)}function u(){return u=(0,l.default)(t.default.mark(function e(n,i){var c,d,h,p,g=arguments;return t.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return c=g.length>2&&g[2]!==void 0?g[2]:{},d=Object.assign({inventory:"",inventoryId:i},c.subres),a.checkBucketName(n),h=this._bucketRequestParams("DELETE",n,d,c),h.successStatuses=[204],A.next=7,this.request(h);case 7:return p=A.sent,A.abrupt("return",{status:p.status,res:p.res});case 9:case"end":return A.stop()}},e,this)})),u.apply(this,arguments)}f.deleteBucketInventory=r},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],10:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/checkBucketName"),r=a.checkBucketName,u=f;u.deleteBucketLifecycle=function(){var e=(0,l.default)(t.default.mark(function i(c,d){var h,p;return t.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return r(c),h=this._bucketRequestParams("DELETE",c,"lifecycle",d),h.successStatuses=[204],v.next=5,this.request(h);case 5:return p=v.sent,v.abrupt("return",{res:p.res});case 7:case"end":return v.stop()}},i,this)}));function n(i,c){return e.apply(this,arguments)}return n}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],11:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/checkBucketName"),r=a.checkBucketName,u=f;u.deleteBucketWebsite=function(){var e=(0,l.default)(t.default.mark(function i(c,d){var h,p;return t.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return r(c),h=this._bucketRequestParams("DELETE",c,"website",d),h.successStatuses=[204],v.next=5,this.request(h);case 5:return p=v.sent,v.abrupt("return",{res:p.res});case 7:case"end":return v.stop()}},i,this)}));function n(i,c){return e.apply(this,arguments)}return n}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],12:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.extendBucketWorm=void 0;var a=o("../utils/checkBucketName"),r=o("../utils/obj2xml");function u(n,i,c,d){return e.apply(this,arguments)}function e(){return e=(0,l.default)(t.default.mark(function n(i,c,d,h){var p,g,v;return t.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return a.checkBucketName(i),p=this._bucketRequestParams("POST",i,{wormExtend:"",wormId:c},h),g={ExtendWormConfiguration:{RetentionPeriodInDays:d}},p.mime="xml",p.content=r.obj2xml(g,{headers:!0}),p.successStatuses=[200],x.next=8,this.request(p);case 8:return v=x.sent,x.abrupt("return",{res:v.res,status:v.status});case 10:case"end":return x.stop()}},n,this)})),e.apply(this,arguments)}f.extendBucketWorm=u},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],13:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.getBucketInventory=void 0;var a=o("../utils/checkBucketName"),r=o("../utils/formatInventoryConfig");function u(n,i){return e.apply(this,arguments)}function e(){return e=(0,l.default)(t.default.mark(function n(i,c){var d,h,p,g,v=arguments;return t.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return d=v.length>2&&v[2]!==void 0?v[2]:{},h=Object.assign({inventory:"",inventoryId:c},d.subres),a.checkBucketName(i),p=this._bucketRequestParams("GET",i,h,d),p.successStatuses=[200],p.xmlResponse=!0,x.next=8,this.request(p);case 8:return g=x.sent,x.abrupt("return",{status:g.status,res:g.res,inventory:r.formatInventoryConfig(g.data)});case 10:case"end":return x.stop()}},n,this)})),e.apply(this,arguments)}f.getBucketInventory=u},{"../utils/checkBucketName":50,"../utils/formatInventoryConfig":58,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],14:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.array.map.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/checkBucketName"),r=a.checkBucketName,u=o("../utils/isArray"),e=u.isArray,n=o("../utils/formatObjKey"),i=n.formatObjKey,c=f;c.getBucketLifecycle=function(){var d=(0,l.default)(t.default.mark(function p(g,v){var A,x,b;return t.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return r(g),A=this._bucketRequestParams("GET",g,"lifecycle",v),A.successStatuses=[200],A.xmlResponse=!0,S.next=6,this.request(A);case 6:return x=S.sent,b=x.data.Rule||null,b&&(e(b)||(b=[b]),b=b.map(function(T){return T.ID&&(T.id=T.ID,delete T.ID),T.Tag&&!e(T.Tag)&&(T.Tag=[T.Tag]),i(T,"firstLowerCase")})),S.abrupt("return",{rules:b,res:x.res});case 10:case"end":return S.stop()}},p,this)}));function h(p,g){return d.apply(this,arguments)}return h}()},{"../utils/checkBucketName":50,"../utils/formatObjKey":59,"../utils/isArray":61,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.map.js":249}],15:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/checkBucketName"),r=a.checkBucketName,u=f;u.getBucketVersioning=function(){var e=(0,l.default)(t.default.mark(function i(c,d){var h,p,g;return t.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return r(c),h=this._bucketRequestParams("GET",c,"versioning",d),h.xmlResponse=!0,h.successStatuses=[200],A.next=6,this.request(h);case 6:return p=A.sent,g=p.data.Status,A.abrupt("return",{status:p.status,versionStatus:g,res:p.res});case 9:case"end":return A.stop()}},i,this)}));function n(i,c){return e.apply(this,arguments)}return n}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],16:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/checkBucketName"),r=a.checkBucketName,u=o("../utils/isObject"),e=u.isObject,n=f;n.getBucketWebsite=function(){var i=(0,l.default)(t.default.mark(function d(h,p){var g,v,A;return t.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return r(h),g=this._bucketRequestParams("GET",h,"website",p),g.successStatuses=[200],g.xmlResponse=!0,b.next=6,this.request(g);case 6:return v=b.sent,A=[],v.data.RoutingRules&&v.data.RoutingRules.RoutingRule&&(e(v.data.RoutingRules.RoutingRule)?A=[v.data.RoutingRules.RoutingRule]:A=v.data.RoutingRules.RoutingRule),b.abrupt("return",{index:v.data.IndexDocument&&v.data.IndexDocument.Suffix||"",supportSubDir:v.data.IndexDocument&&v.data.IndexDocument.SupportSubDir||"false",type:v.data.IndexDocument&&v.data.IndexDocument.Type,routingRules:A,error:v.data.ErrorDocument&&v.data.ErrorDocument.Key||null,res:v.res});case 10:case"end":return b.stop()}},d,this)}));function c(d,h){return i.apply(this,arguments)}return c}()},{"../utils/checkBucketName":50,"../utils/isObject":67,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],17:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.getBucketWorm=void 0;var a=o("../utils/checkBucketName"),r=o("../utils/dataFix");function u(n,i){return e.apply(this,arguments)}function e(){return e=(0,l.default)(t.default.mark(function n(i,c){var d,h;return t.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a.checkBucketName(i),d=this._bucketRequestParams("GET",i,"worm",c),d.successStatuses=[200],d.xmlResponse=!0,g.next=6,this.request(d);case 6:return h=g.sent,r.dataFix(h.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),g.abrupt("return",Object.assign(Object.assign({},h.data),{res:h.res,status:h.status}));case 9:case"end":return g.stop()}},n,this)})),e.apply(this,arguments)}f.getBucketWorm=u},{"../utils/checkBucketName":50,"../utils/dataFix":55,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],18:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.initiateBucketWorm=void 0;var a=o("../utils/obj2xml"),r=o("../utils/checkBucketName");function u(n,i,c){return e.apply(this,arguments)}function e(){return e=(0,l.default)(t.default.mark(function n(i,c,d){var h,p,g;return t.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return r.checkBucketName(i),h=this._bucketRequestParams("POST",i,"worm",d),p={InitiateWormConfiguration:{RetentionPeriodInDays:c}},h.mime="xml",h.content=a.obj2xml(p,{headers:!0}),h.successStatuses=[200],A.next=8,this.request(h);case 8:return g=A.sent,A.abrupt("return",{res:g.res,wormId:g.res.headers["x-oss-worm-id"],status:g.status});case 10:case"end":return A.stop()}},n,this)})),e.apply(this,arguments)}f.initiateBucketWorm=u},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],19:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.listBucketInventory=void 0;var a=o("../utils/checkBucketName"),r=o("../utils/formatInventoryConfig");function u(n){return e.apply(this,arguments)}function e(){return e=(0,l.default)(t.default.mark(function n(i){var c,d,h,p,g,v,A,x,b=arguments;return t.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return c=b.length>1&&b[1]!==void 0?b[1]:{},d=c.continuationToken,h=Object.assign({inventory:""},d&&{"continuation-token":d},c.subres),a.checkBucketName(i),p=this._bucketRequestParams("GET",i,h,c),p.successStatuses=[200],p.xmlResponse=!0,S.next=9,this.request(p);case 9:return g=S.sent,v=g.data,A=g.res,x=g.status,S.abrupt("return",{isTruncated:v.IsTruncated==="true",nextContinuationToken:v.NextContinuationToken,inventoryList:r.formatInventoryConfig(v.InventoryConfiguration,!0),status:x,res:A});case 12:case"end":return S.stop()}},n,this)})),e.apply(this,arguments)}f.listBucketInventory=u},{"../utils/checkBucketName":50,"../utils/formatInventoryConfig":58,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],20:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js"),o("core-js/modules/es.array.concat.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.putBucketInventory=void 0;var a=o("../utils/checkBucketName"),r=o("../utils/obj2xml");function u(n,i){return e.apply(this,arguments)}function e(){return e=(0,l.default)(t.default.mark(function n(i,c){var d,h,p,g,v,A,x,b,w,S,T,C=arguments;return t.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return d=C.length>2&&C[2]!==void 0?C[2]:{},h=Object.assign({inventory:"",inventoryId:c.id},d.subres),a.checkBucketName(i),p=c.OSSBucketDestination,g=c.optionalFields,v=c.includedObjectVersions,A="acs:oss:::",x="acs:ram::".concat(p.accountId,":role/"),b={InventoryConfiguration:{Id:c.id,IsEnabled:c.isEnabled,Filter:{Prefix:c.prefix||""},Destination:{OSSBucketDestination:{Format:p.format,AccountId:p.accountId,RoleArn:"".concat(x).concat(p.rolename),Bucket:"".concat(A).concat(p.bucket),Prefix:p.prefix||"",Encryption:p.encryption||""}},Schedule:{Frequency:c.frequency},IncludedObjectVersions:v,OptionalFields:{Field:(g==null?void 0:g.field)||[]}}},w=r.obj2xml(b,{headers:!0,firstUpperCase:!0}),S=this._bucketRequestParams("PUT",i,h,d),S.successStatuses=[200],S.mime="xml",S.content=w,_.next=14,this.request(S);case 14:return T=_.sent,_.abrupt("return",{status:T.status,res:T.res});case 16:case"end":return _.stop()}},n,this)})),e.apply(this,arguments)}f.putBucketInventory=u},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.object.assign.js":255}],21:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.array.includes.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/checkBucketName"),r=a.checkBucketName,u=o("../utils/isArray"),e=u.isArray,n=o("../utils/deepCopy"),i=n.deepCopy,c=o("../utils/isObject"),d=c.isObject,h=o("../utils/obj2xml"),p=h.obj2xml,g=o("../utils/checkObjectTag"),v=g.checkObjectTag,A=o("../utils/getStrBytesCount"),x=A.getStrBytesCount,b=f;b.putBucketLifecycle=function(){var O=(0,l.default)(t.default.mark(function M(k,R,B){var P,U,j,H,W;return t.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(r(k),e(R)){V.next=3;break}throw new Error("rules must be Array");case 3:return P=this._bucketRequestParams("PUT",k,"lifecycle",B),U=[],j={LifecycleConfiguration:{Rule:U}},R.forEach(function(Z){w(Z),C(Z),Z.id&&(Z.ID=Z.id,delete Z.id),U.push(Z)}),H=p(j,{headers:!0,firstUpperCase:!0}),P.content=H,P.mime="xml",P.successStatuses=[200],V.next=13,this.request(P);case 13:return W=V.sent,V.abrupt("return",{res:W.res});case 15:case"end":return V.stop()}},M,this)}));function _(M,k,R){return O.apply(this,arguments)}return _}();function w(O){O.days&&(O.expiration={days:O.days}),O.date&&(O.expiration={createdBeforeDate:O.date})}function S(O,_){var M=O.days,k=O.createdBeforeDate;if(!M&&!k)throw new Error("".concat(_," must includes days or createdBeforeDate"));if(M&&!/^[1-9][0-9]*$/.test(M))throw new Error("days must be a positive integer");if(k&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(k))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function T(O){if(!e(O)&&!d(O))throw new Error("tag must be Object or Array");O=d(O)?[O]:O;var _={},M=i(O);M.forEach(function(k){_[k.key]=k.value}),v(_)}function C(O){if(O.id&&x(O.id)>255)throw new Error("ID is composed of 255 bytes at most");if(O.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(O.status))throw new Error("Status must be Enabled or Disabled");if(O.transition){if(!["IA","Archive"].includes(O.transition.storageClass))throw new Error("StorageClass must be IA or Archive");S(O.transition,"Transition")}if(O.expiration){if(!O.expiration.expiredObjectDeleteMarker)S(O.expiration,"Expiration");else if(O.expiration.days||O.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(O.abortMultipartUpload&&S(O.abortMultipartUpload,"AbortMultipartUpload"),!O.expiration&&!O.abortMultipartUpload&&!O.transition&&!O.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(O.tag){if(O.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");T(O.tag)}}},{"../utils/checkBucketName":50,"../utils/checkObjectTag":52,"../utils/deepCopy":56,"../utils/getStrBytesCount":60,"../utils/isArray":61,"../utils/isObject":67,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.includes.js":246,"core-js/modules/web.dom-collections.for-each.js":296}],22:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.array.includes.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/checkBucketName"),r=a.checkBucketName,u=o("../utils/obj2xml"),e=u.obj2xml,n=f;n.putBucketVersioning=function(){var i=(0,l.default)(t.default.mark(function d(h,p){var g,v,A,x,b=arguments;return t.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(g=b.length>2&&b[2]!==void 0?b[2]:{},r(h),["Enabled","Suspended"].includes(p)){S.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return v=this._bucketRequestParams("PUT",h,"versioning",g),A={VersioningConfiguration:{Status:p}},v.mime="xml",v.content=e(A,{headers:!0}),S.next=10,this.request(v);case 10:return x=S.sent,S.abrupt("return",{res:x.res,status:x.status});case 12:case"end":return S.stop()}},d,this)}));function c(d,h){return i.apply(this,arguments)}return c}()},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.includes.js":246}],23:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator")),l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/checkBucketName"),r=a.checkBucketName,u=o("../utils/obj2xml"),e=u.obj2xml,n=o("../utils/isArray"),i=n.isArray,c=f;c.putBucketWebsite=function(){var d=(0,l.default)(t.default.mark(function p(g){var v,A,x,b,w,S,T,C=arguments;return t.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(v=C.length>1&&C[1]!==void 0?C[1]:{},A=C.length>2?C[2]:void 0,r(g),x=this._bucketRequestParams("PUT",g,"website",A),b={Suffix:v.index||"index.html"},w={IndexDocument:b},S={WebsiteConfiguration:w},v.supportSubDir&&(b.SupportSubDir=v.supportSubDir),v.type&&(b.Type=v.type),v.error&&(w.ErrorDocument={Key:v.error}),!(v.routingRules!==void 0)){_.next=14;break}if(i(v.routingRules)){_.next=13;break}throw new Error("RoutingRules must be Array");case 13:w.RoutingRules={RoutingRule:v.routingRules};case 14:return S=e(S),x.content=S,x.mime="xml",x.successStatuses=[200],_.next=20,this.request(x);case 20:return T=_.sent,_.abrupt("return",{res:T.res});case 22:case"end":return _.stop()}},p,this)}));function h(p){return d.apply(this,arguments)}return h}()},{"../utils/checkBucketName":50,"../utils/isArray":61,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],24:[function(o,m,f){(function(s){(function(){"use strict";o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.regexp.to-string.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),f.encodeCallback=function(l,a){if(l.headers=l.headers||{},!Object.prototype.hasOwnProperty.call(l.headers,"x-oss-callback")&&a.callback){var r={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(r.callbackHost=a.callback.host),a.callback.contentType&&(r.callbackBodyType=a.callback.contentType);var u=s.from(JSON.stringify(r)).toString("base64");if(l.headers["x-oss-callback"]=u,a.callback.customValue){var e={};Object.keys(a.callback.customValue).forEach(function(n){e["x:".concat(n)]=a.callback.customValue[n]}),l.headers["x-oss-callback-var"]=s.from(JSON.stringify(e)).toString("base64")}}}}).call(this)}).call(this,o("buffer").Buffer)},{buffer:85,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/web.dom-collections.for-each.js":296}],25:[function(o,m,f){"use strict";o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.replace.js"),o("core-js/modules/web.dom-collections.for-each.js");var s=function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(f,"__esModule",{value:!0}),f.getReqUrl=void 0;var t=s(o("copy-to")),l=s(o("url")),a=s(o("merge-descriptors")),r=s(o("is-type-of")),u=o("../utils/isIP"),e=o("../utils/checkConfigValid");function n(i){var c={},d=this.options.cname;e.checkConfigValid(this.options.endpoint,"endpoint"),t.default(this.options.endpoint,!1).to(c),i.bucket&&!d&&!u.isIP(c.hostname)&&!this.options.sldEnable&&(c.host="".concat(i.bucket,".").concat(c.host));var h="/";i.bucket&&this.options.sldEnable&&(h+="".concat(i.bucket,"/")),i.object&&(h+=this._escape(i.object).replace(/\+/g,"%2B")),c.pathname=h;var p={};if(i.query&&a.default(p,i.query),i.subres){var g={};r.default.string(i.subres)?g[i.subres]="":r.default.array(i.subres)?i.subres.forEach(function(v){g[v]=""}):g=i.subres,a.default(p,g)}return c.query=p,l.default.format(c)}f.getReqUrl=n},{"../utils/checkConfigValid":51,"../utils/isIP":66,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296,"is-type-of":398,"merge-descriptors":315,url:404}],26:[function(o,m,f){"use strict";o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.object.assign.js"),o("core-js/modules/es.string.trim.js");var s=o("humanize-ms"),t=o("url"),l=o("../utils/checkBucketName"),a=l.checkBucketName,r=o("../utils/setRegion"),u=r.setRegion,e=o("../utils/checkConfigValid"),n=e.checkConfigValid;function i(c,d){n(c,"endpoint");var h=t.parse(c);if(h.protocol||(h=t.parse("http".concat(d?"s":"","://").concat(c))),h.protocol!=="http:"&&h.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return h}m.exports=function(c){if(!c||!c.accessKeyId||!c.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");c.stsToken&&!c.refreshSTSToken&&!c.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),c.bucket&&a(c.bucket);var d=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},c);if(d.accessKeyId=d.accessKeyId.trim(),d.accessKeySecret=d.accessKeySecret.trim(),d.timeout&&(d.timeout=s(d.timeout)),d.endpoint)d.endpoint=i(d.endpoint,d.secure);else if(d.region)d.endpoint=u(d.region,d.internal,d.secure);else throw new Error("require options.endpoint or options.region");return d.inited=!0,d}},{"../utils/checkBucketName":50,"../utils/checkConfigValid":51,"../utils/setRegion":71,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.string.trim.js":269,"humanize-ms":303,url:404}],27:[function(o,m,f){"use strict";var s=o("merge-descriptors"),t=f;s(t,o("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":315}],28:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.array.concat.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/checkBucketName"),r=a.checkBucketName,u=o("querystring"),e=o("js-base64"),n=e.Base64.encode,i=f;i.processObjectSave=function(){var d=(0,l.default)(t.default.mark(function p(g,v,A,x){var b,w,S,T;return t.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return c(g,"sourceObject"),c(v,"targetObject"),c(A,"process"),v=this._objectName(v),x&&r(x),b=this._objectRequestParams("POST",g,{subres:"x-oss-process"}),w=x?",b_".concat(n(x)):"",v=n(v),S={"x-oss-process":"".concat(A,"|sys/saveas,o_").concat(v).concat(w)},b.content=u.stringify(S),O.next=12,this.request(b);case 12:return T=O.sent,O.abrupt("return",{res:T.res,status:T.res.status});case 14:case"end":return O.stop()}},p,this)}));function h(p,g,v,A){return d.apply(this,arguments)}return h}();function c(d,h){if(!d)throw new Error("".concat(h," is required"));if(typeof d!="string")throw new Error("".concat(h," must be String"))}},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"js-base64":314,querystring:328}],29:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.function.name.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.promise.js"),o("core-js/modules/es.array.from.js"),o("core-js/modules/es.string.iterator.js"),o("core-js/modules/es.array.map.js"),o("core-js/modules/es.array.filter.js"),o("core-js/modules/es.array.find.js"),o("core-js/modules/es.regexp.to-string.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("debug")("ali-oss:multipart-copy"),r=o("copy-to"),u=f;u.uploadPartCopy=function(){var e=(0,l.default)(t.default.mark(function i(c,d,h,p,g){var v,A,x,b,w,S=arguments;return t.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return v=S.length>5&&S[5]!==void 0?S[5]:{},v.headers=v.headers||{},A=v.versionId||v.subres&&v.subres.versionId||null,A?x="/".concat(g.sourceBucketName,"/").concat(encodeURIComponent(g.sourceKey),"?versionId=").concat(A):x="/".concat(g.sourceBucketName,"/").concat(encodeURIComponent(g.sourceKey)),v.headers["x-oss-copy-source"]=x,p&&(v.headers["x-oss-copy-source-range"]="bytes=".concat(p)),v.subres={partNumber:h,uploadId:d},b=this._objectRequestParams("PUT",c,v),b.mime=v.mime,b.successStatuses=[200],C.next=12,this.request(b);case 12:return w=C.sent,C.abrupt("return",{name:c,etag:w.res.headers.etag,res:w.res});case 14:case"end":return C.stop()}},i,this)}));function n(i,c,d,h,p){return e.apply(this,arguments)}return n}(),u.multipartUploadCopy=function(){var e=(0,l.default)(t.default.mark(function i(c,d){var h,p,g,v,A,x,b,w,S,T,C,O,_=arguments;return t.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return h=_.length>2&&_[2]!==void 0?_[2]:{},this.resetCancelFlag(),p=h.versionId,g=p===void 0?null:p,v={versionId:g},k.next=6,this._getObjectMeta(d.sourceBucketName,d.sourceKey,v);case 6:if(A=k.sent,x=A.res.headers["content-length"],d.startOffset=d.startOffset||0,d.endOffset=d.endOffset||x,!(h.checkpoint&&h.checkpoint.uploadId)){k.next=14;break}return k.next=13,this._resumeMultipartCopy(h.checkpoint,d,h);case 13:return k.abrupt("return",k.sent);case 14:if(b=100*1024,w=d.endOffset-d.startOffset,!(w<b)){k.next=18;break}throw new Error("copySize must not be smaller than ".concat(b));case 18:if(!(h.partSize&&h.partSize<b)){k.next=20;break}throw new Error("partSize must not be smaller than ".concat(b));case 20:return k.next=22,this.initMultipartUpload(c,h);case 22:if(S=k.sent,T=S.uploadId,C=this._getPartSize(w,h.partSize),O={name:c,copySize:w,partSize:C,uploadId:T,doneParts:[]},!(h&&h.progress)){k.next=29;break}return k.next=29,h.progress(0,O,S.res);case 29:return k.next=31,this._resumeMultipartCopy(O,d,h);case 31:return k.abrupt("return",k.sent);case 32:case"end":return k.stop()}},i,this)}));function n(i,c){return e.apply(this,arguments)}return n}(),u._resumeMultipartCopy=function(){var e=(0,l.default)(t.default.mark(function i(c,d,h){var p,g,v,A,x,b,w,S,T,C,O,_,M,k,R,B,P,U,j,H,W;return t.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(!this.isCancel()){V.next=2;break}throw this._makeCancelEvent();case 2:if(p=h.versionId,g=p===void 0?null:p,v={versionId:g},A=c.copySize,x=c.partSize,b=c.uploadId,w=c.doneParts,S=c.name,T=this._divideMultipartCopyParts(A,x,d.startOffset),C=T.length,O={headers:{}},h.copyheaders&&r(h.copyheaders).to(O.headers),g&&r(v).to(O),_=function(Y,Q,oe){return new Promise(function(){var ue=(0,l.default)(t.default.mark(function Le(me,Ie){var X,q,We;return t.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(J.prev=0,Y.isCancel()){J.next=22;break}return X=T[Q-1],q="".concat(X.start,"-").concat(X.end-1),J.prev=4,J.next=7,Y.uploadPartCopy(S,b,Q,q,oe,O);case 7:We=J.sent,J.next=15;break;case 10:if(J.prev=10,J.t0=J.catch(4),!(J.t0.status===404)){J.next=14;break}throw Y._makeAbortEvent();case 14:throw J.t0;case 15:if(Y.isCancel()){J.next=22;break}if(a("content-range ".concat(We.res.headers["content-range"])),w.push({number:Q,etag:We.res.headers.etag}),c.doneParts=w,!(h&&h.progress)){J.next=22;break}return J.next=22,h.progress(w.length/C,c,We.res);case 22:me(),J.next=29;break;case 25:J.prev=25,J.t1=J.catch(0),J.t1.partNum=Q,Ie(J.t1);case 29:case"end":return J.stop()}},Le,null,[[0,25],[4,10]])}));return function(Le,me){return ue.apply(this,arguments)}}())},M=Array.from(new Array(C),function(Z,Y){return Y+1}),k=w.map(function(Z){return Z.number}),R=M.filter(function(Z){return k.indexOf(Z)<0}),B=5,P=h.parallel||B,!(this.checkBrowserAndVersion("Internet Explorer","10")||P===1)){V.next=28;break}U=0;case 18:if(!(U<R.length)){V.next=26;break}if(!this.isCancel()){V.next=21;break}throw this._makeCancelEvent();case 21:return V.next=23,_(this,R[U],d);case 23:U++,V.next=18;break;case 26:V.next=40;break;case 28:return V.next=30,this._parallelNode(R,P,_,d);case 30:if(j=V.sent,H=j.find(function(Z){return Z.name==="abort"}),!H){V.next=34;break}throw H;case 34:if(!this.isCancel()){V.next=36;break}throw this._makeCancelEvent();case 36:if(!(j&&j.length>0)){V.next=40;break}throw W=j[0],W.message="Failed to copy some parts with error: ".concat(W.toString()," part_num: ").concat(W.partNum),W;case 40:return V.next=42,this.completeMultipartUpload(S,b,w,h);case 42:return V.abrupt("return",V.sent);case 43:case"end":return V.stop()}},i,this)}));function n(i,c,d){return e.apply(this,arguments)}return n}(),u._divideMultipartCopyParts=function(n,i,c){for(var d=Math.ceil(n/i),h=[],p=0;p<d;p++){var g=i*p+c,v=Math.min(g+i,n+c);h.push({start:g,end:v})}return h},u._getObjectMeta=function(){var e=(0,l.default)(t.default.mark(function i(c,d,h){var p,g;return t.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return p=this.getBucket(),this.setBucket(c),A.next=4,this.head(d,h);case 4:return g=A.sent,this.setBucket(p),A.abrupt("return",g);case 7:case"end":return A.stop()}},i,this)}));function n(i,c,d){return e.apply(this,arguments)}return n}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.filter.js":243,"core-js/modules/es.array.find.js":244,"core-js/modules/es.array.from.js":245,"core-js/modules/es.array.map.js":249,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.iterator.js":264,debug:397}],30:[function(o,m,f){(function(s){(function(){"use strict";var t=o("@babel/runtime/helpers/interopRequireDefault"),l=t(o("@babel/runtime/regenerator"));o("core-js/modules/es.array.map.js"),o("core-js/modules/es.array.filter.js"),o("core-js/modules/es.array.sort.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.regexp.to-string.js");var a=t(o("@babel/runtime/helpers/asyncToGenerator")),r=o("copy-to"),u=o("./callback"),e=o("./utils/deepCopy"),n=e.deepCopyWith,i=o("./utils/isBuffer"),c=i.isBuffer,d=f;d.listUploads=function(){var h=(0,a.default)(l.default.mark(function g(v,A){var x,b,w,S;return l.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return A=A||{},x={},r(A).to(x),x.subres="uploads",b=this._objectRequestParams("GET","",x),b.query=v,b.xmlResponse=!0,b.successStatuses=[200],C.next=10,this.request(b);case 10:return w=C.sent,S=w.data.Upload||[],Array.isArray(S)||(S=[S]),S=S.map(function(O){return{name:O.Key,uploadId:O.UploadId,initiated:O.Initiated}}),C.abrupt("return",{res:w.res,uploads:S,bucket:w.data.Bucket,nextKeyMarker:w.data.NextKeyMarker,nextUploadIdMarker:w.data.NextUploadIdMarker,isTruncated:w.data.IsTruncated==="true"});case 15:case"end":return C.stop()}},g,this)}));function p(g,v){return h.apply(this,arguments)}return p}(),d.listParts=function(){var h=(0,a.default)(l.default.mark(function g(v,A,x,b){var w,S,T;return l.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return b=b||{},w={},r(b).to(w),w.subres={uploadId:A},S=this._objectRequestParams("GET",v,w),S.query=x,S.xmlResponse=!0,S.successStatuses=[200],O.next=10,this.request(S);case 10:return T=O.sent,O.abrupt("return",{res:T.res,uploadId:T.data.UploadId,bucket:T.data.Bucket,name:T.data.Key,partNumberMarker:T.data.PartNumberMarker,nextPartNumberMarker:T.data.NextPartNumberMarker,maxParts:T.data.MaxParts,isTruncated:T.data.IsTruncated,parts:T.data.Part||[]});case 12:case"end":return O.stop()}},g,this)}));function p(g,v,A,x){return h.apply(this,arguments)}return p}(),d.abortMultipartUpload=function(){var h=(0,a.default)(l.default.mark(function g(v,A,x){var b,w,S;return l.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return this._stop(),x=x||{},b={},r(x).to(b),b.subres={uploadId:A},w=this._objectRequestParams("DELETE",v,b),w.successStatuses=[204],C.next=9,this.request(w);case 9:return S=C.sent,C.abrupt("return",{res:S.res});case 11:case"end":return C.stop()}},g,this)}));function p(g,v,A){return h.apply(this,arguments)}return p}(),d.initMultipartUpload=function(){var h=(0,a.default)(l.default.mark(function g(v,A){var x,b,w;return l.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return A=A||{},x={},r(A).to(x),x.headers=x.headers||{},this._convertMetaToHeaders(A.meta,x.headers),x.subres="uploads",b=this._objectRequestParams("POST",v,x),b.mime=A.mime,b.xmlResponse=!0,b.successStatuses=[200],T.next=12,this.request(b);case 12:return w=T.sent,T.abrupt("return",{res:w.res,bucket:w.data.Bucket,name:w.data.Key,uploadId:w.data.UploadId});case 14:case"end":return T.stop()}},g,this)}));function p(g,v){return h.apply(this,arguments)}return p}(),d.uploadPart=function(){var h=(0,a.default)(l.default.mark(function g(v,A,x,b,w,S,T){var C,O;return l.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(C={size:S-w},O=s&&s.browser,!O){M.next=8;break}return M.next=5,this._createBuffer(b,w,S);case 5:C.content=M.sent,M.next=11;break;case 8:return M.next=10,this._createStream(b,w,S);case 10:C.stream=M.sent;case 11:return M.next=13,this._uploadPart(v,A,x,C,T);case 13:return M.abrupt("return",M.sent);case 14:case"end":return M.stop()}},g,this)}));function p(g,v,A,x,b,w,S){return h.apply(this,arguments)}return p}(),d.completeMultipartUpload=function(){var h=(0,a.default)(l.default.mark(function g(v,A,x,b){var w,S,T,C,O,_,M,k;return l.default.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:for(w=x.concat().sort(function(P,U){return P.number-U.number}).filter(function(P,U,j){return!U||P.number!==j[U-1].number}),S=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,T=0;T<w.length;T++)C=w[T],S+=`<Part>
|
|
|
`,S+="<PartNumber>".concat(C.number,`</PartNumber>
|
|
|
`),S+="<ETag>".concat(C.etag,`</ETag>
|
|
|
`),S+=`</Part>
|
|
|
`;return S+="</CompleteMultipartUpload>",b=b||{},O={},O=n(b,function(P){if(c(P))return null}),O.headers&&delete O.headers["x-oss-server-side-encryption"],O.subres={uploadId:A},_=this._objectRequestParams("POST",v,O),u.encodeCallback(_,O),_.mime="xml",_.content=S,_.headers&&_.headers["x-oss-callback"]||(_.xmlResponse=!0),_.successStatuses=[200],B.next=17,this.request(_);case 17:return M=B.sent,k={res:M.res,bucket:_.bucket,name:v,etag:M.res.headers.etag},_.headers&&_.headers["x-oss-callback"]&&(k.data=JSON.parse(M.data.toString())),B.abrupt("return",k);case 21:case"end":return B.stop()}},g,this)}));function p(g,v,A,x){return h.apply(this,arguments)}return p}(),d._uploadPart=function(){var h=(0,a.default)(l.default.mark(function g(v,A,x,b,w){var S,T,C,O;return l.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return w=w||{},S={},r(w).to(S),S.headers={"Content-Length":b.size},S.subres={partNumber:x,uploadId:A},T=this._objectRequestParams("PUT",v,S),T.mime=S.mime,C=s&&s.browser,C?T.content=b.content:T.stream=b.stream,T.successStatuses=[200],T.disabledMD5=w.disabledMD5,M.next=13,this.request(T);case 13:if(O=M.sent,O.res.headers.etag){M.next=16;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 16:return b.stream&&(b.stream=null,T.stream=null),M.abrupt("return",{name:v,etag:O.res.headers.etag,res:O.res});case 18:case"end":return M.stop()}},g,this)}));function p(g,v,A,x,b){return h.apply(this,arguments)}return p}()}).call(this)}).call(this,o("_process"))},{"./callback":24,"./utils/deepCopy":56,"./utils/isBuffer":63,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.filter.js":243,"core-js/modules/es.array.map.js":249,"core-js/modules/es.array.sort.js":251,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262}],31:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.array.find.js"),o("core-js/modules/es.array.includes.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.replace.js");var l=s(o("@babel/runtime/helpers/typeof")),a=s(o("@babel/runtime/helpers/asyncToGenerator")),r=o("../utils/checkBucketName"),u=r.checkBucketName,e=f,n=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];e.copy=function(){var i=(0,a.default)(t.default.mark(function d(h,p,g,v){var A,x,b;return t.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return(0,l.default)(g)==="object"&&(v=g),v=v||{},v.headers=v.headers||{},Object.keys(v.headers).forEach(function(T){v.headers["x-oss-copy-source-".concat(T.toLowerCase())]=v.headers[T]}),(v.meta||Object.keys(v.headers).find(function(T){return n.includes(T.toLowerCase())}))&&(v.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(v.meta,v.headers),p=this._getSourceName(p,g),v.versionId&&(p="".concat(p,"?versionId=").concat(v.versionId)),v.headers["x-oss-copy-source"]=p,A=this._objectRequestParams("PUT",h,v),A.xmlResponse=!0,A.successStatuses=[200,304],S.next=14,this.request(A);case 14:return x=S.sent,b=x.data,b&&(b={etag:b.ETag,lastModified:b.LastModified}),S.abrupt("return",{data:b,res:x.res});case 18:case"end":return S.stop()}},d,this)}));function c(d,h,p,g){return i.apply(this,arguments)}return c}(),e._getSourceName=function(c,d){return typeof d=="string"?c=this._objectName(c):c[0]!=="/"?d=this.options.bucket:(d=c.replace(/\/(.+?)(\/.*)/,"$1"),c=c.replace(/(\/.+?\/)(.*)/,"$2")),u(d),c=encodeURIComponent(c),c="/".concat(d,"/").concat(c),c}},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.find.js":244,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],32:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f;a.delete=function(){var r=(0,l.default)(t.default.mark(function e(n){var i,c,d,h=arguments;return t.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=h.length>1&&h[1]!==void 0?h[1]:{},i.subres=Object.assign({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),c=this._objectRequestParams("DELETE",n,i),c.successStatuses=[204],g.next=7,this.request(c);case 7:return d=g.sent,g.abrupt("return",{res:d.res});case 9:case"end":return g.stop()}},e,this)}));function u(e){return r.apply(this,arguments)}return u}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],33:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("utility"),r=o("../utils/obj2xml"),u=r.obj2xml,e=f;e.deleteMulti=function(){var n=(0,l.default)(t.default.mark(function c(d){var h,p,g,v,A,x,b,w,S,T,C,O,_,M=arguments;return t.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(h=M.length>1&&M[1]!==void 0?M[1]:{},p=[],!(!d||!d.length)){R.next=4;break}throw new Error("names is required");case 4:for(g=0;g<d.length;g++)v={},typeof d[g]=="string"?v.Key=a.escape(this._objectName(d[g])):(A=d[g],x=A.key,b=A.versionId,v.Key=a.escape(this._objectName(x)),v.VersionId=b),p.push(v);return w={Delete:{Quiet:!!h.quiet,Object:p}},S=u(w,{headers:!0}),h.subres=Object.assign({delete:""},h.subres),h.versionId&&(h.subres.versionId=h.versionId),T=this._objectRequestParams("POST","",h),T.mime="xml",T.content=S,T.xmlResponse=!0,T.successStatuses=[200],R.next=16,this.request(T);case 16:return C=R.sent,O=C.data,_=O&&O.Deleted||null,_&&(Array.isArray(_)||(_=[_])),R.abrupt("return",{res:C.res,deleted:_||[]});case 21:case"end":return R.stop()}},c,this)}));function i(c){return n.apply(this,arguments)}return i}()},{"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255,utility:406}],34:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f;a.deleteObjectTagging=function(){var r=(0,l.default)(t.default.mark(function e(n){var i,c,d,h=arguments;return t.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=h.length>1&&h[1]!==void 0?h[1]:{},i.subres=Object.assign({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),n=this._objectName(n),c=this._objectRequestParams("DELETE",n,i),c.successStatuses=[204],g.next=8,this.request(c);case 8:return d=g.sent,g.abrupt("return",{status:d.status,res:d.res});case 10:case"end":return g.stop()}},e,this)}));function u(e){return r.apply(this,arguments)}return u}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],35:[function(o,m,f){"use strict";o("core-js/modules/es.array.concat.js");var s=o("url"),t=o("../utils/isIP"),l=t.isIP,a=f;a.generateObjectUrl=function(u,e){if(l(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(e)e[e.length-1]!=="/"&&(e+="/");else{e=this.options.endpoint.format();var n=s.parse(e),i=this.options.bucket;n.hostname="".concat(i,".").concat(n.hostname),n.host="".concat(i,".").concat(n.host),e=n.format()}return e+this._escape(this._objectName(u))}},{"../utils/isIP":66,"core-js/modules/es.array.concat.js":241,url:404}],36:[function(o,m,f){(function(s){(function(){"use strict";var t=o("@babel/runtime/helpers/interopRequireDefault"),l=t(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var a=t(o("@babel/runtime/helpers/asyncToGenerator")),r=o("fs"),u=o("is-type-of"),e=f;e.get=function(){var n=(0,a.default)(l.default.mark(function c(d,h){var p,g,v,A,x,b,w,S,T=arguments;return l.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return p=T.length>2&&T[2]!==void 0?T[2]:{},g=null,v=!1,u.writableStream(h)?g=h:u.string(h)?(g=r.createWriteStream(h),v=!0):p=h,p=p||{},A=s&&s.browser,x=p.responseCacheControl===null?"":"no-cache",b=A&&x?{"response-cache-control":x}:{},p.subres=Object.assign(b,p.subres),p.versionId&&(p.subres.versionId=p.versionId),p.process&&(p.subres["x-oss-process"]=p.process),O.prev=11,S=this._objectRequestParams("GET",d,p),S.writeStream=g,S.successStatuses=[200,206,304],O.next=17,this.request(S);case 17:w=O.sent,v&&g.destroy(),O.next=28;break;case 21:if(O.prev=21,O.t0=O.catch(11),!v){O.next=27;break}return g.destroy(),O.next=27,this._deleteFileSafe(h);case 27:throw O.t0;case 28:return O.abrupt("return",{res:w.res,content:w.data});case 29:case"end":return O.stop()}},c,this,[[11,21]])}));function i(c,d){return n.apply(this,arguments)}return i}()}).call(this)}).call(this,o("_process"))},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,"core-js/modules/es.object.assign.js":255,fs:84,"is-type-of":398}],37:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f;a.getACL=function(){var r=(0,l.default)(t.default.mark(function e(n){var i,c,d,h=arguments;return t.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=h.length>1&&h[1]!==void 0?h[1]:{},i.subres=Object.assign({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),n=this._objectName(n),c=this._objectRequestParams("GET",n,i),c.successStatuses=[200],c.xmlResponse=!0,g.next=9,this.request(c);case 9:return d=g.sent,g.abrupt("return",{acl:d.data.AccessControlList.Grant,owner:{id:d.data.Owner.ID,displayName:d.data.Owner.DisplayName},res:d.res});case 11:case"end":return g.stop()}},e,this)}));function u(e){return r.apply(this,arguments)}return u}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],38:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.replace.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.object.assign.js"),o("core-js/modules/es.array.map.js"),o("core-js/modules/es.number.constructor.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f,r=o("../utils/isObject"),u=r.isObject,e=o("../utils/isArray"),n=e.isArray;a.getBucketVersions=i,a.listObjectVersions=i;function i(){return c.apply(this,arguments)}function c(){return c=(0,l.default)(t.default.mark(function p(){var g,v,A,x,b,w,S,T,C=arguments;return t.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(g=C.length>0&&C[0]!==void 0?C[0]:{},v=C.length>1&&C[1]!==void 0?C[1]:{},!(g.versionIdMarker&&g.keyMarker===void 0)){_.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return v.subres=Object.assign({versions:""},v.subres),v.versionId&&(v.subres.versionId=v.versionId),A=this._objectRequestParams("GET","",v),A.xmlResponse=!0,A.successStatuses=[200],A.query=h(g),_.next=12,this.request(A);case 12:return x=_.sent,b=x.data.Version||[],w=x.data.DeleteMarker||[],S=this,b&&(Array.isArray(b)||(b=[b]),b=b.map(function(M){return{name:M.Key,url:S._objectUrl(M.Key),lastModified:M.LastModified,isLatest:M.IsLatest==="true",versionId:M.VersionId,etag:M.ETag,type:M.Type,size:Number(M.Size),storageClass:M.StorageClass,owner:{id:M.Owner.ID,displayName:M.Owner.DisplayName}}})),w&&(n(w)||(w=[w]),w=w.map(function(M){return{name:M.Key,lastModified:M.LastModified,versionId:M.VersionId,owner:{id:M.Owner.ID,displayName:M.Owner.DisplayName}}})),T=x.data.CommonPrefixes||null,T&&(n(T)||(T=[T]),T=T.map(function(M){return M.Prefix})),_.abrupt("return",{res:x.res,objects:b,deleteMarker:w,prefixes:T,nextMarker:x.data.NextKeyMarker||null,NextVersionIdMarker:x.data.NextVersionIdMarker||null,nextKeyMarker:x.data.NextKeyMarker||null,nextVersionIdMarker:x.data.NextVersionIdMarker||null,isTruncated:x.data.IsTruncated==="true"});case 21:case"end":return _.stop()}},p,this)})),c.apply(this,arguments)}function d(p){return p.replace(/([A-Z])/g,"-$1").toLowerCase()}function h(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g={};return u(p)&&Object.keys(p).forEach(function(v){g[d(v)]=p[v]}),g}},{"../utils/isArray":61,"../utils/isObject":67,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.map.js":249,"core-js/modules/es.number.constructor.js":254,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],39:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f;a.getObjectMeta=function(){var r=(0,l.default)(t.default.mark(function e(n,i){var c,d;return t.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=i||{},n=this._objectName(n),i.subres=Object.assign({objectMeta:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),c=this._objectRequestParams("HEAD",n,i),c.successStatuses=[200],p.next=8,this.request(c);case 8:return d=p.sent,p.abrupt("return",{status:d.status,res:d.res});case 10:case"end":return p.stop()}},e,this)}));function u(e,n){return r.apply(this,arguments)}return u}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],40:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js"),o("core-js/modules/web.dom-collections.for-each.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f,r=o("../utils/isObject"),u=r.isObject;a.getObjectTagging=function(){var e=(0,l.default)(t.default.mark(function i(c){var d,h,p,g,v,A,x=arguments;return t.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return d=x.length>1&&x[1]!==void 0?x[1]:{},d.subres=Object.assign({tagging:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),c=this._objectName(c),h=this._objectRequestParams("GET",c,d),h.successStatuses=[200],w.next=8,this.request(h);case 8:return p=w.sent,w.next=11,this.parseXML(p.data);case 11:return g=w.sent,v=g.TagSet.Tag,v=v&&u(v)?[v]:v||[],A={},v.forEach(function(S){A[S.Key]=S.Value}),w.abrupt("return",{status:p.status,res:p.res,tag:A});case 17:case"end":return w.stop()}},i,this)}));function n(i){return e.apply(this,arguments)}return n}()},{"../utils/isObject":67,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255,"core-js/modules/web.dom-collections.for-each.js":296}],41:[function(o,m,f){"use strict";var s=o("../utils/isIP"),t=s.isIP,l=f;l.getObjectUrl=function(r,u){if(t(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return u?u[u.length-1]!=="/"&&(u+="/"):u=this.options.endpoint.format(),u+this._escape(this._objectName(r))}},{"../utils/isIP":66}],42:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f;a.getSymlink=function(){var r=(0,l.default)(t.default.mark(function e(n){var i,c,d,h,p=arguments;return t.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return i=p.length>1&&p[1]!==void 0?p[1]:{},i.subres=Object.assign({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),n=this._objectName(n),c=this._objectRequestParams("GET",n,i),c.successStatuses=[200],v.next=8,this.request(c);case 8:return d=v.sent,h=d.res.headers["x-oss-symlink-target"],v.abrupt("return",{targetName:decodeURIComponent(h),res:d.res});case 11:case"end":return v.stop()}},e,this)}));function u(e){return r.apply(this,arguments)}return u}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],43:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f;a.head=function(){var r=(0,l.default)(t.default.mark(function e(n){var i,c,d,h,p=arguments;return t.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return i=p.length>1&&p[1]!==void 0?p[1]:{},i.subres=Object.assign({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),c=this._objectRequestParams("HEAD",n,i),c.successStatuses=[200,304],v.next=7,this.request(c);case 7:return d=v.sent,h={meta:null,res:d.res,status:d.status},d.status===200&&Object.keys(d.headers).forEach(function(A){A.indexOf("x-oss-meta-")===0&&(h.meta||(h.meta={}),h.meta[A.substring(11)]=d.headers[A])}),v.abrupt("return",h);case 11:case"end":return v.stop()}},e,this)}));function u(e){return r.apply(this,arguments)}return u}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257,"core-js/modules/web.dom-collections.for-each.js":296}],44:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f;a.putACL=function(){var r=(0,l.default)(t.default.mark(function e(n,i,c){var d,h;return t.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return c=c||{},c.subres=Object.assign({acl:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),c.headers=c.headers||{},c.headers["x-oss-object-acl"]=i,n=this._objectName(n),d=this._objectRequestParams("PUT",n,c),d.successStatuses=[200],g.next=10,this.request(d);case 10:return h=g.sent,g.abrupt("return",{res:h.res});case 12:case"end":return g.stop()}},e,this)}));function u(e,n,i){return r.apply(this,arguments)}return u}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],45:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js"),o("core-js/modules/es.array.map.js"),o("core-js/modules/es.object.keys.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("../utils/obj2xml"),r=a.obj2xml,u=o("../utils/checkObjectTag"),e=u.checkObjectTag,n=f;n.putObjectTagging=function(){var i=(0,l.default)(t.default.mark(function d(h,p){var g,v,A,x,b=arguments;return t.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return g=b.length>2&&b[2]!==void 0?b[2]:{},e(p),g.subres=Object.assign({tagging:""},g.subres),g.versionId&&(g.subres.versionId=g.versionId),h=this._objectName(h),v=this._objectRequestParams("PUT",h,g),v.successStatuses=[200],p=Object.keys(p).map(function(T){return{Key:T,Value:p[T]}}),A={Tagging:{TagSet:{Tag:p}}},v.mime="xml",v.content=r(A),S.next=13,this.request(v);case 13:return x=S.sent,S.abrupt("return",{res:x.res,status:x.status});case 15:case"end":return S.stop()}},d,this)}));function c(d,h){return i.apply(this,arguments)}return c}()},{"../utils/checkObjectTag":52,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.map.js":249,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257}],46:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=f;a.putSymlink=function(){var r=(0,l.default)(t.default.mark(function e(n,i,c){var d,h;return t.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return c=c||{},c.headers=c.headers||{},i=this._escape(this._objectName(i)),this._convertMetaToHeaders(c.meta,c.headers),c.headers["x-oss-symlink-target"]=i,c.subres=Object.assign({symlink:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),c.storageClass&&(c.headers["x-oss-storage-class"]=c.storageClass),n=this._objectName(n),d=this._objectRequestParams("PUT",n,c),d.successStatuses=[200],g.next=13,this.request(d);case 13:return h=g.sent,g.abrupt("return",{res:h.res});case 15:case"end":return g.stop()}},e,this)}));function u(e,n,i){return r.apply(this,arguments)}return u}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],47:[function(o,m,f){"use strict";o("core-js/modules/es.object.assign.js");var s=o("url"),t=o("utility"),l=o("copy-to"),a=o("../../common/signUtils"),r=o("../utils/isIP"),u=r.isIP,e=o("../../common/utils/isFunction"),n=e.isFunction,i=o("../utils/setSTSToken"),c=i.checkCredentials,d=o("../utils/formatObjKey"),h=d.formatObjKey,p=f;p.signatureUrl=function(v,A){var x=this;if(u(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");A=A||{},v=this._objectName(v),A.method=A.method||"GET";var b=t.timestamp()+(A.expires||1800),w={bucket:this.options.bucket,object:v},S=this._getResource(w);if(this.options.stsToken&&n(this.options.refreshSTSToken)){var T=new Date;this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval?(this.stsTokenFreshTime=T,this.options.refreshSTSToken().then(function(_){var M=h(_,"firstLowerCase");M.securityToken&&(M.stsToken=M.securityToken),c(M),Object.assign(x.options,M)})):this.stsTokenFreshTime=T}this.options.stsToken&&(A["security-token"]=this.options.stsToken);var C=a._signatureForURL(this.options.accessKeySecret,A,S,b),O=s.parse(this._getReqUrl(w));return O.query={OSSAccessKeyId:this.options.accessKeyId,Expires:b,Signature:C.Signature},l(C.subResource).to(O.query),O.format()}},{"../../common/signUtils":49,"../../common/utils/isFunction":65,"../utils/formatObjKey":59,"../utils/isIP":66,"../utils/setSTSToken":72,"copy-to":88,"core-js/modules/es.object.assign.js":255,url:404,utility:406}],48:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.array.iterator.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.promise.js"),o("core-js/modules/es.string.iterator.js"),o("core-js/modules/web.dom-collections.iterator.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.function.name.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator")),a=o("./utils/isArray"),r=a.isArray,u=f;u._parallelNode=function(){var e=(0,l.default)(t.default.mark(function i(c,d,h,p){var g,v,A,x,b,w,S,T;return t.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:g=this,v=[],A=[],x=c.length/d,b=c.length%d,w=b===0?x:(c.length-b)/d+1,S=1,T=0;case 8:if(!(T<c.length)){O.next=26;break}if(!g.isCancel()){O.next=11;break}return O.abrupt("break",26);case 11:if(p?A.push(h(g,c[T],p)):A.push(h(g,c[T])),!(A.length===d||S===w&&T===c.length-1)){O.next=23;break}return O.prev=13,S+=1,O.next=17,Promise.all(A);case 17:O.next=22;break;case 19:O.prev=19,O.t0=O.catch(13),v.push(O.t0);case 22:A=[];case 23:T++,O.next=8;break;case 26:return O.abrupt("return",v);case 27:case"end":return O.stop()}},i,this,[[13,19]])}));function n(i,c,d,h){return e.apply(this,arguments)}return n}(),u._parallel=function(n,i,c){var d=this;return new Promise(function(h){var p=[];if(i<=0||!n){h(p);return}function g(O){return function(){if(O===null)throw new Error("Callback was already called.");var _=O;O=null;for(var M=arguments.length,k=new Array(M),R=0;R<M;R++)k[R]=arguments[R];_.apply(this,k)}}function v(O){var _=-1,M=O.length;return function(){return++_<M&&!d.isCancel()?{value:O[_],key:_}:null}}var A=v(n),x=!1,b=0,w=!1;function S(O,_){b-=1,O?(x=!0,p.push(O),h(p)):_==={}||x&&b<=0?(x=!0,h(p)):w||(d.isCancel()?h(p):C())}function T(O,_){c(O).then(function(M){_(null,M)}).catch(function(M){_(M)})}function C(){for(w=!0;b<i&&!x&&!d.isCancel();){var O=A();if(O===null||p.length>0){x=!0,b<=0&&h(p);return}b+=1,T(O.value,g(S))}w=!1}C()})},u.cancel=function(n){this.options.cancelFlag=!0,r(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(i){if(i.destroyed===!1){var c={name:"cancel",message:"cancel"};i.destroy(c)}}),this.multipartUploadStreams=[],n&&this.abortMultipartUpload(n.name,n.uploadId,n.options)},u.isCancel=function(){return this.options.cancelFlag},u.resetCancelFlag=function(){this.options.cancelFlag=!1},u._stop=function(){this.options.cancelFlag=!0},u._makeCancelEvent=function(){var n={status:0,name:"cancel"};return n},u._makeAbortEvent=function(){var n={status:0,name:"abort",message:"upload task has been abort"};return n}},{"./utils/isArray":61,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.iterator.js":247,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.string.iterator.js":264,"core-js/modules/web.dom-collections.for-each.js":296,"core-js/modules/web.dom-collections.iterator.js":297}],49:[function(o,m,f){(function(s){(function(){"use strict";o("core-js/modules/es.string.trim.js"),o("core-js/modules/es.array.sort.js"),o("core-js/modules/es.array.join.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.regexp.to-string.js");var t=o("./../../shims/crypto/crypto.js"),l=o("is-type-of"),a=o("./utils/lowercaseKeyHeader"),r=a.lowercaseKeyHeader;f.buildCanonicalizedResource=function(e,n){var i="".concat(e),c="?";if(l.string(n)&&n.trim()!=="")i+=c+n;else if(l.array(n))n.sort(),i+=c+n.join("&");else if(n){var d=function(g,v){return g[0]>v[0]?1:g[0]<v[0]?-1:0},h=function(g){i+=c+g,(n[g]||n[g]===0)&&(i+="=".concat(n[g])),c="&"};Object.keys(n).sort(d).forEach(h)}return i},f.buildCanonicalString=function(e,n,i,c){i=i||{};var d=r(i.headers),h="x-oss-",p=[],g={},v=[e.toUpperCase(),d["content-md5"]||"",d["content-type"],c||d["x-oss-date"]];return Object.keys(d).forEach(function(A){var x=A.toLowerCase();x.indexOf(h)===0&&(g[x]=String(d[A]).trim())}),Object.keys(g).sort().forEach(function(A){p.push("".concat(A,":").concat(g[A]))}),v=v.concat(p),v.push(this.buildCanonicalizedResource(n,i.parameters)),v.join(`
|
|
|
`)},f.computeSignature=function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",c=t.createHmac("sha1",e);return c.update(s.from(n,i)).digest("base64")},f.authorization=function(e,n,i,c){return"OSS ".concat(e,":").concat(this.computeSignature(n,i,c))},f._signatureForURL=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0,h={},p=n.subResource,g=p===void 0?{}:p;if(n.process){var v="x-oss-process";g[v]=n.process}if(n.trafficLimit){var A="x-oss-traffic-limit";g[A]=n.trafficLimit}if(n.response&&Object.keys(n.response).forEach(function(S){var T="response-".concat(S.toLowerCase());g[T]=n.response[S]}),Object.keys(n).forEach(function(S){var T=S.toLowerCase(),C=n[S];T.indexOf("x-oss-")===0?h[T]=C:(T.indexOf("content-md5")===0||T.indexOf("content-type")===0)&&(h[S]=C)}),Object.prototype.hasOwnProperty.call(n,"security-token")&&(g["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var x={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(x.callbackHost=n.callback.host),n.callback.contentType&&(x.callbackBodyType=n.callback.contentType),g.callback=s.from(JSON.stringify(x)).toString("base64"),n.callback.customValue){var b={};Object.keys(n.callback.customValue).forEach(function(S){b["x:".concat(S)]=n.callback.customValue[S]}),g["callback-var"]=s.from(JSON.stringify(b)).toString("base64")}}var w=this.buildCanonicalString(n.method,i,{headers:h,parameters:g},c.toString());return{Signature:this.computeSignature(e,w,d),subResource:g}}}).call(this)}).call(this,o("buffer").Buffer)},{"./../../shims/crypto/crypto.js":393,"./utils/lowercaseKeyHeader":68,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.sort.js":251,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.trim.js":269,"core-js/modules/web.dom-collections.for-each.js":296,"is-type-of":398}],50:[function(o,m,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.checkBucketName=void 0,f.checkBucketName=function(s){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!l.test(s))throw new Error("The bucket must be conform to the specifications")}},{}],51:[function(o,m,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.checkConfigValid=void 0;var s={endpoint:t,region:/^[a-zA-Z0-9\-_]+$/};function t(l){return typeof l=="string"?/^[a-zA-Z0-9._:/-]+$/.test(l):l.host?/^[a-zA-Z0-9._:/-]+$/.test(l.host):!1}f.checkConfigValid=function(l,a){if(s[a]){var r=!0;if(s[a]instanceof Function?r=s[a](l):r=s[a].test(l),!r)throw new Error("The ".concat(a," must be conform to the specifications"))}}},{}],52:[function(o,m,f){"use strict";o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.object.entries.js"),o("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.checkObjectTag=void 0;var s=o("./checkValid"),t=s.checkValid,l=o("./isObject"),a=l.isObject,r=[{validator:function(i){if(typeof i!="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 (/)"}],u={key:[].concat(r,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(r,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function e(n){if(!a(n))throw new Error("tag must be Object");var i=Object.entries(n);if(i.length>10)throw new Error("maximum of 10 tags for a object");var c=["key","value"];i.forEach(function(d){d.forEach(function(h,p){t(h,u[c[p]])})})}f.checkObjectTag=e},{"./checkValid":53,"./isObject":67,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.object.entries.js":256,"core-js/modules/web.dom-collections.for-each.js":296}],53:[function(o,m,f){"use strict";o("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.checkValid=void 0;function s(t,l){l.forEach(function(a){if(a.validator)a.validator(t);else if(a.pattern&&!a.pattern.test(t))throw new Error(a.msg)})}f.checkValid=s},{"core-js/modules/web.dom-collections.for-each.js":296}],54:[function(o,m,f){(function(s){(function(){"use strict";o("core-js/modules/es.array.includes.js"),o("core-js/modules/es.string.includes.js"),o("core-js/modules/es.object.assign.js"),o("core-js/modules/es.array.concat.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.createRequest=void 0;var t=o("./../../../shims/crypto/crypto.js"),l=o("debug")("ali-oss"),a=o("mime"),r=o("dateformat"),u=o("copy-to"),e=o("path"),n=o("./encoder"),i=n.encoder,c=o("./isIP"),d=c.isIP,h=o("./setRegion"),p=h.setRegion,g=o("../client/getReqUrl"),v=g.getReqUrl;function A(w,S){return w[S]||w[S.toLowerCase()]}function x(w,S){delete w[S],delete w[S.toLowerCase()]}function b(w){var S=new Date;this.options.amendTimeSkewed&&(S=+new Date+this.options.amendTimeSkewed);var T={"x-oss-date":r(S,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(T["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(T["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(T,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(T["x-oss-security-token"]=this.options.stsToken),u(w.headers).to(T),A(T,"Content-Type")||(w.mime&&w.mime.indexOf("/")>0?T["Content-Type"]=w.mime:T["Content-Type"]=a.getType(w.mime||e.extname(w.object||""))),A(T,"Content-Type")||x(T,"Content-Type"),w.content&&(w.disabledMD5||(T["Content-MD5"]=t.createHash("md5").update(s.from(w.content,"utf8")).digest("base64")),T["Content-Length"]||(T["Content-Length"]=w.content.length));var C=Object.prototype.hasOwnProperty;for(var O in T)T[O]&&C.call(T,O)&&(T[O]=i(String(T[O]),this.options.headerEncoding));var _=this._getResource(w);if(T.authorization=this.authorization(w.method,_,w.subres,T,this.options.headerEncoding),d(this.options.endpoint.hostname)){var M=this.options,k=M.region,R=M.internal,B=M.secure,P=p(k,R,B);T.host="".concat(w.bucket,".").concat(P.host)}var U=v.bind(this)(w);l("request %s %s, with headers %j, !!stream: %s",w.method,U,T,!!w.stream);var j=w.timeout||this.options.timeout,H={method:w.method,content:w.content,stream:w.stream,headers:T,timeout:j,writeStream:w.writeStream,customResponse:w.customResponse,ctx:w.ctx||this.ctx};return this.agent&&(H.agent=this.agent),this.httpsAgent&&(H.httpsAgent=this.httpsAgent),H.enableProxy=!!this.options.enableProxy,H.proxy=this.options.proxy?this.options.proxy:null,{url:U,params:H}}f.createRequest=b}).call(this)}).call(this,o("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":393,"./encoder":57,"./isIP":66,"./setRegion":71,buffer:85,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.string.includes.js":263,dateformat:299,debug:397,mime:317,path:321}],55:[function(o,m,f){"use strict";o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.entries.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.replace.js"),o("core-js/modules/es.array.includes.js"),o("core-js/modules/es.object.keys.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.dataFix=void 0;var s=o("./isObject"),t=["true","TRUE","1",1],l=["false","FALSE","0",0];function a(e,n,i){if(!s.isObject(e))return;var c=n.remove,d=c===void 0?[]:c,h=n.rename,p=h===void 0?{}:h,g=n.camel,v=g===void 0?[]:g,A=n.bool,x=A===void 0?[]:A,b=n.lowerFirst,w=b===void 0?!1:b;return d.forEach(function(S){return delete e[S]}),Object.entries(p).forEach(function(S){if(!e[S[0]])return;if(e[S[1]])return;e[S[1]]=e[S[0]],delete e[S[0]]}),v.forEach(function(S){if(!e[S])return;var T=S.replace(/^(.)/,function(C){return C.toLowerCase()}).replace(/-(\w)/g,function(C,O){return O.toUpperCase()});if(e[T])return;e[T]=e[S]}),x.forEach(function(S){e[S]=r(e[S])}),typeof i=="function"&&i(e),u(e,w),a}f.dataFix=a;function r(e){return e?t.includes(e)?!0:l.includes(e)?!1:e:!1}function u(e,n){n&&Object.keys(e).forEach(function(i){var c=i.replace(/^\w/,function(d){return d.toLowerCase()});typeof e[c]=="undefined"&&(e[c]=e[i],delete e[i])})}},{"./isObject":67,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.entries.js":256,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],56:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault");o("core-js/modules/es.array.slice.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js");var t=s(o("@babel/runtime/helpers/typeof"));Object.defineProperty(f,"__esModule",{value:!0}),f.deepCopyWith=f.deepCopy=void 0;var l=o("./isBuffer");f.deepCopy=function(a){if(a===null||(0,t.default)(a)!=="object")return a;if(l.isBuffer(a))return a.slice();var r=Array.isArray(a)?[]:{};return Object.keys(a).forEach(function(u){r[u]=f.deepCopy(a[u])}),r},f.deepCopyWith=function(a,r){function u(e,n,i){var c=r(e,n,i);if(c!==void 0)return c;if(e===null||(0,t.default)(e)!=="object")return e;if(l.isBuffer(e))return e.slice();var d=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(h){d[h]=u(e[h],h,e)}),d}return r?u(a,"",null):f.deepCopy(a)}},{"./isBuffer":63,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.keys.js":257,"core-js/modules/web.dom-collections.for-each.js":296}],57:[function(o,m,f){(function(s){(function(){"use strict";o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.encoder=void 0;function t(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return a==="utf-8"?l:s.from(l).toString("latin1")}f.encoder=t}).call(this)}).call(this,o("buffer").Buffer)},{buffer:85,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262}],58:[function(o,m,f){"use strict";o("core-js/modules/es.array.map.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.replace.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.formatInventoryConfig=void 0;var s=o("../utils/dataFix"),t=o("../utils/isObject"),l=o("../utils/isArray"),a=o("../utils/formatObjKey");function r(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return n&&t.isObject(e)&&(e=[e]),l.isArray(e)?e=e.map(u):e=u(e),e}f.formatInventoryConfig=r;function u(e){return s.dataFix(e,{bool:["IsEnabled"]},function(n){var i,c;n.prefix=n.Filter.Prefix,delete n.Filter,n.OSSBucketDestination=n.Destination.OSSBucketDestination,n.OSSBucketDestination.rolename=n.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete n.OSSBucketDestination.RoleArn,n.OSSBucketDestination.bucket=n.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete n.OSSBucketDestination.Bucket,delete n.Destination,n.frequency=n.Schedule.Frequency,delete n.Schedule.Frequency,((i=n==null?void 0:n.OptionalFields)===null||i===void 0?void 0:i.Field)&&!l.isArray((c=n.OptionalFields)===null||c===void 0?void 0:c.Field)&&(n.OptionalFields.Field=[n.OptionalFields.Field])}),e=a.formatObjKey(e,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),e}},{"../utils/dataFix":55,"../utils/formatObjKey":59,"../utils/isArray":61,"../utils/isObject":67,"core-js/modules/es.array.map.js":249,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266}],59:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault");o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.array.includes.js"),o("core-js/modules/es.string.includes.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.replace.js");var t=s(o("@babel/runtime/helpers/typeof"));Object.defineProperty(f,"__esModule",{value:!0}),f.formatObjKey=void 0;function l(r,u,e){if(r===null||(0,t.default)(r)!=="object")return r;var n;if(Array.isArray(r)){n=[];for(var i=0;i<r.length;i++)n.push(l(r[i],u,e))}else n={},Object.keys(r).forEach(function(c){n[a(c,u,e)]=l(r[c],u,e)});return n}f.formatObjKey=l;function a(r,u,e){var n;return e&&((n=e.exclude)===null||n===void 0?void 0:n.includes(r))||(u==="firstUpperCase"?r=r.replace(/^./,function(i){return i.toUpperCase()}):u==="firstLowerCase"&&(r=r.replace(/^./,function(i){return i.toLowerCase()}))),r}},{"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.includes.js":263,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],60:[function(o,m,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getStrBytesCount=void 0;function s(t){for(var l=0,a=0;a<t.length;a++){var r=t.charAt(a);/^[\u00-\uff]$/.test(r)?l+=1:l+=2}return l}f.getStrBytesCount=s},{}],61:[function(o,m,f){"use strict";o("core-js/modules/es.object.to-string.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.isArray=void 0,f.isArray=function(s){return Object.prototype.toString.call(s)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":258}],62:[function(o,m,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isBlob=void 0;function s(t){return typeof Blob!="undefined"&&t instanceof Blob}f.isBlob=s},{}],63:[function(o,m,f){(function(s){(function(){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isBuffer=void 0;function t(l){return s.isBuffer(l)}f.isBuffer=t}).call(this)}).call(this,{isBuffer:o("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":312}],64:[function(o,m,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isFile=void 0,f.isFile=function(s){return typeof File!="undefined"&&s instanceof File}},{}],65:[function(o,m,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isFunction=void 0,f.isFunction=function(s){return typeof s=="function"}},{}],66:[function(o,m,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.isIP=void 0,f.isIP=function(s){var t=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,l=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return t.test(s)||l.test(s)}},{}],67:[function(o,m,f){"use strict";o("core-js/modules/es.object.to-string.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.isObject=void 0,f.isObject=function(s){return Object.prototype.toString.call(s)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":258}],68:[function(o,m,f){"use strict";o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.lowercaseKeyHeader=void 0;var s=o("./isObject");function t(l){var a={};return s.isObject(l)&&Object.keys(l).forEach(function(r){a[r.toLowerCase()]=l[r]}),a}f.lowercaseKeyHeader=t},{"./isObject":67,"core-js/modules/es.object.keys.js":257,"core-js/modules/web.dom-collections.for-each.js":296}],69:[function(o,m,f){"use strict";o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.replace.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.array.join.js"),o("core-js/modules/es.array.map.js"),o("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.obj2xml=void 0;var s=o("./formatObjKey");function t(a){return Object.prototype.toString.call(a).replace(/(.*? |])/g,"").toLowerCase()}function l(a,r){var u="";return r&&r.headers&&(u=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),r&&r.firstUpperCase&&(a=s.formatObjKey(a,"firstUpperCase")),t(a)==="object"?Object.keys(a).forEach(function(e){t(a[e])!=="undefined"&&t(a[e])!=="null"&&(t(a[e])==="string"||t(a[e])==="number"?u+="<".concat(e,">").concat(a[e],"</").concat(e,">"):t(a[e])==="object"?u+="<".concat(e,">").concat(l(a[e]),"</").concat(e,">"):t(a[e])==="array"?u+=a[e].map(function(n){return"<".concat(e,">").concat(l(n),"</").concat(e,">")}).join(""):u+="<".concat(e,">").concat(a[e].toString(),"</").concat(e,">"))}):u+=a.toString(),u}f.obj2xml=l},{"./formatObjKey":59,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.map.js":249,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],70:[function(o,m,f){"use strict";o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.promise.js"),Object.defineProperty(f,"__esModule",{value:!0}),f.retry=void 0;function s(t,l){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,u=a.retryDelay,e=u===void 0?500:u,n=a.errorHandler,i=n===void 0?function(){return!0}:n,c=function d(){for(var h=arguments.length,p=new Array(h),g=0;g<h;g++)p[g]=arguments[g];return new Promise(function(v,A){t.apply(void 0,p).then(function(x){r=0,v(x)}).catch(function(x){r<l&&i(x)?(r++,setTimeout(function(){v(d.apply(void 0,p))},e)):(r=0,A(x))})})};return c}f.retry=s},{"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259}],71:[function(o,m,f){"use strict";var s=function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(f,"__esModule",{value:!0}),f.setRegion=void 0;var t=s(o("url")),l=o("./checkConfigValid");function a(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;l.checkConfigValid(r,"region");var n=e?"https://":"http://",i=u?"-internal.aliyuncs.com":".aliyuncs.com",c="vpc100-oss-cn-";return r.substr(0,c.length)===c&&(i=".aliyuncs.com"),t.default.parse(n+r+i)}f.setRegion=a},{"./checkConfigValid":51,url:404}],72:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/regenerator"));o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.array.find.js"),o("core-js/modules/es.object.assign.js");var l=s(o("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(f,"__esModule",{value:!0}),f.checkCredentials=f.setSTSToken=void 0;var a=o("./formatObjKey");function r(){return u.apply(this,arguments)}function u(){return u=(0,l.default)(t.default.mark(function n(){var i,c;return t.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(this.options||(this.options={}),i=new Date,!this.stsTokenFreshTime){h.next=14;break}if(!(+i-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){h.next=12;break}return this.stsTokenFreshTime=i,h.next=7,this.options.refreshSTSToken();case 7:c=h.sent,c=a.formatObjKey(c,"firstLowerCase"),c.securityToken&&(c.stsToken=c.securityToken),e(c),Object.assign(this.options,c);case 12:h.next=15;break;case 14:this.stsTokenFreshTime=i;case 15:return h.abrupt("return",null);case 16:case"end":return h.stop()}},n,this)})),u.apply(this,arguments)}f.setSTSToken=r;function e(n){var i=["accessKeySecret","accessKeyId","stsToken"],c=Object.keys(n);i.forEach(function(d){if(!c.find(function(h){return h===d}))throw Error("refreshSTSToken must return contains ".concat(d))})}f.checkCredentials=e},{"./formatObjKey":59,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.find.js":244,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257}],73:[function(o,m,f){function s(l,a,r,u,e,n,i){try{var c=l[n](i),d=c.value}catch(h){r(h);return}c.done?a(d):Promise.resolve(d).then(u,e)}function t(l){return function(){var a=this,r=arguments;return new Promise(function(u,e){var n=l.apply(a,r);function i(d){s(n,u,e,i,c,"next",d)}function c(d){s(n,u,e,i,c,"throw",d)}i(void 0)})}}m.exports=t,m.exports.default=m.exports,m.exports.__esModule=!0},{}],74:[function(o,m,f){function s(t){return t&&t.__esModule?t:{default:t}}m.exports=s,m.exports.default=m.exports,m.exports.__esModule=!0},{}],75:[function(o,m,f){function s(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(m.exports=s=function(a){return typeof a},m.exports.default=m.exports,m.exports.__esModule=!0):(m.exports=s=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},m.exports.default=m.exports,m.exports.__esModule=!0),s(t)}m.exports=s,m.exports.default=m.exports,m.exports.__esModule=!0},{}],76:[function(o,m,f){m.exports=o("regenerator-runtime")},{"regenerator-runtime":342}],77:[function(o,m,f){m.exports=s,m.exports.HttpsAgent=s;function s(){}},{}],78:[function(o,m,f){(function(s){(function(){"use strict";var t=o("object-assign");/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/function l(B,P){if(B===P)return 0;for(var U=B.length,j=P.length,H=0,W=Math.min(U,j);H<W;++H)if(B[H]!==P[H]){U=B[H],j=P[H];break}return U<j?-1:j<U?1:0}function a(B){return s.Buffer&&typeof s.Buffer.isBuffer=="function"?s.Buffer.isBuffer(B):!!(B!=null&&B._isBuffer)}var r=o("util/"),u=Object.prototype.hasOwnProperty,e=Array.prototype.slice,n=function(){return function(){}.name==="foo"}();function i(B){return Object.prototype.toString.call(B)}function c(B){return a(B)||typeof s.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(B):B?B instanceof DataView?!0:!!(B.buffer&&B.buffer instanceof ArrayBuffer):!1}var d=m.exports=b,h=/\s*function\s+([^\(\s]*)\s*/;function p(B){if(!r.isFunction(B))return;if(n)return B.name;var P=B.toString(),U=P.match(h);return U&&U[1]}d.AssertionError=function(P){this.name="AssertionError",this.actual=P.actual,this.expected=P.expected,this.operator=P.operator,P.message?(this.message=P.message,this.generatedMessage=!1):(this.message=A(this),this.generatedMessage=!0);var U=P.stackStartFunction||x;if(Error.captureStackTrace)Error.captureStackTrace(this,U);else{var j=new Error;if(j.stack){var H=j.stack,W=p(U),G=H.indexOf(`
|
|
|
`+W);if(G>=0){var V=H.indexOf(`
|
|
|
`,G+1);H=H.substring(V+1)}this.stack=H}}},r.inherits(d.AssertionError,Error);function g(B,P){return typeof B=="string"?B.length<P?B:B.slice(0,P):B}function v(B){if(n||!r.isFunction(B))return r.inspect(B);var P=p(B),U=P?": "+P:"";return"[Function"+U+"]"}function A(B){return g(v(B.actual),128)+" "+B.operator+" "+g(v(B.expected),128)}function x(B,P,U,j,H){throw new d.AssertionError({message:U,actual:B,expected:P,operator:j,stackStartFunction:H})}d.fail=x;function b(B,P){B||x(B,!0,P,"==",d.ok)}d.ok=b,d.equal=function(P,U,j){P!=U&&x(P,U,j,"==",d.equal)},d.notEqual=function(P,U,j){P==U&&x(P,U,j,"!=",d.notEqual)},d.deepEqual=function(P,U,j){w(P,U,!1)||x(P,U,j,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(P,U,j){w(P,U,!0)||x(P,U,j,"deepStrictEqual",d.deepStrictEqual)};function w(B,P,U,j){if(B===P)return!0;if(a(B)&&a(P))return l(B,P)===0;if(r.isDate(B)&&r.isDate(P))return B.getTime()===P.getTime();if(r.isRegExp(B)&&r.isRegExp(P))return B.source===P.source&&B.global===P.global&&B.multiline===P.multiline&&B.lastIndex===P.lastIndex&&B.ignoreCase===P.ignoreCase;if((B===null||typeof B!="object")&&(P===null||typeof P!="object"))return U?B===P:B==P;if(c(B)&&c(P)&&i(B)===i(P)&&!(B instanceof Float32Array||B instanceof Float64Array))return l(new Uint8Array(B.buffer),new Uint8Array(P.buffer))===0;if(a(B)!==a(P))return!1;j=j||{actual:[],expected:[]};var H=j.actual.indexOf(B);return H!==-1&&H===j.expected.indexOf(P)?!0:(j.actual.push(B),j.expected.push(P),T(B,P,U,j))}function S(B){return Object.prototype.toString.call(B)=="[object Arguments]"}function T(B,P,U,j){if(B==null||P===null||P===void 0)return!1;if(r.isPrimitive(B)||r.isPrimitive(P))return B===P;if(U&&Object.getPrototypeOf(B)!==Object.getPrototypeOf(P))return!1;var H=S(B),W=S(P);if(H&&!W||!H&&W)return!1;if(H)return B=e.call(B),P=e.call(P),w(B,P,U);var G=R(B),V=R(P),Z,Y;if(G.length!==V.length)return!1;for(G.sort(),V.sort(),Y=G.length-1;Y>=0;Y--)if(G[Y]!==V[Y])return!1;for(Y=G.length-1;Y>=0;Y--)if(Z=G[Y],!w(B[Z],P[Z],U,j))return!1;return!0}d.notDeepEqual=function(P,U,j){w(P,U,!1)&&x(P,U,j,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=C;function C(B,P,U){w(B,P,!0)&&x(B,P,U,"notDeepStrictEqual",C)}d.strictEqual=function(P,U,j){P!==U&&x(P,U,j,"===",d.strictEqual)},d.notStrictEqual=function(P,U,j){P===U&&x(P,U,j,"!==",d.notStrictEqual)};function O(B,P){if(!B||!P)return!1;if(Object.prototype.toString.call(P)=="[object RegExp]")return P.test(B);try{if(B instanceof P)return!0}catch(U){}return Error.isPrototypeOf(P)?!1:P.call({},B)===!0}function _(B){var P;try{B()}catch(U){P=U}return P}function M(B,P,U,j){var H;if(typeof P!="function")throw new TypeError('"block" argument must be a function');typeof U=="string"&&(j=U,U=null),H=_(P),j=(U&&U.name?" ("+U.name+").":".")+(j?" "+j:"."),B&&!H&&x(H,U,"Missing expected exception"+j);var W=typeof j=="string",G=!B&&r.isError(H),V=!B&&H&&!U;if((G&&W&&O(H,U)||V)&&x(H,U,"Got unwanted exception"+j),B&&H&&U&&!O(H,U)||!B&&H)throw H}d.throws=function(B,P,U){M(!0,B,P,U)},d.doesNotThrow=function(B,P,U){M(!1,B,P,U)},d.ifError=function(B){if(B)throw B};function k(B,P){B||x(B,!0,P,"==",k)}d.strict=t(k,d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var R=Object.keys||function(B){var P=[];for(var U in B)u.call(B,U)&&P.push(U);return P}}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":320,"util/":81}],79:[function(o,m,f){typeof Object.create=="function"?m.exports=function(t,l){t.super_=l,t.prototype=Object.create(l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:m.exports=function(t,l){t.super_=l;var a=function(){};a.prototype=l.prototype,t.prototype=new a,t.prototype.constructor=t}},{}],80:[function(o,m,f){m.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}},{}],81:[function(o,m,f){(function(s,t){(function(){var l=/%[sdj%]/g;f.format=function(V){if(!T(V)){for(var Z=[],Y=0;Y<arguments.length;Y++)Z.push(u(arguments[Y]));return Z.join(" ")}for(var Y=1,Q=arguments,oe=Q.length,ue=String(V).replace(l,function(me){if(me==="%%")return"%";if(Y>=oe)return me;switch(me){case"%s":return String(Q[Y++]);case"%d":return Number(Q[Y++]);case"%j":try{return JSON.stringify(Q[Y++])}catch(Ie){return"[Circular]"}default:return me}}),Le=Q[Y];Y<oe;Le=Q[++Y])b(Le)||!M(Le)?ue+=" "+Le:ue+=" "+u(Le);return ue},f.deprecate=function(V,Z){if(O(t.process))return function(){return f.deprecate(V,Z).apply(this,arguments)};if(s.noDeprecation===!0)return V;var Y=!1;function Q(){if(!Y){if(s.throwDeprecation)throw new Error(Z);s.traceDeprecation?console.trace(Z):console.error(Z),Y=!0}return V.apply(this,arguments)}return Q};var a={},r;f.debuglog=function(V){if(O(r)&&(r=s.env.NODE_DEBUG||""),V=V.toUpperCase(),!a[V])if(new RegExp("\\b"+V+"\\b","i").test(r)){var Z=s.pid;a[V]=function(){var Y=f.format.apply(f,arguments);console.error("%s %d: %s",V,Z,Y)}}else a[V]=function(){};return a[V]};function u(V,Z){var Y={seen:[],stylize:n};return arguments.length>=3&&(Y.depth=arguments[2]),arguments.length>=4&&(Y.colors=arguments[3]),x(Z)?Y.showHidden=Z:Z&&f._extend(Y,Z),O(Y.showHidden)&&(Y.showHidden=!1),O(Y.depth)&&(Y.depth=2),O(Y.colors)&&(Y.colors=!1),O(Y.customInspect)&&(Y.customInspect=!0),Y.colors&&(Y.stylize=e),c(Y,V,Y.depth)}f.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function e(V,Z){var Y=u.styles[Z];return Y?"["+u.colors[Y][0]+"m"+V+"["+u.colors[Y][1]+"m":V}function n(V,Z){return V}function i(V){var Z={};return V.forEach(function(Y,Q){Z[Y]=!0}),Z}function c(V,Z,Y){if(V.customInspect&&Z&&B(Z.inspect)&&Z.inspect!==f.inspect&&!(Z.constructor&&Z.constructor.prototype===Z)){var Q=Z.inspect(Y,V);return T(Q)||(Q=c(V,Q,Y)),Q}var oe=d(V,Z);if(oe)return oe;var ue=Object.keys(Z),Le=i(ue);if(V.showHidden&&(ue=Object.getOwnPropertyNames(Z)),R(Z)&&(ue.indexOf("message")>=0||ue.indexOf("description")>=0))return h(Z);if(ue.length===0){if(B(Z)){var me=Z.name?": "+Z.name:"";return V.stylize("[Function"+me+"]","special")}if(_(Z))return V.stylize(RegExp.prototype.toString.call(Z),"regexp");if(k(Z))return V.stylize(Date.prototype.toString.call(Z),"date");if(R(Z))return h(Z)}var Ie="",X=!1,q=["{","}"];if(A(Z)&&(X=!0,q=["[","]"]),B(Z)){var We=Z.name?": "+Z.name:"";Ie=" [Function"+We+"]"}if(_(Z)&&(Ie=" "+RegExp.prototype.toString.call(Z)),k(Z)&&(Ie=" "+Date.prototype.toUTCString.call(Z)),R(Z)&&(Ie=" "+h(Z)),ue.length===0&&(!X||Z.length==0))return q[0]+Ie+q[1];if(Y<0)return _(Z)?V.stylize(RegExp.prototype.toString.call(Z),"regexp"):V.stylize("[Object]","special");V.seen.push(Z);var $;return X?$=p(V,Z,Y,Le,ue):$=ue.map(function(J){return g(V,Z,Y,Le,J,X)}),V.seen.pop(),v($,Ie,q)}function d(V,Z){if(O(Z))return V.stylize("undefined","undefined");if(T(Z)){var Y="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return V.stylize(Y,"string")}if(S(Z))return V.stylize(""+Z,"number");if(x(Z))return V.stylize(""+Z,"boolean");if(b(Z))return V.stylize("null","null")}function h(V){return"["+Error.prototype.toString.call(V)+"]"}function p(V,Z,Y,Q,oe){for(var ue=[],Le=0,me=Z.length;Le<me;++Le)G(Z,String(Le))?ue.push(g(V,Z,Y,Q,String(Le),!0)):ue.push("");return oe.forEach(function(Ie){Ie.match(/^\d+$/)||ue.push(g(V,Z,Y,Q,Ie,!0))}),ue}function g(V,Z,Y,Q,oe,ue){var Le,me,Ie;if(Ie=Object.getOwnPropertyDescriptor(Z,oe)||{value:Z[oe]},Ie.get?Ie.set?me=V.stylize("[Getter/Setter]","special"):me=V.stylize("[Getter]","special"):Ie.set&&(me=V.stylize("[Setter]","special")),G(Q,oe)||(Le="["+oe+"]"),me||(V.seen.indexOf(Ie.value)<0?(b(Y)?me=c(V,Ie.value,null):me=c(V,Ie.value,Y-1),me.indexOf(`
|
|
|
`)>-1&&(ue?me=me.split(`
|
|
|
`).map(function(X){return" "+X}).join(`
|
|
|
`).substr(2):me=`
|
|
|
`+me.split(`
|
|
|
`).map(function(X){return" "+X}).join(`
|
|
|
`))):me=V.stylize("[Circular]","special")),O(Le)){if(ue&&oe.match(/^\d+$/))return me;Le=JSON.stringify(""+oe),Le.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Le=Le.substr(1,Le.length-2),Le=V.stylize(Le,"name")):(Le=Le.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Le=V.stylize(Le,"string"))}return Le+": "+me}function v(V,Z,Y){var Q=0,oe=V.reduce(function(ue,Le){return Q++,Le.indexOf(`
|
|
|
`)>=0&&Q++,ue+Le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return oe>60?Y[0]+(Z===""?"":Z+`
|
|
|
`)+" "+V.join(`,
|
|
|
`)+" "+Y[1]:Y[0]+Z+" "+V.join(", ")+" "+Y[1]}function A(V){return Array.isArray(V)}f.isArray=A;function x(V){return typeof V=="boolean"}f.isBoolean=x;function b(V){return V===null}f.isNull=b;function w(V){return V==null}f.isNullOrUndefined=w;function S(V){return typeof V=="number"}f.isNumber=S;function T(V){return typeof V=="string"}f.isString=T;function C(V){return typeof V=="symbol"}f.isSymbol=C;function O(V){return V===void 0}f.isUndefined=O;function _(V){return M(V)&&U(V)==="[object RegExp]"}f.isRegExp=_;function M(V){return typeof V=="object"&&V!==null}f.isObject=M;function k(V){return M(V)&&U(V)==="[object Date]"}f.isDate=k;function R(V){return M(V)&&(U(V)==="[object Error]"||V instanceof Error)}f.isError=R;function B(V){return typeof V=="function"}f.isFunction=B;function P(V){return V===null||typeof V=="boolean"||typeof V=="number"||typeof V=="string"||typeof V=="symbol"||typeof V=="undefined"}f.isPrimitive=P,f.isBuffer=o("./support/isBuffer");function U(V){return Object.prototype.toString.call(V)}function j(V){return V<10?"0"+V.toString(10):V.toString(10)}var H=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function W(){var V=new Date,Z=[j(V.getHours()),j(V.getMinutes()),j(V.getSeconds())].join(":");return[V.getDate(),H[V.getMonth()],Z].join(" ")}f.log=function(){console.log("%s - %s",W(),f.format.apply(f,arguments))},f.inherits=o("inherits"),f._extend=function(V,Z){if(!Z||!M(Z))return V;for(var Y=Object.keys(Z),Q=Y.length;Q--;)V[Y[Q]]=Z[Y[Q]];return V};function G(V,Z){return Object.prototype.hasOwnProperty.call(V,Z)}}).call(this)}).call(this,o("_process"),typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":80,_process:399,inherits:79}],82:[function(o,m,f){"use strict";f.byteLength=n,f.toByteArray=c,f.fromByteArray=p;for(var s=[],t=[],l=typeof Uint8Array!="undefined"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,u=a.length;r<u;++r)s[r]=a[r],t[a.charCodeAt(r)]=r;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function e(g){var v=g.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=g.indexOf("=");A===-1&&(A=v);var x=A===v?0:4-A%4;return[A,x]}function n(g){var v=e(g),A=v[0],x=v[1];return(A+x)*3/4-x}function i(g,v,A){return(v+A)*3/4-A}function c(g){var v,A=e(g),x=A[0],b=A[1],w=new l(i(g,x,b)),S=0,T=b>0?x-4:x,C;for(C=0;C<T;C+=4)v=t[g.charCodeAt(C)]<<18|t[g.charCodeAt(C+1)]<<12|t[g.charCodeAt(C+2)]<<6|t[g.charCodeAt(C+3)],w[S++]=v>>16&255,w[S++]=v>>8&255,w[S++]=v&255;return b===2&&(v=t[g.charCodeAt(C)]<<2|t[g.charCodeAt(C+1)]>>4,w[S++]=v&255),b===1&&(v=t[g.charCodeAt(C)]<<10|t[g.charCodeAt(C+1)]<<4|t[g.charCodeAt(C+2)]>>2,w[S++]=v>>8&255,w[S++]=v&255),w}function d(g){return s[g>>18&63]+s[g>>12&63]+s[g>>6&63]+s[g&63]}function h(g,v,A){for(var x,b=[],w=v;w<A;w+=3)x=(g[w]<<16&16711680)+(g[w+1]<<8&65280)+(g[w+2]&255),b.push(d(x));return b.join("")}function p(g){for(var v,A=g.length,x=A%3,b=[],w=16383,S=0,T=A-x;S<T;S+=w)b.push(h(g,S,S+w>T?T:S+w));return x===1?(v=g[A-1],b.push(s[v>>2]+s[v<<4&63]+"==")):x===2&&(v=(g[A-2]<<8)+g[A-1],b.push(s[v>>10]+s[v>>4&63]+s[v<<2&63]+"=")),b.join("")}},{}],83:[function(o,m,f){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(s,t,l){typeof m!="undefined"&&m.exports?m.exports=l():typeof L=="function"&&L.amd?L(t,l):s[t]=l()}(this,"bowser",function(){var s=!0;function t(i){function c(Z){var Y=i.match(Z);return Y&&Y.length>1&&Y[1]||""}function d(Z){var Y=i.match(Z);return Y&&Y.length>1&&Y[2]||""}var h=c(/(ipod|iphone|ipad)/i).toLowerCase(),p=/like android/i.test(i),g=!p&&/android/i.test(i),v=/nexus\s*[0-6]\s*/i.test(i),A=!v&&/nexus\s*[0-9]+/i.test(i),x=/CrOS/.test(i),b=/silk/i.test(i),w=/sailfish/i.test(i),S=/tizen/i.test(i),T=/(web|hpw)(o|0)s/i.test(i),C=/windows phone/i.test(i),O=/SamsungBrowser/i.test(i),_=!C&&/windows/i.test(i),M=!h&&!b&&/macintosh/i.test(i),k=!g&&!w&&!S&&!T&&/linux/i.test(i),R=d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),B=c(/version\/(\d+(\.\d+)?)/i),P=/tablet/i.test(i)&&!/tablet pc/i.test(i),U=!P&&/[^-]mobi/i.test(i),j=/xbox/i.test(i),H;/opera/i.test(i)?H={name:"Opera",opera:s,version:B||c(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(i)?H={name:"Opera",opera:s,version:c(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||B}:/SamsungBrowser/i.test(i)?H={name:"Samsung Internet for Android",samsungBrowser:s,version:B||c(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(i)?H={name:"NAVER Whale browser",whale:s,version:c(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(i)?H={name:"MZ Browser",mzbrowser:s,version:c(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(i)?H={name:"Opera Coast",coast:s,version:B||c(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(i)?H={name:"Focus",focus:s,version:c(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(i)?H={name:"Yandex Browser",yandexbrowser:s,version:B||c(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(i)?H={name:"UC Browser",ucbrowser:s,version:c(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(i)?H={name:"Maxthon",maxthon:s,version:c(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(i)?H={name:"Epiphany",epiphany:s,version:c(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(i)?H={name:"Puffin",puffin:s,version:c(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(i)?H={name:"Sleipnir",sleipnir:s,version:c(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(i)?H={name:"K-Meleon",kMeleon:s,version:c(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:C?(H={name:"Windows Phone",osname:"Windows Phone",windowsphone:s},R?(H.msedge=s,H.version=R):(H.msie=s,H.version=c(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(i)?H={name:"Internet Explorer",msie:s,version:c(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:x?H={name:"Chrome",osname:"Chrome OS",chromeos:s,chromeBook:s,chrome:s,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(i)?H={name:"Microsoft Edge",msedge:s,version:R}:/vivaldi/i.test(i)?H={name:"Vivaldi",vivaldi:s,version:c(/vivaldi\/(\d+(\.\d+)?)/i)||B}:w?H={name:"Sailfish",osname:"Sailfish OS",sailfish:s,version:c(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(i)?H={name:"SeaMonkey",seamonkey:s,version:c(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(i)?(H={name:"Firefox",firefox:s,version:c(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(i)&&(H.firefoxos=s,H.osname="Firefox OS")):b?H={name:"Amazon Silk",silk:s,version:c(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(i)?H={name:"PhantomJS",phantom:s,version:c(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(i)?H={name:"SlimerJS",slimer:s,version:c(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(i)||/rim\stablet/i.test(i)?H={name:"BlackBerry",osname:"BlackBerry OS",blackberry:s,version:B||c(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:T?(H={name:"WebOS",osname:"WebOS",webos:s,version:B||c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(i)&&(H.touchpad=s)):/bada/i.test(i)?H={name:"Bada",osname:"Bada",bada:s,version:c(/dolfin\/(\d+(\.\d+)?)/i)}:S?H={name:"Tizen",osname:"Tizen",tizen:s,version:c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||B}:/qupzilla/i.test(i)?H={name:"QupZilla",qupzilla:s,version:c(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||B}:/chromium/i.test(i)?H={name:"Chromium",chromium:s,version:c(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||B}:/chrome|crios|crmo/i.test(i)?H={name:"Chrome",chrome:s,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:g?H={name:"Android",version:B}:/safari|applewebkit/i.test(i)?(H={name:"Safari",safari:s},B&&(H.version=B)):h?(H={name:h=="iphone"?"iPhone":h=="ipad"?"iPad":"iPod"},B&&(H.version=B)):/googlebot/i.test(i)?H={name:"Googlebot",googlebot:s,version:c(/googlebot\/(\d+(\.\d+))/i)||B}:H={name:c(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!H.msedge&&/(apple)?webkit/i.test(i)?(/(apple)?webkit\/537\.36/i.test(i)?(H.name=H.name||"Blink",H.blink=s):(H.name=H.name||"Webkit",H.webkit=s),!H.version&&B&&(H.version=B)):!H.opera&&/gecko\//i.test(i)&&(H.name=H.name||"Gecko",H.gecko=s,H.version=H.version||c(/gecko\/(\d+(\.\d+)?)/i)),!H.windowsphone&&(g||H.silk)?(H.android=s,H.osname="Android"):!H.windowsphone&&h?(H[h]=s,H.ios=s,H.osname="iOS"):M?(H.mac=s,H.osname="macOS"):j?(H.xbox=s,H.osname="Xbox"):_?(H.windows=s,H.osname="Windows"):k&&(H.linux=s,H.osname="Linux");function W(Z){switch(Z){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 G="";H.windows?G=W(c(/Windows ((NT|XP)( \d\d?.\d)?)/i)):H.windowsphone?G=c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):H.mac?(G=c(/Mac OS X (\d+([_\.\s]\d+)*)/i),G=G.replace(/[_\s]/g,".")):h?(G=c(/os (\d+([_\s]\d+)*) like mac os x/i),G=G.replace(/[_\s]/g,".")):g?G=c(/android[ \/-](\d+(\.\d+)*)/i):H.webos?G=c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):H.blackberry?G=c(/rim\stablet\sos\s(\d+(\.\d+)*)/i):H.bada?G=c(/bada\/(\d+(\.\d+)*)/i):H.tizen&&(G=c(/tizen[\/\s](\d+(\.\d+)*)/i)),G&&(H.osversion=G);var V=!H.windows&&G.split(".")[0];return P||A||h=="ipad"||g&&(V==3||V>=4&&!U)||H.silk?H.tablet=s:(U||h=="iphone"||h=="ipod"||g||v||H.blackberry||H.webos||H.bada)&&(H.mobile=s),H.msedge||H.msie&&H.version>=10||H.yandexbrowser&&H.version>=15||H.vivaldi&&H.version>=1||H.chrome&&H.version>=20||H.samsungBrowser&&H.version>=4||H.whale&&u([H.version,"1.0"])===1||H.mzbrowser&&u([H.version,"6.0"])===1||H.focus&&u([H.version,"1.0"])===1||H.firefox&&H.version>=20||H.safari&&H.version>=6||H.opera&&H.version>=10||H.ios&&H.osversion&&H.osversion.split(".")[0]>=6||H.blackberry&&H.version>=10.1||H.chromium&&H.version>=20?H.a=s:H.msie&&H.version<10||H.chrome&&H.version<20||H.firefox&&H.version<20||H.safari&&H.version<6||H.opera&&H.version<10||H.ios&&H.osversion&&H.osversion.split(".")[0]<6||H.chromium&&H.version<20?H.c=s:H.x=s,H}var l=t(typeof navigator!="undefined"&&navigator.userAgent||"");l.test=function(i){for(var c=0;c<i.length;++c){var d=i[c];if(typeof d=="string"&&d in l)return!0}return!1};function a(i){return i.split(".").length}function r(i,c){var d=[],h;if(Array.prototype.map)return Array.prototype.map.call(i,c);for(h=0;h<i.length;h++)d.push(c(i[h]));return d}function u(i){for(var c=Math.max(a(i[0]),a(i[1])),d=r(i,function(h){var p=c-a(h);return h=h+new Array(p+1).join(".0"),r(h.split("."),function(g){return new Array(20-g.length).join("0")+g}).reverse()});--c>=0;){if(d[0][c]>d[1][c])return 1;if(d[0][c]===d[1][c]){if(c===0)return 0}else return-1}}function e(i,c,d){var h=l;typeof c=="string"&&(d=c,c=void 0),c===void 0&&(c=!1),d&&(h=t(d));var p=""+h.version;for(var g in i)if(i.hasOwnProperty(g)&&h[g]){if(typeof i[g]!="string")throw new Error("Browser version in the minVersion map should be a string: "+g+": "+String(i));return u([p,i[g]])<0}return c}function n(i,c,d){return!e(i,c,d)}return l.isUnsupportedBrowser=e,l.compareVersions=u,l.check=n,l._detect=t,l.detect=t,l})},{}],84:[function(o,m,f){},{}],85:[function(o,m,f){(function(s,t){(function(){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var l=o("base64-js"),a=o("ieee754"),r=o("isarray");f.Buffer=i,f.SlowBuffer=w,f.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=s.TYPED_ARRAY_SUPPORT!==void 0?s.TYPED_ARRAY_SUPPORT:u(),f.kMaxLength=e();function u(){try{var ne=new Uint8Array(1);return ne.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ne.foo()===42&&typeof ne.subarray=="function"&&ne.subarray(1,1).byteLength===0}catch(ee){return!1}}function e(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function n(ne,ee){if(e()<ee)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(ne=new Uint8Array(ee),ne.__proto__=i.prototype):(ne===null&&(ne=new i(ee)),ne.length=ee),ne}function i(ne,ee,Ae){if(!i.TYPED_ARRAY_SUPPORT&&!(this instanceof i))return new i(ne,ee,Ae);if(typeof ne=="number"){if(typeof ee=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,ne)}return c(this,ne,ee,Ae)}i.poolSize=8192,i._augment=function(ne){return ne.__proto__=i.prototype,ne};function c(ne,ee,Ae,Ve){if(typeof ee=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&ee instanceof ArrayBuffer?A(ne,ee,Ae,Ve):typeof ee=="string"?g(ne,ee,Ae):x(ne,ee)}i.from=function(ne,ee,Ae){return c(null,ne,ee,Ae)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0}));function d(ne){if(typeof ne!="number")throw new TypeError('"size" argument must be a number');if(ne<0)throw new RangeError('"size" argument must not be negative')}function h(ne,ee,Ae,Ve){return d(ee),ee<=0?n(ne,ee):Ae!==void 0?typeof Ve=="string"?n(ne,ee).fill(Ae,Ve):n(ne,ee).fill(Ae):n(ne,ee)}i.alloc=function(ne,ee,Ae){return h(null,ne,ee,Ae)};function p(ne,ee){if(d(ee),ne=n(ne,ee<0?0:b(ee)|0),!i.TYPED_ARRAY_SUPPORT)for(var Ae=0;Ae<ee;++Ae)ne[Ae]=0;return ne}i.allocUnsafe=function(ne){return p(null,ne)},i.allocUnsafeSlow=function(ne){return p(null,ne)};function g(ne,ee,Ae){if((typeof Ae!="string"||Ae==="")&&(Ae="utf8"),!i.isEncoding(Ae))throw new TypeError('"encoding" must be a valid string encoding');var Ve=S(ee,Ae)|0;ne=n(ne,Ve);var Ke=ne.write(ee,Ae);return Ke!==Ve&&(ne=ne.slice(0,Ke)),ne}function v(ne,ee){var Ae=ee.length<0?0:b(ee.length)|0;ne=n(ne,Ae);for(var Ve=0;Ve<Ae;Ve+=1)ne[Ve]=ee[Ve]&255;return ne}function A(ne,ee,Ae,Ve){if(ee.byteLength,Ae<0||ee.byteLength<Ae)throw new RangeError("'offset' is out of bounds");if(ee.byteLength<Ae+(Ve||0))throw new RangeError("'length' is out of bounds");return Ae===void 0&&Ve===void 0?ee=new Uint8Array(ee):Ve===void 0?ee=new Uint8Array(ee,Ae):ee=new Uint8Array(ee,Ae,Ve),i.TYPED_ARRAY_SUPPORT?(ne=ee,ne.__proto__=i.prototype):ne=v(ne,ee),ne}function x(ne,ee){if(i.isBuffer(ee)){var Ae=b(ee.length)|0;return ne=n(ne,Ae),ne.length===0||ee.copy(ne,0,0,Ae),ne}if(ee){if(typeof ArrayBuffer!="undefined"&&ee.buffer instanceof ArrayBuffer||"length"in ee)return typeof ee.length!="number"||ce(ee.length)?n(ne,0):v(ne,ee);if(ee.type==="Buffer"&&r(ee.data))return v(ne,ee.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(ne){if(ne>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return ne|0}function w(ne){return+ne!=ne&&(ne=0),i.alloc(+ne)}i.isBuffer=function(ee){return!!(ee!=null&&ee._isBuffer)},i.compare=function(ee,Ae){if(!i.isBuffer(ee)||!i.isBuffer(Ae))throw new TypeError("Arguments must be Buffers");if(ee===Ae)return 0;for(var Ve=ee.length,Ke=Ae.length,Oe=0,it=Math.min(Ve,Ke);Oe<it;++Oe)if(ee[Oe]!==Ae[Oe]){Ve=ee[Oe],Ke=Ae[Oe];break}return Ve<Ke?-1:Ke<Ve?1:0},i.isEncoding=function(ee){switch(String(ee).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(ee,Ae){if(!r(ee))throw new TypeError('"list" argument must be an Array of Buffers');if(ee.length===0)return i.alloc(0);var Ve;if(Ae===void 0)for(Ae=0,Ve=0;Ve<ee.length;++Ve)Ae+=ee[Ve].length;var Ke=i.allocUnsafe(Ae),Oe=0;for(Ve=0;Ve<ee.length;++Ve){var it=ee[Ve];if(!i.isBuffer(it))throw new TypeError('"list" argument must be an Array of Buffers');it.copy(Ke,Oe),Oe+=it.length}return Ke};function S(ne,ee){if(i.isBuffer(ne))return ne.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ne)||ne instanceof ArrayBuffer))return ne.byteLength;typeof ne!="string"&&(ne=""+ne);var Ae=ne.length;if(Ae===0)return 0;for(var Ve=!1;;)switch(ee){case"ascii":case"latin1":case"binary":return Ae;case"utf8":case"utf-8":case void 0:return de(ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae*2;case"hex":return Ae>>>1;case"base64":return De(ne).length;default:if(Ve)return de(ne).length;ee=(""+ee).toLowerCase(),Ve=!0}}i.byteLength=S;function T(ne,ee,Ae){var Ve=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length)return"";if((Ae===void 0||Ae>this.length)&&(Ae=this.length),Ae<=0)return"";if(Ae>>>=0,ee>>>=0,Ae<=ee)return"";for(ne||(ne="utf8");;)switch(ne){case"hex":return Y(this,ee,Ae);case"utf8":case"utf-8":return H(this,ee,Ae);case"ascii":return V(this,ee,Ae);case"latin1":case"binary":return Z(this,ee,Ae);case"base64":return j(this,ee,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,ee,Ae);default:if(Ve)throw new TypeError("Unknown encoding: "+ne);ne=(ne+"").toLowerCase(),Ve=!0}}i.prototype._isBuffer=!0;function C(ne,ee,Ae){var Ve=ne[ee];ne[ee]=ne[Ae],ne[Ae]=Ve}i.prototype.swap16=function(){var ee=this.length;if(ee%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ae=0;Ae<ee;Ae+=2)C(this,Ae,Ae+1);return this},i.prototype.swap32=function(){var ee=this.length;if(ee%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ae=0;Ae<ee;Ae+=4)C(this,Ae,Ae+3),C(this,Ae+1,Ae+2);return this},i.prototype.swap64=function(){var ee=this.length;if(ee%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ae=0;Ae<ee;Ae+=8)C(this,Ae,Ae+7),C(this,Ae+1,Ae+6),C(this,Ae+2,Ae+5),C(this,Ae+3,Ae+4);return this},i.prototype.toString=function(){var ee=this.length|0;return ee===0?"":arguments.length===0?H(this,0,ee):T.apply(this,arguments)},i.prototype.equals=function(ee){if(!i.isBuffer(ee))throw new TypeError("Argument must be a Buffer");return this===ee?!0:i.compare(this,ee)===0},i.prototype.inspect=function(){var ee="",Ae=f.INSPECT_MAX_BYTES;return this.length>0&&(ee=this.toString("hex",0,Ae).match(/.{2}/g).join(" "),this.length>Ae&&(ee+=" ... ")),"<Buffer "+ee+">"},i.prototype.compare=function(ee,Ae,Ve,Ke,Oe){if(!i.isBuffer(ee))throw new TypeError("Argument must be a Buffer");if(Ae===void 0&&(Ae=0),Ve===void 0&&(Ve=ee?ee.length:0),Ke===void 0&&(Ke=0),Oe===void 0&&(Oe=this.length),Ae<0||Ve>ee.length||Ke<0||Oe>this.length)throw new RangeError("out of range index");if(Ke>=Oe&&Ae>=Ve)return 0;if(Ke>=Oe)return-1;if(Ae>=Ve)return 1;if(Ae>>>=0,Ve>>>=0,Ke>>>=0,Oe>>>=0,this===ee)return 0;for(var it=Oe-Ke,Fe=Ve-Ae,ft=Math.min(it,Fe),At=this.slice(Ke,Oe),bt=ee.slice(Ae,Ve),St=0;St<ft;++St)if(At[St]!==bt[St]){it=At[St],Fe=bt[St];break}return it<Fe?-1:Fe<it?1:0};function O(ne,ee,Ae,Ve,Ke){if(ne.length===0)return-1;if(typeof Ae=="string"?(Ve=Ae,Ae=0):Ae>2147483647?Ae=2147483647:Ae<-2147483648&&(Ae=-2147483648),Ae=+Ae,isNaN(Ae)&&(Ae=Ke?0:ne.length-1),Ae<0&&(Ae=ne.length+Ae),Ae>=ne.length){if(Ke)return-1;Ae=ne.length-1}else if(Ae<0)if(Ke)Ae=0;else return-1;if(typeof ee=="string"&&(ee=i.from(ee,Ve)),i.isBuffer(ee))return ee.length===0?-1:_(ne,ee,Ae,Ve,Ke);if(typeof ee=="number")return ee=ee&255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ke?Uint8Array.prototype.indexOf.call(ne,ee,Ae):Uint8Array.prototype.lastIndexOf.call(ne,ee,Ae):_(ne,[ee],Ae,Ve,Ke);throw new TypeError("val must be string, number or Buffer")}function _(ne,ee,Ae,Ve,Ke){var Oe=1,it=ne.length,Fe=ee.length;if(Ve!==void 0&&(Ve=String(Ve).toLowerCase(),Ve==="ucs2"||Ve==="ucs-2"||Ve==="utf16le"||Ve==="utf-16le")){if(ne.length<2||ee.length<2)return-1;Oe=2,it/=2,Fe/=2,Ae/=2}function ft(je,pe){return Oe===1?je[pe]:je.readUInt16BE(pe*Oe)}var At;if(Ke){var bt=-1;for(At=Ae;At<it;At++)if(ft(ne,At)===ft(ee,bt===-1?0:At-bt)){if(bt===-1&&(bt=At),At-bt+1===Fe)return bt*Oe}else bt!==-1&&(At-=At-bt),bt=-1}else for(Ae+Fe>it&&(Ae=it-Fe),At=Ae;At>=0;At--){for(var St=!0,Et=0;Et<Fe;Et++)if(ft(ne,At+Et)!==ft(ee,Et)){St=!1;break}if(St)return At}return-1}i.prototype.includes=function(ee,Ae,Ve){return this.indexOf(ee,Ae,Ve)!==-1},i.prototype.indexOf=function(ee,Ae,Ve){return O(this,ee,Ae,Ve,!0)},i.prototype.lastIndexOf=function(ee,Ae,Ve){return O(this,ee,Ae,Ve,!1)};function M(ne,ee,Ae,Ve){Ae=Number(Ae)||0;var Ke=ne.length-Ae;Ve?(Ve=Number(Ve),Ve>Ke&&(Ve=Ke)):Ve=Ke;var Oe=ee.length;if(Oe%2!==0)throw new TypeError("Invalid hex string");Ve>Oe/2&&(Ve=Oe/2);for(var it=0;it<Ve;++it){var Fe=parseInt(ee.substr(it*2,2),16);if(isNaN(Fe))return it;ne[Ae+it]=Fe}return it}function k(ne,ee,Ae,Ve){return Ee(de(ee,ne.length-Ae),ne,Ae,Ve)}function R(ne,ee,Ae,Ve){return Ee(Ne(ee),ne,Ae,Ve)}function B(ne,ee,Ae,Ve){return R(ne,ee,Ae,Ve)}function P(ne,ee,Ae,Ve){return Ee(De(ee),ne,Ae,Ve)}function U(ne,ee,Ae,Ve){return Ee(we(ee,ne.length-Ae),ne,Ae,Ve)}i.prototype.write=function(ee,Ae,Ve,Ke){if(Ae===void 0)Ke="utf8",Ve=this.length,Ae=0;else if(Ve===void 0&&typeof Ae=="string")Ke=Ae,Ve=this.length,Ae=0;else if(isFinite(Ae))Ae=Ae|0,isFinite(Ve)?(Ve=Ve|0,Ke===void 0&&(Ke="utf8")):(Ke=Ve,Ve=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Oe=this.length-Ae;if((Ve===void 0||Ve>Oe)&&(Ve=Oe),ee.length>0&&(Ve<0||Ae<0)||Ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ke||(Ke="utf8");for(var it=!1;;)switch(Ke){case"hex":return M(this,ee,Ae,Ve);case"utf8":case"utf-8":return k(this,ee,Ae,Ve);case"ascii":return R(this,ee,Ae,Ve);case"latin1":case"binary":return B(this,ee,Ae,Ve);case"base64":return P(this,ee,Ae,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,ee,Ae,Ve);default:if(it)throw new TypeError("Unknown encoding: "+Ke);Ke=(""+Ke).toLowerCase(),it=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(ne,ee,Ae){return ee===0&&Ae===ne.length?l.fromByteArray(ne):l.fromByteArray(ne.slice(ee,Ae))}function H(ne,ee,Ae){Ae=Math.min(ne.length,Ae);for(var Ve=[],Ke=ee;Ke<Ae;){var Oe=ne[Ke],it=null,Fe=Oe>239?4:Oe>223?3:Oe>191?2:1;if(Ke+Fe<=Ae){var ft,At,bt,St;switch(Fe){case 1:Oe<128&&(it=Oe);break;case 2:ft=ne[Ke+1],(ft&192)===128&&(St=(Oe&31)<<6|ft&63,St>127&&(it=St));break;case 3:ft=ne[Ke+1],At=ne[Ke+2],(ft&192)===128&&(At&192)===128&&(St=(Oe&15)<<12|(ft&63)<<6|At&63,St>2047&&(St<55296||St>57343)&&(it=St));break;case 4:ft=ne[Ke+1],At=ne[Ke+2],bt=ne[Ke+3],(ft&192)===128&&(At&192)===128&&(bt&192)===128&&(St=(Oe&15)<<18|(ft&63)<<12|(At&63)<<6|bt&63,St>65535&&St<1114112&&(it=St))}}it===null?(it=65533,Fe=1):it>65535&&(it-=65536,Ve.push(it>>>10&1023|55296),it=56320|it&1023),Ve.push(it),Ke+=Fe}return G(Ve)}var W=4096;function G(ne){var ee=ne.length;if(ee<=W)return String.fromCharCode.apply(String,ne);for(var Ae="",Ve=0;Ve<ee;)Ae+=String.fromCharCode.apply(String,ne.slice(Ve,Ve+=W));return Ae}function V(ne,ee,Ae){var Ve="";Ae=Math.min(ne.length,Ae);for(var Ke=ee;Ke<Ae;++Ke)Ve+=String.fromCharCode(ne[Ke]&127);return Ve}function Z(ne,ee,Ae){var Ve="";Ae=Math.min(ne.length,Ae);for(var Ke=ee;Ke<Ae;++Ke)Ve+=String.fromCharCode(ne[Ke]);return Ve}function Y(ne,ee,Ae){var Ve=ne.length;(!ee||ee<0)&&(ee=0),(!Ae||Ae<0||Ae>Ve)&&(Ae=Ve);for(var Ke="",Oe=ee;Oe<Ae;++Oe)Ke+=le(ne[Oe]);return Ke}function Q(ne,ee,Ae){for(var Ve=ne.slice(ee,Ae),Ke="",Oe=0;Oe<Ve.length;Oe+=2)Ke+=String.fromCharCode(Ve[Oe]+Ve[Oe+1]*256);return Ke}i.prototype.slice=function(ee,Ae){var Ve=this.length;ee=~~ee,Ae=Ae===void 0?Ve:~~Ae,ee<0?(ee+=Ve,ee<0&&(ee=0)):ee>Ve&&(ee=Ve),Ae<0?(Ae+=Ve,Ae<0&&(Ae=0)):Ae>Ve&&(Ae=Ve),Ae<ee&&(Ae=ee);var Ke;if(i.TYPED_ARRAY_SUPPORT)Ke=this.subarray(ee,Ae),Ke.__proto__=i.prototype;else{var Oe=Ae-ee;Ke=new i(Oe,void 0);for(var it=0;it<Oe;++it)Ke[it]=this[it+ee]}return Ke};function oe(ne,ee,Ae){if(ne%1!==0||ne<0)throw new RangeError("offset is not uint");if(ne+ee>Ae)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUIntLE=function(ee,Ae,Ve){ee=ee|0,Ae=Ae|0,Ve||oe(ee,Ae,this.length);for(var Ke=this[ee],Oe=1,it=0;++it<Ae&&(Oe*=256);)Ke+=this[ee+it]*Oe;return Ke},i.prototype.readUIntBE=function(ee,Ae,Ve){ee=ee|0,Ae=Ae|0,Ve||oe(ee,Ae,this.length);for(var Ke=this[ee+--Ae],Oe=1;Ae>0&&(Oe*=256);)Ke+=this[ee+--Ae]*Oe;return Ke},i.prototype.readUInt8=function(ee,Ae){return Ae||oe(ee,1,this.length),this[ee]},i.prototype.readUInt16LE=function(ee,Ae){return Ae||oe(ee,2,this.length),this[ee]|this[ee+1]<<8},i.prototype.readUInt16BE=function(ee,Ae){return Ae||oe(ee,2,this.length),this[ee]<<8|this[ee+1]},i.prototype.readUInt32LE=function(ee,Ae){return Ae||oe(ee,4,this.length),(this[ee]|this[ee+1]<<8|this[ee+2]<<16)+this[ee+3]*16777216},i.prototype.readUInt32BE=function(ee,Ae){return Ae||oe(ee,4,this.length),this[ee]*16777216+(this[ee+1]<<16|this[ee+2]<<8|this[ee+3])},i.prototype.readIntLE=function(ee,Ae,Ve){ee=ee|0,Ae=Ae|0,Ve||oe(ee,Ae,this.length);for(var Ke=this[ee],Oe=1,it=0;++it<Ae&&(Oe*=256);)Ke+=this[ee+it]*Oe;return Oe*=128,Ke>=Oe&&(Ke-=Math.pow(2,8*Ae)),Ke},i.prototype.readIntBE=function(ee,Ae,Ve){ee=ee|0,Ae=Ae|0,Ve||oe(ee,Ae,this.length);for(var Ke=Ae,Oe=1,it=this[ee+--Ke];Ke>0&&(Oe*=256);)it+=this[ee+--Ke]*Oe;return Oe*=128,it>=Oe&&(it-=Math.pow(2,8*Ae)),it},i.prototype.readInt8=function(ee,Ae){return Ae||oe(ee,1,this.length),this[ee]&128?(255-this[ee]+1)*-1:this[ee]},i.prototype.readInt16LE=function(ee,Ae){Ae||oe(ee,2,this.length);var Ve=this[ee]|this[ee+1]<<8;return Ve&32768?Ve|4294901760:Ve},i.prototype.readInt16BE=function(ee,Ae){Ae||oe(ee,2,this.length);var Ve=this[ee+1]|this[ee]<<8;return Ve&32768?Ve|4294901760:Ve},i.prototype.readInt32LE=function(ee,Ae){return Ae||oe(ee,4,this.length),this[ee]|this[ee+1]<<8|this[ee+2]<<16|this[ee+3]<<24},i.prototype.readInt32BE=function(ee,Ae){return Ae||oe(ee,4,this.length),this[ee]<<24|this[ee+1]<<16|this[ee+2]<<8|this[ee+3]},i.prototype.readFloatLE=function(ee,Ae){return Ae||oe(ee,4,this.length),a.read(this,ee,!0,23,4)},i.prototype.readFloatBE=function(ee,Ae){return Ae||oe(ee,4,this.length),a.read(this,ee,!1,23,4)},i.prototype.readDoubleLE=function(ee,Ae){return Ae||oe(ee,8,this.length),a.read(this,ee,!0,52,8)},i.prototype.readDoubleBE=function(ee,Ae){return Ae||oe(ee,8,this.length),a.read(this,ee,!1,52,8)};function ue(ne,ee,Ae,Ve,Ke,Oe){if(!i.isBuffer(ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>Ke||ee<Oe)throw new RangeError('"value" argument is out of bounds');if(Ae+Ve>ne.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(ee,Ae,Ve,Ke){if(ee=+ee,Ae=Ae|0,Ve=Ve|0,!Ke){var Oe=Math.pow(2,8*Ve)-1;ue(this,ee,Ae,Ve,Oe,0)}var it=1,Fe=0;for(this[Ae]=ee&255;++Fe<Ve&&(it*=256);)this[Ae+Fe]=ee/it&255;return Ae+Ve},i.prototype.writeUIntBE=function(ee,Ae,Ve,Ke){if(ee=+ee,Ae=Ae|0,Ve=Ve|0,!Ke){var Oe=Math.pow(2,8*Ve)-1;ue(this,ee,Ae,Ve,Oe,0)}var it=Ve-1,Fe=1;for(this[Ae+it]=ee&255;--it>=0&&(Fe*=256);)this[Ae+it]=ee/Fe&255;return Ae+Ve},i.prototype.writeUInt8=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,1,255,0),i.TYPED_ARRAY_SUPPORT||(ee=Math.floor(ee)),this[Ae]=ee&255,Ae+1};function Le(ne,ee,Ae,Ve){ee<0&&(ee=65535+ee+1);for(var Ke=0,Oe=Math.min(ne.length-Ae,2);Ke<Oe;++Ke)ne[Ae+Ke]=(ee&255<<8*(Ve?Ke:1-Ke))>>>(Ve?Ke:1-Ke)*8}i.prototype.writeUInt16LE=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[Ae]=ee&255,this[Ae+1]=ee>>>8):Le(this,ee,Ae,!0),Ae+2},i.prototype.writeUInt16BE=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[Ae]=ee>>>8,this[Ae+1]=ee&255):Le(this,ee,Ae,!1),Ae+2};function me(ne,ee,Ae,Ve){ee<0&&(ee=4294967295+ee+1);for(var Ke=0,Oe=Math.min(ne.length-Ae,4);Ke<Oe;++Ke)ne[Ae+Ke]=ee>>>(Ve?Ke:3-Ke)*8&255}i.prototype.writeUInt32LE=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[Ae+3]=ee>>>24,this[Ae+2]=ee>>>16,this[Ae+1]=ee>>>8,this[Ae]=ee&255):me(this,ee,Ae,!0),Ae+4},i.prototype.writeUInt32BE=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[Ae]=ee>>>24,this[Ae+1]=ee>>>16,this[Ae+2]=ee>>>8,this[Ae+3]=ee&255):me(this,ee,Ae,!1),Ae+4},i.prototype.writeIntLE=function(ee,Ae,Ve,Ke){if(ee=+ee,Ae=Ae|0,!Ke){var Oe=Math.pow(2,8*Ve-1);ue(this,ee,Ae,Ve,Oe-1,-Oe)}var it=0,Fe=1,ft=0;for(this[Ae]=ee&255;++it<Ve&&(Fe*=256);)ee<0&&ft===0&&this[Ae+it-1]!==0&&(ft=1),this[Ae+it]=(ee/Fe>>0)-ft&255;return Ae+Ve},i.prototype.writeIntBE=function(ee,Ae,Ve,Ke){if(ee=+ee,Ae=Ae|0,!Ke){var Oe=Math.pow(2,8*Ve-1);ue(this,ee,Ae,Ve,Oe-1,-Oe)}var it=Ve-1,Fe=1,ft=0;for(this[Ae+it]=ee&255;--it>=0&&(Fe*=256);)ee<0&&ft===0&&this[Ae+it+1]!==0&&(ft=1),this[Ae+it]=(ee/Fe>>0)-ft&255;return Ae+Ve},i.prototype.writeInt8=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,1,127,-128),i.TYPED_ARRAY_SUPPORT||(ee=Math.floor(ee)),ee<0&&(ee=255+ee+1),this[Ae]=ee&255,Ae+1},i.prototype.writeInt16LE=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[Ae]=ee&255,this[Ae+1]=ee>>>8):Le(this,ee,Ae,!0),Ae+2},i.prototype.writeInt16BE=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[Ae]=ee>>>8,this[Ae+1]=ee&255):Le(this,ee,Ae,!1),Ae+2},i.prototype.writeInt32LE=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[Ae]=ee&255,this[Ae+1]=ee>>>8,this[Ae+2]=ee>>>16,this[Ae+3]=ee>>>24):me(this,ee,Ae,!0),Ae+4},i.prototype.writeInt32BE=function(ee,Ae,Ve){return ee=+ee,Ae=Ae|0,Ve||ue(this,ee,Ae,4,2147483647,-2147483648),ee<0&&(ee=4294967295+ee+1),i.TYPED_ARRAY_SUPPORT?(this[Ae]=ee>>>24,this[Ae+1]=ee>>>16,this[Ae+2]=ee>>>8,this[Ae+3]=ee&255):me(this,ee,Ae,!1),Ae+4};function Ie(ne,ee,Ae,Ve,Ke,Oe){if(Ae+Ve>ne.length)throw new RangeError("Index out of range");if(Ae<0)throw new RangeError("Index out of range")}function X(ne,ee,Ae,Ve,Ke){return Ke||Ie(ne,ee,Ae,4,34028234663852886e22,-34028234663852886e22),a.write(ne,ee,Ae,Ve,23,4),Ae+4}i.prototype.writeFloatLE=function(ee,Ae,Ve){return X(this,ee,Ae,!0,Ve)},i.prototype.writeFloatBE=function(ee,Ae,Ve){return X(this,ee,Ae,!1,Ve)};function q(ne,ee,Ae,Ve,Ke){return Ke||Ie(ne,ee,Ae,8,17976931348623157e292,-17976931348623157e292),a.write(ne,ee,Ae,Ve,52,8),Ae+8}i.prototype.writeDoubleLE=function(ee,Ae,Ve){return q(this,ee,Ae,!0,Ve)},i.prototype.writeDoubleBE=function(ee,Ae,Ve){return q(this,ee,Ae,!1,Ve)},i.prototype.copy=function(ee,Ae,Ve,Ke){if(Ve||(Ve=0),!Ke&&Ke!==0&&(Ke=this.length),Ae>=ee.length&&(Ae=ee.length),Ae||(Ae=0),Ke>0&&Ke<Ve&&(Ke=Ve),Ke===Ve)return 0;if(ee.length===0||this.length===0)return 0;if(Ae<0)throw new RangeError("targetStart out of bounds");if(Ve<0||Ve>=this.length)throw new RangeError("sourceStart out of bounds");if(Ke<0)throw new RangeError("sourceEnd out of bounds");Ke>this.length&&(Ke=this.length),ee.length-Ae<Ke-Ve&&(Ke=ee.length-Ae+Ve);var Oe=Ke-Ve,it;if(this===ee&&Ve<Ae&&Ae<Ke)for(it=Oe-1;it>=0;--it)ee[it+Ae]=this[it+Ve];else if(Oe<1e3||!i.TYPED_ARRAY_SUPPORT)for(it=0;it<Oe;++it)ee[it+Ae]=this[it+Ve];else Uint8Array.prototype.set.call(ee,this.subarray(Ve,Ve+Oe),Ae);return Oe},i.prototype.fill=function(ee,Ae,Ve,Ke){if(typeof ee=="string"){if(typeof Ae=="string"?(Ke=Ae,Ae=0,Ve=this.length):typeof Ve=="string"&&(Ke=Ve,Ve=this.length),ee.length===1){var Oe=ee.charCodeAt(0);Oe<256&&(ee=Oe)}if(Ke!==void 0&&typeof Ke!="string")throw new TypeError("encoding must be a string");if(typeof Ke=="string"&&!i.isEncoding(Ke))throw new TypeError("Unknown encoding: "+Ke)}else typeof ee=="number"&&(ee=ee&255);if(Ae<0||this.length<Ae||this.length<Ve)throw new RangeError("Out of range index");if(Ve<=Ae)return this;Ae=Ae>>>0,Ve=Ve===void 0?this.length:Ve>>>0,ee||(ee=0);var it;if(typeof ee=="number")for(it=Ae;it<Ve;++it)this[it]=ee;else{var Fe=i.isBuffer(ee)?ee:de(new i(ee,Ke).toString()),ft=Fe.length;for(it=0;it<Ve-Ae;++it)this[it+Ae]=Fe[it%ft]}return this};var We=/[^+\/0-9A-Za-z-_]/g;function $(ne){if(ne=J(ne).replace(We,""),ne.length<2)return"";for(;ne.length%4!==0;)ne=ne+"=";return ne}function J(ne){return ne.trim?ne.trim():ne.replace(/^\s+|\s+$/g,"")}function le(ne){return ne<16?"0"+ne.toString(16):ne.toString(16)}function de(ne,ee){ee=ee||Infinity;for(var Ae,Ve=ne.length,Ke=null,Oe=[],it=0;it<Ve;++it){if(Ae=ne.charCodeAt(it),Ae>55295&&Ae<57344){if(!Ke){if(Ae>56319){(ee-=3)>-1&&Oe.push(239,191,189);continue}else if(it+1===Ve){(ee-=3)>-1&&Oe.push(239,191,189);continue}Ke=Ae;continue}if(Ae<56320){(ee-=3)>-1&&Oe.push(239,191,189),Ke=Ae;continue}Ae=(Ke-55296<<10|Ae-56320)+65536}else Ke&&((ee-=3)>-1&&Oe.push(239,191,189));if(Ke=null,Ae<128){if((ee-=1)<0)break;Oe.push(Ae)}else if(Ae<2048){if((ee-=2)<0)break;Oe.push(Ae>>6|192,Ae&63|128)}else if(Ae<65536){if((ee-=3)<0)break;Oe.push(Ae>>12|224,Ae>>6&63|128,Ae&63|128)}else if(Ae<1114112){if((ee-=4)<0)break;Oe.push(Ae>>18|240,Ae>>12&63|128,Ae>>6&63|128,Ae&63|128)}else throw new Error("Invalid code point")}return Oe}function Ne(ne){for(var ee=[],Ae=0;Ae<ne.length;++Ae)ee.push(ne.charCodeAt(Ae)&255);return ee}function we(ne,ee){for(var Ae,Ve,Ke,Oe=[],it=0;it<ne.length&&!((ee-=2)<0);++it)Ae=ne.charCodeAt(it),Ve=Ae>>8,Ke=Ae%256,Oe.push(Ke),Oe.push(Ve);return Oe}function De(ne){return l.toByteArray($(ne))}function Ee(ne,ee,Ae,Ve){for(var Ke=0;Ke<Ve&&!(Ke+Ae>=ee.length||Ke>=ne.length);++Ke)ee[Ke+Ae]=ne[Ke];return Ke}function ce(ne){return ne!==ne}}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{},o("buffer").Buffer)},{"base64-js":82,buffer:85,ieee754:304,isarray:313}],86:[function(o,m,f){var s=o("buffer").Buffer,t=s.isEncoding||function(n){switch(n&&n.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 l(n){if(n&&!t(n))throw new Error("Unknown encoding: "+n)}var a=f.StringDecoder=function(n){this.encoding=(n||"utf8").toLowerCase().replace(/[-_]/,""),l(n);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=u;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=e;break;default:this.write=r;return}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};a.prototype.write=function(n){for(var i="";this.charLength;){var c=n.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:n.length;if(n.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived<this.charLength)return"";n=n.slice(c,n.length),i=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var h=i.charCodeAt(i.length-1);if(h>=55296&&h<=56319){this.charLength+=this.surrogateSize,i="";continue}if(this.charReceived=this.charLength=0,n.length===0)return i;break}this.detectIncompleteChar(n);var d=n.length;this.charLength&&(n.copy(this.charBuffer,0,n.length-this.charReceived,d),d-=this.charReceived),i+=n.toString(this.encoding,0,d);var d=i.length-1,h=i.charCodeAt(d);if(h>=55296&&h<=56319){var p=this.surrogateSize;return this.charLength+=p,this.charReceived+=p,this.charBuffer.copy(this.charBuffer,p,0,p),n.copy(this.charBuffer,0,0,p),i.substring(0,d)}return i},a.prototype.detectIncompleteChar=function(n){for(var i=n.length>=3?3:n.length;i>0;i--){var c=n[n.length-i];if(i==1&&c>>5==6){this.charLength=2;break}if(i<=2&&c>>4==14){this.charLength=3;break}if(i<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=i},a.prototype.end=function(n){var i="";if(n&&n.length&&(i=this.write(n)),this.charReceived){var c=this.charReceived,d=this.charBuffer,h=this.encoding;i+=d.slice(0,c).toString(h)}return i};function r(n){return n.toString(this.encoding)}function u(n){this.charReceived=n.length%2,this.charLength=this.charReceived?2:0}function e(n){this.charReceived=n.length%3,this.charLength=this.charReceived?3:0}},{buffer:85}],87:[function(o,m,f){m.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"}},{}],88:[function(o,m,f){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var s=Array.prototype.slice;m.exports=t;function t(a,r){if(!(this instanceof t))return new t(a,r);this.src=a,this._withAccess=r}t.prototype.withAccess=function(a){return this._withAccess=a!==!1,this},t.prototype.pick=function(a){return Array.isArray(a)||(a=s.call(arguments)),a.length&&(this.keys=a),this},t.prototype.to=function(a){if(a=a||{},!this.src)return a;var r=this.keys||Object.keys(this.src);if(!this._withAccess){for(var u=0;u<r.length;u++){if(e=r[u],a[e]!==void 0)continue;a[e]=this.src[e]}return a}for(var u=0;u<r.length;u++){var e=r[u];if(!l(a,e))continue;var n=this.src.__lookupGetter__(e),i=this.src.__lookupSetter__(e);n&&a.__defineGetter__(e,n),i&&a.__defineSetter__(e,i),!n&&!i&&(a[e]=this.src[e])}return a},t.prototype.toCover=function(a){for(var r=this.keys||Object.keys(this.src),u=0;u<r.length;u++){var e=r[u];delete a[e];var n=this.src.__lookupGetter__(e),i=this.src.__lookupSetter__(e);n&&a.__defineGetter__(e,n),i&&a.__defineSetter__(e,i),!n&&!i&&(a[e]=this.src[e])}},t.prototype.override=t.prototype.toCover,t.prototype.and=function(a){var r={};return this.to(r),this.src=a,this.to(r),this.src=r,this};function l(a,r){return a[r]===void 0&&a.__lookupGetter__(r)===void 0&&a.__lookupSetter__(r)===void 0}},{}],89:[function(o,m,f){m.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},{}],90:[function(o,m,f){var s=o("../internals/is-object");m.exports=function(t){if(!s(t)&&t!==null)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},{"../internals/is-object":162}],91:[function(o,m,f){var s=o("../internals/well-known-symbol"),t=o("../internals/object-create"),l=o("../internals/object-define-property"),a=s("unscopables"),r=Array.prototype;r[a]==null&&l.f(r,a,{configurable:!0,value:t(null)}),m.exports=function(u){r[a][u]=!0}},{"../internals/object-create":177,"../internals/object-define-property":179,"../internals/well-known-symbol":237}],92:[function(o,m,f){"use strict";var s=o("../internals/string-multibyte").charAt;m.exports=function(t,l,a){return l+(a?s(t,l).length:1)}},{"../internals/string-multibyte":213}],93:[function(o,m,f){m.exports=function(s,t,l){if(!(s instanceof t))throw TypeError("Incorrect "+(l?l+" ":"")+"invocation");return s}},{}],94:[function(o,m,f){var s=o("../internals/is-object");m.exports=function(t){if(!s(t))throw TypeError(String(t)+" is not an object");return t}},{"../internals/is-object":162}],95:[function(o,m,f){m.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],96:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-native"),t=o("../internals/descriptors"),l=o("../internals/global"),a=o("../internals/is-object"),r=o("../internals/has"),u=o("../internals/classof"),e=o("../internals/create-non-enumerable-property"),n=o("../internals/redefine"),i=o("../internals/object-define-property").f,c=o("../internals/object-get-prototype-of"),d=o("../internals/object-set-prototype-of"),h=o("../internals/well-known-symbol"),p=o("../internals/uid"),g=l.Int8Array,v=g&&g.prototype,A=l.Uint8ClampedArray,x=A&&A.prototype,b=g&&c(g),w=v&&c(v),S=Object.prototype,T=S.isPrototypeOf,C=h("toStringTag"),O=p("TYPED_ARRAY_TAG"),_=p("TYPED_ARRAY_CONSTRUCTOR"),M=s&&!!d&&u(l.opera)!=="Opera",k=!1,R,B,P,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},H=function(oe){if(!a(oe))return!1;var ue=u(oe);return ue==="DataView"||r(U,ue)||r(j,ue)},W=function(oe){if(!a(oe))return!1;var ue=u(oe);return r(U,ue)||r(j,ue)},G=function(oe){if(W(oe))return oe;throw TypeError("Target is not a typed array")},V=function(oe){if(d&&!T.call(b,oe))throw TypeError("Target is not a typed array constructor");return oe},Z=function(oe,ue,Le){if(!t)return;if(Le)for(var me in U){var Ie=l[me];if(Ie&&r(Ie.prototype,oe))try{delete Ie.prototype[oe]}catch(X){}}(!w[oe]||Le)&&n(w,oe,Le?ue:M&&v[oe]||ue)},Y=function(oe,ue,Le){var me,Ie;if(!t)return;if(d){if(Le){for(me in U)if(Ie=l[me],Ie&&r(Ie,oe))try{delete Ie[oe]}catch(X){}}if(!b[oe]||Le)try{return n(b,oe,Le?ue:M&&b[oe]||ue)}catch(X){}else return}for(me in U)Ie=l[me],Ie&&(!Ie[oe]||Le)&&n(Ie,oe,ue)};for(R in U)B=l[R],P=B&&B.prototype,P?e(P,_,B):M=!1;for(R in j)B=l[R],P=B&&B.prototype,P&&e(P,_,B);if((!M||typeof b!="function"||b===Function.prototype)&&(b=function(){throw TypeError("Incorrect invocation")},M))for(R in U)l[R]&&d(l[R],b);if((!M||!w||w===S)&&(w=b.prototype,M))for(R in U)l[R]&&d(l[R].prototype,w);if(M&&c(x)!==w&&d(x,w),t&&!r(w,C)){k=!0,i(w,C,{get:function(){return a(this)?this[O]:void 0}});for(R in U)l[R]&&e(l[R],O,R)}m.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_CONSTRUCTOR:_,TYPED_ARRAY_TAG:k&&O,aTypedArray:G,aTypedArrayConstructor:V,exportTypedArrayMethod:Z,exportTypedArrayStaticMethod:Y,isView:H,isTypedArray:W,TypedArray:b,TypedArrayPrototype:w}},{"../internals/array-buffer-native":95,"../internals/classof":115,"../internals/create-non-enumerable-property":120,"../internals/descriptors":125,"../internals/global":147,"../internals/has":148,"../internals/is-object":162,"../internals/object-define-property":179,"../internals/object-get-prototype-of":184,"../internals/object-set-prototype-of":188,"../internals/redefine":197,"../internals/uid":234,"../internals/well-known-symbol":237}],97:[function(o,m,f){"use strict";var s=o("../internals/global"),t=o("../internals/descriptors"),l=o("../internals/array-buffer-native"),a=o("../internals/create-non-enumerable-property"),r=o("../internals/redefine-all"),u=o("../internals/fails"),e=o("../internals/an-instance"),n=o("../internals/to-integer"),i=o("../internals/to-length"),c=o("../internals/to-index"),d=o("../internals/ieee754"),h=o("../internals/object-get-prototype-of"),p=o("../internals/object-set-prototype-of"),g=o("../internals/object-get-own-property-names").f,v=o("../internals/object-define-property").f,A=o("../internals/array-fill"),x=o("../internals/set-to-string-tag"),b=o("../internals/internal-state"),w=b.get,S=b.set,T="ArrayBuffer",C="DataView",O="prototype",_="Wrong length",M="Wrong index",k=s[T],R=k,B=s[C],P=B&&B[O],U=Object.prototype,j=s.RangeError,H=d.pack,W=d.unpack,G=function(de){return[de&255]},V=function(de){return[de&255,de>>8&255]},Z=function(de){return[de&255,de>>8&255,de>>16&255,de>>24&255]},Y=function(de){return de[3]<<24|de[2]<<16|de[1]<<8|de[0]},Q=function(de){return H(de,23,4)},oe=function(de){return H(de,52,8)},ue=function(de,Ne){v(de[O],Ne,{get:function(){return w(this)[Ne]}})},Le=function(de,Ne,we,De){var Ee=c(we),ce=w(de);if(Ee+Ne>ce.byteLength)throw j(M);var ne=w(ce.buffer).bytes,ee=Ee+ce.byteOffset,Ae=ne.slice(ee,ee+Ne);return De?Ae:Ae.reverse()},me=function(de,Ne,we,De,Ee,ce){var ne=c(we),ee=w(de);if(ne+Ne>ee.byteLength)throw j(M);for(var Ae=w(ee.buffer).bytes,Ve=ne+ee.byteOffset,Ke=De(+Ee),Oe=0;Oe<Ne;Oe++)Ae[Ve+Oe]=Ke[ce?Oe:Ne-Oe-1]};if(!l)R=function(de){e(this,R,T);var Ne=c(de);S(this,{bytes:A.call(new Array(Ne),0),byteLength:Ne}),t||(this.byteLength=Ne)},B=function(de,Ne,we){e(this,B,C),e(de,R,C);var De=w(de).byteLength,Ee=n(Ne);if(Ee<0||Ee>De)throw j("Wrong offset");if(we=we===void 0?De-Ee:i(we),Ee+we>De)throw j(_);S(this,{buffer:de,byteLength:we,byteOffset:Ee}),t||(this.buffer=de,this.byteLength=we,this.byteOffset=Ee)},t&&(ue(R,"byteLength"),ue(B,"buffer"),ue(B,"byteLength"),ue(B,"byteOffset")),r(B[O],{getInt8:function(de){return Le(this,1,de)[0]<<24>>24},getUint8:function(de){return Le(this,1,de)[0]},getInt16:function(de){var Ne=Le(this,2,de,arguments.length>1?arguments[1]:void 0);return(Ne[1]<<8|Ne[0])<<16>>16},getUint16:function(de){var Ne=Le(this,2,de,arguments.length>1?arguments[1]:void 0);return Ne[1]<<8|Ne[0]},getInt32:function(de){return Y(Le(this,4,de,arguments.length>1?arguments[1]:void 0))},getUint32:function(de){return Y(Le(this,4,de,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(de){return W(Le(this,4,de,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(de){return W(Le(this,8,de,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(de,Ne){me(this,1,de,G,Ne)},setUint8:function(de,Ne){me(this,1,de,G,Ne)},setInt16:function(de,Ne){me(this,2,de,V,Ne,arguments.length>2?arguments[2]:void 0)},setUint16:function(de,Ne){me(this,2,de,V,Ne,arguments.length>2?arguments[2]:void 0)},setInt32:function(de,Ne){me(this,4,de,Z,Ne,arguments.length>2?arguments[2]:void 0)},setUint32:function(de,Ne){me(this,4,de,Z,Ne,arguments.length>2?arguments[2]:void 0)},setFloat32:function(de,Ne){me(this,4,de,Q,Ne,arguments.length>2?arguments[2]:void 0)},setFloat64:function(de,Ne){me(this,8,de,oe,Ne,arguments.length>2?arguments[2]:void 0)}});else{if(!u(function(){k(1)})||!u(function(){new k(-1)})||u(function(){return new k,new k(1.5),new k(NaN),k.name!=T})){R=function(de){return e(this,R),new k(c(de))};for(var Ie=R[O]=k[O],X=g(k),q=0,We;X.length>q;)(We=X[q++])in R||a(R,We,k[We]);Ie.constructor=R}p&&h(P)!==U&&p(P,U);var $=new B(new R(2)),J=P.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),($.getInt8(0)||!$.getInt8(1))&&r(P,{setInt8:function(de,Ne){J.call(this,de,Ne<<24>>24)},setUint8:function(de,Ne){J.call(this,de,Ne<<24>>24)}},{unsafe:!0})}x(R,T),x(B,C),m.exports={ArrayBuffer:R,DataView:B}},{"../internals/an-instance":93,"../internals/array-buffer-native":95,"../internals/array-fill":99,"../internals/create-non-enumerable-property":120,"../internals/descriptors":125,"../internals/fails":140,"../internals/global":147,"../internals/ieee754":153,"../internals/internal-state":157,"../internals/object-define-property":179,"../internals/object-get-own-property-names":182,"../internals/object-get-prototype-of":184,"../internals/object-set-prototype-of":188,"../internals/redefine-all":196,"../internals/set-to-string-tag":208,"../internals/to-index":218,"../internals/to-integer":220,"../internals/to-length":221}],98:[function(o,m,f){"use strict";var s=o("../internals/to-object"),t=o("../internals/to-absolute-index"),l=o("../internals/to-length"),a=Math.min;m.exports=[].copyWithin||function(u,e){var n=s(this),i=l(n.length),c=t(u,i),d=t(e,i),h=arguments.length>2?arguments[2]:void 0,p=a((h===void 0?i:t(h,i))-d,i-c),g=1;for(d<c&&c<d+p&&(g=-1,d+=p-1,c+=p-1);p-- >0;)d in n?n[c]=n[d]:delete n[c],c+=g,d+=g;return n}},{"../internals/to-absolute-index":217,"../internals/to-length":221,"../internals/to-object":222}],99:[function(o,m,f){"use strict";var s=o("../internals/to-object"),t=o("../internals/to-absolute-index"),l=o("../internals/to-length");m.exports=function(r){for(var u=s(this),e=l(u.length),n=arguments.length,i=t(n>1?arguments[1]:void 0,e),c=n>2?arguments[2]:void 0,d=c===void 0?e:t(c,e);d>i;)u[i++]=r;return u}},{"../internals/to-absolute-index":217,"../internals/to-length":221,"../internals/to-object":222}],100:[function(o,m,f){"use strict";var s=o("../internals/array-iteration").forEach,t=o("../internals/array-method-is-strict"),l=t("forEach");m.exports=l?[].forEach:function(r){return s(this,r,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":104,"../internals/array-method-is-strict":107}],101:[function(o,m,f){m.exports=function(s,t){for(var l=0,a=t.length,r=new s(a);a>l;)r[l]=t[l++];return r}},{}],102:[function(o,m,f){"use strict";var s=o("../internals/function-bind-context"),t=o("../internals/to-object"),l=o("../internals/call-with-safe-iteration-closing"),a=o("../internals/is-array-iterator-method"),r=o("../internals/to-length"),u=o("../internals/create-property"),e=o("../internals/get-iterator"),n=o("../internals/get-iterator-method");m.exports=function(c){var d=t(c),h=typeof this=="function"?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=g!==void 0,A=n(d),x=0,b,w,S,T,C,O;if(v&&(g=s(g,p>2?arguments[2]:void 0,2)),A!=null&&!(h==Array&&a(A)))for(T=e(d,A),C=T.next,w=new h;!(S=C.call(T)).done;x++)O=v?l(T,g,[S.value,x],!0):S.value,u(w,x,O);else for(b=r(d.length),w=new h(b);b>x;x++)O=v?g(d[x],x):d[x],u(w,x,O);return w.length=x,w}},{"../internals/call-with-safe-iteration-closing":112,"../internals/create-property":122,"../internals/function-bind-context":142,"../internals/get-iterator":145,"../internals/get-iterator-method":144,"../internals/is-array-iterator-method":158,"../internals/to-length":221,"../internals/to-object":222}],103:[function(o,m,f){var s=o("../internals/to-indexed-object"),t=o("../internals/to-length"),l=o("../internals/to-absolute-index"),a=function(u){return function(e,n,i){var c=s(e),d=t(c.length),h=l(i,d),p;if(u&&n!=n){for(;d>h;)if(p=c[h++],p!=p)return!0}else for(;d>h;h++)if((u||h in c)&&c[h]===n)return u||h||0;return!u&&-1}};m.exports={includes:a(!0),indexOf:a(!1)}},{"../internals/to-absolute-index":217,"../internals/to-indexed-object":219,"../internals/to-length":221}],104:[function(o,m,f){var s=o("../internals/function-bind-context"),t=o("../internals/indexed-object"),l=o("../internals/to-object"),a=o("../internals/to-length"),r=o("../internals/array-species-create"),u=[].push,e=function(i){var c=i==1,d=i==2,h=i==3,p=i==4,g=i==6,v=i==7,A=i==5||g;return function(x,b,w,S){for(var T=l(x),C=t(T),O=s(b,w,3),_=a(C.length),M=0,k=S||r,R=c?k(x,_):d||v?k(x,0):void 0,B,P;_>M;M++)if((A||M in C)&&(B=C[M],P=O(B,M,T),i))if(c)R[M]=P;else if(P)switch(i){case 3:return!0;case 5:return B;case 6:return M;case 2:u.call(R,B)}else switch(i){case 4:return!1;case 7:u.call(R,B)}return g?-1:h||p?p:R}};m.exports={forEach:e(0),map:e(1),filter:e(2),some:e(3),every:e(4),find:e(5),findIndex:e(6),filterReject:e(7)}},{"../internals/array-species-create":111,"../internals/function-bind-context":142,"../internals/indexed-object":154,"../internals/to-length":221,"../internals/to-object":222}],105:[function(o,m,f){"use strict";var s=o("../internals/to-indexed-object"),t=o("../internals/to-integer"),l=o("../internals/to-length"),a=o("../internals/array-method-is-strict"),r=Math.min,u=[].lastIndexOf,e=!!u&&1/[1].lastIndexOf(1,-0)<0,n=a("lastIndexOf"),i=e||!n;m.exports=i?function(d){if(e)return u.apply(this,arguments)||0;var h=s(this),p=l(h.length),g=p-1;for(arguments.length>1&&(g=r(g,t(arguments[1]))),g<0&&(g=p+g);g>=0;g--)if(g in h&&h[g]===d)return g||0;return-1}:u},{"../internals/array-method-is-strict":107,"../internals/to-indexed-object":219,"../internals/to-integer":220,"../internals/to-length":221}],106:[function(o,m,f){var s=o("../internals/fails"),t=o("../internals/well-known-symbol"),l=o("../internals/engine-v8-version"),a=t("species");m.exports=function(r){return l>=51||!s(function(){var u=[],e=u.constructor={};return e[a]=function(){return{foo:1}},u[r](Boolean).foo!==1})}},{"../internals/engine-v8-version":136,"../internals/fails":140,"../internals/well-known-symbol":237}],107:[function(o,m,f){"use strict";var s=o("../internals/fails");m.exports=function(t,l){var a=[][t];return!!a&&s(function(){a.call(null,l||function(){throw 1},1)})}},{"../internals/fails":140}],108:[function(o,m,f){var s=o("../internals/a-function"),t=o("../internals/to-object"),l=o("../internals/indexed-object"),a=o("../internals/to-length"),r=function(e){return function(n,i,c,d){s(i);var h=t(n),p=l(h),g=a(h.length),v=e?g-1:0,A=e?-1:1;if(c<2)for(;;){if(v in p){d=p[v],v+=A;break}if(v+=A,e?v<0:g<=v)throw TypeError("Reduce of empty array with no initial value")}for(;e?v>=0:g>v;v+=A)v in p&&(d=i(d,p[v],v,h));return d}};m.exports={left:r(!1),right:r(!0)}},{"../internals/a-function":89,"../internals/indexed-object":154,"../internals/to-length":221,"../internals/to-object":222}],109:[function(o,m,f){var s=Math.floor,t=function r(u,e){var n=u.length,i=s(n/2);return n<8?l(u,e):a(r(u.slice(0,i),e),r(u.slice(i),e),e)},l=function(u,e){for(var n=u.length,i=1,c,d;i<n;){for(d=i,c=u[i];d&&e(u[d-1],c)>0;)u[d]=u[--d];d!==i++&&(u[d]=c)}return u},a=function(u,e,n){for(var i=u.length,c=e.length,d=0,h=0,p=[];d<i||h<c;)d<i&&h<c?p.push(n(u[d],e[h])<=0?u[d++]:e[h++]):p.push(d<i?u[d++]:e[h++]);return p};m.exports=t},{}],110:[function(o,m,f){var s=o("../internals/is-object"),t=o("../internals/is-array"),l=o("../internals/well-known-symbol"),a=l("species");m.exports=function(r){var u;return t(r)&&(u=r.constructor,typeof u=="function"&&(u===Array||t(u.prototype))?u=void 0:s(u)&&(u=u[a],u===null&&(u=void 0))),u===void 0?Array:u}},{"../internals/is-array":159,"../internals/is-object":162,"../internals/well-known-symbol":237}],111:[function(o,m,f){var s=o("../internals/array-species-constructor");m.exports=function(t,l){return new(s(t))(l===0?0:l)}},{"../internals/array-species-constructor":110}],112:[function(o,m,f){var s=o("../internals/an-object"),t=o("../internals/iterator-close");m.exports=function(l,a,r,u){try{return u?a(s(r)[0],r[1]):a(r)}catch(e){t(l,"throw",e)}}},{"../internals/an-object":94,"../internals/iterator-close":167}],113:[function(o,m,f){var s=o("../internals/well-known-symbol"),t=s("iterator"),l=!1;try{var a=0,r={next:function(){return{done:!!a++}},return:function(){l=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(u){}m.exports=function(u,e){if(!e&&!l)return!1;var n=!1;try{var i={};i[t]=function(){return{next:function(){return{done:n=!0}}}},u(i)}catch(c){}return n}},{"../internals/well-known-symbol":237}],114:[function(o,m,f){var s={}.toString;m.exports=function(t){return s.call(t).slice(8,-1)}},{}],115:[function(o,m,f){var s=o("../internals/to-string-tag-support"),t=o("../internals/classof-raw"),l=o("../internals/well-known-symbol"),a=l("toStringTag"),r=t(function(){return arguments}())=="Arguments",u=function(n,i){try{return n[i]}catch(c){}};m.exports=s?t:function(e){var n,i,c;return e===void 0?"Undefined":e===null?"Null":typeof(i=u(n=Object(e),a))=="string"?i:r?t(n):(c=t(n))=="Object"&&typeof n.callee=="function"?"Arguments":c}},{"../internals/classof-raw":114,"../internals/to-string-tag-support":227,"../internals/well-known-symbol":237}],116:[function(o,m,f){var s=o("../internals/has"),t=o("../internals/own-keys"),l=o("../internals/object-get-own-property-descriptor"),a=o("../internals/object-define-property");m.exports=function(r,u){for(var e=t(u),n=a.f,i=l.f,c=0;c<e.length;c++){var d=e[c];s(r,d)||n(r,d,i(u,d))}}},{"../internals/has":148,"../internals/object-define-property":179,"../internals/object-get-own-property-descriptor":180,"../internals/own-keys":192}],117:[function(o,m,f){var s=o("../internals/well-known-symbol"),t=s("match");m.exports=function(l){var a=/./;try{"/./"[l](a)}catch(r){try{return a[t]=!1,"/./"[l](a)}catch(u){}}return!1}},{"../internals/well-known-symbol":237}],118:[function(o,m,f){var s=o("../internals/fails");m.exports=!s(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},{"../internals/fails":140}],119:[function(o,m,f){"use strict";var s=o("../internals/iterators-core").IteratorPrototype,t=o("../internals/object-create"),l=o("../internals/create-property-descriptor"),a=o("../internals/set-to-string-tag"),r=o("../internals/iterators"),u=function(){return this};m.exports=function(e,n,i){var c=n+" Iterator";return e.prototype=t(s,{next:l(1,i)}),a(e,c,!1,!0),r[c]=u,e}},{"../internals/create-property-descriptor":121,"../internals/iterators":169,"../internals/iterators-core":168,"../internals/object-create":177,"../internals/set-to-string-tag":208}],120:[function(o,m,f){var s=o("../internals/descriptors"),t=o("../internals/object-define-property"),l=o("../internals/create-property-descriptor");m.exports=s?function(a,r,u){return t.f(a,r,l(1,u))}:function(a,r,u){return a[r]=u,a}},{"../internals/create-property-descriptor":121,"../internals/descriptors":125,"../internals/object-define-property":179}],121:[function(o,m,f){m.exports=function(s,t){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:t}}},{}],122:[function(o,m,f){"use strict";var s=o("../internals/to-property-key"),t=o("../internals/object-define-property"),l=o("../internals/create-property-descriptor");m.exports=function(a,r,u){var e=s(r);e in a?t.f(a,e,l(0,u)):a[e]=u}},{"../internals/create-property-descriptor":121,"../internals/object-define-property":179,"../internals/to-property-key":226}],123:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/create-iterator-constructor"),l=o("../internals/object-get-prototype-of"),a=o("../internals/object-set-prototype-of"),r=o("../internals/set-to-string-tag"),u=o("../internals/create-non-enumerable-property"),e=o("../internals/redefine"),n=o("../internals/well-known-symbol"),i=o("../internals/is-pure"),c=o("../internals/iterators"),d=o("../internals/iterators-core"),h=d.IteratorPrototype,p=d.BUGGY_SAFARI_ITERATORS,g=n("iterator"),v="keys",A="values",x="entries",b=function(){return this};m.exports=function(w,S,T,C,O,_,M){t(T,S,C);var k=function(Y){if(Y===O&&j)return j;if(!p&&Y in P)return P[Y];switch(Y){case v:return function(){return new T(this,Y)};case A:return function(){return new T(this,Y)};case x:return function(){return new T(this,Y)}}return function(){return new T(this)}},R=S+" Iterator",B=!1,P=w.prototype,U=P[g]||P["@@iterator"]||O&&P[O],j=!p&&U||k(O),H=S=="Array"&&P.entries||U,W,G,V;if(H&&(W=l(H.call(new w)),h!==Object.prototype&&W.next&&(!i&&l(W)!==h&&(a?a(W,h):typeof W[g]!="function"&&u(W,g,b)),r(W,R,!0,!0),i&&(c[R]=b))),O==A&&U&&U.name!==A&&(B=!0,j=function(){return U.call(this)}),(!i||M)&&P[g]!==j&&u(P,g,j),c[S]=j,O)if(G={values:k(A),keys:_?j:k(v),entries:k(x)},M)for(V in G)(p||B||!(V in P))&&e(P,V,G[V]);else s({target:S,proto:!0,forced:p||B},G);return G}},{"../internals/create-iterator-constructor":119,"../internals/create-non-enumerable-property":120,"../internals/export":139,"../internals/is-pure":163,"../internals/iterators":169,"../internals/iterators-core":168,"../internals/object-get-prototype-of":184,"../internals/object-set-prototype-of":188,"../internals/redefine":197,"../internals/set-to-string-tag":208,"../internals/well-known-symbol":237}],124:[function(o,m,f){var s=o("../internals/path"),t=o("../internals/has"),l=o("../internals/well-known-symbol-wrapped"),a=o("../internals/object-define-property").f;m.exports=function(r){var u=s.Symbol||(s.Symbol={});t(u,r)||a(u,r,{value:l.f(r)})}},{"../internals/has":148,"../internals/object-define-property":179,"../internals/path":193,"../internals/well-known-symbol-wrapped":236}],125:[function(o,m,f){var s=o("../internals/fails");m.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":140}],126:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/is-object"),l=s.document,a=t(l)&&t(l.createElement);m.exports=function(r){return a?l.createElement(r):{}}},{"../internals/global":147,"../internals/is-object":162}],127:[function(o,m,f){m.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}},{}],128:[function(o,m,f){var s=o("../internals/engine-user-agent"),t=s.match(/firefox\/(\d+)/i);m.exports=!!t&&+t[1]},{"../internals/engine-user-agent":135}],129:[function(o,m,f){m.exports=typeof window=="object"},{}],130:[function(o,m,f){var s=o("../internals/engine-user-agent");m.exports=/MSIE|Trident/.test(s)},{"../internals/engine-user-agent":135}],131:[function(o,m,f){var s=o("../internals/engine-user-agent"),t=o("../internals/global");m.exports=/ipad|iphone|ipod/i.test(s)&&t.Pebble!==void 0},{"../internals/engine-user-agent":135,"../internals/global":147}],132:[function(o,m,f){var s=o("../internals/engine-user-agent");m.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},{"../internals/engine-user-agent":135}],133:[function(o,m,f){var s=o("../internals/classof-raw"),t=o("../internals/global");m.exports=s(t.process)=="process"},{"../internals/classof-raw":114,"../internals/global":147}],134:[function(o,m,f){var s=o("../internals/engine-user-agent");m.exports=/web0s(?!.*chrome)/i.test(s)},{"../internals/engine-user-agent":135}],135:[function(o,m,f){var s=o("../internals/get-built-in");m.exports=s("navigator","userAgent")||""},{"../internals/get-built-in":143}],136:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/engine-user-agent"),l=s.process,a=s.Deno,r=l&&l.versions||a&&a.version,u=r&&r.v8,e,n;u?(e=u.split("."),n=e[0]<4?1:e[0]+e[1]):t&&(e=t.match(/Edge\/(\d+)/),(!e||e[1]>=74)&&(e=t.match(/Chrome\/(\d+)/),e&&(n=e[1]))),m.exports=n&&+n},{"../internals/engine-user-agent":135,"../internals/global":147}],137:[function(o,m,f){var s=o("../internals/engine-user-agent"),t=s.match(/AppleWebKit\/(\d+)\./);m.exports=!!t&&+t[1]},{"../internals/engine-user-agent":135}],138:[function(o,m,f){m.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],139:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/object-get-own-property-descriptor").f,l=o("../internals/create-non-enumerable-property"),a=o("../internals/redefine"),r=o("../internals/set-global"),u=o("../internals/copy-constructor-properties"),e=o("../internals/is-forced");m.exports=function(n,i){var c=n.target,d=n.global,h=n.stat,p,g,v,A,x,b;if(d?g=s:h?g=s[c]||r(c,{}):g=(s[c]||{}).prototype,g)for(v in i){if(x=i[v],n.noTargetGet?(b=t(g,v),A=b&&b.value):A=g[v],p=e(d?v:c+(h?".":"#")+v,n.forced),!p&&A!==void 0){if(typeof x===typeof A)continue;u(x,A)}(n.sham||A&&A.sham)&&l(x,"sham",!0),a(g,v,x,n)}}},{"../internals/copy-constructor-properties":116,"../internals/create-non-enumerable-property":120,"../internals/global":147,"../internals/is-forced":160,"../internals/object-get-own-property-descriptor":180,"../internals/redefine":197,"../internals/set-global":206}],140:[function(o,m,f){m.exports=function(s){try{return!!s()}catch(t){return!0}}},{}],141:[function(o,m,f){"use strict";o("../modules/es.regexp.exec");var s=o("../internals/redefine"),t=o("../internals/regexp-exec"),l=o("../internals/fails"),a=o("../internals/well-known-symbol"),r=o("../internals/create-non-enumerable-property"),u=a("species"),e=RegExp.prototype;m.exports=function(n,i,c,d){var h=a(n),p=!l(function(){var x={};return x[h]=function(){return 7},""[n](x)!=7}),g=p&&!l(function(){var x=!1,b=/a/;return n==="split"&&(b={},b.constructor={},b.constructor[u]=function(){return b},b.flags="",b[h]=/./[h]),b.exec=function(){return x=!0,null},b[h](""),!x});if(!p||!g||c){var v=/./[h],A=i(h,""[n],function(x,b,w,S,T){var C=b.exec;return C===t||C===e.exec?p&&!T?{done:!0,value:v.call(b,w,S)}:{done:!0,value:x.call(w,b,S)}:{done:!1}});s(String.prototype,n,A[0]),s(e,h,A[1])}d&&r(e[h],"sham",!0)}},{"../internals/create-non-enumerable-property":120,"../internals/fails":140,"../internals/redefine":197,"../internals/regexp-exec":199,"../internals/well-known-symbol":237,"../modules/es.regexp.exec":261}],142:[function(o,m,f){var s=o("../internals/a-function");m.exports=function(t,l,a){if(s(t),l===void 0)return t;switch(a){case 0:return function(){return t.call(l)};case 1:return function(r){return t.call(l,r)};case 2:return function(r,u){return t.call(l,r,u)};case 3:return function(r,u,e){return t.call(l,r,u,e)}}return function(){return t.apply(l,arguments)}}},{"../internals/a-function":89}],143:[function(o,m,f){var s=o("../internals/global"),t=function(a){return typeof a=="function"?a:void 0};m.exports=function(l,a){return arguments.length<2?t(s[l]):s[l]&&s[l][a]}},{"../internals/global":147}],144:[function(o,m,f){var s=o("../internals/classof"),t=o("../internals/iterators"),l=o("../internals/well-known-symbol"),a=l("iterator");m.exports=function(r){if(r!=null)return r[a]||r["@@iterator"]||t[s(r)]}},{"../internals/classof":115,"../internals/iterators":169,"../internals/well-known-symbol":237}],145:[function(o,m,f){var s=o("../internals/an-object"),t=o("../internals/get-iterator-method");m.exports=function(l,a){var r=arguments.length<2?t(l):a;if(typeof r!="function")throw TypeError(String(l)+" is not iterable");return s(r.call(l))}},{"../internals/an-object":94,"../internals/get-iterator-method":144}],146:[function(o,m,f){var s=o("../internals/to-object"),t=Math.floor,l="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,r=/\$([$&'`]|\d{1,2})/g;m.exports=function(u,e,n,i,c,d){var h=n+u.length,p=i.length,g=r;return c!==void 0&&(c=s(c),g=a),l.call(d,g,function(v,A){var x;switch(A.charAt(0)){case"$":return"$";case"&":return u;case"`":return e.slice(0,n);case"'":return e.slice(h);case"<":x=c[A.slice(1,-1)];break;default:var b=+A;if(b===0)return v;if(b>p){var w=t(b/10);return w===0?v:w<=p?i[w-1]===void 0?A.charAt(1):i[w-1]+A.charAt(1):v}x=i[b-1]}return x===void 0?"":x})}},{"../internals/to-object":222}],147:[function(o,m,f){(function(s){(function(){var t=function(a){return a&&a.Math==Math&&a};m.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof s=="object"&&s)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],148:[function(o,m,f){var s=o("../internals/to-object"),t={}.hasOwnProperty;m.exports=Object.hasOwn||function(a,r){return t.call(s(a),r)}},{"../internals/to-object":222}],149:[function(o,m,f){m.exports={}},{}],150:[function(o,m,f){var s=o("../internals/global");m.exports=function(t,l){var a=s.console;a&&a.error&&(arguments.length===1?a.error(t):a.error(t,l))}},{"../internals/global":147}],151:[function(o,m,f){var s=o("../internals/get-built-in");m.exports=s("document","documentElement")},{"../internals/get-built-in":143}],152:[function(o,m,f){var s=o("../internals/descriptors"),t=o("../internals/fails"),l=o("../internals/document-create-element");m.exports=!s&&!t(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":125,"../internals/document-create-element":126,"../internals/fails":140}],153:[function(o,m,f){var s=Math.abs,t=Math.pow,l=Math.floor,a=Math.log,r=Math.LN2,u=function(i,c,d){var h=new Array(d),p=d*8-c-1,g=(1<<p)-1,v=g>>1,A=c===23?t(2,-24)-t(2,-77):0,x=i<0||i===0&&1/i<0?1:0,b=0,w,S,T;for(i=s(i),i!=i||i===Infinity?(S=i!=i?1:0,w=g):(w=l(a(i)/r),i*(T=t(2,-w))<1&&(w--,T*=2),w+v>=1?i+=A/T:i+=A*t(2,1-v),i*T>=2&&(w++,T/=2),w+v>=g?(S=0,w=g):w+v>=1?(S=(i*T-1)*t(2,c),w=w+v):(S=i*t(2,v-1)*t(2,c),w=0));c>=8;h[b++]=S&255,S/=256,c-=8);for(w=w<<c|S,p+=c;p>0;h[b++]=w&255,w/=256,p-=8);return h[--b]|=x*128,h},e=function(i,c){var d=i.length,h=d*8-c-1,p=(1<<h)-1,g=p>>1,v=h-7,A=d-1,x=i[A--],b=x&127,w;for(x>>=7;v>0;b=b*256+i[A],A--,v-=8);for(w=b&(1<<-v)-1,b>>=-v,v+=c;v>0;w=w*256+i[A],A--,v-=8);if(b===0)b=1-g;else{if(b===p)return w?NaN:x?-Infinity:Infinity;w=w+t(2,c),b=b-g}return(x?-1:1)*w*t(2,b-c)};m.exports={pack:u,unpack:e}},{}],154:[function(o,m,f){var s=o("../internals/fails"),t=o("../internals/classof-raw"),l="".split;m.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return t(a)=="String"?l.call(a,""):Object(a)}:Object},{"../internals/classof-raw":114,"../internals/fails":140}],155:[function(o,m,f){var s=o("../internals/is-object"),t=o("../internals/object-set-prototype-of");m.exports=function(l,a,r){var u,e;return t&&typeof(u=a.constructor)=="function"&&u!==r&&s(e=u.prototype)&&e!==r.prototype&&t(l,e),l}},{"../internals/is-object":162,"../internals/object-set-prototype-of":188}],156:[function(o,m,f){var s=o("../internals/shared-store"),t=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(l){return t.call(l)}),m.exports=s.inspectSource},{"../internals/shared-store":210}],157:[function(o,m,f){var s=o("../internals/native-weak-map"),t=o("../internals/global"),l=o("../internals/is-object"),a=o("../internals/create-non-enumerable-property"),r=o("../internals/has"),u=o("../internals/shared-store"),e=o("../internals/shared-key"),n=o("../internals/hidden-keys"),i="Object already initialized",c=t.WeakMap,d,h,p,g=function(C){return p(C)?h(C):d(C,{})},v=function(C){return function(O){var _;if(!l(O)||(_=h(O)).type!==C)throw TypeError("Incompatible receiver, "+C+" required");return _}};if(s||u.state){var A=u.state||(u.state=new c),x=A.get,b=A.has,w=A.set;d=function(C,O){if(b.call(A,C))throw new TypeError(i);return O.facade=C,w.call(A,C,O),O},h=function(C){return x.call(A,C)||{}},p=function(C){return b.call(A,C)}}else{var S=e("state");n[S]=!0,d=function(C,O){if(r(C,S))throw new TypeError(i);return O.facade=C,a(C,S,O),O},h=function(C){return r(C,S)?C[S]:{}},p=function(C){return r(C,S)}}m.exports={set:d,get:h,has:p,enforce:g,getterFor:v}},{"../internals/create-non-enumerable-property":120,"../internals/global":147,"../internals/has":148,"../internals/hidden-keys":149,"../internals/is-object":162,"../internals/native-weak-map":173,"../internals/shared-key":209,"../internals/shared-store":210}],158:[function(o,m,f){var s=o("../internals/well-known-symbol"),t=o("../internals/iterators"),l=s("iterator"),a=Array.prototype;m.exports=function(r){return r!==void 0&&(t.Array===r||a[l]===r)}},{"../internals/iterators":169,"../internals/well-known-symbol":237}],159:[function(o,m,f){var s=o("../internals/classof-raw");m.exports=Array.isArray||function(l){return s(l)=="Array"}},{"../internals/classof-raw":114}],160:[function(o,m,f){var s=o("../internals/fails"),t=/#|\.prototype\./,l=function(i,c){var d=r[a(i)];return d==e?!0:d==u?!1:typeof c=="function"?s(c):!!c},a=l.normalize=function(n){return String(n).replace(t,".").toLowerCase()},r=l.data={},u=l.NATIVE="N",e=l.POLYFILL="P";m.exports=l},{"../internals/fails":140}],161:[function(o,m,f){var s=o("../internals/is-object"),t=Math.floor;m.exports=function(a){return!s(a)&&isFinite(a)&&t(a)===a}},{"../internals/is-object":162}],162:[function(o,m,f){m.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},{}],163:[function(o,m,f){m.exports=!1},{}],164:[function(o,m,f){var s=o("../internals/is-object"),t=o("../internals/classof-raw"),l=o("../internals/well-known-symbol"),a=l("match");m.exports=function(r){var u;return s(r)&&((u=r[a])!==void 0?!!u:t(r)=="RegExp")}},{"../internals/classof-raw":114,"../internals/is-object":162,"../internals/well-known-symbol":237}],165:[function(o,m,f){var s=o("../internals/get-built-in"),t=o("../internals/use-symbol-as-uid");m.exports=t?function(l){return typeof l=="symbol"}:function(l){var a=s("Symbol");return typeof a=="function"&&Object(l)instanceof a}},{"../internals/get-built-in":143,"../internals/use-symbol-as-uid":235}],166:[function(o,m,f){var s=o("../internals/an-object"),t=o("../internals/is-array-iterator-method"),l=o("../internals/to-length"),a=o("../internals/function-bind-context"),r=o("../internals/get-iterator"),u=o("../internals/get-iterator-method"),e=o("../internals/iterator-close"),n=function(c,d){this.stopped=c,this.result=d};m.exports=function(i,c,d){var h=d&&d.that,p=!!(d&&d.AS_ENTRIES),g=!!(d&&d.IS_ITERATOR),v=!!(d&&d.INTERRUPTED),A=a(c,h,1+p+v),x,b,w,S,T,C,O,_=function(R){return x&&e(x,"normal",R),new n(!0,R)},M=function(R){return p?(s(R),v?A(R[0],R[1],_):A(R[0],R[1])):v?A(R,_):A(R)};if(g)x=i;else{if(b=u(i),typeof b!="function")throw TypeError("Target is not iterable");if(t(b)){for(w=0,S=l(i.length);S>w;w++)if(T=M(i[w]),T&&T instanceof n)return T;return new n(!1)}x=r(i,b)}for(C=x.next;!(O=C.call(x)).done;){try{T=M(O.value)}catch(k){e(x,"throw",k)}if(typeof T=="object"&&T&&T instanceof n)return T}return new n(!1)}},{"../internals/an-object":94,"../internals/function-bind-context":142,"../internals/get-iterator":145,"../internals/get-iterator-method":144,"../internals/is-array-iterator-method":158,"../internals/iterator-close":167,"../internals/to-length":221}],167:[function(o,m,f){var s=o("../internals/an-object");m.exports=function(t,l,a){var r,u;s(t);try{if(r=t.return,r===void 0){if(l==="throw")throw a;return a}r=r.call(t)}catch(e){u=!0,r=e}if(l==="throw")throw a;if(u)throw r;return s(r),a}},{"../internals/an-object":94}],168:[function(o,m,f){"use strict";var s=o("../internals/fails"),t=o("../internals/object-get-prototype-of"),l=o("../internals/create-non-enumerable-property"),a=o("../internals/has"),r=o("../internals/well-known-symbol"),u=o("../internals/is-pure"),e=r("iterator"),n=!1,i=function(){return this},c,d,h;[].keys&&(h=[].keys(),"next"in h?(d=t(t(h)),d!==Object.prototype&&(c=d)):n=!0);var p=c==null||s(function(){var g={};return c[e].call(g)!==g});p&&(c={}),(!u||p)&&!a(c,e)&&l(c,e,i),m.exports={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:n}},{"../internals/create-non-enumerable-property":120,"../internals/fails":140,"../internals/has":148,"../internals/is-pure":163,"../internals/object-get-prototype-of":184,"../internals/well-known-symbol":237}],169:[function(o,m,f){arguments[4][149][0].apply(f,arguments)},{dup:149}],170:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/object-get-own-property-descriptor").f,l=o("../internals/task").set,a=o("../internals/engine-is-ios"),r=o("../internals/engine-is-ios-pebble"),u=o("../internals/engine-is-webos-webkit"),e=o("../internals/engine-is-node"),n=s.MutationObserver||s.WebKitMutationObserver,i=s.document,c=s.process,d=s.Promise,h=t(s,"queueMicrotask"),p=h&&h.value,g,v,A,x,b,w,S,T;p||(g=function(){var O,_;for(e&&(O=c.domain)&&O.exit();v;){_=v.fn,v=v.next;try{_()}catch(M){throw v?x():A=void 0,M}}A=void 0,O&&O.enter()},!a&&!e&&!u&&n&&i?(b=!0,w=i.createTextNode(""),new n(g).observe(w,{characterData:!0}),x=function(){w.data=b=!b}):!r&&d&&d.resolve?(S=d.resolve(void 0),S.constructor=d,T=S.then,x=function(){T.call(S,g)}):e?x=function(){c.nextTick(g)}:x=function(){l.call(s,g)}),m.exports=p||function(C){var O={fn:C,next:void 0};A&&(A.next=O),v||(v=O,x()),A=O}},{"../internals/engine-is-ios":132,"../internals/engine-is-ios-pebble":131,"../internals/engine-is-node":133,"../internals/engine-is-webos-webkit":134,"../internals/global":147,"../internals/object-get-own-property-descriptor":180,"../internals/task":216}],171:[function(o,m,f){var s=o("../internals/global");m.exports=s.Promise},{"../internals/global":147}],172:[function(o,m,f){var s=o("../internals/engine-v8-version"),t=o("../internals/fails");m.exports=!!Object.getOwnPropertySymbols&&!t(function(){var l=Symbol();return!String(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&s&&s<41})},{"../internals/engine-v8-version":136,"../internals/fails":140}],173:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/inspect-source"),l=s.WeakMap;m.exports=typeof l=="function"&&/native code/.test(t(l))},{"../internals/global":147,"../internals/inspect-source":156}],174:[function(o,m,f){"use strict";var s=o("../internals/a-function"),t=function(a){var r,u;this.promise=new a(function(e,n){if(r!==void 0||u!==void 0)throw TypeError("Bad Promise constructor");r=e,u=n}),this.resolve=s(r),this.reject=s(u)};m.exports.f=function(l){return new t(l)}},{"../internals/a-function":89}],175:[function(o,m,f){var s=o("../internals/is-regexp");m.exports=function(t){if(s(t))throw TypeError("The method doesn't accept regular expressions");return t}},{"../internals/is-regexp":164}],176:[function(o,m,f){"use strict";var s=o("../internals/descriptors"),t=o("../internals/fails"),l=o("../internals/object-keys"),a=o("../internals/object-get-own-property-symbols"),r=o("../internals/object-property-is-enumerable"),u=o("../internals/to-object"),e=o("../internals/indexed-object"),n=Object.assign,i=Object.defineProperty;m.exports=!n||t(function(){if(s&&n({b:1},n(i({},"a",{enumerable:!0,get:function(){i(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var c={},d={},h=Symbol(),p="abcdefghijklmnopqrst";return c[h]=7,p.split("").forEach(function(g){d[g]=g}),n({},c)[h]!=7||l(n({},d)).join("")!=p})?function(d,h){for(var p=u(d),g=arguments.length,v=1,A=a.f,x=r.f;g>v;)for(var b=e(arguments[v++]),w=A?l(b).concat(A(b)):l(b),S=w.length,T=0,C;S>T;)C=w[T++],(!s||x.call(b,C))&&(p[C]=b[C]);return p}:n},{"../internals/descriptors":125,"../internals/fails":140,"../internals/indexed-object":154,"../internals/object-get-own-property-symbols":183,"../internals/object-keys":186,"../internals/object-property-is-enumerable":187,"../internals/to-object":222}],177:[function(o,m,f){var s=o("../internals/an-object"),t=o("../internals/object-define-properties"),l=o("../internals/enum-bug-keys"),a=o("../internals/hidden-keys"),r=o("../internals/html"),u=o("../internals/document-create-element"),e=o("../internals/shared-key"),n=">",i="<",c="prototype",d="script",h=e("IE_PROTO"),p=function(){},g=function(S){return i+d+n+S+i+"/"+d+n},v=function(S){S.write(g("")),S.close();var T=S.parentWindow.Object;return S=null,T},A=function(){var S=u("iframe"),T="java"+d+":",C;return S.style.display="none",r.appendChild(S),S.src=String(T),C=S.contentWindow.document,C.open(),C.write(g("document.F=Object")),C.close(),C.F},x,b=function(){try{x=new ActiveXObject("htmlfile")}catch(T){}b=typeof document!="undefined"?document.domain&&x?v(x):A():v(x);for(var S=l.length;S--;)delete b[c][l[S]];return b()};a[h]=!0,m.exports=Object.create||function(S,T){var C;return S!==null?(p[c]=s(S),C=new p,p[c]=null,C[h]=S):C=b(),T===void 0?C:t(C,T)}},{"../internals/an-object":94,"../internals/document-create-element":126,"../internals/enum-bug-keys":138,"../internals/hidden-keys":149,"../internals/html":151,"../internals/object-define-properties":178,"../internals/shared-key":209}],178:[function(o,m,f){var s=o("../internals/descriptors"),t=o("../internals/object-define-property"),l=o("../internals/an-object"),a=o("../internals/object-keys");m.exports=s?Object.defineProperties:function(u,e){l(u);for(var n=a(e),i=n.length,c=0,d;i>c;)t.f(u,d=n[c++],e[d]);return u}},{"../internals/an-object":94,"../internals/descriptors":125,"../internals/object-define-property":179,"../internals/object-keys":186}],179:[function(o,m,f){var s=o("../internals/descriptors"),t=o("../internals/ie8-dom-define"),l=o("../internals/an-object"),a=o("../internals/to-property-key"),r=Object.defineProperty;f.f=s?r:function(e,n,i){if(l(e),n=a(n),l(i),t)try{return r(e,n,i)}catch(c){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[n]=i.value),e}},{"../internals/an-object":94,"../internals/descriptors":125,"../internals/ie8-dom-define":152,"../internals/to-property-key":226}],180:[function(o,m,f){var s=o("../internals/descriptors"),t=o("../internals/object-property-is-enumerable"),l=o("../internals/create-property-descriptor"),a=o("../internals/to-indexed-object"),r=o("../internals/to-property-key"),u=o("../internals/has"),e=o("../internals/ie8-dom-define"),n=Object.getOwnPropertyDescriptor;f.f=s?n:function(c,d){if(c=a(c),d=r(d),e)try{return n(c,d)}catch(h){}if(u(c,d))return l(!t.f.call(c,d),c[d])}},{"../internals/create-property-descriptor":121,"../internals/descriptors":125,"../internals/has":148,"../internals/ie8-dom-define":152,"../internals/object-property-is-enumerable":187,"../internals/to-indexed-object":219,"../internals/to-property-key":226}],181:[function(o,m,f){var s=o("../internals/to-indexed-object"),t=o("../internals/object-get-own-property-names").f,l={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r=function(e){try{return t(e)}catch(n){return a.slice()}};m.exports.f=function(e){return a&&l.call(e)=="[object Window]"?r(e):t(s(e))}},{"../internals/object-get-own-property-names":182,"../internals/to-indexed-object":219}],182:[function(o,m,f){var s=o("../internals/object-keys-internal"),t=o("../internals/enum-bug-keys"),l=t.concat("length","prototype");f.f=Object.getOwnPropertyNames||function(r){return s(r,l)}},{"../internals/enum-bug-keys":138,"../internals/object-keys-internal":185}],183:[function(o,m,f){f.f=Object.getOwnPropertySymbols},{}],184:[function(o,m,f){var s=o("../internals/has"),t=o("../internals/to-object"),l=o("../internals/shared-key"),a=o("../internals/correct-prototype-getter"),r=l("IE_PROTO"),u=Object.prototype;m.exports=a?Object.getPrototypeOf:function(e){return e=t(e),s(e,r)?e[r]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},{"../internals/correct-prototype-getter":118,"../internals/has":148,"../internals/shared-key":209,"../internals/to-object":222}],185:[function(o,m,f){var s=o("../internals/has"),t=o("../internals/to-indexed-object"),l=o("../internals/array-includes").indexOf,a=o("../internals/hidden-keys");m.exports=function(r,u){var e=t(r),n=0,i=[],c;for(c in e)!s(a,c)&&s(e,c)&&i.push(c);for(;u.length>n;)s(e,c=u[n++])&&(~l(i,c)||i.push(c));return i}},{"../internals/array-includes":103,"../internals/has":148,"../internals/hidden-keys":149,"../internals/to-indexed-object":219}],186:[function(o,m,f){var s=o("../internals/object-keys-internal"),t=o("../internals/enum-bug-keys");m.exports=Object.keys||function(a){return s(a,t)}},{"../internals/enum-bug-keys":138,"../internals/object-keys-internal":185}],187:[function(o,m,f){"use strict";var s={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,l=t&&!s.call({1:2},1);f.f=l?function(r){var u=t(this,r);return!!u&&u.enumerable}:s},{}],188:[function(o,m,f){var s=o("../internals/an-object"),t=o("../internals/a-possible-prototype");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l=!1,a={},r;try{r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,r.call(a,[]),l=a instanceof Array}catch(u){}return function(e,n){return s(e),t(n),l?r.call(e,n):e.__proto__=n,e}}():void 0)},{"../internals/a-possible-prototype":90,"../internals/an-object":94}],189:[function(o,m,f){var s=o("../internals/descriptors"),t=o("../internals/object-keys"),l=o("../internals/to-indexed-object"),a=o("../internals/object-property-is-enumerable").f,r=function(e){return function(n){for(var i=l(n),c=t(i),d=c.length,h=0,p=[],g;d>h;)g=c[h++],(!s||a.call(i,g))&&p.push(e?[g,i[g]]:i[g]);return p}};m.exports={entries:r(!0),values:r(!1)}},{"../internals/descriptors":125,"../internals/object-keys":186,"../internals/object-property-is-enumerable":187,"../internals/to-indexed-object":219}],190:[function(o,m,f){"use strict";var s=o("../internals/to-string-tag-support"),t=o("../internals/classof");m.exports=s?{}.toString:function(){return"[object "+t(this)+"]"}},{"../internals/classof":115,"../internals/to-string-tag-support":227}],191:[function(o,m,f){var s=o("../internals/is-object");m.exports=function(t,l){var a,r;if(l==="string"&&typeof(a=t.toString)=="function"&&!s(r=a.call(t)))return r;if(typeof(a=t.valueOf)=="function"&&!s(r=a.call(t)))return r;if(l!=="string"&&typeof(a=t.toString)=="function"&&!s(r=a.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":162}],192:[function(o,m,f){var s=o("../internals/get-built-in"),t=o("../internals/object-get-own-property-names"),l=o("../internals/object-get-own-property-symbols"),a=o("../internals/an-object");m.exports=s("Reflect","ownKeys")||function(u){var e=t.f(a(u)),n=l.f;return n?e.concat(n(u)):e}},{"../internals/an-object":94,"../internals/get-built-in":143,"../internals/object-get-own-property-names":182,"../internals/object-get-own-property-symbols":183}],193:[function(o,m,f){var s=o("../internals/global");m.exports=s},{"../internals/global":147}],194:[function(o,m,f){m.exports=function(s){try{return{error:!1,value:s()}}catch(t){return{error:!0,value:t}}}},{}],195:[function(o,m,f){var s=o("../internals/an-object"),t=o("../internals/is-object"),l=o("../internals/new-promise-capability");m.exports=function(a,r){if(s(a),t(r)&&r.constructor===a)return r;var u=l.f(a),e=u.resolve;return e(r),u.promise}},{"../internals/an-object":94,"../internals/is-object":162,"../internals/new-promise-capability":174}],196:[function(o,m,f){var s=o("../internals/redefine");m.exports=function(t,l,a){for(var r in l)s(t,r,l[r],a);return t}},{"../internals/redefine":197}],197:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/create-non-enumerable-property"),l=o("../internals/has"),a=o("../internals/set-global"),r=o("../internals/inspect-source"),u=o("../internals/internal-state"),e=u.get,n=u.enforce,i=String(String).split("String");(m.exports=function(c,d,h,p){var g=p?!!p.unsafe:!1,v=p?!!p.enumerable:!1,A=p?!!p.noTargetGet:!1,x;if(typeof h=="function"&&(typeof d=="string"&&!l(h,"name")&&t(h,"name",d),x=n(h),x.source||(x.source=i.join(typeof d=="string"?d:""))),c===s){v?c[d]=h:a(d,h);return}else g?!A&&c[d]&&(v=!0):delete c[d];v?c[d]=h:t(c,d,h)})(Function.prototype,"toString",function(){return typeof this=="function"&&e(this).source||r(this)})},{"../internals/create-non-enumerable-property":120,"../internals/global":147,"../internals/has":148,"../internals/inspect-source":156,"../internals/internal-state":157,"../internals/set-global":206}],198:[function(o,m,f){var s=o("./classof-raw"),t=o("./regexp-exec");m.exports=function(l,a){var r=l.exec;if(typeof r=="function"){var u=r.call(l,a);if(typeof u!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return u}if(s(l)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return t.call(l,a)}},{"./classof-raw":114,"./regexp-exec":199}],199:[function(o,m,f){"use strict";var s=o("../internals/to-string"),t=o("../internals/regexp-flags"),l=o("../internals/regexp-sticky-helpers"),a=o("../internals/shared"),r=o("../internals/object-create"),u=o("../internals/internal-state").get,e=o("../internals/regexp-unsupported-dot-all"),n=o("../internals/regexp-unsupported-ncg"),i=RegExp.prototype.exec,c=a("native-string-replace",String.prototype.replace),d=i,h=function(){var A=/a/,x=/b*/g;return i.call(A,"a"),i.call(x,"a"),A.lastIndex!==0||x.lastIndex!==0}(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,v=h||g||p||e||n;v&&(d=function(x){var b=this,w=u(b),S=s(x),T=w.raw,C,O,_,M,k,R,B;if(T)return T.lastIndex=b.lastIndex,C=d.call(T,S),b.lastIndex=T.lastIndex,C;var P=w.groups,U=p&&b.sticky,j=t.call(b),H=b.source,W=0,G=S;if(U&&(j=j.replace("y",""),j.indexOf("g")===-1&&(j+="g"),G=S.slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&S.charAt(b.lastIndex-1)!==`
|
|
|
`)&&(H="(?: "+H+")",G=" "+G,W++),O=new RegExp("^(?:"+H+")",j)),g&&(O=new RegExp("^"+H+"$(?!\\s)",j)),h&&(_=b.lastIndex),M=i.call(U?O:b,G),U?M?(M.input=M.input.slice(W),M[0]=M[0].slice(W),M.index=b.lastIndex,b.lastIndex+=M[0].length):b.lastIndex=0:h&&M&&(b.lastIndex=b.global?M.index+M[0].length:_),g&&M&&M.length>1&&c.call(M[0],O,function(){for(k=1;k<arguments.length-2;k++)arguments[k]===void 0&&(M[k]=void 0)}),M&&P)for(M.groups=R=r(null),k=0;k<P.length;k++)B=P[k],R[B[0]]=M[B[1]];return M}),m.exports=d},{"../internals/internal-state":157,"../internals/object-create":177,"../internals/regexp-flags":200,"../internals/regexp-sticky-helpers":201,"../internals/regexp-unsupported-dot-all":202,"../internals/regexp-unsupported-ncg":203,"../internals/shared":211,"../internals/to-string":228}],200:[function(o,m,f){"use strict";var s=o("../internals/an-object");m.exports=function(){var t=s(this),l="";return t.global&&(l+="g"),t.ignoreCase&&(l+="i"),t.multiline&&(l+="m"),t.dotAll&&(l+="s"),t.unicode&&(l+="u"),t.sticky&&(l+="y"),l}},{"../internals/an-object":94}],201:[function(o,m,f){var s=o("../internals/fails"),t=o("../internals/global"),l=t.RegExp;f.UNSUPPORTED_Y=s(function(){var a=l("a","y");return a.lastIndex=2,a.exec("abcd")!=null}),f.BROKEN_CARET=s(function(){var a=l("^r","gy");return a.lastIndex=2,a.exec("str")!=null})},{"../internals/fails":140,"../internals/global":147}],202:[function(o,m,f){var s=o("./fails"),t=o("../internals/global"),l=t.RegExp;m.exports=s(function(){var a=l(".","s");return!(a.dotAll&&a.exec(`
|
|
|
`)&&a.flags==="s")})},{"../internals/global":147,"./fails":140}],203:[function(o,m,f){var s=o("./fails"),t=o("../internals/global"),l=t.RegExp;m.exports=s(function(){var a=l("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"})},{"../internals/global":147,"./fails":140}],204:[function(o,m,f){m.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},{}],205:[function(o,m,f){m.exports=Object.is||function(t,l){return t===l?t!==0||1/t===1/l:t!=t&&l!=l}},{}],206:[function(o,m,f){var s=o("../internals/global");m.exports=function(t,l){try{Object.defineProperty(s,t,{value:l,configurable:!0,writable:!0})}catch(a){s[t]=l}return l}},{"../internals/global":147}],207:[function(o,m,f){"use strict";var s=o("../internals/get-built-in"),t=o("../internals/object-define-property"),l=o("../internals/well-known-symbol"),a=o("../internals/descriptors"),r=l("species");m.exports=function(u){var e=s(u),n=t.f;a&&e&&!e[r]&&n(e,r,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":125,"../internals/get-built-in":143,"../internals/object-define-property":179,"../internals/well-known-symbol":237}],208:[function(o,m,f){var s=o("../internals/object-define-property").f,t=o("../internals/has"),l=o("../internals/well-known-symbol"),a=l("toStringTag");m.exports=function(r,u,e){r&&!t(r=e?r:r.prototype,a)&&s(r,a,{configurable:!0,value:u})}},{"../internals/has":148,"../internals/object-define-property":179,"../internals/well-known-symbol":237}],209:[function(o,m,f){var s=o("../internals/shared"),t=o("../internals/uid"),l=s("keys");m.exports=function(a){return l[a]||(l[a]=t(a))}},{"../internals/shared":211,"../internals/uid":234}],210:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/set-global"),l="__core-js_shared__",a=s[l]||t(l,{});m.exports=a},{"../internals/global":147,"../internals/set-global":206}],211:[function(o,m,f){var s=o("../internals/is-pure"),t=o("../internals/shared-store");(m.exports=function(l,a){return t[l]||(t[l]=a!==void 0?a:{})})("versions",[]).push({version:"3.17.2",mode:s?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":163,"../internals/shared-store":210}],212:[function(o,m,f){var s=o("../internals/an-object"),t=o("../internals/a-function"),l=o("../internals/well-known-symbol"),a=l("species");m.exports=function(r,u){var e=s(r).constructor,n;return e===void 0||(n=s(e)[a])==null?u:t(n)}},{"../internals/a-function":89,"../internals/an-object":94,"../internals/well-known-symbol":237}],213:[function(o,m,f){var s=o("../internals/to-integer"),t=o("../internals/to-string"),l=o("../internals/require-object-coercible"),a=function(u){return function(e,n){var i=t(l(e)),c=s(n),d=i.length,h,p;return c<0||c>=d?u?"":void 0:(h=i.charCodeAt(c),h<55296||h>56319||c+1===d||(p=i.charCodeAt(c+1))<56320||p>57343?u?i.charAt(c):h:u?i.slice(c,c+2):(h-55296<<10)+(p-56320)+65536)}};m.exports={codeAt:a(!1),charAt:a(!0)}},{"../internals/require-object-coercible":204,"../internals/to-integer":220,"../internals/to-string":228}],214:[function(o,m,f){var s=o("../internals/fails"),t=o("../internals/whitespaces"),l="\u200B\x85\u180E";m.exports=function(a){return s(function(){return!!t[a]()||l[a]()!=l||t[a].name!==a})}},{"../internals/fails":140,"../internals/whitespaces":238}],215:[function(o,m,f){var s=o("../internals/require-object-coercible"),t=o("../internals/to-string"),l=o("../internals/whitespaces"),a="["+l+"]",r=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),e=function(i){return function(c){var d=t(s(c));return i&1&&(d=d.replace(r,"")),i&2&&(d=d.replace(u,"")),d}};m.exports={start:e(1),end:e(2),trim:e(3)}},{"../internals/require-object-coercible":204,"../internals/to-string":228,"../internals/whitespaces":238}],216:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/fails"),l=o("../internals/function-bind-context"),a=o("../internals/html"),r=o("../internals/document-create-element"),u=o("../internals/engine-is-ios"),e=o("../internals/engine-is-node"),n=s.setImmediate,i=s.clearImmediate,c=s.process,d=s.MessageChannel,h=s.Dispatch,p=0,g={},v="onreadystatechange",A,x,b,w;try{A=s.location}catch(_){}var S=function(M){if(g.hasOwnProperty(M)){var k=g[M];delete g[M],k()}},T=function(M){return function(){S(M)}},C=function(M){S(M.data)},O=function(M){s.postMessage(String(M),A.protocol+"//"+A.host)};(!n||!i)&&(n=function(M){for(var k=[],R=arguments.length,B=1;R>B;)k.push(arguments[B++]);return g[++p]=function(){(typeof M=="function"?M:Function(M)).apply(void 0,k)},x(p),p},i=function(M){delete g[M]},e?x=function(M){c.nextTick(T(M))}:h&&h.now?x=function(M){h.now(T(M))}:d&&!u?(b=new d,w=b.port2,b.port1.onmessage=C,x=l(w.postMessage,w,1)):s.addEventListener&&typeof postMessage=="function"&&!s.importScripts&&A&&A.protocol!=="file:"&&!t(O)?(x=O,s.addEventListener("message",C,!1)):v in r("script")?x=function(M){a.appendChild(r("script"))[v]=function(){a.removeChild(this),S(M)}}:x=function(M){setTimeout(T(M),0)}),m.exports={set:n,clear:i}},{"../internals/document-create-element":126,"../internals/engine-is-ios":132,"../internals/engine-is-node":133,"../internals/fails":140,"../internals/function-bind-context":142,"../internals/global":147,"../internals/html":151}],217:[function(o,m,f){var s=o("../internals/to-integer"),t=Math.max,l=Math.min;m.exports=function(a,r){var u=s(a);return u<0?t(u+r,0):l(u,r)}},{"../internals/to-integer":220}],218:[function(o,m,f){var s=o("../internals/to-integer"),t=o("../internals/to-length");m.exports=function(l){if(l===void 0)return 0;var a=s(l),r=t(a);if(a!==r)throw RangeError("Wrong length or index");return r}},{"../internals/to-integer":220,"../internals/to-length":221}],219:[function(o,m,f){var s=o("../internals/indexed-object"),t=o("../internals/require-object-coercible");m.exports=function(l){return s(t(l))}},{"../internals/indexed-object":154,"../internals/require-object-coercible":204}],220:[function(o,m,f){var s=Math.ceil,t=Math.floor;m.exports=function(l){return isNaN(l=+l)?0:(l>0?t:s)(l)}},{}],221:[function(o,m,f){var s=o("../internals/to-integer"),t=Math.min;m.exports=function(l){return l>0?t(s(l),9007199254740991):0}},{"../internals/to-integer":220}],222:[function(o,m,f){var s=o("../internals/require-object-coercible");m.exports=function(t){return Object(s(t))}},{"../internals/require-object-coercible":204}],223:[function(o,m,f){var s=o("../internals/to-positive-integer");m.exports=function(t,l){var a=s(t);if(a%l)throw RangeError("Wrong offset");return a}},{"../internals/to-positive-integer":224}],224:[function(o,m,f){var s=o("../internals/to-integer");m.exports=function(t){var l=s(t);if(l<0)throw RangeError("The argument can't be less than 0");return l}},{"../internals/to-integer":220}],225:[function(o,m,f){var s=o("../internals/is-object"),t=o("../internals/is-symbol"),l=o("../internals/ordinary-to-primitive"),a=o("../internals/well-known-symbol"),r=a("toPrimitive");m.exports=function(u,e){if(!s(u)||t(u))return u;var n=u[r],i;if(n!==void 0){if(e===void 0&&(e="default"),i=n.call(u,e),!s(i)||t(i))return i;throw TypeError("Can't convert object to primitive value")}return e===void 0&&(e="number"),l(u,e)}},{"../internals/is-object":162,"../internals/is-symbol":165,"../internals/ordinary-to-primitive":191,"../internals/well-known-symbol":237}],226:[function(o,m,f){var s=o("../internals/to-primitive"),t=o("../internals/is-symbol");m.exports=function(l){var a=s(l,"string");return t(a)?a:String(a)}},{"../internals/is-symbol":165,"../internals/to-primitive":225}],227:[function(o,m,f){var s=o("../internals/well-known-symbol"),t=s("toStringTag"),l={};l[t]="z",m.exports=String(l)==="[object z]"},{"../internals/well-known-symbol":237}],228:[function(o,m,f){var s=o("../internals/is-symbol");m.exports=function(t){if(s(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},{"../internals/is-symbol":165}],229:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/global"),l=o("../internals/descriptors"),a=o("../internals/typed-array-constructors-require-wrappers"),r=o("../internals/array-buffer-view-core"),u=o("../internals/array-buffer"),e=o("../internals/an-instance"),n=o("../internals/create-property-descriptor"),i=o("../internals/create-non-enumerable-property"),c=o("../internals/is-integer"),d=o("../internals/to-length"),h=o("../internals/to-index"),p=o("../internals/to-offset"),g=o("../internals/to-property-key"),v=o("../internals/has"),A=o("../internals/classof"),x=o("../internals/is-object"),b=o("../internals/is-symbol"),w=o("../internals/object-create"),S=o("../internals/object-set-prototype-of"),T=o("../internals/object-get-own-property-names").f,C=o("../internals/typed-array-from"),O=o("../internals/array-iteration").forEach,_=o("../internals/set-species"),M=o("../internals/object-define-property"),k=o("../internals/object-get-own-property-descriptor"),R=o("../internals/internal-state"),B=o("../internals/inherit-if-required"),P=R.get,U=R.set,j=M.f,H=k.f,W=Math.round,G=t.RangeError,V=u.ArrayBuffer,Z=u.DataView,Y=r.NATIVE_ARRAY_BUFFER_VIEWS,Q=r.TYPED_ARRAY_CONSTRUCTOR,oe=r.TYPED_ARRAY_TAG,ue=r.TypedArray,Le=r.TypedArrayPrototype,me=r.aTypedArrayConstructor,Ie=r.isTypedArray,X="BYTES_PER_ELEMENT",q="Wrong length",We=function(De,Ee){for(var ce=0,ne=Ee.length,ee=new(me(De))(ne);ne>ce;)ee[ce]=Ee[ce++];return ee},$=function(De,Ee){j(De,Ee,{get:function(){return P(this)[Ee]}})},J=function(De){var Ee;return De instanceof V||(Ee=A(De))=="ArrayBuffer"||Ee=="SharedArrayBuffer"},le=function(De,Ee){return Ie(De)&&!b(Ee)&&Ee in De&&c(+Ee)&&Ee>=0},de=function(De,Ee){return Ee=g(Ee),le(De,Ee)?n(2,De[Ee]):H(De,Ee)},Ne=function(De,Ee,ce){return Ee=g(Ee),le(De,Ee)&&x(ce)&&v(ce,"value")&&!v(ce,"get")&&!v(ce,"set")&&!ce.configurable&&(!v(ce,"writable")||ce.writable)&&(!v(ce,"enumerable")||ce.enumerable)?(De[Ee]=ce.value,De):j(De,Ee,ce)};l?(Y||(k.f=de,M.f=Ne,$(Le,"buffer"),$(Le,"byteOffset"),$(Le,"byteLength"),$(Le,"length")),s({target:"Object",stat:!0,forced:!Y},{getOwnPropertyDescriptor:de,defineProperty:Ne}),m.exports=function(we,De,Ee){var ce=we.match(/\d+$/)[0]/8,ne=we+(Ee?"Clamped":"")+"Array",ee="get"+we,Ae="set"+we,Ve=t[ne],Ke=Ve,Oe=Ke&&Ke.prototype,it={},Fe=function(St,Et){var je=P(St);return je.view[ee](Et*ce+je.byteOffset,!0)},ft=function(St,Et,je){var pe=P(St);Ee&&(je=(je=W(je))<0?0:je>255?255:je&255),pe.view[Ae](Et*ce+pe.byteOffset,je,!0)},At=function(St,Et){j(St,Et,{get:function(){return Fe(this,Et)},set:function(pe){return ft(this,Et,pe)},enumerable:!0})};Y?a&&(Ke=De(function(bt,St,Et,je){return e(bt,Ke,ne),B(function(){return x(St)?J(St)?je!==void 0?new Ve(St,p(Et,ce),je):Et!==void 0?new Ve(St,p(Et,ce)):new Ve(St):Ie(St)?We(Ke,St):C.call(Ke,St):new Ve(h(St))}(),bt,Ke)}),S&&S(Ke,ue),O(T(Ve),function(bt){bt in Ke||i(Ke,bt,Ve[bt])}),Ke.prototype=Oe):(Ke=De(function(bt,St,Et,je){e(bt,Ke,ne);var pe=0,ie=0,st,Qe,ve;if(!x(St))ve=h(St),Qe=ve*ce,st=new V(Qe);else if(J(St)){st=St,ie=p(Et,ce);var Bt=St.byteLength;if(je===void 0){if(Bt%ce)throw G(q);if(Qe=Bt-ie,Qe<0)throw G(q)}else if(Qe=d(je)*ce,Qe+ie>Bt)throw G(q);ve=Qe/ce}else return Ie(St)?We(Ke,St):C.call(Ke,St);for(U(bt,{buffer:st,byteOffset:ie,byteLength:Qe,length:ve,view:new Z(st)});pe<ve;)At(bt,pe++)}),S&&S(Ke,ue),Oe=Ke.prototype=w(Le)),Oe.constructor!==Ke&&i(Oe,"constructor",Ke),i(Oe,Q,Ke),oe&&i(Oe,oe,ne),it[ne]=Ke,s({global:!0,forced:Ke!=Ve,sham:!Y},it),X in Ke||i(Ke,X,ce),X in Oe||i(Oe,X,ce),_(ne)}):m.exports=function(){}},{"../internals/an-instance":93,"../internals/array-buffer":97,"../internals/array-buffer-view-core":96,"../internals/array-iteration":104,"../internals/classof":115,"../internals/create-non-enumerable-property":120,"../internals/create-property-descriptor":121,"../internals/descriptors":125,"../internals/export":139,"../internals/global":147,"../internals/has":148,"../internals/inherit-if-required":155,"../internals/internal-state":157,"../internals/is-integer":161,"../internals/is-object":162,"../internals/is-symbol":165,"../internals/object-create":177,"../internals/object-define-property":179,"../internals/object-get-own-property-descriptor":180,"../internals/object-get-own-property-names":182,"../internals/object-set-prototype-of":188,"../internals/set-species":207,"../internals/to-index":218,"../internals/to-length":221,"../internals/to-offset":223,"../internals/to-property-key":226,"../internals/typed-array-constructors-require-wrappers":230,"../internals/typed-array-from":232}],230:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/fails"),l=o("../internals/check-correctness-of-iteration"),a=o("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,r=s.ArrayBuffer,u=s.Int8Array;m.exports=!a||!t(function(){u(1)})||!t(function(){new u(-1)})||!l(function(e){new u,new u(null),new u(1.5),new u(e)},!0)||t(function(){return new u(new r(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":96,"../internals/check-correctness-of-iteration":113,"../internals/fails":140,"../internals/global":147}],231:[function(o,m,f){var s=o("../internals/array-from-constructor-and-list"),t=o("../internals/typed-array-species-constructor");m.exports=function(l,a){return s(t(l),a)}},{"../internals/array-from-constructor-and-list":101,"../internals/typed-array-species-constructor":233}],232:[function(o,m,f){var s=o("../internals/to-object"),t=o("../internals/to-length"),l=o("../internals/get-iterator"),a=o("../internals/get-iterator-method"),r=o("../internals/is-array-iterator-method"),u=o("../internals/function-bind-context"),e=o("../internals/array-buffer-view-core").aTypedArrayConstructor;m.exports=function(i){var c=s(i),d=arguments.length,h=d>1?arguments[1]:void 0,p=h!==void 0,g=a(c),v,A,x,b,w,S;if(g!=null&&!r(g))for(w=l(c,g),S=w.next,c=[];!(b=S.call(w)).done;)c.push(b.value);for(p&&d>2&&(h=u(h,arguments[2],2)),A=t(c.length),x=new(e(this))(A),v=0;A>v;v++)x[v]=p?h(c[v],v):c[v];return x}},{"../internals/array-buffer-view-core":96,"../internals/function-bind-context":142,"../internals/get-iterator":145,"../internals/get-iterator-method":144,"../internals/is-array-iterator-method":158,"../internals/to-length":221,"../internals/to-object":222}],233:[function(o,m,f){var s=o("../internals/array-buffer-view-core"),t=o("../internals/species-constructor"),l=s.TYPED_ARRAY_CONSTRUCTOR,a=s.aTypedArrayConstructor;m.exports=function(r){return a(t(r,r[l]))}},{"../internals/array-buffer-view-core":96,"../internals/species-constructor":212}],234:[function(o,m,f){var s=0,t=Math.random();m.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++s+t).toString(36)}},{}],235:[function(o,m,f){var s=o("../internals/native-symbol");m.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":172}],236:[function(o,m,f){var s=o("../internals/well-known-symbol");f.f=s},{"../internals/well-known-symbol":237}],237:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/shared"),l=o("../internals/has"),a=o("../internals/uid"),r=o("../internals/native-symbol"),u=o("../internals/use-symbol-as-uid"),e=t("wks"),n=s.Symbol,i=u?n:n&&n.withoutSetter||a;m.exports=function(c){return(!l(e,c)||!(r||typeof e[c]=="string"))&&(r&&l(n,c)?e[c]=n[c]:e[c]=i("Symbol."+c)),e[c]}},{"../internals/global":147,"../internals/has":148,"../internals/native-symbol":172,"../internals/shared":211,"../internals/uid":234,"../internals/use-symbol-as-uid":235}],238:[function(o,m,f){m.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],239:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/global"),l=o("../internals/array-buffer"),a=o("../internals/set-species"),r="ArrayBuffer",u=l[r],e=t[r];s({global:!0,forced:e!==u},{ArrayBuffer:u}),a(r)},{"../internals/array-buffer":97,"../internals/export":139,"../internals/global":147,"../internals/set-species":207}],240:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/fails"),l=o("../internals/array-buffer"),a=o("../internals/an-object"),r=o("../internals/to-absolute-index"),u=o("../internals/to-length"),e=o("../internals/species-constructor"),n=l.ArrayBuffer,i=l.DataView,c=n.prototype.slice,d=t(function(){return!new n(2).slice(1,void 0).byteLength});s({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:d},{slice:function(p,g){if(c!==void 0&&g===void 0)return c.call(a(this),p);for(var v=a(this).byteLength,A=r(p,v),x=r(g===void 0?v:g,v),b=new(e(this,n))(u(x-A)),w=new i(this),S=new i(b),T=0;A<x;)S.setUint8(T++,w.getUint8(A++));return b}})},{"../internals/an-object":94,"../internals/array-buffer":97,"../internals/export":139,"../internals/fails":140,"../internals/species-constructor":212,"../internals/to-absolute-index":217,"../internals/to-length":221}],241:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/fails"),l=o("../internals/is-array"),a=o("../internals/is-object"),r=o("../internals/to-object"),u=o("../internals/to-length"),e=o("../internals/create-property"),n=o("../internals/array-species-create"),i=o("../internals/array-method-has-species-support"),c=o("../internals/well-known-symbol"),d=o("../internals/engine-v8-version"),h=c("isConcatSpreadable"),p=9007199254740991,g="Maximum allowed index exceeded",v=d>=51||!t(function(){var w=[];return w[h]=!1,w.concat()[0]!==w}),A=i("concat"),x=function(S){if(!a(S))return!1;var T=S[h];return T!==void 0?!!T:l(S)},b=!v||!A;s({target:"Array",proto:!0,forced:b},{concat:function(S){var T=r(this),C=n(T,0),O=0,_,M,k,R,B;for(_=-1,k=arguments.length;_<k;_++)if(B=_===-1?T:arguments[_],x(B)){if(R=u(B.length),O+R>p)throw TypeError(g);for(M=0;M<R;M++,O++)M in B&&e(C,O,B[M])}else{if(O>=p)throw TypeError(g);e(C,O++,B)}return C.length=O,C}})},{"../internals/array-method-has-species-support":106,"../internals/array-species-create":111,"../internals/create-property":122,"../internals/engine-v8-version":136,"../internals/export":139,"../internals/fails":140,"../internals/is-array":159,"../internals/is-object":162,"../internals/to-length":221,"../internals/to-object":222,"../internals/well-known-symbol":237}],242:[function(o,m,f){var s=o("../internals/export"),t=o("../internals/array-fill"),l=o("../internals/add-to-unscopables");s({target:"Array",proto:!0},{fill:t}),l("fill")},{"../internals/add-to-unscopables":91,"../internals/array-fill":99,"../internals/export":139}],243:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/array-iteration").filter,l=o("../internals/array-method-has-species-support"),a=l("filter");s({target:"Array",proto:!0,forced:!a},{filter:function(u){return t(this,u,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":104,"../internals/array-method-has-species-support":106,"../internals/export":139}],244:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/array-iteration").find,l=o("../internals/add-to-unscopables"),a="find",r=!0;a in[]&&Array(1)[a](function(){r=!1}),s({target:"Array",proto:!0,forced:r},{find:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),l(a)},{"../internals/add-to-unscopables":91,"../internals/array-iteration":104,"../internals/export":139}],245:[function(o,m,f){var s=o("../internals/export"),t=o("../internals/array-from"),l=o("../internals/check-correctness-of-iteration"),a=!l(function(r){Array.from(r)});s({target:"Array",stat:!0,forced:a},{from:t})},{"../internals/array-from":102,"../internals/check-correctness-of-iteration":113,"../internals/export":139}],246:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/array-includes").includes,l=o("../internals/add-to-unscopables");s({target:"Array",proto:!0},{includes:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}}),l("includes")},{"../internals/add-to-unscopables":91,"../internals/array-includes":103,"../internals/export":139}],247:[function(o,m,f){"use strict";var s=o("../internals/to-indexed-object"),t=o("../internals/add-to-unscopables"),l=o("../internals/iterators"),a=o("../internals/internal-state"),r=o("../internals/define-iterator"),u="Array Iterator",e=a.set,n=a.getterFor(u);m.exports=r(Array,"Array",function(i,c){e(this,{type:u,target:s(i),index:0,kind:c})},function(){var i=n(this),c=i.target,d=i.kind,h=i.index++;return!c||h>=c.length?(i.target=void 0,{value:void 0,done:!0}):d=="keys"?{value:h,done:!1}:d=="values"?{value:c[h],done:!1}:{value:[h,c[h]],done:!1}},"values"),l.Arguments=l.Array,t("keys"),t("values"),t("entries")},{"../internals/add-to-unscopables":91,"../internals/define-iterator":123,"../internals/internal-state":157,"../internals/iterators":169,"../internals/to-indexed-object":219}],248:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/indexed-object"),l=o("../internals/to-indexed-object"),a=o("../internals/array-method-is-strict"),r=[].join,u=t!=Object,e=a("join",",");s({target:"Array",proto:!0,forced:u||!e},{join:function(i){return r.call(l(this),i===void 0?",":i)}})},{"../internals/array-method-is-strict":107,"../internals/export":139,"../internals/indexed-object":154,"../internals/to-indexed-object":219}],249:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/array-iteration").map,l=o("../internals/array-method-has-species-support"),a=l("map");s({target:"Array",proto:!0,forced:!a},{map:function(u){return t(this,u,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":104,"../internals/array-method-has-species-support":106,"../internals/export":139}],250:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/is-object"),l=o("../internals/is-array"),a=o("../internals/to-absolute-index"),r=o("../internals/to-length"),u=o("../internals/to-indexed-object"),e=o("../internals/create-property"),n=o("../internals/well-known-symbol"),i=o("../internals/array-method-has-species-support"),c=i("slice"),d=n("species"),h=[].slice,p=Math.max;s({target:"Array",proto:!0,forced:!c},{slice:function(v,A){var x=u(this),b=r(x.length),w=a(v,b),S=a(A===void 0?b:A,b),T,C,O;if(l(x)&&(T=x.constructor,typeof T=="function"&&(T===Array||l(T.prototype))?T=void 0:t(T)&&(T=T[d],T===null&&(T=void 0)),T===Array||T===void 0))return h.call(x,w,S);for(C=new(T===void 0?Array:T)(p(S-w,0)),O=0;w<S;w++,O++)w in x&&e(C,O,x[w]);return C.length=O,C}})},{"../internals/array-method-has-species-support":106,"../internals/create-property":122,"../internals/export":139,"../internals/is-array":159,"../internals/is-object":162,"../internals/to-absolute-index":217,"../internals/to-indexed-object":219,"../internals/to-length":221,"../internals/well-known-symbol":237}],251:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/a-function"),l=o("../internals/to-object"),a=o("../internals/to-length"),r=o("../internals/to-string"),u=o("../internals/fails"),e=o("../internals/array-sort"),n=o("../internals/array-method-is-strict"),i=o("../internals/engine-ff-version"),c=o("../internals/engine-is-ie-or-edge"),d=o("../internals/engine-v8-version"),h=o("../internals/engine-webkit-version"),p=[],g=p.sort,v=u(function(){p.sort(void 0)}),A=u(function(){p.sort(null)}),x=n("sort"),b=!u(function(){if(d)return d<70;if(i&&i>3)return;if(c)return!0;if(h)return h<603;var T="",C,O,_,M;for(C=65;C<76;C++){O=String.fromCharCode(C);switch(C){case 66:case 69:case 70:case 72:_=3;break;case 68:case 71:_=4;break;default:_=2}for(M=0;M<47;M++)p.push({k:O+M,v:_})}for(p.sort(function(k,R){return R.v-k.v}),M=0;M<p.length;M++)O=p[M].k.charAt(0),T.charAt(T.length-1)!==O&&(T+=O);return T!=="DGBEFHACIJK"}),w=v||!A||!x||!b,S=function(C){return function(O,_){return _===void 0?-1:O===void 0?1:C!==void 0?+C(O,_)||0:r(O)>r(_)?1:-1}};s({target:"Array",proto:!0,forced:w},{sort:function(C){C!==void 0&&t(C);var O=l(this);if(b)return C===void 0?g.call(O):g.call(O,C);var _=[],M=a(O.length),k,R;for(R=0;R<M;R++)R in O&&_.push(O[R]);for(_=e(_,S(C)),k=_.length,R=0;R<k;)O[R]=_[R++];for(;R<M;)delete O[R++];return O}})},{"../internals/a-function":89,"../internals/array-method-is-strict":107,"../internals/array-sort":109,"../internals/engine-ff-version":128,"../internals/engine-is-ie-or-edge":130,"../internals/engine-v8-version":136,"../internals/engine-webkit-version":137,"../internals/export":139,"../internals/fails":140,"../internals/to-length":221,"../internals/to-object":222,"../internals/to-string":228}],252:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/to-absolute-index"),l=o("../internals/to-integer"),a=o("../internals/to-length"),r=o("../internals/to-object"),u=o("../internals/array-species-create"),e=o("../internals/create-property"),n=o("../internals/array-method-has-species-support"),i=n("splice"),c=Math.max,d=Math.min,h=9007199254740991,p="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!i},{splice:function(v,A){var x=r(this),b=a(x.length),w=t(v,b),S=arguments.length,T,C,O,_,M,k;if(S===0?T=C=0:S===1?(T=0,C=b-w):(T=S-2,C=d(c(l(A),0),b-w)),b+T-C>h)throw TypeError(p);for(O=u(x,C),_=0;_<C;_++)M=w+_,M in x&&e(O,_,x[M]);if(O.length=C,T<C){for(_=w;_<b-C;_++)M=_+C,k=_+T,M in x?x[k]=x[M]:delete x[k];for(_=b;_>b-C+T;_--)delete x[_-1]}else if(T>C)for(_=b-C;_>w;_--)M=_+C-1,k=_+T-1,M in x?x[k]=x[M]:delete x[k];for(_=0;_<T;_++)x[_+w]=arguments[_+2];return x.length=b-C+T,O}})},{"../internals/array-method-has-species-support":106,"../internals/array-species-create":111,"../internals/create-property":122,"../internals/export":139,"../internals/to-absolute-index":217,"../internals/to-integer":220,"../internals/to-length":221,"../internals/to-object":222}],253:[function(o,m,f){var s=o("../internals/descriptors"),t=o("../internals/object-define-property").f,l=Function.prototype,a=l.toString,r=/^\s*function ([^ (]*)/,u="name";s&&!(u in l)&&t(l,u,{configurable:!0,get:function(){try{return a.call(this).match(r)[1]}catch(n){return""}}})},{"../internals/descriptors":125,"../internals/object-define-property":179}],254:[function(o,m,f){"use strict";var s=o("../internals/descriptors"),t=o("../internals/global"),l=o("../internals/is-forced"),a=o("../internals/redefine"),r=o("../internals/has"),u=o("../internals/classof-raw"),e=o("../internals/inherit-if-required"),n=o("../internals/is-symbol"),i=o("../internals/to-primitive"),c=o("../internals/fails"),d=o("../internals/object-create"),h=o("../internals/object-get-own-property-names").f,p=o("../internals/object-get-own-property-descriptor").f,g=o("../internals/object-define-property").f,v=o("../internals/string-trim").trim,A="Number",x=t[A],b=x.prototype,w=u(d(b))==A,S=function(k){if(n(k))throw TypeError("Cannot convert a Symbol value to a number");var R=i(k,"number"),B,P,U,j,H,W,G,V;if(typeof R=="string"&&R.length>2){if(R=v(R),B=R.charCodeAt(0),B===43||B===45){if(P=R.charCodeAt(2),P===88||P===120)return NaN}else if(B===48){switch(R.charCodeAt(1)){case 66:case 98:U=2,j=49;break;case 79:case 111:U=8,j=55;break;default:return+R}for(H=R.slice(2),W=H.length,G=0;G<W;G++)if(V=H.charCodeAt(G),V<48||V>j)return NaN;return parseInt(H,U)}}return+R};if(l(A,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var T=function(k){var R=arguments.length<1?0:k,B=this;return B instanceof T&&(w?c(function(){b.valueOf.call(B)}):u(B)!=A)?e(new x(S(R)),B,T):S(R)},C=s?h(x):"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(","),O=0,_;C.length>O;O++)r(x,_=C[O])&&!r(T,_)&&g(T,_,p(x,_));T.prototype=b,b.constructor=T,a(t,A,T)}},{"../internals/classof-raw":114,"../internals/descriptors":125,"../internals/fails":140,"../internals/global":147,"../internals/has":148,"../internals/inherit-if-required":155,"../internals/is-forced":160,"../internals/is-symbol":165,"../internals/object-create":177,"../internals/object-define-property":179,"../internals/object-get-own-property-descriptor":180,"../internals/object-get-own-property-names":182,"../internals/redefine":197,"../internals/string-trim":215,"../internals/to-primitive":225}],255:[function(o,m,f){var s=o("../internals/export"),t=o("../internals/object-assign");s({target:"Object",stat:!0,forced:Object.assign!==t},{assign:t})},{"../internals/export":139,"../internals/object-assign":176}],256:[function(o,m,f){var s=o("../internals/export"),t=o("../internals/object-to-array").entries;s({target:"Object",stat:!0},{entries:function(a){return t(a)}})},{"../internals/export":139,"../internals/object-to-array":189}],257:[function(o,m,f){var s=o("../internals/export"),t=o("../internals/to-object"),l=o("../internals/object-keys"),a=o("../internals/fails"),r=a(function(){l(1)});s({target:"Object",stat:!0,forced:r},{keys:function(e){return l(t(e))}})},{"../internals/export":139,"../internals/fails":140,"../internals/object-keys":186,"../internals/to-object":222}],258:[function(o,m,f){var s=o("../internals/to-string-tag-support"),t=o("../internals/redefine"),l=o("../internals/object-to-string");s||t(Object.prototype,"toString",l,{unsafe:!0})},{"../internals/object-to-string":190,"../internals/redefine":197,"../internals/to-string-tag-support":227}],259:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/is-pure"),l=o("../internals/global"),a=o("../internals/get-built-in"),r=o("../internals/native-promise-constructor"),u=o("../internals/redefine"),e=o("../internals/redefine-all"),n=o("../internals/object-set-prototype-of"),i=o("../internals/set-to-string-tag"),c=o("../internals/set-species"),d=o("../internals/is-object"),h=o("../internals/a-function"),p=o("../internals/an-instance"),g=o("../internals/inspect-source"),v=o("../internals/iterate"),A=o("../internals/check-correctness-of-iteration"),x=o("../internals/species-constructor"),b=o("../internals/task").set,w=o("../internals/microtask"),S=o("../internals/promise-resolve"),T=o("../internals/host-report-errors"),C=o("../internals/new-promise-capability"),O=o("../internals/perform"),_=o("../internals/internal-state"),M=o("../internals/is-forced"),k=o("../internals/well-known-symbol"),R=o("../internals/engine-is-browser"),B=o("../internals/engine-is-node"),P=o("../internals/engine-v8-version"),U=k("species"),j="Promise",H=_.get,W=_.set,G=_.getterFor(j),V=r&&r.prototype,Z=r,Y=V,Q=l.TypeError,oe=l.document,ue=l.process,Le=C.f,me=Le,Ie=!!(oe&&oe.createEvent&&l.dispatchEvent),X=typeof PromiseRejectionEvent=="function",q="unhandledrejection",We="rejectionhandled",$=0,J=1,le=2,de=1,Ne=2,we=!1,De,Ee,ce,ne,ee=M(j,function(){var Et=g(Z),je=Et!==String(Z);if(!je&&P===66)return!0;if(t&&!Y.finally)return!0;if(P>=51&&/native code/.test(Et))return!1;var pe=new Z(function(Qe){Qe(1)}),ie=function(ve){ve(function(){},function(){})},st=pe.constructor={};return st[U]=ie,we=pe.then(function(){})instanceof ie,we?!je&&R&&!X:!0}),Ae=ee||!A(function(Et){Z.all(Et).catch(function(){})}),Ve=function(je){var pe;return d(je)&&typeof(pe=je.then)=="function"?pe:!1},Ke=function(je,pe){if(je.notified)return;je.notified=!0;var ie=je.reactions;w(function(){for(var st=je.value,Qe=je.state==J,ve=0;ie.length>ve;){var Bt=ie[ve++],qt=Qe?Bt.ok:Bt.fail,ct=Bt.resolve,Wt=Bt.reject,or=Bt.domain,Fr,er,nr;try{qt?(Qe||(je.rejection===Ne&&ft(je),je.rejection=de),qt===!0?Fr=st:(or&&or.enter(),Fr=qt(st),or&&(or.exit(),nr=!0)),Fr===Bt.promise?Wt(Q("Promise-chain cycle")):(er=Ve(Fr))?er.call(Fr,ct,Wt):ct(Fr)):Wt(st)}catch(Ot){or&&!nr&&or.exit(),Wt(Ot)}}je.reactions=[],je.notified=!1,pe&&!je.rejection&&it(je)})},Oe=function(je,pe,ie){var st,Qe;Ie?(st=oe.createEvent("Event"),st.promise=pe,st.reason=ie,st.initEvent(je,!1,!0),l.dispatchEvent(st)):st={promise:pe,reason:ie},!X&&(Qe=l["on"+je])?Qe(st):je===q&&T("Unhandled promise rejection",ie)},it=function(je){b.call(l,function(){var pe=je.facade,ie=je.value,st=Fe(je),Qe;if(st&&(Qe=O(function(){B?ue.emit("unhandledRejection",ie,pe):Oe(q,pe,ie)}),je.rejection=B||Fe(je)?Ne:de,Qe.error))throw Qe.value})},Fe=function(je){return je.rejection!==de&&!je.parent},ft=function(je){b.call(l,function(){var pe=je.facade;B?ue.emit("rejectionHandled",pe):Oe(We,pe,je.value)})},At=function(je,pe,ie){return function(st){je(pe,st,ie)}},bt=function(je,pe,ie){if(je.done)return;je.done=!0,ie&&(je=ie),je.value=pe,je.state=le,Ke(je,!0)},St=function Et(je,pe,ie){if(je.done)return;je.done=!0,ie&&(je=ie);try{if(je.facade===pe)throw Q("Promise can't be resolved itself");var st=Ve(pe);st?w(function(){var Qe={done:!1};try{st.call(pe,At(Et,Qe,je),At(bt,Qe,je))}catch(ve){bt(Qe,ve,je)}}):(je.value=pe,je.state=J,Ke(je,!1))}catch(Qe){bt({done:!1},Qe,je)}};if(ee&&(Z=function(je){p(this,Z,j),h(je),De.call(this);var pe=H(this);try{je(At(St,pe),At(bt,pe))}catch(ie){bt(pe,ie)}},Y=Z.prototype,De=function(je){W(this,{type:j,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:$,value:void 0})},De.prototype=e(Y,{then:function(je,pe){var ie=G(this),st=Le(x(this,Z));return st.ok=typeof je=="function"?je:!0,st.fail=typeof pe=="function"&&pe,st.domain=B?ue.domain:void 0,ie.parent=!0,ie.reactions.push(st),ie.state!=$&&Ke(ie,!1),st.promise},catch:function(je){return this.then(void 0,je)}}),Ee=function(){var je=new De,pe=H(je);this.promise=je,this.resolve=At(St,pe),this.reject=At(bt,pe)},C.f=Le=function(je){return je===Z||je===ce?new Ee(je):me(je)},!t&&typeof r=="function"&&V!==Object.prototype)){ne=V.then,we||(u(V,"then",function(je,pe){var ie=this;return new Z(function(st,Qe){ne.call(ie,st,Qe)}).then(je,pe)},{unsafe:!0}),u(V,"catch",Y.catch,{unsafe:!0}));try{delete V.constructor}catch(Et){}n&&n(V,Y)}s({global:!0,wrap:!0,forced:ee},{Promise:Z}),i(Z,j,!1,!0),c(j),ce=a(j),s({target:j,stat:!0,forced:ee},{reject:function(je){var pe=Le(this);return pe.reject.call(void 0,je),pe.promise}}),s({target:j,stat:!0,forced:t||ee},{resolve:function(je){return S(t&&this===ce?Z:this,je)}}),s({target:j,stat:!0,forced:Ae},{all:function(je){var pe=this,ie=Le(pe),st=ie.resolve,Qe=ie.reject,ve=O(function(){var Bt=h(pe.resolve),qt=[],ct=0,Wt=1;v(je,function(or){var Fr=ct++,er=!1;qt.push(void 0),Wt++,Bt.call(pe,or).then(function(nr){if(er)return;er=!0,qt[Fr]=nr,--Wt||st(qt)},Qe)}),--Wt||st(qt)});return ve.error&&Qe(ve.value),ie.promise},race:function(je){var pe=this,ie=Le(pe),st=ie.reject,Qe=O(function(){var ve=h(pe.resolve);v(je,function(Bt){ve.call(pe,Bt).then(ie.resolve,st)})});return Qe.error&&st(Qe.value),ie.promise}})},{"../internals/a-function":89,"../internals/an-instance":93,"../internals/check-correctness-of-iteration":113,"../internals/engine-is-browser":129,"../internals/engine-is-node":133,"../internals/engine-v8-version":136,"../internals/export":139,"../internals/get-built-in":143,"../internals/global":147,"../internals/host-report-errors":150,"../internals/inspect-source":156,"../internals/internal-state":157,"../internals/is-forced":160,"../internals/is-object":162,"../internals/is-pure":163,"../internals/iterate":166,"../internals/microtask":170,"../internals/native-promise-constructor":171,"../internals/new-promise-capability":174,"../internals/object-set-prototype-of":188,"../internals/perform":194,"../internals/promise-resolve":195,"../internals/redefine":197,"../internals/redefine-all":196,"../internals/set-species":207,"../internals/set-to-string-tag":208,"../internals/species-constructor":212,"../internals/task":216,"../internals/well-known-symbol":237}],260:[function(o,m,f){var s=o("../internals/descriptors"),t=o("../internals/global"),l=o("../internals/is-forced"),a=o("../internals/inherit-if-required"),r=o("../internals/create-non-enumerable-property"),u=o("../internals/object-define-property").f,e=o("../internals/object-get-own-property-names").f,n=o("../internals/is-regexp"),i=o("../internals/to-string"),c=o("../internals/regexp-flags"),d=o("../internals/regexp-sticky-helpers"),h=o("../internals/redefine"),p=o("../internals/fails"),g=o("../internals/has"),v=o("../internals/internal-state").enforce,A=o("../internals/set-species"),x=o("../internals/well-known-symbol"),b=o("../internals/regexp-unsupported-dot-all"),w=o("../internals/regexp-unsupported-ncg"),S=x("match"),T=t.RegExp,C=T.prototype,O=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_=/a/g,M=/a/g,k=new T(_)!==_,R=d.UNSUPPORTED_Y,B=s&&(!k||R||b||w||p(function(){return M[S]=!1,T(_)!=_||T(M)==M||T(_,"i")!="/a/i"})),P=function(Z){for(var Y=Z.length,Q=0,oe="",ue=!1,Le;Q<=Y;Q++){if(Le=Z.charAt(Q),Le==="\\"){oe+=Le+Z.charAt(++Q);continue}!ue&&Le==="."?oe+="[\\s\\S]":(Le==="["?ue=!0:Le==="]"&&(ue=!1),oe+=Le)}return oe},U=function(Z){for(var Y=Z.length,Q=0,oe="",ue=[],Le={},me=!1,Ie=!1,X=0,q="",We;Q<=Y;Q++){if(We=Z.charAt(Q),We==="\\")We=We+Z.charAt(++Q);else if(We==="]")me=!1;else if(!me)switch(!0){case We==="[":me=!0;break;case We==="(":O.test(Z.slice(Q+1))&&(Q+=2,Ie=!0),oe+=We,X++;continue;case(We===">"&&Ie):if(q===""||g(Le,q))throw new SyntaxError("Invalid capture group name");Le[q]=!0,ue.push([q,X]),Ie=!1,q="";continue}Ie?q+=We:oe+=We}return[oe,ue]};if(l("RegExp",B)){for(var j=function(Z,Y){var Q=this instanceof j,oe=n(Z),ue=Y===void 0,Le=[],me=Z,Ie,X,q,We,$,J;if(!Q&&oe&&ue&&Z.constructor===j)return Z;if((oe||Z instanceof j)&&(Z=Z.source,ue&&(Y="flags"in me?me.flags:c.call(me))),Z=Z===void 0?"":i(Z),Y=Y===void 0?"":i(Y),me=Z,b&&"dotAll"in _&&(X=!!Y&&Y.indexOf("s")>-1,X&&(Y=Y.replace(/s/g,""))),Ie=Y,R&&"sticky"in _&&(q=!!Y&&Y.indexOf("y")>-1,q&&(Y=Y.replace(/y/g,""))),w&&(We=U(Z),Z=We[0],Le=We[1]),$=a(T(Z,Y),Q?this:C,j),(X||q||Le.length)&&(J=v($),X&&(J.dotAll=!0,J.raw=j(P(Z),Ie)),q&&(J.sticky=!0),Le.length&&(J.groups=Le)),Z!==me)try{r($,"source",me===""?"(?:)":me)}catch(le){}return $},H=function(Z){Z in j||u(j,Z,{configurable:!0,get:function(){return T[Z]},set:function(Q){T[Z]=Q}})},W=e(T),G=0;W.length>G;)H(W[G++]);C.constructor=j,j.prototype=C,h(t,"RegExp",j)}A("RegExp")},{"../internals/create-non-enumerable-property":120,"../internals/descriptors":125,"../internals/fails":140,"../internals/global":147,"../internals/has":148,"../internals/inherit-if-required":155,"../internals/internal-state":157,"../internals/is-forced":160,"../internals/is-regexp":164,"../internals/object-define-property":179,"../internals/object-get-own-property-names":182,"../internals/redefine":197,"../internals/regexp-flags":200,"../internals/regexp-sticky-helpers":201,"../internals/regexp-unsupported-dot-all":202,"../internals/regexp-unsupported-ncg":203,"../internals/set-species":207,"../internals/to-string":228,"../internals/well-known-symbol":237}],261:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/regexp-exec");s({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t})},{"../internals/export":139,"../internals/regexp-exec":199}],262:[function(o,m,f){"use strict";var s=o("../internals/redefine"),t=o("../internals/an-object"),l=o("../internals/to-string"),a=o("../internals/fails"),r=o("../internals/regexp-flags"),u="toString",e=RegExp.prototype,n=e[u],i=a(function(){return n.call({source:"a",flags:"b"})!="/a/b"}),c=n.name!=u;(i||c)&&s(RegExp.prototype,u,function(){var h=t(this),p=l(h.source),g=h.flags,v=l(g===void 0&&h instanceof RegExp&&!("flags"in e)?r.call(h):g);return"/"+p+"/"+v},{unsafe:!0})},{"../internals/an-object":94,"../internals/fails":140,"../internals/redefine":197,"../internals/regexp-flags":200,"../internals/to-string":228}],263:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/not-a-regexp"),l=o("../internals/require-object-coercible"),a=o("../internals/to-string"),r=o("../internals/correct-is-regexp-logic");s({target:"String",proto:!0,forced:!r("includes")},{includes:function(e){return!!~a(l(this)).indexOf(a(t(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":117,"../internals/export":139,"../internals/not-a-regexp":175,"../internals/require-object-coercible":204,"../internals/to-string":228}],264:[function(o,m,f){"use strict";var s=o("../internals/string-multibyte").charAt,t=o("../internals/to-string"),l=o("../internals/internal-state"),a=o("../internals/define-iterator"),r="String Iterator",u=l.set,e=l.getterFor(r);a(String,"String",function(n){u(this,{type:r,string:t(n),index:0})},function(){var i=e(this),c=i.string,d=i.index,h;return d>=c.length?{value:void 0,done:!0}:(h=s(c,d),i.index+=h.length,{value:h,done:!1})})},{"../internals/define-iterator":123,"../internals/internal-state":157,"../internals/string-multibyte":213,"../internals/to-string":228}],265:[function(o,m,f){"use strict";var s=o("../internals/fix-regexp-well-known-symbol-logic"),t=o("../internals/an-object"),l=o("../internals/to-length"),a=o("../internals/to-string"),r=o("../internals/require-object-coercible"),u=o("../internals/advance-string-index"),e=o("../internals/regexp-exec-abstract");s("match",function(n,i,c){return[function(h){var p=r(this),g=h==null?void 0:h[n];return g!==void 0?g.call(h,p):new RegExp(h)[n](a(p))},function(d){var h=t(this),p=a(d),g=c(i,h,p);if(g.done)return g.value;if(!h.global)return e(h,p);var v=h.unicode;h.lastIndex=0;for(var A=[],x=0,b;(b=e(h,p))!==null;){var w=a(b[0]);A[x]=w,w===""&&(h.lastIndex=u(p,l(h.lastIndex),v)),x++}return x===0?null:A}]})},{"../internals/advance-string-index":92,"../internals/an-object":94,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":204,"../internals/to-length":221,"../internals/to-string":228}],266:[function(o,m,f){"use strict";var s=o("../internals/fix-regexp-well-known-symbol-logic"),t=o("../internals/fails"),l=o("../internals/an-object"),a=o("../internals/to-integer"),r=o("../internals/to-length"),u=o("../internals/to-string"),e=o("../internals/require-object-coercible"),n=o("../internals/advance-string-index"),i=o("../internals/get-substitution"),c=o("../internals/regexp-exec-abstract"),d=o("../internals/well-known-symbol"),h=d("replace"),p=Math.max,g=Math.min,v=function(S){return S===void 0?S:String(S)},A=function(){return"a".replace(/./,"$0")==="$0"}(),x=function(){return/./[h]?/./[h]("a","$0")==="":!1}(),b=!t(function(){var w=/./;return w.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(w,"$<a>")!=="7"});s("replace",function(w,S,T){var C=x?"$":"$0";return[function(_,M){var k=e(this),R=_==null?void 0:_[h];return R!==void 0?R.call(_,k,M):S.call(u(k),_,M)},function(O,_){var M=l(this),k=u(O);if(typeof _=="string"&&_.indexOf(C)===-1&&_.indexOf("$<")===-1){var R=T(S,M,k,_);if(R.done)return R.value}var B=typeof _=="function";B||(_=u(_));var P=M.global;if(P){var U=M.unicode;M.lastIndex=0}for(var j=[];;){var H=c(M,k);if(H===null)break;if(j.push(H),!P)break;var W=u(H[0]);W===""&&(M.lastIndex=n(k,r(M.lastIndex),U))}for(var G="",V=0,Z=0;Z<j.length;Z++){H=j[Z];for(var Y=u(H[0]),Q=p(g(a(H.index),k.length),0),oe=[],ue=1;ue<H.length;ue++)oe.push(v(H[ue]));var Le=H.groups;if(B){var me=[Y].concat(oe,Q,k);Le!==void 0&&me.push(Le);var Ie=u(_.apply(void 0,me))}else Ie=i(Y,k,Q,oe,Le,_);Q>=V&&(G+=k.slice(V,Q)+Ie,V=Q+Y.length)}return G+k.slice(V)}]},!b||!A||x)},{"../internals/advance-string-index":92,"../internals/an-object":94,"../internals/fails":140,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/get-substitution":146,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":204,"../internals/to-integer":220,"../internals/to-length":221,"../internals/to-string":228,"../internals/well-known-symbol":237}],267:[function(o,m,f){"use strict";var s=o("../internals/fix-regexp-well-known-symbol-logic"),t=o("../internals/an-object"),l=o("../internals/require-object-coercible"),a=o("../internals/same-value"),r=o("../internals/to-string"),u=o("../internals/regexp-exec-abstract");s("search",function(e,n,i){return[function(d){var h=l(this),p=d==null?void 0:d[e];return p!==void 0?p.call(d,h):new RegExp(d)[e](r(h))},function(c){var d=t(this),h=r(c),p=i(n,d,h);if(p.done)return p.value;var g=d.lastIndex;a(g,0)||(d.lastIndex=0);var v=u(d,h);return a(d.lastIndex,g)||(d.lastIndex=g),v===null?-1:v.index}]})},{"../internals/an-object":94,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":204,"../internals/same-value":205,"../internals/to-string":228}],268:[function(o,m,f){"use strict";var s=o("../internals/fix-regexp-well-known-symbol-logic"),t=o("../internals/is-regexp"),l=o("../internals/an-object"),a=o("../internals/require-object-coercible"),r=o("../internals/species-constructor"),u=o("../internals/advance-string-index"),e=o("../internals/to-length"),n=o("../internals/to-string"),i=o("../internals/regexp-exec-abstract"),c=o("../internals/regexp-exec"),d=o("../internals/regexp-sticky-helpers"),h=o("../internals/fails"),p=d.UNSUPPORTED_Y,g=[].push,v=Math.min,A=4294967295,x=!h(function(){var b=/(?:)/,w=b.exec;b.exec=function(){return w.apply(this,arguments)};var S="ab".split(b);return S.length!==2||S[0]!=="a"||S[1]!=="b"});s("split",function(b,w,S){var T;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?T=function(O,_){var M=n(a(this)),k=_===void 0?A:_>>>0;if(k===0)return[];if(O===void 0)return[M];if(!t(O))return w.call(M,O,k);for(var R=[],B=(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")+(O.sticky?"y":""),P=0,U=new RegExp(O.source,B+"g"),j,H,W;(j=c.call(U,M))&&!(H=U.lastIndex,H>P&&(R.push(M.slice(P,j.index)),j.length>1&&j.index<M.length&&g.apply(R,j.slice(1)),W=j[0].length,P=H,R.length>=k));)U.lastIndex===j.index&&U.lastIndex++;return P===M.length?(W||!U.test(""))&&R.push(""):R.push(M.slice(P)),R.length>k?R.slice(0,k):R}:"0".split(void 0,0).length?T=function(O,_){return O===void 0&&_===0?[]:w.call(this,O,_)}:T=w,[function(O,_){var M=a(this),k=O==null?void 0:O[b];return k!==void 0?k.call(O,M,_):T.call(n(M),O,_)},function(C,O){var _=l(this),M=n(C),k=S(T,_,M,O,T!==w);if(k.done)return k.value;var R=r(_,RegExp),B=_.unicode,P=(_.ignoreCase?"i":"")+(_.multiline?"m":"")+(_.unicode?"u":"")+(p?"g":"y"),U=new R(p?"^(?:"+_.source+")":_,P),j=O===void 0?A:O>>>0;if(j===0)return[];if(M.length===0)return i(U,M)===null?[M]:[];for(var H=0,W=0,G=[];W<M.length;){U.lastIndex=p?0:W;var V=i(U,p?M.slice(W):M),Z;if(V===null||(Z=v(e(U.lastIndex+(p?W:0)),M.length))===H)W=u(M,W,B);else{if(G.push(M.slice(H,W)),G.length===j)return G;for(var Y=1;Y<=V.length-1;Y++)if(G.push(V[Y]),G.length===j)return G;W=H=Z}}return G.push(M.slice(H)),G}]},!x,p)},{"../internals/advance-string-index":92,"../internals/an-object":94,"../internals/fails":140,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/is-regexp":164,"../internals/regexp-exec":199,"../internals/regexp-exec-abstract":198,"../internals/regexp-sticky-helpers":201,"../internals/require-object-coercible":204,"../internals/species-constructor":212,"../internals/to-length":221,"../internals/to-string":228}],269:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/string-trim").trim,l=o("../internals/string-trim-forced");s({target:"String",proto:!0,forced:l("trim")},{trim:function(){return t(this)}})},{"../internals/export":139,"../internals/string-trim":215,"../internals/string-trim-forced":214}],270:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/descriptors"),l=o("../internals/global"),a=o("../internals/has"),r=o("../internals/is-object"),u=o("../internals/object-define-property").f,e=o("../internals/copy-constructor-properties"),n=l.Symbol;if(t&&typeof n=="function"&&(!("description"in n.prototype)||n().description!==void 0)){var i={},c=function(){var A=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),x=this instanceof c?new n(A):A===void 0?n():n(A);return A===""&&(i[x]=!0),x};e(c,n);var d=c.prototype=n.prototype;d.constructor=c;var h=d.toString,p=String(n("test"))=="Symbol(test)",g=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var A=r(this)?this.valueOf():this,x=h.call(A);if(a(i,A))return"";var b=p?x.slice(7,-1):x.replace(g,"$1");return b===""?void 0:b}}),s({global:!0,forced:!0},{Symbol:c})}},{"../internals/copy-constructor-properties":116,"../internals/descriptors":125,"../internals/export":139,"../internals/global":147,"../internals/has":148,"../internals/is-object":162,"../internals/object-define-property":179}],271:[function(o,m,f){"use strict";var s=o("../internals/export"),t=o("../internals/global"),l=o("../internals/get-built-in"),a=o("../internals/is-pure"),r=o("../internals/descriptors"),u=o("../internals/native-symbol"),e=o("../internals/fails"),n=o("../internals/has"),i=o("../internals/is-array"),c=o("../internals/is-object"),d=o("../internals/is-symbol"),h=o("../internals/an-object"),p=o("../internals/to-object"),g=o("../internals/to-indexed-object"),v=o("../internals/to-property-key"),A=o("../internals/to-string"),x=o("../internals/create-property-descriptor"),b=o("../internals/object-create"),w=o("../internals/object-keys"),S=o("../internals/object-get-own-property-names"),T=o("../internals/object-get-own-property-names-external"),C=o("../internals/object-get-own-property-symbols"),O=o("../internals/object-get-own-property-descriptor"),_=o("../internals/object-define-property"),M=o("../internals/object-property-is-enumerable"),k=o("../internals/create-non-enumerable-property"),R=o("../internals/redefine"),B=o("../internals/shared"),P=o("../internals/shared-key"),U=o("../internals/hidden-keys"),j=o("../internals/uid"),H=o("../internals/well-known-symbol"),W=o("../internals/well-known-symbol-wrapped"),G=o("../internals/define-well-known-symbol"),V=o("../internals/set-to-string-tag"),Z=o("../internals/internal-state"),Y=o("../internals/array-iteration").forEach,Q=P("hidden"),oe="Symbol",ue="prototype",Le=H("toPrimitive"),me=Z.set,Ie=Z.getterFor(oe),X=Object[ue],q=t.Symbol,We=l("JSON","stringify"),$=O.f,J=_.f,le=T.f,de=M.f,Ne=B("symbols"),we=B("op-symbols"),De=B("string-to-symbol-registry"),Ee=B("symbol-to-string-registry"),ce=B("wks"),ne=t.QObject,ee=!ne||!ne[ue]||!ne[ue].findChild,Ae=r&&e(function(){return b(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a!=7})?function(Et,je,pe){var ie=$(X,je);ie&&delete X[je],J(Et,je,pe),ie&&Et!==X&&J(X,je,ie)}:J,Ve=function(je,pe){var ie=Ne[je]=b(q[ue]);return me(ie,{type:oe,tag:je,description:pe}),r||(ie.description=pe),ie},Ke=function(je,pe,ie){je===X&&Ke(we,pe,ie),h(je);var st=v(pe);return h(ie),n(Ne,st)?(ie.enumerable?(n(je,Q)&&je[Q][st]&&(je[Q][st]=!1),ie=b(ie,{enumerable:x(0,!1)})):(n(je,Q)||J(je,Q,x(1,{})),je[Q][st]=!0),Ae(je,st,ie)):J(je,st,ie)},Oe=function(je,pe){h(je);var ie=g(pe),st=w(ie).concat(bt(ie));return Y(st,function(Qe){(!r||Fe.call(ie,Qe))&&Ke(je,Qe,ie[Qe])}),je},it=function(je,pe){return pe===void 0?b(je):Oe(b(je),pe)},Fe=function(je){var pe=v(je),ie=de.call(this,pe);return this===X&&n(Ne,pe)&&!n(we,pe)?!1:ie||!n(this,pe)||!n(Ne,pe)||n(this,Q)&&this[Q][pe]?ie:!0},ft=function(je,pe){var ie=g(je),st=v(pe);if(ie===X&&n(Ne,st)&&!n(we,st))return;var Qe=$(ie,st);return Qe&&n(Ne,st)&&!(n(ie,Q)&&ie[Q][st])&&(Qe.enumerable=!0),Qe},At=function(je){var pe=le(g(je)),ie=[];return Y(pe,function(st){!n(Ne,st)&&!n(U,st)&&ie.push(st)}),ie},bt=function(je){var pe=je===X,ie=le(pe?we:g(je)),st=[];return Y(ie,function(Qe){n(Ne,Qe)&&(!pe||n(X,Qe))&&st.push(Ne[Qe])}),st};if(u||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var je=!arguments.length||arguments[0]===void 0?void 0:A(arguments[0]),pe=j(je),ie=function st(Qe){this===X&&st.call(we,Qe),n(this,Q)&&n(this[Q],pe)&&(this[Q][pe]=!1),Ae(this,pe,x(1,Qe))};return r&&ee&&Ae(X,pe,{configurable:!0,set:ie}),Ve(pe,je)},R(q[ue],"toString",function(){return Ie(this).tag}),R(q,"withoutSetter",function(Et){return Ve(j(Et),Et)}),M.f=Fe,_.f=Ke,O.f=ft,S.f=T.f=At,C.f=bt,W.f=function(Et){return Ve(H(Et),Et)},r&&(J(q[ue],"description",{configurable:!0,get:function(){return Ie(this).description}}),a||R(X,"propertyIsEnumerable",Fe,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),Y(w(ce),function(Et){G(Et)}),s({target:oe,stat:!0,forced:!u},{for:function(je){var pe=A(je);if(n(De,pe))return De[pe];var ie=q(pe);return De[pe]=ie,Ee[ie]=pe,ie},keyFor:function(je){if(!d(je))throw TypeError(je+" is not a symbol");if(n(Ee,je))return Ee[je]},useSetter:function(){ee=!0},useSimple:function(){ee=!1}}),s({target:"Object",stat:!0,forced:!u,sham:!r},{create:it,defineProperty:Ke,defineProperties:Oe,getOwnPropertyDescriptor:ft}),s({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:At,getOwnPropertySymbols:bt}),s({target:"Object",stat:!0,forced:e(function(){C.f(1)})},{getOwnPropertySymbols:function(je){return C.f(p(je))}}),We){var St=!u||e(function(){var Et=q();return We([Et])!="[null]"||We({a:Et})!="{}"||We(Object(Et))!="{}"});s({target:"JSON",stat:!0,forced:St},{stringify:function(je,pe,ie){for(var st=[je],Qe=1,ve;arguments.length>Qe;)st.push(arguments[Qe++]);return ve=pe,!c(pe)&&je===void 0||d(je)?void 0:(i(pe)||(pe=function(qt,ct){if(typeof ve=="function"&&(ct=ve.call(this,qt,ct)),!d(ct))return ct}),st[1]=pe,We.apply(null,st))}})}q[ue][Le]||k(q[ue],Le,q[ue].valueOf),V(q,oe),U[Q]=!0},{"../internals/an-object":94,"../internals/array-iteration":104,"../internals/create-non-enumerable-property":120,"../internals/create-property-descriptor":121,"../internals/define-well-known-symbol":124,"../internals/descriptors":125,"../internals/export":139,"../internals/fails":140,"../internals/get-built-in":143,"../internals/global":147,"../internals/has":148,"../internals/hidden-keys":149,"../internals/internal-state":157,"../internals/is-array":159,"../internals/is-object":162,"../internals/is-pure":163,"../internals/is-symbol":165,"../internals/native-symbol":172,"../internals/object-create":177,"../internals/object-define-property":179,"../internals/object-get-own-property-descriptor":180,"../internals/object-get-own-property-names":182,"../internals/object-get-own-property-names-external":181,"../internals/object-get-own-property-symbols":183,"../internals/object-keys":186,"../internals/object-property-is-enumerable":187,"../internals/redefine":197,"../internals/set-to-string-tag":208,"../internals/shared":211,"../internals/shared-key":209,"../internals/to-indexed-object":219,"../internals/to-object":222,"../internals/to-property-key":226,"../internals/to-string":228,"../internals/uid":234,"../internals/well-known-symbol":237,"../internals/well-known-symbol-wrapped":236}],272:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-copy-within"),l=s.aTypedArray,a=s.exportTypedArrayMethod;a("copyWithin",function(u,e){return t.call(l(this),u,e,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-copy-within":98}],273:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-iteration").every,l=s.aTypedArray,a=s.exportTypedArrayMethod;a("every",function(u){return t(l(this),u,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],274:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-fill"),l=s.aTypedArray,a=s.exportTypedArrayMethod;a("fill",function(u){return t.apply(l(this),arguments)})},{"../internals/array-buffer-view-core":96,"../internals/array-fill":99}],275:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-iteration").filter,l=o("../internals/typed-array-from-species-and-list"),a=s.aTypedArray,r=s.exportTypedArrayMethod;r("filter",function(e){var n=t(a(this),e,arguments.length>1?arguments[1]:void 0);return l(this,n)})},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104,"../internals/typed-array-from-species-and-list":231}],276:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-iteration").findIndex,l=s.aTypedArray,a=s.exportTypedArrayMethod;a("findIndex",function(u){return t(l(this),u,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],277:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-iteration").find,l=s.aTypedArray,a=s.exportTypedArrayMethod;a("find",function(u){return t(l(this),u,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],278:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-iteration").forEach,l=s.aTypedArray,a=s.exportTypedArrayMethod;a("forEach",function(u){t(l(this),u,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],279:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-includes").includes,l=s.aTypedArray,a=s.exportTypedArrayMethod;a("includes",function(u){return t(l(this),u,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-includes":103}],280:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-includes").indexOf,l=s.aTypedArray,a=s.exportTypedArrayMethod;a("indexOf",function(u){return t(l(this),u,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-includes":103}],281:[function(o,m,f){"use strict";var s=o("../internals/global"),t=o("../internals/array-buffer-view-core"),l=o("../modules/es.array.iterator"),a=o("../internals/well-known-symbol"),r=a("iterator"),u=s.Uint8Array,e=l.values,n=l.keys,i=l.entries,c=t.aTypedArray,d=t.exportTypedArrayMethod,h=u&&u.prototype[r],p=!!h&&(h.name=="values"||h.name==null),g=function(){return e.call(c(this))};d("entries",function(){return i.call(c(this))}),d("keys",function(){return n.call(c(this))}),d("values",g,!p),d(r,g,!p)},{"../internals/array-buffer-view-core":96,"../internals/global":147,"../internals/well-known-symbol":237,"../modules/es.array.iterator":247}],282:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=s.aTypedArray,l=s.exportTypedArrayMethod,a=[].join;l("join",function(u){return a.apply(t(this),arguments)})},{"../internals/array-buffer-view-core":96}],283:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-last-index-of"),l=s.aTypedArray,a=s.exportTypedArrayMethod;a("lastIndexOf",function(u){return t.apply(l(this),arguments)})},{"../internals/array-buffer-view-core":96,"../internals/array-last-index-of":105}],284:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-iteration").map,l=o("../internals/typed-array-species-constructor"),a=s.aTypedArray,r=s.exportTypedArrayMethod;r("map",function(e){return t(a(this),e,arguments.length>1?arguments[1]:void 0,function(n,i){return new(l(n))(i)})})},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104,"../internals/typed-array-species-constructor":233}],285:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-reduce").right,l=s.aTypedArray,a=s.exportTypedArrayMethod;a("reduceRight",function(u){return t(l(this),u,arguments.length,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-reduce":108}],286:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-reduce").left,l=s.aTypedArray,a=s.exportTypedArrayMethod;a("reduce",function(u){return t(l(this),u,arguments.length,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-reduce":108}],287:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=s.aTypedArray,l=s.exportTypedArrayMethod,a=Math.floor;l("reverse",function(){for(var u=this,e=t(u).length,n=a(e/2),i=0,c;i<n;)c=u[i],u[i++]=u[--e],u[e]=c;return u})},{"../internals/array-buffer-view-core":96}],288:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/to-length"),l=o("../internals/to-offset"),a=o("../internals/to-object"),r=o("../internals/fails"),u=s.aTypedArray,e=s.exportTypedArrayMethod,n=r(function(){new Int8Array(1).set({})});e("set",function(c){u(this);var d=l(arguments.length>1?arguments[1]:void 0,1),h=this.length,p=a(c),g=t(p.length),v=0;if(g+d>h)throw RangeError("Wrong length");for(;v<g;)this[d+v]=p[v++]},n)},{"../internals/array-buffer-view-core":96,"../internals/fails":140,"../internals/to-length":221,"../internals/to-object":222,"../internals/to-offset":223}],289:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/typed-array-species-constructor"),l=o("../internals/fails"),a=s.aTypedArray,r=s.exportTypedArrayMethod,u=[].slice,e=l(function(){new Int8Array(1).slice()});r("slice",function(i,c){for(var d=u.call(a(this),i,c),h=t(this),p=0,g=d.length,v=new h(g);g>p;)v[p]=d[p++];return v},e)},{"../internals/array-buffer-view-core":96,"../internals/fails":140,"../internals/typed-array-species-constructor":233}],290:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/array-iteration").some,l=s.aTypedArray,a=s.exportTypedArrayMethod;a("some",function(u){return t(l(this),u,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],291:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/global"),l=o("../internals/fails"),a=o("../internals/a-function"),r=o("../internals/to-length"),u=o("../internals/array-sort"),e=o("../internals/engine-ff-version"),n=o("../internals/engine-is-ie-or-edge"),i=o("../internals/engine-v8-version"),c=o("../internals/engine-webkit-version"),d=s.aTypedArray,h=s.exportTypedArrayMethod,p=t.Uint16Array,g=p&&p.prototype.sort,v=!!g&&!l(function(){var b=new p(2);b.sort(null),b.sort({})}),A=!!g&&!l(function(){if(i)return i<74;if(e)return e<67;if(n)return!0;if(c)return c<602;var b=new p(516),w=Array(516),S,T;for(S=0;S<516;S++)T=S%4,b[S]=515-S,w[S]=S-2*T+3;for(b.sort(function(C,O){return(C/4|0)-(O/4|0)}),S=0;S<516;S++)if(b[S]!==w[S])return!0}),x=function(w){return function(S,T){return w!==void 0?+w(S,T)||0:T!==T?-1:S!==S?1:S===0&&T===0?1/S>0&&1/T<0?1:-1:S>T}};h("sort",function(w){var S=this;if(w!==void 0&&a(w),A)return g.call(S,w);d(S);var T=r(S.length),C=Array(T),O;for(O=0;O<T;O++)C[O]=S[O];for(C=u(S,x(w)),O=0;O<T;O++)S[O]=C[O];return S},!A||v)},{"../internals/a-function":89,"../internals/array-buffer-view-core":96,"../internals/array-sort":109,"../internals/engine-ff-version":128,"../internals/engine-is-ie-or-edge":130,"../internals/engine-v8-version":136,"../internals/engine-webkit-version":137,"../internals/fails":140,"../internals/global":147,"../internals/to-length":221}],292:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core"),t=o("../internals/to-length"),l=o("../internals/to-absolute-index"),a=o("../internals/typed-array-species-constructor"),r=s.aTypedArray,u=s.exportTypedArrayMethod;u("subarray",function(n,i){var c=r(this),d=c.length,h=l(n,d),p=a(c);return new p(c.buffer,c.byteOffset+h*c.BYTES_PER_ELEMENT,t((i===void 0?d:l(i,d))-h))})},{"../internals/array-buffer-view-core":96,"../internals/to-absolute-index":217,"../internals/to-length":221,"../internals/typed-array-species-constructor":233}],293:[function(o,m,f){"use strict";var s=o("../internals/global"),t=o("../internals/array-buffer-view-core"),l=o("../internals/fails"),a=s.Int8Array,r=t.aTypedArray,u=t.exportTypedArrayMethod,e=[].toLocaleString,n=[].slice,i=!!a&&l(function(){e.call(new a(1))}),c=l(function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()})||!l(function(){a.prototype.toLocaleString.call([1,2])});u("toLocaleString",function(){return e.apply(i?n.call(r(this)):r(this),arguments)},c)},{"../internals/array-buffer-view-core":96,"../internals/fails":140,"../internals/global":147}],294:[function(o,m,f){"use strict";var s=o("../internals/array-buffer-view-core").exportTypedArrayMethod,t=o("../internals/fails"),l=o("../internals/global"),a=l.Uint8Array,r=a&&a.prototype||{},u=[].toString,e=[].join;t(function(){u.call({})})&&(u=function(){return e.call(this)});var n=r.toString!=u;s("toString",u,n)},{"../internals/array-buffer-view-core":96,"../internals/fails":140,"../internals/global":147}],295:[function(o,m,f){var s=o("../internals/typed-array-constructor");s("Uint8",function(t){return function(a,r,u){return t(this,a,r,u)}})},{"../internals/typed-array-constructor":229}],296:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/dom-iterables"),l=o("../internals/array-for-each"),a=o("../internals/create-non-enumerable-property");for(var r in t){var u=s[r],e=u&&u.prototype;if(e&&e.forEach!==l)try{a(e,"forEach",l)}catch(n){e.forEach=l}}},{"../internals/array-for-each":100,"../internals/create-non-enumerable-property":120,"../internals/dom-iterables":127,"../internals/global":147}],297:[function(o,m,f){var s=o("../internals/global"),t=o("../internals/dom-iterables"),l=o("../modules/es.array.iterator"),a=o("../internals/create-non-enumerable-property"),r=o("../internals/well-known-symbol"),u=r("iterator"),e=r("toStringTag"),n=l.values;for(var i in t){var c=s[i],d=c&&c.prototype;if(d){if(d[u]!==n)try{a(d,u,n)}catch(p){d[u]=n}if(d[e]||a(d,e,i),t[i]){for(var h in l)if(d[h]!==l[h])try{a(d,h,l[h])}catch(p){d[h]=l[h]}}}}},{"../internals/create-non-enumerable-property":120,"../internals/dom-iterables":127,"../internals/global":147,"../internals/well-known-symbol":237,"../modules/es.array.iterator":247}],298:[function(o,m,f){function s(A){return Array.isArray?Array.isArray(A):v(A)==="[object Array]"}f.isArray=s;function t(A){return typeof A=="boolean"}f.isBoolean=t;function l(A){return A===null}f.isNull=l;function a(A){return A==null}f.isNullOrUndefined=a;function r(A){return typeof A=="number"}f.isNumber=r;function u(A){return typeof A=="string"}f.isString=u;function e(A){return typeof A=="symbol"}f.isSymbol=e;function n(A){return A===void 0}f.isUndefined=n;function i(A){return v(A)==="[object RegExp]"}f.isRegExp=i;function c(A){return typeof A=="object"&&A!==null}f.isObject=c;function d(A){return v(A)==="[object Date]"}f.isDate=d;function h(A){return v(A)==="[object Error]"||A instanceof Error}f.isError=h;function p(A){return typeof A=="function"}f.isFunction=p;function g(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A=="undefined"}f.isPrimitive=g,f.isBuffer=o("buffer").Buffer.isBuffer;function v(A){return Object.prototype.toString.call(A)}},{buffer:85}],299:[function(o,m,f){(function(s){"use strict";var t=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,i=/[^-+\dA-Z]/g;return function(c,d,h,p){if(arguments.length===1&&u(c)==="string"&&!/\d/.test(c)&&(d=c,c=void 0),c=c||new Date,c instanceof Date||(c=new Date(c)),isNaN(c))throw TypeError("Invalid date");d=String(t.masks[d]||d||t.masks.default);var g=d.slice(0,4);(g==="UTC:"||g==="GMT:")&&(d=d.slice(4),h=!0,g==="GMT:"&&(p=!0));var v=h?"getUTC":"get",A=c[v+"Date"](),x=c[v+"Day"](),b=c[v+"Month"](),w=c[v+"FullYear"](),S=c[v+"Hours"](),T=c[v+"Minutes"](),C=c[v+"Seconds"](),O=c[v+"Milliseconds"](),_=h?0:c.getTimezoneOffset(),M=a(c),k=r(c),R={d:A,dd:l(A),ddd:t.i18n.dayNames[x],dddd:t.i18n.dayNames[x+7],m:b+1,mm:l(b+1),mmm:t.i18n.monthNames[b],mmmm:t.i18n.monthNames[b+12],yy:String(w).slice(2),yyyy:w,h:S%12||12,hh:l(S%12||12),H:S,HH:l(S),M:T,MM:l(T),s:C,ss:l(C),l:l(O,3),L:l(Math.round(O/10)),t:S<12?"a":"p",tt:S<12?"am":"pm",T:S<12?"A":"P",TT:S<12?"AM":"PM",Z:p?"GMT":h?"UTC":(String(c).match(n)||[""]).pop().replace(i,""),o:(_>0?"-":"+")+l(Math.floor(Math.abs(_)/60)*100+Math.abs(_)%60,4),S:["th","st","nd","rd"][A%10>3?0:(A%100-A%10!=10)*A%10],W:M,N:k};return d.replace(e,function(B){return B in R?R[B]:B.slice(1,B.length-1)})}}();t.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"},t.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 l(e,n){for(e=String(e),n=n||2;e.length<n;)e="0"+e;return e}function a(e){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=new Date(n.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);var c=n.getTimezoneOffset()-i.getTimezoneOffset();n.setHours(n.getHours()-c);var d=(n-i)/(864e5*7);return 1+Math.floor(d)}function r(e){var n=e.getDay();return n===0&&(n=7),n}function u(e){return e===null?"null":e===void 0?"undefined":typeof e!="object"?typeof e:Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()}typeof L=="function"&&L.amd?L(function(){return t}):typeof f=="object"?m.exports=t:s.dateFormat=t})(this)},{}],300:[function(o,m,f){/*!
|
|
|
* escape-html
|
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var s=/["'&<>]/;m.exports=t;function t(l){var a=""+l,r=s.exec(a);if(!r)return a;var u,e="",n=0,i=0;for(n=r.index;n<a.length;n++){switch(a.charCodeAt(n)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}i!==n&&(e+=a.substring(i,n)),i=n+1,e+=u}return i!==n?e+a.substring(i,n):e}},{}],301:[function(o,m,f){function s(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}m.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0,s.defaultMaxListeners=10,s.prototype.setMaxListeners=function(u){if(!l(u)||u<0||isNaN(u))throw TypeError("n must be a positive number");return this._maxListeners=u,this},s.prototype.emit=function(u){var e,n,i,c,d,h;if(this._events||(this._events={}),u==="error"&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var p=new Error('Uncaught, unspecified "error" event. ('+e+")");throw p.context=e,p}if(n=this._events[u],r(n))return!1;if(t(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),n.apply(this,c)}else if(a(n))for(c=Array.prototype.slice.call(arguments,1),h=n.slice(),i=h.length,d=0;d<i;d++)h[d].apply(this,c);return!0},s.prototype.addListener=function(u,e){var n;if(!t(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",u,t(e.listener)?e.listener:e),this._events[u]?a(this._events[u])?this._events[u].push(e):this._events[u]=[this._events[u],e]:this._events[u]=e,a(this._events[u])&&!this._events[u].warned&&(r(this._maxListeners)?n=s.defaultMaxListeners:n=this._maxListeners,n&&n>0&&this._events[u].length>n&&(this._events[u].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[u].length),typeof console.trace=="function"&&console.trace())),this},s.prototype.on=s.prototype.addListener,s.prototype.once=function(u,e){if(!t(e))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(u,i),n||(n=!0,e.apply(this,arguments))}return i.listener=e,this.on(u,i),this},s.prototype.removeListener=function(u,e){var n,i,c,d;if(!t(e))throw TypeError("listener must be a function");if(!this._events||!this._events[u])return this;if(n=this._events[u],c=n.length,i=-1,n===e||t(n.listener)&&n.listener===e)delete this._events[u],this._events.removeListener&&this.emit("removeListener",u,e);else if(a(n)){for(d=c;d-- >0;)if(n[d]===e||n[d].listener&&n[d].listener===e){i=d;break}if(i<0)return this;n.length===1?(n.length=0,delete this._events[u]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",u,e)}return this},s.prototype.removeAllListeners=function(u){var e,n;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[u]&&delete this._events[u],this;if(arguments.length===0){for(e in this._events){if(e==="removeListener")continue;this.removeAllListeners(e)}return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[u],t(n))this.removeListener(u,n);else if(n)for(;n.length;)this.removeListener(u,n[n.length-1]);return delete this._events[u],this},s.prototype.listeners=function(u){var e;return!this._events||!this._events[u]?e=[]:t(this._events[u])?e=[this._events[u]]:e=this._events[u].slice(),e},s.prototype.listenerCount=function(u){if(this._events){var e=this._events[u];if(t(e))return 1;if(e)return e.length}return 0},s.listenerCount=function(u,e){return u.listenerCount(e)};function t(u){return typeof u=="function"}function l(u){return typeof u=="number"}function a(u){return typeof u=="object"&&u!==null}function r(u){return u===void 0}},{}],302:[function(o,m,f){var s=o("http"),t=m.exports;for(var l in s)s.hasOwnProperty(l)&&(t[l]=s[l]);t.request=function(a,r){return a||(a={}),a.scheme="https",a.protocol="https:",s.request.call(this,a,r)}},{http:400}],303:[function(o,m,f){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var s=o("util"),t=o("ms");m.exports=function(l){if(typeof l=="number")return l;var a=t(l);if(a===void 0){var r=new Error(s.format("humanize-ms(%j) result undefined",l));console.warn(r.stack)}return a}},{ms:319,util:352}],304:[function(o,m,f){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */f.read=function(s,t,l,a,r){var u,e,n=r*8-a-1,i=(1<<n)-1,c=i>>1,d=-7,h=l?r-1:0,p=l?-1:1,g=s[t+h];for(h+=p,u=g&(1<<-d)-1,g>>=-d,d+=n;d>0;u=u*256+s[t+h],h+=p,d-=8);for(e=u&(1<<-d)-1,u>>=-d,d+=a;d>0;e=e*256+s[t+h],h+=p,d-=8);if(u===0)u=1-c;else{if(u===i)return e?NaN:(g?-1:1)*Infinity;e=e+Math.pow(2,a),u=u-c}return(g?-1:1)*e*Math.pow(2,u-a)},f.write=function(s,t,l,a,r,u){var e,n,i,c=u*8-r-1,d=(1<<c)-1,h=d>>1,p=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=a?0:u-1,v=a?1:-1,A=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(n=isNaN(t)?1:0,e=d):(e=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-e))<1&&(e--,i*=2),e+h>=1?t+=p/i:t+=p*Math.pow(2,1-h),t*i>=2&&(e++,i/=2),e+h>=d?(n=0,e=d):e+h>=1?(n=(t*i-1)*Math.pow(2,r),e=e+h):(n=t*Math.pow(2,h-1)*Math.pow(2,r),e=0));r>=8;s[l+g]=n&255,g+=v,n/=256,r-=8);for(e=e<<r|n,c+=r;c>0;s[l+g]=e&255,g+=v,e/=256,c-=8);s[l+g-v]|=A*128}},{}],305:[function(o,m,f){"use strict";var s=[o("./nextTick"),o("./queueMicrotask"),o("./mutation.js"),o("./messageChannel"),o("./stateChange"),o("./timeout")],t,l,a=-1,r=[],u=!1;function e(){if(!t||!l)return;t=!1,l.length?r=l.concat(r):a=-1,r.length&&n()}function n(){if(t)return;u=!1,t=!0;for(var g=r.length,v=setTimeout(e);g;){for(l=r,r=[];l&&++a<g;)l[a].run();a=-1,g=r.length}l=null,a=-1,t=!1,clearTimeout(v)}for(var i,c=-1,d=s.length;++c<d;)if(s[c]&&s[c].test&&s[c].test()){i=s[c].install(n);break}function h(g,v){this.fun=g,this.array=v}h.prototype.run=function(){var g=this.fun,v=this.array;switch(v.length){case 0:return g();case 1:return g(v[0]);case 2:return g(v[0],v[1]);case 3:return g(v[0],v[1],v[2]);default:return g.apply(null,v)}},m.exports=p;function p(g){var v=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)v[A-1]=arguments[A];r.push(new h(g,v)),!u&&!t&&(u=!0,i())}},{"./messageChannel":306,"./mutation.js":307,"./nextTick":84,"./queueMicrotask":308,"./stateChange":309,"./timeout":310}],306:[function(o,m,f){(function(s){(function(){"use strict";f.test=function(){return s.setImmediate?!1:typeof s.MessageChannel!="undefined"},f.install=function(t){var l=new s.MessageChannel;return l.port1.onmessage=t,function(){l.port2.postMessage(0)}}}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],307:[function(o,m,f){(function(s){(function(){"use strict";var t=s.MutationObserver||s.WebKitMutationObserver;f.test=function(){return t},f.install=function(l){var a=0,r=new t(l),u=s.document.createTextNode("");return r.observe(u,{characterData:!0}),function(){u.data=a=++a%2}}}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],308:[function(o,m,f){(function(s){(function(){"use strict";f.test=function(){return typeof s.queueMicrotask=="function"},f.install=function(t){return function(){s.queueMicrotask(t)}}}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],309:[function(o,m,f){(function(s){(function(){"use strict";f.test=function(){return"document"in s&&"onreadystatechange"in s.document.createElement("script")},f.install=function(t){return function(){var l=s.document.createElement("script");return l.onreadystatechange=function(){t(),l.onreadystatechange=null,l.parentNode.removeChild(l),l=null},s.document.documentElement.appendChild(l),t}}}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],310:[function(o,m,f){"use strict";f.test=function(){return!0},f.install=function(s){return function(){setTimeout(s,0)}}},{}],311:[function(o,m,f){typeof Object.create=="function"?m.exports=function(t,l){l&&(t.super_=l,t.prototype=Object.create(l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:m.exports=function(t,l){if(l){t.super_=l;var a=function(){};a.prototype=l.prototype,t.prototype=new a,t.prototype.constructor=t}}},{}],312:[function(o,m,f){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/m.exports=function(l){return l!=null&&(s(l)||t(l)||!!l._isBuffer)};function s(l){return!!l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l)}function t(l){return typeof l.readFloatLE=="function"&&typeof l.slice=="function"&&s(l.slice(0,0))}},{}],313:[function(o,m,f){var s={}.toString;m.exports=Array.isArray||function(t){return s.call(t)=="[object Array]"}},{}],314:[function(o,m,f){(function(s){(function(){(function(t,l){typeof f=="object"&&typeof m!="undefined"?m.exports=l(t):typeof L=="function"&&L.amd?L(l):l(t)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof s!="undefined"?s:this,function(t){"use strict";t=t||{};var l=t.Base64,a="2.6.4",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(U){for(var j={},H=0,W=U.length;H<W;H++)j[U.charAt(H)]=H;return j}(r),e=String.fromCharCode,n=function(j){if(j.length<2){var H=j.charCodeAt(0);return H<128?j:H<2048?e(192|H>>>6)+e(128|H&63):e(224|H>>>12&15)+e(128|H>>>6&63)+e(128|H&63)}else{var H=65536+(j.charCodeAt(0)-55296)*1024+(j.charCodeAt(1)-56320);return e(240|H>>>18&7)+e(128|H>>>12&63)+e(128|H>>>6&63)+e(128|H&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,c=function(j){return j.replace(i,n)},d=function(j){var H=[0,2,1][j.length%3],W=j.charCodeAt(0)<<16|(j.length>1?j.charCodeAt(1):0)<<8|(j.length>2?j.charCodeAt(2):0),G=[r.charAt(W>>>18),r.charAt(W>>>12&63),H>=2?"=":r.charAt(W>>>6&63),H>=1?"=":r.charAt(W&63)];return G.join("")},h=t.btoa&&typeof t.btoa=="function"?function(U){return t.btoa(U)}:function(U){if(U.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return U.replace(/[\s\S]{1,3}/g,d)},p=function(j){return h(c(String(j)))},g=function(j){return j.replace(/[+\/]/g,function(H){return H=="+"?"-":"_"}).replace(/=/g,"")},v=function(j,H){return H?g(p(j)):p(j)},A=function(j){return v(j,!0)},x;t.Uint8Array&&(x=function(j,H){for(var W="",G=0,V=j.length;G<V;G+=3){var Z=j[G],Y=j[G+1],Q=j[G+2],oe=Z<<16|Y<<8|Q;W+=r.charAt(oe>>>18)+r.charAt(oe>>>12&63)+(typeof Y!="undefined"?r.charAt(oe>>>6&63):"=")+(typeof Q!="undefined"?r.charAt(oe&63):"=")}return H?g(W):W});var b=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=function(j){switch(j.length){case 4:var H=(7&j.charCodeAt(0))<<18|(63&j.charCodeAt(1))<<12|(63&j.charCodeAt(2))<<6|63&j.charCodeAt(3),W=H-65536;return e((W>>>10)+55296)+e((W&1023)+56320);case 3:return e((15&j.charCodeAt(0))<<12|(63&j.charCodeAt(1))<<6|63&j.charCodeAt(2));default:return e((31&j.charCodeAt(0))<<6|63&j.charCodeAt(1))}},S=function(j){return j.replace(b,w)},T=function(j){var H=j.length,W=H%4,G=(H>0?u[j.charAt(0)]<<18:0)|(H>1?u[j.charAt(1)]<<12:0)|(H>2?u[j.charAt(2)]<<6:0)|(H>3?u[j.charAt(3)]:0),V=[e(G>>>16),e(G>>>8&255),e(G&255)];return V.length-=[0,0,2,1][W],V.join("")},C=t.atob&&typeof t.atob=="function"?function(U){return t.atob(U)}:function(U){return U.replace(/\S{1,4}/g,T)},O=function(j){return C(String(j).replace(/[^A-Za-z0-9\+\/]/g,""))},_=function(j){return S(C(j))},M=function(j){return String(j).replace(/[-_]/g,function(H){return H=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},k=function(j){return _(M(j))},R;t.Uint8Array&&(R=function(j){return Uint8Array.from(O(M(j)),function(H){return H.charCodeAt(0)})});var B=function(){var j=t.Base64;return t.Base64=l,j};if(t.Base64={VERSION:a,atob:O,btoa:h,fromBase64:k,toBase64:v,utob:c,encode:v,encodeURI:A,btou:S,decode:k,noConflict:B,fromUint8Array:x,toUint8Array:R},typeof Object.defineProperty=="function"){var P=function(j){return{value:j,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",P(function(){return k(this)})),Object.defineProperty(String.prototype,"toBase64",P(function(U){return v(this,U)})),Object.defineProperty(String.prototype,"toBase64URI",P(function(){return v(this,!0)}))}}return t.Meteor&&(Base64=t.Base64),typeof m!="undefined"&&m.exports?m.exports.Base64=t.Base64:typeof L=="function"&&L.amd&&L([],function(){return t.Base64}),{Base64:t.Base64}})}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],315:[function(o,m,f){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";m.exports=t;var s=Object.prototype.hasOwnProperty;function t(l,a,r){if(!l)throw new TypeError("argument dest is required");if(!a)throw new TypeError("argument src is required");return r===void 0&&(r=!0),Object.getOwnPropertyNames(a).forEach(function(e){if(!r&&s.call(l,e))return;var n=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(l,e,n)}),l}},{}],316:[function(o,m,f){"use strict";o("core-js/modules/es.array.map.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.replace.js"),o("core-js/modules/es.regexp.constructor.js"),o("core-js/modules/es.regexp.to-string.js");function s(){this._types=Object.create(null),this._extensions=Object.create(null);for(var t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}s.prototype.define=function(t,l){for(var a in t){var r=t[a].map(function(i){return i.toLowerCase()});a=a.toLowerCase();for(var u=0;u<r.length;u++){var e=r[u];if(e[0]==="*")continue;if(!l&&e in this._types)throw new Error('Attempt to change mapping for "'+e+'" extension from "'+this._types[e]+'" to "'+a+'". Pass `force=true` to allow this, otherwise remove "'+e+'" from the list of extensions for "'+a+'".');this._types[e]=a}if(l||!this._extensions[a]){var n=r[0];this._extensions[a]=n[0]!=="*"?n:n.substr(1)}}},s.prototype.getType=function(t){t=String(t);var l=t.replace(/^.*[/\\]/,"").toLowerCase(),a=l.replace(/^.*\./,"").toLowerCase(),r=l.length<t.length,u=a.length<l.length-1;return(u||!r)&&this._types[a]||null},s.prototype.getExtension=function(t){return t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1,t&&this._extensions[t.toLowerCase()]||null},m.exports=s},{"core-js/modules/es.array.map.js":249,"core-js/modules/es.regexp.constructor.js":260,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266}],317:[function(o,m,f){"use strict";var s=o("./Mime");m.exports=new s(o("./types/standard"))},{"./Mime":316,"./types/standard":318}],318:[function(o,m,f){"use strict";m.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/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"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":["*xsl","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/amr":["amr"],"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","opus"],"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/avif":["avif"],"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/ktx2":["ktx2"],"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/spdx":["spdx"],"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/iso.segment":["m4s"],"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"]}},{}],319:[function(o,m,f){var s=1e3,t=s*60,l=t*60,a=l*24,r=a*7,u=a*365.25;m.exports=function(d,h){h=h||{};var p=typeof d;if(p==="string"&&d.length>0)return e(d);if(p==="number"&&isFinite(d))return h.long?i(d):n(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function e(d){if(d=String(d),d.length>100)return;var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(!h)return;var p=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*u;case"weeks":case"week":case"w":return p*r;case"days":case"day":case"d":return p*a;case"hours":case"hour":case"hrs":case"hr":case"h":return p*l;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}function n(d){var h=Math.abs(d);return h>=a?Math.round(d/a)+"d":h>=l?Math.round(d/l)+"h":h>=t?Math.round(d/t)+"m":h>=s?Math.round(d/s)+"s":d+"ms"}function i(d){var h=Math.abs(d);return h>=a?c(d,h,a,"day"):h>=l?c(d,h,l,"hour"):h>=t?c(d,h,t,"minute"):h>=s?c(d,h,s,"second"):d+" ms"}function c(d,h,p,g){var v=h>=p*1.5;return Math.round(d/p)+" "+g+(v?"s":"")}},{}],320:[function(o,m,f){/*
|
|
|
object-assign
|
|
|
(c) Sindre Sorhus
|
|
|
@license MIT
|
|
|
*/"use strict";var s=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function a(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function r(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(e).map(function(d){return e[d]});if(i.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),!(Object.keys(Object.assign({},c)).join("")!=="abcdefghijklmnopqrst")}catch(d){return!1}}m.exports=r()?Object.assign:function(u,e){for(var n,i=a(u),c,d=1;d<arguments.length;d++){n=Object(arguments[d]);for(var h in n)t.call(n,h)&&(i[h]=n[h]);if(s){c=s(n);for(var p=0;p<c.length;p++)l.call(n,c[p])&&(i[c[p]]=n[c[p]])}}return i}},{}],321:[function(o,m,f){(function(s){(function(){function t(u,e){for(var n=0,i=u.length-1;i>=0;i--){var c=u[i];c==="."?u.splice(i,1):c===".."?(u.splice(i,1),n++):n&&(u.splice(i,1),n--)}if(e)for(;n--;n)u.unshift("..");return u}f.resolve=function(){for(var u="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var i=n>=0?arguments[n]:s.cwd();if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!i)continue;u=i+"/"+u,e=i.charAt(0)==="/"}return u=t(a(u.split("/"),function(c){return!!c}),!e).join("/"),(e?"/":"")+u||"."},f.normalize=function(u){var e=f.isAbsolute(u),n=r(u,-1)==="/";return u=t(a(u.split("/"),function(i){return!!i}),!e).join("/"),!u&&!e&&(u="."),u&&n&&(u+="/"),(e?"/":"")+u},f.isAbsolute=function(u){return u.charAt(0)==="/"},f.join=function(){var u=Array.prototype.slice.call(arguments,0);return f.normalize(a(u,function(e,n){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},f.relative=function(u,e){u=f.resolve(u).substr(1),e=f.resolve(e).substr(1);function n(v){for(var A=0;A<v.length&&!(v[A]!=="");A++);for(var x=v.length-1;x>=0&&!(v[x]!=="");x--);return A>x?[]:v.slice(A,x-A+1)}for(var i=n(u.split("/")),c=n(e.split("/")),d=Math.min(i.length,c.length),h=d,p=0;p<d;p++)if(i[p]!==c[p]){h=p;break}for(var g=[],p=h;p<i.length;p++)g.push("..");return g=g.concat(c.slice(h)),g.join("/")},f.sep="/",f.delimiter=":",f.dirname=function(u){if(typeof u!="string"&&(u=u+""),u.length===0)return".";for(var e=u.charCodeAt(0),n=e===47,i=-1,c=!0,d=u.length-1;d>=1;--d)if(e=u.charCodeAt(d),e===47){if(!c){i=d;break}}else c=!1;return i===-1?n?"/":".":n&&i===1?"/":u.slice(0,i)};function l(u){typeof u!="string"&&(u=u+"");var e=0,n=-1,i=!0,c;for(c=u.length-1;c>=0;--c)if(u.charCodeAt(c)===47){if(!i){e=c+1;break}}else n===-1&&(i=!1,n=c+1);return n===-1?"":u.slice(e,n)}f.basename=function(u,e){var n=l(u);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},f.extname=function(u){typeof u!="string"&&(u=u+"");for(var e=-1,n=0,i=-1,c=!0,d=0,h=u.length-1;h>=0;--h){var p=u.charCodeAt(h);if(p===47){if(!c){n=h+1;break}continue}i===-1&&(c=!1,i=h+1),p===46?e===-1?e=h:d!==1&&(d=1):e!==-1&&(d=-1)}return e===-1||i===-1||d===0||d===1&&e===i-1&&e===n+1?"":u.slice(e,i)};function a(u,e){if(u.filter)return u.filter(e);for(var n=[],i=0;i<u.length;i++)e(u[i],i,u)&&n.push(u[i]);return n}var r="ab".substr(-1)==="b"?function(u,e,n){return u.substr(e,n)}:function(u,e,n){return e<0&&(e=u.length+e),u.substr(e,n)}}).call(this)}).call(this,o("_process"))},{_process:399}],322:[function(o,m,f){(function(s){(function(){/*!
|
|
|
* Platform.js v1.3.6
|
|
|
* Copyright 2014-2020 Benjamin Tan
|
|
|
* Copyright 2011-2013 John-David Dalton
|
|
|
* Available under MIT license
|
|
|
*/(function(){"use strict";var t={function:!0,object:!0},l=t[typeof window]&&window||this,a=l,r=t[typeof f]&&f,u=t[typeof m]&&m&&!m.nodeType&&m,e=r&&u&&typeof s=="object"&&s;e&&(e.global===e||e.window===e||e.self===e)&&(l=e);var n=Math.pow(2,53)-1,i=/\bOpera/,c=this,d=Object.prototype,h=d.hasOwnProperty,p=d.toString;function g(k){return k=String(k),k.charAt(0).toUpperCase()+k.slice(1)}function v(k,R,B){var P={"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 R&&B&&/^Win/i.test(k)&&!/^Windows Phone /i.test(k)&&(P=P[/[\d.]+$/.exec(k)])&&(k="Windows "+P),k=String(k),R&&B&&(k=k.replace(RegExp(R,"i"),B)),k=x(k.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]),k}function A(k,R){var B=-1,P=k?k.length:0;if(typeof P=="number"&&P>-1&&P<=n)for(;++B<P;)R(k[B],B,k);else b(k,R)}function x(k){return k=O(k),/^(?:webOS|i(?:OS|P))/.test(k)?k:g(k)}function b(k,R){for(var B in k)h.call(k,B)&&R(k[B],B,k)}function w(k){return k==null?g(k):p.call(k).slice(8,-1)}function S(k,R){var B=k!=null?typeof k[R]:"number";return!/^(?:boolean|number|string|undefined)$/.test(B)&&(B=="object"?!!k[R]:!0)}function T(k){return String(k).replace(/([ -])(?!$)/g,"$1?")}function C(k,R){var B=null;return A(k,function(P,U){B=R(B,P,U,k)}),B}function O(k){return String(k).replace(/^ +| +$/g,"")}function _(k){var R=l,B=k&&typeof k=="object"&&w(k)!="String";B&&(R=k,k=null);var P=R.navigator||{},U=P.userAgent||"";k||(k=U);var j=B||c==a,H=B?!!P.likeChrome:/\bChrome\b/.test(k)&&!/internal|\n/i.test(p.toString()),W="Object",G=B?W:"ScriptBridgingProxyObject",V=B?W:"Environment",Z=B&&R.java?"JavaPackage":w(R.java),Y=B?W:"RuntimeObject",Q=/\bJava/.test(Z)&&R.java,oe=Q&&w(R.environment)==V,ue=Q?"a":"\u03B1",Le=Q?"b":"\u03B2",me=R.document||{},Ie=R.operamini||R.opera,X=i.test(X=B&&Ie?Ie["[[Class]]"]:w(Ie))?X:Ie=null,q,We=k,$=[],J=null,le=k==U,de=le&&Ie&&typeof Ie.version=="function"&&Ie.version(),Ne,we=ee([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),De=Ve(["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|Edg|EdgA|EdgiOS)"},"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","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{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"]),Ee=Oe([{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"]),ce=Ae({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},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:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),ne=Ke(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"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 ee(At){return C(At,function(bt,St){return bt||RegExp("\\b"+(St.pattern||T(St))+"\\b","i").exec(k)&&(St.label||St)})}function Ae(At){return C(At,function(bt,St,Et){return bt||(St[Ee]||St[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ee)]||RegExp("\\b"+T(Et)+"(?:\\b|\\w*\\d)","i").exec(k))&&Et})}function Ve(At){return C(At,function(bt,St){return bt||RegExp("\\b"+(St.pattern||T(St))+"\\b","i").exec(k)&&(St.label||St)})}function Ke(At){return C(At,function(bt,St){var Et=St.pattern||T(St);return!bt&&(bt=RegExp("\\b"+Et+"(?:/[\\d.]+|[ \\w.]*)","i").exec(k))&&(bt=v(bt,Et,St.label||St)),bt})}function Oe(At){return C(At,function(bt,St){var Et=St.pattern||T(St);return!bt&&(bt=RegExp("\\b"+Et+" *\\d+[.\\w_]*","i").exec(k)||RegExp("\\b"+Et+" *\\w+-[\\w]*","i").exec(k)||RegExp("\\b"+Et+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(k))&&((bt=String(St.label&&!RegExp(Et,"i").test(St.label)?St.label:bt).split("/"))[1]&&!/[\d.]+/.test(bt[0])&&(bt[0]+=" "+bt[1]),St=St.label||St,bt=x(bt[0].replace(RegExp(Et,"i"),St).replace(RegExp("; *(?:"+St+"[_-])?","i")," ").replace(RegExp("("+St+")[-_.]?(\\w)","i"),"$1 $2"))),bt})}function it(At){return C(At,function(bt,St){return bt||(RegExp(St+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(k)||0)[1]||null})}function Fe(){return this.description||""}if(we&&(we=[we]),/\bAndroid\b/.test(ne)&&!Ee&&(q=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(k))&&(Ee=O(q[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ce&&!Ee?Ee=Oe([ce]):ce&&Ee&&(Ee=Ee.replace(RegExp("^("+T(ce)+")[-_.\\s]","i"),ce+" ").replace(RegExp("^("+T(ce)+")[-_.]?(\\w)","i"),ce+" $2")),(q=/\bGoogle TV\b/.exec(Ee))&&(Ee=q[0]),/\bSimulator\b/i.test(k)&&(Ee=(Ee?Ee+" ":"")+"Simulator"),De=="Opera Mini"&&/\bOPiOS\b/.test(k)&&$.push("running in Turbo/Uncompressed mode"),De=="IE"&&/\blike iPhone OS\b/.test(k)?(q=_(k.replace(/like iPhone OS/,"")),ce=q.manufacturer,Ee=q.product):/^iP/.test(Ee)?(De||(De="Safari"),ne="iOS"+((q=/ OS ([\d_]+)/i.exec(k))?" "+q[1].replace(/_/g,"."):"")):De=="Konqueror"&&/^Linux\b/i.test(ne)?ne="Kubuntu":ce&&ce!="Google"&&(/Chrome/.test(De)&&!/\bMobile Safari\b/i.test(k)||/\bVita\b/.test(Ee))||/\bAndroid\b/.test(ne)&&/^Chrome/.test(De)&&/\bVersion\//i.test(k)?(De="Android Browser",ne=/\bAndroid\b/.test(ne)?ne:"Android"):De=="Silk"?(/\bMobi/i.test(k)||(ne="Android",$.unshift("desktop mode")),/Accelerated *= *true/i.test(k)&&$.unshift("accelerated")):De=="UC Browser"&&/\bUCWEB\b/.test(k)?$.push("speed mode"):De=="PaleMoon"&&(q=/\bFirefox\/([\d.]+)\b/.exec(k))?$.push("identifying as Firefox "+q[1]):De=="Firefox"&&(q=/\b(Mobile|Tablet|TV)\b/i.exec(k))?(ne||(ne="Firefox OS"),Ee||(Ee=q[1])):!De||(q=!/\bMinefield\b/i.test(k)&&/\b(?:Firefox|Safari)\b/.exec(De))?(De&&!Ee&&/[\/,]|^[^(]+?\)/.test(k.slice(k.indexOf(q+"/")+8))&&(De=null),(q=Ee||ce||ne)&&(Ee||ce||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(ne))&&(De=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(ne)?ne:q)+" Browser")):De=="Electron"&&(q=(/\bChrome\/([\d.]+)\b/.exec(k)||0)[1])&&$.push("Chromium "+q),de||(de=it(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",T(De),"(?:Firefox|Minefield|NetFront)"])),(q=we=="iCab"&&parseFloat(de)>3&&"WebKit"||/\bOpera\b/.test(De)&&(/\bOPR\b/.test(k)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(k)&&!/^(?:Trident|EdgeHTML)$/.test(we)&&"WebKit"||!we&&/\bMSIE\b/i.test(k)&&(ne=="Mac OS"?"Tasman":"Trident")||we=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(De)&&"NetFront")&&(we=[q]),De=="IE"&&(q=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(k)||0)[1])?(De+=" Mobile",ne="Windows Phone "+(/\+$/.test(q)?q:q+".x"),$.unshift("desktop mode")):/\bWPDesktop\b/i.test(k)?(De="IE Mobile",ne="Windows Phone 8.x",$.unshift("desktop mode"),de||(de=(/\brv:([\d.]+)/.exec(k)||0)[1])):De!="IE"&&we=="Trident"&&(q=/\brv:([\d.]+)/.exec(k))&&(De&&$.push("identifying as "+De+(de?" "+de:"")),De="IE",de=q[1]),le){if(S(R,"global"))if(Q&&(q=Q.lang.System,We=q.getProperty("os.arch"),ne=ne||q.getProperty("os.name")+" "+q.getProperty("os.version")),oe){try{de=R.require("ringo/engine").version.join("."),De="RingoJS"}catch(At){(q=R.system)&&q.global.system==R.system&&(De="Narwhal",ne||(ne=q[0].os||null))}De||(De="Rhino")}else typeof R.process=="object"&&!R.process.browser&&(q=R.process)&&(typeof q.versions=="object"&&(typeof q.versions.electron=="string"?($.push("Node "+q.versions.node),De="Electron",de=q.versions.electron):typeof q.versions.nw=="string"&&($.push("Chromium "+de,"Node "+q.versions.node),De="NW.js",de=q.versions.nw)),De||(De="Node.js",We=q.arch,ne=q.platform,de=/[\d.]+/.exec(q.version),de=de?de[0]:null));else w(q=R.runtime)==G?(De="Adobe AIR",ne=q.flash.system.Capabilities.os):w(q=R.phantom)==Y?(De="PhantomJS",de=(q=q.version||null)&&q.major+"."+q.minor+"."+q.patch):typeof me.documentMode=="number"&&(q=/\bTrident\/(\d+)/i.exec(k))?(de=[de,me.documentMode],(q=+q[1]+4)!=de[1]&&($.push("IE "+de[1]+" mode"),we&&(we[1]=""),de[1]=q),de=De=="IE"?String(de[1].toFixed(1)):de[0]):typeof me.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(De)&&($.push("masking as "+De+" "+de),De="IE",de="11.0",we=["Trident"],ne="Windows");ne=ne&&x(ne)}if(de&&(q=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(de)||/(?:alpha|beta)(?: ?\d)?/i.exec(k+";"+(le&&P.appMinorVersion))||/\bMinefield\b/i.test(k)&&"a")&&(J=/b/i.test(q)?"beta":"alpha",de=de.replace(RegExp(q+"\\+?$"),"")+(J=="beta"?Le:ue)+(/\d+\+?/.exec(q)||"")),De=="Fennec"||De=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(ne))De="Firefox Mobile";else if(De=="Maxthon"&&de)de=de.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ee))Ee=="Xbox 360"&&(ne=null),Ee=="Xbox 360"&&/\bIEMobile\b/.test(k)&&$.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(De)||De&&!Ee&&!/Browser|Mobi/.test(De))&&(ne=="Windows CE"||/Mobi/i.test(k)))De+=" Mobile";else if(De=="IE"&&le)try{R.external===null&&$.unshift("platform preview")}catch(At){$.unshift("embedded")}else(/\bBlackBerry\b/.test(Ee)||/\bBB10\b/.test(k))&&(q=(RegExp(Ee.replace(/ +/g," *")+"/([.\\d]+)","i").exec(k)||0)[1]||de)?(q=[q,/BB10/.test(k)],ne=(q[1]?(Ee=null,ce="BlackBerry"):"Device Software")+" "+q[0],de=null):this!=b&&Ee!="Wii"&&(le&&Ie||/Opera/.test(De)&&/\b(?:MSIE|Firefox)\b/i.test(k)||De=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(ne)||De=="IE"&&(ne&&!/^Win/.test(ne)&&de>5.5||/\bWindows XP\b/.test(ne)&&de>8||de==8&&!/\bTrident\b/.test(k)))&&!i.test(q=_.call(b,k.replace(i,"")+";"))&&q.name&&(q="ing as "+q.name+((q=q.version)?" "+q:""),i.test(De)?(/\bIE\b/.test(q)&&ne=="Mac OS"&&(ne=null),q="identify"+q):(q="mask"+q,X?De=x(X.replace(/([a-z])([A-Z])/g,"$1 $2")):De="Opera",/\bIE\b/.test(q)&&(ne=null),le||(de=null)),we=["Presto"],$.push(q));(q=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(k)||0)[1])&&(q=[parseFloat(q.replace(/\.(\d)$/,".0$1")),q],De=="Safari"&&q[1].slice(-1)=="+"?(De="WebKit Nightly",J="alpha",de=q[1].slice(0,-1)):(de==q[1]||de==(q[2]=(/\bSafari\/([\d.]+\+?)/i.exec(k)||0)[1]))&&(de=null),q[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(k)||0)[1],q[0]==537.36&&q[2]==537.36&&parseFloat(q[1])>=28&&we=="WebKit"&&(we=["Blink"]),!le||!H&&!q[1]?(we&&(we[1]="like Safari"),q=(q=q[0],q<400?1:q<500?2:q<526?3:q<533?4:q<534?"4+":q<535?5:q<537?6:q<538?7:q<601?8:q<602?9:q<604?10:q<606?11:q<608?12:"12")):(we&&(we[1]="like Chrome"),q=q[1]||(q=q[0],q<530?1:q<532?2:q<532.05?3:q<533?4:q<534.03?5:q<534.07?6:q<534.1?7:q<534.13?8:q<534.16?9:q<534.24?10:q<534.3?11:q<535.01?12:q<535.02?"13+":q<535.07?15:q<535.11?16:q<535.19?17:q<536.05?18:q<536.1?19:q<537.01?20:q<537.11?"21+":q<537.13?23:q<537.18?24:q<537.24?25:q<537.36?26:we!="Blink"?"27":"28")),we&&(we[1]+=" "+(q+=typeof q=="number"?".x":/[.+]/.test(q)?"":"+")),De=="Safari"&&(!de||parseInt(de)>45)?de=q:De=="Chrome"&&/\bHeadlessChrome/i.test(k)&&$.unshift("headless")),De=="Opera"&&(q=/\bzbov|zvav$/.exec(ne))?(De+=" ",$.unshift("desktop mode"),q=="zvav"?(De+="Mini",de=null):De+="Mobile",ne=ne.replace(RegExp(" *"+q+"$"),"")):De=="Safari"&&/\bChrome\b/.exec(we&&we[1])?($.unshift("desktop mode"),De="Chrome Mobile",de=null,/\bOS X\b/.test(ne)?(ce="Apple",ne="iOS 4.3+"):ne=null):/\bSRWare Iron\b/.test(De)&&!de&&(de=it("Chrome")),de&&de.indexOf(q=/[\d.]+$/.exec(ne))==0&&k.indexOf("/"+q+"-")>-1&&(ne=O(ne.replace(q,""))),ne&&ne.indexOf(De)!=-1&&!RegExp(De+" OS").test(ne)&&(ne=ne.replace(RegExp(" *"+T(De)+" *"),"")),we&&!/\b(?:Avant|Nook)\b/.test(De)&&(/Browser|Lunascape|Maxthon/.test(De)||De!="Safari"&&/^iOS/.test(ne)&&/\bSafari\b/.test(we[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(De)&&we[1])&&((q=we[we.length-1])&&$.push(q)),$.length&&($=["("+$.join("; ")+")"]),ce&&Ee&&Ee.indexOf(ce)<0&&$.push("on "+ce),Ee&&$.push((/^on /.test($[$.length-1])?"":"on ")+Ee),ne&&(q=/ ([\d.+]+)$/.exec(ne),Ne=q&&ne.charAt(ne.length-q[0].length-1)=="/",ne={architecture:32,family:q&&!Ne?ne.replace(q[0],""):ne,version:q?q[1]:null,toString:function(){var bt=this.version;return this.family+(bt&&!Ne?" "+bt:"")+(this.architecture==64?" 64-bit":"")}}),(q=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(We))&&!/\bi686\b/i.test(We)?(ne&&(ne.architecture=64,ne.family=ne.family.replace(RegExp(" *"+q),"")),De&&(/\bWOW64\b/i.test(k)||le&&/\w(?:86|32)$/.test(P.cpuClass||P.platform)&&!/\bWin64; x64\b/i.test(k))&&$.unshift("32-bit")):ne&&/^OS X/.test(ne.family)&&De=="Chrome"&&parseFloat(de)>=39&&(ne.architecture=64),k||(k=null);var ft={};return ft.description=k,ft.layout=we&&we[0],ft.manufacturer=ce,ft.name=De,ft.prerelease=J,ft.product=Ee,ft.ua=k,ft.version=De&&de,ft.os=ne||{architecture:null,family:null,version:null,toString:function(){return"null"}},ft.parse=_,ft.toString=Fe,ft.version&&$.unshift(de),ft.name&&$.unshift(De),ne&&De&&!(ne==String(ne).split(" ")[0]&&(ne==De.split(" ")[0]||Ee))&&$.push(Ee?"("+ne+")":"on "+ne),$.length&&(ft.description=$.join(" ")),ft}var M=_();typeof L=="function"&&typeof L.amd=="object"&&L.amd?(l.platform=M,L(function(){return M})):r&&u?b(M,function(k,R){r[R]=k}):l.platform=M}).call(this)}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],323:[function(o,m,f){(function(s){(function(){"use strict";typeof s=="undefined"||!s.version||s.version.indexOf("v0.")===0||s.version.indexOf("v1.")===0&&s.version.indexOf("v1.8.")!==0?m.exports={nextTick:t}:m.exports=s;function t(l,a,r,u){if(typeof l!="function")throw new TypeError('"callback" argument must be a function');var e=arguments.length,n,i;switch(e){case 0:case 1:return s.nextTick(l);case 2:return s.nextTick(function(){l.call(null,a)});case 3:return s.nextTick(function(){l.call(null,a,r)});case 4:return s.nextTick(function(){l.call(null,a,r,u)});default:for(n=new Array(e-1),i=0;i<n.length;)n[i++]=arguments[i];return s.nextTick(function(){l.apply(null,n)})}}}).call(this)}).call(this,o("_process"))},{_process:399}],324:[function(o,m,f){var s=m.exports={},t,l;function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=a}catch(A){t=a}try{typeof clearTimeout=="function"?l=clearTimeout:l=r}catch(A){l=r}})();function u(A){if(t===setTimeout)return setTimeout(A,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(A,0);try{return t(A,0)}catch(x){try{return t.call(null,A,0)}catch(b){return t.call(this,A,0)}}}function e(A){if(l===clearTimeout)return clearTimeout(A);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(A);try{return l(A)}catch(x){try{return l.call(null,A)}catch(b){return l.call(this,A)}}}var n=[],i=!1,c,d=-1;function h(){if(!i||!c)return;i=!1,c.length?n=c.concat(n):d=-1,n.length&&p()}function p(){if(i)return;var A=u(h);i=!0;for(var x=n.length;x;){for(c=n,n=[];++d<x;)c&&c[d].run();d=-1,x=n.length}c=null,i=!1,e(A)}s.nextTick=function(A){var x=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)x[b-1]=arguments[b];n.push(new g(A,x)),n.length===1&&!i&&u(p)};function g(A,x){this.fun=A,this.array=x}g.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={};function v(){}s.on=v,s.addListener=v,s.once=v,s.off=v,s.removeListener=v,s.removeAllListeners=v,s.emit=v,s.prependListener=v,s.prependOnceListener=v,s.listeners=function(A){return[]},s.binding=function(A){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(A){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],325:[function(o,m,f){(function(s){(function(){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(t){var l=typeof f=="object"&&f&&!f.nodeType&&f,a=typeof m=="object"&&m&&!m.nodeType&&m,r=typeof s=="object"&&s;(r.global===r||r.window===r||r.self===r)&&(t=r);var u,e=2147483647,n=36,i=1,c=26,d=38,h=700,p=72,g=128,v="-",A=/^xn--/,x=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=n-i,T=Math.floor,C=String.fromCharCode,O;function _(Z){throw new RangeError(w[Z])}function M(Z,Y){for(var Q=Z.length,oe=[];Q--;)oe[Q]=Y(Z[Q]);return oe}function k(Z,Y){var Q=Z.split("@"),oe="";Q.length>1&&(oe=Q[0]+"@",Z=Q[1]),Z=Z.replace(b,".");var ue=Z.split("."),Le=M(ue,Y).join(".");return oe+Le}function R(Z){for(var Y=[],Q=0,oe=Z.length,ue,Le;Q<oe;)ue=Z.charCodeAt(Q++),ue>=55296&&ue<=56319&&Q<oe?(Le=Z.charCodeAt(Q++),(Le&64512)==56320?Y.push(((ue&1023)<<10)+(Le&1023)+65536):(Y.push(ue),Q--)):Y.push(ue);return Y}function B(Z){return M(Z,function(Y){var Q="";return Y>65535&&(Y-=65536,Q+=C(Y>>>10&1023|55296),Y=56320|Y&1023),Q+=C(Y),Q}).join("")}function P(Z){return Z-48<10?Z-22:Z-65<26?Z-65:Z-97<26?Z-97:n}function U(Z,Y){return Z+22+75*(Z<26)-((Y!=0)<<5)}function j(Z,Y,Q){var oe=0;for(Z=Q?T(Z/h):Z>>1,Z+=T(Z/Y);Z>S*c>>1;oe+=n)Z=T(Z/S);return T(oe+(S+1)*Z/(Z+d))}function H(Z){var Y=[],Q=Z.length,oe,ue=0,Le=g,me=p,Ie,X,q,We,$,J,le,de,Ne;for(Ie=Z.lastIndexOf(v),Ie<0&&(Ie=0),X=0;X<Ie;++X)Z.charCodeAt(X)>=128&&_("not-basic"),Y.push(Z.charCodeAt(X));for(q=Ie>0?Ie+1:0;q<Q;){for(We=ue,$=1,J=n;!(q>=Q&&_("invalid-input"),le=P(Z.charCodeAt(q++)),(le>=n||le>T((e-ue)/$))&&_("overflow"),ue+=le*$,de=J<=me?i:J>=me+c?c:J-me,le<de);J+=n)Ne=n-de,$>T(e/Ne)&&_("overflow"),$*=Ne;oe=Y.length+1,me=j(ue-We,oe,We==0),T(ue/oe)>e-Le&&_("overflow"),Le+=T(ue/oe),ue%=oe,Y.splice(ue++,0,Le)}return B(Y)}function W(Z){var Y,Q,oe,ue,Le,me,Ie,X,q,We,$,J=[],le,de,Ne,we;for(Z=R(Z),le=Z.length,Y=g,Q=0,Le=p,me=0;me<le;++me)$=Z[me],$<128&&J.push(C($));for(oe=ue=J.length,ue&&J.push(v);oe<le;){for(Ie=e,me=0;me<le;++me)$=Z[me],$>=Y&&$<Ie&&(Ie=$);for(de=oe+1,Ie-Y>T((e-Q)/de)&&_("overflow"),Q+=(Ie-Y)*de,Y=Ie,me=0;me<le;++me)if($=Z[me],$<Y&&++Q>e&&_("overflow"),$==Y){for(X=Q,q=n;!(We=q<=Le?i:q>=Le+c?c:q-Le,X<We);q+=n)we=X-We,Ne=n-We,J.push(C(U(We+we%Ne,0))),X=T(we/Ne);J.push(C(U(X,0))),Le=j(Q,de,oe==ue),Q=0,++oe}++Q,++Y}return J.join("")}function G(Z){return k(Z,function(Y){return A.test(Y)?H(Y.slice(4).toLowerCase()):Y})}function V(Z){return k(Z,function(Y){return x.test(Y)?"xn--"+W(Y):Y})}if(u={version:"1.4.1",ucs2:{decode:R,encode:B},decode:H,encode:W,toASCII:V,toUnicode:G},typeof L=="function"&&typeof L.amd=="object"&&L.amd)L("punycode",function(){return u});else if(l&&a)if(m.exports==l)a.exports=u;else for(O in u)u.hasOwnProperty(O)&&(l[O]=u[O]);else t.punycode=u})(this)}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],326:[function(o,m,f){"use strict";function s(l,a){return Object.prototype.hasOwnProperty.call(l,a)}m.exports=function(l,a,r,u){a=a||"&",r=r||"=";var e={};if(typeof l!="string"||l.length===0)return e;var n=/\+/g;l=l.split(a);var i=1e3;u&&typeof u.maxKeys=="number"&&(i=u.maxKeys);var c=l.length;i>0&&c>i&&(c=i);for(var d=0;d<c;++d){var h=l[d].replace(n,"%20"),p=h.indexOf(r),g,v,A,x;p>=0?(g=h.substr(0,p),v=h.substr(p+1)):(g=h,v=""),A=decodeURIComponent(g),x=decodeURIComponent(v),s(e,A)?t(e[A])?e[A].push(x):e[A]=[e[A],x]:e[A]=x}return e};var t=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"}},{}],327:[function(o,m,f){"use strict";var s=function(u){switch(typeof u){case"string":return u;case"boolean":return u?"true":"false";case"number":return isFinite(u)?u:"";default:return""}};m.exports=function(r,u,e,n){return u=u||"&",e=e||"=",r===null&&(r=void 0),typeof r=="object"?l(a(r),function(i){var c=encodeURIComponent(s(i))+e;return t(r[i])?l(r[i],function(d){return c+encodeURIComponent(s(d))}).join(u):c+encodeURIComponent(s(r[i]))}).join(u):n?encodeURIComponent(s(n))+e+encodeURIComponent(s(r)):""};var t=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function l(r,u){if(r.map)return r.map(u);for(var e=[],n=0;n<r.length;n++)e.push(u(r[n],n));return e}var a=Object.keys||function(r){var u=[];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&u.push(e);return u}},{}],328:[function(o,m,f){"use strict";f.decode=f.parse=o("./decode"),f.encode=f.stringify=o("./encode")},{"./decode":326,"./encode":327}],329:[function(o,m,f){m.exports=o("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":330}],330:[function(o,m,f){"use strict";var s=o("process-nextick-args"),t=Object.keys||function(h){var p=[];for(var g in h)p.push(g);return p};m.exports=i;var l=Object.create(o("core-util-is"));l.inherits=o("inherits");var a=o("./_stream_readable"),r=o("./_stream_writable");l.inherits(i,a);for(var u=t(r.prototype),e=0;e<u.length;e++){var n=u[e];i.prototype[n]||(i.prototype[n]=r.prototype[n])}function i(h){if(!(this instanceof i))return new i(h);a.call(this,h),r.call(this,h),h&&h.readable===!1&&(this.readable=!1),h&&h.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,h&&h.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",c)}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function c(){if(this.allowHalfOpen||this._writableState.ended)return;s.nextTick(d,this)}function d(h){h.end()}Object.defineProperty(i.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=p,this._writableState.destroyed=p}}),i.prototype._destroy=function(h,p){this.push(null),this.end(),s.nextTick(p,h)}},{"./_stream_readable":332,"./_stream_writable":334,"core-util-is":298,inherits:311,"process-nextick-args":323}],331:[function(o,m,f){"use strict";m.exports=l;var s=o("./_stream_transform"),t=Object.create(o("core-util-is"));t.inherits=o("inherits"),t.inherits(l,s);function l(a){if(!(this instanceof l))return new l(a);s.call(this,a)}l.prototype._transform=function(a,r,u){u(null,a)}},{"./_stream_transform":333,"core-util-is":298,inherits:311}],332:[function(o,m,f){(function(s,t){(function(){"use strict";var l=o("process-nextick-args");m.exports=C;var a=o("isarray"),r;C.ReadableState=T;var u=o("events").EventEmitter,e=function(J,le){return J.listeners(le).length},n=o("./internal/streams/stream"),i=o("safe-buffer").Buffer,c=t.Uint8Array||function(){};function d($){return i.from($)}function h($){return i.isBuffer($)||$ instanceof c}var p=Object.create(o("core-util-is"));p.inherits=o("inherits");var g=o("util"),v=void 0;g&&g.debuglog?v=g.debuglog("stream"):v=function(){};var A=o("./internal/streams/BufferList"),x=o("./internal/streams/destroy"),b;p.inherits(C,n);var w=["error","close","destroy","pause","resume"];function S($,J,le){if(typeof $.prependListener=="function")return $.prependListener(J,le);!$._events||!$._events[J]?$.on(J,le):a($._events[J])?$._events[J].unshift(le):$._events[J]=[le,$._events[J]]}function T($,J){r=r||o("./_stream_duplex"),$=$||{};var le=J instanceof r;this.objectMode=!!$.objectMode,le&&(this.objectMode=this.objectMode||!!$.readableObjectMode);var de=$.highWaterMark,Ne=$.readableHighWaterMark,we=this.objectMode?16:16*1024;de||de===0?this.highWaterMark=de:le&&(Ne||Ne===0)?this.highWaterMark=Ne:this.highWaterMark=we,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new A,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=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding&&(b||(b=o("string_decoder/").StringDecoder),this.decoder=new b($.encoding),this.encoding=$.encoding)}function C($){if(r=r||o("./_stream_duplex"),!(this instanceof C))return new C($);this._readableState=new T($,this),this.readable=!0,$&&(typeof $.read=="function"&&(this._read=$.read),typeof $.destroy=="function"&&(this._destroy=$.destroy)),n.call(this)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(J){if(!this._readableState)return;this._readableState.destroyed=J}}),C.prototype.destroy=x.destroy,C.prototype._undestroy=x.undestroy,C.prototype._destroy=function($,J){this.push(null),J($)},C.prototype.push=function($,J){var le=this._readableState,de;return le.objectMode?de=!0:typeof $=="string"&&(J=J||le.defaultEncoding,J!==le.encoding&&($=i.from($,J),J=""),de=!0),O(this,$,J,!1,de)},C.prototype.unshift=function($){return O(this,$,null,!0,!1)};function O($,J,le,de,Ne){var we=$._readableState;if(J===null)we.reading=!1,U($,we);else{var De;Ne||(De=M(we,J)),De?$.emit("error",De):we.objectMode||J&&J.length>0?(typeof J!="string"&&!we.objectMode&&Object.getPrototypeOf(J)!==i.prototype&&(J=d(J)),de?we.endEmitted?$.emit("error",new Error("stream.unshift() after end event")):_($,we,J,!0):we.ended?$.emit("error",new Error("stream.push() after EOF")):(we.reading=!1,we.decoder&&!le?(J=we.decoder.write(J),we.objectMode||J.length!==0?_($,we,J,!1):W($,we)):_($,we,J,!1))):de||(we.reading=!1)}return k(we)}function _($,J,le,de){J.flowing&&J.length===0&&!J.sync?($.emit("data",le),$.read(0)):(J.length+=J.objectMode?1:le.length,de?J.buffer.unshift(le):J.buffer.push(le),J.needReadable&&j($)),W($,J)}function M($,J){var le;return!h(J)&&typeof J!="string"&&J!==void 0&&!$.objectMode&&(le=new TypeError("Invalid non-string/buffer chunk")),le}function k($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function($){return b||(b=o("string_decoder/").StringDecoder),this._readableState.decoder=new b($),this._readableState.encoding=$,this};var R=8388608;function B($){return $>=R?$=R:($--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++),$}function P($,J){return $<=0||J.length===0&&J.ended?0:J.objectMode?1:$!==$?J.flowing&&J.length?J.buffer.head.data.length:J.length:($>J.highWaterMark&&(J.highWaterMark=B($)),$<=J.length?$:J.ended?J.length:(J.needReadable=!0,0))}C.prototype.read=function($){v("read",$),$=parseInt($,10);var J=this._readableState,le=$;if($!==0&&(J.emittedReadable=!1),$===0&&J.needReadable&&(J.length>=J.highWaterMark||J.ended))return v("read: emitReadable",J.length,J.ended),J.length===0&&J.ended?X(this):j(this),null;if($=P($,J),$===0&&J.ended)return J.length===0&&X(this),null;var de=J.needReadable;v("need readable",de),(J.length===0||J.length-$<J.highWaterMark)&&(de=!0,v("length less than watermark",de)),J.ended||J.reading?(de=!1,v("reading or ended",de)):de&&(v("do read"),J.reading=!0,J.sync=!0,J.length===0&&(J.needReadable=!0),this._read(J.highWaterMark),J.sync=!1,J.reading||($=P(le,J)));var Ne;return $>0?Ne=ue($,J):Ne=null,Ne===null?(J.needReadable=!0,$=0):J.length-=$,J.length===0&&(J.ended||(J.needReadable=!0),le!==$&&J.ended&&X(this)),Ne!==null&&this.emit("data",Ne),Ne};function U($,J){if(J.ended)return;if(J.decoder){var le=J.decoder.end();le&&le.length&&(J.buffer.push(le),J.length+=J.objectMode?1:le.length)}J.ended=!0,j($)}function j($){var J=$._readableState;J.needReadable=!1,J.emittedReadable||(v("emitReadable",J.flowing),J.emittedReadable=!0,J.sync?l.nextTick(H,$):H($))}function H($){v("emit readable"),$.emit("readable"),oe($)}function W($,J){J.readingMore||(J.readingMore=!0,l.nextTick(G,$,J))}function G($,J){for(var le=J.length;!J.reading&&!J.flowing&&!J.ended&&J.length<J.highWaterMark&&!(v("maybeReadMore read 0"),$.read(0),le===J.length);)le=J.length;J.readingMore=!1}C.prototype._read=function($){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function($,J){var le=this,de=this._readableState;switch(de.pipesCount){case 0:de.pipes=$;break;case 1:de.pipes=[de.pipes,$];break;default:de.pipes.push($);break}de.pipesCount+=1,v("pipe count=%d opts=%j",de.pipesCount,J);var Ne=(!J||J.end!==!1)&&$!==s.stdout&&$!==s.stderr,we=Ne?Ee:Fe;de.endEmitted?l.nextTick(we):le.once("end",we),$.on("unpipe",De);function De(ft,At){v("onunpipe"),ft===le&&(At&&At.hasUnpiped===!1&&(At.hasUnpiped=!0,ee()))}function Ee(){v("onend"),$.end()}var ce=V(le);$.on("drain",ce);var ne=!1;function ee(){v("cleanup"),$.removeListener("close",Oe),$.removeListener("finish",it),$.removeListener("drain",ce),$.removeListener("error",Ke),$.removeListener("unpipe",De),le.removeListener("end",Ee),le.removeListener("end",Fe),le.removeListener("data",Ve),ne=!0,de.awaitDrain&&(!$._writableState||$._writableState.needDrain)&&ce()}var Ae=!1;le.on("data",Ve);function Ve(ft){v("ondata"),Ae=!1;var At=$.write(ft);At===!1&&!Ae&&((de.pipesCount===1&&de.pipes===$||de.pipesCount>1&&We(de.pipes,$)!==-1)&&!ne&&(v("false write response, pause",le._readableState.awaitDrain),le._readableState.awaitDrain++,Ae=!0),le.pause())}function Ke(ft){v("onerror",ft),Fe(),$.removeListener("error",Ke),e($,"error")===0&&$.emit("error",ft)}S($,"error",Ke);function Oe(){$.removeListener("finish",it),Fe()}$.once("close",Oe);function it(){v("onfinish"),$.removeListener("close",Oe),Fe()}$.once("finish",it);function Fe(){v("unpipe"),le.unpipe($)}return $.emit("pipe",le),de.flowing||(v("pipe resume"),le.resume()),$};function V($){return function(){var J=$._readableState;v("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&e($,"data")&&(J.flowing=!0,oe($))}}C.prototype.unpipe=function($){var J=this._readableState,le={hasUnpiped:!1};if(J.pipesCount===0)return this;if(J.pipesCount===1)return $&&$!==J.pipes?this:($||($=J.pipes),J.pipes=null,J.pipesCount=0,J.flowing=!1,$&&$.emit("unpipe",this,le),this);if(!$){var de=J.pipes,Ne=J.pipesCount;J.pipes=null,J.pipesCount=0,J.flowing=!1;for(var we=0;we<Ne;we++)de[we].emit("unpipe",this,le);return this}var De=We(J.pipes,$);return De===-1?this:(J.pipes.splice(De,1),J.pipesCount-=1,J.pipesCount===1&&(J.pipes=J.pipes[0]),$.emit("unpipe",this,le),this)},C.prototype.on=function($,J){var le=n.prototype.on.call(this,$,J);if($==="data")this._readableState.flowing!==!1&&this.resume();else if($==="readable"){var de=this._readableState;!de.endEmitted&&!de.readableListening&&(de.readableListening=de.needReadable=!0,de.emittedReadable=!1,de.reading?de.length&&j(this):l.nextTick(Z,this))}return le},C.prototype.addListener=C.prototype.on;function Z($){v("readable nexttick read 0"),$.read(0)}C.prototype.resume=function(){var $=this._readableState;return $.flowing||(v("resume"),$.flowing=!0,Y(this,$)),this};function Y($,J){J.resumeScheduled||(J.resumeScheduled=!0,l.nextTick(Q,$,J))}function Q($,J){J.reading||(v("resume read 0"),$.read(0)),J.resumeScheduled=!1,J.awaitDrain=0,$.emit("resume"),oe($),J.flowing&&!J.reading&&$.read(0)}C.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function oe($){var J=$._readableState;for(v("flow",J.flowing);J.flowing&&$.read()!==null;);}C.prototype.wrap=function($){var J=this,le=this._readableState,de=!1;$.on("end",function(){if(v("wrapped end"),le.decoder&&!le.ended){var De=le.decoder.end();De&&De.length&&J.push(De)}J.push(null)}),$.on("data",function(De){if(v("wrapped data"),le.decoder&&(De=le.decoder.write(De)),le.objectMode&&De==null)return;if(!le.objectMode&&(!De||!De.length))return;var Ee=J.push(De);Ee||(de=!0,$.pause())});for(var Ne in $)this[Ne]===void 0&&typeof $[Ne]=="function"&&(this[Ne]=function(De){return function(){return $[De].apply($,arguments)}}(Ne));for(var we=0;we<w.length;we++)$.on(w[we],this.emit.bind(this,w[we]));return this._read=function(De){v("wrapped _read",De),de&&(de=!1,$.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=ue;function ue($,J){if(J.length===0)return null;var le;return J.objectMode?le=J.buffer.shift():!$||$>=J.length?(J.decoder?le=J.buffer.join(""):J.buffer.length===1?le=J.buffer.head.data:le=J.buffer.concat(J.length),J.buffer.clear()):le=Le($,J.buffer,J.decoder),le}function Le($,J,le){var de;return $<J.head.data.length?(de=J.head.data.slice(0,$),J.head.data=J.head.data.slice($)):$===J.head.data.length?de=J.shift():de=le?me($,J):Ie($,J),de}function me($,J){var le=J.head,de=1,Ne=le.data;for($-=Ne.length;le=le.next;){var we=le.data,De=$>we.length?we.length:$;if(De===we.length?Ne+=we:Ne+=we.slice(0,$),$-=De,$===0){De===we.length?(++de,le.next?J.head=le.next:J.head=J.tail=null):(J.head=le,le.data=we.slice(De));break}++de}return J.length-=de,Ne}function Ie($,J){var le=i.allocUnsafe($),de=J.head,Ne=1;for(de.data.copy(le),$-=de.data.length;de=de.next;){var we=de.data,De=$>we.length?we.length:$;if(we.copy(le,le.length-$,0,De),$-=De,$===0){De===we.length?(++Ne,de.next?J.head=de.next:J.head=J.tail=null):(J.head=de,de.data=we.slice(De));break}++Ne}return J.length-=Ne,le}function X($){var J=$._readableState;if(J.length>0)throw new Error('"endReadable()" called on non-empty stream');J.endEmitted||(J.ended=!0,l.nextTick(q,J,$))}function q($,J){!$.endEmitted&&$.length===0&&($.endEmitted=!0,J.readable=!1,J.emit("end"))}function We($,J){for(var le=0,de=$.length;le<de;le++)if($[le]===J)return le;return-1}}).call(this)}).call(this,o("_process"),typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":330,"./internal/streams/BufferList":335,"./internal/streams/destroy":336,"./internal/streams/stream":337,_process:399,"core-util-is":298,events:301,inherits:311,isarray:313,"process-nextick-args":323,"safe-buffer":343,"string_decoder/":346,util:84}],333:[function(o,m,f){"use strict";m.exports=a;var s=o("./_stream_duplex"),t=Object.create(o("core-util-is"));t.inherits=o("inherits"),t.inherits(a,s);function l(e,n){var i=this._transformState;i.transforming=!1;var c=i.writecb;if(!c)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,n!=null&&this.push(n),c(e);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);s.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",r)}function r(){var e=this;typeof this._flush=="function"?this._flush(function(n,i){u(e,n,i)}):u(this,null,null)}a.prototype.push=function(e,n){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,n)},a.prototype._transform=function(e,n,i){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,n,i){var c=this._transformState;if(c.writecb=i,c.writechunk=e,c.writeencoding=n,!c.transforming){var d=this._readableState;(c.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},a.prototype._read=function(e){var n=this._transformState;n.writechunk!==null&&n.writecb&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform)):n.needTransform=!0},a.prototype._destroy=function(e,n){var i=this;s.prototype._destroy.call(this,e,function(c){n(c),i.emit("close")})};function u(e,n,i){if(n)return e.emit("error",n);if(i!=null&&e.push(i),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}},{"./_stream_duplex":330,"core-util-is":298,inherits:311}],334:[function(o,m,f){(function(s,t,l){(function(){"use strict";var a=o("process-nextick-args");m.exports=S;function r(Q,oe,ue){this.chunk=Q,this.encoding=oe,this.callback=ue,this.next=null}function u(Q){var oe=this;this.next=null,this.entry=null,this.finish=function(){Y(oe,Q)}}var e=!s.browser&&["v0.10","v0.9."].indexOf(s.version.slice(0,5))>-1?l:a.nextTick,n;S.WritableState=b;var i=Object.create(o("core-util-is"));i.inherits=o("inherits");var c={deprecate:o("util-deprecate")},d=o("./internal/streams/stream"),h=o("safe-buffer").Buffer,p=t.Uint8Array||function(){};function g(Q){return h.from(Q)}function v(Q){return h.isBuffer(Q)||Q instanceof p}var A=o("./internal/streams/destroy");i.inherits(S,d);function x(){}function b(Q,oe){n=n||o("./_stream_duplex"),Q=Q||{};var ue=oe instanceof n;this.objectMode=!!Q.objectMode,ue&&(this.objectMode=this.objectMode||!!Q.writableObjectMode);var Le=Q.highWaterMark,me=Q.writableHighWaterMark,Ie=this.objectMode?16:16*1024;Le||Le===0?this.highWaterMark=Le:ue&&(me||me===0)?this.highWaterMark=me:this.highWaterMark=Ie,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var X=Q.decodeStrings===!1;this.decodeStrings=!X,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){B(oe,q)},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 u(this)}b.prototype.getBuffer=function(){for(var oe=this.bufferedRequest,ue=[];oe;)ue.push(oe),oe=oe.next;return ue},function(){try{Object.defineProperty(b.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Q){}}();var w;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(oe){return w.call(this,oe)?!0:this!==S?!1:oe&&oe._writableState instanceof b}})):w=function(oe){return oe instanceof this};function S(Q){if(n=n||o("./_stream_duplex"),!w.call(S,this)&&!(this instanceof n))return new S(Q);this._writableState=new b(Q,this),this.writable=!0,Q&&(typeof Q.write=="function"&&(this._write=Q.write),typeof Q.writev=="function"&&(this._writev=Q.writev),typeof Q.destroy=="function"&&(this._destroy=Q.destroy),typeof Q.final=="function"&&(this._final=Q.final)),d.call(this)}S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function T(Q,oe){var ue=new Error("write after end");Q.emit("error",ue),a.nextTick(oe,ue)}function C(Q,oe,ue,Le){var me=!0,Ie=!1;return ue===null?Ie=new TypeError("May not write null values to stream"):typeof ue!="string"&&ue!==void 0&&!oe.objectMode&&(Ie=new TypeError("Invalid non-string/buffer chunk")),Ie&&(Q.emit("error",Ie),a.nextTick(Le,Ie),me=!1),me}S.prototype.write=function(Q,oe,ue){var Le=this._writableState,me=!1,Ie=!Le.objectMode&&v(Q);return Ie&&!h.isBuffer(Q)&&(Q=g(Q)),typeof oe=="function"&&(ue=oe,oe=null),Ie?oe="buffer":oe||(oe=Le.defaultEncoding),typeof ue!="function"&&(ue=x),Le.ended?T(this,ue):(Ie||C(this,Le,Q,ue))&&(Le.pendingcb++,me=_(this,Le,Ie,Q,oe,ue)),me},S.prototype.cork=function(){var Q=this._writableState;Q.corked++},S.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,!Q.writing&&!Q.corked&&!Q.finished&&!Q.bufferProcessing&&Q.bufferedRequest&&j(this,Q))},S.prototype.setDefaultEncoding=function(oe){if(typeof oe=="string"&&(oe=oe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((oe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+oe);return this._writableState.defaultEncoding=oe,this};function O(Q,oe,ue){return!Q.objectMode&&Q.decodeStrings!==!1&&typeof oe=="string"&&(oe=h.from(oe,ue)),oe}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _(Q,oe,ue,Le,me,Ie){if(!ue){var X=O(oe,Le,me);Le!==X&&(ue=!0,me="buffer",Le=X)}var q=oe.objectMode?1:Le.length;oe.length+=q;var We=oe.length<oe.highWaterMark;if(We||(oe.needDrain=!0),oe.writing||oe.corked){var $=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:Le,encoding:me,isBuf:ue,callback:Ie,next:null},$?$.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else M(Q,oe,!1,q,Le,me,Ie);return We}function M(Q,oe,ue,Le,me,Ie,X){oe.writelen=Le,oe.writecb=X,oe.writing=!0,oe.sync=!0,ue?Q._writev(me,oe.onwrite):Q._write(me,Ie,oe.onwrite),oe.sync=!1}function k(Q,oe,ue,Le,me){--oe.pendingcb,ue?(a.nextTick(me,Le),a.nextTick(V,Q,oe),Q._writableState.errorEmitted=!0,Q.emit("error",Le)):(me(Le),Q._writableState.errorEmitted=!0,Q.emit("error",Le),V(Q,oe))}function R(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function B(Q,oe){var ue=Q._writableState,Le=ue.sync,me=ue.writecb;if(R(ue),oe)k(Q,ue,Le,oe,me);else{var Ie=H(ue);!Ie&&!ue.corked&&!ue.bufferProcessing&&ue.bufferedRequest&&j(Q,ue),Le?e(P,Q,ue,Ie,me):P(Q,ue,Ie,me)}}function P(Q,oe,ue,Le){ue||U(Q,oe),oe.pendingcb--,Le(),V(Q,oe)}function U(Q,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,Q.emit("drain"))}function j(Q,oe){oe.bufferProcessing=!0;var ue=oe.bufferedRequest;if(Q._writev&&ue&&ue.next){var Le=oe.bufferedRequestCount,me=new Array(Le),Ie=oe.corkedRequestsFree;Ie.entry=ue;for(var X=0,q=!0;ue;)me[X]=ue,ue.isBuf||(q=!1),ue=ue.next,X+=1;me.allBuffers=q,M(Q,oe,!0,oe.length,me,"",Ie.finish),oe.pendingcb++,oe.lastBufferedRequest=null,Ie.next?(oe.corkedRequestsFree=Ie.next,Ie.next=null):oe.corkedRequestsFree=new u(oe),oe.bufferedRequestCount=0}else{for(;ue;){var We=ue.chunk,$=ue.encoding,J=ue.callback,le=oe.objectMode?1:We.length;if(M(Q,oe,!1,le,We,$,J),ue=ue.next,oe.bufferedRequestCount--,oe.writing)break}ue===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=ue,oe.bufferProcessing=!1}S.prototype._write=function(Q,oe,ue){ue(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(Q,oe,ue){var Le=this._writableState;typeof Q=="function"?(ue=Q,Q=null,oe=null):typeof oe=="function"&&(ue=oe,oe=null),Q!=null&&this.write(Q,oe),Le.corked&&(Le.corked=1,this.uncork()),!Le.ending&&!Le.finished&&Z(this,Le,ue)};function H(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function W(Q,oe){Q._final(function(ue){oe.pendingcb--,ue&&Q.emit("error",ue),oe.prefinished=!0,Q.emit("prefinish"),V(Q,oe)})}function G(Q,oe){!oe.prefinished&&!oe.finalCalled&&(typeof Q._final=="function"?(oe.pendingcb++,oe.finalCalled=!0,a.nextTick(W,Q,oe)):(oe.prefinished=!0,Q.emit("prefinish")))}function V(Q,oe){var ue=H(oe);return ue&&(G(Q,oe),oe.pendingcb===0&&(oe.finished=!0,Q.emit("finish"))),ue}function Z(Q,oe,ue){oe.ending=!0,V(Q,oe),ue&&(oe.finished?a.nextTick(ue):Q.once("finish",ue)),oe.ended=!0,Q.writable=!1}function Y(Q,oe,ue){var Le=Q.entry;for(Q.entry=null;Le;){var me=Le.callback;oe.pendingcb--,me(ue),Le=Le.next}oe.corkedRequestsFree?oe.corkedRequestsFree.next=Q:oe.corkedRequestsFree=Q}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(oe){if(!this._writableState)return;this._writableState.destroyed=oe}}),S.prototype.destroy=A.destroy,S.prototype._undestroy=A.undestroy,S.prototype._destroy=function(Q,oe){this.end(),oe(Q)}}).call(this)}).call(this,o("_process"),typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{},o("timers").setImmediate)},{"./_stream_duplex":330,"./internal/streams/destroy":336,"./internal/streams/stream":337,_process:399,"core-util-is":298,inherits:311,"process-nextick-args":323,"safe-buffer":343,timers:347,"util-deprecate":349}],335:[function(o,m,f){"use strict";function s(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}var t=o("safe-buffer").Buffer,l=o("util");function a(r,u,e){r.copy(u,e)}m.exports=function(){function r(){s(this,r),this.head=null,this.tail=null,this.length=0}return r.prototype.push=function(e){var n={data:e,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},r.prototype.unshift=function(e){var n={data:e,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},r.prototype.shift=function(){if(this.length===0)return;var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.prototype.join=function(e){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=e+n.data;return i},r.prototype.concat=function(e){if(this.length===0)return t.alloc(0);if(this.length===1)return this.head.data;for(var n=t.allocUnsafe(e>>>0),i=this.head,c=0;i;)a(i.data,n,c),c+=i.data.length,i=i.next;return n},r}(),l&&l.inspect&&l.inspect.custom&&(m.exports.prototype[l.inspect.custom]=function(){var r=l.inspect({length:this.length});return this.constructor.name+" "+r})},{"safe-buffer":343,util:84}],336:[function(o,m,f){"use strict";var s=o("process-nextick-args");function t(r,u){var e=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(u?u(r):r&&(!this._writableState||!this._writableState.errorEmitted)&&s.nextTick(a,this,r),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(c){!u&&c?(s.nextTick(a,e,c),e._writableState&&(e._writableState.errorEmitted=!0)):u&&u(c)}),this)}function l(){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 a(r,u){r.emit("error",u)}m.exports={destroy:t,undestroy:l}},{"process-nextick-args":323}],337:[function(o,m,f){m.exports=o("events").EventEmitter},{events:301}],338:[function(o,m,f){m.exports=o("./readable").PassThrough},{"./readable":339}],339:[function(o,m,f){f=m.exports=o("./lib/_stream_readable.js"),f.Stream=f,f.Readable=f,f.Writable=o("./lib/_stream_writable.js"),f.Duplex=o("./lib/_stream_duplex.js"),f.Transform=o("./lib/_stream_transform.js"),f.PassThrough=o("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":330,"./lib/_stream_passthrough.js":331,"./lib/_stream_readable.js":332,"./lib/_stream_transform.js":333,"./lib/_stream_writable.js":334}],340:[function(o,m,f){m.exports=o("./readable").Transform},{"./readable":339}],341:[function(o,m,f){m.exports=o("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":334}],342:[function(o,m,f){var s=function(t){"use strict";var l=Object.prototype,a=l.hasOwnProperty,r,u=typeof Symbol=="function"?Symbol:{},e=u.iterator||"@@iterator",n=u.asyncIterator||"@@asyncIterator",i=u.toStringTag||"@@toStringTag";function c(G,V,Z){return Object.defineProperty(G,V,{value:Z,enumerable:!0,configurable:!0,writable:!0}),G[V]}try{c({},"")}catch(G){c=function(Z,Y,Q){return Z[Y]=Q}}function d(G,V,Z,Y){var Q=V&&V.prototype instanceof b?V:b,oe=Object.create(Q.prototype),ue=new j(Y||[]);return oe._invoke=R(G,Z,ue),oe}t.wrap=d;function h(G,V,Z){try{return{type:"normal",arg:G.call(V,Z)}}catch(Y){return{type:"throw",arg:Y}}}var p="suspendedStart",g="suspendedYield",v="executing",A="completed",x={};function b(){}function w(){}function S(){}var T={};c(T,e,function(){return this});var C=Object.getPrototypeOf,O=C&&C(C(H([])));O&&O!==l&&a.call(O,e)&&(T=O);var _=S.prototype=b.prototype=Object.create(T);w.prototype=S,c(_,"constructor",S),c(S,"constructor",w),w.displayName=c(S,i,"GeneratorFunction");function M(G){["next","throw","return"].forEach(function(V){c(G,V,function(Z){return this._invoke(V,Z)})})}t.isGeneratorFunction=function(G){var V=typeof G=="function"&&G.constructor;return V?V===w||(V.displayName||V.name)==="GeneratorFunction":!1},t.mark=function(G){return Object.setPrototypeOf?Object.setPrototypeOf(G,S):(G.__proto__=S,c(G,i,"GeneratorFunction")),G.prototype=Object.create(_),G},t.awrap=function(G){return{__await:G}};function k(G,V){function Z(oe,ue,Le,me){var Ie=h(G[oe],G,ue);if(Ie.type==="throw")me(Ie.arg);else{var X=Ie.arg,q=X.value;return q&&typeof q=="object"&&a.call(q,"__await")?V.resolve(q.__await).then(function(We){Z("next",We,Le,me)},function(We){Z("throw",We,Le,me)}):V.resolve(q).then(function(We){X.value=We,Le(X)},function(We){return Z("throw",We,Le,me)})}}var Y;function Q(oe,ue){function Le(){return new V(function(me,Ie){Z(oe,ue,me,Ie)})}return Y=Y?Y.then(Le,Le):Le()}this._invoke=Q}M(k.prototype),c(k.prototype,n,function(){return this}),t.AsyncIterator=k,t.async=function(G,V,Z,Y,Q){Q===void 0&&(Q=Promise);var oe=new k(d(G,V,Z,Y),Q);return t.isGeneratorFunction(V)?oe:oe.next().then(function(ue){return ue.done?ue.value:oe.next()})};function R(G,V,Z){var Y=p;return function(oe,ue){if(Y===v)throw new Error("Generator is already running");if(Y===A){if(oe==="throw")throw ue;return W()}for(Z.method=oe,Z.arg=ue;;){var Le=Z.delegate;if(Le){var me=B(Le,Z);if(me){if(me===x)continue;return me}}if(Z.method==="next")Z.sent=Z._sent=Z.arg;else if(Z.method==="throw"){if(Y===p)throw Y=A,Z.arg;Z.dispatchException(Z.arg)}else Z.method==="return"&&Z.abrupt("return",Z.arg);Y=v;var Ie=h(G,V,Z);if(Ie.type==="normal"){if(Y=Z.done?A:g,Ie.arg===x)continue;return{value:Ie.arg,done:Z.done}}else Ie.type==="throw"&&(Y=A,Z.method="throw",Z.arg=Ie.arg)}}}function B(G,V){var Z=G.iterator[V.method];if(Z===r){if(V.delegate=null,V.method==="throw"){if(G.iterator.return&&(V.method="return",V.arg=r,B(G,V),V.method==="throw"))return x;V.method="throw",V.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var Y=h(Z,G.iterator,V.arg);if(Y.type==="throw")return V.method="throw",V.arg=Y.arg,V.delegate=null,x;var Q=Y.arg;if(!Q)return V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,x;if(Q.done)V[G.resultName]=Q.value,V.next=G.nextLoc,V.method!=="return"&&(V.method="next",V.arg=r);else return Q;return V.delegate=null,x}M(_),c(_,i,"Generator"),c(_,e,function(){return this}),c(_,"toString",function(){return"[object Generator]"});function P(G){var V={tryLoc:G[0]};1 in G&&(V.catchLoc=G[1]),2 in G&&(V.finallyLoc=G[2],V.afterLoc=G[3]),this.tryEntries.push(V)}function U(G){var V=G.completion||{};V.type="normal",delete V.arg,G.completion=V}function j(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(P,this),this.reset(!0)}t.keys=function(G){var V=[];for(var Z in G)V.push(Z);return V.reverse(),function Y(){for(;V.length;){var Q=V.pop();if(Q in G)return Y.value=Q,Y.done=!1,Y}return Y.done=!0,Y}};function H(G){if(G){var V=G[e];if(V)return V.call(G);if(typeof G.next=="function")return G;if(!isNaN(G.length)){var Z=-1,Y=function Q(){for(;++Z<G.length;)if(a.call(G,Z))return Q.value=G[Z],Q.done=!1,Q;return Q.value=r,Q.done=!0,Q};return Y.next=Y}}return{next:W}}t.values=H;function W(){return{value:r,done:!0}}return j.prototype={constructor:j,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(U),!V)for(var Z in this)Z.charAt(0)==="t"&&a.call(this,Z)&&!isNaN(+Z.slice(1))&&(this[Z]=r)},stop:function(){this.done=!0;var V=this.tryEntries[0],Z=V.completion;if(Z.type==="throw")throw Z.arg;return this.rval},dispatchException:function(V){if(this.done)throw V;var Z=this;function Y(Ie,X){return ue.type="throw",ue.arg=V,Z.next=Ie,X&&(Z.method="next",Z.arg=r),!!X}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var oe=this.tryEntries[Q],ue=oe.completion;if(oe.tryLoc==="root")return Y("end");if(oe.tryLoc<=this.prev){var Le=a.call(oe,"catchLoc"),me=a.call(oe,"finallyLoc");if(Le&&me){if(this.prev<oe.catchLoc)return Y(oe.catchLoc,!0);if(this.prev<oe.finallyLoc)return Y(oe.finallyLoc)}else if(Le){if(this.prev<oe.catchLoc)return Y(oe.catchLoc,!0)}else if(me){if(this.prev<oe.finallyLoc)return Y(oe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(V,Z){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var Q=this.tryEntries[Y];if(Q.tryLoc<=this.prev&&a.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var oe=Q;break}}oe&&(V==="break"||V==="continue")&&oe.tryLoc<=Z&&Z<=oe.finallyLoc&&(oe=null);var ue=oe?oe.completion:{};return ue.type=V,ue.arg=Z,oe?(this.method="next",this.next=oe.finallyLoc,x):this.complete(ue)},complete:function(V,Z){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&Z&&(this.next=Z),x},finish:function(V){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var Y=this.tryEntries[Z];if(Y.finallyLoc===V)return this.complete(Y.completion,Y.afterLoc),U(Y),x}},catch:function(V){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var Y=this.tryEntries[Z];if(Y.tryLoc===V){var Q=Y.completion;if(Q.type==="throw"){var oe=Q.arg;U(Y)}return oe}}throw new Error("illegal catch attempt")},delegateYield:function(V,Z,Y){return this.delegate={iterator:H(V),resultName:Z,nextLoc:Y},this.method==="next"&&(this.arg=r),x}},t}(typeof m=="object"?m.exports:{});try{regeneratorRuntime=s}catch(t){typeof globalThis=="object"?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}},{}],343:[function(o,m,f){var s=o("buffer"),t=s.Buffer;function l(r,u){for(var e in r)u[e]=r[e]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?m.exports=s:(l(s,f),f.Buffer=a);function a(r,u,e){return t(r,u,e)}l(t,a),a.from=function(r,u,e){if(typeof r=="number")throw new TypeError("Argument must not be a number");return t(r,u,e)},a.alloc=function(r,u,e){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=t(r);return u!==void 0?typeof e=="string"?n.fill(u,e):n.fill(u):n.fill(0),n},a.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return t(r)},a.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return s.SlowBuffer(r)}},{buffer:85}],344:[function(o,m,f){(function(s){(function(){(function(t){t.parser=function(X,q){return new a(X,q)},t.SAXParser=a,t.SAXStream=d,t.createStream=c,t.MAX_BUFFER_LENGTH=64*1024;var l=["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 a(X,q){if(!(this instanceof a))return new a(X,q);var We=this;u(We),We.q=We.c="",We.bufferCheckPosition=t.MAX_BUFFER_LENGTH,We.opt=q||{},We.opt.lowercase=We.opt.lowercase||We.opt.lowercasetags,We.looseCase=We.opt.lowercase?"toLowerCase":"toUpperCase",We.tags=[],We.closed=We.closedRoot=We.sawRoot=!1,We.tag=We.error=null,We.strict=!!X,We.noscript=!!(X||We.opt.noscript),We.state=k.BEGIN,We.strictEntities=We.opt.strictEntities,We.ENTITIES=We.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),We.attribList=[],We.opt.xmlns&&(We.ns=Object.create(A)),We.trackPosition=We.opt.position!==!1,We.trackPosition&&(We.position=We.line=We.column=0),B(We,"onready")}Object.create||(Object.create=function(X){function q(){}q.prototype=X;var We=new q;return We}),Object.keys||(Object.keys=function(X){var q=[];for(var We in X)X.hasOwnProperty(We)&&q.push(We);return q});function r(X){for(var q=Math.max(t.MAX_BUFFER_LENGTH,10),We=0,$=0,J=l.length;$<J;$++){var le=X[l[$]].length;if(le>q)switch(l[$]){case"textNode":U(X);break;case"cdata":P(X,"oncdata",X.cdata),X.cdata="";break;case"script":P(X,"onscript",X.script),X.script="";break;default:H(X,"Max buffer length exceeded: "+l[$])}We=Math.max(We,le)}var de=t.MAX_BUFFER_LENGTH-We;X.bufferCheckPosition=de+X.position}function u(X){for(var q=0,We=l.length;q<We;q++)X[l[q]]=""}function e(X){U(X),X.cdata!==""&&(P(X,"oncdata",X.cdata),X.cdata=""),X.script!==""&&(P(X,"onscript",X.script),X.script="")}a.prototype={end:function(){W(this)},write:Ie,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){e(this)}};var n;try{n=o("stream").Stream}catch(X){n=function(){}}var i=t.EVENTS.filter(function(X){return X!=="error"&&X!=="end"});function c(X,q){return new d(X,q)}function d(X,q){if(!(this instanceof d))return new d(X,q);n.apply(this),this._parser=new a(X,q),this.writable=!0,this.readable=!0;var We=this;this._parser.onend=function(){We.emit("end")},this._parser.onerror=function($){We.emit("error",$),We._parser.error=null},this._decoder=null,i.forEach(function($){Object.defineProperty(We,"on"+$,{get:function(){return We._parser["on"+$]},set:function(le){if(!le)return We.removeAllListeners($),We._parser["on"+$]=le,le;We.on($,le)},enumerable:!0,configurable:!1})})}d.prototype=Object.create(n.prototype,{constructor:{value:d}}),d.prototype.write=function(X){if(typeof s=="function"&&typeof s.isBuffer=="function"&&s.isBuffer(X)){if(!this._decoder){var q=o("string_decoder").StringDecoder;this._decoder=new q("utf8")}X=this._decoder.write(X)}return this._parser.write(X.toString()),this.emit("data",X),!0},d.prototype.end=function(X){return X&&X.length&&this.write(X),this._parser.end(),!0},d.prototype.on=function(X,q){var We=this;return!We._parser["on"+X]&&i.indexOf(X)!==-1&&(We._parser["on"+X]=function(){var $=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);$.splice(0,0,X),We.emit.apply(We,$)}),n.prototype.on.call(We,X,q)};var h="[CDATA[",p="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",A={xml:g,xmlns:v},x=/[:_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]/,b=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,w=/[#:_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]/,S=/[#:_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 T(X){return X===" "||X===`
|
|
|
`||X==="\r"||X===" "}function C(X){return X==='"'||X==="'"}function O(X){return X===">"||T(X)}function _(X,q){return X.test(q)}function M(X,q){return!_(X,q)}var k=0;t.STATE={BEGIN:k++,BEGIN_WHITESPACE:k++,TEXT:k++,TEXT_ENTITY:k++,OPEN_WAKA:k++,SGML_DECL:k++,SGML_DECL_QUOTED:k++,DOCTYPE:k++,DOCTYPE_QUOTED:k++,DOCTYPE_DTD:k++,DOCTYPE_DTD_QUOTED:k++,COMMENT_STARTING:k++,COMMENT:k++,COMMENT_ENDING:k++,COMMENT_ENDED:k++,CDATA:k++,CDATA_ENDING:k++,CDATA_ENDING_2:k++,PROC_INST:k++,PROC_INST_BODY:k++,PROC_INST_ENDING:k++,OPEN_TAG:k++,OPEN_TAG_SLASH:k++,ATTRIB:k++,ATTRIB_NAME:k++,ATTRIB_NAME_SAW_WHITE:k++,ATTRIB_VALUE:k++,ATTRIB_VALUE_QUOTED:k++,ATTRIB_VALUE_CLOSED:k++,ATTRIB_VALUE_UNQUOTED:k++,ATTRIB_VALUE_ENTITY_Q:k++,ATTRIB_VALUE_ENTITY_U:k++,CLOSE_TAG:k++,CLOSE_TAG_SAW_WHITE:k++,SCRIPT:k++,SCRIPT_ENDING:k++},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},Object.keys(t.ENTITIES).forEach(function(X){var q=t.ENTITIES[X],We=typeof q=="number"?String.fromCharCode(q):q;t.ENTITIES[X]=We});for(var R in t.STATE)t.STATE[t.STATE[R]]=R;k=t.STATE;function B(X,q,We){X[q]&&X[q](We)}function P(X,q,We){X.textNode&&U(X),B(X,q,We)}function U(X){X.textNode=j(X.opt,X.textNode),X.textNode&&B(X,"ontext",X.textNode),X.textNode=""}function j(X,q){return X.trim&&(q=q.trim()),X.normalize&&(q=q.replace(/\s+/g," ")),q}function H(X,q){return U(X),X.trackPosition&&(q+=`
|
|
|
Line: `+X.line+`
|
|
|
Column: `+X.column+`
|
|
|
Char: `+X.c),q=new Error(q),X.error=q,B(X,"onerror",q),X}function W(X){return X.sawRoot&&!X.closedRoot&&G(X,"Unclosed root tag"),X.state!==k.BEGIN&&X.state!==k.BEGIN_WHITESPACE&&X.state!==k.TEXT&&H(X,"Unexpected end"),U(X),X.c="",X.closed=!0,B(X,"onend"),a.call(X,X.strict,X.opt),X}function G(X,q){if(typeof X!="object"||!(X instanceof a))throw new Error("bad call to strictFail");X.strict&&H(X,q)}function V(X){X.strict||(X.tagName=X.tagName[X.looseCase]());var q=X.tags[X.tags.length-1]||X,We=X.tag={name:X.tagName,attributes:{}};X.opt.xmlns&&(We.ns=q.ns),X.attribList.length=0,P(X,"onopentagstart",We)}function Z(X,q){var We=X.indexOf(":"),$=We<0?["",X]:X.split(":"),J=$[0],le=$[1];return q&&X==="xmlns"&&(J="xmlns",le=""),{prefix:J,local:le}}function Y(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 q=Z(X.attribName,!0),We=q.prefix,$=q.local;if(We==="xmlns")if($==="xml"&&X.attribValue!==g)G(X,"xml: prefix must be bound to "+g+`
|
|
|
Actual: `+X.attribValue);else if($==="xmlns"&&X.attribValue!==v)G(X,"xmlns: prefix must be bound to "+v+`
|
|
|
Actual: `+X.attribValue);else{var J=X.tag,le=X.tags[X.tags.length-1]||X;J.ns===le.ns&&(J.ns=Object.create(le.ns)),J.ns[$]=X.attribValue}X.attribList.push([X.attribName,X.attribValue])}else X.tag.attributes[X.attribName]=X.attribValue,P(X,"onattribute",{name:X.attribName,value:X.attribValue});X.attribName=X.attribValue=""}function Q(X,q){if(X.opt.xmlns){var We=X.tag,$=Z(X.tagName);We.prefix=$.prefix,We.local=$.local,We.uri=We.ns[$.prefix]||"",We.prefix&&!We.uri&&(G(X,"Unbound namespace prefix: "+JSON.stringify(X.tagName)),We.uri=$.prefix);var J=X.tags[X.tags.length-1]||X;We.ns&&J.ns!==We.ns&&Object.keys(We.ns).forEach(function(Ve){P(X,"onopennamespace",{prefix:Ve,uri:We.ns[Ve]})});for(var le=0,de=X.attribList.length;le<de;le++){var Ne=X.attribList[le],we=Ne[0],De=Ne[1],Ee=Z(we,!0),ce=Ee.prefix,ne=Ee.local,ee=ce===""?"":We.ns[ce]||"",Ae={name:we,value:De,prefix:ce,local:ne,uri:ee};ce&&ce!=="xmlns"&&!ee&&(G(X,"Unbound namespace prefix: "+JSON.stringify(ce)),Ae.uri=ce),X.tag.attributes[we]=Ae,P(X,"onattribute",Ae)}X.attribList.length=0}X.tag.isSelfClosing=!!q,X.sawRoot=!0,X.tags.push(X.tag),P(X,"onopentag",X.tag),q||(!X.noscript&&X.tagName.toLowerCase()==="script"?X.state=k.SCRIPT:X.state=k.TEXT,X.tag=null,X.tagName=""),X.attribName=X.attribValue="",X.attribList.length=0}function oe(X){if(!X.tagName){G(X,"Weird empty close tag."),X.textNode+="</>",X.state=k.TEXT;return}if(X.script){if(X.tagName!=="script"){X.script+="</"+X.tagName+">",X.tagName="",X.state=k.SCRIPT;return}P(X,"onscript",X.script),X.script=""}var q=X.tags.length,We=X.tagName;X.strict||(We=We[X.looseCase]());for(var $=We;q--;){var J=X.tags[q];if(J.name!==$)G(X,"Unexpected close tag");else break}if(q<0){G(X,"Unmatched closing tag: "+X.tagName),X.textNode+="</"+X.tagName+">",X.state=k.TEXT;return}X.tagName=We;for(var le=X.tags.length;le-- >q;){var de=X.tag=X.tags.pop();X.tagName=X.tag.name,P(X,"onclosetag",X.tagName);var Ne={};for(var we in de.ns)Ne[we]=de.ns[we];var De=X.tags[X.tags.length-1]||X;X.opt.xmlns&&de.ns!==De.ns&&Object.keys(de.ns).forEach(function(Ee){var ce=de.ns[Ee];P(X,"onclosenamespace",{prefix:Ee,uri:ce})})}q===0&&(X.closedRoot=!0),X.tagName=X.attribValue=X.attribName="",X.attribList.length=0,X.state=k.TEXT}function ue(X){var q=X.entity,We=q.toLowerCase(),$,J="";return X.ENTITIES[q]?X.ENTITIES[q]:X.ENTITIES[We]?X.ENTITIES[We]:(q=We,q.charAt(0)==="#"&&(q.charAt(1)==="x"?(q=q.slice(2),$=parseInt(q,16),J=$.toString(16)):(q=q.slice(1),$=parseInt(q,10),J=$.toString(10))),q=q.replace(/^0+/,""),isNaN($)||J.toLowerCase()!==q?(G(X,"Invalid character entity"),"&"+X.entity+";"):String.fromCodePoint($))}function Le(X,q){q==="<"?(X.state=k.OPEN_WAKA,X.startTagPosition=X.position):T(q)||(G(X,"Non-whitespace before first tag."),X.textNode=q,X.state=k.TEXT)}function me(X,q){var We="";return q<X.length&&(We=X.charAt(q)),We}function Ie(X){var q=this;if(this.error)throw this.error;if(q.closed)return H(q,"Cannot write after close. Assign an onready handler.");if(X===null)return W(q);typeof X=="object"&&(X=X.toString());for(var We=0,$="";!($=me(X,We++),q.c=$,!$);){q.trackPosition&&(q.position++,$===`
|
|
|
`?(q.line++,q.column=0):q.column++);switch(q.state){case k.BEGIN:if(q.state=k.BEGIN_WHITESPACE,$==="\uFEFF")continue;Le(q,$);continue;case k.BEGIN_WHITESPACE:Le(q,$);continue;case k.TEXT:if(q.sawRoot&&!q.closedRoot){for(var J=We-1;$&&$!=="<"&&$!=="&";)$=me(X,We++),$&&q.trackPosition&&(q.position++,$===`
|
|
|
`?(q.line++,q.column=0):q.column++);q.textNode+=X.substring(J,We-1)}$==="<"&&!(q.sawRoot&&q.closedRoot&&!q.strict)?(q.state=k.OPEN_WAKA,q.startTagPosition=q.position):(!T($)&&(!q.sawRoot||q.closedRoot)&&G(q,"Text data outside of root node."),$==="&"?q.state=k.TEXT_ENTITY:q.textNode+=$);continue;case k.SCRIPT:$==="<"?q.state=k.SCRIPT_ENDING:q.script+=$;continue;case k.SCRIPT_ENDING:$==="/"?q.state=k.CLOSE_TAG:(q.script+="<"+$,q.state=k.SCRIPT);continue;case k.OPEN_WAKA:if($==="!")q.state=k.SGML_DECL,q.sgmlDecl="";else if(!T($))if(_(x,$))q.state=k.OPEN_TAG,q.tagName=$;else if($==="/")q.state=k.CLOSE_TAG,q.tagName="";else if($==="?")q.state=k.PROC_INST,q.procInstName=q.procInstBody="";else{if(G(q,"Unencoded <"),q.startTagPosition+1<q.position){var le=q.position-q.startTagPosition;$=new Array(le).join(" ")+$}q.textNode+="<"+$,q.state=k.TEXT}continue;case k.SGML_DECL:(q.sgmlDecl+$).toUpperCase()===h?(P(q,"onopencdata"),q.state=k.CDATA,q.sgmlDecl="",q.cdata=""):q.sgmlDecl+$==="--"?(q.state=k.COMMENT,q.comment="",q.sgmlDecl=""):(q.sgmlDecl+$).toUpperCase()===p?(q.state=k.DOCTYPE,(q.doctype||q.sawRoot)&&G(q,"Inappropriately located doctype declaration"),q.doctype="",q.sgmlDecl=""):$===">"?(P(q,"onsgmldeclaration",q.sgmlDecl),q.sgmlDecl="",q.state=k.TEXT):(C($)&&(q.state=k.SGML_DECL_QUOTED),q.sgmlDecl+=$);continue;case k.SGML_DECL_QUOTED:$===q.q&&(q.state=k.SGML_DECL,q.q=""),q.sgmlDecl+=$;continue;case k.DOCTYPE:$===">"?(q.state=k.TEXT,P(q,"ondoctype",q.doctype),q.doctype=!0):(q.doctype+=$,$==="["?q.state=k.DOCTYPE_DTD:C($)&&(q.state=k.DOCTYPE_QUOTED,q.q=$));continue;case k.DOCTYPE_QUOTED:q.doctype+=$,$===q.q&&(q.q="",q.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:q.doctype+=$,$==="]"?q.state=k.DOCTYPE:C($)&&(q.state=k.DOCTYPE_DTD_QUOTED,q.q=$);continue;case k.DOCTYPE_DTD_QUOTED:q.doctype+=$,$===q.q&&(q.state=k.DOCTYPE_DTD,q.q="");continue;case k.COMMENT:$==="-"?q.state=k.COMMENT_ENDING:q.comment+=$;continue;case k.COMMENT_ENDING:$==="-"?(q.state=k.COMMENT_ENDED,q.comment=j(q.opt,q.comment),q.comment&&P(q,"oncomment",q.comment),q.comment=""):(q.comment+="-"+$,q.state=k.COMMENT);continue;case k.COMMENT_ENDED:$!==">"?(G(q,"Malformed comment"),q.comment+="--"+$,q.state=k.COMMENT):q.state=k.TEXT;continue;case k.CDATA:$==="]"?q.state=k.CDATA_ENDING:q.cdata+=$;continue;case k.CDATA_ENDING:$==="]"?q.state=k.CDATA_ENDING_2:(q.cdata+="]"+$,q.state=k.CDATA);continue;case k.CDATA_ENDING_2:$===">"?(q.cdata&&P(q,"oncdata",q.cdata),P(q,"onclosecdata"),q.cdata="",q.state=k.TEXT):$==="]"?q.cdata+="]":(q.cdata+="]]"+$,q.state=k.CDATA);continue;case k.PROC_INST:$==="?"?q.state=k.PROC_INST_ENDING:T($)?q.state=k.PROC_INST_BODY:q.procInstName+=$;continue;case k.PROC_INST_BODY:if(!q.procInstBody&&T($))continue;$==="?"?q.state=k.PROC_INST_ENDING:q.procInstBody+=$;continue;case k.PROC_INST_ENDING:$===">"?(P(q,"onprocessinginstruction",{name:q.procInstName,body:q.procInstBody}),q.procInstName=q.procInstBody="",q.state=k.TEXT):(q.procInstBody+="?"+$,q.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:_(b,$)?q.tagName+=$:(V(q),$===">"?Q(q):$==="/"?q.state=k.OPEN_TAG_SLASH:(T($)||G(q,"Invalid character in tag name"),q.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:$===">"?(Q(q,!0),oe(q)):(G(q,"Forward-slash in opening tag not followed by >"),q.state=k.ATTRIB);continue;case k.ATTRIB:if(T($))continue;$===">"?Q(q):$==="/"?q.state=k.OPEN_TAG_SLASH:_(x,$)?(q.attribName=$,q.attribValue="",q.state=k.ATTRIB_NAME):G(q,"Invalid attribute name");continue;case k.ATTRIB_NAME:$==="="?q.state=k.ATTRIB_VALUE:$===">"?(G(q,"Attribute without value"),q.attribValue=q.attribName,Y(q),Q(q)):T($)?q.state=k.ATTRIB_NAME_SAW_WHITE:_(b,$)?q.attribName+=$:G(q,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if($==="=")q.state=k.ATTRIB_VALUE;else{if(T($))continue;G(q,"Attribute without value"),q.tag.attributes[q.attribName]="",q.attribValue="",P(q,"onattribute",{name:q.attribName,value:""}),q.attribName="",$===">"?Q(q):_(x,$)?(q.attribName=$,q.state=k.ATTRIB_NAME):(G(q,"Invalid attribute name"),q.state=k.ATTRIB)}continue;case k.ATTRIB_VALUE:if(T($))continue;C($)?(q.q=$,q.state=k.ATTRIB_VALUE_QUOTED):(G(q,"Unquoted attribute value"),q.state=k.ATTRIB_VALUE_UNQUOTED,q.attribValue=$);continue;case k.ATTRIB_VALUE_QUOTED:if($!==q.q){$==="&"?q.state=k.ATTRIB_VALUE_ENTITY_Q:q.attribValue+=$;continue}Y(q),q.q="",q.state=k.ATTRIB_VALUE_CLOSED;continue;case k.ATTRIB_VALUE_CLOSED:T($)?q.state=k.ATTRIB:$===">"?Q(q):$==="/"?q.state=k.OPEN_TAG_SLASH:_(x,$)?(G(q,"No whitespace between attributes"),q.attribName=$,q.attribValue="",q.state=k.ATTRIB_NAME):G(q,"Invalid attribute name");continue;case k.ATTRIB_VALUE_UNQUOTED:if(!O($)){$==="&"?q.state=k.ATTRIB_VALUE_ENTITY_U:q.attribValue+=$;continue}Y(q),$===">"?Q(q):q.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(q.tagName)$===">"?oe(q):_(b,$)?q.tagName+=$:q.script?(q.script+="</"+q.tagName,q.tagName="",q.state=k.SCRIPT):(T($)||G(q,"Invalid tagname in closing tag"),q.state=k.CLOSE_TAG_SAW_WHITE);else{if(T($))continue;M(x,$)?q.script?(q.script+="</"+$,q.state=k.SCRIPT):G(q,"Invalid tagname in closing tag."):q.tagName=$}continue;case k.CLOSE_TAG_SAW_WHITE:if(T($))continue;$===">"?oe(q):G(q,"Invalid characters in closing tag");continue;case k.TEXT_ENTITY:case k.ATTRIB_VALUE_ENTITY_Q:case k.ATTRIB_VALUE_ENTITY_U:var de,Ne;switch(q.state){case k.TEXT_ENTITY:de=k.TEXT,Ne="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:de=k.ATTRIB_VALUE_QUOTED,Ne="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:de=k.ATTRIB_VALUE_UNQUOTED,Ne="attribValue";break}$===";"?(q[Ne]+=ue(q),q.entity="",q.state=de):_(q.entity.length?S:w,$)?q.entity+=$:(G(q,"Invalid character in entity name"),q[Ne]+="&"+q.entity+$,q.entity="",q.state=de);continue;default:throw new Error(q,"Unknown state: "+q.state)}}return q.position>=q.bufferCheckPosition&&r(q),q}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var X=String.fromCharCode,q=Math.floor,We=function(){var J=16384,le=[],de,Ne,we=-1,De=arguments.length;if(!De)return"";for(var Ee="";++we<De;){var ce=Number(arguments[we]);if(!isFinite(ce)||ce<0||ce>1114111||q(ce)!==ce)throw RangeError("Invalid code point: "+ce);ce<=65535?le.push(ce):(ce-=65536,de=(ce>>10)+55296,Ne=ce%1024+56320,le.push(de,Ne)),(we+1===De||le.length>J)&&(Ee+=X.apply(null,le),le.length=0)}return Ee};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:We,configurable:!0,writable:!0}):String.fromCodePoint=We}()})(typeof f=="undefined"?this.sax={}:f)}).call(this)}).call(this,o("buffer").Buffer)},{buffer:85,stream:345,string_decoder:86}],345:[function(o,m,f){m.exports=l;var s=o("events").EventEmitter,t=o("inherits");t(l,s),l.Readable=o("readable-stream/readable.js"),l.Writable=o("readable-stream/writable.js"),l.Duplex=o("readable-stream/duplex.js"),l.Transform=o("readable-stream/transform.js"),l.PassThrough=o("readable-stream/passthrough.js"),l.Stream=l;function l(){s.call(this)}l.prototype.pipe=function(a,r){var u=this;function e(g){a.writable&&(a.write(g)===!1&&u.pause&&u.pause())}u.on("data",e);function n(){u.readable&&u.resume&&u.resume()}a.on("drain",n),!a._isStdio&&(!r||r.end!==!1)&&(u.on("end",c),u.on("close",d));var i=!1;function c(){if(i)return;i=!0,a.end()}function d(){if(i)return;i=!0,typeof a.destroy=="function"&&a.destroy()}function h(g){if(p(),s.listenerCount(this,"error")===0)throw g}u.on("error",h),a.on("error",h);function p(){u.removeListener("data",e),a.removeListener("drain",n),u.removeListener("end",c),u.removeListener("close",d),u.removeListener("error",h),a.removeListener("error",h),u.removeListener("end",p),u.removeListener("close",p),a.removeListener("close",p)}return u.on("end",p),u.on("close",p),a.on("close",p),a.emit("pipe",u),a}},{events:301,inherits:311,"readable-stream/duplex.js":329,"readable-stream/passthrough.js":338,"readable-stream/readable.js":339,"readable-stream/transform.js":340,"readable-stream/writable.js":341}],346:[function(o,m,f){"use strict";var s=o("safe-buffer").Buffer,t=s.isEncoding||function(b){b=""+b;switch(b&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function l(b){if(!b)return"utf8";for(var w;;)switch(b){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return b;default:if(w)return;b=(""+b).toLowerCase(),w=!0}}function a(b){var w=l(b);if(typeof w!="string"&&(s.isEncoding===t||!t(b)))throw new Error("Unknown encoding: "+b);return w||b}f.StringDecoder=r;function r(b){this.encoding=a(b);var w;switch(this.encoding){case"utf16le":this.text=h,this.end=p,w=4;break;case"utf8":this.fillLast=i,w=4;break;case"base64":this.text=g,this.end=v,w=3;break;default:this.write=A,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=s.allocUnsafe(w)}r.prototype.write=function(b){if(b.length===0)return"";var w,S;if(this.lastNeed){if(w=this.fillLast(b),w===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<b.length?w?w+this.text(b,S):this.text(b,S):w||""},r.prototype.end=d,r.prototype.text=c,r.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length};function u(b){return b<=127?0:b>>5===6?2:b>>4===14?3:b>>3===30?4:b>>6===2?-1:-2}function e(b,w,S){var T=w.length-1;if(T<S)return 0;var C=u(w[T]);return C>=0?(C>0&&(b.lastNeed=C-1),C):--T<S||C===-2?0:(C=u(w[T]),C>=0?(C>0&&(b.lastNeed=C-2),C):--T<S||C===-2?0:(C=u(w[T]),C>=0?(C>0&&(C===2?C=0:b.lastNeed=C-3),C):0))}function n(b,w,S){if((w[0]&192)!==128)return b.lastNeed=0,"\uFFFD";if(b.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return b.lastNeed=1,"\uFFFD";if(b.lastNeed>2&&w.length>2&&(w[2]&192)!==128)return b.lastNeed=2,"\uFFFD"}}function i(b){var w=this.lastTotal-this.lastNeed,S=n(this,b,w);if(S!==void 0)return S;if(this.lastNeed<=b.length)return b.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,w,0,b.length),this.lastNeed-=b.length}function c(b,w){var S=e(this,b,w);if(!this.lastNeed)return b.toString("utf8",w);this.lastTotal=S;var T=b.length-(S-this.lastNeed);return b.copy(this.lastChar,0,T),b.toString("utf8",w,T)}function d(b){var w=b&&b.length?this.write(b):"";return this.lastNeed?w+"\uFFFD":w}function h(b,w){if((b.length-w)%2===0){var S=b.toString("utf16le",w);if(S){var T=S.charCodeAt(S.length-1);if(T>=55296&&T<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",w,b.length-1)}function p(b){var w=b&&b.length?this.write(b):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,S)}return w}function g(b,w){var S=(b.length-w)%3;return S===0?b.toString("base64",w):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",w,b.length-S))}function v(b){var w=b&&b.length?this.write(b):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function A(b){return b.toString(this.encoding)}function x(b){return b&&b.length?this.write(b):""}},{"safe-buffer":343}],347:[function(o,m,f){(function(s,t){(function(){var l=o("process/browser.js").nextTick,a=Function.prototype.apply,r=Array.prototype.slice,u={},e=0;f.setTimeout=function(){return new n(a.call(setTimeout,window,arguments),clearTimeout)},f.setInterval=function(){return new n(a.call(setInterval,window,arguments),clearInterval)},f.clearTimeout=f.clearInterval=function(i){i.close()};function n(i,c){this._id=i,this._clearFn=c}n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},f.enroll=function(i,c){clearTimeout(i._idleTimeoutId),i._idleTimeout=c},f.unenroll=function(i){clearTimeout(i._idleTimeoutId),i._idleTimeout=-1},f._unrefActive=f.active=function(i){clearTimeout(i._idleTimeoutId);var c=i._idleTimeout;c>=0&&(i._idleTimeoutId=setTimeout(function(){i._onTimeout&&i._onTimeout()},c))},f.setImmediate=typeof s=="function"?s:function(i){var c=e++,d=arguments.length<2?!1:r.call(arguments,1);return u[c]=!0,l(function(){u[c]&&(d?i.apply(null,d):i.call(null),f.clearImmediate(c))}),c},f.clearImmediate=typeof t=="function"?t:function(i){delete u[i]}}).call(this)}).call(this,o("timers").setImmediate,o("timers").clearImmediate)},{"process/browser.js":324,timers:347}],348:[function(o,m,f){var s=o("buffer").Buffer;m.exports=function(t){if(t instanceof Uint8Array){if(t.byteOffset===0&&t.byteLength===t.buffer.byteLength)return t.buffer;if(typeof t.buffer.slice=="function")return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(s.isBuffer(t)){for(var l=new Uint8Array(t.length),a=t.length,r=0;r<a;r++)l[r]=t[r];return l.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:85}],349:[function(o,m,f){(function(s){(function(){m.exports=t;function t(a,r){if(l("noDeprecation"))return a;var u=!1;function e(){if(!u){if(l("throwDeprecation"))throw new Error(r);l("traceDeprecation")?console.trace(r):console.warn(r),u=!0}return a.apply(this,arguments)}return e}function l(a){try{if(!s.localStorage)return!1}catch(u){return!1}var r=s.localStorage[a];return r==null?!1:String(r).toLowerCase()==="true"}}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],350:[function(o,m,f){arguments[4][79][0].apply(f,arguments)},{dup:79}],351:[function(o,m,f){arguments[4][80][0].apply(f,arguments)},{dup:80}],352:[function(o,m,f){arguments[4][81][0].apply(f,arguments)},{"./support/isBuffer":351,_process:399,dup:81,inherits:350}],353:[function(o,m,f){(function(){"use strict";f.stripBOM=function(s){return s[0]==="\uFEFF"?s.substring(1):s}}).call(this)},{}],354:[function(o,m,f){(function(){"use strict";var s,t,l,a,r,u={}.hasOwnProperty;s=o("xmlbuilder"),t=o("./defaults").defaults,a=function(n){return typeof n=="string"&&(n.indexOf("&")>=0||n.indexOf(">")>=0||n.indexOf("<")>=0)},r=function(n){return"<![CDATA["+l(n)+"]]>"},l=function(n){return n.replace("]]>","]]]]><![CDATA[>")},f.Builder=function(){function e(n){var i,c,d;this.options={},c=t["0.2"];for(i in c){if(!u.call(c,i))continue;d=c[i],this.options[i]=d}for(i in n){if(!u.call(n,i))continue;d=n[i],this.options[i]=d}}return e.prototype.buildObject=function(n){var i,c,d,h,p;return i=this.options.attrkey,c=this.options.charkey,Object.keys(n).length===1&&this.options.rootName===t["0.2"].rootName?(p=Object.keys(n)[0],n=n[p]):p=this.options.rootName,d=function(g){return function(v,A){var x,b,w,S,T,C;if(typeof A!="object")g.options.cdata&&a(A)?v.raw(r(A)):v.txt(A);else if(Array.isArray(A))for(S in A){if(!u.call(A,S))continue;b=A[S];for(T in b)w=b[T],v=d(v.ele(T),w).up()}else for(T in A){if(!u.call(A,T))continue;if(b=A[T],T===i){if(typeof b=="object")for(x in b)C=b[x],v=v.att(x,C)}else if(T===c)g.options.cdata&&a(b)?v=v.raw(r(b)):v=v.txt(b);else if(Array.isArray(b))for(S in b){if(!u.call(b,S))continue;w=b[S],typeof w=="string"?g.options.cdata&&a(w)?v=v.ele(T).raw(r(w)).up():v=v.ele(T,w).up():v=d(v.ele(T),w).up()}else typeof b=="object"?v=d(v.ele(T),b).up():typeof b=="string"&&g.options.cdata&&a(b)?v=v.ele(T).raw(r(b)).up():(b==null&&(b=""),v=v.ele(T,b.toString()).up())}return v}}(this),h=s.create(p,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),d(h,n).end(this.options.renderOpts)},e}()}).call(this)},{"./defaults":355,xmlbuilder:391}],355:[function(o,m,f){(function(){f.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(this)},{}],356:[function(o,m,f){(function(){"use strict";var s,t,l,a,r,u,e,n,i=function(p,g){return function(){return p.apply(g,arguments)}},c=function(p,g){for(var v in g)d.call(g,v)&&(p[v]=g[v]);function A(){this.constructor=p}return A.prototype=g.prototype,p.prototype=new A,p.__super__=g.prototype,p},d={}.hasOwnProperty;e=o("sax"),l=o("events"),s=o("./bom"),u=o("./processors"),n=o("timers").setImmediate,t=o("./defaults").defaults,a=function(p){return typeof p=="object"&&p!=null&&Object.keys(p).length===0},r=function(p,g,v){var A,x,b;for(A=0,x=p.length;A<x;A++)b=p[A],g=b(g,v);return g},f.Parser=function(h){c(p,h);function p(g){this.parseStringPromise=i(this.parseStringPromise,this),this.parseString=i(this.parseString,this),this.reset=i(this.reset,this),this.assignOrPush=i(this.assignOrPush,this),this.processAsync=i(this.processAsync,this);var v,A,x;if(!(this instanceof f.Parser))return new f.Parser(g);this.options={},A=t["0.2"];for(v in A){if(!d.call(A,v))continue;x=A[v],this.options[v]=x}for(v in g){if(!d.call(g,v))continue;x=g[v],this.options[v]=x}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(u.normalize)),this.reset()}return p.prototype.processAsync=function(){var g,v;try{return this.remaining.length<=this.options.chunkSize?(g=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(g),this.saxParser.close()):(g=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(g),n(this.processAsync))}catch(A){if(v=A,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(v)}},p.prototype.assignOrPush=function(g,v,A){return v in g?(g[v]instanceof Array||(g[v]=[g[v]]),g[v].push(A)):this.options.explicitArray?g[v]=[A]:g[v]=A},p.prototype.reset=function(){var g,v,A,x;return this.removeAllListeners(),this.saxParser=e.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(b){return function(w){if(b.saxParser.resume(),!b.saxParser.errThrown)return b.saxParser.errThrown=!0,b.emit("error",w)}}(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,x=[],g=this.options.attrkey,v=this.options.charkey,this.saxParser.onopentag=function(b){return function(w){var S,T,C,O,_;if(C={},C[v]="",!b.options.ignoreAttrs){_=w.attributes;for(S in _){if(!d.call(_,S))continue;!(g in C)&&!b.options.mergeAttrs&&(C[g]={}),T=b.options.attrValueProcessors?r(b.options.attrValueProcessors,w.attributes[S],S):w.attributes[S],O=b.options.attrNameProcessors?r(b.options.attrNameProcessors,S):S,b.options.mergeAttrs?b.assignOrPush(C,O,T):C[g][O]=T}}return C["#name"]=b.options.tagNameProcessors?r(b.options.tagNameProcessors,w.name):w.name,b.options.xmlns&&(C[b.options.xmlnskey]={uri:w.uri,local:w.local}),x.push(C)}}(this),this.saxParser.onclosetag=function(b){return function(){var w,S,T,C,O,_,M,k,R,B;if(_=x.pop(),O=_["#name"],(!b.options.explicitChildren||!b.options.preserveChildrenOrder)&&delete _["#name"],_.cdata===!0&&(w=_.cdata,delete _.cdata),R=x[x.length-1],_[v].match(/^\s*$/)&&!w?(S=_[v],delete _[v]):(b.options.trim&&(_[v]=_[v].trim()),b.options.normalize&&(_[v]=_[v].replace(/\s{2,}/g," ").trim()),_[v]=b.options.valueProcessors?r(b.options.valueProcessors,_[v],O):_[v],Object.keys(_).length===1&&v in _&&!b.EXPLICIT_CHARKEY&&(_=_[v])),a(_)&&(_=b.options.emptyTag!==""?b.options.emptyTag:S),b.options.validator!=null&&(B="/"+function(){var P,U,j;for(j=[],P=0,U=x.length;P<U;P++)C=x[P],j.push(C["#name"]);return j}().concat(O).join("/"),function(){var P;try{return _=b.options.validator(B,R&&R[O],_)}catch(U){return P=U,b.emit("error",P)}}()),b.options.explicitChildren&&!b.options.mergeAttrs&&typeof _=="object"){if(!b.options.preserveChildrenOrder)C={},b.options.attrkey in _&&(C[b.options.attrkey]=_[b.options.attrkey],delete _[b.options.attrkey]),!b.options.charsAsChildren&&b.options.charkey in _&&(C[b.options.charkey]=_[b.options.charkey],delete _[b.options.charkey]),Object.getOwnPropertyNames(_).length>0&&(C[b.options.childkey]=_),_=C;else if(R){R[b.options.childkey]=R[b.options.childkey]||[],M={};for(T in _){if(!d.call(_,T))continue;M[T]=_[T]}R[b.options.childkey].push(M),delete _["#name"],Object.keys(_).length===1&&v in _&&!b.EXPLICIT_CHARKEY&&(_=_[v])}}return x.length>0?b.assignOrPush(R,O,_):(b.options.explicitRoot&&(k=_,_={},_[O]=k),b.resultObject=_,b.saxParser.ended=!0,b.emit("end",b.resultObject))}}(this),A=function(b){return function(w){var S,T;if(T=x[x.length-1],T)return T[v]+=w,b.options.explicitChildren&&b.options.preserveChildrenOrder&&b.options.charsAsChildren&&(b.options.includeWhiteChars||w.replace(/\\n/g,"").trim()!=="")&&(T[b.options.childkey]=T[b.options.childkey]||[],S={"#name":"__text__"},S[v]=w,b.options.normalize&&(S[v]=S[v].replace(/\s{2,}/g," ").trim()),T[b.options.childkey].push(S)),T}}(this),this.saxParser.ontext=A,this.saxParser.oncdata=function(b){return function(w){var S;if(S=A(w),S)return S.cdata=!0}}(this)},p.prototype.parseString=function(g,v){var A;v!=null&&typeof v=="function"&&(this.on("end",function(x){return this.reset(),v(null,x)}),this.on("error",function(x){return this.reset(),v(x)}));try{return g=g.toString(),g.trim()===""?(this.emit("end",null),!0):(g=s.stripBOM(g),this.options.async?(this.remaining=g,n(this.processAsync),this.saxParser):this.saxParser.write(g).close())}catch(x){if(A=x,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw A}else return this.emit("error",A),this.saxParser.errThrown=!0}},p.prototype.parseStringPromise=function(g){return new Promise(function(v){return function(A,x){return v.parseString(g,function(b,w){return b?x(b):A(w)})}}(this))},p}(l),f.parseString=function(h,p,g){var v,A,x;return g!=null?(typeof g=="function"&&(v=g),typeof p=="object"&&(A=p)):(typeof p=="function"&&(v=p),A={}),x=new f.Parser(A),x.parseString(h,v)},f.parseStringPromise=function(h,p){var g,v;return typeof p=="object"&&(g=p),v=new f.Parser(g),v.parseStringPromise(h)}}).call(this)},{"./bom":353,"./defaults":355,"./processors":357,events:301,sax:344,timers:347}],357:[function(o,m,f){(function(){"use strict";var s;s=new RegExp(/(?!xmlns)^.*:/),f.normalize=function(t){return t.toLowerCase()},f.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},f.stripPrefix=function(t){return t.replace(s,"")},f.parseNumbers=function(t){return isNaN(t)||(t=t%1===0?parseInt(t,10):parseFloat(t)),t},f.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t=t.toLowerCase()==="true"),t}}).call(this)},{}],358:[function(o,m,f){(function(){"use strict";var s,t,l,a,r=function(n,i){for(var c in i)u.call(i,c)&&(n[c]=i[c]);function d(){this.constructor=n}return d.prototype=i.prototype,n.prototype=new d,n.__super__=i.prototype,n},u={}.hasOwnProperty;t=o("./defaults"),s=o("./builder"),l=o("./parser"),a=o("./processors"),f.defaults=t.defaults,f.processors=a,f.ValidationError=function(e){r(n,e);function n(i){this.message=i}return n}(Error),f.Builder=s.Builder,f.Parser=l.Parser,f.parseString=l.parseString,f.parseStringPromise=l.parseStringPromise}).call(this)},{"./builder":354,"./defaults":355,"./parser":356,"./processors":357}],359:[function(o,m,f){(function(){m.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],360:[function(o,m,f){(function(){m.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(this)},{}],361:[function(o,m,f){(function(){var s,t,l,a,r,u,e,n=[].slice,i={}.hasOwnProperty;s=function(){var d,h,p,g,v,A;if(A=arguments[0],v=2<=arguments.length?n.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(d=0,p=v.length;d<p;d++)if(g=v[d],g!=null)for(h in g){if(!i.call(g,h))continue;A[h]=g[h]}return A},r=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},u=function(d){var h;return!!d&&((h=typeof d)==="function"||h==="object")},l=function(d){return r(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},a=function(d){var h;if(l(d))return!d.length;for(h in d){if(!i.call(d,h))continue;return!1}return!0},e=function(d){var h,p;return u(d)&&(p=Object.getPrototypeOf(d))&&(h=p.constructor)&&typeof h=="function"&&h instanceof h&&Function.prototype.toString.call(h)===Function.prototype.toString.call(Object)},t=function(d){return r(d.valueOf)?d.valueOf():d},m.exports.assign=s,m.exports.isFunction=r,m.exports.isObject=u,m.exports.isArray=l,m.exports.isEmpty=a,m.exports.isPlainObject=e,m.exports.getValue=t}).call(this)},{}],362:[function(o,m,f){(function(){m.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],363:[function(o,m,f){(function(){var s,t,l;s=o("./NodeType"),l=o("./XMLNode"),m.exports=t=function(){function a(r,u,e){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),u==null)throw new Error("Missing attribute name. "+this.debugInfo(u));this.name=this.stringify.name(u),this.value=this.stringify.attValue(e),this.type=s.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(u){return this.value=u||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},a.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},a.prototype.isEqualNode=function(r){return r.namespaceURI!==this.namespaceURI||(r.prefix!==this.prefix||r.localName!==this.localName)?!1:!(r.value!==this.value)},a}()}).call(this)},{"./NodeType":360,"./XMLNode":382}],364:[function(o,m,f){(function(){var s,t,l,a=function(e,n){for(var i in n)r.call(n,i)&&(e[i]=n[i]);function c(){this.constructor=e}return c.prototype=n.prototype,e.prototype=new c,e.__super__=n.prototype,e},r={}.hasOwnProperty;s=o("./NodeType"),l=o("./XMLCharacterData"),m.exports=t=function(u){a(e,u);function e(n,i){if(e.__super__.constructor.call(this,n),i==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=s.CData,this.value=this.stringify.cdata(i)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(n){return this.options.writer.cdata(this,this.options.writer.filterOptions(n))},e}(l)}).call(this)},{"./NodeType":360,"./XMLCharacterData":365}],365:[function(o,m,f){(function(){var s,t,l=function(u,e){for(var n in e)a.call(e,n)&&(u[n]=e[n]);function i(){this.constructor=u}return i.prototype=e.prototype,u.prototype=new i,u.__super__=e.prototype,u},a={}.hasOwnProperty;t=o("./XMLNode"),m.exports=s=function(r){l(u,r);function u(e){u.__super__.constructor.call(this,e),this.value=""}return Object.defineProperty(u.prototype,"data",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(u.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(u.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),u.prototype.clone=function(){return Object.create(this)},u.prototype.substringData=function(e,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.insertData=function(e,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.deleteData=function(e,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.replaceData=function(e,n,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.isEqualNode=function(e){return u.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)?!(e.data!==this.data):!1},u}(t)}).call(this)},{"./XMLNode":382}],366:[function(o,m,f){(function(){var s,t,l,a=function(e,n){for(var i in n)r.call(n,i)&&(e[i]=n[i]);function c(){this.constructor=e}return c.prototype=n.prototype,e.prototype=new c,e.__super__=n.prototype,e},r={}.hasOwnProperty;s=o("./NodeType"),t=o("./XMLCharacterData"),m.exports=l=function(u){a(e,u);function e(n,i){if(e.__super__.constructor.call(this,n),i==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=s.Comment,this.value=this.stringify.comment(i)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(n){return this.options.writer.comment(this,this.options.writer.filterOptions(n))},e}(t)}).call(this)},{"./NodeType":360,"./XMLCharacterData":365}],367:[function(o,m,f){(function(){var s,t,l;t=o("./XMLDOMErrorHandler"),l=o("./XMLDOMStringList"),m.exports=s=function(){function a(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new t,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=Object.create(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new l(Object.keys(this.defaultParams))}}),a.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},a.prototype.canSetParameter=function(r,u){return!0},a.prototype.setParameter=function(r,u){return u!=null?this.params[r]=u:delete this.params[r]},a}()}).call(this)},{"./XMLDOMErrorHandler":368,"./XMLDOMStringList":370}],368:[function(o,m,f){(function(){var s;m.exports=s=function(){function t(){}return t.prototype.handleError=function(l){throw new Error(l)},t}()}).call(this)},{}],369:[function(o,m,f){(function(){var s;m.exports=s=function(){function t(){}return t.prototype.hasFeature=function(l,a){return!0},t.prototype.createDocumentType=function(l,a,r){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(l,a,r){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(l){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(l,a){throw new Error("This DOM method is not implemented.")},t}()}).call(this)},{}],370:[function(o,m,f){(function(){var s;m.exports=s=function(){function t(l){this.arr=l||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(l){return this.arr[l]||null},t.prototype.contains=function(l){return this.arr.indexOf(l)!==-1},t}()}).call(this)},{}],371:[function(o,m,f){(function(){var s,t,l,a=function(e,n){for(var i in n)r.call(n,i)&&(e[i]=n[i]);function c(){this.constructor=e}return c.prototype=n.prototype,e.prototype=new c,e.__super__=n.prototype,e},r={}.hasOwnProperty;l=o("./XMLNode"),s=o("./NodeType"),m.exports=t=function(u){a(e,u);function e(n,i,c,d,h,p){if(e.__super__.constructor.call(this,n),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(c==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(i));if(!d)throw new Error("Missing DTD attribute type. "+this.debugInfo(i));if(!h)throw new Error("Missing DTD attribute default. "+this.debugInfo(i));if(h.indexOf("#")!==0&&(h="#"+h),!h.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(i));if(p&&!h.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(i));this.elementName=this.stringify.name(i),this.type=s.AttributeDeclaration,this.attributeName=this.stringify.name(c),this.attributeType=this.stringify.dtdAttType(d),p&&(this.defaultValue=this.stringify.dtdAttDefault(p)),this.defaultValueType=h}return e.prototype.toString=function(n){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(n))},e}(l)}).call(this)},{"./NodeType":360,"./XMLNode":382}],372:[function(o,m,f){(function(){var s,t,l,a=function(e,n){for(var i in n)r.call(n,i)&&(e[i]=n[i]);function c(){this.constructor=e}return c.prototype=n.prototype,e.prototype=new c,e.__super__=n.prototype,e},r={}.hasOwnProperty;l=o("./XMLNode"),s=o("./NodeType"),m.exports=t=function(u){a(e,u);function e(n,i,c){if(e.__super__.constructor.call(this,n),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());c||(c="(#PCDATA)"),Array.isArray(c)&&(c="("+c.join(",")+")"),this.name=this.stringify.name(i),this.type=s.ElementDeclaration,this.value=this.stringify.dtdElementValue(c)}return e.prototype.toString=function(n){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(n))},e}(l)}).call(this)},{"./NodeType":360,"./XMLNode":382}],373:[function(o,m,f){(function(){var s,t,l,a,r=function(n,i){for(var c in i)u.call(i,c)&&(n[c]=i[c]);function d(){this.constructor=n}return d.prototype=i.prototype,n.prototype=new d,n.__super__=i.prototype,n},u={}.hasOwnProperty;a=o("./Utility").isObject,l=o("./XMLNode"),s=o("./NodeType"),m.exports=t=function(e){r(n,e);function n(i,c,d,h){if(n.__super__.constructor.call(this,i),d==null)throw new Error("Missing DTD entity name. "+this.debugInfo(d));if(h==null)throw new Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!c,this.name=this.stringify.name(d),this.type=s.EntityDeclaration,!a(h))this.value=this.stringify.dtdEntityValue(h),this.internal=!0;else{if(!h.pubID&&!h.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(h.pubID&&!h.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,h.pubID!=null&&(this.pubID=this.stringify.dtdPubID(h.pubID)),h.sysID!=null&&(this.sysID=this.stringify.dtdSysID(h.sysID)),h.nData!=null&&(this.nData=this.stringify.dtdNData(h.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return null}}),n.prototype.toString=function(i){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(i))},n}(l)}).call(this)},{"./NodeType":360,"./Utility":361,"./XMLNode":382}],374:[function(o,m,f){(function(){var s,t,l,a=function(e,n){for(var i in n)r.call(n,i)&&(e[i]=n[i]);function c(){this.constructor=e}return c.prototype=n.prototype,e.prototype=new c,e.__super__=n.prototype,e},r={}.hasOwnProperty;l=o("./XMLNode"),s=o("./NodeType"),m.exports=t=function(u){a(e,u);function e(n,i,c){if(e.__super__.constructor.call(this,n),i==null)throw new Error("Missing DTD notation name. "+this.debugInfo(i));if(!c.pubID&&!c.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(i));this.name=this.stringify.name(i),this.type=s.NotationDeclaration,c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID))}return Object.defineProperty(e.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(e.prototype,"systemId",{get:function(){return this.sysID}}),e.prototype.toString=function(n){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(n))},e}(l)}).call(this)},{"./NodeType":360,"./XMLNode":382}],375:[function(o,m,f){(function(){var s,t,l,a,r=function(n,i){for(var c in i)u.call(i,c)&&(n[c]=i[c]);function d(){this.constructor=n}return d.prototype=i.prototype,n.prototype=new d,n.__super__=i.prototype,n},u={}.hasOwnProperty;a=o("./Utility").isObject,l=o("./XMLNode"),s=o("./NodeType"),m.exports=t=function(e){r(n,e);function n(i,c,d,h){var p;n.__super__.constructor.call(this,i),a(c)&&(p=c,c=p.version,d=p.encoding,h=p.standalone),c||(c="1.0"),this.type=s.Declaration,this.version=this.stringify.xmlVersion(c),d!=null&&(this.encoding=this.stringify.xmlEncoding(d)),h!=null&&(this.standalone=this.stringify.xmlStandalone(h))}return n.prototype.toString=function(i){return this.options.writer.declaration(this,this.options.writer.filterOptions(i))},n}(l)}).call(this)},{"./NodeType":360,"./Utility":361,"./XMLNode":382}],376:[function(o,m,f){(function(){var s,t,l,a,r,u,e,n,i,c=function(p,g){for(var v in g)d.call(g,v)&&(p[v]=g[v]);function A(){this.constructor=p}return A.prototype=g.prototype,p.prototype=new A,p.__super__=g.prototype,p},d={}.hasOwnProperty;i=o("./Utility").isObject,n=o("./XMLNode"),s=o("./NodeType"),t=o("./XMLDTDAttList"),a=o("./XMLDTDEntity"),l=o("./XMLDTDElement"),r=o("./XMLDTDNotation"),e=o("./XMLNamedNodeMap"),m.exports=u=function(h){c(p,h);function p(g,v,A){var x,b,w,S,T,C;if(p.__super__.constructor.call(this,g),this.type=s.DocType,g.children){for(S=g.children,b=0,w=S.length;b<w;b++)if(x=S[b],x.type===s.Element){this.name=x.name;break}}this.documentObject=g,i(v)&&(T=v,v=T.pubID,A=T.sysID),A==null&&(C=[v,A],A=C[0],v=C[1]),v!=null&&(this.pubID=this.stringify.dtdPubID(v)),A!=null&&(this.sysID=this.stringify.dtdSysID(A))}return Object.defineProperty(p.prototype,"entities",{get:function(){var v,A,x,b,w;for(b={},w=this.children,A=0,x=w.length;A<x;A++)v=w[A],v.type===s.EntityDeclaration&&!v.pe&&(b[v.name]=v);return new e(b)}}),Object.defineProperty(p.prototype,"notations",{get:function(){var v,A,x,b,w;for(b={},w=this.children,A=0,x=w.length;A<x;A++)v=w[A],v.type===s.NotationDeclaration&&(b[v.name]=v);return new e(b)}}),Object.defineProperty(p.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(p.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(p.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),p.prototype.element=function(g,v){var A;return A=new l(this,g,v),this.children.push(A),this},p.prototype.attList=function(g,v,A,x,b){var w;return w=new t(this,g,v,A,x,b),this.children.push(w),this},p.prototype.entity=function(g,v){var A;return A=new a(this,!1,g,v),this.children.push(A),this},p.prototype.pEntity=function(g,v){var A;return A=new a(this,!0,g,v),this.children.push(A),this},p.prototype.notation=function(g,v){var A;return A=new r(this,g,v),this.children.push(A),this},p.prototype.toString=function(g){return this.options.writer.docType(this,this.options.writer.filterOptions(g))},p.prototype.ele=function(g,v){return this.element(g,v)},p.prototype.att=function(g,v,A,x,b){return this.attList(g,v,A,x,b)},p.prototype.ent=function(g,v){return this.entity(g,v)},p.prototype.pent=function(g,v){return this.pEntity(g,v)},p.prototype.not=function(g,v){return this.notation(g,v)},p.prototype.up=function(){return this.root()||this.documentObject},p.prototype.isEqualNode=function(g){return p.__super__.isEqualNode.apply(this,arguments).isEqualNode(g)?g.name!==this.name||g.publicId!==this.publicId?!1:!(g.systemId!==this.systemId):!1},p}(n)}).call(this)},{"./NodeType":360,"./Utility":361,"./XMLDTDAttList":371,"./XMLDTDElement":372,"./XMLDTDEntity":373,"./XMLDTDNotation":374,"./XMLNamedNodeMap":381,"./XMLNode":382}],377:[function(o,m,f){(function(){var s,t,l,a,r,u,e,n,i=function(h,p){for(var g in p)c.call(p,g)&&(h[g]=p[g]);function v(){this.constructor=h}return v.prototype=p.prototype,h.prototype=new v,h.__super__=p.prototype,h},c={}.hasOwnProperty;n=o("./Utility").isPlainObject,l=o("./XMLDOMImplementation"),t=o("./XMLDOMConfiguration"),r=o("./XMLNode"),s=o("./NodeType"),e=o("./XMLStringifier"),u=o("./XMLStringWriter"),m.exports=a=function(d){i(h,d);function h(p){h.__super__.constructor.call(this,null),this.name="#document",this.type=s.Document,this.documentURI=null,this.domConfig=new t,p||(p={}),p.writer||(p.writer=new u),this.options=p,this.stringify=new e(p)}return Object.defineProperty(h.prototype,"implementation",{value:new l}),Object.defineProperty(h.prototype,"doctype",{get:function(){var g,v,A,x;for(x=this.children,v=0,A=x.length;v<A;v++)if(g=x[v],g.type===s.DocType)return g;return null}}),Object.defineProperty(h.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(h.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(h.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(h.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===s.Declaration?this.children[0].encoding:null}}),Object.defineProperty(h.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===s.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(h.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===s.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(h.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(h.prototype,"origin",{get:function(){return null}}),Object.defineProperty(h.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(h.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(h.prototype,"contentType",{get:function(){return null}}),h.prototype.end=function(p){var g;return g={},p?n(p)&&(g=p,p=this.options.writer):p=this.options.writer,p.document(this,p.filterOptions(g))},h.prototype.toString=function(p){return this.options.writer.document(this,this.options.writer.filterOptions(p))},h.prototype.createElement=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createTextNode=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createComment=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createCDATASection=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createProcessingInstruction=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createAttribute=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createEntityReference=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagName=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.importNode=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createElementNS=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createAttributeNS=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagNameNS=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementById=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.adoptNode=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.renameNode=function(p,g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByClassName=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createEvent=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createNodeIterator=function(p,g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.createTreeWalker=function(p,g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},h}(r)}).call(this)},{"./NodeType":360,"./Utility":361,"./XMLDOMConfiguration":367,"./XMLDOMImplementation":369,"./XMLNode":382,"./XMLStringWriter":387,"./XMLStringifier":388}],378:[function(o,m,f){(function(){var s,t,l,a,r,u,e,n,i,c,d,h,p,g,v,A,x,b,w,S,T,C,O,_,M={}.hasOwnProperty;_=o("./Utility"),C=_.isObject,T=_.isFunction,O=_.isPlainObject,S=_.getValue,s=o("./NodeType"),h=o("./XMLDocument"),g=o("./XMLElement"),a=o("./XMLCData"),r=o("./XMLComment"),A=o("./XMLRaw"),w=o("./XMLText"),v=o("./XMLProcessingInstruction"),c=o("./XMLDeclaration"),d=o("./XMLDocType"),u=o("./XMLDTDAttList"),n=o("./XMLDTDEntity"),e=o("./XMLDTDElement"),i=o("./XMLDTDNotation"),l=o("./XMLAttribute"),b=o("./XMLStringifier"),x=o("./XMLStringWriter"),t=o("./WriterState"),m.exports=p=function(){function k(R,B,P){var U;this.name="?xml",this.type=s.Document,R||(R={}),U={},R.writer?O(R.writer)&&(U=R.writer,R.writer=new x):R.writer=new x,this.options=R,this.writer=R.writer,this.writerOptions=this.writer.filterOptions(U),this.stringify=new b(R),this.onDataCallback=B||function(){},this.onEndCallback=P||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return k.prototype.createChildNode=function(R){var B,P,U,j,H,W,G,V;switch(R.type){case s.CData:this.cdata(R.value);break;case s.Comment:this.comment(R.value);break;case s.Element:U={},G=R.attribs;for(P in G){if(!M.call(G,P))continue;B=G[P],U[P]=B.value}this.node(R.name,U);break;case s.Dummy:this.dummy();break;case s.Raw:this.raw(R.value);break;case s.Text:this.text(R.value);break;case s.ProcessingInstruction:this.instruction(R.target,R.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+R.constructor.name)}for(V=R.children,H=0,W=V.length;H<W;H++)j=V[H],this.createChildNode(j),j.type===s.Element&&this.up();return this},k.prototype.dummy=function(){return this},k.prototype.node=function(R,B,P){var U;if(R==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(R));return this.openCurrent(),R=S(R),B==null&&(B={}),B=S(B),C(B)||(U=[B,P],P=U[0],B=U[1]),this.currentNode=new g(this,R,B),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,P!=null&&this.text(P),this},k.prototype.element=function(R,B,P){var U,j,H,W,G,V;if(this.currentNode&&this.currentNode.type===s.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(R)||C(R)||T(R))for(W=this.options.noValidation,this.options.noValidation=!0,V=new h(this.options).element("TEMP_ROOT"),V.element(R),this.options.noValidation=W,G=V.children,j=0,H=G.length;j<H;j++)U=G[j],this.createChildNode(U),U.type===s.Element&&this.up();else this.node(R,B,P);return this},k.prototype.attribute=function(R,B){var P,U;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(R));if(R!=null&&(R=S(R)),C(R))for(P in R){if(!M.call(R,P))continue;U=R[P],this.attribute(P,U)}else T(B)&&(B=B.apply()),this.options.keepNullAttributes&&B==null?this.currentNode.attribs[R]=new l(this,R,""):B!=null&&(this.currentNode.attribs[R]=new l(this,R,B));return this},k.prototype.text=function(R){var B;return this.openCurrent(),B=new w(this,R),this.onData(this.writer.text(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.cdata=function(R){var B;return this.openCurrent(),B=new a(this,R),this.onData(this.writer.cdata(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.comment=function(R){var B;return this.openCurrent(),B=new r(this,R),this.onData(this.writer.comment(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.raw=function(R){var B;return this.openCurrent(),B=new A(this,R),this.onData(this.writer.raw(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.instruction=function(R,B){var P,U,j,H,W;if(this.openCurrent(),R!=null&&(R=S(R)),B!=null&&(B=S(B)),Array.isArray(R))for(P=0,H=R.length;P<H;P++)U=R[P],this.instruction(U);else if(C(R))for(U in R){if(!M.call(R,U))continue;j=R[U],this.instruction(U,j)}else T(B)&&(B=B.apply()),W=new v(this,R,B),this.onData(this.writer.processingInstruction(W,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},k.prototype.declaration=function(R,B,P){var U;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return U=new c(this,R,B,P),this.onData(this.writer.declaration(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.doctype=function(R,B,P){if(this.openCurrent(),R==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 d(this,B,P),this.currentNode.rootNodeName=R,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},k.prototype.dtdElement=function(R,B){var P;return this.openCurrent(),P=new e(this,R,B),this.onData(this.writer.dtdElement(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.attList=function(R,B,P,U,j){var H;return this.openCurrent(),H=new u(this,R,B,P,U,j),this.onData(this.writer.dtdAttList(H,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.entity=function(R,B){var P;return this.openCurrent(),P=new n(this,!1,R,B),this.onData(this.writer.dtdEntity(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.pEntity=function(R,B){var P;return this.openCurrent(),P=new n(this,!0,R,B),this.onData(this.writer.dtdEntity(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.prototype.notation=function(R,B){var P;return this.openCurrent(),P=new i(this,R,B),this.onData(this.writer.dtdNotation(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},k.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},k.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},k.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},k.prototype.openNode=function(R){var B,P,U,j;if(!R.isOpen){if(!this.root&&this.currentLevel===0&&R.type===s.Element&&(this.root=R),P="",R.type===s.Element){this.writerOptions.state=t.OpenTag,P=this.writer.indent(R,this.writerOptions,this.currentLevel)+"<"+R.name,j=R.attribs;for(U in j){if(!M.call(j,U))continue;B=j[U],P+=this.writer.attribute(B,this.writerOptions,this.currentLevel)}P+=(R.children?">":"/>")+this.writer.endline(R,this.writerOptions,this.currentLevel),this.writerOptions.state=t.InsideTag}else this.writerOptions.state=t.OpenTag,P=this.writer.indent(R,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+R.rootNodeName,R.pubID&&R.sysID?P+=' PUBLIC "'+R.pubID+'" "'+R.sysID+'"':R.sysID&&(P+=' SYSTEM "'+R.sysID+'"'),R.children?(P+=" [",this.writerOptions.state=t.InsideTag):(this.writerOptions.state=t.CloseTag,P+=">"),P+=this.writer.endline(R,this.writerOptions,this.currentLevel);return this.onData(P,this.currentLevel),R.isOpen=!0}},k.prototype.closeNode=function(R){var B;if(!R.isClosed)return B="",this.writerOptions.state=t.CloseTag,R.type===s.Element?B=this.writer.indent(R,this.writerOptions,this.currentLevel)+"</"+R.name+">"+this.writer.endline(R,this.writerOptions,this.currentLevel):B=this.writer.indent(R,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(R,this.writerOptions,this.currentLevel),this.writerOptions.state=t.None,this.onData(B,this.currentLevel),R.isClosed=!0},k.prototype.onData=function(R,B){return this.documentStarted=!0,this.onDataCallback(R,B+1)},k.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},k.prototype.debugInfo=function(R){return R==null?"":"node: <"+R+">"},k.prototype.ele=function(){return this.element.apply(this,arguments)},k.prototype.nod=function(R,B,P){return this.node(R,B,P)},k.prototype.txt=function(R){return this.text(R)},k.prototype.dat=function(R){return this.cdata(R)},k.prototype.com=function(R){return this.comment(R)},k.prototype.ins=function(R,B){return this.instruction(R,B)},k.prototype.dec=function(R,B,P){return this.declaration(R,B,P)},k.prototype.dtd=function(R,B,P){return this.doctype(R,B,P)},k.prototype.e=function(R,B,P){return this.element(R,B,P)},k.prototype.n=function(R,B,P){return this.node(R,B,P)},k.prototype.t=function(R){return this.text(R)},k.prototype.d=function(R){return this.cdata(R)},k.prototype.c=function(R){return this.comment(R)},k.prototype.r=function(R){return this.raw(R)},k.prototype.i=function(R,B){return this.instruction(R,B)},k.prototype.att=function(){return this.currentNode&&this.currentNode.type===s.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},k.prototype.a=function(){return this.currentNode&&this.currentNode.type===s.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},k.prototype.ent=function(R,B){return this.entity(R,B)},k.prototype.pent=function(R,B){return this.pEntity(R,B)},k.prototype.not=function(R,B){return this.notation(R,B)},k}()}).call(this)},{"./NodeType":360,"./Utility":361,"./WriterState":362,"./XMLAttribute":363,"./XMLCData":364,"./XMLComment":366,"./XMLDTDAttList":371,"./XMLDTDElement":372,"./XMLDTDEntity":373,"./XMLDTDNotation":374,"./XMLDeclaration":375,"./XMLDocType":376,"./XMLDocument":377,"./XMLElement":380,"./XMLProcessingInstruction":384,"./XMLRaw":385,"./XMLStringWriter":387,"./XMLStringifier":388,"./XMLText":389}],379:[function(o,m,f){(function(){var s,t,l,a=function(e,n){for(var i in n)r.call(n,i)&&(e[i]=n[i]);function c(){this.constructor=e}return c.prototype=n.prototype,e.prototype=new c,e.__super__=n.prototype,e},r={}.hasOwnProperty;l=o("./XMLNode"),s=o("./NodeType"),m.exports=t=function(u){a(e,u);function e(n){e.__super__.constructor.call(this,n),this.type=s.Dummy}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(n){return""},e}(l)}).call(this)},{"./NodeType":360,"./XMLNode":382}],380:[function(o,m,f){(function(){var s,t,l,a,r,u,e,n,i,c=function(p,g){for(var v in g)d.call(g,v)&&(p[v]=g[v]);function A(){this.constructor=p}return A.prototype=g.prototype,p.prototype=new A,p.__super__=g.prototype,p},d={}.hasOwnProperty;i=o("./Utility"),n=i.isObject,e=i.isFunction,u=i.getValue,r=o("./XMLNode"),s=o("./NodeType"),t=o("./XMLAttribute"),a=o("./XMLNamedNodeMap"),m.exports=l=function(h){c(p,h);function p(g,v,A){var x,b,w,S;if(p.__super__.constructor.call(this,g),v==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(v),this.type=s.Element,this.attribs={},this.schemaTypeInfo=null,A!=null&&this.attribute(A),g.type===s.Document&&(this.isRoot=!0,this.documentObject=g,g.rootObject=this,g.children)){for(S=g.children,b=0,w=S.length;b<w;b++)if(x=S[b],x.type===s.DocType){x.name=this.name;break}}}return Object.defineProperty(p.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(p.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(p.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(p.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(p.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new a(this.attribs)),this.attributeMap}}),p.prototype.clone=function(){var g,v,A,x;A=Object.create(this),A.isRoot&&(A.documentObject=null),A.attribs={},x=this.attribs;for(v in x){if(!d.call(x,v))continue;g=x[v],A.attribs[v]=g.clone()}return A.children=[],this.children.forEach(function(b){var w;return w=b.clone(),w.parent=A,A.children.push(w)}),A},p.prototype.attribute=function(g,v){var A,x;if(g!=null&&(g=u(g)),n(g))for(A in g){if(!d.call(g,A))continue;x=g[A],this.attribute(A,x)}else e(v)&&(v=v.apply()),this.options.keepNullAttributes&&v==null?this.attribs[g]=new t(this,g,""):v!=null&&(this.attribs[g]=new t(this,g,v));return this},p.prototype.removeAttribute=function(g){var v,A,x;if(g==null)throw new Error("Missing attribute name. "+this.debugInfo());if(g=u(g),Array.isArray(g))for(A=0,x=g.length;A<x;A++)v=g[A],delete this.attribs[v];else delete this.attribs[g];return this},p.prototype.toString=function(g){return this.options.writer.element(this,this.options.writer.filterOptions(g))},p.prototype.att=function(g,v){return this.attribute(g,v)},p.prototype.a=function(g,v){return this.attribute(g,v)},p.prototype.getAttribute=function(g){return this.attribs.hasOwnProperty(g)?this.attribs[g].value:null},p.prototype.setAttribute=function(g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getAttributeNode=function(g){return this.attribs.hasOwnProperty(g)?this.attribs[g]:null},p.prototype.setAttributeNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.removeAttributeNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getElementsByTagName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getAttributeNS=function(g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.setAttributeNS=function(g,v,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.removeAttributeNS=function(g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getAttributeNodeNS=function(g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.setAttributeNodeNS=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getElementsByTagNameNS=function(g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.hasAttribute=function(g){return this.attribs.hasOwnProperty(g)},p.prototype.hasAttributeNS=function(g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.setIdAttribute=function(g,v){return this.attribs.hasOwnProperty(g)?this.attribs[g].isId:v},p.prototype.setIdAttributeNS=function(g,v,A){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.setIdAttributeNode=function(g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getElementsByTagName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getElementsByTagNameNS=function(g,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.getElementsByClassName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.isEqualNode=function(g){var v,A,x;if(!p.__super__.isEqualNode.apply(this,arguments).isEqualNode(g))return!1;if(g.namespaceURI!==this.namespaceURI)return!1;if(g.prefix!==this.prefix)return!1;if(g.localName!==this.localName)return!1;if(g.attribs.length!==this.attribs.length)return!1;for(v=A=0,x=this.attribs.length-1;0<=x?A<=x:A>=x;v=0<=x?++A:--A)if(!this.attribs[v].isEqualNode(g.attribs[v]))return!1;return!0},p}(r)}).call(this)},{"./NodeType":360,"./Utility":361,"./XMLAttribute":363,"./XMLNamedNodeMap":381,"./XMLNode":382}],381:[function(o,m,f){(function(){var s;m.exports=s=function(){function t(l){this.nodes=l}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.getNamedItem=function(l){return this.nodes[l]},t.prototype.setNamedItem=function(l){var a;return a=this.nodes[l.nodeName],this.nodes[l.nodeName]=l,a||null},t.prototype.removeNamedItem=function(l){var a;return a=this.nodes[l],delete this.nodes[l],a||null},t.prototype.item=function(l){return this.nodes[Object.keys(this.nodes)[l]]||null},t.prototype.getNamedItemNS=function(l,a){throw new Error("This DOM method is not implemented.")},t.prototype.setNamedItemNS=function(l){throw new Error("This DOM method is not implemented.")},t.prototype.removeNamedItemNS=function(l,a){throw new Error("This DOM method is not implemented.")},t}()}).call(this)},{}],382:[function(o,m,f){(function(){var s,t,l,a,r,u,e,n,i,c,d,h,p,g,v,A,x,b,w,S={}.hasOwnProperty;w=o("./Utility"),b=w.isObject,x=w.isFunction,A=w.isEmpty,v=w.getValue,n=null,l=null,a=null,r=null,u=null,p=null,g=null,h=null,e=null,t=null,d=null,i=null,s=null,m.exports=c=function(){function T(C){this.parent=C,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,n||(n=o("./XMLElement"),l=o("./XMLCData"),a=o("./XMLComment"),r=o("./XMLDeclaration"),u=o("./XMLDocType"),p=o("./XMLRaw"),g=o("./XMLText"),h=o("./XMLProcessingInstruction"),e=o("./XMLDummy"),t=o("./NodeType"),d=o("./XMLNodeList"),i=o("./XMLNamedNodeMap"),s=o("./DocumentPosition"))}return Object.defineProperty(T.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(T.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(T.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(T.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(T.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new d(this.children)),this.childNodeList}}),Object.defineProperty(T.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(T.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(T.prototype,"previousSibling",{get:function(){var O;return O=this.parent.children.indexOf(this),this.parent.children[O-1]||null}}),Object.defineProperty(T.prototype,"nextSibling",{get:function(){var O;return O=this.parent.children.indexOf(this),this.parent.children[O+1]||null}}),Object.defineProperty(T.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(T.prototype,"textContent",{get:function(){var O,_,M,k,R;if(this.nodeType===t.Element||this.nodeType===t.DocumentFragment){for(R="",k=this.children,_=0,M=k.length;_<M;_++)O=k[_],O.textContent&&(R+=O.textContent);return R}else return null},set:function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),T.prototype.setParent=function(C){var O,_,M,k,R;for(this.parent=C,C&&(this.options=C.options,this.stringify=C.stringify),k=this.children,R=[],_=0,M=k.length;_<M;_++)O=k[_],R.push(O.setParent(this));return R},T.prototype.element=function(C,O,_){var M,k,R,B,P,U,j,H,W,G,V;if(U=null,O===null&&_==null&&(W=[{},null],O=W[0],_=W[1]),O==null&&(O={}),O=v(O),b(O)||(G=[O,_],_=G[0],O=G[1]),C!=null&&(C=v(C)),Array.isArray(C))for(R=0,j=C.length;R<j;R++)k=C[R],U=this.element(k);else if(x(C))U=this.element(C.apply());else if(b(C))for(P in C){if(!S.call(C,P))continue;if(V=C[P],x(V)&&(V=V.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&P.indexOf(this.stringify.convertAttKey)===0)U=this.attribute(P.substr(this.stringify.convertAttKey.length),V);else if(!this.options.separateArrayItems&&Array.isArray(V)&&A(V))U=this.dummy();else if(b(V)&&A(V))U=this.element(P);else if(!this.options.keepNullNodes&&V==null)U=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(V))for(B=0,H=V.length;B<H;B++)k=V[B],M={},M[P]=k,U=this.element(M);else b(V)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&P.indexOf(this.stringify.convertTextKey)===0?U=this.element(V):(U=this.element(P),U.element(V)):U=this.element(P,V)}else!this.options.keepNullNodes&&_===null?U=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&C.indexOf(this.stringify.convertTextKey)===0?U=this.text(_):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&C.indexOf(this.stringify.convertCDataKey)===0?U=this.cdata(_):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&C.indexOf(this.stringify.convertCommentKey)===0?U=this.comment(_):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&C.indexOf(this.stringify.convertRawKey)===0?U=this.raw(_):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&C.indexOf(this.stringify.convertPIKey)===0?U=this.instruction(C.substr(this.stringify.convertPIKey.length),_):U=this.node(C,O,_);if(U==null)throw new Error("Could not create any elements with: "+C+". "+this.debugInfo());return U},T.prototype.insertBefore=function(C,O,_){var M,k,R,B,P;if(C!=null?C.type:void 0)return R=C,B=O,R.setParent(this),B?(k=children.indexOf(B),P=children.splice(k),children.push(R),Array.prototype.push.apply(children,P)):children.push(R),R;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(C));return k=this.parent.children.indexOf(this),P=this.parent.children.splice(k),M=this.parent.element(C,O,_),Array.prototype.push.apply(this.parent.children,P),M},T.prototype.insertAfter=function(C,O,_){var M,k,R;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(C));return k=this.parent.children.indexOf(this),R=this.parent.children.splice(k+1),M=this.parent.element(C,O,_),Array.prototype.push.apply(this.parent.children,R),M},T.prototype.remove=function(){var C,O;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return C=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[C,C-C+1].concat(O=[])),this.parent},T.prototype.node=function(C,O,_){var M,k;return C!=null&&(C=v(C)),O||(O={}),O=v(O),b(O)||(k=[O,_],_=k[0],O=k[1]),M=new n(this,C,O),_!=null&&M.text(_),this.children.push(M),M},T.prototype.text=function(C){var O;return b(C)&&this.element(C),O=new g(this,C),this.children.push(O),this},T.prototype.cdata=function(C){var O;return O=new l(this,C),this.children.push(O),this},T.prototype.comment=function(C){var O;return O=new a(this,C),this.children.push(O),this},T.prototype.commentBefore=function(C){var O,_,M;return _=this.parent.children.indexOf(this),M=this.parent.children.splice(_),O=this.parent.comment(C),Array.prototype.push.apply(this.parent.children,M),this},T.prototype.commentAfter=function(C){var O,_,M;return _=this.parent.children.indexOf(this),M=this.parent.children.splice(_+1),O=this.parent.comment(C),Array.prototype.push.apply(this.parent.children,M),this},T.prototype.raw=function(C){var O;return O=new p(this,C),this.children.push(O),this},T.prototype.dummy=function(){var C;return C=new e(this),C},T.prototype.instruction=function(C,O){var _,M,k,R,B;if(C!=null&&(C=v(C)),O!=null&&(O=v(O)),Array.isArray(C))for(R=0,B=C.length;R<B;R++)_=C[R],this.instruction(_);else if(b(C))for(_ in C){if(!S.call(C,_))continue;M=C[_],this.instruction(_,M)}else x(O)&&(O=O.apply()),k=new h(this,C,O),this.children.push(k);return this},T.prototype.instructionBefore=function(C,O){var _,M,k;return M=this.parent.children.indexOf(this),k=this.parent.children.splice(M),_=this.parent.instruction(C,O),Array.prototype.push.apply(this.parent.children,k),this},T.prototype.instructionAfter=function(C,O){var _,M,k;return M=this.parent.children.indexOf(this),k=this.parent.children.splice(M+1),_=this.parent.instruction(C,O),Array.prototype.push.apply(this.parent.children,k),this},T.prototype.declaration=function(C,O,_){var M,k;return M=this.document(),k=new r(M,C,O,_),M.children.length===0?M.children.unshift(k):M.children[0].type===t.Declaration?M.children[0]=k:M.children.unshift(k),M.root()||M},T.prototype.dtd=function(C,O){var _,M,k,R,B,P,U,j,H,W;for(M=this.document(),k=new u(M,C,O),H=M.children,R=B=0,U=H.length;B<U;R=++B)if(_=H[R],_.type===t.DocType)return M.children[R]=k,k;for(W=M.children,R=P=0,j=W.length;P<j;R=++P)if(_=W[R],_.isRoot)return M.children.splice(R,0,k),k;return M.children.push(k),k},T.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},T.prototype.root=function(){var C;for(C=this;C;){if(C.type===t.Document)return C.rootObject;if(C.isRoot)return C;C=C.parent}},T.prototype.document=function(){var C;for(C=this;C;){if(C.type===t.Document)return C;C=C.parent}},T.prototype.end=function(C){return this.document().end(C)},T.prototype.prev=function(){var C;if(C=this.parent.children.indexOf(this),C<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[C-1]},T.prototype.next=function(){var C;if(C=this.parent.children.indexOf(this),C===-1||C===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[C+1]},T.prototype.importDocument=function(C){var O;return O=C.root().clone(),O.parent=this,O.isRoot=!1,this.children.push(O),this},T.prototype.debugInfo=function(C){var O,_;return C=C||this.name,C==null&&!((O=this.parent)!=null?O.name:void 0)?"":C==null?"parent: <"+this.parent.name+">":((_=this.parent)!=null?_.name:void 0)?"node: <"+C+">, parent: <"+this.parent.name+">":"node: <"+C+">"},T.prototype.ele=function(C,O,_){return this.element(C,O,_)},T.prototype.nod=function(C,O,_){return this.node(C,O,_)},T.prototype.txt=function(C){return this.text(C)},T.prototype.dat=function(C){return this.cdata(C)},T.prototype.com=function(C){return this.comment(C)},T.prototype.ins=function(C,O){return this.instruction(C,O)},T.prototype.doc=function(){return this.document()},T.prototype.dec=function(C,O,_){return this.declaration(C,O,_)},T.prototype.e=function(C,O,_){return this.element(C,O,_)},T.prototype.n=function(C,O,_){return this.node(C,O,_)},T.prototype.t=function(C){return this.text(C)},T.prototype.d=function(C){return this.cdata(C)},T.prototype.c=function(C){return this.comment(C)},T.prototype.r=function(C){return this.raw(C)},T.prototype.i=function(C,O){return this.instruction(C,O)},T.prototype.u=function(){return this.up()},T.prototype.importXMLBuilder=function(C){return this.importDocument(C)},T.prototype.replaceChild=function(C,O){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.removeChild=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.appendChild=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.hasChildNodes=function(){return this.children.length!==0},T.prototype.cloneNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.isSupported=function(C,O){return!0},T.prototype.hasAttributes=function(){return this.attribs.length!==0},T.prototype.compareDocumentPosition=function(C){var O,_;return O=this,O===C?0:this.document()!==C.document()?(_=s.Disconnected|s.ImplementationSpecific,Math.random()<.5?_|=s.Preceding:_|=s.Following,_):O.isAncestor(C)?s.Contains|s.Preceding:O.isDescendant(C)?s.Contains|s.Following:O.isPreceding(C)?s.Preceding:s.Following},T.prototype.isSameNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.lookupPrefix=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.isDefaultNamespace=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.lookupNamespaceURI=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.isEqualNode=function(C){var O,_,M;if(C.nodeType!==this.nodeType)return!1;if(C.children.length!==this.children.length)return!1;for(O=_=0,M=this.children.length-1;0<=M?_<=M:_>=M;O=0<=M?++_:--_)if(!this.children[O].isEqualNode(C.children[O]))return!1;return!0},T.prototype.getFeature=function(C,O){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setUserData=function(C,O,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getUserData=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.contains=function(C){return C?C===this||this.isDescendant(C):!1},T.prototype.isDescendant=function(C){var O,_,M,k,R;for(R=this.children,M=0,k=R.length;M<k;M++){if(O=R[M],C===O)return!0;if(_=O.isDescendant(C),_)return!0}return!1},T.prototype.isAncestor=function(C){return C.isDescendant(this)},T.prototype.isPreceding=function(C){var O,_;return O=this.treePosition(C),_=this.treePosition(this),O===-1||_===-1?!1:O<_},T.prototype.isFollowing=function(C){var O,_;return O=this.treePosition(C),_=this.treePosition(this),O===-1||_===-1?!1:O>_},T.prototype.treePosition=function(C){var O,_;return _=0,O=!1,this.foreachTreeNode(this.document(),function(M){if(_++,!O&&M===C)return O=!0}),O?_:-1},T.prototype.foreachTreeNode=function(C,O){var _,M,k,R,B;for(C||(C=this.document()),R=C.children,M=0,k=R.length;M<k;M++){if(_=R[M],B=O(_))return B;if(B=this.foreachTreeNode(_,O),B)return B}},T}()}).call(this)},{"./DocumentPosition":359,"./NodeType":360,"./Utility":361,"./XMLCData":364,"./XMLComment":366,"./XMLDeclaration":375,"./XMLDocType":376,"./XMLDummy":379,"./XMLElement":380,"./XMLNamedNodeMap":381,"./XMLNodeList":383,"./XMLProcessingInstruction":384,"./XMLRaw":385,"./XMLText":389}],383:[function(o,m,f){(function(){var s;m.exports=s=function(){function t(l){this.nodes=l}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.item=function(l){return this.nodes[l]||null},t}()}).call(this)},{}],384:[function(o,m,f){(function(){var s,t,l,a=function(e,n){for(var i in n)r.call(n,i)&&(e[i]=n[i]);function c(){this.constructor=e}return c.prototype=n.prototype,e.prototype=new c,e.__super__=n.prototype,e},r={}.hasOwnProperty;s=o("./NodeType"),t=o("./XMLCharacterData"),m.exports=l=function(u){a(e,u);function e(n,i,c){if(e.__super__.constructor.call(this,n),i==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=s.ProcessingInstruction,this.target=this.stringify.insTarget(i),this.name=this.target,c&&(this.value=this.stringify.insValue(c))}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(n){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(n))},e.prototype.isEqualNode=function(n){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)?!(n.target!==this.target):!1},e}(t)}).call(this)},{"./NodeType":360,"./XMLCharacterData":365}],385:[function(o,m,f){(function(){var s,t,l,a=function(e,n){for(var i in n)r.call(n,i)&&(e[i]=n[i]);function c(){this.constructor=e}return c.prototype=n.prototype,e.prototype=new c,e.__super__=n.prototype,e},r={}.hasOwnProperty;s=o("./NodeType"),t=o("./XMLNode"),m.exports=l=function(u){a(e,u);function e(n,i){if(e.__super__.constructor.call(this,n),i==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=s.Raw,this.value=this.stringify.raw(i)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(n){return this.options.writer.raw(this,this.options.writer.filterOptions(n))},e}(t)}).call(this)},{"./NodeType":360,"./XMLNode":382}],386:[function(o,m,f){(function(){var s,t,l,a,r=function(n,i){for(var c in i)u.call(i,c)&&(n[c]=i[c]);function d(){this.constructor=n}return d.prototype=i.prototype,n.prototype=new d,n.__super__=i.prototype,n},u={}.hasOwnProperty;s=o("./NodeType"),a=o("./XMLWriterBase"),t=o("./WriterState"),m.exports=l=function(e){r(n,e);function n(i,c){this.stream=i,n.__super__.constructor.call(this,c)}return n.prototype.endline=function(i,c,d){return i.isLastRootNode&&c.state===t.CloseTag?"":n.__super__.endline.call(this,i,c,d)},n.prototype.document=function(i,c){var d,h,p,g,v,A,x,b,w;for(x=i.children,h=p=0,v=x.length;p<v;h=++p)d=x[h],d.isLastRootNode=h===i.children.length-1;for(c=this.filterOptions(c),b=i.children,w=[],g=0,A=b.length;g<A;g++)d=b[g],w.push(this.writeChildNode(d,c,0));return w},n.prototype.attribute=function(i,c,d){return this.stream.write(n.__super__.attribute.call(this,i,c,d))},n.prototype.cdata=function(i,c,d){return this.stream.write(n.__super__.cdata.call(this,i,c,d))},n.prototype.comment=function(i,c,d){return this.stream.write(n.__super__.comment.call(this,i,c,d))},n.prototype.declaration=function(i,c,d){return this.stream.write(n.__super__.declaration.call(this,i,c,d))},n.prototype.docType=function(i,c,d){var h,p,g,v;if(d||(d=0),this.openNode(i,c,d),c.state=t.OpenTag,this.stream.write(this.indent(i,c,d)),this.stream.write("<!DOCTYPE "+i.root().name),i.pubID&&i.sysID?this.stream.write(' PUBLIC "'+i.pubID+'" "'+i.sysID+'"'):i.sysID&&this.stream.write(' SYSTEM "'+i.sysID+'"'),i.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(i,c,d)),c.state=t.InsideTag,v=i.children,p=0,g=v.length;p<g;p++)h=v[p],this.writeChildNode(h,c,d+1);c.state=t.CloseTag,this.stream.write("]")}return c.state=t.CloseTag,this.stream.write(c.spaceBeforeSlash+">"),this.stream.write(this.endline(i,c,d)),c.state=t.None,this.closeNode(i,c,d)},n.prototype.element=function(i,c,d){var h,p,g,v,A,x,b,w,S,T;d||(d=0),this.openNode(i,c,d),c.state=t.OpenTag,this.stream.write(this.indent(i,c,d)+"<"+i.name),S=i.attribs;for(b in S){if(!u.call(S,b))continue;h=S[b],this.attribute(h,c,d)}if(g=i.children.length,v=g===0?null:i.children[0],g===0||i.children.every(function(C){return(C.type===s.Text||C.type===s.Raw)&&C.value===""}))c.allowEmpty?(this.stream.write(">"),c.state=t.CloseTag,this.stream.write("</"+i.name+">")):(c.state=t.CloseTag,this.stream.write(c.spaceBeforeSlash+"/>"));else if(c.pretty&&g===1&&(v.type===s.Text||v.type===s.Raw)&&v.value!=null)this.stream.write(">"),c.state=t.InsideTag,c.suppressPrettyCount++,w=!0,this.writeChildNode(v,c,d+1),c.suppressPrettyCount--,w=!1,c.state=t.CloseTag,this.stream.write("</"+i.name+">");else{for(this.stream.write(">"+this.endline(i,c,d)),c.state=t.InsideTag,T=i.children,A=0,x=T.length;A<x;A++)p=T[A],this.writeChildNode(p,c,d+1);c.state=t.CloseTag,this.stream.write(this.indent(i,c,d)+"</"+i.name+">")}return this.stream.write(this.endline(i,c,d)),c.state=t.None,this.closeNode(i,c,d)},n.prototype.processingInstruction=function(i,c,d){return this.stream.write(n.__super__.processingInstruction.call(this,i,c,d))},n.prototype.raw=function(i,c,d){return this.stream.write(n.__super__.raw.call(this,i,c,d))},n.prototype.text=function(i,c,d){return this.stream.write(n.__super__.text.call(this,i,c,d))},n.prototype.dtdAttList=function(i,c,d){return this.stream.write(n.__super__.dtdAttList.call(this,i,c,d))},n.prototype.dtdElement=function(i,c,d){return this.stream.write(n.__super__.dtdElement.call(this,i,c,d))},n.prototype.dtdEntity=function(i,c,d){return this.stream.write(n.__super__.dtdEntity.call(this,i,c,d))},n.prototype.dtdNotation=function(i,c,d){return this.stream.write(n.__super__.dtdNotation.call(this,i,c,d))},n}(a)}).call(this)},{"./NodeType":360,"./WriterState":362,"./XMLWriterBase":390}],387:[function(o,m,f){(function(){var s,t,l=function(u,e){for(var n in e)a.call(e,n)&&(u[n]=e[n]);function i(){this.constructor=u}return i.prototype=e.prototype,u.prototype=new i,u.__super__=e.prototype,u},a={}.hasOwnProperty;t=o("./XMLWriterBase"),m.exports=s=function(r){l(u,r);function u(e){u.__super__.constructor.call(this,e)}return u.prototype.document=function(e,n){var i,c,d,h,p;for(n=this.filterOptions(n),h="",p=e.children,c=0,d=p.length;c<d;c++)i=p[c],h+=this.writeChildNode(i,n,0);return n.pretty&&h.slice(-n.newline.length)===n.newline&&(h=h.slice(0,-n.newline.length)),h},u}(t)}).call(this)},{"./XMLWriterBase":390}],388:[function(o,m,f){(function(){var s,t=function(r,u){return function(){return r.apply(u,arguments)}},l={}.hasOwnProperty;m.exports=s=function(){function a(r){this.assertLegalName=t(this.assertLegalName,this),this.assertLegalChar=t(this.assertLegalChar,this);var u,e,n;r||(r={}),this.options=r,this.options.version||(this.options.version="1.0"),e=r.stringify||{};for(u in e){if(!l.call(e,u))continue;n=e[u],this[u]=n}}return a.prototype.name=function(r){return this.options.noValidation?r:this.assertLegalName(""+r||"")},a.prototype.text=function(r){return this.options.noValidation?r:this.assertLegalChar(this.textEscape(""+r||""))},a.prototype.cdata=function(r){return this.options.noValidation?r:(r=""+r||"",r=r.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(r))},a.prototype.comment=function(r){if(this.options.noValidation)return r;if(r=""+r||"",r.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+r);return this.assertLegalChar(r)},a.prototype.raw=function(r){return this.options.noValidation?r:""+r||""},a.prototype.attValue=function(r){return this.options.noValidation?r:this.assertLegalChar(this.attEscape(r=""+r||""))},a.prototype.insTarget=function(r){return this.options.noValidation?r:this.assertLegalChar(""+r||"")},a.prototype.insValue=function(r){if(this.options.noValidation)return r;if(r=""+r||"",r.match(/\?>/))throw new Error("Invalid processing instruction value: "+r);return this.assertLegalChar(r)},a.prototype.xmlVersion=function(r){if(this.options.noValidation)return r;if(r=""+r||"",!r.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+r);return r},a.prototype.xmlEncoding=function(r){if(this.options.noValidation)return r;if(r=""+r||"",!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+r);return this.assertLegalChar(r)},a.prototype.xmlStandalone=function(r){return this.options.noValidation?r:r?"yes":"no"},a.prototype.dtdPubID=function(r){return this.options.noValidation?r:this.assertLegalChar(""+r||"")},a.prototype.dtdSysID=function(r){return this.options.noValidation?r:this.assertLegalChar(""+r||"")},a.prototype.dtdElementValue=function(r){return this.options.noValidation?r:this.assertLegalChar(""+r||"")},a.prototype.dtdAttType=function(r){return this.options.noValidation?r:this.assertLegalChar(""+r||"")},a.prototype.dtdAttDefault=function(r){return this.options.noValidation?r:this.assertLegalChar(""+r||"")},a.prototype.dtdEntityValue=function(r){return this.options.noValidation?r:this.assertLegalChar(""+r||"")},a.prototype.dtdNData=function(r){return this.options.noValidation?r:this.assertLegalChar(""+r||"")},a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a.prototype.assertLegalChar=function(r){var u,e;if(this.options.noValidation)return r;if(u="",this.options.version==="1.0"){if(u=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,e=r.match(u))throw new Error("Invalid character in string: "+r+" at index "+e.index)}else if(this.options.version==="1.1"&&(u=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,e=r.match(u)))throw new Error("Invalid character in string: "+r+" at index "+e.index);return r},a.prototype.assertLegalName=function(r){var u;if(this.options.noValidation)return r;if(this.assertLegalChar(r),u=/^([: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])*$/,!r.match(u))throw new Error("Invalid character in name");return r},a.prototype.textEscape=function(r){var u;return this.options.noValidation?r:(u=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(u,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},a.prototype.attEscape=function(r){var u;return this.options.noValidation?r:(u=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(u,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},a}()}).call(this)},{}],389:[function(o,m,f){(function(){var s,t,l,a=function(e,n){for(var i in n)r.call(n,i)&&(e[i]=n[i]);function c(){this.constructor=e}return c.prototype=n.prototype,e.prototype=new c,e.__super__=n.prototype,e},r={}.hasOwnProperty;s=o("./NodeType"),t=o("./XMLCharacterData"),m.exports=l=function(u){a(e,u);function e(n,i){if(e.__super__.constructor.call(this,n),i==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=s.Text,this.value=this.stringify.text(i)}return Object.defineProperty(e.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(e.prototype,"wholeText",{get:function(){var i,c,d;for(d="",c=this.previousSibling;c;)d=c.data+d,c=c.previousSibling;for(d+=this.data,i=this.nextSibling;i;)d=d+i.data,i=i.nextSibling;return d}}),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(n){return this.options.writer.text(this,this.options.writer.filterOptions(n))},e.prototype.splitText=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceWholeText=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},e}(t)}).call(this)},{"./NodeType":360,"./XMLCharacterData":365}],390:[function(o,m,f){(function(){var s,t,l,a,r,u,e,n,i,c,d,h,p,g,v,A,x,b={}.hasOwnProperty;x=o("./Utility").assign,s=o("./NodeType"),i=o("./XMLDeclaration"),c=o("./XMLDocType"),l=o("./XMLCData"),a=o("./XMLComment"),h=o("./XMLElement"),g=o("./XMLRaw"),v=o("./XMLText"),p=o("./XMLProcessingInstruction"),d=o("./XMLDummy"),r=o("./XMLDTDAttList"),u=o("./XMLDTDElement"),e=o("./XMLDTDEntity"),n=o("./XMLDTDNotation"),t=o("./WriterState"),m.exports=A=function(){function w(S){var T,C,O;S||(S={}),this.options=S,C=S.writer||{};for(T in C){if(!b.call(C,T))continue;O=C[T],this["_"+T]=this[T],this[T]=O}}return w.prototype.filterOptions=function(S){var T,C,O,_,M,k,R,B;return S||(S={}),S=x({},this.options,S),T={writer:this},T.pretty=S.pretty||!1,T.allowEmpty=S.allowEmpty||!1,T.indent=(C=S.indent)!=null?C:" ",T.newline=(O=S.newline)!=null?O:`
|
|
|
`,T.offset=(_=S.offset)!=null?_:0,T.dontPrettyTextNodes=(M=(k=S.dontPrettyTextNodes)!=null?k:S.dontprettytextnodes)!=null?M:0,T.spaceBeforeSlash=(R=(B=S.spaceBeforeSlash)!=null?B:S.spacebeforeslash)!=null?R:"",T.spaceBeforeSlash===!0&&(T.spaceBeforeSlash=" "),T.suppressPrettyCount=0,T.user={},T.state=t.None,T},w.prototype.indent=function(S,T,C){var O;return!T.pretty||T.suppressPrettyCount?"":T.pretty&&(O=(C||0)+T.offset+1,O>0)?new Array(O).join(T.indent):""},w.prototype.endline=function(S,T,C){return!T.pretty||T.suppressPrettyCount?"":T.newline},w.prototype.attribute=function(S,T,C){var O;return this.openAttribute(S,T,C),O=" "+S.name+'="'+S.value+'"',this.closeAttribute(S,T,C),O},w.prototype.cdata=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C)+"<![CDATA[",T.state=t.InsideTag,O+=S.value,T.state=t.CloseTag,O+="]]>"+this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.comment=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C)+"<!-- ",T.state=t.InsideTag,O+=S.value,T.state=t.CloseTag,O+=" -->"+this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.declaration=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C)+"<?xml",T.state=t.InsideTag,O+=' version="'+S.version+'"',S.encoding!=null&&(O+=' encoding="'+S.encoding+'"'),S.standalone!=null&&(O+=' standalone="'+S.standalone+'"'),T.state=t.CloseTag,O+=T.spaceBeforeSlash+"?>",O+=this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.docType=function(S,T,C){var O,_,M,k,R;if(C||(C=0),this.openNode(S,T,C),T.state=t.OpenTag,k=this.indent(S,T,C),k+="<!DOCTYPE "+S.root().name,S.pubID&&S.sysID?k+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(k+=' SYSTEM "'+S.sysID+'"'),S.children.length>0){for(k+=" [",k+=this.endline(S,T,C),T.state=t.InsideTag,R=S.children,_=0,M=R.length;_<M;_++)O=R[_],k+=this.writeChildNode(O,T,C+1);T.state=t.CloseTag,k+="]"}return T.state=t.CloseTag,k+=T.spaceBeforeSlash+">",k+=this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),k},w.prototype.element=function(S,T,C){var O,_,M,k,R,B,P,U,j,H,W,G,V,Z;C||(C=0),H=!1,W="",this.openNode(S,T,C),T.state=t.OpenTag,W+=this.indent(S,T,C)+"<"+S.name,G=S.attribs;for(j in G){if(!b.call(G,j))continue;O=G[j],W+=this.attribute(O,T,C)}if(M=S.children.length,k=M===0?null:S.children[0],M===0||S.children.every(function(Y){return(Y.type===s.Text||Y.type===s.Raw)&&Y.value===""}))T.allowEmpty?(W+=">",T.state=t.CloseTag,W+="</"+S.name+">"+this.endline(S,T,C)):(T.state=t.CloseTag,W+=T.spaceBeforeSlash+"/>"+this.endline(S,T,C));else if(T.pretty&&M===1&&(k.type===s.Text||k.type===s.Raw)&&k.value!=null)W+=">",T.state=t.InsideTag,T.suppressPrettyCount++,H=!0,W+=this.writeChildNode(k,T,C+1),T.suppressPrettyCount--,H=!1,T.state=t.CloseTag,W+="</"+S.name+">"+this.endline(S,T,C);else{if(T.dontPrettyTextNodes){for(V=S.children,R=0,P=V.length;R<P;R++)if(_=V[R],(_.type===s.Text||_.type===s.Raw)&&_.value!=null){T.suppressPrettyCount++,H=!0;break}}for(W+=">"+this.endline(S,T,C),T.state=t.InsideTag,Z=S.children,B=0,U=Z.length;B<U;B++)_=Z[B],W+=this.writeChildNode(_,T,C+1);T.state=t.CloseTag,W+=this.indent(S,T,C)+"</"+S.name+">",H&&T.suppressPrettyCount--,W+=this.endline(S,T,C),T.state=t.None}return this.closeNode(S,T,C),W},w.prototype.writeChildNode=function(S,T,C){switch(S.type){case s.CData:return this.cdata(S,T,C);case s.Comment:return this.comment(S,T,C);case s.Element:return this.element(S,T,C);case s.Raw:return this.raw(S,T,C);case s.Text:return this.text(S,T,C);case s.ProcessingInstruction:return this.processingInstruction(S,T,C);case s.Dummy:return"";case s.Declaration:return this.declaration(S,T,C);case s.DocType:return this.docType(S,T,C);case s.AttributeDeclaration:return this.dtdAttList(S,T,C);case s.ElementDeclaration:return this.dtdElement(S,T,C);case s.EntityDeclaration:return this.dtdEntity(S,T,C);case s.NotationDeclaration:return this.dtdNotation(S,T,C);default:throw new Error("Unknown XML node type: "+S.constructor.name)}},w.prototype.processingInstruction=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C)+"<?",T.state=t.InsideTag,O+=S.target,S.value&&(O+=" "+S.value),T.state=t.CloseTag,O+=T.spaceBeforeSlash+"?>",O+=this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.raw=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C),T.state=t.InsideTag,O+=S.value,T.state=t.CloseTag,O+=this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.text=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C),T.state=t.InsideTag,O+=S.value,T.state=t.CloseTag,O+=this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.dtdAttList=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C)+"<!ATTLIST",T.state=t.InsideTag,O+=" "+S.elementName+" "+S.attributeName+" "+S.attributeType,S.defaultValueType!=="#DEFAULT"&&(O+=" "+S.defaultValueType),S.defaultValue&&(O+=' "'+S.defaultValue+'"'),T.state=t.CloseTag,O+=T.spaceBeforeSlash+">"+this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.dtdElement=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C)+"<!ELEMENT",T.state=t.InsideTag,O+=" "+S.name+" "+S.value,T.state=t.CloseTag,O+=T.spaceBeforeSlash+">"+this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.dtdEntity=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C)+"<!ENTITY",T.state=t.InsideTag,S.pe&&(O+=" %"),O+=" "+S.name,S.value?O+=' "'+S.value+'"':(S.pubID&&S.sysID?O+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(O+=' SYSTEM "'+S.sysID+'"'),S.nData&&(O+=" NDATA "+S.nData)),T.state=t.CloseTag,O+=T.spaceBeforeSlash+">"+this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.dtdNotation=function(S,T,C){var O;return this.openNode(S,T,C),T.state=t.OpenTag,O=this.indent(S,T,C)+"<!NOTATION",T.state=t.InsideTag,O+=" "+S.name,S.pubID&&S.sysID?O+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.pubID?O+=' PUBLIC "'+S.pubID+'"':S.sysID&&(O+=' SYSTEM "'+S.sysID+'"'),T.state=t.CloseTag,O+=T.spaceBeforeSlash+">"+this.endline(S,T,C),T.state=t.None,this.closeNode(S,T,C),O},w.prototype.openNode=function(S,T,C){},w.prototype.closeNode=function(S,T,C){},w.prototype.openAttribute=function(S,T,C){},w.prototype.closeAttribute=function(S,T,C){},w}()}).call(this)},{"./NodeType":360,"./Utility":361,"./WriterState":362,"./XMLCData":364,"./XMLComment":366,"./XMLDTDAttList":371,"./XMLDTDElement":372,"./XMLDTDEntity":373,"./XMLDTDNotation":374,"./XMLDeclaration":375,"./XMLDocType":376,"./XMLDummy":379,"./XMLElement":380,"./XMLProcessingInstruction":384,"./XMLRaw":385,"./XMLText":389}],391:[function(o,m,f){(function(){var s,t,l,a,r,u,e,n,i,c;c=o("./Utility"),n=c.assign,i=c.isFunction,l=o("./XMLDOMImplementation"),a=o("./XMLDocument"),r=o("./XMLDocumentCB"),e=o("./XMLStringWriter"),u=o("./XMLStreamWriter"),s=o("./NodeType"),t=o("./WriterState"),m.exports.create=function(d,h,p,g){var v,A;if(d==null)throw new Error("Root element needs a name.");return g=n({},h,p,g),v=new a(g),A=v.element(d),g.headless||(v.declaration(g),(g.pubID!=null||g.sysID!=null)&&v.dtd(g)),A},m.exports.begin=function(d,h,p){var g;return i(d)&&(g=[d,h],h=g[0],p=g[1],d={}),h?new r(d,h,p):new a(d)},m.exports.stringWriter=function(d){return new e(d)},m.exports.streamWriter=function(d,h){return new u(d,h)},m.exports.implementation=new l,m.exports.nodeType=s,m.exports.writerState=t}).call(this)},{"./NodeType":360,"./Utility":361,"./WriterState":362,"./XMLDOMImplementation":369,"./XMLDocument":377,"./XMLDocumentCB":378,"./XMLStreamWriter":386,"./XMLStringWriter":387}],392:[function(o,m,f){m.exports=t;var s=Object.prototype.hasOwnProperty;function t(){for(var l={},a=0;a<arguments.length;a++){var r=arguments[a];for(var u in r)s.call(r,u)&&(l[u]=r[u])}return l}},{}],393:[function(o,m,f){"use strict";o("core-js/modules/es.array.fill.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.regexp.to-string.js"),o("core-js/modules/es.array.join.js"),o("core-js/modules/es.array.slice.js");var s=o("buffer").Buffer,t=o("./sha"),l=o("./md5"),a={sha1:t,md5:l},r=64,u=s.alloc(r);u.fill(0);function e(c,d,h){s.isBuffer(d)||(d=s.from(d)),s.isBuffer(h)||(h=s.from(h)),d.length>r?d=c(d):d.length<r&&(d=s.concat([d,u],r));for(var p=s.alloc(r),g=s.alloc(r),v=0;v<r;v++)p[v]=d[v]^54,g[v]=d[v]^92;var A=c(s.concat([p,h]));return c(s.concat([g,A]))}function n(c,d){c=c||"sha1";var h=a[c],p=[],g=0;return h||i("algorithm:",c,"is not yet supported"),{update:function(A){return s.isBuffer(A)||(A=s.from(A)),p.push(A),g+=A.length,this},digest:function(A){var x=s.concat(p),b=d?e(h,d,x):h(x);return p=null,A?b.toString(A):b}}}function i(){var c=[].slice.call(arguments).join(" ");throw new Error([c,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}f.createHash=function(c){return n(c)},f.createHmac=function(c,d){return n(c,d)},f.createCredentials=function(){i("sorry,createCredentials is not implemented yet")},f.createCipher=function(){i("sorry,createCipher is not implemented yet")},f.createCipheriv=function(){i("sorry,createCipheriv is not implemented yet")},f.createDecipher=function(){i("sorry,createDecipher is not implemented yet")},f.createDecipheriv=function(){i("sorry,createDecipheriv is not implemented yet")},f.createSign=function(){i("sorry,createSign is not implemented yet")},f.createVerify=function(){i("sorry,createVerify is not implemented yet")},f.createDiffieHellman=function(){i("sorry,createDiffieHellman is not implemented yet")},f.pbkdf2=function(){i("sorry,pbkdf2 is not implemented yet")}},{"./md5":395,"./sha":396,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.fill.js":242,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262}],394:[function(o,m,f){"use strict";o("core-js/modules/es.array.fill.js"),o("core-js/modules/es.array.concat.js");var s=o("buffer").Buffer,t=4,l=s.alloc(t);l.fill(0);var a=8;function r(n,i){if(n.length%t!==0){var c=n.length+(t-n.length%t);n=s.concat([n,l],c)}for(var d=[],h=i?n.readInt32BE:n.readInt32LE,p=0;p<n.length;p+=t)d.push(h.call(n,p));return d}function u(n,i,c){for(var d=s.alloc(i),h=c?d.writeInt32BE:d.writeInt32LE,p=0;p<n.length;p++)h.call(d,n[p],p*4,!0);return d}function e(n,i,c,d){s.isBuffer(n)||(n=s.from(n));var h=i(r(n,d),n.length*a);return u(h,c,d)}m.exports={hash:e}},{buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.fill.js":242}],395:[function(o,m,f){"use strict";var s=o("./helpers");function t(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function l(d,h){d[h>>5]|=128<<h%32,d[(h+64>>>9<<4)+14]=h;for(var p=1732584193,g=-271733879,v=-1732584194,A=271733878,x=0;x<d.length;x+=16){var b=p,w=g,S=v,T=A;p=r(p,g,v,A,d[x+0],7,-680876936),A=r(A,p,g,v,d[x+1],12,-389564586),v=r(v,A,p,g,d[x+2],17,606105819),g=r(g,v,A,p,d[x+3],22,-1044525330),p=r(p,g,v,A,d[x+4],7,-176418897),A=r(A,p,g,v,d[x+5],12,1200080426),v=r(v,A,p,g,d[x+6],17,-1473231341),g=r(g,v,A,p,d[x+7],22,-45705983),p=r(p,g,v,A,d[x+8],7,1770035416),A=r(A,p,g,v,d[x+9],12,-1958414417),v=r(v,A,p,g,d[x+10],17,-42063),g=r(g,v,A,p,d[x+11],22,-1990404162),p=r(p,g,v,A,d[x+12],7,1804603682),A=r(A,p,g,v,d[x+13],12,-40341101),v=r(v,A,p,g,d[x+14],17,-1502002290),g=r(g,v,A,p,d[x+15],22,1236535329),p=u(p,g,v,A,d[x+1],5,-165796510),A=u(A,p,g,v,d[x+6],9,-1069501632),v=u(v,A,p,g,d[x+11],14,643717713),g=u(g,v,A,p,d[x+0],20,-373897302),p=u(p,g,v,A,d[x+5],5,-701558691),A=u(A,p,g,v,d[x+10],9,38016083),v=u(v,A,p,g,d[x+15],14,-660478335),g=u(g,v,A,p,d[x+4],20,-405537848),p=u(p,g,v,A,d[x+9],5,568446438),A=u(A,p,g,v,d[x+14],9,-1019803690),v=u(v,A,p,g,d[x+3],14,-187363961),g=u(g,v,A,p,d[x+8],20,1163531501),p=u(p,g,v,A,d[x+13],5,-1444681467),A=u(A,p,g,v,d[x+2],9,-51403784),v=u(v,A,p,g,d[x+7],14,1735328473),g=u(g,v,A,p,d[x+12],20,-1926607734),p=e(p,g,v,A,d[x+5],4,-378558),A=e(A,p,g,v,d[x+8],11,-2022574463),v=e(v,A,p,g,d[x+11],16,1839030562),g=e(g,v,A,p,d[x+14],23,-35309556),p=e(p,g,v,A,d[x+1],4,-1530992060),A=e(A,p,g,v,d[x+4],11,1272893353),v=e(v,A,p,g,d[x+7],16,-155497632),g=e(g,v,A,p,d[x+10],23,-1094730640),p=e(p,g,v,A,d[x+13],4,681279174),A=e(A,p,g,v,d[x+0],11,-358537222),v=e(v,A,p,g,d[x+3],16,-722521979),g=e(g,v,A,p,d[x+6],23,76029189),p=e(p,g,v,A,d[x+9],4,-640364487),A=e(A,p,g,v,d[x+12],11,-421815835),v=e(v,A,p,g,d[x+15],16,530742520),g=e(g,v,A,p,d[x+2],23,-995338651),p=n(p,g,v,A,d[x+0],6,-198630844),A=n(A,p,g,v,d[x+7],10,1126891415),v=n(v,A,p,g,d[x+14],15,-1416354905),g=n(g,v,A,p,d[x+5],21,-57434055),p=n(p,g,v,A,d[x+12],6,1700485571),A=n(A,p,g,v,d[x+3],10,-1894986606),v=n(v,A,p,g,d[x+10],15,-1051523),g=n(g,v,A,p,d[x+1],21,-2054922799),p=n(p,g,v,A,d[x+8],6,1873313359),A=n(A,p,g,v,d[x+15],10,-30611744),v=n(v,A,p,g,d[x+6],15,-1560198380),g=n(g,v,A,p,d[x+13],21,1309151649),p=n(p,g,v,A,d[x+4],6,-145523070),A=n(A,p,g,v,d[x+11],10,-1120210379),v=n(v,A,p,g,d[x+2],15,718787259),g=n(g,v,A,p,d[x+9],21,-343485551),p=i(p,b),g=i(g,w),v=i(v,S),A=i(A,T)}return Array(p,g,v,A)}function a(d,h,p,g,v,A){return i(c(i(i(h,d),i(g,A)),v),p)}function r(d,h,p,g,v,A,x){return a(h&p|~h&g,d,h,v,A,x)}function u(d,h,p,g,v,A,x){return a(h&g|p&~g,d,h,v,A,x)}function e(d,h,p,g,v,A,x){return a(h^p^g,d,h,v,A,x)}function n(d,h,p,g,v,A,x){return a(p^(h|~g),d,h,v,A,x)}function i(d,h){var p=(d&65535)+(h&65535),g=(d>>16)+(h>>16)+(p>>16);return g<<16|p&65535}function c(d,h){return d<<h|d>>>32-h}m.exports=function(h){return s.hash(h,l,16)}},{"./helpers":394}],396:[function(o,m,f){"use strict";var s=o("./helpers");function t(e,n){e[n>>5]|=128<<24-n%32,e[(n+64>>9<<4)+15]=n;for(var i=Array(80),c=1732584193,d=-271733879,h=-1732584194,p=271733878,g=-1009589776,v=0;v<e.length;v+=16){for(var A=c,x=d,b=h,w=p,S=g,T=0;T<80;T++){T<16?i[T]=e[v+T]:i[T]=u(i[T-3]^i[T-8]^i[T-14]^i[T-16],1);var C=r(r(u(c,5),l(T,d,h,p)),r(r(g,i[T]),a(T)));g=p,p=h,h=u(d,30),d=c,c=C}c=r(c,A),d=r(d,x),h=r(h,b),p=r(p,w),g=r(g,S)}return Array(c,d,h,p,g)}function l(e,n,i,c){return e<20?n&i|~n&c:e<40?n^i^c:e<60?n&i|n&c|i&c:n^i^c}function a(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function r(e,n){var i=(e&65535)+(n&65535),c=(e>>16)+(n>>16)+(i>>16);return c<<16|i&65535}function u(e,n){return e<<n|e>>>32-n}m.exports=function(n){return s.hash(n,t,20,!0)}},{"./helpers":394}],397:[function(o,m,f){"use strict";m.exports=function(){return function(){}}},{}],398:[function(o,m,f){(function(s){(function(){"use strict";var t=o("@babel/runtime/helpers/interopRequireDefault"),l=t(o("@babel/runtime/helpers/typeof")),a=o("stream"),r=a.Stream,u=o("../lib/common/utils/isArray"),e=u.isArray;m.exports.string=function(c){return typeof c=="string"},m.exports.array=e,m.exports.buffer=s.isBuffer;function n(i){return i instanceof r}m.exports.writableStream=function(c){return n(c)&&typeof c._write=="function"&&(0,l.default)(c._writableState)==="object"}}).call(this)}).call(this,{isBuffer:o("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":61,"../node_modules/is-buffer/index.js":312,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,stream:345}],399:[function(o,m,f){"use strict";var s=o("immediate"),t=m.exports={};t.nextTick=s,t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={};function l(){}t.on=l,t.addListener=l,t.once=l,t.off=l,t.removeListener=l,t.removeAllListeners=l,t.emit=l,t.prependListener=l,t.prependOnceListener=l,t.listeners=function(a){return[]},t.binding=function(a){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(a){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{immediate:305}],400:[function(o,m,f){(function(s){(function(){"use strict";o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.search.js");var t=o("./lib/request"),l=o("./lib/response"),a=o("xtend"),r=o("builtin-status-codes"),u=o("url"),e=f;e.request=function(n,i){typeof n=="string"?n=u.parse(n):n=a(n);var c=s.location.protocol.search(/^https?:$/)===-1?"http:":"",d=n.protocol||c,h=n.hostname||n.host,p=n.port,g=n.path||"/";h&&h.indexOf(":")!==-1&&(h="["+h+"]"),n.url=(h?d+"//"+h:"")+(p?":"+p:"")+g,n.method=(n.method||"GET").toUpperCase(),n.headers=n.headers||{};var v=new t(n);return i&&v.on("response",i),v},e.get=function(i,c){var d=e.request(i,c);return d.end(),d},e.ClientRequest=t,e.IncomingMessage=l.IncomingMessage,e.Agent=function(){},e.Agent.defaultMaxSockets=4,e.globalAgent=new e.Agent,e.STATUS_CODES=r,e.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)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":402,"./lib/response":403,"builtin-status-codes":87,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.search.js":267,url:404,xtend:392}],401:[function(o,m,f){(function(s){(function(){"use strict";o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.promise.js"),o("core-js/modules/es.array-buffer.constructor.js"),o("core-js/modules/es.array-buffer.slice.js"),o("core-js/modules/es.array.slice.js"),f.fetch=e(s.fetch)&&e(s.ReadableStream),f.writableStream=e(s.WritableStream),f.abortController=e(s.AbortController),f.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),f.blobConstructor=!0}catch(n){}var t;function l(){if(t!==void 0)return t;if(s.XMLHttpRequest){t=new s.XMLHttpRequest;try{t.open("GET",s.XDomainRequest?"/":"https://example.com")}catch(n){t=null}}else t=null;return t}function a(n){var i=l();if(!i)return!1;try{return i.responseType=n,i.responseType===n}catch(c){}return!1}var r=typeof s.ArrayBuffer!="undefined",u=r&&e(s.ArrayBuffer.prototype.slice);f.arraybuffer=f.fetch||r&&a("arraybuffer"),f.msstream=!f.fetch&&u&&a("ms-stream"),f.mozchunkedarraybuffer=!f.fetch&&r&&a("moz-chunked-arraybuffer"),f.overrideMimeType=f.fetch||(l()?e(l().overrideMimeType):!1),f.vbArray=e(s.VBArray);function e(n){return typeof n=="function"}t=null}).call(this)}).call(this,typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":239,"core-js/modules/es.array-buffer.slice.js":240,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259}],402:[function(o,m,f){(function(s,t,l){(function(){"use strict";o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.regexp.to-string.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.array.map.js"),o("core-js/modules/es.function.name.js"),o("core-js/modules/es.promise.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.split.js");var a=o("./capability"),r=o("inherits"),u=o("./response"),e=o("readable-stream"),n=o("to-arraybuffer"),i=u.IncomingMessage,c=u.readyStates;function d(v,A){return a.fetch&&A?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&v?"arraybuffer":a.vbArray&&v?"text:vbarray":"text"}var h=m.exports=function(v){var A=this;e.Writable.call(A),A._opts=v,A._body=[],A._headers={},v.auth&&A.setHeader("Authorization","Basic "+new l(v.auth).toString("base64")),Object.keys(v.headers).forEach(function(w){A.setHeader(w,v.headers[w])});var x,b=!0;if(v.mode==="disable-fetch"||"requestTimeout"in v&&!a.abortController)b=!1,x=!0;else if(v.mode==="prefer-streaming")x=!1;else if(v.mode==="allow-wrong-content-type")x=!a.overrideMimeType;else if(!v.mode||v.mode==="default"||v.mode==="prefer-fast")x=!0;else throw new Error("Invalid value for opts.mode");A._mode=d(x,b),A._fetchTimer=null,A.on("finish",function(){A._onFinish()})};r(h,e.Writable),h.prototype.setHeader=function(v,A){var x=this,b=v.toLowerCase();if(g.indexOf(b)!==-1)return;x._headers[b]={name:v,value:A}},h.prototype.getHeader=function(v){var A=this._headers[v.toLowerCase()];return A?A.value:null},h.prototype.removeHeader=function(v){var A=this;delete A._headers[v.toLowerCase()]},h.prototype._onFinish=function(){var v=this;if(v._destroyed)return;var A=v._opts,x=v._headers,b=null;A.method!=="GET"&&A.method!=="HEAD"&&(a.arraybuffer?b=n(l.concat(v._body)):a.blobConstructor?b=new t.Blob(v._body.map(function(_){return n(_)}),{type:(x["content-type"]||{}).value||""}):b=l.concat(v._body).toString());var w=[];if(Object.keys(x).forEach(function(_){var M=x[_].name,k=x[_].value;Array.isArray(k)?k.forEach(function(R){w.push([M,R])}):w.push([M,k])}),v._mode==="fetch"){var S=null,T=null;if(a.abortController){var C=new AbortController;S=C.signal,v._fetchAbortController=C,"requestTimeout"in A&&A.requestTimeout!==0&&(v._fetchTimer=t.setTimeout(function(){v.emit("requestTimeout"),v._fetchAbortController&&v._fetchAbortController.abort()},A.requestTimeout))}t.fetch(v._opts.url,{method:v._opts.method,headers:w,body:b||void 0,mode:"cors",credentials:A.withCredentials?"include":"same-origin",signal:S}).then(function(_){v._fetchResponse=_,v._connect()},function(_){t.clearTimeout(v._fetchTimer),v._destroyed||v.emit("error",_)})}else{var O=v._xhr=new t.XMLHttpRequest;try{O.open(v._opts.method,v._opts.url,!0)}catch(_){s.nextTick(function(){v.emit("error",_)});return}"responseType"in O&&(O.responseType=v._mode.split(":")[0]),"withCredentials"in O&&(O.withCredentials=!!A.withCredentials),v._mode==="text"&&"overrideMimeType"in O&&O.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in A&&(O.timeout=A.requestTimeout,O.ontimeout=function(){v.emit("requestTimeout")}),w.forEach(function(_){O.setRequestHeader(_[0],_[1])}),v._response=null,O.onreadystatechange=function(){switch(O.readyState){case c.LOADING:case c.DONE:v._onXHRProgress();break}},v._mode==="moz-chunked-arraybuffer"&&(O.onprogress=function(){v._onXHRProgress()}),O.onerror=function(){if(v._destroyed)return;v.emit("error",new Error("XHR error"))};try{O.send(b)}catch(_){s.nextTick(function(){v.emit("error",_)});return}}};function p(v){try{var A=v.status;return A!==null&&A!==0}catch(x){return!1}}h.prototype._onXHRProgress=function(){var v=this;if(!p(v._xhr)||v._destroyed)return;v._response||v._connect(),v._response._onXHRProgress()},h.prototype._connect=function(){var v=this;if(v._destroyed)return;v._response=new i(v._xhr,v._fetchResponse,v._mode,v._fetchTimer),v._response.on("error",function(A){v.emit("error",A)}),v.emit("response",v._response)},h.prototype._write=function(v,A,x){var b=this;b._body.push(v),x()},h.prototype.abort=h.prototype.destroy=function(){var v=this;v._destroyed=!0,t.clearTimeout(v._fetchTimer),v._response&&(v._response._destroyed=!0),v._xhr?v._xhr.abort():v._fetchAbortController&&v._fetchAbortController.abort()},h.prototype.end=function(v,A,x){var b=this;typeof v=="function"&&(x=v,v=void 0),e.Writable.prototype.end.call(b,v,A,x)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var g=["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)}).call(this,o("_process"),typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{},o("buffer").Buffer)},{"./capability":401,"./response":403,_process:399,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.map.js":249,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.split.js":268,"core-js/modules/web.dom-collections.for-each.js":296,inherits:311,"readable-stream":339,"to-arraybuffer":348}],403:[function(o,m,f){(function(s,t,l){(function(){"use strict";o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.promise.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.split.js"),o("core-js/modules/es.string.match.js"),o("core-js/modules/es.array.iterator.js"),o("core-js/modules/es.array-buffer.slice.js"),o("core-js/modules/es.typed-array.uint8-array.js"),o("core-js/modules/es.typed-array.copy-within.js"),o("core-js/modules/es.typed-array.every.js"),o("core-js/modules/es.typed-array.fill.js"),o("core-js/modules/es.typed-array.filter.js"),o("core-js/modules/es.typed-array.find.js"),o("core-js/modules/es.typed-array.find-index.js"),o("core-js/modules/es.typed-array.for-each.js"),o("core-js/modules/es.typed-array.includes.js"),o("core-js/modules/es.typed-array.index-of.js"),o("core-js/modules/es.typed-array.iterator.js"),o("core-js/modules/es.typed-array.join.js"),o("core-js/modules/es.typed-array.last-index-of.js"),o("core-js/modules/es.typed-array.map.js"),o("core-js/modules/es.typed-array.reduce.js"),o("core-js/modules/es.typed-array.reduce-right.js"),o("core-js/modules/es.typed-array.reverse.js"),o("core-js/modules/es.typed-array.set.js"),o("core-js/modules/es.typed-array.slice.js"),o("core-js/modules/es.typed-array.some.js"),o("core-js/modules/es.typed-array.sort.js"),o("core-js/modules/es.typed-array.subarray.js"),o("core-js/modules/es.typed-array.to-locale-string.js"),o("core-js/modules/es.typed-array.to-string.js"),o("core-js/modules/es.array.slice.js");var a=o("./capability"),r=o("inherits"),u=o("readable-stream"),e=f.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=f.IncomingMessage=function(i,c,d,h){var p=this;if(u.Readable.call(p),p._mode=d,p.headers={},p.rawHeaders=[],p.trailers={},p.rawTrailers=[],p.on("end",function(){s.nextTick(function(){p.emit("close")})}),d==="fetch"){var g=function S(){A.read().then(function(T){if(p._destroyed)return;if(T.done){t.clearTimeout(h),p.push(null);return}p.push(new l(T.value)),S()}).catch(function(T){t.clearTimeout(h),p._destroyed||p.emit("error",T)})};if(p._fetchResponse=c,p.url=c.url,p.statusCode=c.status,p.statusMessage=c.statusText,c.headers.forEach(function(S,T){p.headers[T.toLowerCase()]=S,p.rawHeaders.push(T,S)}),a.writableStream){var v=new WritableStream({write:function(T){return new Promise(function(C,O){p._destroyed?O():p.push(new l(T))?C():p._resumeFetch=C})},close:function(){t.clearTimeout(h),p._destroyed||p.push(null)},abort:function(T){p._destroyed||p.emit("error",T)}});try{c.body.pipeTo(v).catch(function(S){t.clearTimeout(h),p._destroyed||p.emit("error",S)});return}catch(S){}}var A=c.body.getReader();g()}else{p._xhr=i,p._pos=0,p.url=i.responseURL,p.statusCode=i.status,p.statusMessage=i.statusText;var x=i.getAllResponseHeaders().split(/\r?\n/);if(x.forEach(function(S){var T=S.match(/^([^:]+):\s*(.*)/);if(T){var C=T[1].toLowerCase();C==="set-cookie"?(p.headers[C]===void 0&&(p.headers[C]=[]),p.headers[C].push(T[2])):p.headers[C]!==void 0?p.headers[C]+=", "+T[2]:p.headers[C]=T[2],p.rawHeaders.push(T[1],T[2])}}),p._charset="x-user-defined",!a.overrideMimeType){var b=p.rawHeaders["mime-type"];if(b){var w=b.match(/;\s*charset=([^;])(;|$)/);w&&(p._charset=w[1].toLowerCase())}p._charset||(p._charset="utf-8")}}};r(n,u.Readable),n.prototype._read=function(){var i=this,c=i._resumeFetch;c&&(i._resumeFetch=null,c())},n.prototype._onXHRProgress=function(){var i=this,c=i._xhr,d=null;switch(i._mode){case"text:vbarray":if(c.readyState!==e.DONE)break;try{d=new t.VBArray(c.responseBody).toArray()}catch(A){}if(d!==null){i.push(new l(d));break}case"text":try{d=c.responseText}catch(A){i._mode="text:vbarray";break}if(d.length>i._pos){var h=d.substr(i._pos);if(i._charset==="x-user-defined"){for(var p=new l(h.length),g=0;g<h.length;g++)p[g]=h.charCodeAt(g)&255;i.push(p)}else i.push(h,i._charset);i._pos=d.length}break;case"arraybuffer":if(c.readyState!==e.DONE||!c.response)break;d=c.response,i.push(new l(new Uint8Array(d)));break;case"moz-chunked-arraybuffer":if(d=c.response,c.readyState!==e.LOADING||!d)break;i.push(new l(new Uint8Array(d)));break;case"ms-stream":if(d=c.response,c.readyState!==e.LOADING)break;var v=new t.MSStreamReader;v.onprogress=function(){v.result.byteLength>i._pos&&(i.push(new l(new Uint8Array(v.result.slice(i._pos)))),i._pos=v.result.byteLength)},v.onload=function(){i.push(null)},v.readAsArrayBuffer(d);break}i._xhr.readyState===e.DONE&&i._mode!=="ms-stream"&&i.push(null)}}).call(this)}).call(this,o("_process"),typeof D!="undefined"?D:typeof self!="undefined"?self:typeof window!="undefined"?window:{},o("buffer").Buffer)},{"./capability":401,_process:399,buffer:85,"core-js/modules/es.array-buffer.slice.js":240,"core-js/modules/es.array.iterator.js":247,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.match.js":265,"core-js/modules/es.string.split.js":268,"core-js/modules/es.typed-array.copy-within.js":272,"core-js/modules/es.typed-array.every.js":273,"core-js/modules/es.typed-array.fill.js":274,"core-js/modules/es.typed-array.filter.js":275,"core-js/modules/es.typed-array.find-index.js":276,"core-js/modules/es.typed-array.find.js":277,"core-js/modules/es.typed-array.for-each.js":278,"core-js/modules/es.typed-array.includes.js":279,"core-js/modules/es.typed-array.index-of.js":280,"core-js/modules/es.typed-array.iterator.js":281,"core-js/modules/es.typed-array.join.js":282,"core-js/modules/es.typed-array.last-index-of.js":283,"core-js/modules/es.typed-array.map.js":284,"core-js/modules/es.typed-array.reduce-right.js":285,"core-js/modules/es.typed-array.reduce.js":286,"core-js/modules/es.typed-array.reverse.js":287,"core-js/modules/es.typed-array.set.js":288,"core-js/modules/es.typed-array.slice.js":289,"core-js/modules/es.typed-array.some.js":290,"core-js/modules/es.typed-array.sort.js":291,"core-js/modules/es.typed-array.subarray.js":292,"core-js/modules/es.typed-array.to-locale-string.js":293,"core-js/modules/es.typed-array.to-string.js":294,"core-js/modules/es.typed-array.uint8-array.js":295,"core-js/modules/web.dom-collections.for-each.js":296,inherits:311,"readable-stream":339}],404:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/helpers/typeof"));o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.search.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.string.split.js"),o("core-js/modules/es.string.replace.js"),o("core-js/modules/es.array.join.js"),o("core-js/modules/es.string.trim.js"),o("core-js/modules/es.string.match.js"),o("core-js/modules/es.array.slice.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.array.splice.js");var l=o("punycode"),a=o("./util");f.parse=T,f.resolve=O,f.resolveObject=_,f.format=C,f.Url=r;function r(){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 u=/^([a-z0-9.+-]+:)/i,e=/:[0-9]*$/,n=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(i),d=["'"].concat(c),h=["%","/","?",";","#"].concat(d),p=["/","?","#"],g=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,A=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=o("querystring");function T(M,k,R){if(M&&a.isObject(M)&&M instanceof r)return M;var B=new r;return B.parse(M,k,R),B}r.prototype.parse=function(M,k,R){if(!a.isString(M))throw new TypeError("Parameter 'url' must be a string, not "+(0,t.default)(M));var B=M.indexOf("?"),P=B!==-1&&B<M.indexOf("#")?"?":"#",U=M.split(P),j=/\\/g;U[0]=U[0].replace(j,"/"),M=U.join(P);var H=M;if(H=H.trim(),!R&&M.split("#").length===1){var W=n.exec(H);if(W)return this.path=H,this.href=H,this.pathname=W[1],W[2]?(this.search=W[2],k?this.query=S.parse(this.search.substr(1)):this.query=this.search.substr(1)):k&&(this.search="",this.query={}),this}var G=u.exec(H);if(G){G=G[0];var V=G.toLowerCase();this.protocol=V,H=H.substr(G.length)}if(R||G||H.match(/^\/\/[^@\/]+@[^@\/]+/)){var Z=H.substr(0,2)==="//";Z&&!(G&&b[G])&&(H=H.substr(2),this.slashes=!0)}if(!b[G]&&(Z||G&&!w[G])){for(var Y=-1,Q=0;Q<p.length;Q++){var oe=H.indexOf(p[Q]);oe!==-1&&(Y===-1||oe<Y)&&(Y=oe)}var ue,Le;Y===-1?Le=H.lastIndexOf("@"):Le=H.lastIndexOf("@",Y),Le!==-1&&(ue=H.slice(0,Le),H=H.slice(Le+1),this.auth=decodeURIComponent(ue)),Y=-1;for(var Q=0;Q<h.length;Q++){var oe=H.indexOf(h[Q]);oe!==-1&&(Y===-1||oe<Y)&&(Y=oe)}Y===-1&&(Y=H.length),this.host=H.slice(0,Y),H=H.slice(Y),this.parseHost(),this.hostname=this.hostname||"";var me=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!me)for(var Ie=this.hostname.split("."),Q=0,X=Ie.length;Q<X;Q++){var q=Ie[Q];if(!q)continue;if(!q.match(v)){for(var We="",$=0,J=q.length;$<J;$++)q.charCodeAt($)>127?We+="x":We+=q[$];if(!We.match(v)){var le=Ie.slice(0,Q),de=Ie.slice(Q+1),Ne=q.match(A);Ne&&(le.push(Ne[1]),de.unshift(Ne[2])),de.length&&(H="/"+de.join(".")+H),this.hostname=le.join(".");break}}}this.hostname.length>g?this.hostname="":this.hostname=this.hostname.toLowerCase(),me||(this.hostname=l.toASCII(this.hostname));var we=this.port?":"+this.port:"",De=this.hostname||"";this.host=De+we,this.href+=this.host,me&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),H[0]!=="/"&&(H="/"+H))}if(!x[V])for(var Q=0,X=d.length;Q<X;Q++){var Ee=d[Q];if(H.indexOf(Ee)===-1)continue;var ce=encodeURIComponent(Ee);ce===Ee&&(ce=escape(Ee)),H=H.split(Ee).join(ce)}var ne=H.indexOf("#");ne!==-1&&(this.hash=H.substr(ne),H=H.slice(0,ne));var ee=H.indexOf("?");if(ee!==-1?(this.search=H.substr(ee),this.query=H.substr(ee+1),k&&(this.query=S.parse(this.query)),H=H.slice(0,ee)):k&&(this.search="",this.query={}),H&&(this.pathname=H),w[V]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var we=this.pathname||"",Ae=this.search||"";this.path=we+Ae}return this.href=this.format(),this};function C(M){return a.isString(M)&&(M=T(M)),M instanceof r?M.format():r.prototype.format.call(M)}r.prototype.format=function(){var M=this.auth||"";M&&(M=encodeURIComponent(M),M=M.replace(/%3A/i,":"),M+="@");var k=this.protocol||"",R=this.pathname||"",B=this.hash||"",P=!1,U="";this.host?P=M+this.host:this.hostname&&(P=M+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(P+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(U=S.stringify(this.query));var j=this.search||U&&"?"+U||"";return k&&k.substr(-1)!==":"&&(k+=":"),this.slashes||(!k||w[k])&&P!==!1?(P="//"+(P||""),R&&R.charAt(0)!=="/"&&(R="/"+R)):P||(P=""),B&&B.charAt(0)!=="#"&&(B="#"+B),j&&j.charAt(0)!=="?"&&(j="?"+j),R=R.replace(/[?#]/g,function(H){return encodeURIComponent(H)}),j=j.replace("#","%23"),k+P+R+j+B};function O(M,k){return T(M,!1,!0).resolve(k)}r.prototype.resolve=function(M){return this.resolveObject(T(M,!1,!0)).format()};function _(M,k){return M?T(M,!1,!0).resolveObject(k):k}r.prototype.resolveObject=function(M){if(a.isString(M)){var k=new r;k.parse(M,!1,!0),M=k}for(var R=new r,B=Object.keys(this),P=0;P<B.length;P++){var U=B[P];R[U]=this[U]}if(R.hash=M.hash,M.href==="")return R.href=R.format(),R;if(M.slashes&&!M.protocol){for(var j=Object.keys(M),H=0;H<j.length;H++){var W=j[H];W!=="protocol"&&(R[W]=M[W])}return w[R.protocol]&&R.hostname&&!R.pathname&&(R.path=R.pathname="/"),R.href=R.format(),R}if(M.protocol&&M.protocol!==R.protocol){if(!w[M.protocol]){for(var G=Object.keys(M),V=0;V<G.length;V++){var Z=G[V];R[Z]=M[Z]}return R.href=R.format(),R}if(R.protocol=M.protocol,!M.host&&!b[M.protocol]){for(var X=(M.pathname||"").split("/");X.length&&!(M.host=X.shift()););M.host||(M.host=""),M.hostname||(M.hostname=""),X[0]!==""&&X.unshift(""),X.length<2&&X.unshift(""),R.pathname=X.join("/")}else R.pathname=M.pathname;if(R.search=M.search,R.query=M.query,R.host=M.host||"",R.auth=M.auth,R.hostname=M.hostname||M.host,R.port=M.port,R.pathname||R.search){var Y=R.pathname||"",Q=R.search||"";R.path=Y+Q}return R.slashes=R.slashes||M.slashes,R.href=R.format(),R}var oe=R.pathname&&R.pathname.charAt(0)==="/",ue=M.host||M.pathname&&M.pathname.charAt(0)==="/",Le=ue||oe||R.host&&M.pathname,me=Le,Ie=R.pathname&&R.pathname.split("/")||[],X=M.pathname&&M.pathname.split("/")||[],q=R.protocol&&!w[R.protocol];if(q&&(R.hostname="",R.port=null,R.host&&(Ie[0]===""?Ie[0]=R.host:Ie.unshift(R.host)),R.host="",M.protocol&&(M.hostname=null,M.port=null,M.host&&(X[0]===""?X[0]=M.host:X.unshift(M.host)),M.host=null),Le=Le&&(X[0]===""||Ie[0]==="")),ue)R.host=M.host||M.host===""?M.host:R.host,R.hostname=M.hostname||M.hostname===""?M.hostname:R.hostname,R.search=M.search,R.query=M.query,Ie=X;else if(X.length)Ie||(Ie=[]),Ie.pop(),Ie=Ie.concat(X),R.search=M.search,R.query=M.query;else if(!a.isNullOrUndefined(M.search)){if(q){R.hostname=R.host=Ie.shift();var We=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;We&&(R.auth=We.shift(),R.host=R.hostname=We.shift())}return R.search=M.search,R.query=M.query,(!a.isNull(R.pathname)||!a.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.href=R.format(),R}if(!Ie.length)return R.pathname=null,R.search?R.path="/"+R.search:R.path=null,R.href=R.format(),R;for(var $=Ie.slice(-1)[0],J=(R.host||M.host||Ie.length>1)&&($==="."||$==="..")||$==="",le=0,de=Ie.length;de>=0;de--)$=Ie[de],$==="."?Ie.splice(de,1):$===".."?(Ie.splice(de,1),le++):le&&(Ie.splice(de,1),le--);if(!Le&&!me)for(;le--;le)Ie.unshift("..");Le&&Ie[0]!==""&&(!Ie[0]||Ie[0].charAt(0)!=="/")&&Ie.unshift(""),J&&Ie.join("/").substr(-1)!=="/"&&Ie.push("");var Ne=Ie[0]===""||Ie[0]&&Ie[0].charAt(0)==="/";if(q){R.hostname=R.host=Ne?"":Ie.length?Ie.shift():"";var We=R.host&&R.host.indexOf("@")>0?R.host.split("@"):!1;We&&(R.auth=We.shift(),R.host=R.hostname=We.shift())}return Le=Le||R.host&&Ie.length,Le&&!Ne&&Ie.unshift(""),Ie.length?R.pathname=Ie.join("/"):(R.pathname=null,R.path=null),(!a.isNull(R.pathname)||!a.isNull(R.search))&&(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.auth=M.auth||R.auth,R.slashes=R.slashes||M.slashes,R.href=R.format(),R},r.prototype.parseHost=function(){var M=this.host,k=e.exec(M);k&&(k=k[0],k!==":"&&(this.port=k.substr(1)),M=M.substr(0,M.length-k.length)),M&&(this.hostname=M)}},{"./util":405,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.array.splice.js":252,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.match.js":265,"core-js/modules/es.string.replace.js":266,"core-js/modules/es.string.search.js":267,"core-js/modules/es.string.split.js":268,"core-js/modules/es.string.trim.js":269,punycode:325,querystring:328}],405:[function(o,m,f){"use strict";var s=o("@babel/runtime/helpers/interopRequireDefault"),t=s(o("@babel/runtime/helpers/typeof"));m.exports={isString:function(a){return typeof a=="string"},isObject:function(a){return(0,t.default)(a)==="object"&&a!==null},isNull:function(a){return a===null},isNullOrUndefined:function(a){return a==null}}},{"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75}],406:[function(o,m,f){"use strict";o("core-js/modules/es.number.constructor.js"),f.encodeURIComponent=function(s){try{return encodeURIComponent(s)}catch(t){return s}},f.escape=o("escape-html"),f.timestamp=function(t){if(t){var l=t;return typeof l=="string"&&(l=Number(l)),String(t).length===10&&(l*=1e3),new Date(l)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":254,"escape-html":300}],407:[function(o,m,f){(function(s,t){(function(){"use strict";var l=o("@babel/runtime/helpers/interopRequireDefault"),a=l(o("@babel/runtime/helpers/typeof"));o("core-js/modules/es.string.trim.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.split.js"),o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.promise.js"),o("core-js/modules/es.function.name.js"),o("core-js/modules/es.array.concat.js");var r=o("util"),u=o("url"),e=o("http"),n=o("https"),i=o("debug")("urllib"),c=o("humanize-ms"),d=0,h=Math.pow(2,31)-10,p=/^https?:\/\//i;function g(b,w){return b===void 0?w:b}function v(b){return b?b.split(";")[0].trim().toLowerCase():""}function A(b,w){return function(S,T,C){if(S)return w(S);b({data:T,status:C.statusCode,headers:C.headers,res:C})}}f.TIMEOUTS=[c("300s"),c("300s")];var x=["json","text"];f.request=function(w,S,T){return arguments.length===2&&typeof S=="function"&&(T=S,S=null),typeof T=="function"?f.requestWithCallback(w,S,T):new Promise(function(C,O){f.requestWithCallback(w,S,A(C,O))})},f.requestWithCallback=function(w,S,T){if(!w||typeof w!="string"&&(0,a.default)(w)!=="object"){var C=r.format("expect request url to be a string or a http request options, but got %j",w);throw new Error(C)}arguments.length===2&&typeof S=="function"&&(T=S,S=null),S=S||{},d>=h&&(d=0);var O=++d;S.requestUrls=S.requestUrls||[];var _={requestId:O,url:w,args:S,ctx:S.ctx};S.emitter&&S.emitter.emit("request",_),S.timeout=S.timeout||f.TIMEOUTS,S.maxRedirects=S.maxRedirects||10,S.streaming=S.streaming||S.customResponse;var M=Date.now(),k;typeof w=="string"?(p.test(w)||(w="https://"+w),k=u.parse(w)):k=w;var R=(S.type||S.method||k.method||"GET").toUpperCase(),B=k.port||80,P=e,U=g(S.agent,f.agent),j=S.fixJSONCtlChars;k.protocol==="https:"&&(P=n,U=g(S.httpsAgent,f.httpsAgent),k.port||(B=443));var H={host:k.hostname||k.host||"localhost",path:k.path||"/",method:R,port:B,agent:U,headers:S.headers||{},lookup:S.lookup};Array.isArray(S.timeout)?H.requestTimeout=S.timeout[S.timeout.length-1]:typeof S.timeout!="undefined"&&(H.requestTimeout=S.timeout);var W=S.auth||k.auth;W&&(H.auth=W);var G=S.content||S.data,V=R==="GET"||R==="HEAD"||S.dataAsQueryString;if(!S.content&&(G&&!(typeof G=="string"||t.isBuffer(G))))if(V)G=S.nestedQuerystring?qs.stringify(G):querystring.stringify(G);else{var Z=H.headers["Content-Type"]||H.headers["content-type"];Z||(S.contentType==="json"?Z="application/json":Z="application/x-www-form-urlencoded",H.headers["Content-Type"]=Z),v(Z)==="application/json"?G=JSON.stringify(G):G=S.nestedQuerystring?qs.stringify(G):querystring.stringify(G)}V&&G&&(H.path+=(k.query?"&":"?")+G,G=null);var Y=0;if(G){var Q=G.length;t.isBuffer(G)||(Q=t.byteLength(G)),Y=H.headers["Content-Length"]=Q}S.dataType==="json"&&(H.headers.Accept="application/json"),typeof S.beforeRequest=="function"&&S.beforeRequest(H);var oe=null,ue=null,Le=null,me=!1,Ie=!1,X=0,q=-1,We=!1,$="",J="",le=null;S.timing&&(le={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function de(){oe&&(clearTimeout(oe),oe=null)}function Ne(){ue&&(clearTimeout(ue),ue=null)}function we(Fe,ft,At){if(Ne(),!T){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),O,s.pid,H.method,w),Fe&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),O,s.pid,Fe.name,Fe.message,Fe.stack);return}var bt=T;T=null;var St={};At&&(q=At.statusCode,St=At.headers);var Et=Date.now()-M;le&&(le.contentDownload=Et),i("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Et,X,q,H.method,H.host,H.path,Ie,le);var je={status:q,statusCode:q,headers:St,size:X,aborted:We,rt:Et,keepAliveSocket:Ie,data:ft,requestUrls:S.requestUrls,timing:le,remoteAddress:$,remotePort:J};if(Fe){var pe="";U&&typeof U.getCurrentStatus=="function"&&(pe=", agent status: "+JSON.stringify(U.getCurrentStatus())),Fe.message+=", "+H.method+" "+w+" "+q+" (connected: "+me+", keepalive socket: "+Ie+pe+`)
|
|
|
headers: `+JSON.stringify(St),Fe.data=ft,Fe.path=H.path,Fe.status=q,Fe.headers=St,Fe.res=je}bt(Fe,ft,S.streaming?At:je),S.emitter&&(_.url=w,_.socket=Oe&&Oe.connection,_.options=H,_.size=Y,S.emitter.emit("response",{requestId:O,error:Fe,ctx:S.ctx,req:_,res:je}))}function De(Fe){var ft=null;if(S.followRedirect&&statuses.redirect[Fe.statusCode]){S._followRedirectCount=(S._followRedirectCount||0)+1;var At=Fe.headers.location;if(!At)ft=new Error("Got statusCode "+Fe.statusCode+" but cannot resolve next location from headers"),ft.name="FollowRedirectError";else if(S._followRedirectCount>S.maxRedirects)ft=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+w),ft.name="MaxRedirectError";else{var bt=S.formatRedirectUrl?S.formatRedirectUrl(w,At):u.resolve(w,At);i("Request#%d %s: `redirected` from %s to %s",O,H.path,w,bt),Ne(),S.headers&&S.headers.Host&&p.test(At)&&(S.headers.Host=null);var St=T;return T=null,f.requestWithCallback(bt,S,St),{redirect:!0,error:null}}}return{redirect:!1,error:ft}}S.gzip&&(!H.headers["Accept-Encoding"]&&!H.headers["accept-encoding"]&&(H.headers["Accept-Encoding"]="gzip"));function Ee(Fe,ft,At){var bt=Fe.headers["content-encoding"];return At(null,ft,bt)}var ce=S.writeStream;i("Request#%d %s %s with headers %j, options.path: %s",O,R,w,H.headers,H.path),S.requestUrls.push(w);function ne(Fe){if(le&&(le.waiting=Date.now()-M),i("Request#%d %s `req response` event emit: status %d, headers: %j",O,w,Fe.statusCode,Fe.headers),S.streaming){var ft=De(Fe);if(ft.redirect){Fe.resume();return}return ft.error?(Fe.resume(),we(ft.error,null,Fe)):we(null,null,Fe)}if(Fe.on("close",function(){i("Request#%d %s: `res close` event emit, total size %d",O,w,X)}),Fe.on("error",function(){i("Request#%d %s: `res error` event emit, total size %d",O,w,X)}),Fe.on("aborted",function(){We=!0,i("Request#%d %s: `res aborted` event emit, total size %d",O,w,X)}),ce){var At=De(Fe);if(At.redirect){Fe.resume();return}return At.error?(Fe.resume(),ce.end(),we(At.error,null,Fe)):(S.consumeWriteStream===!1?Fe.on("end",we.bind(null,null,null,Fe)):ce.on("close",function(){i("Request#%d %s: writeStream close event emitted",O,w),we(Le||null,null,Fe)}),Fe.pipe(ce))}var bt=[];Fe.on("data",function(St){i("Request#%d %s: `res data` event emit, size %d",O,w,St.length),X+=St.length,bt.push(St)}),Fe.on("end",function(){var St=t.concat(bt,X);if(i("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",O,w,X,Fe._dumped),Le)return we(Le,St,Fe);var Et=De(Fe);if(Et.error)return we(Et.error,St,Fe);if(Et.redirect)return;Ee(Fe,St,function(je,pe,ie){if(je)return we(je,St,Fe);if(!ie&&x.indexOf(S.dataType)>=0){try{pe=decodeBodyByCharset(pe,Fe)}catch(Qe){return i("decodeBodyByCharset error: %s",Qe),we(null,pe,Fe)}if(S.dataType==="json")if(X===0)pe=null;else{var st=parseJSON(pe,j);st.error?je=st.error:pe=st.data}}We&&i("Request#%d %s: Remote socket was terminated before `response.end()` was called",O,w),we(je,pe,Fe)})})}var ee,Ae;Array.isArray(S.timeout)?(ee=c(S.timeout[0]),Ae=c(S.timeout[1])):ee=Ae=c(S.timeout),i("ConnectTimeout: %d, ResponseTimeout: %d",ee,Ae);function Ve(){i("Connect timer ticking, timeout: %d",ee),oe=setTimeout(function(){oe=null,q===-1&&(q=-2);var Fe="Connect timeout for "+ee+"ms",ft="ConnectionTimeoutError";Oe.socket||(ft="SocketAssignTimeoutError",Fe+=", working sockets is full"),Le=new Error(Fe),Le.name=ft,Le.requestId=O,i("ConnectTimeout: Request#%d %s %s: %s, connected: %s",O,w,Le.name,Fe,me),it()},ee)}function Ke(){i("Response timer ticking, timeout: %d",Ae),ue=setTimeout(function(){ue=null;var Fe="Response timeout for "+Ae+"ms",ft="ResponseTimeoutError";Le=new Error(Fe),Le.name=ft,Le.requestId=O,i("ResponseTimeout: Request#%d %s %s: %s, connected: %s",O,w,Le.name,Fe,me),it()},Ae)}var Oe;H.mode=S.mode?S.mode:"";try{Oe=P.request(H,ne)}catch(Fe){return we(Fe)}typeof window=="undefined"?Ve():Oe.on("requestTimeout",function(){q===-1&&(q=-2);var Fe="Connect timeout for "+ee+"ms",ft="ConnectionTimeoutError";Le=new Error(Fe),Le.name=ft,Le.requestId=O,it()});function it(){i("Request#%d %s abort, connected: %s",O,w,me),Oe.socket||(Le.noSocket=!0,we(Le)),Oe.abort()}return le&&Oe.on("finish",function(){le.requestSent=Date.now()-M}),Oe.once("socket",function(Fe){le&&(le.queuing=Date.now()-M);var ft=Fe.readyState;if(ft==="opening"){Fe.once("lookup",function(At,bt,St){i("Request#%d %s lookup: %s, %s, %s",O,w,At,bt,St),le&&(le.dnslookup=Date.now()-M),bt&&($=bt)}),Fe.once("connect",function(){le&&(le.connected=Date.now()-M),de(),Ke(),i("Request#%d %s new socket connected",O,w),me=!0,$||($=Fe.remoteAddress),J=Fe.remotePort});return}i("Request#%d %s reuse socket connected, readyState: %s",O,w,ft),me=!0,Ie=!0,$||($=Fe.remoteAddress),J=Fe.remotePort,de(),Ke()}),Oe.on("error",function(Fe){(Fe.name==="Error"||Fe.name==="TypeError")&&(Fe.name=me?"ResponseError":"RequestError"),Fe.message+=' (req "error")',i("Request#%d %s `req error` event emit, %s: %s",O,w,Fe.name,Fe.message),we(Le||Fe)}),ce&&ce.once("error",function(Fe){Fe.message+=' (writeStream "error")',Le=Fe,i("Request#%d %s `writeStream error` event emit, %s: %s",O,w,Fe.name,Fe.message),it()}),S.stream?(S.stream.pipe(Oe),S.stream.once("error",function(Fe){Fe.message+=' (stream "error")',Le=Fe,i("Request#%d %s `readStream error` event emit, %s: %s",O,w,Fe.name,Fe.message),it()})):Oe.end(G),Oe.requestId=O,Oe}}).call(this)}).call(this,o("_process"),o("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,_process:399,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.split.js":268,"core-js/modules/es.string.trim.js":269,debug:397,http:400,https:302,"humanize-ms":303,url:404,util:352}]},{},[1])(1)})}).call(this,y("yLpj"))},n1HI:function(fe,z,y){var D=y("hX1E"),N=D.normalizeRadian,L=Math.PI*2;function E(I,o,m,f,s,t,l,a,r){if(l===0)return!1;var u=l;a-=I,r-=o;var e=Math.sqrt(a*a+r*r);if(e-u>m||e+u<m)return!1;if(Math.abs(f-s)%L<1e-4)return!0;if(t){var n=f;f=N(s),s=N(n)}else f=N(f),s=N(s);f>s&&(s+=L);var i=Math.atan2(r,a);return i<0&&(i+=L),i>=f&&i<=s||i+L>=f&&i+L<=s}z.containStroke=E},n4Lv:function(fe,z,y){var D=y("7hqr"),N=D.isDimensionStacked,L=y("bYtY"),E=L.map;function I(f,s,t){var l=f.getBaseAxis(),a=f.getOtherAxis(l),r=o(a,t),u=l.dim,e=a.dim,n=s.mapDimension(e),i=s.mapDimension(u),c=e==="x"||e==="radius"?1:0,d=E(f.dimensions,function(g){return s.mapDimension(g)}),h,p=s.getCalculationInfo("stackResultDimension");return(h|=N(s,d[0]))&&(d[0]=p),(h|=N(s,d[1]))&&(d[1]=p),{dataDimsForPoint:d,valueStart:r,valueAxisDim:e,baseAxisDim:u,stacked:!!h,valueDim:n,baseDim:i,baseDataOffset:c,stackedOverDimension:s.getCalculationInfo("stackedOverDimension")}}function o(f,s){var t=0,l=f.scale.getExtent();return s==="start"?t=l[0]:s==="end"?t=l[1]:l[0]>0?t=l[0]:l[1]<0&&(t=l[1]),t}function m(f,s,t,l){var a=NaN;f.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),l)),isNaN(a)&&(a=f.valueStart);var r=f.baseDataOffset,u=[];return u[r]=t.get(f.baseDim,l),u[1-r]=a,s.dataToPoint(u)}z.prepareDataCoordInfo=I,z.getStackedOnPoint=m},n6Mw:function(fe,z,y){var D=y("SrGk"),N=y("bYtY"),L=y("Fofx");function E(o,m){D.call(this,o,m,"clipPath","__clippath_in_use__")}N.inherits(E,D),E.prototype.update=function(o){var m=this.getSvgElement(o);m&&this.updateDom(m,o.__clipPaths,!1);var f=this.getTextSvgElement(o);f&&this.updateDom(f,o.__clipPaths,!0),this.markUsed(o)},E.prototype.updateDom=function(o,m,f){if(m&&m.length>0){var s=this.getDefs(!0),t=m[0],l,a,r=f?"_textDom":"_dom";t[r]?(a=t[r].getAttribute("id"),l=t[r],s.contains(l)||s.appendChild(l)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,l=this.createElement("clipPath"),l.setAttribute("id",a),s.appendChild(l),t[r]=l);var u=this.getSvgProxy(t);if(t.transform&&t.parent.invTransform&&!f){var e=Array.prototype.slice.call(t.transform);L.mul(t.transform,t.parent.invTransform,t.transform),u.brush(t),t.transform=e}else u.brush(t);var n=this.getSvgElement(t);l.innerHTML="",l.appendChild(n.cloneNode()),o.setAttribute("clip-path","url(#"+a+")"),m.length>1&&this.updateDom(l,m.slice(1),f)}else o&&o.setAttribute("clip-path","none")},E.prototype.markUsed=function(o){var m=this;o.__clipPaths&&N.each(o.__clipPaths,function(f){f._dom&&D.prototype.markUsed.call(m,f._dom),f._textDom&&D.prototype.markUsed.call(m,f._textDom)})};var I=E;fe.exports=I},nCxF:function(fe,z,y){var D=y("QBsz"),N=D.min,L=D.max,E=D.scale,I=D.distance,o=D.add,m=D.clone,f=D.sub;function s(t,l,a,r){var u=[],e=[],n=[],i=[],c,d,h,p;if(r){h=[Infinity,Infinity],p=[-Infinity,-Infinity];for(var g=0,v=t.length;g<v;g++)N(h,h,t[g]),L(p,p,t[g]);N(h,h,r[0]),L(p,p,r[1])}for(var g=0,v=t.length;g<v;g++){var A=t[g];if(a)c=t[g?g-1:v-1],d=t[(g+1)%v];else if(g===0||g===v-1){u.push(m(t[g]));continue}else c=t[g-1],d=t[g+1];f(e,d,c),E(e,e,l);var x=I(A,c),b=I(A,d),w=x+b;w!==0&&(x/=w,b/=w),E(n,e,-x),E(i,e,b);var S=o([],A,n),T=o([],A,i);r&&(L(S,S,h),N(S,S,p),L(T,T,h),N(T,T,p)),u.push(S),u.push(T)}return a&&u.push(u.shift()),u}fe.exports=s},nKiI:function(fe,z,y){var D=y("bYtY"),N=y("mFDi"),L=y("OELB"),E=L.parsePercent,I=L.MAX_SAFE_INTEGER,o=y("+TT/"),m=y("VaxA"),f=Math.max,s=Math.min,t=D.retrieve,l=D.each,a=["itemStyle","borderWidth"],r=["itemStyle","gapWidth"],u=["upperLabel","show"],e=["upperLabel","height"],n={seriesType:"treemap",reset:function(S,T,C,O){var _=C.getWidth(),M=C.getHeight(),k=S.option,R=o.getLayoutRect(S.getBoxLayoutParams(),{width:C.getWidth(),height:C.getHeight()}),B=k.size||[],P=E(t(R.width,B[0]),_),U=E(t(R.height,B[1]),M),j=O&&O.type,H=["treemapZoomToNode","treemapRootToNode"],W=m.retrieveTargetInfo(O,H,S),G=j==="treemapRender"||j==="treemapMove"?O.rootRect:null,V=S.getViewRoot(),Z=m.getPathToRoot(V);if(j!=="treemapMove"){var Y=j==="treemapZoomToNode"?A(S,W,V,P,U):G?[G.width,G.height]:[P,U],Q=k.sort;Q&&Q!=="asc"&&Q!=="desc"&&(Q="desc");var oe={squareRatio:k.squareRatio,sort:Q,leafDepth:k.leafDepth};V.hostTree.clearLayouts();var ue={x:0,y:0,width:Y[0],height:Y[1],area:Y[0]*Y[1]};V.setLayout(ue),i(V,oe,!1,0);var ue=V.getLayout();l(Z,function(me,Ie){var X=(Z[Ie+1]||V).getValue();me.setLayout(D.extend({dataExtent:[X,X],borderWidth:0,upperHeight:0},ue))})}var Le=S.getData().tree.root;Le.setLayout(x(R,G,W),!0),S.setLayoutInfo(R),b(Le,new N(-R.x,-R.y,_,M),Z,V,0)}};function i(S,T,C,O){var _,M;if(S.isRemoved())return;var k=S.getLayout();_=k.width,M=k.height;var R=S.getModel(),B=R.get(a),P=R.get(r)/2,U=w(R),j=Math.max(B,U),H=B-P,W=j-P,R=S.getModel();S.setLayout({borderWidth:B,upperHeight:j,upperLabelHeight:U},!0),_=f(_-2*H,0),M=f(M-H-W,0);var G=_*M,V=c(S,R,G,T,C,O);if(!V.length)return;var Z={x:H,y:W,width:_,height:M},Y=s(_,M),Q=Infinity,oe=[];oe.area=0;for(var ue=0,Le=V.length;ue<Le;){var me=V[ue];oe.push(me),oe.area+=me.getLayout().area;var Ie=g(oe,Y,T.squareRatio);Ie<=Q?(ue++,Q=Ie):(oe.area-=oe.pop().getLayout().area,v(oe,Y,Z,P,!1),Y=s(Z.width,Z.height),oe.length=oe.area=0,Q=Infinity)}if(oe.length&&v(oe,Y,Z,P,!0),!C){var X=R.get("childrenVisibleMin");X!=null&&G<X&&(C=!0)}for(var ue=0,Le=V.length;ue<Le;ue++)i(V[ue],T,C,O+1)}function c(S,T,C,O,_,M){var k=S.children||[],R=O.sort;R!=="asc"&&R!=="desc"&&(R=null);var B=O.leafDepth!=null&&O.leafDepth<=M;if(_&&!B)return S.viewChildren=[];k=D.filter(k,function(W){return!W.isRemoved()}),h(k,R);var P=p(T,k,R);if(P.sum===0)return S.viewChildren=[];if(P.sum=d(T,C,P.sum,R,k),P.sum===0)return S.viewChildren=[];for(var U=0,j=k.length;U<j;U++){var H=k[U].getValue()/P.sum*C;k[U].setLayout({area:H})}return B&&(k.length&&S.setLayout({isLeafRoot:!0},!0),k.length=0),S.viewChildren=k,S.setLayout({dataExtent:P.dataExtent},!0),k}function d(S,T,C,O,_){if(!O)return C;for(var M=S.get("visibleMin"),k=_.length,R=k,B=k-1;B>=0;B--){var P=_[O==="asc"?k-B-1:B].getValue();P/C*T<M&&(R=B,C-=P)}return O==="asc"?_.splice(0,k-R):_.splice(R,k-R),C}function h(S,T){return T&&S.sort(function(C,O){var _=T==="asc"?C.getValue()-O.getValue():O.getValue()-C.getValue();return _===0?T==="asc"?C.dataIndex-O.dataIndex:O.dataIndex-C.dataIndex:_}),S}function p(S,T,C){for(var O=0,_=0,M=T.length;_<M;_++)O+=T[_].getValue();var k=S.get("visualDimension"),R;if(!T||!T.length)R=[NaN,NaN];else if(k==="value"&&C)R=[T[T.length-1].getValue(),T[0].getValue()],C==="asc"&&R.reverse();else{var R=[Infinity,-Infinity];l(T,function(P){var U=P.getValue(k);U<R[0]&&(R[0]=U),U>R[1]&&(R[1]=U)})}return{sum:O,dataExtent:R}}function g(S,T,C){for(var O=0,_=Infinity,M=0,k,R=S.length;M<R;M++)k=S[M].getLayout().area,k&&(k<_&&(_=k),k>O&&(O=k));var B=S.area*S.area,P=T*T*C;return B?f(P*O/B,B/(P*_)):Infinity}function v(S,T,C,O,_){var M=T===C.width?0:1,k=1-M,R=["x","y"],B=["width","height"],P=C[R[M]],U=T?S.area/T:0;(_||U>C[B[k]])&&(U=C[B[k]]);for(var j=0,H=S.length;j<H;j++){var W=S[j],G={},V=U?W.getLayout().area/U:0,Z=G[B[k]]=f(U-2*O,0),Y=C[R[M]]+C[B[M]]-P,Q=j===H-1||Y<V?Y:V,oe=G[B[M]]=f(Q-2*O,0);G[R[k]]=C[R[k]]+s(O,Z/2),G[R[M]]=P+s(O,oe/2),P+=Q,W.setLayout(G,!0)}C[R[k]]+=U,C[B[k]]-=U}function A(S,T,C,O,_){var M=(T||{}).node,k=[O,_];if(!M||M===C)return k;for(var R,B=O*_,P=B*S.option.zoomToNodeRatio;R=M.parentNode;){for(var U=0,j=R.children,H=0,W=j.length;H<W;H++)U+=j[H].getValue();var G=M.getValue();if(G===0)return k;P*=U/G;var V=R.getModel(),Z=V.get(a),Y=Math.max(Z,w(V,Z));P+=4*Z*Z+(3*Z+Y)*Math.pow(P,.5),P>I&&(P=I),M=R}P<B&&(P=B);var Q=Math.pow(P/B,.5);return[O*Q,_*Q]}function x(S,T,C){if(T)return{x:T.x,y:T.y};var O={x:0,y:0};if(!C)return O;var _=C.node,M=_.getLayout();if(!M)return O;for(var k=[M.width/2,M.height/2],R=_;R;){var B=R.getLayout();k[0]+=B.x,k[1]+=B.y,R=R.parentNode}return{x:S.width/2-k[0],y:S.height/2-k[1]}}function b(S,T,C,O,_){var M=S.getLayout(),k=C[_],R=k&&k===S;if(k&&!R||_===C.length&&S!==O)return;S.setLayout({isInView:!0,invisible:!R&&!T.intersect(M),isAboveViewRoot:R},!0);var B=new N(T.x-M.x,T.y-M.y,T.width,T.height);l(S.viewChildren||[],function(P){b(P,B,C,O,_+1)})}function w(S){return S.get(u)?S.get(e):0}fe.exports=n},nPnh:function(fe,z){var y=Math.round;function D(E,I,o){if(!I)return;var m=I.x1,f=I.x2,s=I.y1,t=I.y2;E.x1=m,E.x2=f,E.y1=s,E.y2=t;var l=o&&o.lineWidth;if(!l)return;y(m*2)===y(f*2)&&(E.x1=E.x2=L(m,l,!0)),y(s*2)===y(t*2)&&(E.y1=E.y2=L(s,l,!0))}function N(E,I,o){if(!I)return;var m=I.x,f=I.y,s=I.width,t=I.height;E.x=m,E.y=f,E.width=s,E.height=t;var l=o&&o.lineWidth;if(!l)return;E.x=L(m,l,!0),E.y=L(f,l,!0),E.width=Math.max(L(m+s,l,!1)-E.x,s===0?0:1),E.height=Math.max(L(f+t,l,!1)-E.y,t===0?0:1)}function L(E,I,o){if(!I)return E;var m=y(E*2);return(m+y(I))%2===0?m/2:(m+(o?1:-1))/2}z.subPixelOptimizeLine=D,z.subPixelOptimizeRect=N,z.subPixelOptimize=L},nRaC:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("0fbx"),E=y.n(L),I=y("OaEy"),o=y("R9oj")},nVVt:function(fe,z){fe.exports={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3}},nVfU:function(fe,z,y){var D=y("bYtY"),N=y("OELB"),L=N.parsePercent,E=y("7hqr"),I=E.isDimensionStacked,o=y("zM3Q"),m="__ec_stack_",f=.5,s=typeof Float32Array!="undefined"?Float32Array:Array;function t(v){return v.get("stack")||m+v.seriesIndex}function l(v){return v.dim+v.index}function a(v){var A=[],x=v.axis,b="axis0";if(x.type!=="category")return;for(var w=x.getBandWidth(),S=0;S<v.count||0;S++)A.push(D.defaults({bandWidth:w,axisKey:b,stackId:m+S},v));for(var T=n(A),C=[],S=0;S<v.count;S++){var O=T[b][m+S];O.offsetCenter=O.offset+O.width/2,C.push(O)}return C}function r(v,A){var x=[];return A.eachSeriesByType(v,function(b){h(b)&&!p(b)&&x.push(b)}),x}function u(v){var A={};D.each(v,function(O){var _=O.coordinateSystem,M=_.getBaseAxis();if(M.type!=="time"&&M.type!=="value")return;for(var k=O.getData(),R=M.dim+"_"+M.index,B=k.mapDimension(M.dim),P=0,U=k.count();P<U;++P){var j=k.get(B,P);A[R]?A[R].push(j):A[R]=[j]}});var x=[];for(var b in A)if(A.hasOwnProperty(b)){var w=A[b];if(w){w.sort(function(O,_){return O-_});for(var S=null,T=1;T<w.length;++T){var C=w[T]-w[T-1];C>0&&(S=S===null?C:Math.min(S,C))}x[b]=S}}return x}function e(v){var A=u(v),x=[];return D.each(v,function(b){var w=b.coordinateSystem,S=w.getBaseAxis(),T=S.getExtent(),C;if(S.type==="category")C=S.getBandWidth();else if(S.type==="value"||S.type==="time"){var O=S.dim+"_"+S.index,_=A[O],M=Math.abs(T[1]-T[0]),k=S.scale.getExtent(),R=Math.abs(k[1]-k[0]);C=_?M/R*_:M}else{var B=b.getData();C=Math.abs(T[1]-T[0])/B.count()}var P=L(b.get("barWidth"),C),U=L(b.get("barMaxWidth"),C),j=L(b.get("barMinWidth")||1,C),H=b.get("barGap"),W=b.get("barCategoryGap");x.push({bandWidth:C,barWidth:P,barMaxWidth:U,barMinWidth:j,barGap:H,barCategoryGap:W,axisKey:l(S),stackId:t(b)})}),n(x)}function n(v){var A={};D.each(v,function(b,w){var S=b.axisKey,T=b.bandWidth,C=A[S]||{bandWidth:T,remainedWidth:T,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},O=C.stacks;A[S]=C;var _=b.stackId;O[_]||C.autoWidthCount++,O[_]=O[_]||{width:0,maxWidth:0};var M=b.barWidth;M&&!O[_].width&&(O[_].width=M,M=Math.min(C.remainedWidth,M),C.remainedWidth-=M);var k=b.barMaxWidth;k&&(O[_].maxWidth=k);var R=b.barMinWidth;R&&(O[_].minWidth=R);var B=b.barGap;B!=null&&(C.gap=B);var P=b.barCategoryGap;P!=null&&(C.categoryGap=P)});var x={};return D.each(A,function(b,w){x[w]={};var S=b.stacks,T=b.bandWidth,C=L(b.categoryGap,T),O=L(b.gap,1),_=b.remainedWidth,M=b.autoWidthCount,k=(_-C)/(M+(M-1)*O);k=Math.max(k,0),D.each(S,function(U){var j=U.maxWidth,H=U.minWidth;if(U.width){var W=U.width;j&&(W=Math.min(W,j)),H&&(W=Math.max(W,H)),U.width=W,_-=W+O*W,M--}else{var W=k;j&&j<W&&(W=Math.min(j,_)),H&&H>W&&(W=H),W!==k&&(U.width=W,_-=W+O*W,M--)}}),k=(_-C)/(M+(M-1)*O),k=Math.max(k,0);var R=0,B;D.each(S,function(U,j){U.width||(U.width=k),B=U,R+=U.width*(1+O)}),B&&(R-=B.width*O);var P=-R/2;D.each(S,function(U,j){x[w][j]=x[w][j]||{bandWidth:T,offset:P,width:U.width},P+=U.width*(1+O)})}),x}function i(v,A,x){if(v&&A){var b=v[l(A)];return b!=null&&x!=null&&(b=b[t(x)]),b}}function c(v,A){var x=r(v,A),b=e(x),w={},S={};D.each(x,function(T){var C=T.getData(),O=T.coordinateSystem,_=O.getBaseAxis(),M=t(T),k=b[l(_)][M],R=k.offset,B=k.width,P=O.getOtherAxis(_),U=T.get("barMinHeight")||0;w[M]=w[M]||[],S[M]=S[M]||[],C.setLayout({bandWidth:k.bandWidth,offset:R,size:B});for(var j=C.mapDimension(P.dim),H=C.mapDimension(_.dim),W=I(C,j),G=P.isHorizontal(),V=g(_,P,W),Z=0,Y=C.count();Z<Y;Z++){var Q=C.get(j,Z),oe=C.get(H,Z),ue=Q>=0?"p":"n",Le=V;W&&(w[M][oe]||(w[M][oe]={p:V,n:V}),Le=w[M][oe][ue]);var me,Ie,X,q;if(G){var We=O.dataToPoint([Q,oe]);me=Le,Ie=We[1]+R,X=We[0]-V,q=B,Math.abs(X)<U&&(X=(X<0?-1:1)*U),isNaN(X)||W&&(w[M][oe][ue]+=X)}else{var We=O.dataToPoint([oe,Q]);me=We[0]+R,Ie=Le,X=B,q=We[1]-V,Math.abs(q)<U&&(q=(q<=0?-1:1)*U),isNaN(q)||W&&(w[M][oe][ue]+=q)}C.setItemLayout(Z,{x:me,y:Ie,width:X,height:q})}},this)}var d={seriesType:"bar",plan:o(),reset:function(v){if(!h(v)||!p(v))return;var A=v.getData(),x=v.coordinateSystem,b=x.grid.getRect(),w=x.getBaseAxis(),S=x.getOtherAxis(w),T=A.mapDimension(S.dim),C=A.mapDimension(w.dim),O=S.isHorizontal(),_=O?0:1,M=i(e([v]),w,v).width;return M>f||(M=f),{progress:k};function k(R,B){for(var P=R.count,U=new s(P*2),j=new s(P*2),H=new s(P),W,G=[],V=[],Z=0,Y=0;(W=R.next())!=null;)V[_]=B.get(T,W),V[1-_]=B.get(C,W),G=x.dataToPoint(V,null,G),j[Z]=O?b.x+b.width:G[0],U[Z++]=G[0],j[Z]=O?G[1]:b.y+b.height,U[Z++]=G[1],H[Y++]=W;B.setLayout({largePoints:U,largeDataIndices:H,largeBackgroundPoints:j,barWidth:M,valueAxisStart:g(w,S,!1),backgroundStart:O?b.x:b.y,valueAxisHorizontal:O})}}};function h(v){return v.coordinateSystem&&v.coordinateSystem.type==="cartesian2d"}function p(v){return v.pipelineContext&&v.pipelineContext.large}function g(v,A,x){return A.toGlobalCoord(A.dataToCoord(A.type==="log"?1:0))}z.getLayoutOnAxis=a,z.prepareLayoutBarSeries=r,z.makeColumnLayout=e,z.retrieveColumnLayout=i,z.layout=c,z.largeLayout=d},ngQI:function(fe,z,y){"use strict";y.d(z,"a",function(){return ac}),y.d(z,"b",function(){return vc}),y.d(z,"c",function(){return Cr});var D=y("q1tI"),N=y.n(D),L=y("dI71"),E=y("wx14"),I=y("ANjH"),o=y("/MKj");function m(Re,re){if(Re.length!==re.length)return!1;for(var xe=0;xe<Re.length;xe++)if(Re[xe]!==re[xe])return!1;return!0}function f(Re,re){var xe=Object(D.useState)(function(){return{inputs:re,result:Re()}})[0],Ge=Object(D.useRef)(!0),ot=Object(D.useRef)(xe),Ct=Ge.current||Boolean(re&&ot.current.inputs&&m(re,ot.current.inputs)),_t=Ct?ot.current:{inputs:re,result:Re()};return Object(D.useEffect)(function(){Ge.current=!1,ot.current=_t},[_t]),_t.result}function s(Re,re){return f(function(){return Re},re)}var t=f,l=s,a=y("9R94"),r=function(re){var xe=re.top,Ge=re.right,ot=re.bottom,Ct=re.left,_t=Ge-Ct,Dt=ot-xe,vr={top:xe,right:Ge,bottom:ot,left:Ct,width:_t,height:Dt,x:Ct,y:xe,center:{x:(Ge+Ct)/2,y:(ot+xe)/2}};return vr},u=function(re,xe){return{top:re.top-xe.top,left:re.left-xe.left,bottom:re.bottom+xe.bottom,right:re.right+xe.right}},e=function(re,xe){return{top:re.top+xe.top,left:re.left+xe.left,bottom:re.bottom-xe.bottom,right:re.right-xe.right}},n=function(re,xe){return{top:re.top+xe.y,left:re.left+xe.x,bottom:re.bottom+xe.y,right:re.right+xe.x}},i={top:0,right:0,bottom:0,left:0},c=function(re){var xe=re.borderBox,Ge=re.margin,ot=Ge===void 0?i:Ge,Ct=re.border,_t=Ct===void 0?i:Ct,Dt=re.padding,vr=Dt===void 0?i:Dt,Lr=r(u(xe,ot)),mr=r(e(xe,_t)),ur=r(e(mr,vr));return{marginBox:Lr,borderBox:r(xe),paddingBox:mr,contentBox:ur,margin:ot,border:_t,padding:vr}},d=function(re){var xe=re.slice(0,-2),Ge=re.slice(-2);if(Ge!=="px")return 0;var ot=Number(xe);return isNaN(ot)&&Object(a.a)(!1),ot},h=function(){return{x:window.pageXOffset,y:window.pageYOffset}},p=function(re,xe){var Ge=re.borderBox,ot=re.border,Ct=re.margin,_t=re.padding,Dt=n(Ge,xe);return c({borderBox:Dt,border:ot,margin:Ct,padding:_t})},g=function(re,xe){return xe===void 0&&(xe=h()),p(re,xe)},v=function(re,xe){var Ge={top:d(xe.marginTop),right:d(xe.marginRight),bottom:d(xe.marginBottom),left:d(xe.marginLeft)},ot={top:d(xe.paddingTop),right:d(xe.paddingRight),bottom:d(xe.paddingBottom),left:d(xe.paddingLeft)},Ct={top:d(xe.borderTopWidth),right:d(xe.borderRightWidth),bottom:d(xe.borderBottomWidth),left:d(xe.borderLeftWidth)};return c({borderBox:re,margin:Ge,padding:ot,border:Ct})},A=function(re){var xe=re.getBoundingClientRect(),Ge=window.getComputedStyle(re);return v(xe,Ge)},x=Number.isNaN||function(re){return typeof re=="number"&&re!==re};function b(Re,re){return Re===re?!0:!!(x(Re)&&x(re))}function w(Re,re){if(Re.length!==re.length)return!1;for(var xe=0;xe<Re.length;xe++)if(!b(Re[xe],re[xe]))return!1;return!0}function S(Re,re){re===void 0&&(re=w);var xe,Ge=[],ot,Ct=!1;function _t(){for(var Dt=[],vr=0;vr<arguments.length;vr++)Dt[vr]=arguments[vr];return Ct&&xe===this&&re(Dt,Ge)||(ot=Re.apply(this,Dt),Ct=!0,xe=this,Ge=Dt),ot}return _t}var T=S,C=function(re){var xe=[],Ge=null,ot=function(){for(var _t=arguments.length,Dt=new Array(_t),vr=0;vr<_t;vr++)Dt[vr]=arguments[vr];if(xe=Dt,Ge)return;Ge=requestAnimationFrame(function(){Ge=null,re.apply(void 0,xe)})};return ot.cancel=function(){if(!Ge)return;cancelAnimationFrame(Ge),Ge=null},ot},O=C,_=y("i8i4"),M=y.n(_),k=!0,R=/[ \t]{2,}/g,B=/^[ \t]*/gm,P=function(re){return re.replace(R," ").replace(B,"").trim()},U=function(re){return P(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+P(re)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},j=function(re){return[U(re),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},H="__react-beautiful-dnd-disable-dev-warnings";function W(Re,re){var xe;if(k)return;if(typeof window!="undefined"&&window[H])return;(xe=console)[Re].apply(xe,j(re))}var G=W.bind(null,"warn"),V=W.bind(null,"error");function Z(){}function Y(Re,re){return Object(E.a)({},Re,{},re)}function Q(Re,re,xe){var Ge=re.map(function(ot){var Ct=Y(xe,ot.options);return Re.addEventListener(ot.eventName,ot.fn,Ct),function(){Re.removeEventListener(ot.eventName,ot.fn,Ct)}});return function(){Ge.forEach(function(Ct){Ct()})}}var oe=!0,ue="Invariant failed";function Le(Re){this.message=Re}Le.prototype.toString=function(){return this.message};function me(Re,re){if(Re)return;throw oe?new Le(ue):new Le(ue+": "+(re||""))}var Ie=function(Re){Object(L.a)(re,Re);function re(){for(var Ge,ot=arguments.length,Ct=new Array(ot),_t=0;_t<ot;_t++)Ct[_t]=arguments[_t];return Ge=Re.call.apply(Re,[this].concat(Ct))||this,Ge.callbacks=null,Ge.unbind=Z,Ge.onWindowError=function(Dt){var vr=Ge.getCallbacks();vr.isDragging()&&vr.tryAbort();var Lr=Dt.error;Lr instanceof Le&&Dt.preventDefault()},Ge.getCallbacks=function(){if(!Ge.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Ge.callbacks},Ge.setCallbacks=function(Dt){Ge.callbacks=Dt},Ge}var xe=re.prototype;return xe.componentDidMount=function(){this.unbind=Q(window,[{eventName:"error",fn:this.onWindowError}])},xe.componentWillUnmount=function(){this.unbind()},xe.componentDidCatch=function(ot){if(ot instanceof Le){this.setState({});return}throw ot},xe.render=function(){return this.props.children(this.setCallbacks)},re}(N.a.Component),X=`
|
|
|
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
|
|
|
`,q=function(re){return re+1},We=function(re){return`
|
|
|
You have lifted an item in position `+q(re.source.index)+`
|
|
|
`},$=function(re,xe){var Ge=re.droppableId===xe.droppableId,ot=q(re.index),Ct=q(xe.index);return Ge?`
|
|
|
You have moved the item from position `+ot+`
|
|
|
to position `+Ct+`
|
|
|
`:`
|
|
|
You have moved the item from position `+ot+`
|
|
|
in list `+re.droppableId+`
|
|
|
to list `+xe.droppableId+`
|
|
|
in position `+Ct+`
|
|
|
`},J=function(re,xe,Ge){var ot=xe.droppableId===Ge.droppableId;return ot?`
|
|
|
The item `+re+`
|
|
|
has been combined with `+Ge.draggableId:`
|
|
|
The item `+re+`
|
|
|
in list `+xe.droppableId+`
|
|
|
has been combined with `+Ge.draggableId+`
|
|
|
in list `+Ge.droppableId+`
|
|
|
`},le=function(re){var xe=re.destination;if(xe)return $(re.source,xe);var Ge=re.combine;return Ge?J(re.draggableId,re.source,Ge):"You are over an area that cannot be dropped on"},de=function(re){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+q(re.index)+`
|
|
|
`},Ne=function(re){if(re.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+de(re.source)+`
|
|
|
`;var xe=re.destination,Ge=re.combine;return xe?`
|
|
|
You have dropped the item.
|
|
|
`+$(re.source,xe)+`
|
|
|
`:Ge?`
|
|
|
You have dropped the item.
|
|
|
`+J(re.draggableId,re.source,Ge)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+de(re.source)+`
|
|
|
`},we={dragHandleUsageInstructions:X,onDragStart:We,onDragUpdate:le,onDragEnd:Ne},De={x:0,y:0},Ee=function(re,xe){return{x:re.x+xe.x,y:re.y+xe.y}},ce=function(re,xe){return{x:re.x-xe.x,y:re.y-xe.y}},ne=function(re,xe){return re.x===xe.x&&re.y===xe.y},ee=function(re){return{x:re.x!==0?-re.x:0,y:re.y!==0?-re.y:0}},Ae=function(re,xe,Ge){var ot;return Ge===void 0&&(Ge=0),ot={},ot[re]=xe,ot[re==="x"?"y":"x"]=Ge,ot},Ve=function(re,xe){return Math.sqrt(Math.pow(xe.x-re.x,2)+Math.pow(xe.y-re.y,2))},Ke=function(re,xe){return Math.min.apply(Math,xe.map(function(Ge){return Ve(re,Ge)}))},Oe=function(re){return function(xe){return{x:re(xe.x),y:re(xe.y)}}},it=function(re,xe){var Ge=r({top:Math.max(xe.top,re.top),right:Math.min(xe.right,re.right),bottom:Math.min(xe.bottom,re.bottom),left:Math.max(xe.left,re.left)});return Ge.width<=0||Ge.height<=0?null:Ge},Fe=function(re,xe){return{top:re.top+xe.y,left:re.left+xe.x,bottom:re.bottom+xe.y,right:re.right+xe.x}},ft=function(re){return[{x:re.left,y:re.top},{x:re.right,y:re.top},{x:re.left,y:re.bottom},{x:re.right,y:re.bottom}]},At={top:0,right:0,bottom:0,left:0},bt=function(re,xe){return xe?Fe(re,xe.scroll.diff.displacement):re},St=function(re,xe,Ge){if(Ge&&Ge.increasedBy){var ot;return Object(E.a)({},re,(ot={},ot[xe.end]=re[xe.end]+Ge.increasedBy[xe.line],ot))}return re},Et=function(re,xe){return xe&&xe.shouldClipSubject?it(xe.pageMarginBox,re):r(re)},je=function(re){var xe=re.page,Ge=re.withPlaceholder,ot=re.axis,Ct=re.frame,_t=bt(xe.marginBox,Ct),Dt=St(_t,ot,Ge),vr=Et(Dt,Ct);return{page:xe,withPlaceholder:Ge,active:vr}},pe=function(re,xe){re.frame||me(!1);var Ge=re.frame,ot=ce(xe,Ge.scroll.initial),Ct=ee(ot),_t=Object(E.a)({},Ge,{scroll:{initial:Ge.scroll.initial,current:xe,diff:{value:ot,displacement:Ct},max:Ge.scroll.max}}),Dt=je({page:re.subject.page,withPlaceholder:re.subject.withPlaceholder,axis:re.axis,frame:_t}),vr=Object(E.a)({},re,{frame:_t,subject:Dt});return vr};function ie(Re){return Number.isInteger?Number.isInteger(Re):typeof Re=="number"&&isFinite(Re)&&Math.floor(Re)===Re}function st(Re){return Object.values?Object.values(Re):Object.keys(Re).map(function(re){return Re[re]})}function Qe(Re,re){if(Re.findIndex)return Re.findIndex(re);for(var xe=0;xe<Re.length;xe++)if(re(Re[xe]))return xe;return-1}function ve(Re,re){if(Re.find)return Re.find(re);var xe=Qe(Re,re);return xe!==-1?Re[xe]:void 0}function Bt(Re){return Array.prototype.slice.call(Re)}var qt=T(function(Re){return Re.reduce(function(re,xe){return re[xe.descriptor.id]=xe,re},{})}),ct=T(function(Re){return Re.reduce(function(re,xe){return re[xe.descriptor.id]=xe,re},{})}),Wt=T(function(Re){return st(Re)}),or=T(function(Re){return st(Re)}),Fr=T(function(Re,re){var xe=or(re).filter(function(Ge){return Re===Ge.descriptor.droppableId}).sort(function(Ge,ot){return Ge.descriptor.index-ot.descriptor.index});return xe});function er(Re){return Re.at&&Re.at.type==="REORDER"?Re.at.destination:null}function nr(Re){return Re.at&&Re.at.type==="COMBINE"?Re.at.combine:null}var Ot=T(function(Re,re){return re.filter(function(xe){return xe.descriptor.id!==Re.descriptor.id})}),lt=function(re){var xe=re.isMovingForward,Ge=re.draggable,ot=re.destination,Ct=re.insideDestination,_t=re.previousImpact;if(!ot.isCombineEnabled)return null;var Dt=er(_t);if(!Dt)return null;function vr(Vn){var Ei={type:"COMBINE",combine:{draggableId:Vn,droppableId:ot.descriptor.id}};return Object(E.a)({},_t,{at:Ei})}var Lr=_t.displaced.all,mr=Lr.length?Lr[0]:null;if(xe)return mr?vr(mr):null;var ur=Ot(Ge,Ct);if(!mr){if(!ur.length)return null;var Tr=ur[ur.length-1];return vr(Tr.descriptor.id)}var kr=Qe(ur,function(Vn){return Vn.descriptor.id===mr});kr!==-1||me(!1);var an=kr-1;if(an<0)return null;var jn=ur[an];return vr(jn.descriptor.id)},qe=function(re,xe){return re.descriptor.droppableId===xe.descriptor.id},tr={point:De,value:0},xr={invisible:{},visible:{},all:[]},Ar={displaced:xr,displacedBy:tr,at:null},fr=function(re,xe){return function(Ge){return re<=Ge&&Ge<=xe}},vn=function(re){var xe=fr(re.top,re.bottom),Ge=fr(re.left,re.right);return function(ot){var Ct=xe(ot.top)&&xe(ot.bottom)&&Ge(ot.left)&&Ge(ot.right);if(Ct)return!0;var _t=xe(ot.top)||xe(ot.bottom),Dt=Ge(ot.left)||Ge(ot.right),vr=_t&&Dt;if(vr)return!0;var Lr=ot.top<re.top&&ot.bottom>re.bottom,mr=ot.left<re.left&&ot.right>re.right,ur=Lr&&mr;if(ur)return!0;var Tr=Lr&&Dt||mr&&_t;return Tr}},$r=function(re){var xe=fr(re.top,re.bottom),Ge=fr(re.left,re.right);return function(ot){var Ct=xe(ot.top)&&xe(ot.bottom)&&Ge(ot.left)&&Ge(ot.right);return Ct}},Ln={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},tt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},nt=function(re){return function(xe){var Ge=fr(xe.top,xe.bottom),ot=fr(xe.left,xe.right);return function(Ct){return re===Ln?Ge(Ct.top)&&Ge(Ct.bottom):ot(Ct.left)&&ot(Ct.right)}}},Te=function(re,xe){var Ge=xe.frame?xe.frame.scroll.diff.displacement:De;return Fe(re,Ge)},Me=function(re,xe,Ge){return xe.subject.active?Ge(xe.subject.active)(re):!1},Xe=function(re,xe,Ge){return Ge(xe)(re)},at=function(re){var xe=re.target,Ge=re.destination,ot=re.viewport,Ct=re.withDroppableDisplacement,_t=re.isVisibleThroughFrameFn,Dt=Ct?Te(xe,Ge):xe;return Me(Dt,Ge,_t)&&Xe(Dt,ot,_t)},zt=function(re){return at(Object(E.a)({},re,{isVisibleThroughFrameFn:vn}))},kt=function(re){return at(Object(E.a)({},re,{isVisibleThroughFrameFn:$r}))},Xt=function(re){return at(Object(E.a)({},re,{isVisibleThroughFrameFn:nt(re.destination.axis)}))},Dr=function(re,xe,Ge){if(typeof Ge=="boolean")return Ge;if(!xe)return!0;var ot=xe.invisible,Ct=xe.visible;if(ot[re])return!1;var _t=Ct[re];return _t?_t.shouldAnimate:!0};function Pr(Re,re){var xe=Re.page.marginBox,Ge={top:re.point.y,right:0,bottom:0,left:re.point.x};return r(u(xe,Ge))}function cn(Re){var re=Re.afterDragging,xe=Re.destination,Ge=Re.displacedBy,ot=Re.viewport,Ct=Re.forceShouldAnimate,_t=Re.last;return re.reduce(function(vr,Lr){var mr=Pr(Lr,Ge),ur=Lr.descriptor.id;vr.all.push(ur);var Tr=zt({target:mr,destination:xe,viewport:ot,withDroppableDisplacement:!0});if(!Tr)return vr.invisible[Lr.descriptor.id]=!0,vr;var kr=Dr(ur,_t,Ct),an={draggableId:ur,shouldAnimate:kr};return vr.visible[ur]=an,vr},{all:[],visible:{},invisible:{}})}function jt(Re,re){if(!Re.length)return 0;var xe=Re[Re.length-1].descriptor.index;return re.inHomeList?xe:xe+1}function gt(Re){var re=Re.insideDestination,xe=Re.inHomeList,Ge=Re.displacedBy,ot=Re.destination,Ct=jt(re,{inHomeList:xe});return{displaced:xr,displacedBy:Ge,at:{type:"REORDER",destination:{droppableId:ot.descriptor.id,index:Ct}}}}function dt(Re){var re=Re.draggable,xe=Re.insideDestination,Ge=Re.destination,ot=Re.viewport,Ct=Re.displacedBy,_t=Re.last,Dt=Re.index,vr=Re.forceShouldAnimate,Lr=qe(re,Ge);if(Dt==null)return gt({insideDestination:xe,inHomeList:Lr,displacedBy:Ct,destination:Ge});var mr=ve(xe,function(jn){return jn.descriptor.index===Dt});if(!mr)return gt({insideDestination:xe,inHomeList:Lr,displacedBy:Ct,destination:Ge});var ur=Ot(re,xe),Tr=xe.indexOf(mr),kr=ur.slice(Tr),an=cn({afterDragging:kr,destination:Ge,displacedBy:Ct,last:_t,viewport:ot.frame,forceShouldAnimate:vr});return{displaced:an,displacedBy:Ct,at:{type:"REORDER",destination:{droppableId:Ge.descriptor.id,index:Dt}}}}function Qt(Re,re){return Boolean(re.effected[Re])}var Jt=function(re){var xe=re.isMovingForward,Ge=re.destination,ot=re.draggables,Ct=re.combine,_t=re.afterCritical;if(!Ge.isCombineEnabled)return null;var Dt=Ct.draggableId,vr=ot[Dt],Lr=vr.descriptor.index,mr=Qt(Dt,_t);return mr?xe?Lr:Lr-1:xe?Lr+1:Lr},xt=function(re){var xe=re.isMovingForward,Ge=re.isInHomeList,ot=re.insideDestination,Ct=re.location;if(!ot.length)return null;var _t=Ct.index,Dt=xe?_t+1:_t-1,vr=ot[0].descriptor.index,Lr=ot[ot.length-1].descriptor.index,mr=Ge?Lr:Lr+1;return Dt<vr||Dt>mr?null:Dt},Pt=function(re){var xe=re.isMovingForward,Ge=re.isInHomeList,ot=re.draggable,Ct=re.draggables,_t=re.destination,Dt=re.insideDestination,vr=re.previousImpact,Lr=re.viewport,mr=re.afterCritical,ur=vr.at;if(ur||me(!1),ur.type==="REORDER"){var Tr=xt({isMovingForward:xe,isInHomeList:Ge,location:ur.destination,insideDestination:Dt});return Tr==null?null:dt({draggable:ot,insideDestination:Dt,destination:_t,viewport:Lr,last:vr.displaced,displacedBy:vr.displacedBy,index:Tr})}var kr=Jt({isMovingForward:xe,destination:_t,displaced:vr.displaced,draggables:Ct,combine:ur.combine,afterCritical:mr});return kr==null?null:dt({draggable:ot,insideDestination:Dt,destination:_t,viewport:Lr,last:vr.displaced,displacedBy:vr.displacedBy,index:kr})},yt=function(re){var xe=re.displaced,Ge=re.afterCritical,ot=re.combineWith,Ct=re.displacedBy,_t=Boolean(xe.visible[ot]||xe.invisible[ot]);return Qt(ot,Ge)?_t?De:ee(Ct.point):_t?Ct.point:De},Ut=function(re){var xe=re.afterCritical,Ge=re.impact,ot=re.draggables,Ct=nr(Ge);Ct||me(!1);var _t=Ct.draggableId,Dt=ot[_t].page.borderBox.center,vr=yt({displaced:Ge.displaced,afterCritical:xe,combineWith:_t,displacedBy:Ge.displacedBy});return Ee(Dt,vr)},pr=function(re,xe){return xe.margin[re.start]+xe.borderBox[re.size]/2},sr=function(re,xe){return xe.margin[re.end]+xe.borderBox[re.size]/2},ir=function(re,xe,Ge){return xe[re.crossAxisStart]+Ge.margin[re.crossAxisStart]+Ge.borderBox[re.crossAxisSize]/2},Yr=function(re){var xe=re.axis,Ge=re.moveRelativeTo,ot=re.isMoving;return Ae(xe.line,Ge.marginBox[xe.end]+pr(xe,ot),ir(xe,Ge.marginBox,ot))},Jr=function(re){var xe=re.axis,Ge=re.moveRelativeTo,ot=re.isMoving;return Ae(xe.line,Ge.marginBox[xe.start]-sr(xe,ot),ir(xe,Ge.marginBox,ot))},In=function(re){var xe=re.axis,Ge=re.moveInto,ot=re.isMoving;return Ae(xe.line,Ge.contentBox[xe.start]+pr(xe,ot),ir(xe,Ge.contentBox,ot))},Nn=function(re){var xe=re.impact,Ge=re.draggable,ot=re.draggables,Ct=re.droppable,_t=re.afterCritical,Dt=Fr(Ct.descriptor.id,ot),vr=Ge.page,Lr=Ct.axis;if(!Dt.length)return In({axis:Lr,moveInto:Ct.page,isMoving:vr});var mr=xe.displaced,ur=xe.displacedBy,Tr=mr.all[0];if(Tr){var kr=ot[Tr];if(Qt(Tr,_t))return Jr({axis:Lr,moveRelativeTo:kr.page,isMoving:vr});var an=p(kr.page,ur.point);return Jr({axis:Lr,moveRelativeTo:an,isMoving:vr})}var jn=Dt[Dt.length-1];if(jn.descriptor.id===Ge.descriptor.id)return vr.borderBox.center;if(Qt(jn.descriptor.id,_t)){var Vn=p(jn.page,ee(_t.displacedBy.point));return Yr({axis:Lr,moveRelativeTo:Vn,isMoving:vr})}return Yr({axis:Lr,moveRelativeTo:jn.page,isMoving:vr})},zn=function(re,xe){var Ge=re.frame;return Ge?Ee(xe,Ge.scroll.diff.displacement):xe},ei=function(re){var xe=re.impact,Ge=re.draggable,ot=re.droppable,Ct=re.draggables,_t=re.afterCritical,Dt=Ge.page.borderBox.center,vr=xe.at;return ot&&vr?vr.type==="REORDER"?Nn({impact:xe,draggable:Ge,draggables:Ct,droppable:ot,afterCritical:_t}):Ut({impact:xe,draggables:Ct,afterCritical:_t}):Dt},Ai=function(re){var xe=ei(re),Ge=re.droppable,ot=Ge?zn(Ge,xe):xe;return ot},Pi=function(re,xe){var Ge=ce(xe,re.scroll.initial),ot=ee(Ge),Ct=r({top:xe.y,bottom:xe.y+re.frame.height,left:xe.x,right:xe.x+re.frame.width}),_t={frame:Ct,scroll:{initial:re.scroll.initial,max:re.scroll.max,current:xe,diff:{value:Ge,displacement:ot}}};return _t};function $e(Re,re){return Re.map(function(xe){return re[xe]})}function _e(Re,re){for(var xe=0;xe<re.length;xe++){var Ge=re[xe].visible[Re];if(Ge)return Ge}return null}var Be=function(re){var xe=re.impact,Ge=re.viewport,ot=re.destination,Ct=re.draggables,_t=re.maxScrollChange,Dt=Pi(Ge,Ee(Ge.scroll.current,_t)),vr=ot.frame?pe(ot,Ee(ot.frame.scroll.current,_t)):ot,Lr=xe.displaced,mr=cn({afterDragging:$e(Lr.all,Ct),destination:ot,displacedBy:xe.displacedBy,viewport:Dt.frame,last:Lr,forceShouldAnimate:!1}),ur=cn({afterDragging:$e(Lr.all,Ct),destination:vr,displacedBy:xe.displacedBy,viewport:Ge.frame,last:Lr,forceShouldAnimate:!1}),Tr={},kr={},an=[Lr,mr,ur];Lr.all.forEach(function(Vn){var Ei=_e(Vn,an);if(Ei){kr[Vn]=Ei;return}Tr[Vn]=!0});var jn=Object(E.a)({},xe,{displaced:{all:Lr.all,invisible:Tr,visible:kr}});return jn},He=function(re,xe){return Ee(re.scroll.diff.displacement,xe)},Je=function(re){var xe=re.pageBorderBoxCenter,Ge=re.draggable,ot=re.viewport,Ct=He(ot,xe),_t=ce(Ct,Ge.page.borderBox.center);return Ee(Ge.client.borderBox.center,_t)},Ye=function(re){var xe=re.draggable,Ge=re.destination,ot=re.newPageBorderBoxCenter,Ct=re.viewport,_t=re.withDroppableDisplacement,Dt=re.onlyOnMainAxis,vr=Dt===void 0?!1:Dt,Lr=ce(ot,xe.page.borderBox.center),mr=Fe(xe.page.borderBox,Lr),ur={target:mr,destination:Ge,withDroppableDisplacement:_t,viewport:Ct};return vr?Xt(ur):kt(ur)},et=function(re){var xe=re.isMovingForward,Ge=re.draggable,ot=re.destination,Ct=re.draggables,_t=re.previousImpact,Dt=re.viewport,vr=re.previousPageBorderBoxCenter,Lr=re.previousClientSelection,mr=re.afterCritical;if(!ot.isEnabled)return null;var ur=Fr(ot.descriptor.id,Ct),Tr=qe(Ge,ot),kr=lt({isMovingForward:xe,draggable:Ge,destination:ot,insideDestination:ur,previousImpact:_t})||Pt({isMovingForward:xe,isInHomeList:Tr,draggable:Ge,draggables:Ct,destination:ot,insideDestination:ur,previousImpact:_t,viewport:Dt,afterCritical:mr});if(!kr)return null;var an=Ai({impact:kr,draggable:Ge,droppable:ot,draggables:Ct,afterCritical:mr}),jn=Ye({draggable:Ge,destination:ot,newPageBorderBoxCenter:an,viewport:Dt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(jn){var Vn=Je({pageBorderBoxCenter:an,draggable:Ge,viewport:Dt});return{clientSelection:Vn,impact:kr,scrollJumpRequest:null}}var Ei=ce(an,vr),di=Be({impact:kr,viewport:Dt,destination:ot,draggables:Ct,maxScrollChange:Ei});return{clientSelection:Lr,impact:di,scrollJumpRequest:Ei}},wt=function(re){var xe=re.subject.active;return xe||me(!1),xe},ut=function(re){var xe=re.isMovingForward,Ge=re.pageBorderBoxCenter,ot=re.source,Ct=re.droppables,_t=re.viewport,Dt=ot.subject.active;if(!Dt)return null;var vr=ot.axis,Lr=fr(Dt[vr.start],Dt[vr.end]),mr=Wt(Ct).filter(function(Tr){return Tr!==ot}).filter(function(Tr){return Tr.isEnabled}).filter(function(Tr){return Boolean(Tr.subject.active)}).filter(function(Tr){return vn(_t.frame)(wt(Tr))}).filter(function(Tr){var kr=wt(Tr);return xe?Dt[vr.crossAxisEnd]<kr[vr.crossAxisEnd]:kr[vr.crossAxisStart]<Dt[vr.crossAxisStart]}).filter(function(Tr){var kr=wt(Tr),an=fr(kr[vr.start],kr[vr.end]);return Lr(kr[vr.start])||Lr(kr[vr.end])||an(Dt[vr.start])||an(Dt[vr.end])}).sort(function(Tr,kr){var an=wt(Tr)[vr.crossAxisStart],jn=wt(kr)[vr.crossAxisStart];return xe?an-jn:jn-an}).filter(function(Tr,kr,an){return wt(Tr)[vr.crossAxisStart]===wt(an[0])[vr.crossAxisStart]});if(!mr.length)return null;if(mr.length===1)return mr[0];var ur=mr.filter(function(Tr){var kr=fr(wt(Tr)[vr.start],wt(Tr)[vr.end]);return kr(Ge[vr.line])});return ur.length===1?ur[0]:ur.length>1?ur.sort(function(Tr,kr){return wt(Tr)[vr.start]-wt(kr)[vr.start]})[0]:mr.sort(function(Tr,kr){var an=Ke(Ge,ft(wt(Tr))),jn=Ke(Ge,ft(wt(kr)));return an!==jn?an-jn:wt(Tr)[vr.start]-wt(kr)[vr.start]})[0]},Ft=function(re,xe){var Ge=re.page.borderBox.center;return Qt(re.descriptor.id,xe)?ce(Ge,xe.displacedBy.point):Ge},wr=function(re,xe){var Ge=re.page.borderBox;return Qt(re.descriptor.id,xe)?Fe(Ge,ee(xe.displacedBy.point)):Ge},hr=function(re){var xe=re.pageBorderBoxCenter,Ge=re.viewport,ot=re.destination,Ct=re.insideDestination,_t=re.afterCritical,Dt=Ct.filter(function(vr){return kt({target:wr(vr,_t),destination:ot,viewport:Ge.frame,withDroppableDisplacement:!0})}).sort(function(vr,Lr){var mr=Ve(xe,zn(ot,Ft(vr,_t))),ur=Ve(xe,zn(ot,Ft(Lr,_t)));return mr<ur?-1:ur<mr?1:vr.descriptor.index-Lr.descriptor.index});return Dt[0]||null},Nr=T(function(re,xe){var Ge=xe[re.line];return{value:Ge,point:Ae(re.line,Ge)}}),Kt=function(re,xe,Ge){var ot=re.axis;if(re.descriptor.mode==="virtual")return Ae(ot.line,xe[ot.line]);var Ct=re.subject.page.contentBox[ot.size],_t=Fr(re.descriptor.id,Ge),Dt=_t.reduce(function(mr,ur){return mr+ur.client.marginBox[ot.size]},0),vr=Dt+xe[ot.line],Lr=vr-Ct;return Lr<=0?null:Ae(ot.line,Lr)},un=function(re,xe){return Object(E.a)({},re,{scroll:Object(E.a)({},re.scroll,{max:xe})})},ar=function(re,xe,Ge){var ot=re.frame;qe(xe,re)&&me(!1),re.subject.withPlaceholder&&me(!1);var Ct=Nr(re.axis,xe.displaceBy).point,_t=Kt(re,Ct,Ge),Dt={placeholderSize:Ct,increasedBy:_t,oldFrameMaxScroll:re.frame?re.frame.scroll.max:null};if(!ot){var vr=je({page:re.subject.page,withPlaceholder:Dt,axis:re.axis,frame:re.frame});return Object(E.a)({},re,{subject:vr})}var Lr=_t?Ee(ot.scroll.max,_t):ot.scroll.max,mr=un(ot,Lr),ur=je({page:re.subject.page,withPlaceholder:Dt,axis:re.axis,frame:mr});return Object(E.a)({},re,{subject:ur,frame:mr})},Gr=function(re){var xe=re.subject.withPlaceholder;xe||me(!1);var Ge=re.frame;if(!Ge){var ot=je({page:re.subject.page,axis:re.axis,frame:null,withPlaceholder:null});return Object(E.a)({},re,{subject:ot})}var Ct=xe.oldFrameMaxScroll;Ct||me(!1);var _t=un(Ge,Ct),Dt=je({page:re.subject.page,axis:re.axis,frame:_t,withPlaceholder:null});return Object(E.a)({},re,{subject:Dt,frame:_t})},Br=function(re){var xe=re.previousPageBorderBoxCenter,Ge=re.moveRelativeTo,ot=re.insideDestination,Ct=re.draggable,_t=re.draggables,Dt=re.destination,vr=re.viewport,Lr=re.afterCritical;if(!Ge){if(ot.length)return null;var mr={displaced:xr,displacedBy:tr,at:{type:"REORDER",destination:{droppableId:Dt.descriptor.id,index:0}}},ur=Ai({impact:mr,draggable:Ct,droppable:Dt,draggables:_t,afterCritical:Lr}),Tr=qe(Ct,Dt)?Dt:ar(Dt,Ct,_t),kr=Ye({draggable:Ct,destination:Tr,newPageBorderBoxCenter:ur,viewport:vr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return kr?mr:null}var an=Boolean(xe[Dt.axis.line]<=Ge.page.borderBox.center[Dt.axis.line]),jn=function(){var Ei=Ge.descriptor.index;return Ge.descriptor.id===Ct.descriptor.id||an?Ei:Ei+1}(),Vn=Nr(Dt.axis,Ct.displaceBy);return dt({draggable:Ct,insideDestination:ot,destination:Dt,viewport:vr,displacedBy:Vn,last:xr,index:jn})},gr=function(re){var xe=re.isMovingForward,Ge=re.previousPageBorderBoxCenter,ot=re.draggable,Ct=re.isOver,_t=re.draggables,Dt=re.droppables,vr=re.viewport,Lr=re.afterCritical,mr=ut({isMovingForward:xe,pageBorderBoxCenter:Ge,source:Ct,droppables:Dt,viewport:vr});if(!mr)return null;var ur=Fr(mr.descriptor.id,_t),Tr=hr({pageBorderBoxCenter:Ge,viewport:vr,destination:mr,insideDestination:ur,afterCritical:Lr}),kr=Br({previousPageBorderBoxCenter:Ge,destination:mr,draggable:ot,draggables:_t,moveRelativeTo:Tr,insideDestination:ur,viewport:vr,afterCritical:Lr});if(!kr)return null;var an=Ai({impact:kr,draggable:ot,droppable:mr,draggables:_t,afterCritical:Lr}),jn=Je({pageBorderBoxCenter:an,draggable:ot,viewport:vr});return{clientSelection:jn,impact:kr,scrollJumpRequest:null}},Sn=function(re){var xe=re.at;return xe?xe.type==="REORDER"?xe.destination.droppableId:xe.combine.droppableId:null},Pn=function(re,xe){var Ge=Sn(re);return Ge?xe[Ge]:null},ii=function(re){var xe=re.state,Ge=re.type,ot=Pn(xe.impact,xe.dimensions.droppables),Ct=Boolean(ot),_t=xe.dimensions.droppables[xe.critical.droppable.id],Dt=ot||_t,vr=Dt.axis.direction,Lr=vr==="vertical"&&(Ge==="MOVE_UP"||Ge==="MOVE_DOWN")||vr==="horizontal"&&(Ge==="MOVE_LEFT"||Ge==="MOVE_RIGHT");if(Lr&&!Ct)return null;var mr=Ge==="MOVE_DOWN"||Ge==="MOVE_RIGHT",ur=xe.dimensions.draggables[xe.critical.draggable.id],Tr=xe.current.page.borderBoxCenter,kr=xe.dimensions,an=kr.draggables,jn=kr.droppables;return Lr?et({isMovingForward:mr,previousPageBorderBoxCenter:Tr,draggable:ur,destination:Dt,draggables:an,viewport:xe.viewport,previousClientSelection:xe.current.client.selection,previousImpact:xe.impact,afterCritical:xe.afterCritical}):gr({isMovingForward:mr,previousPageBorderBoxCenter:Tr,draggable:ur,isOver:Dt,draggables:an,droppables:jn,viewport:xe.viewport,afterCritical:xe.afterCritical})};function oi(Re){return Re.phase==="DRAGGING"||Re.phase==="COLLECTING"}function ti(Re){var re=fr(Re.top,Re.bottom),xe=fr(Re.left,Re.right);return function(ot){return re(ot.y)&&xe(ot.x)}}function bi(Re,re){return Re.left<re.right&&Re.right>re.left&&Re.top<re.bottom&&Re.bottom>re.top}function kn(Re){var re=Re.pageBorderBox,xe=Re.draggable,Ge=Re.candidates,ot=xe.page.borderBox.center,Ct=Ge.map(function(_t){var Dt=_t.axis,vr=Ae(_t.axis.line,re.center[Dt.line],_t.page.borderBox.center[Dt.crossAxisLine]);return{id:_t.descriptor.id,distance:Ve(ot,vr)}}).sort(function(_t,Dt){return Dt.distance-_t.distance});return Ct[0]?Ct[0].id:null}function Ii(Re){var re=Re.pageBorderBox,xe=Re.draggable,Ge=Re.droppables,ot=Wt(Ge).filter(function(Ct){if(!Ct.isEnabled)return!1;var _t=Ct.subject.active;if(!_t)return!1;if(!bi(re,_t))return!1;if(ti(_t)(re.center))return!0;var Dt=Ct.axis,vr=_t.center[Dt.crossAxisLine],Lr=re[Dt.crossAxisStart],mr=re[Dt.crossAxisEnd],ur=fr(_t[Dt.crossAxisStart],_t[Dt.crossAxisEnd]),Tr=ur(Lr),kr=ur(mr);return!Tr&&!kr?!0:Tr?Lr<vr:mr>vr});return ot.length?ot.length===1?ot[0].descriptor.id:kn({pageBorderBox:re,draggable:xe,candidates:ot}):null}var gn=function(re,xe){return r(Fe(re,xe))},Vr=function(re,xe){var Ge=re.frame;return Ge?gn(xe,Ge.scroll.diff.value):xe};function xn(Re){var re=Re.displaced,xe=Re.id;return Boolean(re.visible[xe]||re.invisible[xe])}function tn(Re){var re=Re.draggable,xe=Re.closest,Ge=Re.inHomeList;return xe?Ge&&xe.descriptor.index>re.descriptor.index?xe.descriptor.index-1:xe.descriptor.index:null}var ui=function(re){var xe=re.pageBorderBoxWithDroppableScroll,Ge=re.draggable,ot=re.destination,Ct=re.insideDestination,_t=re.last,Dt=re.viewport,vr=re.afterCritical,Lr=ot.axis,mr=Nr(ot.axis,Ge.displaceBy),ur=mr.value,Tr=xe[Lr.start],kr=xe[Lr.end],an=Ot(Ge,Ct),jn=ve(an,function(Ei){var di=Ei.descriptor.id,ua=Ei.page.borderBox.center[Lr.line],ji=Qt(di,vr),Ca=xn({displaced:_t,id:di});return ji?Ca?kr<=ua:Tr<ua-ur:Ca?kr<=ua+ur:Tr<ua}),Vn=tn({draggable:Ge,closest:jn,inHomeList:qe(Ge,ot)});return dt({draggable:Ge,insideDestination:Ct,destination:ot,viewport:Dt,last:_t,displacedBy:mr,index:Vn})},qn=4,wi=function(re){var xe=re.draggable,Ge=re.pageBorderBoxWithDroppableScroll,ot=re.previousImpact,Ct=re.destination,_t=re.insideDestination,Dt=re.afterCritical;if(!Ct.isCombineEnabled)return null;var vr=Ct.axis,Lr=Nr(Ct.axis,xe.displaceBy),mr=Lr.value,ur=Ge[vr.start],Tr=Ge[vr.end],kr=Ot(xe,_t),an=ve(kr,function(Vn){var Ei=Vn.descriptor.id,di=Vn.page.borderBox,ua=di[vr.size],ji=ua/qn,Ca=Qt(Ei,Dt),ha=xn({displaced:ot.displaced,id:Ei});return Ca?ha?Tr>di[vr.start]+ji&&Tr<di[vr.end]-ji:ur>di[vr.start]-mr+ji&&ur<di[vr.end]-mr-ji:ha?Tr>di[vr.start]+mr+ji&&Tr<di[vr.end]+mr-ji:ur>di[vr.start]+ji&&ur<di[vr.end]-ji});if(!an)return null;var jn={displacedBy:Lr,displaced:ot.displaced,at:{type:"COMBINE",combine:{draggableId:an.descriptor.id,droppableId:Ct.descriptor.id}}};return jn},Qn=function(re){var xe=re.pageOffset,Ge=re.draggable,ot=re.draggables,Ct=re.droppables,_t=re.previousImpact,Dt=re.viewport,vr=re.afterCritical,Lr=gn(Ge.page.borderBox,xe),mr=Ii({pageBorderBox:Lr,draggable:Ge,droppables:Ct});if(!mr)return Ar;var ur=Ct[mr],Tr=Fr(ur.descriptor.id,ot),kr=Vr(ur,Lr);return wi({pageBorderBoxWithDroppableScroll:kr,draggable:Ge,previousImpact:_t,destination:ur,insideDestination:Tr,afterCritical:vr})||ui({pageBorderBoxWithDroppableScroll:kr,draggable:Ge,destination:ur,insideDestination:Tr,last:_t.displaced,viewport:Dt,afterCritical:vr})},Hi=function(re,xe){var Ge;return Object(E.a)({},re,(Ge={},Ge[xe.descriptor.id]=xe,Ge))},ri=function(re){var xe=re.previousImpact,Ge=re.impact,ot=re.droppables,Ct=Sn(xe),_t=Sn(Ge);if(!Ct)return ot;if(Ct===_t)return ot;var Dt=ot[Ct];if(!Dt.subject.withPlaceholder)return ot;var vr=Gr(Dt);return Hi(ot,vr)},Mi=function(re){var xe=re.draggable,Ge=re.draggables,ot=re.droppables,Ct=re.previousImpact,_t=re.impact,Dt=ri({previousImpact:Ct,impact:_t,droppables:ot}),vr=Sn(_t);if(!vr)return Dt;var Lr=ot[vr];if(qe(xe,Lr))return Dt;if(Lr.subject.withPlaceholder)return Dt;var mr=ar(Lr,xe,Ge);return Hi(Dt,mr)},dn=function(re){var xe=re.state,Ge=re.clientSelection,ot=re.dimensions,Ct=re.viewport,_t=re.impact,Dt=re.scrollJumpRequest,vr=Ct||xe.viewport,Lr=ot||xe.dimensions,mr=Ge||xe.current.client.selection,ur=ce(mr,xe.initial.client.selection),Tr={offset:ur,selection:mr,borderBoxCenter:Ee(xe.initial.client.borderBoxCenter,ur)},kr={selection:Ee(Tr.selection,vr.scroll.current),borderBoxCenter:Ee(Tr.borderBoxCenter,vr.scroll.current),offset:Ee(Tr.offset,vr.scroll.diff.value)},an={client:Tr,page:kr};if(xe.phase==="COLLECTING")return Object(E.a)({phase:"COLLECTING"},xe,{dimensions:Lr,viewport:vr,current:an});var jn=Lr.draggables[xe.critical.draggable.id],Vn=_t||Qn({pageOffset:kr.offset,draggable:jn,draggables:Lr.draggables,droppables:Lr.droppables,previousImpact:xe.impact,viewport:vr,afterCritical:xe.afterCritical}),Ei=Mi({draggable:jn,impact:Vn,previousImpact:xe.impact,draggables:Lr.draggables,droppables:Lr.droppables}),di=Object(E.a)({},xe,{current:an,dimensions:{draggables:Lr.draggables,droppables:Ei},impact:Vn,viewport:vr,scrollJumpRequest:Dt||null,forceShouldAnimate:Dt?!1:null});return di};function Ur(Re,re){return Re.map(function(xe){return re[xe]})}var bn=function(re){var xe=re.impact,Ge=re.viewport,ot=re.draggables,Ct=re.destination,_t=re.forceShouldAnimate,Dt=xe.displaced,vr=Ur(Dt.all,ot),Lr=cn({afterDragging:vr,destination:Ct,displacedBy:xe.displacedBy,viewport:Ge.frame,forceShouldAnimate:_t,last:Dt});return Object(E.a)({},xe,{displaced:Lr})},Mn=function(re){var xe=re.impact,Ge=re.draggable,ot=re.droppable,Ct=re.draggables,_t=re.viewport,Dt=re.afterCritical,vr=Ai({impact:xe,draggable:Ge,draggables:Ct,droppable:ot,afterCritical:Dt});return Je({pageBorderBoxCenter:vr,draggable:Ge,viewport:_t})},Gn=function(re){var xe=re.state,Ge=re.dimensions,ot=re.viewport;xe.movementMode==="SNAP"||me(!1);var Ct=xe.impact,_t=ot||xe.viewport,Dt=Ge||xe.dimensions,vr=Dt.draggables,Lr=Dt.droppables,mr=vr[xe.critical.draggable.id],ur=Sn(Ct);ur||me(!1);var Tr=Lr[ur],kr=bn({impact:Ct,viewport:_t,destination:Tr,draggables:vr}),an=Mn({impact:kr,draggable:mr,droppable:Tr,draggables:vr,viewport:_t,afterCritical:xe.afterCritical});return dn({impact:kr,clientSelection:an,state:xe,dimensions:Dt,viewport:_t})},$n=function(re){return{index:re.index,droppableId:re.droppableId}},hi=function(re){var xe=re.draggable,Ge=re.home,ot=re.draggables,Ct=re.viewport,_t=Nr(Ge.axis,xe.displaceBy),Dt=Fr(Ge.descriptor.id,ot),vr=Dt.indexOf(xe);vr!==-1||me(!1);var Lr=Dt.slice(vr+1),mr=Lr.reduce(function(an,jn){return an[jn.descriptor.id]=!0,an},{}),ur={inVirtualList:Ge.descriptor.mode==="virtual",displacedBy:_t,effected:mr},Tr=cn({afterDragging:Lr,destination:Ge,displacedBy:_t,last:null,viewport:Ct.frame,forceShouldAnimate:!1}),kr={displaced:Tr,displacedBy:_t,at:{type:"REORDER",destination:$n(xe.descriptor)}};return{impact:kr,afterCritical:ur}},fi=function(re,xe){return{draggables:re.draggables,droppables:Hi(re.droppables,xe)}},gi=function(re){},Wi=function(re){},na=function(re){var xe=re.draggable,Ge=re.offset,ot=re.initialWindowScroll,Ct=p(xe.client,Ge),_t=g(Ct,ot),Dt=Object(E.a)({},xe,{placeholder:Object(E.a)({},xe.placeholder,{client:Ct}),client:Ct,page:_t});return Dt},$i=function(re){var xe=re.frame;return xe||me(!1),xe},Ha=function(re){var xe=re.additions,Ge=re.updatedDroppables,ot=re.viewport,Ct=ot.scroll.diff.value;return xe.map(function(_t){var Dt=_t.descriptor.droppableId,vr=Ge[Dt],Lr=$i(vr),mr=Lr.scroll.diff.value,ur=Ee(Ct,mr),Tr=na({draggable:_t,offset:ur,initialWindowScroll:ot.scroll.initial});return Tr})},pi=function(re){var xe=re.state,Ge=re.published;gi();var ot=Ge.modified.map(function(ji){var Ca=xe.dimensions.droppables[ji.droppableId],ha=pe(Ca,ji.scroll);return ha}),Ct=Object(E.a)({},xe.dimensions.droppables,{},qt(ot)),_t=ct(Ha({additions:Ge.additions,updatedDroppables:Ct,viewport:xe.viewport})),Dt=Object(E.a)({},xe.dimensions.draggables,{},_t);Ge.removals.forEach(function(ji){delete Dt[ji]});var vr={droppables:Ct,draggables:Dt},Lr=Sn(xe.impact),mr=Lr?vr.droppables[Lr]:null,ur=vr.draggables[xe.critical.draggable.id],Tr=vr.droppables[xe.critical.droppable.id],kr=hi({draggable:ur,home:Tr,draggables:Dt,viewport:xe.viewport}),an=kr.impact,jn=kr.afterCritical,Vn=mr&&mr.isCombineEnabled?xe.impact:an,Ei=Qn({pageOffset:xe.current.page.offset,draggable:vr.draggables[xe.critical.draggable.id],draggables:vr.draggables,droppables:vr.droppables,previousImpact:Vn,viewport:xe.viewport,afterCritical:jn});Wi();var di=Object(E.a)({phase:"DRAGGING"},xe,{phase:"DRAGGING",impact:Ei,onLiftImpact:an,dimensions:vr,afterCritical:jn,forceShouldAnimate:!1});if(xe.phase==="COLLECTING")return di;var ua=Object(E.a)({phase:"DROP_PENDING"},di,{phase:"DROP_PENDING",reason:xe.reason,isWaiting:!1});return ua},ln=function(re){return re.movementMode==="SNAP"},_i=function(re,xe,Ge){var ot=fi(re.dimensions,xe);return!ln(re)||Ge?dn({state:re,dimensions:ot}):Gn({state:re,dimensions:ot})};function Ji(Re){return Re.isDragging&&Re.movementMode==="SNAP"?Object(E.a)({phase:"DRAGGING"},Re,{scrollJumpRequest:null}):Re}var Fi={phase:"IDLE",completed:null,shouldFlush:!1},ea=function(re,xe){if(re===void 0&&(re=Fi),xe.type==="FLUSH")return Object(E.a)({},Fi,{shouldFlush:!0});if(xe.type==="INITIAL_PUBLISH"){re.phase==="IDLE"||me(!1);var Ge=xe.payload,ot=Ge.critical,Ct=Ge.clientSelection,_t=Ge.viewport,Dt=Ge.dimensions,vr=Ge.movementMode,Lr=Dt.draggables[ot.draggable.id],mr=Dt.droppables[ot.droppable.id],ur={selection:Ct,borderBoxCenter:Lr.client.borderBox.center,offset:De},Tr={client:ur,page:{selection:Ee(ur.selection,_t.scroll.initial),borderBoxCenter:Ee(ur.selection,_t.scroll.initial),offset:Ee(ur.selection,_t.scroll.diff.value)}},kr=Wt(Dt.droppables).every(function(Eo){return!Eo.isFixedOnPage}),an=hi({draggable:Lr,home:mr,draggables:Dt.draggables,viewport:_t}),jn=an.impact,Vn=an.afterCritical,Ei={phase:"DRAGGING",isDragging:!0,critical:ot,movementMode:vr,dimensions:Dt,initial:Tr,current:Tr,isWindowScrollAllowed:kr,impact:jn,afterCritical:Vn,onLiftImpact:jn,viewport:_t,scrollJumpRequest:null,forceShouldAnimate:null};return Ei}if(xe.type==="COLLECTION_STARTING"){if(re.phase==="COLLECTING"||re.phase==="DROP_PENDING")return re;re.phase==="DRAGGING"||me(!1);var di=Object(E.a)({phase:"COLLECTING"},re,{phase:"COLLECTING"});return di}if(xe.type==="PUBLISH_WHILE_DRAGGING")return re.phase==="COLLECTING"||re.phase==="DROP_PENDING"||me(!1),pi({state:re,published:xe.payload});if(xe.type==="MOVE"){if(re.phase==="DROP_PENDING")return re;oi(re)||me(!1);var ua=xe.payload.client;return ne(ua,re.current.client.selection)?re:dn({state:re,clientSelection:ua,impact:ln(re)?re.impact:null})}if(xe.type==="UPDATE_DROPPABLE_SCROLL"){if(re.phase==="DROP_PENDING")return Ji(re);if(re.phase==="COLLECTING")return Ji(re);oi(re)||me(!1);var ji=xe.payload,Ca=ji.id,ha=ji.newScroll,Za=re.dimensions.droppables[Ca];if(!Za)return re;var po=pe(Za,ha);return _i(re,po,!1)}if(xe.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(re.phase==="DROP_PENDING")return re;oi(re)||me(!1);var F=xe.payload,K=F.id,te=F.isEnabled,ae=re.dimensions.droppables[K];ae||me(!1),ae.isEnabled!==te||me(!1);var he=Object(E.a)({},ae,{isEnabled:te});return _i(re,he,!0)}if(xe.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(re.phase==="DROP_PENDING")return re;oi(re)||me(!1);var Pe=xe.payload,mt=Pe.id,It=Pe.isCombineEnabled,Yt=re.dimensions.droppables[mt];Yt||me(!1),Yt.isCombineEnabled!==It||me(!1);var rr=Object(E.a)({},Yt,{isCombineEnabled:It});return _i(re,rr,!0)}if(xe.type==="MOVE_BY_WINDOW_SCROLL"){if(re.phase==="DROP_PENDING"||re.phase==="DROP_ANIMATING")return re;oi(re)||me(!1),re.isWindowScrollAllowed||me(!1);var en=xe.payload.newScroll;if(ne(re.viewport.scroll.current,en))return Ji(re);var hn=Pi(re.viewport,en);return ln(re)?Gn({state:re,viewport:hn}):dn({state:re,viewport:hn})}if(xe.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!oi(re))return re;var Dn=xe.payload.maxScroll;if(ne(Dn,re.viewport.scroll.max))return re;var Bn=Object(E.a)({},re.viewport,{scroll:Object(E.a)({},re.viewport.scroll,{max:Dn})});return Object(E.a)({phase:"DRAGGING"},re,{viewport:Bn})}if(xe.type==="MOVE_UP"||xe.type==="MOVE_DOWN"||xe.type==="MOVE_LEFT"||xe.type==="MOVE_RIGHT"){if(re.phase==="COLLECTING"||re.phase==="DROP_PENDING")return re;re.phase==="DRAGGING"||me(!1);var vi=ii({state:re,type:xe.type});return vi?dn({state:re,impact:vi.impact,clientSelection:vi.clientSelection,scrollJumpRequest:vi.scrollJumpRequest}):re}if(xe.type==="DROP_PENDING"){var Ki=xe.payload.reason;re.phase==="COLLECTING"||me(!1);var Qi=Object(E.a)({phase:"DROP_PENDING"},re,{phase:"DROP_PENDING",isWaiting:!0,reason:Ki});return Qi}if(xe.type==="DROP_ANIMATE"){var Xi=xe.payload,Vi=Xi.completed,fa=Xi.dropDuration,ba=Xi.newHomeClientOffset;re.phase==="DRAGGING"||re.phase==="DROP_PENDING"||me(!1);var qa={phase:"DROP_ANIMATING",completed:Vi,dropDuration:fa,newHomeClientOffset:ba,dimensions:re.dimensions};return qa}if(xe.type==="DROP_COMPLETE"){var Ba=xe.payload.completed;return{phase:"IDLE",completed:Ba,shouldFlush:!1}}return re},Vt=function(re){return{type:"BEFORE_INITIAL_CAPTURE",payload:re}},Xr=function(re){return{type:"LIFT",payload:re}},nn=function(re){return{type:"INITIAL_PUBLISH",payload:re}},fn=function(re){return{type:"PUBLISH_WHILE_DRAGGING",payload:re}},Ze=function(){return{type:"COLLECTION_STARTING",payload:null}},Lt=function(re){return{type:"UPDATE_DROPPABLE_SCROLL",payload:re}},cr=function(re){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:re}},lr=function(re){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:re}},_r=function(re){return{type:"MOVE",payload:re}},Rr=function(re){return{type:"MOVE_BY_WINDOW_SCROLL",payload:re}},Wr=function(re){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:re}},on=function(){return{type:"MOVE_UP",payload:null}},En=function(){return{type:"MOVE_DOWN",payload:null}},An=function(){return{type:"MOVE_RIGHT",payload:null}},Rn=function(){return{type:"MOVE_LEFT",payload:null}},Un=function(){return{type:"FLUSH",payload:null}},wn=function(re){return{type:"DROP_ANIMATE",payload:re}},_n=function(re){return{type:"DROP_COMPLETE",payload:re}},Cn=function(re){return{type:"DROP",payload:re}},Kn=function(re){return{type:"DROP_PENDING",payload:re}},Yn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function ni(Re){if(Re.length<=1)return;for(var re=Re.map(function(Dt){return Dt.descriptor.index}),xe={},Ge=1;Ge<re.length;Ge++){var ot=re[Ge],Ct=re[Ge-1];ot!==Ct+1&&(xe[ot]=!0)}if(!Object.keys(xe).length)return;var _t=re.map(function(Dt){var vr=Boolean(xe[Dt]);return vr?"[\u{1F525}"+Dt+"]":""+Dt}).join(", ")}function yi(Re,re){if(!1)var xe}var li=function(re){return function(xe){var Ge=xe.getState,ot=xe.dispatch;return function(Ct){return function(_t){if(_t.type!=="LIFT"){Ct(_t);return}var Dt=_t.payload,vr=Dt.id,Lr=Dt.clientSelection,mr=Dt.movementMode,ur=Ge();ur.phase==="DROP_ANIMATING"&&ot(_n({completed:ur.completed})),Ge().phase==="IDLE"||me(!1),ot(Un()),ot(Vt({draggableId:vr,movementMode:mr}));var Tr={shouldPublishImmediately:mr==="SNAP"},kr={draggableId:vr,scrollOptions:Tr},an=re.startPublishing(kr),jn=an.critical,Vn=an.dimensions,Ei=an.viewport;yi(jn,Vn),ot(nn({critical:jn,dimensions:Vn,clientSelection:Lr,movementMode:mr,viewport:Ei}))}}}},Oi=function(re){return function(){return function(xe){return function(Ge){Ge.type==="INITIAL_PUBLISH"&&re.dragging(),Ge.type==="DROP_ANIMATE"&&re.dropping(Ge.payload.completed.result.reason),(Ge.type==="FLUSH"||Ge.type==="DROP_COMPLETE")&&re.resting(),xe(Ge)}}}},ki={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Si={opacity:{drop:0,combining:.7},scale:{drop:.75}},mi={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Li=mi.outOfTheWay+"s "+ki.outOfTheWay,Wn={fluid:"opacity "+Li,snap:"transform "+Li+", opacity "+Li,drop:function(re){var xe=re+"s "+ki.drop;return"transform "+xe+", opacity "+xe},outOfTheWay:"transform "+Li,placeholder:"height "+Li+", width "+Li+", margin "+Li},Di=function(re){return ne(re,De)?null:"translate("+re.x+"px, "+re.y+"px)"},zi={moveTo:Di,drop:function(re,xe){var Ge=Di(re);return Ge?xe?Ge+" scale("+Si.scale.drop+")":Ge:null}},yr=mi.minDropTime,Mr=mi.maxDropTime,Qr=Mr-yr,Ir=1500,Gt=.6,Sr=function(re){var xe=re.current,Ge=re.destination,ot=re.reason,Ct=Ve(xe,Ge);if(Ct<=0)return yr;if(Ct>=Ir)return Mr;var _t=Ct/Ir,Dt=yr+Qr*_t,vr=ot==="CANCEL"?Dt*Gt:Dt;return Number(vr.toFixed(2))},Zt=function(re){var xe=re.impact,Ge=re.draggable,ot=re.dimensions,Ct=re.viewport,_t=re.afterCritical,Dt=ot.draggables,vr=ot.droppables,Lr=Sn(xe),mr=Lr?vr[Lr]:null,ur=vr[Ge.descriptor.droppableId],Tr=Mn({impact:xe,draggable:Ge,draggables:Dt,afterCritical:_t,droppable:mr||ur,viewport:Ct}),kr=ce(Tr,Ge.client.borderBox.center);return kr},jr=function(re){var xe=re.draggables,Ge=re.reason,ot=re.lastImpact,Ct=re.home,_t=re.viewport,Dt=re.onLiftImpact;if(!ot.at||Ge!=="DROP"){var vr=bn({draggables:xe,impact:Dt,destination:Ct,viewport:_t,forceShouldAnimate:!0});return{impact:vr,didDropInsideDroppable:!1}}if(ot.at.type==="REORDER")return{impact:ot,didDropInsideDroppable:!0};var Lr=Object(E.a)({},ot,{displaced:xr});return{impact:Lr,didDropInsideDroppable:!0}},Kr=function(re){var xe=re.getState,Ge=re.dispatch;return function(ot){return function(Ct){if(Ct.type!=="DROP"){ot(Ct);return}var _t=xe(),Dt=Ct.payload.reason;if(_t.phase==="COLLECTING"){Ge(Kn({reason:Dt}));return}if(_t.phase==="IDLE")return;var vr=_t.phase==="DROP_PENDING"&&_t.isWaiting;vr&&me(!1),_t.phase==="DRAGGING"||_t.phase==="DROP_PENDING"||me(!1);var Lr=_t.critical,mr=_t.dimensions,ur=mr.draggables[_t.critical.draggable.id],Tr=jr({reason:Dt,lastImpact:_t.impact,afterCritical:_t.afterCritical,onLiftImpact:_t.onLiftImpact,home:_t.dimensions.droppables[_t.critical.droppable.id],viewport:_t.viewport,draggables:_t.dimensions.draggables}),kr=Tr.impact,an=Tr.didDropInsideDroppable,jn=an?er(kr):null,Vn=an?nr(kr):null,Ei={index:Lr.draggable.index,droppableId:Lr.droppable.id},di={draggableId:ur.descriptor.id,type:ur.descriptor.type,source:Ei,reason:Dt,mode:_t.movementMode,destination:jn,combine:Vn},ua=Zt({impact:kr,draggable:ur,dimensions:mr,viewport:_t.viewport,afterCritical:_t.afterCritical}),ji={critical:_t.critical,afterCritical:_t.afterCritical,result:di,impact:kr},Ca=!ne(_t.current.client.offset,ua)||Boolean(di.combine);if(!Ca){Ge(_n({completed:ji}));return}var ha=Sr({current:_t.current.client.offset,destination:ua,reason:Dt}),Za={newHomeClientOffset:ua,dropDuration:ha,completed:ji};Ge(wn(Za))}}},pn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function sn(Re){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(xe){if(xe.target!==window&&xe.target!==window.document)return;Re()}}}function yn(Re){var re=Re.onWindowScroll;function xe(){re(pn())}var Ge=O(xe),ot=sn(Ge),Ct=Z;function _t(){return Ct!==Z}function Dt(){_t()&&me(!1),Ct=Q(window,[ot])}function vr(){_t()||me(!1),Ge.cancel(),Ct(),Ct=Z}return{start:Dt,stop:vr,isActive:_t}}var Fn=function(re){return re.type==="DROP_COMPLETE"||re.type==="DROP_ANIMATE"||re.type==="FLUSH"},Xn=function(re){var xe=yn({onWindowScroll:function(ot){re.dispatch(Rr({newScroll:ot}))}});return function(Ge){return function(ot){!xe.isActive()&&ot.type==="INITIAL_PUBLISH"&&xe.start(),xe.isActive()&&Fn(ot)&&xe.stop(),Ge(ot)}}},Jn=function(re){var xe=!1,Ge=!1,ot=setTimeout(function(){Ge=!0}),Ct=function(Dt){if(xe)return;if(Ge)return;xe=!0,re(Dt),clearTimeout(ot)};return Ct.wasCalled=function(){return xe},Ct},Ti=function(){var re=[],xe=function(_t){var Dt=Qe(re,function(mr){return mr.timerId===_t});Dt!==-1||me(!1);var vr=re.splice(Dt,1),Lr=vr[0];Lr.callback()},Ge=function(_t){var Dt=setTimeout(function(){return xe(Dt)}),vr={timerId:Dt,callback:_t};re.push(vr)},ot=function(){if(!re.length)return;var _t=[].concat(re);re.length=0,_t.forEach(function(Dt){clearTimeout(Dt.timerId),Dt.callback()})};return{add:Ge,flush:ot}},ta=function(re,xe){return re==null&&xe==null?!0:re==null||xe==null?!1:re.droppableId===xe.droppableId&&re.index===xe.index},oa=function(re,xe){return re==null&&xe==null?!0:re==null||xe==null?!1:re.draggableId===xe.draggableId&&re.droppableId===xe.droppableId},da=function(re,xe){if(re===xe)return!0;var Ge=re.draggable.id===xe.draggable.id&&re.draggable.droppableId===xe.draggable.droppableId&&re.draggable.type===xe.draggable.type&&re.draggable.index===xe.draggable.index,ot=re.droppable.id===xe.droppable.id&&re.droppable.type===xe.droppable.type;return Ge&&ot},ca=function(re,xe){gi(),xe(),Wi()},ma=function(re,xe){return{draggableId:re.draggable.id,type:re.droppable.type,source:{droppableId:re.droppable.id,index:re.draggable.index},mode:xe}},Ui=function(re,xe,Ge,ot){if(!re){Ge(ot(xe));return}var Ct=Jn(Ge),_t={announce:Ct};re(xe,_t),Ct.wasCalled()||Ge(ot(xe))},Ni=function(re,xe){var Ge=Ti(),ot=null,Ct=function(kr,an){ot&&me(!1),ca("onBeforeCapture",function(){var jn=re().onBeforeCapture;if(jn){var Vn={draggableId:kr,mode:an};jn(Vn)}})},_t=function(kr,an){ot&&me(!1),ca("onBeforeDragStart",function(){var jn=re().onBeforeDragStart;jn&&jn(ma(kr,an))})},Dt=function(kr,an){ot&&me(!1);var jn=ma(kr,an);ot={mode:an,lastCritical:kr,lastLocation:jn.source,lastCombine:null},Ge.add(function(){ca("onDragStart",function(){return Ui(re().onDragStart,jn,xe,we.onDragStart)})})},vr=function(kr,an){var jn=er(an),Vn=nr(an);ot||me(!1);var Ei=!da(kr,ot.lastCritical);Ei&&(ot.lastCritical=kr);var di=!ta(ot.lastLocation,jn);di&&(ot.lastLocation=jn);var ua=!oa(ot.lastCombine,Vn);if(ua&&(ot.lastCombine=Vn),!Ei&&!di&&!ua)return;var ji=Object(E.a)({},ma(kr,ot.mode),{combine:Vn,destination:jn});Ge.add(function(){ca("onDragUpdate",function(){return Ui(re().onDragUpdate,ji,xe,we.onDragUpdate)})})},Lr=function(){ot||me(!1),Ge.flush()},mr=function(kr){ot||me(!1),ot=null,ca("onDragEnd",function(){return Ui(re().onDragEnd,kr,xe,we.onDragEnd)})},ur=function(){if(!ot)return;var kr=Object(E.a)({},ma(ot.lastCritical,ot.mode),{combine:null,destination:null,reason:"CANCEL"});mr(kr)};return{beforeCapture:Ct,beforeStart:_t,start:Dt,update:vr,flush:Lr,drop:mr,abort:ur}},ra=function(re,xe){var Ge=Ni(re,xe);return function(ot){return function(Ct){return function(_t){if(_t.type==="BEFORE_INITIAL_CAPTURE"){Ge.beforeCapture(_t.payload.draggableId,_t.payload.movementMode);return}if(_t.type==="INITIAL_PUBLISH"){var Dt=_t.payload.critical;Ge.beforeStart(Dt,_t.payload.movementMode),Ct(_t),Ge.start(Dt,_t.payload.movementMode);return}if(_t.type==="DROP_COMPLETE"){var vr=_t.payload.completed.result;Ge.flush(),Ct(_t),Ge.drop(vr);return}if(Ct(_t),_t.type==="FLUSH"){Ge.abort();return}var Lr=ot.getState();Lr.phase==="DRAGGING"&&Ge.update(Lr.critical,Lr.impact)}}}},qi=function(re){return function(xe){return function(Ge){if(Ge.type!=="DROP_ANIMATION_FINISHED"){xe(Ge);return}var ot=re.getState();ot.phase==="DROP_ANIMATING"||me(!1),re.dispatch(_n({completed:ot.completed}))}}},Aa=function(re){var xe=null,Ge=null;function ot(){Ge&&(cancelAnimationFrame(Ge),Ge=null),xe&&(xe(),xe=null)}return function(Ct){return function(_t){if((_t.type==="FLUSH"||_t.type==="DROP_COMPLETE"||_t.type==="DROP_ANIMATION_FINISHED")&&ot(),Ct(_t),_t.type!=="DROP_ANIMATE")return;var Dt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Lr=re.getState();Lr.phase==="DROP_ANIMATING"&&re.dispatch(Yn())}};Ge=requestAnimationFrame(function(){Ge=null,xe=Q(window,[Dt])})}}},Oa=function(re){return function(){return function(xe){return function(Ge){(Ge.type==="DROP_COMPLETE"||Ge.type==="FLUSH"||Ge.type==="DROP_ANIMATE")&&re.stopPublishing(),xe(Ge)}}}},Zi=function(re){var xe=!1;return function(){return function(Ge){return function(ot){if(ot.type==="INITIAL_PUBLISH"){xe=!0,re.tryRecordFocus(ot.payload.critical.draggable.id),Ge(ot),re.tryRestoreFocusRecorded();return}if(Ge(ot),!xe)return;if(ot.type==="FLUSH"){xe=!1,re.tryRestoreFocusRecorded();return}if(ot.type==="DROP_COMPLETE"){xe=!1;var Ct=ot.payload.completed.result;Ct.combine&&re.tryShiftRecord(Ct.draggableId,Ct.combine.draggableId),re.tryRestoreFocusRecorded()}}}}},Gi=function(re){return re.type==="DROP_COMPLETE"||re.type==="DROP_ANIMATE"||re.type==="FLUSH"},La=function(re){return function(xe){return function(Ge){return function(ot){if(Gi(ot)){re.stop(),Ge(ot);return}if(ot.type==="INITIAL_PUBLISH"){Ge(ot);var Ct=xe.getState();Ct.phase==="DRAGGING"||me(!1),re.start(Ct);return}Ge(ot),re.scroll(xe.getState())}}}},va=function(re){return function(xe){return function(Ge){if(xe(Ge),Ge.type!=="PUBLISH_WHILE_DRAGGING")return;var ot=re.getState();if(ot.phase!=="DROP_PENDING")return;if(ot.isWaiting)return;re.dispatch(Cn({reason:ot.reason}))}}},Ci=I.d,Sa=function(re){var xe=re.dimensionMarshal,Ge=re.focusMarshal,ot=re.styleMarshal,Ct=re.getResponders,_t=re.announce,Dt=re.autoScroller;return Object(I.e)(ea,Ci(Object(I.a)(Oi(ot),Oa(xe),li(xe),Kr,qi,Aa,va,La(Dt),Xn,Zi(Ge),ra(Ct,_t))))},Da=function(){return{additions:{},removals:{},modified:{}}};function Na(Re){var re=Re.registry,xe=Re.callbacks,Ge=Da(),ot=null,Ct=function(){if(ot)return;xe.collectionStarting(),ot=requestAnimationFrame(function(){ot=null,gi();var mr=Ge,ur=mr.additions,Tr=mr.removals,kr=mr.modified,an=Object.keys(ur).map(function(Ei){return re.draggable.getById(Ei).getDimension(De)}).sort(function(Ei,di){return Ei.descriptor.index-di.descriptor.index}),jn=Object.keys(kr).map(function(Ei){var di=re.droppable.getById(Ei),ua=di.callbacks.getScrollWhileDragging();return{droppableId:Ei,scroll:ua}}),Vn={additions:an,removals:Object.keys(Tr),modified:jn};Ge=Da(),Wi(),xe.publish(Vn)})},_t=function(mr){var ur=mr.descriptor.id;Ge.additions[ur]=mr,Ge.modified[mr.descriptor.droppableId]=!0,Ge.removals[ur]&&delete Ge.removals[ur],Ct()},Dt=function(mr){var ur=mr.descriptor;Ge.removals[ur.id]=!0,Ge.modified[ur.droppableId]=!0,Ge.additions[ur.id]&&delete Ge.additions[ur.id],Ct()},vr=function(){if(!ot)return;cancelAnimationFrame(ot),ot=null,Ge=Da()};return{add:_t,remove:Dt,stop:vr}}var Ua=function(re){var xe=re.scrollHeight,Ge=re.scrollWidth,ot=re.height,Ct=re.width,_t=ce({x:Ge,y:xe},{x:Ct,y:ot}),Dt={x:Math.max(0,_t.x),y:Math.max(0,_t.y)};return Dt},Pa=function(){var re=document.documentElement;return re||me(!1),re},za=function(){var re=Pa(),xe=Ua({scrollHeight:re.scrollHeight,scrollWidth:re.scrollWidth,width:re.clientWidth,height:re.clientHeight});return xe},xa=function(){var re=pn(),xe=za(),Ge=re.y,ot=re.x,Ct=Pa(),_t=Ct.clientWidth,Dt=Ct.clientHeight,vr=ot+_t,Lr=Ge+Dt,mr=r({top:Ge,left:ot,right:vr,bottom:Lr}),ur={frame:mr,scroll:{initial:re,current:re,max:xe,diff:{value:De,displacement:De}}};return ur},ja=function(re){var xe=re.critical,Ge=re.scrollOptions,ot=re.registry;gi();var Ct=xa(),_t=Ct.scroll.current,Dt=xe.droppable,vr=ot.droppable.getAllByType(Dt.type).map(function(Tr){return Tr.callbacks.getDimensionAndWatchScroll(_t,Ge)}),Lr=ot.draggable.getAllByType(xe.draggable.type).map(function(Tr){return Tr.getDimension(_t)}),mr={draggables:ct(Lr),droppables:qt(vr)};Wi();var ur={dimensions:mr,critical:xe,viewport:Ct};return ur};function io(Re,re,xe){if(xe.descriptor.id===re.id)return!1;if(xe.descriptor.type!==re.type)return!1;var Ge=Re.droppable.getById(xe.descriptor.droppableId);return!(Ge.descriptor.mode!=="virtual")}var ia=function(re,xe){var Ge=null,ot=Na({callbacks:{publish:xe.publishWhileDragging,collectionStarting:xe.collectionStarting},registry:re}),Ct=function(an,jn){if(re.droppable.exists(an)||me(!1),!Ge)return;xe.updateDroppableIsEnabled({id:an,isEnabled:jn})},_t=function(an,jn){if(!Ge)return;re.droppable.exists(an)||me(!1),xe.updateDroppableIsCombineEnabled({id:an,isCombineEnabled:jn})},Dt=function(an,jn){if(!Ge)return;re.droppable.exists(an)||me(!1),xe.updateDroppableScroll({id:an,newScroll:jn})},vr=function(an,jn){if(!Ge)return;re.droppable.getById(an).callbacks.scroll(jn)},Lr=function(){if(!Ge)return;ot.stop();var an=Ge.critical.droppable;re.droppable.getAllByType(an.type).forEach(function(jn){return jn.callbacks.dragStopped()}),Ge.unsubscribe(),Ge=null},mr=function(an){Ge||me(!1);var jn=Ge.critical.draggable;an.type==="ADDITION"&&(io(re,jn,an.value)&&ot.add(an.value)),an.type==="REMOVAL"&&(io(re,jn,an.value)&&ot.remove(an.value))},ur=function(an){Ge&&me(!1);var jn=re.draggable.getById(an.draggableId),Vn=re.droppable.getById(jn.descriptor.droppableId),Ei={draggable:jn.descriptor,droppable:Vn.descriptor},di=re.subscribe(mr);return Ge={critical:Ei,unsubscribe:di},ja({critical:Ei,registry:re,scrollOptions:an.scrollOptions})},Tr={updateDroppableIsEnabled:Ct,updateDroppableIsCombineEnabled:_t,scrollDroppable:vr,updateDroppableScroll:Dt,startPublishing:ur,stopPublishing:Lr};return Tr},lo=function(re,xe){return re.phase==="IDLE"?!0:re.phase!=="DROP_ANIMATING"||re.completed.result.draggableId===xe?!1:re.completed.result.reason==="DROP"},Xa=function(re){window.scrollBy(re.x,re.y)},Ta=T(function(Re){return Wt(Re).filter(function(re){return re.isEnabled?!!re.frame:!1})}),Qa=function(re,xe){var Ge=ve(Ta(xe),function(ot){return ot.frame||me(!1),ti(ot.frame.pageMarginBox)(re)});return Ge},Ra=function(re){var xe=re.center,Ge=re.destination,ot=re.droppables;if(Ge){var Ct=ot[Ge];return Ct.frame?Ct:null}var _t=Qa(xe,ot);return _t},_a={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(re){return Math.pow(re,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},yo=function(re,xe){var Ge=re[xe.size]*_a.startFromPercentage,ot=re[xe.size]*_a.maxScrollAtPercentage,Ct={startScrollingFrom:Ge,maxScrollValueAt:ot};return Ct},ao=function(re){var xe=re.startOfRange,Ge=re.endOfRange,ot=re.current,Ct=Ge-xe;if(Ct===0)return 0;var _t=ot-xe,Dt=_t/Ct;return Dt},bo=1,co=function(re,xe){if(re>xe.startScrollingFrom)return 0;if(re<=xe.maxScrollValueAt)return _a.maxPixelScroll;if(re===xe.startScrollingFrom)return bo;var Ge=ao({startOfRange:xe.maxScrollValueAt,endOfRange:xe.startScrollingFrom,current:re}),ot=1-Ge,Ct=_a.maxPixelScroll*_a.ease(ot);return Math.ceil(Ct)},uo=_a.durationDampening.accelerateAt,Ya=_a.durationDampening.stopDampeningAt,eo=function(re,xe){var Ge=xe,ot=Ya,Ct=Date.now(),_t=Ct-Ge;if(_t>=Ya)return re;if(_t<uo)return bo;var Dt=ao({startOfRange:uo,endOfRange:ot,current:_t}),vr=re*_a.ease(Dt);return Math.ceil(vr)},wa=function(re){var xe=re.distanceToEdge,Ge=re.thresholds,ot=re.dragStartTime,Ct=re.shouldUseTimeDampening,_t=co(xe,Ge);return _t===0?0:Ct?Math.max(eo(_t,ot),bo):_t},ro=function(re){var xe=re.container,Ge=re.distanceToEdges,ot=re.dragStartTime,Ct=re.axis,_t=re.shouldUseTimeDampening,Dt=yo(xe,Ct),vr=Ge[Ct.end]<Ge[Ct.start];return vr?wa({distanceToEdge:Ge[Ct.end],thresholds:Dt,dragStartTime:ot,shouldUseTimeDampening:_t}):-1*wa({distanceToEdge:Ge[Ct.start],thresholds:Dt,dragStartTime:ot,shouldUseTimeDampening:_t})},fo=function(re){var xe=re.container,Ge=re.subject,ot=re.proposedScroll,Ct=Ge.height>xe.height,_t=Ge.width>xe.width;return!_t&&!Ct?ot:_t&&Ct?null:{x:_t?0:ot.x,y:Ct?0:ot.y}},Bi=Oe(function(Re){return Re===0?0:Re}),Ma=function(re){var xe=re.dragStartTime,Ge=re.container,ot=re.subject,Ct=re.center,_t=re.shouldUseTimeDampening,Dt={top:Ct.y-Ge.top,right:Ge.right-Ct.x,bottom:Ge.bottom-Ct.y,left:Ct.x-Ge.left},vr=ro({container:Ge,distanceToEdges:Dt,dragStartTime:xe,axis:Ln,shouldUseTimeDampening:_t}),Lr=ro({container:Ge,distanceToEdges:Dt,dragStartTime:xe,axis:tt,shouldUseTimeDampening:_t}),mr=Bi({x:Lr,y:vr});if(ne(mr,De))return null;var ur=fo({container:Ge,subject:ot,proposedScroll:mr});return ur?ne(ur,De)?null:ur:null},Do=Oe(function(Re){return Re===0?0:Re>0?1:-1}),jo=function(){var Re=function(xe,Ge){return xe<0?xe:xe>Ge?xe-Ge:0};return function(re){var xe=re.current,Ge=re.max,ot=re.change,Ct=Ee(xe,ot),_t={x:Re(Ct.x,Ge.x),y:Re(Ct.y,Ge.y)};return ne(_t,De)?null:_t}}(),Vo=function(re){var xe=re.max,Ge=re.current,ot=re.change,Ct={x:Math.max(Ge.x,xe.x),y:Math.max(Ge.y,xe.y)},_t=Do(ot),Dt=jo({max:Ct,current:Ge,change:_t});return Dt?_t.x!==0&&Dt.x===0?!0:_t.y!==0&&Dt.y===0:!0},Go=function(re,xe){return Vo({current:re.scroll.current,max:re.scroll.max,change:xe})},wo=function(re,xe){if(!Go(re,xe))return null;var Ge=re.scroll.max,ot=re.scroll.current;return jo({current:ot,max:Ge,change:xe})},Ia=function(re,xe){var Ge=re.frame;return Ge?Vo({current:Ge.scroll.current,max:Ge.scroll.max,change:xe}):!1},Po=function(re,xe){var Ge=re.frame;return Ge&&Ia(re,xe)?jo({current:Ge.scroll.current,max:Ge.scroll.max,change:xe}):null},ds=function(re){var xe=re.viewport,Ge=re.subject,ot=re.center,Ct=re.dragStartTime,_t=re.shouldUseTimeDampening,Dt=Ma({dragStartTime:Ct,container:xe.frame,subject:Ge,center:ot,shouldUseTimeDampening:_t});return Dt&&Go(xe,Dt)?Dt:null},ho=function(re){var xe=re.droppable,Ge=re.subject,ot=re.center,Ct=re.dragStartTime,_t=re.shouldUseTimeDampening,Dt=xe.frame;if(!Dt)return null;var vr=Ma({dragStartTime:Ct,container:Dt.pageMarginBox,subject:Ge,center:ot,shouldUseTimeDampening:_t});return vr&&Ia(xe,vr)?vr:null},Oo=function(re){var xe=re.state,Ge=re.dragStartTime,ot=re.shouldUseTimeDampening,Ct=re.scrollWindow,_t=re.scrollDroppable,Dt=xe.current.page.borderBoxCenter,vr=xe.dimensions.draggables[xe.critical.draggable.id],Lr=vr.page.marginBox;if(xe.isWindowScrollAllowed){var mr=xe.viewport,ur=ds({dragStartTime:Ge,viewport:mr,subject:Lr,center:Dt,shouldUseTimeDampening:ot});if(ur){Ct(ur);return}}var Tr=Ra({center:Dt,destination:Sn(xe.impact),droppables:xe.dimensions.droppables});if(!Tr)return;var kr=ho({dragStartTime:Ge,droppable:Tr,subject:Lr,center:Dt,shouldUseTimeDampening:ot});kr&&_t(Tr.descriptor.id,kr)},Ka=function(re){var xe=re.scrollWindow,Ge=re.scrollDroppable,ot=O(xe),Ct=O(Ge),_t=null,Dt=function(ur){_t||me(!1);var Tr=_t,kr=Tr.shouldUseTimeDampening,an=Tr.dragStartTime;Oo({state:ur,scrollWindow:ot,scrollDroppable:Ct,dragStartTime:an,shouldUseTimeDampening:kr})},vr=function(ur){gi(),_t&&me(!1);var Tr=Date.now(),kr=!1,an=function(){kr=!0};Oo({state:ur,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:an,scrollDroppable:an}),_t={dragStartTime:Tr,shouldUseTimeDampening:kr},Wi(),kr&&Dt(ur)},Lr=function(){if(!_t)return;ot.cancel(),Ct.cancel(),_t=null};return{start:vr,stop:Lr,scroll:Dt}},Xo=function(re){var xe=re.move,Ge=re.scrollDroppable,ot=re.scrollWindow,Ct=function(mr,ur){var Tr=Ee(mr.current.client.selection,ur);xe({client:Tr})},_t=function(mr,ur){if(!Ia(mr,ur))return ur;var Tr=Po(mr,ur);if(!Tr)return Ge(mr.descriptor.id,ur),null;var kr=ce(ur,Tr);Ge(mr.descriptor.id,kr);var an=ce(ur,kr);return an},Dt=function(mr,ur,Tr){if(!mr)return Tr;if(!Go(ur,Tr))return Tr;var kr=wo(ur,Tr);if(!kr)return ot(Tr),null;var an=ce(Tr,kr);ot(an);var jn=ce(Tr,an);return jn},vr=function(mr){var ur=mr.scrollJumpRequest;if(!ur)return;var Tr=Sn(mr.impact);Tr||me(!1);var kr=_t(mr.dimensions.droppables[Tr],ur);if(!kr)return;var an=mr.viewport,jn=Dt(mr.isWindowScrollAllowed,an,kr);if(!jn)return;Ct(mr,jn)};return vr},nl=function(re){var xe=re.scrollDroppable,Ge=re.scrollWindow,ot=re.move,Ct=Ka({scrollWindow:Ge,scrollDroppable:xe}),_t=Xo({move:ot,scrollWindow:Ge,scrollDroppable:xe}),Dt=function(mr){if(mr.phase!=="DRAGGING")return;if(mr.movementMode==="FLUID"){Ct.scroll(mr);return}if(!mr.scrollJumpRequest)return;_t(mr)},vr={scroll:Dt,start:Ct.start,stop:Ct.stop};return vr},Cs="data-rbd",_s=function(){var Re=Cs+"-drag-handle";return{base:Re,draggableId:Re+"-draggable-id",contextId:Re+"-context-id"}}(),xs=function(){var Re=Cs+"-draggable";return{base:Re,contextId:Re+"-context-id",id:Re+"-id"}}(),ps=function(){var Re=Cs+"-droppable";return{base:Re,contextId:Re+"-context-id",id:Re+"-id"}}(),Os={contextId:Cs+"-scroll-container-context-id"},Ho=function(re){return function(xe){return"["+xe+'="'+re+'"]'}},mo=function(re,xe){return re.map(function(Ge){var ot=Ge.styles[xe];return ot?Ge.selector+" { "+ot+" }":""}).join(" ")},es="pointer-events: none;",Ko=function(re){var xe=Ho(re),Ge=function(){var vr=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:xe(_s.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:vr,dragging:es,dropAnimating:vr}}}(),ot=function(){var vr=`
|
|
|
transition: `+Wn.outOfTheWay+`;
|
|
|
`;return{selector:xe(xs.contextId),styles:{dragging:vr,dropAnimating:vr,userCancel:vr}}}(),Ct={selector:xe(ps.contextId),styles:{always:"overflow-anchor: none;"}},_t={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;
|
|
|
`}},Dt=[ot,Ge,Ct,_t];return{always:mo(Dt,"always"),resting:mo(Dt,"resting"),dragging:mo(Dt,"dragging"),dropAnimating:mo(Dt,"dropAnimating"),userCancel:mo(Dt,"userCancel")}},Bo=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?D.useLayoutEffect:D.useEffect,zr=function(){var re=document.querySelector("head");return re||me(!1),re},Yo=function(re){var xe=document.createElement("style");return re&&xe.setAttribute("nonce",re),xe.type="text/css",xe};function il(Re,re){var xe=t(function(){return Ko(Re)},[Re]),Ge=Object(D.useRef)(null),ot=Object(D.useRef)(null),Ct=l(T(function(ur){var Tr=ot.current;Tr||me(!1),Tr.textContent=ur}),[]),_t=l(function(ur){var Tr=Ge.current;Tr||me(!1),Tr.textContent=ur},[]);Bo(function(){!Ge.current&&!ot.current||me(!1);var ur=Yo(re),Tr=Yo(re);return Ge.current=ur,ot.current=Tr,ur.setAttribute(Cs+"-always",Re),Tr.setAttribute(Cs+"-dynamic",Re),zr().appendChild(ur),zr().appendChild(Tr),_t(xe.always),Ct(xe.resting),function(){var kr=function(jn){var Vn=jn.current;Vn||me(!1),zr().removeChild(Vn),jn.current=null};kr(Ge),kr(ot)}},[re,_t,Ct,xe.always,xe.resting,Re]);var Dt=l(function(){return Ct(xe.dragging)},[Ct,xe.dragging]),vr=l(function(ur){if(ur==="DROP"){Ct(xe.dropAnimating);return}Ct(xe.userCancel)},[Ct,xe.dropAnimating,xe.userCancel]),Lr=l(function(){if(!ot.current)return;Ct(xe.resting)},[Ct,xe.resting]),mr=t(function(){return{dragging:Dt,dropping:vr,resting:Lr}},[Dt,vr,Lr]);return mr}var Ks=function(re){return re&&re.ownerDocument?re.ownerDocument.defaultView:window};function Ps(Re){return Re instanceof Ks(Re).HTMLElement}function no(Re,re){var xe="["+_s.contextId+'="'+Re+'"]',Ge=Bt(document.querySelectorAll(xe));if(!Ge.length)return null;var ot=ve(Ge,function(Ct){return Ct.getAttribute(_s.draggableId)===re});return ot&&Ps(ot)?ot:null}function vo(Re){var re=Object(D.useRef)({}),xe=Object(D.useRef)(null),Ge=Object(D.useRef)(null),ot=Object(D.useRef)(!1),Ct=l(function(Tr,kr){var an={id:Tr,focus:kr};return re.current[Tr]=an,function(){var Vn=re.current,Ei=Vn[Tr];Ei!==an&&delete Vn[Tr]}},[]),_t=l(function(Tr){var kr=no(Re,Tr);kr&&kr!==document.activeElement&&kr.focus()},[Re]),Dt=l(function(Tr,kr){xe.current===Tr&&(xe.current=kr)},[]),vr=l(function(){if(Ge.current)return;if(!ot.current)return;Ge.current=requestAnimationFrame(function(){Ge.current=null;var Tr=xe.current;Tr&&_t(Tr)})},[_t]),Lr=l(function(Tr){xe.current=null;var kr=document.activeElement;if(!kr)return;if(kr.getAttribute(_s.draggableId)!==Tr)return;xe.current=Tr},[]);Bo(function(){return ot.current=!0,function(){ot.current=!1;var Tr=Ge.current;Tr&&cancelAnimationFrame(Tr)}},[]);var mr=t(function(){return{register:Ct,tryRecordFocus:Lr,tryRestoreFocusRecorded:vr,tryShiftRecord:Dt}},[Ct,Lr,vr,Dt]);return mr}function Fo(){var Re={draggables:{},droppables:{}},re=[];function xe(ur){return re.push(ur),function(){var kr=re.indexOf(ur);if(kr===-1)return;re.splice(kr,1)}}function Ge(ur){re.length&&re.forEach(function(Tr){return Tr(ur)})}function ot(ur){return Re.draggables[ur]||null}function Ct(ur){var Tr=ot(ur);return Tr||me(!1),Tr}var _t={register:function(Tr){Re.draggables[Tr.descriptor.id]=Tr,Ge({type:"ADDITION",value:Tr})},update:function(Tr,kr){var an=Re.draggables[kr.descriptor.id];if(!an)return;if(an.uniqueId!==Tr.uniqueId)return;delete Re.draggables[kr.descriptor.id],Re.draggables[Tr.descriptor.id]=Tr},unregister:function(Tr){var kr=Tr.descriptor.id,an=ot(kr);if(!an)return;if(Tr.uniqueId!==an.uniqueId)return;delete Re.draggables[kr],Ge({type:"REMOVAL",value:Tr})},getById:Ct,findById:ot,exists:function(Tr){return Boolean(ot(Tr))},getAllByType:function(Tr){return st(Re.draggables).filter(function(kr){return kr.descriptor.type===Tr})}};function Dt(ur){return Re.droppables[ur]||null}function vr(ur){var Tr=Dt(ur);return Tr||me(!1),Tr}var Lr={register:function(Tr){Re.droppables[Tr.descriptor.id]=Tr},unregister:function(Tr){var kr=Dt(Tr.descriptor.id);if(!kr)return;if(Tr.uniqueId!==kr.uniqueId)return;delete Re.droppables[Tr.descriptor.id]},getById:vr,findById:Dt,exists:function(Tr){return Boolean(Dt(Tr))},getAllByType:function(Tr){return st(Re.droppables).filter(function(kr){return kr.descriptor.type===Tr})}};function mr(){Re.draggables={},Re.droppables={},re.length=0}return{draggable:_t,droppable:Lr,subscribe:xe,clean:mr}}function ns(){var Re=t(Fo,[]);return Object(D.useEffect)(function(){return function(){requestAnimationFrame(Re.clean)}},[Re]),Re}var ys=N.a.createContext(null),ms=function(){var re=document.body;return re||me(!1),re},Is={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ol=function(re){return"rbd-announcement-"+re};function Ls(Re){var re=t(function(){return ol(Re)},[Re]),xe=Object(D.useRef)(null);Object(D.useEffect)(function(){var Ct=document.createElement("div");return xe.current=Ct,Ct.id=re,Ct.setAttribute("aria-live","assertive"),Ct.setAttribute("aria-atomic","true"),Object(E.a)(Ct.style,Is),ms().appendChild(Ct),function(){setTimeout(function(){var vr=ms();vr.contains(Ct)&&vr.removeChild(Ct),Ct===xe.current&&(xe.current=null)})}},[re]);var Ge=l(function(ot){var Ct=xe.current;if(Ct){Ct.textContent=ot;return}},[]);return Ge}var Xs=0,Bs={separator:"::"};function gs(){Xs=0}function Ns(Re,re){return re===void 0&&(re=Bs),t(function(){return""+Re+re.separator+Xs++},[re.separator,Re])}function Tt(Re){var re=Re.contextId,xe=Re.uniqueId;return"rbd-hidden-text-"+re+"-"+xe}function Rt(Re){var re=Re.contextId,xe=Re.text,Ge=Ns("hidden-text",{separator:"-"}),ot=t(function(){return Tt({contextId:re,uniqueId:Ge})},[Ge,re]);return Object(D.useEffect)(function(){var _t=document.createElement("div");return _t.id=ot,_t.textContent=xe,_t.style.display="none",ms().appendChild(_t),function(){var vr=ms();vr.contains(_t)&&vr.removeChild(_t)}},[ot,xe]),ot}var rn=N.a.createContext(null),On={react:"^16.8.5","react-dom":"^16.8.5"},vt=/(\d+)\.(\d+)\.(\d+)/,se=function(re){var xe=vt.exec(re);xe!=null||me(!1);var Ge=Number(xe[1]),ot=Number(xe[2]),Ct=Number(xe[3]);return{major:Ge,minor:ot,patch:Ct,raw:re}},ye=function(re,xe){return xe.major>re.major?!0:xe.major<re.major?!1:xe.minor>re.minor?!0:xe.minor<re.minor?!1:xe.patch>=re.patch},Se=function(re,xe){var Ge=se(re),ot=se(xe);if(ye(Ge,ot))return},Ue=`
|
|
|
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
|
|
|
`,ht=function(re){var xe=re.doctype;if(!xe)return;xe.name.toLowerCase()!=="html",xe.publicId!==""};function Nt(Re){}function br(Re,re){Nt(function(){Object(D.useEffect)(function(){try{Re()}catch(xe){V(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+xe.message+`
|
|
|
`)}},re)})}function Or(){br(function(){Se(On.react,N.a.version),ht(document)},[])}function Zr(Re){var re=Object(D.useRef)(Re);return Object(D.useEffect)(function(){re.current=Re}),re}function Tn(){var Re=null;function re(){return Boolean(Re)}function xe(_t){return _t===Re}function Ge(_t){Re&&me(!1);var Dt={abandon:_t};return Re=Dt,Dt}function ot(){Re||me(!1),Re=null}function Ct(){Re&&(Re.abandon(),ot())}return{isClaimed:re,isActive:xe,claim:Ge,release:ot,tryAbandon:Ct}}var Hn=9,si=13,xi=27,Ri=32,sa=33,ya=34,Ja=35,$a=36,to=37,_o=38,To=39,Ro=40,go,So=(go={},go[si]=!0,go[Hn]=!0,go),is=function(re){So[re.keyCode]&&re.preventDefault()},ts=function(){var Re="visibilitychange";if(typeof document=="undefined")return Re;var re=[Re,"ms"+Re,"webkit"+Re,"moz"+Re,"o"+Re],xe=ve(re,function(Ge){return"on"+Ge in document});return xe||Re}(),Co=0,Yi=5;function Ds(Re,re){return Math.abs(re.x-Re.x)>=Yi||Math.abs(re.y-Re.y)>=Yi}var Es={type:"IDLE"};function as(Re){var re=Re.cancel,xe=Re.completed,Ge=Re.getPhase,ot=Re.setPhase;return[{eventName:"mousemove",fn:function(_t){var Dt=_t.button,vr=_t.clientX,Lr=_t.clientY;if(Dt!==Co)return;var mr={x:vr,y:Lr},ur=Ge();if(ur.type==="DRAGGING"){_t.preventDefault(),ur.actions.move(mr);return}ur.type==="PENDING"||me(!1);var Tr=ur.point;if(!Ds(Tr,mr))return;_t.preventDefault();var kr=ur.actions.fluidLift(mr);ot({type:"DRAGGING",actions:kr})}},{eventName:"mouseup",fn:function(_t){var Dt=Ge();if(Dt.type!=="DRAGGING"){re();return}_t.preventDefault(),Dt.actions.drop({shouldBlockNextClick:!0}),xe()}},{eventName:"mousedown",fn:function(_t){Ge().type==="DRAGGING"&&_t.preventDefault(),re()}},{eventName:"keydown",fn:function(_t){var Dt=Ge();if(Dt.type==="PENDING"){re();return}if(_t.keyCode===xi){_t.preventDefault(),re();return}is(_t)}},{eventName:"resize",fn:re},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ge().type==="PENDING"&&re()}},{eventName:"webkitmouseforcedown",fn:function(_t){var Dt=Ge();if(Dt.type!=="IDLE"||me(!1),Dt.actions.shouldRespectForcePress()){re();return}_t.preventDefault()}},{eventName:ts,fn:re}]}function Qo(Re){var re=Object(D.useRef)(Es),xe=Object(D.useRef)(Z),Ge=t(function(){return{eventName:"mousedown",fn:function(ur){if(ur.defaultPrevented)return;if(ur.button!==Co)return;if(ur.ctrlKey||ur.metaKey||ur.shiftKey||ur.altKey)return;var Tr=Re.findClosestDraggableId(ur);if(!Tr)return;var kr=Re.tryGetLock(Tr,_t,{sourceEvent:ur});if(!kr)return;ur.preventDefault();var an={x:ur.clientX,y:ur.clientY};xe.current(),Lr(kr,an)}}},[Re]),ot=t(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(ur){if(ur.defaultPrevented)return;var Tr=Re.findClosestDraggableId(ur);if(!Tr)return;var kr=Re.findOptionsForDraggable(Tr);if(!kr)return;if(kr.shouldRespectForcePress)return;if(!Re.canGetLock(Tr))return;ur.preventDefault()}}},[Re]),Ct=l(function(){var ur={passive:!1,capture:!0};xe.current=Q(window,[ot,Ge],ur)},[ot,Ge]),_t=l(function(){var mr=re.current;if(mr.type==="IDLE")return;re.current=Es,xe.current(),Ct()},[Ct]),Dt=l(function(){var mr=re.current;_t(),mr.type==="DRAGGING"&&mr.actions.cancel({shouldBlockNextClick:!0}),mr.type==="PENDING"&&mr.actions.abort()},[_t]),vr=l(function(){var ur={capture:!0,passive:!1},Tr=as({cancel:Dt,completed:_t,getPhase:function(){return re.current},setPhase:function(an){re.current=an}});xe.current=Q(window,Tr,ur)},[Dt,_t]),Lr=l(function(ur,Tr){re.current.type==="IDLE"||me(!1),re.current={type:"PENDING",point:Tr,actions:ur},vr()},[vr]);Bo(function(){return Ct(),function(){xe.current()}},[Ct])}var hs;function vl(){}var sl=(hs={},hs[ya]=!0,hs[sa]=!0,hs[$a]=!0,hs[Ja]=!0,hs);function fs(Re,re){function xe(){re(),Re.cancel()}function Ge(){re(),Re.drop()}return[{eventName:"keydown",fn:function(Ct){if(Ct.keyCode===xi){Ct.preventDefault(),xe();return}if(Ct.keyCode===Ri){Ct.preventDefault(),Ge();return}if(Ct.keyCode===Ro){Ct.preventDefault(),Re.moveDown();return}if(Ct.keyCode===_o){Ct.preventDefault(),Re.moveUp();return}if(Ct.keyCode===To){Ct.preventDefault(),Re.moveRight();return}if(Ct.keyCode===to){Ct.preventDefault(),Re.moveLeft();return}if(sl[Ct.keyCode]){Ct.preventDefault();return}is(Ct)}},{eventName:"mousedown",fn:xe},{eventName:"mouseup",fn:xe},{eventName:"click",fn:xe},{eventName:"touchstart",fn:xe},{eventName:"resize",fn:xe},{eventName:"wheel",fn:xe,options:{passive:!0}},{eventName:ts,fn:xe}]}function Lo(Re){var re=Object(D.useRef)(vl),xe=t(function(){return{eventName:"keydown",fn:function(Ct){if(Ct.defaultPrevented)return;if(Ct.keyCode!==Ri)return;var _t=Re.findClosestDraggableId(Ct);if(!_t)return;var Dt=Re.tryGetLock(_t,mr,{sourceEvent:Ct});if(!Dt)return;Ct.preventDefault();var vr=!0,Lr=Dt.snapLift();re.current();function mr(){vr||me(!1),vr=!1,re.current(),Ge()}re.current=Q(window,fs(Lr,mr),{capture:!0,passive:!1})}}},[Re]),Ge=l(function(){var Ct={passive:!1,capture:!0};re.current=Q(window,[xe],Ct)},[xe]);Bo(function(){return Ge(),function(){re.current()}},[Ge])}var ls={type:"IDLE"},Zs=120,vs=.15;function Fs(Re){var re=Re.cancel,xe=Re.getPhase;return[{eventName:"orientationchange",fn:re},{eventName:"resize",fn:re},{eventName:"contextmenu",fn:function(ot){ot.preventDefault()}},{eventName:"keydown",fn:function(ot){if(xe().type!=="DRAGGING"){re();return}ot.keyCode===xi&&ot.preventDefault(),re()}},{eventName:ts,fn:re}]}function Us(Re){var re=Re.cancel,xe=Re.completed,Ge=Re.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ct){var _t=Ge();if(_t.type!=="DRAGGING"){re();return}_t.hasMoved=!0;var Dt=Ct.touches[0],vr=Dt.clientX,Lr=Dt.clientY,mr={x:vr,y:Lr};Ct.preventDefault(),_t.actions.move(mr)}},{eventName:"touchend",fn:function(Ct){var _t=Ge();if(_t.type!=="DRAGGING"){re();return}Ct.preventDefault(),_t.actions.drop({shouldBlockNextClick:!0}),xe()}},{eventName:"touchcancel",fn:function(Ct){if(Ge().type!=="DRAGGING"){re();return}Ct.preventDefault(),re()}},{eventName:"touchforcechange",fn:function(Ct){var _t=Ge();_t.type!=="IDLE"||me(!1);var Dt=Ct.touches[0];if(!Dt)return;var vr=Dt.force>=vs;if(!vr)return;var Lr=_t.actions.shouldRespectForcePress();if(_t.type==="PENDING"){Lr&&re();return}if(Lr){if(_t.hasMoved){Ct.preventDefault();return}re();return}Ct.preventDefault()}},{eventName:ts,fn:re}]}function Rs(Re){var re=Object(D.useRef)(ls),xe=Object(D.useRef)(Z),Ge=l(function(){return re.current},[]),ot=l(function(kr){re.current=kr},[]),Ct=t(function(){return{eventName:"touchstart",fn:function(kr){if(kr.defaultPrevented)return;var an=Re.findClosestDraggableId(kr);if(!an)return;var jn=Re.tryGetLock(an,Dt,{sourceEvent:kr});if(!jn)return;var Vn=kr.touches[0],Ei=Vn.clientX,di=Vn.clientY,ua={x:Ei,y:di};xe.current(),ur(jn,ua)}}},[Re]),_t=l(function(){var kr={capture:!0,passive:!1};xe.current=Q(window,[Ct],kr)},[Ct]),Dt=l(function(){var Tr=re.current;if(Tr.type==="IDLE")return;Tr.type==="PENDING"&&clearTimeout(Tr.longPressTimerId),ot(ls),xe.current(),_t()},[_t,ot]),vr=l(function(){var Tr=re.current;Dt(),Tr.type==="DRAGGING"&&Tr.actions.cancel({shouldBlockNextClick:!0}),Tr.type==="PENDING"&&Tr.actions.abort()},[Dt]),Lr=l(function(){var kr={capture:!0,passive:!1},an={cancel:vr,completed:Dt,getPhase:Ge},jn=Q(window,Us(an),kr),Vn=Q(window,Fs(an),kr);xe.current=function(){jn(),Vn()}},[vr,Ge,Dt]),mr=l(function(){var kr=Ge();kr.type==="PENDING"||me(!1);var an=kr.actions.fluidLift(kr.point);ot({type:"DRAGGING",actions:an,hasMoved:!1})},[Ge,ot]),ur=l(function(kr,an){Ge().type==="IDLE"||me(!1);var jn=setTimeout(mr,Zs);ot({type:"PENDING",point:an,actions:kr,longPressTimerId:jn}),Lr()},[Lr,Ge,ot,mr]);Bo(function(){return _t(),function(){xe.current();var an=Ge();an.type==="PENDING"&&(clearTimeout(an.longPressTimerId),ot(ls))}},[Ge,_t,ot]),Bo(function(){var kr=Q(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return kr},[])}function al(Re){Nt(function(){var re=Zr(Re);br(function(){re.current.length===Re.length||me(!1)})})}var $s={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ys(Re,re){if(re==null)return!1;var xe=Boolean($s[re.tagName.toLowerCase()]);if(xe)return!0;var Ge=re.getAttribute("contenteditable");return Ge==="true"||Ge===""?!0:re===Re?!1:Ys(Re,re.parentElement)}function js(Re,re){var xe=re.target;return Ps(xe)?Ys(Re,xe):!1}var Ga=function(re){return r(re.getBoundingClientRect()).center};function ga(Re){return Re instanceof Ks(Re).Element}var Wa=function(){var Re="matches";if(typeof document=="undefined")return Re;var re=[Re,"msMatchesSelector","webkitMatchesSelector"],xe=ve(re,function(Ge){return Ge in Element.prototype});return xe||Re}();function oo(Re,re){return Re==null?null:Re[Wa](re)?Re:oo(Re.parentElement,re)}function Jo(Re,re){return Re.closest?Re.closest(re):oo(Re,re)}function Hs(Re){return"["+_s.contextId+'="'+Re+'"]'}function bs(Re,re){var xe=re.target;if(!ga(xe))return null;var Ge=Hs(Re),ot=Jo(xe,Ge);return ot&&Ps(ot)?ot:null}function ws(Re,re){var xe=bs(Re,re);return xe?xe.getAttribute(_s.draggableId):null}function Uo(Re,re){var xe="["+xs.contextId+'="'+Re+'"]',Ge=Bt(document.querySelectorAll(xe)),ot=ve(Ge,function(Ct){return Ct.getAttribute(xs.id)===re});return ot&&Ps(ot)?ot:null}function Io(Re){Re.preventDefault()}function Zo(Re){var re=Re.expected,xe=Re.phase,Ge=Re.isLockActive,ot=Re.shouldWarn;return Ge()?!(re!==xe):!1}function xo(Re){var re=Re.lockAPI,xe=Re.store,Ge=Re.registry,ot=Re.draggableId;if(re.isClaimed())return!1;var Ct=Ge.draggable.findById(ot);return Ct&&Ct.options.isEnabled?!!lo(xe.getState(),ot):!1}function Ws(Re){var re=Re.lockAPI,xe=Re.contextId,Ge=Re.store,ot=Re.registry,Ct=Re.draggableId,_t=Re.forceSensorStop,Dt=Re.sourceEvent,vr=xo({lockAPI:re,store:Ge,registry:ot,draggableId:Ct});if(!vr)return null;var Lr=ot.draggable.getById(Ct),mr=Uo(xe,Lr.descriptor.id);if(!mr)return null;if(Dt&&!Lr.options.canDragInteractiveElements&&js(mr,Dt))return null;var ur=re.claim(_t||Z),Tr="PRE_DRAG";function kr(){return Lr.options.shouldRespectForcePress}function an(){return re.isActive(ur)}function jn(ha,Za){Zo({expected:ha,phase:Tr,isLockActive:an,shouldWarn:!0})&&Ge.dispatch(Za())}var Vn=jn.bind(null,"DRAGGING");function Ei(ha){function Za(){re.release(),Tr="COMPLETED"}Tr!=="PRE_DRAG"&&(Za(),Tr==="PRE_DRAG"||me(!1)),Ge.dispatch(Xr(ha.liftActionArgs)),Tr="DRAGGING";function po(F,K){if(K===void 0&&(K={shouldBlockNextClick:!1}),ha.cleanup(),K.shouldBlockNextClick){var te=Q(window,[{eventName:"click",fn:Io,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(te)}Za(),Ge.dispatch(Cn({reason:F}))}return Object(E.a)({isActive:function(){return Zo({expected:"DRAGGING",phase:Tr,isLockActive:an,shouldWarn:!1})},shouldRespectForcePress:kr,drop:function(K){return po("DROP",K)},cancel:function(K){return po("CANCEL",K)}},ha.actions)}function di(ha){var Za=O(function(F){Vn(function(){return _r({client:F})})}),po=Ei({liftActionArgs:{id:Ct,clientSelection:ha,movementMode:"FLUID"},cleanup:function(){return Za.cancel()},actions:{move:Za}});return Object(E.a)({},po,{move:Za})}function ua(){var ha={moveUp:function(){return Vn(on)},moveRight:function(){return Vn(An)},moveDown:function(){return Vn(En)},moveLeft:function(){return Vn(Rn)}};return Ei({liftActionArgs:{id:Ct,clientSelection:Ga(mr),movementMode:"SNAP"},cleanup:Z,actions:ha})}function ji(){var ha=Zo({expected:"PRE_DRAG",phase:Tr,isLockActive:an,shouldWarn:!0});ha&&re.release()}var Ca={isActive:function(){return Zo({expected:"PRE_DRAG",phase:Tr,isLockActive:an,shouldWarn:!1})},shouldRespectForcePress:kr,fluidLift:di,snapLift:ua,abort:ji};return Ca}var Sl=[Qo,Lo,Rs];function xl(Re){var re=Re.contextId,xe=Re.store,Ge=Re.registry,ot=Re.customSensors,Ct=Re.enableDefaultSensors,_t=[].concat(Ct?Sl:[],ot||[]),Dt=Object(D.useState)(function(){return Tn()})[0],vr=l(function(di,ua){di.isDragging&&!ua.isDragging&&Dt.tryAbandon()},[Dt]);Bo(function(){var di=xe.getState(),ua=xe.subscribe(function(){var ji=xe.getState();vr(di,ji),di=ji});return ua},[Dt,xe,vr]),Bo(function(){return Dt.tryAbandon},[Dt.tryAbandon]);var Lr=l(function(Ei){return xo({lockAPI:Dt,registry:Ge,store:xe,draggableId:Ei})},[Dt,Ge,xe]),mr=l(function(Ei,di,ua){return Ws({lockAPI:Dt,registry:Ge,contextId:re,store:xe,draggableId:Ei,forceSensorStop:di,sourceEvent:ua&&ua.sourceEvent?ua.sourceEvent:null})},[re,Dt,Ge,xe]),ur=l(function(Ei){return ws(re,Ei)},[re]),Tr=l(function(Ei){var di=Ge.draggable.findById(Ei);return di?di.options:null},[Ge.draggable]),kr=l(function(){if(!Dt.isClaimed())return;Dt.tryAbandon(),xe.getState().phase!=="IDLE"&&xe.dispatch(Un())},[Dt,xe]),an=l(Dt.isClaimed,[Dt]),jn=t(function(){return{canGetLock:Lr,tryGetLock:mr,findClosestDraggableId:ur,findOptionsForDraggable:Tr,tryReleaseLock:kr,isLockClaimed:an}},[Lr,mr,ur,Tr,kr,an]);al(_t);for(var Vn=0;Vn<_t.length;Vn++)_t[Vn](jn)}var Bl=function(re){return{onBeforeCapture:re.onBeforeCapture,onBeforeDragStart:re.onBeforeDragStart,onDragStart:re.onDragStart,onDragEnd:re.onDragEnd,onDragUpdate:re.onDragUpdate}};function el(Re){return Re.current||me(!1),Re.current}function _l(Re){var re=Re.contextId,xe=Re.setCallbacks,Ge=Re.sensors,ot=Re.nonce,Ct=Re.dragHandleUsageInstructions,_t=Object(D.useRef)(null);Or();var Dt=Zr(Re),vr=l(function(){return Bl(Dt.current)},[Dt]),Lr=Ls(re),mr=Rt({contextId:re,text:Ct}),ur=il(re,ot),Tr=l(function(F){el(_t).dispatch(F)},[]),kr=t(function(){return Object(I.b)({publishWhileDragging:fn,updateDroppableScroll:Lt,updateDroppableIsEnabled:cr,updateDroppableIsCombineEnabled:lr,collectionStarting:Ze},Tr)},[Tr]),an=ns(),jn=t(function(){return ia(an,kr)},[an,kr]),Vn=t(function(){return nl(Object(E.a)({scrollWindow:Xa,scrollDroppable:jn.scrollDroppable},Object(I.b)({move:_r},Tr)))},[jn.scrollDroppable,Tr]),Ei=vo(re),di=t(function(){return Sa({announce:Lr,autoScroller:Vn,dimensionMarshal:jn,focusMarshal:Ei,getResponders:vr,styleMarshal:ur})},[Lr,Vn,jn,Ei,vr,ur]);_t.current=di;var ua=l(function(){var F=el(_t),K=F.getState();K.phase!=="IDLE"&&F.dispatch(Un())},[]),ji=l(function(){var F=el(_t).getState();return F.isDragging||F.phase==="DROP_ANIMATING"},[]),Ca=t(function(){return{isDragging:ji,tryAbort:ua}},[ji,ua]);xe(Ca);var ha=l(function(F){return lo(el(_t).getState(),F)},[]),Za=l(function(){return oi(el(_t).getState())},[]),po=t(function(){return{marshal:jn,focus:Ei,contextId:re,canLift:ha,isMovementAllowed:Za,dragHandleUsageInstructionsId:mr,registry:an}},[re,jn,mr,Ei,ha,Za,an]);return xl({contextId:re,store:di,registry:an,customSensors:Ge,enableDefaultSensors:Re.enableDefaultSensors!==!1}),Object(D.useEffect)(function(){return ua},[ua]),N.a.createElement(rn.Provider,{value:po},N.a.createElement(o.a,{context:ys,store:di},Re.children))}var Ol=0;function Uc(){Ol=0}function ic(){return t(function(){return""+Ol++},[])}function Tc(){Uc(),gs()}function ac(Re){var re=ic(),xe=Re.dragHandleUsageInstructions||we.dragHandleUsageInstructions;return N.a.createElement(Ie,null,function(Ge){return N.a.createElement(_l,{nonce:Re.nonce,contextId:re,setCallbacks:Ge,dragHandleUsageInstructions:xe,enableDefaultSensors:Re.enableDefaultSensors,sensors:Re.sensors,onBeforeCapture:Re.onBeforeCapture,onBeforeDragStart:Re.onBeforeDragStart,onDragStart:Re.onDragStart,onDragUpdate:Re.onDragUpdate,onDragEnd:Re.onDragEnd},Re.children)})}var Hl=function(re){return function(xe){return re===xe}},zs=Hl("scroll"),tl=Hl("auto"),ll=Hl("visible"),Fl=function(re,xe){return xe(re.overflowX)||xe(re.overflowY)},oc=function(re,xe){return xe(re.overflowX)&&xe(re.overflowY)},sc=function(re){var xe=window.getComputedStyle(re),Ge={overflowX:xe.overflowX,overflowY:xe.overflowY};return Fl(Ge,zs)||Fl(Ge,tl)},Ql=function(){return!1;var re,xe;if(!sc(re))return!1;var Ge,ot;if(oc(ot,ll))return!1},Vs=function Re(re){return re==null?null:re===document.body?Ql()?re:null:re===document.documentElement?null:sc(re)?re:Re(re.parentElement)},lc=function(re){if(!re)return;var xe=Vs(re.parentElement);if(!xe)return},cc=function(re){return{x:re.scrollLeft,y:re.scrollTop}},Cc=function Re(re){if(!re)return!1;var xe=window.getComputedStyle(re);return xe.position==="fixed"?!0:Re(re.parentElement)},Al=function(re){var xe=Vs(re),Ge=Cc(re);return{closestScrollable:xe,isFixedOnPage:Ge}},Ll=function(re){var xe=re.descriptor,Ge=re.isEnabled,ot=re.isCombineEnabled,Ct=re.isFixedOnPage,_t=re.direction,Dt=re.client,vr=re.page,Lr=re.closest,mr=function(){if(!Lr)return null;var an=Lr.scrollSize,jn=Lr.client,Vn=Ua({scrollHeight:an.scrollHeight,scrollWidth:an.scrollWidth,height:jn.paddingBox.height,width:jn.paddingBox.width});return{pageMarginBox:Lr.page.marginBox,frameClient:jn,scrollSize:an,shouldClipSubject:Lr.shouldClipSubject,scroll:{initial:Lr.scroll,current:Lr.scroll,max:Vn,diff:{value:De,displacement:De}}}}(),ur=_t==="vertical"?Ln:tt,Tr=je({page:vr,withPlaceholder:null,axis:ur,frame:mr}),kr={descriptor:xe,isCombineEnabled:ot,isFixedOnPage:Ct,axis:ur,isEnabled:Ge,client:Dt,page:vr,frame:mr,subject:Tr};return kr},Kl=function(re,xe){var Ge=A(re);if(!xe)return Ge;if(re!==xe)return Ge;var ot=Ge.paddingBox.top-xe.scrollTop,Ct=Ge.paddingBox.left-xe.scrollLeft,_t=ot+xe.scrollHeight,Dt=Ct+xe.scrollWidth,vr={top:ot,right:Dt,bottom:_t,left:Ct},Lr=u(vr,Ge.border),mr=c({borderBox:Lr,margin:Ge.margin,border:Ge.border,padding:Ge.padding});return mr},Jl=function(re){var xe=re.ref,Ge=re.descriptor,ot=re.env,Ct=re.windowScroll,_t=re.direction,Dt=re.isDropDisabled,vr=re.isCombineEnabled,Lr=re.shouldClipSubject,mr=ot.closestScrollable,ur=Kl(xe,mr),Tr=g(ur,Ct),kr=function(){if(!mr)return null;var jn=A(mr),Vn={scrollHeight:mr.scrollHeight,scrollWidth:mr.scrollWidth};return{client:jn,page:g(jn,Ct),scroll:cc(mr),scrollSize:Vn,shouldClipSubject:Lr}}(),an=Ll({descriptor:Ge,isEnabled:!Dt,isCombineEnabled:vr,isFixedOnPage:ot.isFixedOnPage,direction:_t,client:ur,page:Tr,closest:kr});return an},El={passive:!1},jc={passive:!0},Hc=function(re){return re.shouldPublishImmediately?El:jc};function yl(Re){var re=Object(D.useContext)(Re);return re||me(!1),re}var Zl=function(re){return re&&re.env.closestScrollable||null};function uc(Re){var re=Object(D.useRef)(null),xe=yl(rn),Ge=Ns("droppable"),ot=xe.registry,Ct=xe.marshal,_t=Zr(Re),Dt=t(function(){return{id:Re.droppableId,type:Re.type,mode:Re.mode}},[Re.droppableId,Re.mode,Re.type]),vr=Object(D.useRef)(Dt),Lr=t(function(){return T(function(ji,Ca){re.current||me(!1);var ha={x:ji,y:Ca};Ct.updateDroppableScroll(Dt.id,ha)})},[Dt.id,Ct]),mr=l(function(){var ji=re.current;return!ji||!ji.env.closestScrollable?De:cc(ji.env.closestScrollable)},[]),ur=l(function(){var ji=mr();Lr(ji.x,ji.y)},[mr,Lr]),Tr=t(function(){return O(ur)},[ur]),kr=l(function(){var ji=re.current,Ca=Zl(ji);ji&&Ca||me(!1);var ha=ji.scrollOptions;if(ha.shouldPublishImmediately){ur();return}Tr()},[Tr,ur]),an=l(function(ji,Ca){re.current&&me(!1);var ha=_t.current,Za=ha.getDroppableRef();Za||me(!1);var po=Al(Za),F={ref:Za,descriptor:Dt,env:po,scrollOptions:Ca};re.current=F;var K=Jl({ref:Za,descriptor:Dt,env:po,windowScroll:ji,direction:ha.direction,isDropDisabled:ha.isDropDisabled,isCombineEnabled:ha.isCombineEnabled,shouldClipSubject:!ha.ignoreContainerClipping}),te=po.closestScrollable;return te&&(te.setAttribute(Os.contextId,xe.contextId),te.addEventListener("scroll",kr,Hc(F.scrollOptions))),K},[xe.contextId,Dt,kr,_t]),jn=l(function(){var ji=re.current,Ca=Zl(ji);return ji&&Ca||me(!1),cc(Ca)},[]),Vn=l(function(){var ji=re.current;ji||me(!1);var Ca=Zl(ji);if(re.current=null,!Ca)return;Tr.cancel(),Ca.removeAttribute(Os.contextId),Ca.removeEventListener("scroll",kr,Hc(ji.scrollOptions))},[kr,Tr]),Ei=l(function(ji){var Ca=re.current;Ca||me(!1);var ha=Zl(Ca);ha||me(!1),ha.scrollTop+=ji.y,ha.scrollLeft+=ji.x},[]),di=t(function(){return{getDimensionAndWatchScroll:an,getScrollWhileDragging:jn,dragStopped:Vn,scroll:Ei}},[Vn,an,jn,Ei]),ua=t(function(){return{uniqueId:Ge,descriptor:Dt,callbacks:di}},[di,Dt,Ge]);Bo(function(){return vr.current=ua.descriptor,ot.droppable.register(ua),function(){re.current&&Vn(),ot.droppable.unregister(ua)}},[di,Dt,Vn,ua,Ct,ot.droppable]),Bo(function(){if(!re.current)return;Ct.updateDroppableIsEnabled(vr.current.id,!Re.isDropDisabled)},[Re.isDropDisabled,Ct]),Bo(function(){if(!re.current)return;Ct.updateDroppableIsCombineEnabled(vr.current.id,Re.isCombineEnabled)},[Re.isCombineEnabled,Ct])}function $l(){}var Ss={width:0,height:0,margin:At},dl=function(re){var xe=re.isAnimatingOpenOnMount,Ge=re.placeholder,ot=re.animate;return xe||ot==="close"?Ss:{height:Ge.client.borderBox.height,width:Ge.client.borderBox.width,margin:Ge.client.margin}},Ul=function(re){var xe=re.isAnimatingOpenOnMount,Ge=re.placeholder,ot=re.animate,Ct=dl({isAnimatingOpenOnMount:xe,placeholder:Ge,animate:ot});return{display:Ge.display,boxSizing:"border-box",width:Ct.width,height:Ct.height,marginTop:Ct.margin.top,marginRight:Ct.margin.right,marginBottom:Ct.margin.bottom,marginLeft:Ct.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:ot!=="none"?Wn.placeholder:null}};function Ic(Re){var re=Object(D.useRef)(null),xe=l(function(){if(!re.current)return;clearTimeout(re.current),re.current=null},[]),Ge=Re.animate,ot=Re.onTransitionEnd,Ct=Re.onClose,_t=Re.contextId,Dt=Object(D.useState)(Re.animate==="open"),vr=Dt[0],Lr=Dt[1];Object(D.useEffect)(function(){return vr?Ge!=="open"?(xe(),Lr(!1),$l):re.current?$l:(re.current=setTimeout(function(){re.current=null,Lr(!1)}),xe):$l},[Ge,vr,xe]);var mr=l(function(Tr){if(Tr.propertyName!=="height")return;ot(),Ge==="close"&&Ct()},[Ge,Ct,ot]),ur=Ul({isAnimatingOpenOnMount:vr,animate:Re.animate,placeholder:Re.placeholder});return N.a.createElement(Re.placeholder.tagName,{style:ur,"data-rbd-placeholder-context-id":_t,onTransitionEnd:mr,ref:Re.innerRef})}var dc=N.a.memo(Ic),Wl=N.a.createContext(null);function zl(Re){Re&&Ps(Re)||me(!1)}function hc(Re){return typeof Re=="boolean"}function _c(Re,re){re.forEach(function(xe){return xe(Re)})}var Kc=[function(re){var xe=re.props;xe.droppableId||me(!1),typeof xe.droppableId=="string"||me(!1)},function(re){var xe=re.props;hc(xe.isDropDisabled)||me(!1),hc(xe.isCombineEnabled)||me(!1),hc(xe.ignoreContainerClipping)||me(!1)},function(re){var xe=re.getDroppableRef;zl(xe())}],hl=[function(re){var xe=re.props,Ge=re.getPlaceholderRef;if(!xe.placeholder)return;var ot=Ge();if(ot)return}],fl=[function(re){var xe=re.props;xe.renderClone||me(!1)},function(re){var xe=re.getPlaceholderRef;xe()&&me(!1)}];function Tl(Re){br(function(){_c(Re,Kc),Re.props.mode==="standard"&&_c(Re,hl),Re.props.mode==="virtual"&&_c(Re,fl)})}var ql=function(Re){Object(L.a)(re,Re);function re(){for(var Ge,ot=arguments.length,Ct=new Array(ot),_t=0;_t<ot;_t++)Ct[_t]=arguments[_t];return Ge=Re.call.apply(Re,[this].concat(Ct))||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}re.getDerivedStateFromProps=function(ot,Ct){return ot.shouldAnimate?ot.on?{isVisible:!0,data:ot.on,animate:"open"}:Ct.isVisible?{isVisible:!0,data:Ct.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(ot.on),data:ot.on,animate:"none"}};var xe=re.prototype;return xe.render=function(){if(!this.state.isVisible)return null;var ot={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(ot)},re}(N.a.PureComponent),ec={dragging:5e3,dropAnimating:4500},bl=function(re,xe){return xe?Wn.drop(xe.duration):re?Wn.snap:Wn.fluid},cl=function(re,xe){return re?xe?Si.opacity.drop:Si.opacity.combining:null},fc=function(re){return re.forceShouldAnimate!=null?re.forceShouldAnimate:re.mode==="SNAP"};function pc(Re){var re=Re.dimension,xe=re.client,Ge=Re.offset,ot=Re.combineWith,Ct=Re.dropping,_t=Boolean(ot),Dt=fc(Re),vr=Boolean(Ct),Lr=vr?zi.drop(Ge,_t):zi.moveTo(Ge),mr={position:"fixed",top:xe.marginBox.top,left:xe.marginBox.left,boxSizing:"border-box",width:xe.borderBox.width,height:xe.borderBox.height,transition:bl(Dt,Ct),transform:Lr,opacity:cl(_t,vr),zIndex:vr?ec.dropAnimating:ec.dragging,pointerEvents:"none"};return mr}function Wc(Re){return{transform:zi.moveTo(Re.offset),transition:Re.shouldAnimateDisplacement?null:"none"}}function Oc(Re){return Re.type==="DRAGGING"?pc(Re):Wc(Re)}function Lc(Re,re,xe){xe===void 0&&(xe=De);var Ge=window.getComputedStyle(re),ot=re.getBoundingClientRect(),Ct=v(ot,Ge),_t=g(Ct,xe),Dt={client:Ct,tagName:re.tagName.toLowerCase(),display:Ge.display},vr={x:Ct.marginBox.width,y:Ct.marginBox.height},Lr={descriptor:Re,placeholder:Dt,displaceBy:vr,client:Ct,page:_t};return Lr}function zc(Re){var re=Ns("draggable"),xe=Re.descriptor,Ge=Re.registry,ot=Re.getDraggableRef,Ct=Re.canDragInteractiveElements,_t=Re.shouldRespectForcePress,Dt=Re.isEnabled,vr=t(function(){return{canDragInteractiveElements:Ct,shouldRespectForcePress:_t,isEnabled:Dt}},[Ct,Dt,_t]),Lr=l(function(kr){var an=ot();return an||me(!1),Lc(xe,an,kr)},[xe,ot]),mr=t(function(){return{uniqueId:re,descriptor:xe,options:vr,getDimension:Lr}},[xe,Lr,vr,re]),ur=Object(D.useRef)(mr),Tr=Object(D.useRef)(!0);Bo(function(){return Ge.draggable.register(ur.current),function(){return Ge.draggable.unregister(ur.current)}},[Ge.draggable]),Bo(function(){if(Tr.current){Tr.current=!1;return}var kr=ur.current;ur.current=mr,Ge.draggable.update(mr,kr)},[mr,Ge.draggable])}function Vl(Re,re,xe){br(function(){function Ge(Ct){return"Draggable[id: "+Ct+"]: "}var ot=Re.draggableId;if(ot||me(!1),typeof ot=="string"||me(!1),ie(Re.index)||me(!1),Re.mapped.type==="DRAGGING")return;zl(xe()),Re.isEnabled&&(no(re,ot)||me(!1))})}function pl(Re){Nt(function(){var re=Object(D.useRef)(Re);br(function(){Re===re.current||me(!1)},[Re])})}function Nl(Re){Re.preventDefault()}function Gl(Re){var re=Object(D.useRef)(null),xe=l(function(F){re.current=F},[]),Ge=l(function(){return re.current},[]),ot=yl(rn),Ct=ot.contextId,_t=ot.dragHandleUsageInstructionsId,Dt=ot.registry,vr=yl(Wl),Lr=vr.type,mr=vr.droppableId,ur=t(function(){return{id:Re.draggableId,index:Re.index,type:Lr,droppableId:mr}},[Re.draggableId,Re.index,Lr,mr]),Tr=Re.children,kr=Re.draggableId,an=Re.isEnabled,jn=Re.shouldRespectForcePress,Vn=Re.canDragInteractiveElements,Ei=Re.isClone,di=Re.mapped,ua=Re.dropAnimationFinished;if(Vl(Re,Ct,Ge),pl(Ei),!Ei){var ji=t(function(){return{descriptor:ur,registry:Dt,getDraggableRef:Ge,canDragInteractiveElements:Vn,shouldRespectForcePress:jn,isEnabled:an}},[ur,Dt,Ge,Vn,jn,an]);zc(ji)}var Ca=t(function(){return an?{tabIndex:0,role:"button","aria-describedby":_t,"data-rbd-drag-handle-draggable-id":kr,"data-rbd-drag-handle-context-id":Ct,draggable:!1,onDragStart:Nl}:null},[Ct,_t,kr,an]),ha=l(function(F){if(di.type!=="DRAGGING")return;if(!di.dropping)return;if(F.propertyName!=="transform")return;ua()},[ua,di]),Za=t(function(){var F=Oc(di),K=di.type==="DRAGGING"&&di.dropping?ha:null,te={innerRef:xe,draggableProps:{"data-rbd-draggable-context-id":Ct,"data-rbd-draggable-id":kr,style:F,onTransitionEnd:K},dragHandleProps:Ca};return te},[Ct,Ca,kr,di,ha,xe]),po=t(function(){return{draggableId:ur.id,type:ur.type,source:{index:ur.index,droppableId:ur.droppableId}}},[ur.droppableId,ur.id,ur.index,ur.type]);return Tr(Za,di.snapshot,po)}var jl=function(re,xe){return re===xe},mc=function(re){var xe=re.combine,Ge=re.destination;return Ge?Ge.droppableId:xe?xe.droppableId:null},Vc=function(re){return re.combine?re.combine.draggableId:null},Nc=function(re){return re.at&&re.at.type==="COMBINE"?re.at.combine.draggableId:null};function eu(){var Re=T(function(ot,Ct){return{x:ot,y:Ct}}),re=T(function(ot,Ct,_t,Dt,vr){return{isDragging:!0,isClone:Ct,isDropAnimating:Boolean(vr),dropAnimation:vr,mode:ot,draggingOver:_t,combineWith:Dt,combineTargetFor:null}}),xe=T(function(ot,Ct,_t,Dt,vr,Lr,mr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:vr,combineWith:Lr,mode:Ct,offset:ot,dimension:_t,forceShouldAnimate:mr,snapshot:re(Ct,Dt,vr,Lr,null)}}}),Ge=function(Ct,_t){if(Ct.isDragging){if(Ct.critical.draggable.id!==_t.draggableId)return null;var Dt=Ct.current.client.offset,vr=Ct.dimensions.draggables[_t.draggableId],Lr=Sn(Ct.impact),mr=Nc(Ct.impact),ur=Ct.forceShouldAnimate;return xe(Re(Dt.x,Dt.y),Ct.movementMode,vr,_t.isClone,Lr,mr,ur)}if(Ct.phase==="DROP_ANIMATING"){var Tr=Ct.completed;if(Tr.result.draggableId!==_t.draggableId)return null;var kr=_t.isClone,an=Ct.dimensions.draggables[_t.draggableId],jn=Tr.result,Vn=jn.mode,Ei=mc(jn),di=Vc(jn),ua=Ct.dropDuration,ji={duration:ua,curve:ki.drop,moveTo:Ct.newHomeClientOffset,opacity:di?Si.opacity.drop:null,scale:di?Si.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Ct.newHomeClientOffset,dimension:an,dropping:ji,draggingOver:Ei,combineWith:di,mode:Vn,forceShouldAnimate:null,snapshot:re(Vn,kr,Ei,di,ji)}}}return null};return Ge}function Dc(Re){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Re,combineWith:null}}var Gc={mapped:{type:"SECONDARY",offset:De,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Dc(null)}};function Xc(){var Re=T(function(_t,Dt){return{x:_t,y:Dt}}),re=T(Dc),xe=T(function(_t,Dt,vr){return Dt===void 0&&(Dt=null),{mapped:{type:"SECONDARY",offset:_t,combineTargetFor:Dt,shouldAnimateDisplacement:vr,snapshot:re(Dt)}}}),Ge=function(Dt){return Dt?xe(De,Dt,!0):null},ot=function(Dt,vr,Lr,mr){var ur=Lr.displaced.visible[Dt],Tr=Boolean(mr.inVirtualList&&mr.effected[Dt]),kr=nr(Lr),an=kr&&kr.draggableId===Dt?vr:null;if(!ur){if(!Tr)return Ge(an);if(Lr.displaced.invisible[Dt])return null;var jn=ee(mr.displacedBy.point),Vn=Re(jn.x,jn.y);return xe(Vn,an,!0)}if(Tr)return Ge(an);var Ei=Lr.displacedBy.point,di=Re(Ei.x,Ei.y);return xe(di,an,ur.shouldAnimate)},Ct=function(Dt,vr){if(Dt.isDragging)return Dt.critical.draggable.id===vr.draggableId?null:ot(vr.draggableId,Dt.critical.draggable.id,Dt.impact,Dt.afterCritical);if(Dt.phase==="DROP_ANIMATING"){var Lr=Dt.completed;return Lr.result.draggableId===vr.draggableId?null:ot(vr.draggableId,Lr.result.draggableId,Lr.impact,Lr.afterCritical)}return null};return Ct}var Yc=function(){var re=eu(),xe=Xc(),Ge=function(Ct,_t){return re(Ct,_t)||xe(Ct,_t)||Gc};return Ge},Rc={dropAnimationFinished:Yn},gc=Object(o.c)(Yc,Rc,null,{context:ys,pure:!0,areStatePropsEqual:jl})(Gl);function wl(Re){var re=yl(Wl),xe=re.isUsingCloneFor;return xe===Re.draggableId&&!Re.isClone?null:N.a.createElement(gc,Re)}function vc(Re){var re=typeof Re.isDragDisabled=="boolean"?!Re.isDragDisabled:!0,xe=Boolean(Re.disableInteractiveElementBlocking),Ge=Boolean(Re.shouldRespectForcePress);return N.a.createElement(wl,Object(E.a)({},Re,{isClone:!1,isEnabled:re,canDragInteractiveElements:xe,shouldRespectForcePress:Ge}))}function Cl(Re){var re=Object(D.useContext)(rn);re||me(!1);var xe=re.contextId,Ge=re.isMovementAllowed,ot=Object(D.useRef)(null),Ct=Object(D.useRef)(null),_t=Re.children,Dt=Re.droppableId,vr=Re.type,Lr=Re.mode,mr=Re.direction,ur=Re.ignoreContainerClipping,Tr=Re.isDropDisabled,kr=Re.isCombineEnabled,an=Re.snapshot,jn=Re.useClone,Vn=Re.updateViewportMaxScroll,Ei=Re.getContainerForClone,di=l(function(){return ot.current},[]),ua=l(function(ae){ot.current=ae},[]),ji=l(function(){return Ct.current},[]),Ca=l(function(ae){Ct.current=ae},[]);Tl({props:Re,getDroppableRef:di,getPlaceholderRef:ji});var ha=l(function(){Ge()&&Vn({maxScroll:za()})},[Ge,Vn]);uc({droppableId:Dt,type:vr,mode:Lr,direction:mr,isDropDisabled:Tr,isCombineEnabled:kr,ignoreContainerClipping:ur,getDroppableRef:di});var Za=N.a.createElement(ql,{on:Re.placeholder,shouldAnimate:Re.shouldAnimatePlaceholder},function(ae){var he=ae.onClose,Pe=ae.data,mt=ae.animate;return N.a.createElement(dc,{placeholder:Pe,onClose:he,innerRef:Ca,animate:mt,contextId:xe,onTransitionEnd:ha})}),po=t(function(){return{innerRef:ua,placeholder:Za,droppableProps:{"data-rbd-droppable-id":Dt,"data-rbd-droppable-context-id":xe}}},[xe,Dt,Za,ua]),F=jn?jn.dragging.draggableId:null,K=t(function(){return{droppableId:Dt,type:vr,isUsingCloneFor:F}},[Dt,F,vr]);function te(){if(!jn)return null;var ae=jn.dragging,he=jn.render,Pe=N.a.createElement(wl,{draggableId:ae.draggableId,index:ae.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(mt,It){return he(mt,It,ae)});return M.a.createPortal(Pe,Ei())}return N.a.createElement(Wl.Provider,{value:K},_t(po,an),te())}var tc=function(re,xe){return re===xe.droppable.type},be=function(re,xe){return xe.draggables[re.draggable.id]},ze=function(){var re={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},xe=Object(E.a)({},re,{shouldAnimatePlaceholder:!1}),Ge=T(function(_t){return{draggableId:_t.id,type:_t.type,source:{index:_t.index,droppableId:_t.droppableId}}}),ot=T(function(_t,Dt,vr,Lr,mr,ur){var Tr=mr.descriptor.id,kr=mr.descriptor.droppableId===_t;if(kr){var an=ur?{render:ur,dragging:Ge(mr.descriptor)}:null,jn={isDraggingOver:vr,draggingOverWith:vr?Tr:null,draggingFromThisWith:Tr,isUsingPlaceholder:!0};return{placeholder:mr.placeholder,shouldAnimatePlaceholder:!1,snapshot:jn,useClone:an}}if(!Dt)return xe;if(!Lr)return re;var Vn={isDraggingOver:vr,draggingOverWith:Tr,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:mr.placeholder,shouldAnimatePlaceholder:!0,snapshot:Vn,useClone:null}}),Ct=function(Dt,vr){var Lr=vr.droppableId,mr=vr.type,ur=!vr.isDropDisabled,Tr=vr.renderClone;if(Dt.isDragging){var kr=Dt.critical;if(!tc(mr,kr))return xe;var an=be(kr,Dt.dimensions),jn=Sn(Dt.impact)===Lr;return ot(Lr,ur,jn,jn,an,Tr)}if(Dt.phase==="DROP_ANIMATING"){var Vn=Dt.completed;if(!tc(mr,Vn.critical))return xe;var Ei=be(Vn.critical,Dt.dimensions);return ot(Lr,ur,mc(Vn.result)===Lr,Sn(Vn.impact)===Lr,Ei,Tr)}if(Dt.phase==="IDLE"&&Dt.completed&&!Dt.shouldFlush){var di=Dt.completed;if(!tc(mr,di.critical))return xe;var ua=Sn(di.impact)===Lr,ji=Boolean(di.impact.at&&di.impact.at.type==="COMBINE"),Ca=di.critical.droppable.id===Lr;return ua?ji?re:xe:Ca?re:xe}return xe};return Ct},pt={updateViewportMaxScroll:Wr};function Ht(){return document.body||me(!1),document.body}var dr={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Ht},Cr=Object(o.c)(ze,pt,null,{context:ys,pure:!0,areStatePropsEqual:jl})(Cl);Cr.defaultProps=dr},ni6a:function(fe,z,y){var D=y("pzxd"),N=y("mFDi"),L=y("gut8"),E=L.WILL_BE_RESTORED,I=new N,o=function(){};o.prototype={constructor:o,drawRectText:function(s,t){var l=this.style;t=l.textRect||t,this.__dirty&&D.normalizeTextStyle(l,!0);var a=l.text;if(a!=null&&(a+=""),!D.needDrawText(a,l))return;s.save();var r=this.transform;l.transformText?this.setTransform(s):r&&(I.copy(t),I.applyTransform(r),t=I),D.renderText(this,s,a,l,t,E),s.restore()}};var m=o;fe.exports=m},nkfE:function(fe,z,y){var D=y("bYtY"),N=y("ca2m"),L=y("bLfw"),E=y("+TT/"),I=E.getLayoutParams,o=E.mergeLayoutParam,m=y("jkPA"),f=["value","category","time","log"];function s(t,l,a,r){D.each(f,function(u){l.extend({type:t+"Axis."+u,mergeDefaultAndTheme:function(e,n){var i=this.layoutMode,c=i?I(e):{},d=n.getTheme();D.merge(e,d.get(u+"Axis")),D.merge(e,this.getDefaultOption()),e.type=a(t,e),i&&o(e,c,i)},optionUpdated:function(){var e=this.option;e.type==="category"&&(this.__ordinalMeta=m.createByAxisModel(this))},getCategories:function(e){var n=this.option;if(n.type==="category")return e?n.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:D.mergeAll([{},N[u+"Axis"],r],!0)})}),L.registerSubTypeDefaulter(t+"Axis",D.curry(a,t))}fe.exports=s},noeP:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("UOVi");D.registerAction("dataZoom",function(E,I){var o=L.createLinkedNodesFinder(N.bind(I.eachComponent,I,"dataZoom"),L.eachAxisDim,function(f,s){return f.get(s.axisIndex)}),m=[];I.eachComponent({mainType:"dataZoom",query:E},function(f,s){m.push.apply(m,o(f).nodes)}),N.each(m,function(f,s){f.setRawRange({start:E.start,end:E.end,startValue:E.startValue,endValue:E.endValue})})})},o40c:function(fe,z,y){var D=y("IwbS"),N=y("OS9S"),L=y("loD1"),E=y("aKvl"),I=D.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(s,t){var l=t.segs,a=t.curveness;if(t.polyline)for(var r=0;r<l.length;){var u=l[r++];if(u>0){s.moveTo(l[r++],l[r++]);for(var e=1;e<u;e++)s.lineTo(l[r++],l[r++])}}else for(var r=0;r<l.length;){var n=l[r++],i=l[r++],c=l[r++],d=l[r++];if(s.moveTo(n,i),a>0){var h=(n+c)/2-(i-d)*a,p=(i+d)/2-(c-n)*a;s.quadraticCurveTo(h,p,c,d)}else s.lineTo(c,d)}},findDataIndex:function(s,t){var l=this.shape,a=l.segs,r=l.curveness;if(l.polyline)for(var u=0,e=0;e<a.length;){var n=a[e++];if(n>0)for(var i=a[e++],c=a[e++],d=1;d<n;d++){var h=a[e++],p=a[e++];if(L.containStroke(i,c,h,p))return u}u++}else for(var u=0,e=0;e<a.length;){var i=a[e++],c=a[e++],h=a[e++],p=a[e++];if(r>0){var g=(i+h)/2-(c-p)*r,v=(c+p)/2-(h-i)*r;if(E.containStroke(i,c,g,v,h,p))return u}else if(L.containStroke(i,c,h,p))return u;u++}return-1}});function o(){this.group=new D.Group}var m=o.prototype;m.isPersistent=function(){return!this._incremental},m.updateData=function(s){this.group.removeAll();var t=new I({rectHover:!0,cursor:"default"});t.setShape({segs:s.getLayout("linesPoints")}),this._setCommon(t,s),this.group.add(t),this._incremental=null},m.incrementalPrepareUpdate=function(s){this.group.removeAll(),this._clearIncremental(),s.count()>5e5?(this._incremental||(this._incremental=new N({silent:!0})),this.group.add(this._incremental)):this._incremental=null},m.incrementalUpdate=function(s,t){var l=new I;l.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(l,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(l,!0):(l.rectHover=!0,l.cursor="default",l.__startIndex=s.start,this.group.add(l))},m.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},m._setCommon=function(s,t,l){var a=t.hostModel;s.setShape({polyline:a.get("polyline"),curveness:a.get("lineStyle.curveness")}),s.useStyle(a.getModel("lineStyle").getLineStyle()),s.style.strokeNoScale=!0;var r=t.getVisual("color");r&&s.setStyle("stroke",r),s.setStyle("fill"),l||(s.seriesIndex=a.seriesIndex,s.on("mousemove",function(u){s.dataIndex=null;var e=s.findDataIndex(u.offsetX,u.offsetY);e>0&&(s.dataIndex=e+s.__startIndex)}))},m._clearIncremental=function(){var s=this._incremental;s&&s.clearDisplaybles()};var f=o;fe.exports=f},oBaM:function(fe,z,y){var D=y("T4UG"),N=y("5GtS"),L=y("bYtY"),E=y("7aKB"),I=E.encodeHTML,o=y("xKMd"),m=D.extend({type:"series.radar",dependencies:["radar"],init:function(s){m.superApply(this,"init",arguments),this.legendVisualProvider=new o(L.bind(this.getData,this),L.bind(this.getRawData,this))},getInitialData:function(s,t){return N(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(s){var t=this.getData(),l=this.coordinateSystem,a=l.getIndicatorAxes(),r=this.getData().getName(s);return I(r===""?this.name:r)+"<br/>"+L.map(a,function(u,e){var n=t.get(t.mapDimension(u.dim),s);return I(u.name+" : "+n)}).join("<br />")},getTooltipPosition:function(s){if(s!=null){for(var t=this.getData(),l=this.coordinateSystem,a=t.getValues(L.map(l.dimensions,function(n){return t.mapDimension(n)}),s,!0),r=0,u=a.length;r<u;r++)if(!isNaN(a[r])){var e=l.getIndicatorAxes();return l.coordToPoint(e[r].dataToCoord(a[r]),r)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),f=m;fe.exports=f},oE7X:function(fe,z,y){var D=y("bLfw");D.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(fe,z,y){},oRuE:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return D.pad.Iso10126={pad:function(L,E){var I=E*4,o=I-L.sigBytes%I;L.concat(D.lib.WordArray.random(o-1)).concat(D.lib.WordArray.create([o<<24],1))},unpad:function(L){var E=L.words[L.sigBytes-1>>>2]&255;L.sigBytes-=E}},D.pad.Iso10126})},oVpE:function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L=y("mFDi"),E=y("6GrX"),I=E.calculateTextPosition,o=N.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,i){var c=i.cx,d=i.cy,h=i.width/2,p=i.height/2;n.moveTo(c,d-p),n.lineTo(c+h,d+p),n.lineTo(c-h,d+p),n.closePath()}}),m=N.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,i){var c=i.cx,d=i.cy,h=i.width/2,p=i.height/2;n.moveTo(c,d-p),n.lineTo(c+h,d),n.lineTo(c,d+p),n.lineTo(c-h,d),n.closePath()}}),f=N.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,i){var c=i.x,d=i.y,h=i.width/5*3,p=Math.max(h,i.height),g=h/2,v=g*g/(p-g),A=d-p+g+v,x=Math.asin(v/g),b=Math.cos(x)*g,w=Math.sin(x),S=Math.cos(x),T=g*.6,C=g*.7;n.moveTo(c-b,A+v),n.arc(c,A,g,Math.PI-x,Math.PI*2+x),n.bezierCurveTo(c+b-w*T,A+v+S*T,c,d-C,c,d),n.bezierCurveTo(c,d-C,c-b+w*T,A+v+S*T,c-b,A+v),n.closePath()}}),s=N.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,i){var c=i.height,d=i.width,h=i.x,p=i.y,g=d/3*2;n.moveTo(h,p),n.lineTo(h+g,p+c),n.lineTo(h,p+c/4*3),n.lineTo(h-g,p+c),n.lineTo(h,p),n.closePath()}}),t={line:N.Line,rect:N.Rect,roundRect:N.Rect,square:N.Rect,circle:N.Circle,diamond:m,pin:f,arrow:s,triangle:o},l={line:function(n,i,c,d,h){h.x1=n,h.y1=i+d/2,h.x2=n+c,h.y2=i+d/2},rect:function(n,i,c,d,h){h.x=n,h.y=i,h.width=c,h.height=d},roundRect:function(n,i,c,d,h){h.x=n,h.y=i,h.width=c,h.height=d,h.r=Math.min(c,d)/4},square:function(n,i,c,d,h){var p=Math.min(c,d);h.x=n,h.y=i,h.width=p,h.height=p},circle:function(n,i,c,d,h){h.cx=n+c/2,h.cy=i+d/2,h.r=Math.min(c,d)/2},diamond:function(n,i,c,d,h){h.cx=n+c/2,h.cy=i+d/2,h.width=c,h.height=d},pin:function(n,i,c,d,h){h.x=n+c/2,h.y=i+d/2,h.width=c,h.height=d},arrow:function(n,i,c,d,h){h.x=n+c/2,h.y=i+d/2,h.width=c,h.height=d},triangle:function(n,i,c,d,h){h.cx=n+c/2,h.cy=i+d/2,h.width=c,h.height=d}},a={};D.each(t,function(n,i){a[i]=new n});var r=N.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,i,c){var d=I(n,i,c),h=this.shape;return h&&h.symbolType==="pin"&&i.textPosition==="inside"&&(d.y=c.y+c.height*.4),d},buildPath:function(n,i,c){var d=i.symbolType;if(d!=="none"){var h=a[d];h||(d="rect",h=a[d]),l[d](i.x,i.y,i.width,i.height,h.shape),h.buildPath(n,h.shape,c)}}});function u(n,i){if(this.type!=="image"){var c=this.style,d=this.shape;d&&d.symbolType==="line"?c.stroke=n:this.__isEmptyBrush?(c.stroke=n,c.fill=i||"#fff"):(c.fill&&(c.fill=n),c.stroke&&(c.stroke=n)),this.dirty(!1)}}function e(n,i,c,d,h,p,g){var v=n.indexOf("empty")===0;v&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var A;return n.indexOf("image://")===0?A=N.makeImage(n.slice(8),new L(i,c,d,h),g?"center":"cover"):n.indexOf("path://")===0?A=N.makePath(n.slice(7),{},new L(i,c,d,h),g?"center":"cover"):A=new r({shape:{symbolType:n,x:i,y:c,width:d,height:h}}),A.__isEmptyBrush=v,A.setColor=u,A.setColor(p),A}z.createSymbol=e},oY9F:function(fe,z,y){var D=y("OlYY"),N=D.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});fe.exports=N},osHv:function(fe,z,y){(function(D){D(y("VrN/"))})(function(D){"use strict";var N=D.Pos;function L(i,c){return i.line-c.line||i.ch-c.ch}var E="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",I=E+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",o=new RegExp("<(/?)(["+E+"]["+I+"]*)","g");function m(i,c,d,h){this.line=c,this.ch=d,this.cm=i,this.text=i.getLine(c),this.min=h?Math.max(h.from,i.firstLine()):i.firstLine(),this.max=h?Math.min(h.to-1,i.lastLine()):i.lastLine()}function f(i,c){var d=i.cm.getTokenTypeAt(N(i.line,c));return d&&/\btag\b/.test(d)}function s(i){return i.line>=i.max?void 0:(i.ch=0,i.text=i.cm.getLine(++i.line),!0)}function t(i){return i.line<=i.min?void 0:(i.text=i.cm.getLine(--i.line),i.ch=i.text.length,!0)}function l(i){for(;;){var c=i.text.indexOf(">",i.ch);if(c==-1){if(s(i))continue;return}if(!f(i,c+1)){i.ch=c+1;continue}var d=i.text.lastIndexOf("/",c),h=d>-1&&!/\S/.test(i.text.slice(d+1,c));return i.ch=c+1,h?"selfClose":"regular"}}function a(i){for(;;){var c=i.ch?i.text.lastIndexOf("<",i.ch-1):-1;if(c==-1){if(t(i))continue;return}if(!f(i,c+1)){i.ch=c;continue}o.lastIndex=c,i.ch=c;var d=o.exec(i.text);if(d&&d.index==c)return d}}function r(i){for(;;){o.lastIndex=i.ch;var c=o.exec(i.text);if(!c){if(s(i))continue;return}if(!f(i,c.index+1)){i.ch=c.index+1;continue}return i.ch=c.index+c[0].length,c}}function u(i){for(;;){var c=i.ch?i.text.lastIndexOf(">",i.ch-1):-1;if(c==-1){if(t(i))continue;return}if(!f(i,c+1)){i.ch=c;continue}var d=i.text.lastIndexOf("/",c),h=d>-1&&!/\S/.test(i.text.slice(d+1,c));return i.ch=c+1,h?"selfClose":"regular"}}function e(i,c){for(var d=[];;){var h=r(i),p,g=i.line,v=i.ch-(h?h[0].length:0);if(!h||!(p=l(i)))return;if(p=="selfClose")continue;if(h[1]){for(var A=d.length-1;A>=0;--A)if(d[A]==h[2]){d.length=A;break}if(A<0&&(!c||c==h[2]))return{tag:h[2],from:N(g,v),to:N(i.line,i.ch)}}else d.push(h[2])}}function n(i,c){for(var d=[];;){var h=u(i);if(!h)return;if(h=="selfClose"){a(i);continue}var p=i.line,g=i.ch,v=a(i);if(!v)return;if(v[1])d.push(v[2]);else{for(var A=d.length-1;A>=0;--A)if(d[A]==v[2]){d.length=A;break}if(A<0&&(!c||c==v[2]))return{tag:v[2],from:N(i.line,i.ch),to:N(p,g)}}}}D.registerHelper("fold","xml",function(i,c){for(var d=new m(i,c.line,0);;){var h=r(d);if(!h||d.line!=c.line)return;var p=l(d);if(!p)return;if(!h[1]&&p!="selfClose"){var g=N(d.line,d.ch),v=e(d,h[2]);return v&&L(v.from,g)>0?{from:g,to:v.from}:null}}}),D.findMatchingTag=function(i,c,d){var h=new m(i,c.line,c.ch,d);if(h.text.indexOf(">")==-1&&h.text.indexOf("<")==-1)return;var p=l(h),g=p&&N(h.line,h.ch),v=p&&a(h);if(!p||!v||L(h,c)>0)return;var A={from:N(h.line,h.ch),to:g,tag:v[2]};return p=="selfClose"?{open:A,close:null,at:"open"}:v[1]?{open:n(h,v[2]),close:A,at:"close"}:(h=new m(i,g.line,g.ch,d),{open:A,close:e(h,v[2]),at:"open"})},D.findEnclosingTag=function(i,c,d,h){for(var p=new m(i,c.line,c.ch,d);;){var g=n(p,h);if(!g)break;var v=new m(i,c.line,c.ch,d),A=e(v,g.tag);if(A)return{open:g,close:A}}},D.scanForClosingTag=function(i,c,d,h){var p=new m(i,c.line,c.ch,h?{from:0,to:h}:null);return e(p,d)}})},ozfa:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("KxFI"),E=y.n(L)},"p+If":function(fe,z,y){var D=y("ProS");y("cpOr"),y("rkZ5");var N=y("ZYIC"),L=y("7ph2");D.registerLayout(N),D.registerVisual(L)},"p/La":function(fe,z){var y=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function D(N,L){N==="china"&&L.name==="\u53F0\u6E7E"&&L.geometries.push({type:"polygon",exterior:y[0]})}fe.exports=D},p1MT:function(fe,z,y){var D=y("Hw7h"),N=y("IwbS"),L=y("6Ic6"),E=y("OELB"),I=E.parsePercent,o=E.round,m=E.linearMap;function f(r,u){var e=r.get("center"),n=u.getWidth(),i=u.getHeight(),c=Math.min(n,i),d=I(e[0],u.getWidth()),h=I(e[1],u.getHeight()),p=I(r.get("radius"),c/2);return{cx:d,cy:h,r:p}}function s(r,u){return u&&(typeof u=="string"?r=u.replace("{value}",r!=null?r:""):typeof u=="function"&&(r=u(r))),r}var t=Math.PI*2,l=L.extend({type:"gauge",render:function(r,u,e){this.group.removeAll();var n=r.get("axisLine.lineStyle.color"),i=f(r,e);this._renderMain(r,u,e,n,i)},dispose:function(){},_renderMain:function(r,u,e,n,i){for(var c=this.group,d=r.getModel("axisLine"),h=d.getModel("lineStyle"),p=r.get("clockwise"),g=-r.get("startAngle")/180*Math.PI,v=-r.get("endAngle")/180*Math.PI,A=(v-g)%t,x=g,b=h.get("width"),w=d.get("show"),S=0;w&&S<n.length;S++){var T=Math.min(Math.max(n[S][0],0),1),v=g+A*T,C=new N.Sector({shape:{startAngle:x,endAngle:v,cx:i.cx,cy:i.cy,clockwise:p,r0:i.r-b,r:i.r},silent:!0});C.setStyle({fill:n[S][1]}),C.setStyle(h.getLineStyle(["color","borderWidth","borderColor"])),c.add(C),x=v}var O=function(M){if(M<=0)return n[0][1];for(var k=0;k<n.length;k++)if(n[k][0]>=M&&(k===0?0:n[k-1][0])<M)return n[k][1];return n[k-1][1]};if(!p){var _=g;g=v,v=_}this._renderTicks(r,u,e,O,i,g,v,p),this._renderPointer(r,u,e,O,i,g,v,p),this._renderTitle(r,u,e,O,i),this._renderDetail(r,u,e,O,i)},_renderTicks:function(r,u,e,n,i,c,d,h){for(var p=this.group,g=i.cx,v=i.cy,A=i.r,x=+r.get("min"),b=+r.get("max"),w=r.getModel("splitLine"),S=r.getModel("axisTick"),T=r.getModel("axisLabel"),C=r.get("splitNumber"),O=S.get("splitNumber"),_=I(w.get("length"),A),M=I(S.get("length"),A),k=c,R=(d-c)/C,B=R/O,P=w.getModel("lineStyle").getLineStyle(),U=S.getModel("lineStyle").getLineStyle(),j=0;j<=C;j++){var H=Math.cos(k),W=Math.sin(k);if(w.get("show")){var G=new N.Line({shape:{x1:H*A+g,y1:W*A+v,x2:H*(A-_)+g,y2:W*(A-_)+v},style:P,silent:!0});P.stroke==="auto"&&G.setStyle({stroke:n(j/C)}),p.add(G)}if(T.get("show")){var V=s(o(j/C*(b-x)+x),T.get("formatter")),Z=T.get("distance"),Y=n(j/C);p.add(new N.Text({style:N.setTextStyle({},T,{text:V,x:H*(A-_-Z)+g,y:W*(A-_-Z)+v,textVerticalAlign:W<-.4?"top":W>.4?"bottom":"middle",textAlign:H<-.4?"left":H>.4?"right":"center"},{autoColor:Y}),silent:!0}))}if(S.get("show")&&j!==C){for(var Q=0;Q<=O;Q++){var H=Math.cos(k),W=Math.sin(k),oe=new N.Line({shape:{x1:H*A+g,y1:W*A+v,x2:H*(A-M)+g,y2:W*(A-M)+v},silent:!0,style:U});U.stroke==="auto"&&oe.setStyle({stroke:n((j+Q/O)/C)}),p.add(oe),k+=B}k-=B}else k+=R}},_renderPointer:function(r,u,e,n,i,c,d,h){var p=this.group,g=this._data;if(!r.get("pointer.show")){g&&g.eachItemGraphicEl(function(w){p.remove(w)});return}var v=[+r.get("min"),+r.get("max")],A=[c,d],x=r.getData(),b=x.mapDimension("value");x.diff(g).add(function(w){var S=new D({shape:{angle:c}});N.initProps(S,{shape:{angle:m(x.get(b,w),v,A,!0)}},r),p.add(S),x.setItemGraphicEl(w,S)}).update(function(w,S){var T=g.getItemGraphicEl(S);N.updateProps(T,{shape:{angle:m(x.get(b,w),v,A,!0)}},r),p.add(T),x.setItemGraphicEl(w,T)}).remove(function(w){var S=g.getItemGraphicEl(w);p.remove(S)}).execute(),x.eachItemGraphicEl(function(w,S){var T=x.getItemModel(S),C=T.getModel("pointer");w.setShape({x:i.cx,y:i.cy,width:I(C.get("width"),i.r),r:I(C.get("length"),i.r)}),w.useStyle(T.getModel("itemStyle").getItemStyle()),w.style.fill==="auto"&&w.setStyle("fill",n(m(x.get(b,S),v,[0,1],!0))),N.setHoverStyle(w,T.getModel("emphasis.itemStyle").getItemStyle())}),this._data=x},_renderTitle:function(r,u,e,n,i){var c=r.getData(),d=c.mapDimension("value"),h=r.getModel("title");if(h.get("show")){var p=h.get("offsetCenter"),g=i.cx+I(p[0],i.r),v=i.cy+I(p[1],i.r),A=+r.get("min"),x=+r.get("max"),b=r.getData().get(d,0),w=n(m(b,[A,x],[0,1],!0));this.group.add(new N.Text({silent:!0,style:N.setTextStyle({},h,{x:g,y:v,text:c.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:w,forceRich:!0})}))}},_renderDetail:function(r,u,e,n,i){var c=r.getModel("detail"),d=+r.get("min"),h=+r.get("max");if(c.get("show")){var p=c.get("offsetCenter"),g=i.cx+I(p[0],i.r),v=i.cy+I(p[1],i.r),A=I(c.get("width"),i.r),x=I(c.get("height"),i.r),b=r.getData(),w=b.get(b.mapDimension("value"),0),S=n(m(w,[d,h],[0,1],!0));this.group.add(new N.Text({silent:!0,style:N.setTextStyle({},c,{x:g,y:v,text:s(w,c.get("formatter")),textWidth:isNaN(A)?null:A,textHeight:isNaN(x)?null:x,textAlign:"center",textVerticalAlign:"middle"},{autoColor:S,forceRich:!0})}))}}}),a=l;fe.exports=a},"p77/":function(fe,z,y){},pA7S:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.WordArray,I=L.BlockCipher,o=N.algo,m=[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],f=[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],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],t=[{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}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],a=o.DES=I.extend({_doReset:function(){for(var i=this._key,c=i.words,d=[],h=0;h<56;h++){var p=m[h]-1;d[h]=c[p>>>5]>>>31-p%32&1}for(var g=this._subKeys=[],v=0;v<16;v++){for(var A=g[v]=[],x=s[v],h=0;h<24;h++)A[h/6|0]|=d[(f[h]-1+x)%28]<<31-h%6,A[4+(h/6|0)]|=d[28+(f[h+24]-1+x)%28]<<31-h%6;A[0]=A[0]<<1|A[0]>>>31;for(var h=1;h<7;h++)A[h]=A[h]>>>(h-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var b=this._invSubKeys=[],h=0;h<16;h++)b[h]=g[15-h]},encryptBlock:function(i,c){this._doCryptBlock(i,c,this._subKeys)},decryptBlock:function(i,c){this._doCryptBlock(i,c,this._invSubKeys)},_doCryptBlock:function(i,c,d){this._lBlock=i[c],this._rBlock=i[c+1],r.call(this,4,252645135),r.call(this,16,65535),u.call(this,2,858993459),u.call(this,8,16711935),r.call(this,1,1431655765);for(var h=0;h<16;h++){for(var p=d[h],g=this._lBlock,v=this._rBlock,A=0,x=0;x<8;x++)A|=t[x][((v^p[x])&l[x])>>>0];this._lBlock=v,this._rBlock=g^A}var b=this._lBlock;this._lBlock=this._rBlock,this._rBlock=b,r.call(this,1,1431655765),u.call(this,8,16711935),u.call(this,2,858993459),r.call(this,16,65535),r.call(this,4,252645135),i[c]=this._lBlock,i[c+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function r(n,i){var c=(this._lBlock>>>n^this._rBlock)&i;this._rBlock^=c,this._lBlock^=c<<n}function u(n,i){var c=(this._rBlock>>>n^this._lBlock)&i;this._lBlock^=c,this._rBlock^=c<<n}N.DES=I._createHelper(a);var e=o.TripleDES=I.extend({_doReset:function(){var i=this._key,c=i.words;if(c.length!==2&&c.length!==4&&c.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var d=c.slice(0,2),h=c.length<4?c.slice(0,2):c.slice(2,4),p=c.length<6?c.slice(0,2):c.slice(4,6);this._des1=a.createEncryptor(E.create(d)),this._des2=a.createEncryptor(E.create(h)),this._des3=a.createEncryptor(E.create(p))},encryptBlock:function(i,c){this._des1.encryptBlock(i,c),this._des2.decryptBlock(i,c),this._des3.encryptBlock(i,c)},decryptBlock:function(i,c){this._des3.decryptBlock(i,c),this._des2.encryptBlock(i,c),this._des1.decryptBlock(i,c)},keySize:192/32,ivSize:64/32,blockSize:64/32});N.TripleDES=I._createHelper(e)}(),D.TripleDES})},pC0b:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("xzDV"),E=y.n(L),I=y("5Dmo")},"pED+":function(fe,z,y){},pG52:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("WXVj"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},pLH3:function(fe,z,y){var D=y("ProS");y("ALo7"),y("TWL2");var N=y("mOdp"),L=y("JLnu"),E=y("0/Rx");D.registerVisual(N("funnel")),D.registerLayout(L),D.registerProcessor(E("funnel"))},pP6R:function(fe,z,y){var D=y("ProS"),N="\0_ec_interaction_mutex";function L(m,f,s){var t=o(m);t[f]=s}function E(m,f,s){var t=o(m),l=t[f];l===s&&(t[f]=null)}function I(m,f){return!!o(m)[f]}function o(m){return m[N]||(m[N]={})}D.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),z.take=L,z.release=E,z.isTaken=I},pmaE:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("IwbS"),E=y("DEFe"),I="__seriesMapHighDown",o="__seriesMapCallKey",m=D.extendChartView({type:"map",render:function(t,l,a,r){if(r&&r.type==="mapToggleSelect"&&r.from===this.uid)return;var u=this.group;if(u.removeAll(),t.getHostGeoModel())return;if(r&&r.type==="geoRoam"&&r.componentType==="series"&&r.seriesId===t.id){var e=this._mapDraw;e&&u.add(e.group)}else if(t.needsDrawMap){var e=this._mapDraw||new E(a,!0);u.add(e.group),e.draw(t,l,a,this,r),this._mapDraw=e}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&l.getComponent("legend")&&this._renderSymbols(t,l,a)},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(t,l,a){var r=t.originalData,u=this.group;r.each(r.mapDimension("value"),function(e,n){if(isNaN(e))return;var i=r.getItemLayout(n);if(!i||!i.point)return;var c=i.point,d=i.offset,h=new L.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:c[0]+d*9,cy:c[1],r:3},silent:!0,z2:8+(d?0:L.Z2_EMPHASIS_LIFT+1)});if(!d){var p=t.mainSeries.getData(),g=r.getName(n),v=p.indexOfName(g),A=r.getItemModel(n),x=A.getModel("label"),b=A.getModel("emphasis.label"),w=p.getItemGraphicEl(v),S=N.retrieve2(t.getFormattedLabel(v,"normal"),g),T=N.retrieve2(t.getFormattedLabel(v,"emphasis"),S),C=w[I],O=Math.random();if(!C){C=w[I]={};var _=N.curry(f,!0),M=N.curry(f,!1);w.on("mouseover",_).on("mouseout",M).on("emphasis",_).on("normal",M)}w[o]=O,N.extend(C,{recordVersion:O,circle:h,labelModel:x,hoverLabelModel:b,emphasisText:T,normalText:S}),s(C,!1)}u.add(h)})}});function f(t){var l=this[I];l&&l.recordVersion===this[o]&&s(l,t)}function s(t,l){var a=t.circle,r=t.labelModel,u=t.hoverLabelModel,e=t.emphasisText,n=t.normalText;l?(a.style.extendFrom(L.setTextStyle({},u,{text:u.get("show")?e:null},{isRectText:!0,useInsideStyle:!1},!0)),a.__mapOriginalZ2=a.z2,a.z2+=L.Z2_EMPHASIS_LIFT):(L.setTextStyle(a.style,r,{text:r.get("show")?n:null,textPosition:r.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),a.dirty(!1),a.__mapOriginalZ2!=null&&(a.z2=a.__mapOriginalZ2,a.__mapOriginalZ2=null))}fe.exports=m},pwpV:function(fe,z,y){},pzxd:function(fe,z,y){var D=y("bYtY"),N=D.retrieve2,L=D.retrieve3,E=D.each,I=D.normalizeCssArray,o=D.isString,m=D.isObject,f=y("6GrX"),s=y("VpOo"),t=y("Xnb7"),l=y("fW2E"),a=y("gut8"),r=a.ContextCachedBy,u=a.WILL_BE_RESTORED,e=f.DEFAULT_FONT,n={left:1,right:1,center:1},i={top:1,bottom:1,middle:1},c=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],d={},h={};function p(j){return g(j),E(j.rich,g),j}function g(j){if(j){j.font=f.makeFont(j);var H=j.textAlign;H==="middle"&&(H="center"),j.textAlign=H==null||n[H]?H:"left";var W=j.textVerticalAlign||j.textBaseline;W==="center"&&(W="middle"),j.textVerticalAlign=W==null||i[W]?W:"top";var G=j.textPadding;G&&(j.textPadding=I(j.textPadding))}}function v(j,H,W,G,V,Z){G.rich?x(j,H,W,G,V,Z):A(j,H,W,G,V,Z)}function A(j,H,W,G,V,Z){"use strict";var Y=T(G),Q,oe=!1,ue=H.__attrCachedBy===r.PLAIN_TEXT;Z!==u?(Z&&(Q=Z.style,oe=!Y&&ue&&Q),H.__attrCachedBy=Y?r.NONE:r.PLAIN_TEXT):ue&&(H.__attrCachedBy=r.NONE);var Le=G.font||e;(!oe||Le!==(Q.font||e))&&(H.font=Le);var me=j.__computedFont;j.__styleFont!==Le&&(j.__styleFont=Le,me=j.__computedFont=H.font);var Ie=G.textPadding,X=G.textLineHeight,q=j.__textCotentBlock;(!q||j.__dirtyText)&&(q=j.__textCotentBlock=f.parsePlainText(W,me,Ie,X,G.truncate));var We=q.outerHeight,$=q.lines,J=q.lineHeight,le=_(h,j,G,V),de=le.baseX,Ne=le.baseY,we=le.textAlign||"left",De=le.textVerticalAlign;w(H,G,V,de,Ne);var Ee=f.adjustTextY(Ne,We,De),ce=de,ne=Ee;if(Y||Ie){var ee=f.getWidth(W,me),Ae=ee;Ie&&(Ae+=Ie[1]+Ie[3]);var Ve=f.adjustTextX(de,Ae,we);Y&&C(j,H,G,Ve,Ee,Ae,We),Ie&&(ce=P(de,we,Ie),ne+=Ie[0])}H.textAlign=we,H.textBaseline="middle",H.globalAlpha=G.opacity||1;for(var Ke=0;Ke<c.length;Ke++){var Oe=c[Ke],it=Oe[0],Fe=Oe[1],ft=G[it];(!oe||ft!==Q[it])&&(H[Fe]=l(H,Fe,ft||Oe[2]))}ne+=J/2;var At=G.textStrokeWidth,bt=oe?Q.textStrokeWidth:null,St=!oe||At!==bt,Et=!oe||St||G.textStroke!==Q.textStroke,je=k(G.textStroke,At),pe=R(G.textFill);if(je&&(St&&(H.lineWidth=At),Et&&(H.strokeStyle=je)),pe&&((!oe||G.textFill!==Q.textFill)&&(H.fillStyle=pe)),$.length===1)je&&H.strokeText($[0],ce,ne),pe&&H.fillText($[0],ce,ne);else for(var Ke=0;Ke<$.length;Ke++)je&&H.strokeText($[Ke],ce,ne),pe&&H.fillText($[Ke],ce,ne),ne+=J}function x(j,H,W,G,V,Z){Z!==u&&(H.__attrCachedBy=r.NONE);var Y=j.__textCotentBlock;(!Y||j.__dirtyText)&&(Y=j.__textCotentBlock=f.parseRichText(W,G)),b(j,H,Y,G,V)}function b(j,H,W,G,V){var Z=W.width,Y=W.outerWidth,Q=W.outerHeight,oe=G.textPadding,ue=_(h,j,G,V),Le=ue.baseX,me=ue.baseY,Ie=ue.textAlign,X=ue.textVerticalAlign;w(H,G,V,Le,me);var q=f.adjustTextX(Le,Y,Ie),We=f.adjustTextY(me,Q,X),$=q,J=We;oe&&($+=oe[3],J+=oe[0]);var le=$+Z;T(G)&&C(j,H,G,q,We,Y,Q);for(var de=0;de<W.lines.length;de++){for(var Ne=W.lines[de],we=Ne.tokens,De=we.length,Ee=Ne.lineHeight,ce=Ne.width,ne=0,ee=$,Ae=le,Ve=De-1,Ke;ne<De&&(Ke=we[ne],!Ke.textAlign||Ke.textAlign==="left");)S(j,H,Ke,G,Ee,J,ee,"left"),ce-=Ke.width,ee+=Ke.width,ne++;for(;Ve>=0&&(Ke=we[Ve],Ke.textAlign==="right");)S(j,H,Ke,G,Ee,J,Ae,"right"),ce-=Ke.width,Ae-=Ke.width,Ve--;for(ee+=(Z-(ee-$)-(le-Ae)-ce)/2;ne<=Ve;)Ke=we[ne],S(j,H,Ke,G,Ee,J,ee+Ke.width/2,"center"),ee+=Ke.width,ne++;J+=Ee}}function w(j,H,W,G,V){if(W&&H.textRotation){var Z=H.textOrigin;Z==="center"?(G=W.width/2+W.x,V=W.height/2+W.y):Z&&(G=Z[0]+W.x,V=Z[1]+W.y),j.translate(G,V),j.rotate(-H.textRotation),j.translate(-G,-V)}}function S(j,H,W,G,V,Z,Y,Q){var oe=G.rich[W.styleName]||{};oe.text=W.text;var ue=W.textVerticalAlign,Le=Z+V/2;ue==="top"?Le=Z+W.height/2:ue==="bottom"&&(Le=Z+V-W.height/2),!W.isLineHolder&&T(oe)&&C(j,H,oe,Q==="right"?Y-W.width:Q==="center"?Y-W.width/2:Y,Le-W.height/2,W.width,W.height);var me=W.textPadding;me&&(Y=P(Y,Q,me),Le-=W.height/2-me[2]-W.textHeight/2),M(H,"shadowBlur",L(oe.textShadowBlur,G.textShadowBlur,0)),M(H,"shadowColor",oe.textShadowColor||G.textShadowColor||"transparent"),M(H,"shadowOffsetX",L(oe.textShadowOffsetX,G.textShadowOffsetX,0)),M(H,"shadowOffsetY",L(oe.textShadowOffsetY,G.textShadowOffsetY,0)),M(H,"textAlign",Q),M(H,"textBaseline","middle"),M(H,"font",W.font||e);var Ie=k(oe.textStroke||G.textStroke,q),X=R(oe.textFill||G.textFill),q=N(oe.textStrokeWidth,G.textStrokeWidth);Ie&&(M(H,"lineWidth",q),M(H,"strokeStyle",Ie),H.strokeText(W.text,Y,Le)),X&&(M(H,"fillStyle",X),H.fillText(W.text,Y,Le))}function T(j){return!!(j.textBackgroundColor||j.textBorderWidth&&j.textBorderColor)}function C(j,H,W,G,V,Z,Y){var Q=W.textBackgroundColor,oe=W.textBorderWidth,ue=W.textBorderColor,Le=o(Q);if(M(H,"shadowBlur",W.textBoxShadowBlur||0),M(H,"shadowColor",W.textBoxShadowColor||"transparent"),M(H,"shadowOffsetX",W.textBoxShadowOffsetX||0),M(H,"shadowOffsetY",W.textBoxShadowOffsetY||0),Le||oe&&ue){H.beginPath();var me=W.textBorderRadius;me?s.buildPath(H,{x:G,y:V,width:Z,height:Y,r:me}):H.rect(G,V,Z,Y),H.closePath()}if(Le)if(M(H,"fillStyle",Q),W.fillOpacity!=null){var Ie=H.globalAlpha;H.globalAlpha=W.fillOpacity*W.opacity,H.fill(),H.globalAlpha=Ie}else H.fill();else if(m(Q)){var X=Q.image;X=t.createOrUpdateImage(X,null,j,O,Q),X&&t.isImageReady(X)&&H.drawImage(X,G,V,Z,Y)}if(oe&&ue)if(M(H,"lineWidth",oe),M(H,"strokeStyle",ue),W.strokeOpacity!=null){var Ie=H.globalAlpha;H.globalAlpha=W.strokeOpacity*W.opacity,H.stroke(),H.globalAlpha=Ie}else H.stroke()}function O(j,H){H.image=j}function _(j,H,W,G){var V=W.x||0,Z=W.y||0,Y=W.textAlign,Q=W.textVerticalAlign;if(G){var oe=W.textPosition;if(oe instanceof Array)V=G.x+B(oe[0],G.width),Z=G.y+B(oe[1],G.height);else{var ue=H&&H.calculateTextPosition?H.calculateTextPosition(d,W,G):f.calculateTextPosition(d,W,G);V=ue.x,Z=ue.y,Y=Y||ue.textAlign,Q=Q||ue.textVerticalAlign}var Le=W.textOffset;Le&&(V+=Le[0],Z+=Le[1])}return j=j||{},j.baseX=V,j.baseY=Z,j.textAlign=Y,j.textVerticalAlign=Q,j}function M(j,H,W){return j[H]=l(j,H,W),j[H]}function k(j,H){return j==null||H<=0||j==="transparent"||j==="none"?null:j.image||j.colorStops?"#000":j}function R(j){return j==null||j==="none"?null:j.image||j.colorStops?"#000":j}function B(j,H){return typeof j=="string"?j.lastIndexOf("%")>=0?parseFloat(j)/100*H:parseFloat(j):j}function P(j,H,W){return H==="right"?j-W[1]:H==="center"?j+W[3]/2-W[1]/2:j+W[3]}function U(j,H){return j!=null&&(j||H.textBackgroundColor||H.textBorderWidth&&H.textBorderColor||H.textPadding)}z.normalizeTextStyle=p,z.renderText=v,z.getBoxPosition=_,z.getStroke=k,z.getFill=R,z.parsePercent=B,z.needDrawText=U},"q/+u":function(fe,z,y){var D=y("ProS"),N=y("9wZj"),L=y("yWXo"),E=y("h8O9");D.extendChartView({type:"scatter",render:function(I,o,m){var f=I.getData(),s=this._updateSymbolDraw(f,I);s.updateData(f,{clipShape:this._getClipShape(I)}),this._finished=!0},incrementalPrepareRender:function(I,o,m){var f=I.getData(),s=this._updateSymbolDraw(f,I);s.incrementalPrepareUpdate(f),this._finished=!1},incrementalRender:function(I,o,m){this._symbolDraw.incrementalUpdate(I,o.getData(),{clipShape:this._getClipShape(o)}),this._finished=I.end===o.getData().count()},updateTransform:function(I,o,m){var f=I.getData();if(this.group.dirty(),!this._finished||f.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var s=E().reset(I);s.progress&&s.progress({start:0,end:f.count()},f),this._symbolDraw.updateLayout(f)},_getClipShape:function(I){var o=I.coordinateSystem,m=o&&o.getArea&&o.getArea();return I.get("clip",!0)?m:null},_updateSymbolDraw:function(I,o){var m=this._symbolDraw,f=o.pipelineContext,s=f.large;return(!m||s!==this._isLargeDraw)&&(m&&m.remove(),m=this._symbolDraw=s?new L:new N,this._isLargeDraw=s,this.group.removeAll()),this.group.add(m.group),m},remove:function(I,o){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(fe,z){var y=["lineStyle","normal","opacity"],D={seriesType:"parallel",reset:function(N,L,E){var I=N.getModel("itemStyle"),o=N.getModel("lineStyle"),m=L.get("color"),f=o.get("color")||I.get("color")||m[N.seriesIndex%m.length],s=N.get("inactiveOpacity"),t=N.get("activeOpacity"),l=N.getModel("lineStyle").getLineStyle(),a=N.coordinateSystem,r=N.getData(),u={normal:l.opacity,active:t,inactive:s};r.setVisual("color",f);function e(n,i){a.eachActiveState(i,function(c,d){var h=u[c];if(c==="normal"&&i.hasItemOption){var p=i.getItemModel(d).get(y,!0);p!=null&&(h=p)}i.setItemVisual(d,"opacity",h)},n.start,n.end)}return{progress:e}}};fe.exports=D},q4HE:function(fe,z){var y="\\ud800-\\udfff",D="\\u0300-\\u036f",N="\\ufe20-\\ufe2f",L="\\u20d0-\\u20ff",E=D+N+L,I="\\ufe0e\\ufe0f",o="["+y+"]",m="["+E+"]",f="\\ud83c[\\udffb-\\udfff]",s="(?:"+m+"|"+f+")",t="[^"+y+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",r="\\u200d",u=s+"?",e="["+I+"]?",n="(?:"+r+"(?:"+[t,l,a].join("|")+")"+e+u+")*",i=e+u+n,c="(?:"+[t+m+"?",m,l,a,o].join("|")+")",d=RegExp(f+"(?="+f+")|"+c+i,"g");function h(p){for(var g=d.lastIndex=0;d.test(p);)++g;return g}fe.exports=h},q7KB:function(fe,z,y){},qBft:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return D.pad.AnsiX923={pad:function(L,E){var I=L.sigBytes,o=E*4,m=o-I%o,f=I+m-1;L.clamp(),L.words[f>>>2]|=m<<24-f%4*8,L.sigBytes+=m},unpad:function(L){var E=L.words[L.sigBytes-1>>>2]&255;L.sigBytes-=E}},D.pad.Ansix923})},qH13:function(fe,z,y){var D=y("ItGF"),N=y("QBsz"),L=N.applyTransform,E=y("mFDi"),I=y("Qe9p"),o=y("6GrX"),m=y("pzxd"),f=y("ni6a"),s=y("Gev7"),t=y("Dagg"),l=y("dqUG"),a=y("y+Vt"),r=y("IMiH"),u=y("QuXc"),e=y("06Qe"),n=r.CMD,i=Math.round,c=Math.sqrt,d=Math.abs,h=Math.cos,p=Math.sin,g=Math.max;if(!D.canvasSupported){var v=",",A="progid:DXImageTransform.Microsoft",x=21600,b=x/2,w=1e5,S=1e3,T=function(Ne){Ne.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",Ne.coordsize=x+","+x,Ne.coordorigin="0,0"},C=function(Ne){return String(Ne).replace(/&/g,"&").replace(/"/g,""")},O=function(Ne,we,De){return"rgb("+[Ne,we,De].join(",")+")"},_=function(Ne,we){we&&Ne&&we.parentNode!==Ne&&Ne.appendChild(we)},M=function(Ne,we){we&&Ne&&we.parentNode===Ne&&Ne.removeChild(we)},k=function(Ne,we,De){return(parseFloat(Ne)||0)*w+(parseFloat(we)||0)*S+De},R=m.parsePercent,B=function(Ne,we,De){var Ee=I.parse(we);De=+De,isNaN(De)&&(De=1),Ee&&(Ne.color=O(Ee[0],Ee[1],Ee[2]),Ne.opacity=De*Ee[3])},P=function(Ne){var we=I.parse(Ne);return[O(we[0],we[1],we[2]),we[3]]},U=function(Ne,we,De){var Ee=we.fill;if(Ee!=null)if(Ee instanceof u){var ce,ne=0,ee=[0,0],Ae=0,Ve=1,Ke=De.getBoundingRect(),Oe=Ke.width,it=Ke.height;if(Ee.type==="linear"){ce="gradient";var Fe=De.transform,ft=[Ee.x*Oe,Ee.y*it],At=[Ee.x2*Oe,Ee.y2*it];Fe&&(L(ft,ft,Fe),L(At,At,Fe));var bt=At[0]-ft[0],St=At[1]-ft[1];ne=Math.atan2(bt,St)*180/Math.PI,ne<0&&(ne+=360),ne<1e-6&&(ne=0)}else{ce="gradientradial";var ft=[Ee.x*Oe,Ee.y*it],Fe=De.transform,Et=De.scale,je=Oe,pe=it;ee=[(ft[0]-Ke.x)/je,(ft[1]-Ke.y)/pe],Fe&&L(ft,ft,Fe),je/=Et[0]*x,pe/=Et[1]*x;var ie=g(je,pe);Ae=2*0/ie,Ve=2*Ee.r/ie-Ae}var st=Ee.colorStops.slice();st.sort(function(Ot,lt){return Ot.offset-lt.offset});for(var Qe=st.length,ve=[],Bt=[],qt=0;qt<Qe;qt++){var ct=st[qt],Wt=P(ct.color);Bt.push(ct.offset*Ve+Ae+" "+Wt[0]),(qt===0||qt===Qe-1)&&ve.push(Wt)}if(Qe>=2){var or=ve[0][0],Fr=ve[1][0],er=ve[0][1]*we.opacity,nr=ve[1][1]*we.opacity;Ne.type=ce,Ne.method="none",Ne.focus="100%",Ne.angle=ne,Ne.color=or,Ne.color2=Fr,Ne.colors=Bt.join(","),Ne.opacity=nr,Ne.opacity2=er}ce==="radial"&&(Ne.focusposition=ee.join(","))}else B(Ne,Ee,we.opacity)},j=function(Ne,we){we.lineDash&&(Ne.dashstyle=we.lineDash.join(" ")),we.stroke!=null&&!(we.stroke instanceof u)&&B(Ne,we.stroke,we.opacity)},H=function(Ne,we,De,Ee){var ce=we==="fill",ne=Ne.getElementsByTagName(we)[0];De[we]!=null&&De[we]!=="none"&&(ce||!ce&&De.lineWidth)?(Ne[ce?"filled":"stroked"]="true",De[we]instanceof u&&M(Ne,ne),ne||(ne=e.createNode(we)),ce?U(ne,De,Ee):j(ne,De),_(Ne,ne)):(Ne[ce?"filled":"stroked"]="false",M(Ne,ne))},W=[[],[],[]],G=function(Ne,we){var De=n.M,Ee=n.C,ce=n.L,ne=n.A,ee=n.Q,Ae=[],Ve,Ke,Oe,it,Fe,ft,At=Ne.data,bt=Ne.len();for(it=0;it<bt;){Oe=At[it++],Ke="",Ve=0;switch(Oe){case De:Ke=" m ",Ve=1,Fe=At[it++],ft=At[it++],W[0][0]=Fe,W[0][1]=ft;break;case ce:Ke=" l ",Ve=1,Fe=At[it++],ft=At[it++],W[0][0]=Fe,W[0][1]=ft;break;case ee:case Ee:Ke=" c ",Ve=3;var St=At[it++],Et=At[it++],je=At[it++],pe=At[it++],ie,st;Oe===ee?(ie=je,st=pe,je=(je+2*St)/3,pe=(pe+2*Et)/3,St=(Fe+2*St)/3,Et=(ft+2*Et)/3):(ie=At[it++],st=At[it++]),W[0][0]=St,W[0][1]=Et,W[1][0]=je,W[1][1]=pe,W[2][0]=ie,W[2][1]=st,Fe=ie,ft=st;break;case ne:var Qe=0,ve=0,Bt=1,qt=1,ct=0;we&&(Qe=we[4],ve=we[5],Bt=c(we[0]*we[0]+we[1]*we[1]),qt=c(we[2]*we[2]+we[3]*we[3]),ct=Math.atan2(-we[1]/qt,we[0]/Bt));var Wt=At[it++],or=At[it++],Fr=At[it++],er=At[it++],nr=At[it++]+ct,Ot=At[it++]+nr+ct;it++;var lt=At[it++],qe=Wt+h(nr)*Fr,tr=or+p(nr)*er,St=Wt+h(Ot)*Fr,Et=or+p(Ot)*er,xr=lt?" wa ":" at ";Math.abs(qe-St)<1e-4&&(Math.abs(Ot-nr)>.01?lt&&(qe+=270/x):Math.abs(tr-or)<1e-4?lt&&qe<Wt||!lt&&qe>Wt?Et-=270/x:Et+=270/x:lt&&tr<or||!lt&&tr>or?St+=270/x:St-=270/x),Ae.push(xr,i(((Wt-Fr)*Bt+Qe)*x-b),v,i(((or-er)*qt+ve)*x-b),v,i(((Wt+Fr)*Bt+Qe)*x-b),v,i(((or+er)*qt+ve)*x-b),v,i((qe*Bt+Qe)*x-b),v,i((tr*qt+ve)*x-b),v,i((St*Bt+Qe)*x-b),v,i((Et*qt+ve)*x-b)),Fe=St,ft=Et;break;case n.R:var Ar=W[0],fr=W[1];Ar[0]=At[it++],Ar[1]=At[it++],fr[0]=Ar[0]+At[it++],fr[1]=Ar[1]+At[it++],we&&(L(Ar,Ar,we),L(fr,fr,we)),Ar[0]=i(Ar[0]*x-b),fr[0]=i(fr[0]*x-b),Ar[1]=i(Ar[1]*x-b),fr[1]=i(fr[1]*x-b),Ae.push(" m ",Ar[0],v,Ar[1]," l ",fr[0],v,Ar[1]," l ",fr[0],v,fr[1]," l ",Ar[0],v,fr[1]);break;case n.Z:Ae.push(" x ")}if(Ve>0){Ae.push(Ke);for(var vn=0;vn<Ve;vn++){var $r=W[vn];we&&L($r,$r,we),Ae.push(i($r[0]*x-b),v,i($r[1]*x-b),vn<Ve-1?v:"")}}}return Ae.join("")};a.prototype.brushVML=function(de){var Ne=this.style,we=this._vmlEl;we||(we=e.createNode("shape"),T(we),this._vmlEl=we),H(we,"fill",Ne,this),H(we,"stroke",Ne,this);var De=this.transform,Ee=De!=null,ce=we.getElementsByTagName("stroke")[0];if(ce){var ne=Ne.lineWidth;if(Ee&&!Ne.strokeNoScale){var ee=De[0]*De[3]-De[1]*De[2];ne*=c(d(ee))}ce.weight=ne+"px"}var Ae=this.path||(this.path=new r);this.__dirtyPath&&(Ae.beginPath(),Ae.subPixelOptimize=!1,this.buildPath(Ae,this.shape),Ae.toStatic(),this.__dirtyPath=!1),we.path=G(Ae,this.transform),we.style.zIndex=k(this.zlevel,this.z,this.z2),_(de,we),Ne.text!=null?this.drawRectText(de,this.getBoundingRect()):this.removeRectText(de)},a.prototype.onRemove=function(de){M(de,this._vmlEl),this.removeRectText(de)},a.prototype.onAdd=function(de){_(de,this._vmlEl),this.appendRectText(de)};var V=function(Ne){return typeof Ne=="object"&&Ne.tagName&&Ne.tagName.toUpperCase()==="IMG"};t.prototype.brushVML=function(de){var Ne=this.style,we=Ne.image,De,Ee;if(V(we)){var ce=we.src;if(ce===this._imageSrc)De=this._imageWidth,Ee=this._imageHeight;else{var ne=we.runtimeStyle,ee=ne.width,Ae=ne.height;ne.width="auto",ne.height="auto",De=we.width,Ee=we.height,ne.width=ee,ne.height=Ae,this._imageSrc=ce,this._imageWidth=De,this._imageHeight=Ee}we=ce}else we===this._imageSrc&&(De=this._imageWidth,Ee=this._imageHeight);if(!we)return;var Ve=Ne.x||0,Ke=Ne.y||0,Oe=Ne.width,it=Ne.height,Fe=Ne.sWidth,ft=Ne.sHeight,At=Ne.sx||0,bt=Ne.sy||0,St=Fe&&ft,Et=this._vmlEl;Et||(Et=e.doc.createElement("div"),T(Et),this._vmlEl=Et);var je=Et.style,pe=!1,ie,st=1,Qe=1;if(this.transform&&(ie=this.transform,st=c(ie[0]*ie[0]+ie[1]*ie[1]),Qe=c(ie[2]*ie[2]+ie[3]*ie[3]),pe=ie[1]||ie[2]),pe){var ve=[Ve,Ke],Bt=[Ve+Oe,Ke],qt=[Ve,Ke+it],ct=[Ve+Oe,Ke+it];L(ve,ve,ie),L(Bt,Bt,ie),L(qt,qt,ie),L(ct,ct,ie);var Wt=g(ve[0],Bt[0],qt[0],ct[0]),or=g(ve[1],Bt[1],qt[1],ct[1]),Fr=[];Fr.push("M11=",ie[0]/st,v,"M12=",ie[2]/Qe,v,"M21=",ie[1]/st,v,"M22=",ie[3]/Qe,v,"Dx=",i(Ve*st+ie[4]),v,"Dy=",i(Ke*Qe+ie[5])),je.padding="0 "+i(Wt)+"px "+i(or)+"px 0",je.filter=A+".Matrix("+Fr.join("")+", SizingMethod=clip)"}else ie&&(Ve=Ve*st+ie[4],Ke=Ke*Qe+ie[5]),je.filter="",je.left=i(Ve)+"px",je.top=i(Ke)+"px";var er=this._imageEl,nr=this._cropEl;er||(er=e.doc.createElement("div"),this._imageEl=er);var Ot=er.style;if(St){if(De&&Ee)Ot.width=i(st*De*Oe/Fe)+"px",Ot.height=i(Qe*Ee*it/ft)+"px";else{var lt=new Image,qe=this;lt.onload=function(){lt.onload=null,De=lt.width,Ee=lt.height,Ot.width=i(st*De*Oe/Fe)+"px",Ot.height=i(Qe*Ee*it/ft)+"px",qe._imageWidth=De,qe._imageHeight=Ee,qe._imageSrc=we},lt.src=we}nr||(nr=e.doc.createElement("div"),nr.style.overflow="hidden",this._cropEl=nr);var tr=nr.style;tr.width=i((Oe+At*Oe/Fe)*st),tr.height=i((it+bt*it/ft)*Qe),tr.filter=A+".Matrix(Dx="+-At*Oe/Fe*st+",Dy="+-bt*it/ft*Qe+")",nr.parentNode||Et.appendChild(nr),er.parentNode!==nr&&nr.appendChild(er)}else Ot.width=i(st*Oe)+"px",Ot.height=i(Qe*it)+"px",Et.appendChild(er),nr&&nr.parentNode&&(Et.removeChild(nr),this._cropEl=null);var xr="",Ar=Ne.opacity;Ar<1&&(xr+=".Alpha(opacity="+i(Ar*100)+") "),xr+=A+".AlphaImageLoader(src="+we+", SizingMethod=scale)",Ot.filter=xr,Et.style.zIndex=k(this.zlevel,this.z,this.z2),_(de,Et),Ne.text!=null&&this.drawRectText(de,this.getBoundingRect())},t.prototype.onRemove=function(de){M(de,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(de)},t.prototype.onAdd=function(de){_(de,this._vmlEl),this.appendRectText(de)};var Z="normal",Y={},Q=0,oe=100,ue=document.createElement("div"),Le=function(Ne){var we=Y[Ne];if(!we){Q>oe&&(Q=0,Y={});var De=ue.style,Ee;try{De.font=Ne,Ee=De.fontFamily.split(",")[0]}catch(ce){}we={style:De.fontStyle||Z,variant:De.fontVariant||Z,weight:De.fontWeight||Z,size:parseFloat(De.fontSize||12)|0,family:Ee||"Microsoft YaHei"},Y[Ne]=we,Q++}return we},me;o.$override("measureText",function(de,Ne){var we=e.doc;me||(me=we.createElement("div"),me.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",e.doc.body.appendChild(me));try{me.style.font=Ne}catch(De){}return me.innerHTML="",me.appendChild(we.createTextNode(de)),{width:me.offsetWidth}});for(var Ie=new E,X=function(Ne,we,De,Ee){var ce=this.style;this.__dirty&&m.normalizeTextStyle(ce,!0);var ne=ce.text;if(ne!=null&&(ne+=""),!ne)return;if(ce.rich){var ee=o.parseRichText(ne,ce);ne=[];for(var Ae=0;Ae<ee.lines.length;Ae++){for(var Ve=ee.lines[Ae].tokens,Ke=[],Oe=0;Oe<Ve.length;Oe++)Ke.push(Ve[Oe].text);ne.push(Ke.join(""))}ne=ne.join(`
|
|
|
`)}var it,Fe,ft=ce.textAlign,At=ce.textVerticalAlign,bt=Le(ce.font),St=bt.style+" "+bt.variant+" "+bt.weight+" "+bt.size+'px "'+bt.family+'"';De=De||o.getBoundingRect(ne,St,ft,At,ce.textPadding,ce.textLineHeight);var Et=this.transform;if(Et&&!Ee&&(Ie.copy(we),Ie.applyTransform(Et),we=Ie),Ee)it=we.x,Fe=we.y;else{var je=ce.textPosition;if(je instanceof Array)it=we.x+R(je[0],we.width),Fe=we.y+R(je[1],we.height),ft=ft||"left";else{var pe=this.calculateTextPosition?this.calculateTextPosition({},ce,we):o.calculateTextPosition({},ce,we);it=pe.x,Fe=pe.y,ft=ft||pe.textAlign,At=At||pe.textVerticalAlign}}it=o.adjustTextX(it,De.width,ft),Fe=o.adjustTextY(Fe,De.height,At),Fe+=De.height/2;var ie=e.createNode,st=this._textVmlEl,Qe,ve,Bt;st?(Bt=st.firstChild,Qe=Bt.nextSibling,ve=Qe.nextSibling):(st=ie("line"),Qe=ie("path"),ve=ie("textpath"),Bt=ie("skew"),ve.style["v-text-align"]="left",T(st),Qe.textpathok=!0,ve.on=!0,st.from="0 0",st.to="1000 0.05",_(st,Bt),_(st,Qe),_(st,ve),this._textVmlEl=st);var qt=[it,Fe],ct=st.style;Et&&Ee?(L(qt,qt,Et),Bt.on=!0,Bt.matrix=Et[0].toFixed(3)+v+Et[2].toFixed(3)+v+Et[1].toFixed(3)+v+Et[3].toFixed(3)+",0,0",Bt.offset=(i(qt[0])||0)+","+(i(qt[1])||0),Bt.origin="0 0",ct.left="0px",ct.top="0px"):(Bt.on=!1,ct.left=i(it)+"px",ct.top=i(Fe)+"px"),ve.string=C(ne);try{ve.style.font=St}catch(Wt){}H(st,"fill",{fill:ce.textFill,opacity:ce.opacity},this),H(st,"stroke",{stroke:ce.textStroke,opacity:ce.opacity,lineDash:ce.lineDash||null},this),st.style.zIndex=k(this.zlevel,this.z,this.z2),_(Ne,st)},q=function(Ne){M(Ne,this._textVmlEl),this._textVmlEl=null},We=function(Ne){_(Ne,this._textVmlEl)},$=[f,s,t,a,l],J=0;J<$.length;J++){var le=$[J].prototype;le.drawRectText=X,le.removeRectText=q,le.appendRectText=We}l.prototype.brushVML=function(de){var Ne=this.style;Ne.text!=null?this.drawRectText(de,{x:Ne.x||0,y:Ne.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(de)},l.prototype.onRemove=function(de){this.removeRectText(de)},l.prototype.onAdd=function(de){this.appendRectText(de)}}},qJCg:function(fe,z,y){var D=y("BlVb"),N=y("mFDi"),L=y("IwbS"),E=L.linePolygonIntersect,I={lineX:o(0),lineY:o(1),rect:{point:function(s,t,l){return s&&l.boundingRect.contain(s[0],s[1])},rect:function(s,t,l){return s&&l.boundingRect.intersect(s)}},polygon:{point:function(s,t,l){return s&&l.boundingRect.contain(s[0],s[1])&&D.contain(l.range,s[0],s[1])},rect:function(s,t,l){var a=l.range;if(!s||a.length<=1)return!1;var r=s.x,u=s.y,e=s.width,n=s.height,i=a[0];if(D.contain(a,r,u)||D.contain(a,r+e,u)||D.contain(a,r,u+n)||D.contain(a,r+e,u+n)||N.create(s).contain(i[0],i[1])||E(r,u,r+e,u,a)||E(r,u,r,u+n,a)||E(r+e,u,r+e,u+n,a)||E(r,u+n,r+e,u+n,a))return!0}}};function o(s){var t=["x","y"],l=["width","height"];return{point:function(a,r,u){if(a){var e=u.range,n=a[s];return m(n,e)}},rect:function(a,r,u){if(a){var e=u.range,n=[a[t[s]],a[t[s]]+a[l[s]]];return n[1]<n[0]&&n.reverse(),m(n[0],e)||m(n[1],e)||m(e[0],n)||m(e[1],n)}}}}function m(s,t){return t[0]<=s&&s<=t[1]}var f=I;fe.exports=f},qM6L:function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.WordArray,I=N.enc,o=I.Utf16=I.Utf16BE={stringify:function(s){for(var t=s.words,l=s.sigBytes,a=[],r=0;r<l;r+=2){var u=t[r>>>2]>>>16-r%4*8&65535;a.push(String.fromCharCode(u))}return a.join("")},parse:function(s){for(var t=s.length,l=[],a=0;a<t;a++)l[a>>>1]|=s.charCodeAt(a)<<16-a%2*16;return E.create(l,t*2)}};I.Utf16LE={stringify:function(s){for(var t=s.words,l=s.sigBytes,a=[],r=0;r<l;r+=2){var u=m(t[r>>>2]>>>16-r%4*8&65535);a.push(String.fromCharCode(u))}return a.join("")},parse:function(s){for(var t=s.length,l=[],a=0;a<t;a++)l[a>>>1]|=m(s.charCodeAt(a)<<16-a%2*16);return E.create(l,t*2)}};function m(f){return f<<8&4278255360|f>>>8&16711935}}(),D.enc.Utf16})},qMZE:function(fe,z,y){var D=y("JEkh"),N=D.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}}}});fe.exports=N},qNPg:function(fe,z,y){"use strict";y.d(z,"a",function(){return W});var D=y("rePB"),N=y("VTBJ"),L=y("KQm4"),E=y("ODXe"),I=y("Ff2n"),o=y("q1tI"),m=y("4IlW"),f=y("TSYQ"),s=y.n(f),t=y("6cGi"),l=y("bX4T"),a=y("8XRh"),r=y("8OUc"),u=y("c+Xe"),e=function(V,Z){var Y=V.prefixCls,Q=V.id,oe=V.inputElement,ue=V.disabled,Le=V.tabIndex,me=V.autoFocus,Ie=V.autoComplete,X=V.editable,q=V.accessibilityIndex,We=V.value,$=V.onKeyDown,J=V.onMouseDown,le=V.onChange,de=V.onPaste,Ne=V.onCompositionStart,we=V.onCompositionEnd,De=V.open,Ee=V.attrs,ce=oe||o.createElement("input",null),ne=ce,ee=ne.ref,Ae=ne.props,Ve=Ae.onKeyDown,Ke=Ae.onChange,Oe=Ae.onMouseDown,it=Ae.onCompositionStart,Fe=Ae.onCompositionEnd,ft=Ae.style;return ce=o.cloneElement(ce,Object(N.a)(Object(N.a)({id:Q,ref:Object(u.a)(Z,ee),disabled:ue,tabIndex:Le,autoComplete:Ie||"off",autoFocus:me,className:"".concat(Y,"-selection-search-input"),style:Object(N.a)(Object(N.a)({},ft),{},{opacity:X?null:0}),role:"combobox","aria-expanded":De,"aria-haspopup":"listbox","aria-owns":"".concat(Q,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Q,"_list"),"aria-activedescendant":"".concat(Q,"_list_").concat(q)},Ee),{},{value:X?We:"",readOnly:!X,unselectable:X?null:"on",onKeyDown:function(bt){$(bt),Ve&&Ve(bt)},onMouseDown:function(bt){J(bt),Oe&&Oe(bt)},onChange:function(bt){le(bt),Ke&&Ke(bt)},onCompositionStart:function(bt){Ne(bt),it&&it(bt)},onCompositionEnd:function(bt){we(bt),Fe&&Fe(bt)},onPaste:de})),ce},n=o.forwardRef(e);n.displayName="Input";var i=n,c=y("WKfj");function d(G,V){c.b?o.useLayoutEffect(G,V):o.useEffect(G,V)}var h="__RC_SELECT_MAX_REST_COUNT__",p=function(V){var Z=V.id,Y=V.prefixCls,Q=V.values,oe=V.open,ue=V.searchValue,Le=V.inputRef,me=V.placeholder,Ie=V.disabled,X=V.mode,q=V.showSearch,We=V.autoFocus,$=V.autoComplete,J=V.accessibilityIndex,le=V.tabIndex,de=V.removeIcon,Ne=V.choiceTransitionName,we=V.maxTagCount,De=V.maxTagTextLength,Ee=V.maxTagPlaceholder,ce=Ee===void 0?function(Wt){return"+ ".concat(Wt.length," ...")}:Ee,ne=V.tagRender,ee=V.onSelect,Ae=V.onInputChange,Ve=V.onInputPaste,Ke=V.onInputKeyDown,Oe=V.onInputMouseDown,it=V.onInputCompositionStart,Fe=V.onInputCompositionEnd,ft=o.useState(!1),At=Object(E.a)(ft,2),bt=At[0],St=At[1],Et=o.useRef(null),je=o.useState(0),pe=Object(E.a)(je,2),ie=pe[0],st=pe[1];o.useEffect(function(){St(!0)},[]);var Qe=oe||X==="tags"?ue:"",ve=X==="tags"||oe&&q;d(function(){st(Et.current.scrollWidth)},[Qe]);var Bt=Q,qt;typeof we=="number"&&(qt=Q.length-we,Bt=Q.slice(0,we)),typeof De=="number"&&(Bt=Bt.map(function(Wt){var or=Wt.label,Fr=Object(I.a)(Wt,["label"]),er=or;if(typeof or=="string"||typeof or=="number"){var nr=String(er);nr.length>De&&(er="".concat(nr.slice(0,De),"..."))}return Object(N.a)(Object(N.a)({},Fr),{},{label:er})})),qt>0&&Bt.push({key:h,label:typeof ce=="function"?ce(Q.slice(we)):ce});var ct=o.createElement(a.CSSMotionList,{component:!1,keys:Bt,motionName:Ne,motionAppear:bt},function(Wt){var or=Wt.key,Fr=Wt.label,er=Wt.value,nr=Wt.disabled,Ot=Wt.className,lt=Wt.style,qe=or||er,tr=or!==h&&!nr,xr=function(vn){vn.preventDefault(),vn.stopPropagation()},Ar=function(vn){vn&&vn.stopPropagation(),ee(er,{selected:!1})};return typeof ne=="function"?o.createElement("span",{key:qe,onMouseDown:xr,className:Ot,style:lt},ne({label:Fr,value:er,disabled:nr,closable:tr,onClose:Ar})):o.createElement("span",{key:qe,className:s()(Ot,"".concat(Y,"-selection-item"),Object(D.a)({},"".concat(Y,"-selection-item-disabled"),nr)),style:lt},o.createElement("span",{className:"".concat(Y,"-selection-item-content")},Fr),tr&&o.createElement(r.a,{className:"".concat(Y,"-selection-item-remove"),onMouseDown:xr,onClick:Ar,customizeIcon:de},"\xD7"))});return o.createElement(o.Fragment,null,ct,o.createElement("span",{className:"".concat(Y,"-selection-search"),style:{width:ie}},o.createElement(i,{ref:Le,open:oe,prefixCls:Y,id:Z,inputElement:null,disabled:Ie,autoFocus:We,autoComplete:$,editable:ve,accessibilityIndex:J,value:Qe,onKeyDown:Ke,onMouseDown:Oe,onChange:Ae,onPaste:Ve,onCompositionStart:it,onCompositionEnd:Fe,tabIndex:le,attrs:Object(l.a)(V,!0)}),o.createElement("span",{ref:Et,className:"".concat(Y,"-selection-search-mirror"),"aria-hidden":!0},Qe,"\xA0")),!Q.length&&!Qe&&o.createElement("span",{className:"".concat(Y,"-selection-placeholder")},me))},g=p,v=function(V){var Z=V.inputElement,Y=V.prefixCls,Q=V.id,oe=V.inputRef,ue=V.disabled,Le=V.autoFocus,me=V.autoComplete,Ie=V.accessibilityIndex,X=V.mode,q=V.open,We=V.values,$=V.placeholder,J=V.tabIndex,le=V.showSearch,de=V.searchValue,Ne=V.activeValue,we=V.onInputKeyDown,De=V.onInputMouseDown,Ee=V.onInputChange,ce=V.onInputPaste,ne=V.onInputCompositionStart,ee=V.onInputCompositionEnd,Ae=o.useState(!1),Ve=Object(E.a)(Ae,2),Ke=Ve[0],Oe=Ve[1],it=X==="combobox",Fe=it||le&&q,ft=We[0],At=de||"";it&&Ne&&!Ke&&(At=Ne),o.useEffect(function(){it&&Oe(!1)},[it,Ne]);var bt=X!=="combobox"&&!q?!1:!!At,St=ft&&(typeof ft.label=="string"||typeof ft.label=="number")?ft.label.toString():void 0;return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(Y,"-selection-search")},o.createElement(i,{ref:oe,prefixCls:Y,id:Q,open:q,inputElement:Z,disabled:ue,autoFocus:Le,autoComplete:me,editable:Fe,accessibilityIndex:Ie,value:At,onKeyDown:we,onMouseDown:De,onChange:function(je){Oe(!0),Ee(je)},onPaste:ce,onCompositionStart:ne,onCompositionEnd:ee,tabIndex:J,attrs:Object(l.a)(V,!0)})),!it&&ft&&!bt&&o.createElement("span",{className:"".concat(Y,"-selection-item"),title:St},ft.label),!ft&&!bt&&o.createElement("span",{className:"".concat(Y,"-selection-placeholder")},$))},A=v;function x(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,V=o.useRef(null),Z=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(Z.current)}},[]);function Y(Q){(Q||V.current===null)&&(V.current=Q),window.clearTimeout(Z.current),Z.current=window.setTimeout(function(){V.current=null},G)}return[function(){return V.current},Y]}var b=function(V,Z){var Y=Object(o.useRef)(null),Q=Object(o.useRef)(!1),oe=V.prefixCls,ue=V.multiple,Le=V.open,me=V.mode,Ie=V.showSearch,X=V.tokenWithEnter,q=V.onSearch,We=V.onSearchSubmit,$=V.onToggleOpen,J=V.onInputKeyDown,le=V.domRef;o.useImperativeHandle(Z,function(){return{focus:function(){Y.current.focus()},blur:function(){Y.current.blur()}}});var de=x(0),Ne=Object(E.a)(de,2),we=Ne[0],De=Ne[1],Ee=function(bt){var St=bt.which;(St===m.a.UP||St===m.a.DOWN)&&bt.preventDefault(),J&&J(bt),St===m.a.ENTER&&me==="tags"&&!Q.current&&!Le&&We(bt.target.value),[m.a.SHIFT,m.a.TAB,m.a.BACKSPACE,m.a.ESC].includes(St)||$(!0)},ce=function(){De(!0)},ne=Object(o.useRef)(null),ee=function(bt){q(bt,!0,Q.current)!==!1&&$(!0)},Ae=function(){Q.current=!0},Ve=function(){Q.current=!1},Ke=function(bt){var St=bt.target.value;if(X&&ne.current&&/[\r\n]/.test(ne.current)){var Et=ne.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");St=St.replace(Et,ne.current)}ne.current=null,ee(St)},Oe=function(bt){var St=bt.clipboardData,Et=St.getData("text");ne.current=Et},it=function(bt){var St=we();if(bt.target!==Y.current){St||bt.preventDefault();var Et=document.body.style.msTouchAction!==void 0;Et?setTimeout(function(){Y.current.focus()}):Y.current.focus()}(me!=="combobox"&&(!Ie||!St)||!Le)&&(Le&&q("",!0,!1),$())},Fe={inputRef:Y,onInputKeyDown:Ee,onInputMouseDown:ce,onInputChange:Ke,onInputPaste:Oe,onInputCompositionStart:Ae,onInputCompositionEnd:Ve},ft=ue?o.createElement(g,Object.assign({},V,Fe)):o.createElement(A,Object.assign({},V,Fe));return o.createElement("div",{ref:le,className:"".concat(oe,"-selector"),onMouseDown:it},ft)},w=o.forwardRef(b);w.displayName="Selector";var S=w,T=y("uciX"),C=function(V){var Z=typeof V!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Z,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Z,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Z,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Z,adjustY:1}}}},O=function(V,Z){var Y=V.prefixCls,Q=V.disabled,oe=V.visible,ue=V.children,Le=V.popupElement,me=V.containerWidth,Ie=V.animation,X=V.transitionName,q=V.dropdownStyle,We=V.dropdownClassName,$=V.direction,J=$===void 0?"ltr":$,le=V.dropdownMatchSelectWidth,de=le===void 0?!0:le,Ne=V.dropdownRender,we=V.dropdownAlign,De=V.getPopupContainer,Ee=V.empty,ce=V.getTriggerDOMNode,ne=Object(I.a)(V,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),ee="".concat(Y,"-dropdown"),Ae=Le;Ne&&(Ae=Ne(Le));var Ve=o.useMemo(function(){return C(de)},[de]),Ke=Ie?"".concat(ee,"-").concat(Ie):X,Oe=o.useRef(null);o.useImperativeHandle(Z,function(){return{getPopupElement:function(){return Oe.current}}});var it=Object(N.a)({minWidth:me},q);return typeof de=="number"?it.width=de:de&&(it.width=me),o.createElement(T.a,Object.assign({},ne,{showAction:[],hideAction:[],popupPlacement:J==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Ve,prefixCls:ee,popupTransitionName:Ke,popup:o.createElement("div",{ref:Oe},Ae),popupAlign:we,popupVisible:oe,getPopupContainer:De,popupClassName:s()(We,Object(D.a)({},"".concat(ee,"-empty"),Ee)),popupStyle:it,getTriggerDOMNode:ce}),ue)},_=o.forwardRef(O);_.displayName="SelectTrigger";var M=_,k=y("wPlo");function R(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,V=o.useState(!1),Z=Object(E.a)(V,2),Y=Z[0],Q=Z[1],oe=o.useRef(null),ue=function(){window.clearTimeout(oe.current)};o.useEffect(function(){return ue},[]);var Le=function(Ie,X){ue(),oe.current=window.setTimeout(function(){Q(Ie),X&&X()},G)};return[Y,Le,ue]}var B=y("2Qr1");function P(G,V,Z){var Y=o.useRef(null);Y.current={elements:G.filter(function(Q){return Q}),open:V,triggerOpen:Z},o.useEffect(function(){function Q(oe){var ue=oe.target;Y.current.open&&Y.current.elements.every(function(Le){return!Le.contains(ue)&&Le!==ue})&&Y.current.triggerOpen(!1)}return window.addEventListener("mousedown",Q),function(){return window.removeEventListener("mousedown",Q)}},[])}function U(G){var V=o.useRef(G),Z=o.useMemo(function(){var Y=new Map;V.current.forEach(function(oe){var ue=oe.value,Le=oe.label;ue!==Le&&Y.set(ue,Le)});var Q=G.map(function(oe){var ue=Y.get(oe.value);return oe.value===oe.label&&ue?Object(N.a)(Object(N.a)({},oe),{},{label:ue}):oe});return V.current=Q,Q},[G]);return Z}function j(G,V){var Z=o.useRef(null),Y=o.useMemo(function(){var oe=new Map;return V.forEach(function(ue){var Le=ue.data.value;oe.set(Le,ue)}),oe},[G,V]);Z.current=Y;var Q=function(ue){return ue.map(function(Le){return Z.current.get(Le)}).filter(Boolean)};return Q}var H=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function W(G){var V=G.prefixCls,Z=G.components.optionList,Y=G.convertChildrenToData,Q=G.flattenOptions,oe=G.getLabeledValue,ue=G.filterOptions,Le=G.isValueDisabled,me=G.findValueOption,Ie=G.warningProps,X=G.fillOptionsWithMissingValue,q=G.omitDOMProps;function We(J,le){var de,Ne=J.prefixCls,we=Ne===void 0?V:Ne,De=J.className,Ee=J.id,ce=J.open,ne=J.defaultOpen,ee=J.options,Ae=J.children,Ve=J.mode,Ke=J.value,Oe=J.defaultValue,it=J.labelInValue,Fe=J.showSearch,ft=J.inputValue,At=J.searchValue,bt=J.filterOption,St=J.optionFilterProp,Et=St===void 0?"value":St,je=J.autoClearSearchValue,pe=je===void 0?!0:je,ie=J.onSearch,st=J.allowClear,Qe=J.clearIcon,ve=J.showArrow,Bt=J.inputIcon,qt=J.menuItemSelectedIcon,ct=J.disabled,Wt=J.loading,or=J.defaultActiveFirstOption,Fr=J.notFoundContent,er=Fr===void 0?"Not Found":Fr,nr=J.optionLabelProp,Ot=J.backfill,lt=J.getInputElement,qe=J.getPopupContainer,tr=J.listHeight,xr=tr===void 0?200:tr,Ar=J.listItemHeight,fr=Ar===void 0?20:Ar,vn=J.animation,$r=J.transitionName,Ln=J.virtual,tt=J.dropdownStyle,nt=J.dropdownClassName,Te=J.dropdownMatchSelectWidth,Me=J.dropdownRender,Xe=J.dropdownAlign,at=J.showAction,zt=at===void 0?[]:at,kt=J.direction,Xt=J.tokenSeparators,Dr=J.tagRender,Pr=J.onPopupScroll,cn=J.onDropdownVisibleChange,jt=J.onFocus,gt=J.onBlur,dt=J.onKeyUp,Qt=J.onKeyDown,Jt=J.onMouseDown,xt=J.onChange,Pt=J.onSelect,yt=J.onDeselect,Ut=J.onClear,pr=J.internalProps,sr=pr===void 0?{}:pr,ir=Object(I.a)(J,["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"]),Yr=sr.mark===k.a,Jr=q?q(ir):ir;H.forEach(function(Wn){delete Jr[Wn]});var In=Object(o.useRef)(null),Nn=Object(o.useRef)(null),zn=Object(o.useRef)(null),ei=Object(o.useRef)(null),Ai=Object(o.useMemo)(function(){return(Xt||[]).some(function(Wn){return[`
|
|
|
`,`\r
|
|
|
`].includes(Wn)})},[Xt]),Pi=R(),$e=Object(E.a)(Pi,3),_e=$e[0],Be=$e[1],He=$e[2],Je=Object(o.useState)(),Ye=Object(E.a)(Je,2),et=Ye[0],wt=Ye[1];Object(o.useEffect)(function(){wt("rc_select_".concat(Object(c.a)()))},[]);var ut=Ee||et,Ft=nr;Ft===void 0&&(Ft=ee?"label":"children");var wr=Ve==="combobox"?!1:it,hr=Ve==="tags"||Ve==="multiple",Nr=Fe!==void 0?Fe:hr||Ve==="combobox",Kt=Object(o.useRef)(null);o.useImperativeHandle(le,function(){return{focus:zn.current.focus,blur:zn.current.blur}});var un=Object(t.a)(Oe,{value:Ke}),ar=Object(E.a)(un,2),Gr=ar[0],Br=ar[1],gr=Object(o.useMemo)(function(){return Object(c.e)(Gr,{labelInValue:wr,combobox:Ve==="combobox"})},[Gr,wr]),Sn=Object(o.useMemo)(function(){return new Set(gr)},[gr]),Pn=Object(o.useState)(null),ii=Object(E.a)(Pn,2),oi=ii[0],ti=ii[1],bi=Object(o.useState)(""),kn=Object(E.a)(bi,2),Ii=kn[0],gn=kn[1],Vr=Ii;Ve==="combobox"&&Gr!==void 0?Vr=Gr:At!==void 0?Vr=At:ft&&(Vr=ft);var xn=Object(o.useMemo)(function(){var Wn=ee;return Wn===void 0&&(Wn=Y(Ae)),Ve==="tags"&&X&&(Wn=X(Wn,Gr,Ft,it)),Wn||[]},[ee,Ae,Ve,Gr]),tn=Object(o.useMemo)(function(){return Q(xn,J)},[xn]),ui=j(gr,tn),qn=Object(o.useMemo)(function(){if(!Vr||!Nr)return Object(L.a)(xn);var Wn=ue(Vr,xn,{optionFilterProp:Et,filterOption:Ve==="combobox"&&bt===void 0?function(){return!0}:bt});return Ve==="tags"&&Wn.every(function(Di){return Di[Et]!==Vr})&&Wn.unshift({value:Vr,label:Vr,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Wn},[xn,Vr,Ve,Nr]),wi=Object(o.useMemo)(function(){return Q(qn,J)},[qn]);Object(o.useEffect)(function(){ei.current&&ei.current.scrollTo&&ei.current.scrollTo(0)},[Vr]);var Qn=Object(o.useMemo)(function(){var Wn=gr.map(function(Di){var zi=ui([Di]),yr=oe(Di,{options:zi,prevValue:Gr,labelInValue:wr,optionLabelProp:Ft});return Object(N.a)(Object(N.a)({},yr),{},{disabled:Le(Di,zi)})});return!Ve&&Wn.length===1&&Wn[0].value===null&&Wn[0].label===null?[]:Wn},[Gr,xn,Ve]);Qn=U(Qn);var Hi=function(Di,zi,yr){var Mr=ui([Di]),Qr=me([Di],Mr)[0];if(!sr.skipTriggerSelect){var Ir=wr?oe(Di,{options:Mr,prevValue:Gr,labelInValue:wr,optionLabelProp:Ft}):Di;zi&&Pt?Pt(Ir,Qr):!zi&&yt&&yt(Ir,Qr)}Yr&&(zi&&sr.onRawSelect?sr.onRawSelect(Di,Qr,yr):!zi&&sr.onRawDeselect&&sr.onRawDeselect(Di,Qr,yr))},ri=Object(o.useState)([]),Mi=Object(E.a)(ri,2),dn=Mi[0],Ur=Mi[1],bn=function(Di){if(Yr&&sr.skipTriggerChange)return;var zi=ui(Di),yr=Object(c.f)(Array.from(Di),{labelInValue:wr,options:zi,getLabeledValue:oe,prevValue:Gr,optionLabelProp:Ft}),Mr=hr?yr:yr[0];if(xt&&(gr.length!==0||yr.length!==0)){var Qr=me(Di,zi,{prevValueOptions:dn});Ur(Qr.map(function(Ir,Gt){var Sr=Object(N.a)({},Ir);return Object.defineProperty(Sr,"_INTERNAL_OPTION_VALUE_",{get:function(){return Di[Gt]}}),Sr})),xt(Mr,hr?Qr:Qr[0])}Br(Mr)},Mn=function(Di,zi){var yr=zi.selected,Mr=zi.source;if(ct)return;var Qr;hr?(Qr=new Set(gr),yr?Qr.add(Di):Qr.delete(Di)):(Qr=new Set,Qr.add(Di)),(hr||!hr&&Array.from(gr)[0]!==Di)&&bn(Array.from(Qr)),Hi(Di,!hr||yr,Mr),Ve==="combobox"?(gn(String(Di)),ti("")):(!hr||pe)&&(gn(""),ti(""))},Gn=function(Di,zi){Mn(Di,Object(N.a)(Object(N.a)({},zi),{},{source:"option"}))},$n=function(Di,zi){Mn(Di,Object(N.a)(Object(N.a)({},zi),{},{source:"selection"}))},hi=Ve==="combobox"&<&<()||null,fi=Object(t.a)(void 0,{defaultValue:ne,value:ce}),gi=Object(E.a)(fi,2),Wi=gi[0],na=gi[1],$i=Wi,Ha=!er&&!qn.length;(ct||Ha&&$i&&Ve==="combobox")&&($i=!1);var pi=Ha?!1:$i,ln=function(Di){var zi=Di!==void 0?Di:!$i;Wi!==zi&&!ct&&(na(zi),cn&&cn(zi))};P([In.current,Nn.current&&Nn.current.getPopupElement()],pi,ln);var _i=function(Di,zi,yr){var Mr=!0,Qr=Di;ti(null);var Ir=yr?null:Object(B.f)(Di,Xt),Gt=Ir;if(Ve==="combobox")zi&&bn([Qr]);else if(Ir){Qr="",Ve!=="tags"&&(Gt=Ir.map(function(Zt){var jr=tn.find(function(Kr){var pn=Kr.data;return pn[Ft]===Zt});return jr?jr.data.value:null}).filter(function(Zt){return Zt!==null}));var Sr=Array.from(new Set([].concat(Object(L.a)(gr),Object(L.a)(Gt))));bn(Sr),Sr.forEach(function(Zt){Hi(Zt,!0,"input")}),ln(!1),Mr=!1}return gn(Qr),ie&&Vr!==Qr&&ie(Qr),Mr},Ji=function(Di){var zi=Array.from(new Set([].concat(Object(L.a)(gr),[Di])));bn(zi),zi.forEach(function(yr){Hi(yr,!0,"input")}),gn("")};Object(o.useEffect)(function(){Wi&&!!ct&&na(!1)},[ct]),Object(o.useEffect)(function(){!$i&&!hr&&Ve!=="combobox"&&_i("",!1,!1)},[$i]);var Fi=x(),ea=Object(E.a)(Fi,2),Vt=ea[0],Xr=ea[1],nn=function(Di){var zi=Vt(),yr=Di.which;if(!$i&&yr===m.a.ENTER&&ln(!0),Xr(!!Vr),yr===m.a.BACKSPACE&&!zi&&hr&&!Vr&&gr.length){var Mr=Object(c.c)(Qn,gr);Mr.removedValue!==null&&(bn(Mr.values),Hi(Mr.removedValue,!1,"input"))}for(var Qr=arguments.length,Ir=new Array(Qr>1?Qr-1:0),Gt=1;Gt<Qr;Gt++)Ir[Gt-1]=arguments[Gt];if($i&&ei.current){var Sr;(Sr=ei.current).onKeyDown.apply(Sr,[Di].concat(Ir))}Qt&&Qt.apply(void 0,[Di].concat(Ir))},fn=function(Di){for(var zi=arguments.length,yr=new Array(zi>1?zi-1:0),Mr=1;Mr<zi;Mr++)yr[Mr-1]=arguments[Mr];if($i&&ei.current){var Qr;(Qr=ei.current).onKeyUp.apply(Qr,[Di].concat(yr))}dt&&dt.apply(void 0,[Di].concat(yr))},Ze=Object(o.useRef)(!1),Lt=function(){Be(!0),ct||(jt&&!Ze.current&&jt.apply(void 0,arguments),zt.includes("focus")&&ln(!0)),Ze.current=!0},cr=function(){if(Be(!1,function(){Ze.current=!1,ln(!1)}),ct)return;Vr&&(Ve==="tags"?(_i("",!1,!1),bn(Array.from(new Set([].concat(Object(L.a)(gr),[Vr]))))):Ve==="multiple"&&gn("")),gt&>.apply(void 0,arguments)},lr=[];Object(o.useEffect)(function(){return function(){lr.forEach(function(Wn){return clearTimeout(Wn)}),lr.splice(0,lr.length)}},[]);var _r=function(Di){var zi=Di.target,yr=Nn.current&&Nn.current.getPopupElement();if(yr&&yr.contains(zi)){var Mr=setTimeout(function(){var Sr=lr.indexOf(Mr);Sr!==-1&&lr.splice(Sr,1),He(),yr.contains(document.activeElement)||zn.current.focus()});lr.push(Mr)}if(Jt){for(var Qr=arguments.length,Ir=new Array(Qr>1?Qr-1:0),Gt=1;Gt<Qr;Gt++)Ir[Gt-1]=arguments[Gt];Jt.apply(void 0,[Di].concat(Ir))}},Rr=Object(o.useState)(0),Wr=Object(E.a)(Rr,2),on=Wr[0],En=Wr[1],An=or!==void 0?or:Ve!=="combobox",Rn=function(Di,zi){En(zi),Ot&&Ve==="combobox"&&Di!==null&&ti(String(Di))},Un=Object(o.useState)(null),wn=Object(E.a)(Un,2),_n=wn[0],Cn=wn[1],Kn=Object(o.useState)({}),Yn=Object(E.a)(Kn,2),ni=Yn[1];function yi(){ni({})}d(function(){if(pi){var Wn=Math.ceil(In.current.offsetWidth);_n!==Wn&&Cn(Wn)}},[pi]);var li=o.createElement(Z,{ref:ei,prefixCls:we,id:ut,open:$i,childrenAsData:!ee,options:qn,flattenOptions:wi,multiple:hr,values:Sn,height:xr,itemHeight:fr,onSelect:Gn,onToggleOpen:ln,onActiveValue:Rn,defaultActiveFirstOption:An,notFoundContent:er,onScroll:Pr,searchValue:Vr,menuItemSelectedIcon:qt,virtual:Ln!==!1&&Te!==!1,onMouseEnter:yi}),Oi,ki=function(){Yr&&sr.onClear&&sr.onClear(),Ut&&Ut(),bn([]),_i("",!1,!1)};!ct&&st&&(gr.length||Vr)&&(Oi=o.createElement(r.a,{className:"".concat(we,"-clear"),onMouseDown:ki,customizeIcon:Qe},"\xD7"));var Si=ve!==void 0?ve:Wt||!hr&&Ve!=="combobox",mi;Si&&(mi=o.createElement(r.a,{className:s()("".concat(we,"-arrow"),Object(D.a)({},"".concat(we,"-arrow-loading"),Wt)),customizeIcon:Bt,customizeIconProps:{loading:Wt,searchValue:Vr,open:$i,focused:_e,showSearch:Nr}}));var Li=s()(we,De,(de={},Object(D.a)(de,"".concat(we,"-focused"),_e),Object(D.a)(de,"".concat(we,"-multiple"),hr),Object(D.a)(de,"".concat(we,"-single"),!hr),Object(D.a)(de,"".concat(we,"-allow-clear"),st),Object(D.a)(de,"".concat(we,"-show-arrow"),Si),Object(D.a)(de,"".concat(we,"-disabled"),ct),Object(D.a)(de,"".concat(we,"-loading"),Wt),Object(D.a)(de,"".concat(we,"-open"),$i),Object(D.a)(de,"".concat(we,"-customize-input"),hi),Object(D.a)(de,"".concat(we,"-show-search"),Nr),de));return o.createElement("div",Object.assign({className:Li},Jr,{ref:In,onMouseDown:_r,onKeyDown:nn,onKeyUp:fn,onFocus:Lt,onBlur:cr}),_e&&!$i&&o.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(gr.join(", "))),o.createElement(M,{ref:Nn,disabled:ct,prefixCls:we,visible:pi,popupElement:li,containerWidth:_n,animation:vn,transitionName:$r,dropdownStyle:tt,dropdownClassName:nt,direction:kt,dropdownMatchSelectWidth:Te,dropdownRender:Me,dropdownAlign:Xe,getPopupContainer:qe,empty:!xn.length,getTriggerDOMNode:function(){return Kt.current}},o.createElement(S,Object.assign({},J,{domRef:Kt,prefixCls:we,inputElement:hi,ref:zn,id:ut,showSearch:Nr,mode:Ve,accessibilityIndex:on,multiple:hr,tagRender:Dr,values:Qn,open:$i,onToggleOpen:ln,searchValue:Vr,activeValue:oi,onSearch:_i,onSearchSubmit:Ji,onSelect:$n,tokenWithEnter:Ai}))),mi,Oi)}var $=o.forwardRef(We);return $}},qPY4:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("u4NN"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},qWUW:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("DL4k")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="CaretDownOutlined";var f=E.forwardRef(m);z.default=f},qWt2:function(fe,z,y){var D=y("ProS"),N=D.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}}});fe.exports=N},qZFw:function(fe,z,y){var D=y("bYtY"),N=y("6GrX"),L=y("hM6l"),E=y("4NO4"),I=E.makeInner,o=I();function m(s,t){t=t||[0,360],L.call(this,"angle",s,t),this.type="category"}m.prototype={constructor:m,pointToData:function(s,t){return this.polar.pointToData(s,t)[this.dim==="radius"?0:1]},dataToAngle:L.prototype.dataToCoord,angleToData:L.prototype.coordToData,calculateCategoryInterval:function(){var s=this,t=s.getLabelModel(),l=s.scale,a=l.getExtent(),r=l.count();if(a[1]-a[0]<1)return 0;var u=a[0],e=s.dataToCoord(u+1)-s.dataToCoord(u),n=Math.abs(e),i=N.getBoundingRect(u,t.getFont(),"center","top"),c=Math.max(i.height,7),d=c/n;isNaN(d)&&(d=Infinity);var h=Math.max(0,Math.floor(d)),p=o(s.model),g=p.lastAutoInterval,v=p.lastTickCount;return g!=null&&v!=null&&Math.abs(g-h)<=1&&Math.abs(v-r)<=1&&g>h?h=g:(p.lastTickCount=r,p.lastAutoInterval=h),h}},D.inherits(m,L);var f=m;fe.exports=f},qgGe:function(fe,z,y){var D=y("bYtY"),N=y("T4UG"),L=y("Bsck"),E=y("VaxA"),I=E.wrapTreePathInfo,o=N.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(f,s){var t={name:f.name,children:f.data};m(t);var l=f.levels||[],a={};return a.levels=l,L.createTree(t,this,a).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(f){var s=N.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(f);return s.treePathInfo=I(t,this),s},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(f){f?this._viewRoot=f:f=this._viewRoot;var s=this.getRawData().tree.root;(!f||f!==s&&!s.contains(f))&&(this._viewRoot=s)}});function m(f){var s=0;D.each(f.children,function(l){m(l);var a=l.value;D.isArray(a)&&(a=a[0]),s+=a});var t=f.value;D.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=s),t<0&&(t=0),D.isArray(f.value)?f.value[0]=t:f.value=t}fe.exports=o},qj72:function(fe,z,y){var D=y("bYtY");function N(E,I){return I=I||[0,0],D.map(["x","y"],function(o,m){var f=this.getAxis(o),s=I[m],t=E[m]/2;return f.type==="category"?f.getBandWidth():Math.abs(f.dataToCoord(s-t)-f.dataToCoord(s+t))},this)}function L(E){var I=E.grid.getRect();return{coordSys:{type:"cartesian2d",x:I.x,y:I.y,width:I.width,height:I.height},api:{coord:function(o){return E.dataToPoint(o)},size:D.bind(N,E)}}}fe.exports=L},"qt/9":function(fe,z,y){var D=y("ProS"),N=y("bYtY");y("Wqna"),y("1tlw"),y("Mylv");var L=y("nVfU"),E=L.layout,I=y("f5Yq");y("Ae16"),D.registerLayout(N.curry(E,"pictorialBar")),D.registerVisual(I("pictorialBar","roundRect"))},qu8F:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return D.mode.CTRGladman=function(){var N=D.lib.BlockCipherMode.extend();function L(o){if((o>>24&255)===255){var m=o>>16&255,f=o>>8&255,s=o&255;m===255?(m=0,f===255?(f=0,s===255?s=0:++s):++f):++m,o=0,o+=m<<16,o+=f<<8,o+=s}else o+=1<<24;return o}function E(o){return(o[0]=L(o[0]))===0&&(o[1]=L(o[1])),o}var I=N.Encryptor=N.extend({processBlock:function(m,f){var s=this._cipher,t=s.blockSize,l=this._iv,a=this._counter;l&&(a=this._counter=l.slice(0),this._iv=void 0),E(a);var r=a.slice(0);s.encryptBlock(r,0);for(var u=0;u<t;u++)m[f+u]^=r[u]}});return N.Decryptor=I,N}(),D.mode.CTRGladman})},quyA:function(fe,z){var y="\\ud800-\\udfff",D="\\u0300-\\u036f",N="\\ufe20-\\ufe2f",L="\\u20d0-\\u20ff",E=D+N+L,I="\\ufe0e\\ufe0f",o="\\u200d",m=RegExp("["+o+y+E+I+"]");function f(s){return m.test(s)}fe.exports=f},qwVE:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("K4ya"),E=y("XxSj"),I=D.PRIORITY.VISUAL.COMPONENT;D.registerVisual(I,{createOnAllSeries:!0,reset:function(m,f){var s=[];return f.eachComponent("visualMap",function(t){var l=m.pipelineContext;if(!t.isTargetSeries(m)||l&&l.large)return;s.push(L.incrementalApplyVisual(t.stateList,t.targetVisuals,N.bind(t.getValueState,t),t.getDataDimension(m.getData())))}),s}}),D.registerVisual(I,{createOnAllSeries:!0,reset:function(m,f){var s=m.getData(),t=[];f.eachComponent("visualMap",function(l){if(l.isTargetSeries(m)){var a=l.getVisualMeta(N.bind(o,null,m,l))||{stops:[],outerColors:[]},r=l.getDataDimension(s),u=s.getDimensionInfo(r);u!=null&&(a.dimension=u.index,t.push(a))}}),m.getData().setVisual("visualMeta",t)}});function o(m,f,s,t){for(var l=f.targetVisuals[t],a=E.prepareVisualTypes(l),r={color:m.getData().getVisual("color")},u=0,e=a.length;u<e;u++){var n=a[u],i=l[n==="opacity"?"__alphaForOpacity":n];i&&i.applyVisual(s,c,d)}return r.color;function c(h){return r[h]}function d(h,p){r[h]=p}}},"r+aA":function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("s2MQ")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="EyeInvisibleOutlined";var f=E.forwardRef(m);z.default=f},"r/2G":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("+Zaj"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},r6Bn:function(fe,z,y){var D=y("bYtY"),N=y("ItGF"),L=y("4fz+"),E=y("BPZU");function I(f,s){return f.zlevel===s.zlevel?f.z===s.z?f.z2-s.z2:f.z-s.z:f.zlevel-s.zlevel}var o=function(){this._roots=[],this._displayList=[],this._displayListLen=0};o.prototype={constructor:o,traverse:function(s,t){for(var l=0;l<this._roots.length;l++)this._roots[l].traverse(s,t)},getDisplayList:function(s,t){return t=t||!1,s&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(s){this._displayListLen=0;for(var t=this._roots,l=this._displayList,a=0,r=t.length;a<r;a++)this._updateAndAddDisplayable(t[a],null,s);l.length=this._displayListLen,N.canvasSupported&&E(l,I)},_updateAndAddDisplayable:function(s,t,l){if(s.ignore&&!l)return;s.beforeUpdate(),s.__dirty&&s.update(),s.afterUpdate();var a=s.clipPath;if(a){t?t=t.slice():t=[];for(var r=a,u=s;r;)r.parent=u,r.updateTransform(),t.push(r),u=r,r=r.clipPath}if(s.isGroup){for(var e=s._children,n=0;n<e.length;n++){var i=e[n];s.__dirty&&(i.__dirty=!0),this._updateAndAddDisplayable(i,t,l)}s.__dirty=!1}else s.__clipPaths=t,this._displayList[this._displayListLen++]=s},addRoot:function(s){if(s.__storage===this)return;s instanceof L&&s.addChildrenToStorage(this),this.addToStorage(s),this._roots.push(s)},delRoot:function(s){if(s==null){for(var t=0;t<this._roots.length;t++){var l=this._roots[t];l instanceof L&&l.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(s instanceof Array){for(var t=0,a=s.length;t<a;t++)this.delRoot(s[t]);return}var r=D.indexOf(this._roots,s);r>=0&&(this.delFromStorage(s),this._roots.splice(r,1),s instanceof L&&s.delChildrenFromStorage(this))},addToStorage:function(s){return s&&(s.__storage=this,s.dirty(!1)),this},delFromStorage:function(s){return s&&(s.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:I};var m=o;fe.exports=m},rA99:function(fe,z,y){var D=y("y+Vt"),N=y("QBsz"),L=y("Sj9i"),E=L.quadraticSubdivide,I=L.cubicSubdivide,o=L.quadraticAt,m=L.cubicAt,f=L.quadraticDerivativeAt,s=L.cubicDerivativeAt,t=[];function l(r,u,e){var n=r.cpx2,i=r.cpy2;return n===null||i===null?[(e?s:m)(r.x1,r.cpx1,r.cpx2,r.x2,u),(e?s:m)(r.y1,r.cpy1,r.cpy2,r.y2,u)]:[(e?f:o)(r.x1,r.cpx1,r.x2,u),(e?f:o)(r.y1,r.cpy1,r.y2,u)]}var a=D.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(u,e){var n=e.x1,i=e.y1,c=e.x2,d=e.y2,h=e.cpx1,p=e.cpy1,g=e.cpx2,v=e.cpy2,A=e.percent;if(A===0)return;u.moveTo(n,i),g==null||v==null?(A<1&&(E(n,h,c,A,t),h=t[1],c=t[2],E(i,p,d,A,t),p=t[1],d=t[2]),u.quadraticCurveTo(h,p,c,d)):(A<1&&(I(n,h,g,c,A,t),h=t[1],g=t[2],c=t[3],I(i,p,v,d,A,t),p=t[1],v=t[2],d=t[3]),u.bezierCurveTo(h,p,g,v,c,d))},pointAt:function(u){return l(this.shape,u,!1)},tangentAt:function(u){var e=l(this.shape,u,!0);return N.normalize(e,e)}});fe.exports=a},"rAM+":function(fe,z,y){"use strict";y.d(z,"a",function(){return N});var D=y("Qw5x");function N(L,E){var I;if(typeof Symbol=="undefined"||L[Symbol.iterator]==null){if(Array.isArray(L)||(I=Object(D.a)(L))||E&&L&&typeof L.length=="number"){I&&(L=I);var o=0,m=function(){};return{s:m,n:function(){return o>=L.length?{done:!0}:{done:!1,value:L[o++]}},e:function(a){throw a},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,s=!1,t;return{s:function(){I=L[Symbol.iterator]()},n:function(){var a=I.next();return f=a.done,a},e:function(a){s=!0,t=a},f:function(){try{!f&&I.return!=null&&I.return()}finally{if(s)throw t}}}}},rHrb:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.CopyToClipboard=void 0;var D=L(y("q1tI")),N=L(y("+QRC"));function L(d){return d&&d.__esModule?d:{default:d}}function E(d){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(p){return typeof p}:E=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},E(d)}function I(d,h){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);h&&(g=g.filter(function(v){return Object.getOwnPropertyDescriptor(d,v).enumerable})),p.push.apply(p,g)}return p}function o(d){for(var h=1;h<arguments.length;h++){var p=arguments[h]!=null?arguments[h]:{};h%2?I(p,!0).forEach(function(g){i(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):I(p).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))})}return d}function m(d,h){if(d==null)return{};var p=f(d,h),g,v;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(d);for(v=0;v<A.length;v++){if(g=A[v],h.indexOf(g)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(d,g))continue;p[g]=d[g]}}return p}function f(d,h){if(d==null)return{};var p={},g=Object.keys(d),v,A;for(A=0;A<g.length;A++){if(v=g[A],h.indexOf(v)>=0)continue;p[v]=d[v]}return p}function s(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function t(d,h){for(var p=0;p<h.length;p++){var g=h[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function l(d,h,p){return h&&t(d.prototype,h),p&&t(d,p),d}function a(d,h){return h&&(E(h)==="object"||typeof h=="function")?h:u(d)}function r(d){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},r(d)}function u(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function e(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),h&&n(d,h)}function n(d,h){return n=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},n(d,h)}function i(d,h,p){return h in d?Object.defineProperty(d,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[h]=p,d}var c=function(d){e(h,d);function h(){var p,g;s(this,h);for(var v=arguments.length,A=new Array(v),x=0;x<v;x++)A[x]=arguments[x];return g=a(this,(p=r(h)).call.apply(p,[this].concat(A))),i(u(g),"onClick",function(b){var w=g.props,S=w.text,T=w.onCopy,C=w.children,O=w.options,_=D.default.Children.only(C),M=(0,N.default)(S,O);T&&T(S,M),_&&_.props&&typeof _.props.onClick=="function"&&_.props.onClick(b)}),g}return l(h,[{key:"render",value:function(){var g=this.props,v=g.text,A=g.onCopy,x=g.options,b=g.children,w=m(g,["text","onCopy","options","children"]),S=D.default.Children.only(b);return D.default.cloneElement(S,o({},w,{onClick:this.onClick}))}}]),h}(D.default.PureComponent);z.CopyToClipboard=c,i(c,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="ReloadOutlined";var m=z.a=N.forwardRef(o)},rUJ1:function(fe,z){var y=/[&<>"']/,D=/[&<>"']/g,N=/[<>"']|&(?!#?\w+;)/,L=/[<>"']|&(?!#?\w+;)/g,E={"&":"&","<":"<",">":">",'"':""","'":"'"},I=function(b){return E[b]};function o(x,b){if(b){if(y.test(x))return x.replace(D,I)}else if(N.test(x))return x.replace(L,I);return x}var m=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function f(x){return x.replace(m,function(b,w){return w=w.toLowerCase(),w==="colon"?":":w.charAt(0)==="#"?w.charAt(1)==="x"?String.fromCharCode(parseInt(w.substring(2),16)):String.fromCharCode(+w.substring(1)):""})}var s=/(^|[^\[])\^/g;function t(x,b){x=x.source||x,b=b||"";var w={replace:function(T,C){return C=C.source||C,C=C.replace(s,"$1"),x=x.replace(T,C),w},getRegex:function(){return new RegExp(x,b)}};return w}var l=/[^\w:]/g,a=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function r(x,b,w){if(x){var S;try{S=decodeURIComponent(f(w)).replace(l,"").toLowerCase()}catch(T){return null}if(S.indexOf("javascript:")===0||S.indexOf("vbscript:")===0||S.indexOf("data:")===0)return null}b&&!a.test(w)&&(w=c(b,w));try{w=encodeURI(w).replace(/%25/g,"%")}catch(T){return null}return w}var u={},e=/^[^:]+:\/*[^/]*$/,n=/^([^:]+:)[\s\S]*$/,i=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(x,b){u[" "+x]||(e.test(x)?u[" "+x]=x+"/":u[" "+x]=g(x,"/",!0)),x=u[" "+x];var w=x.indexOf(":")===-1;return b.substring(0,2)==="//"?w?b:x.replace(n,"$1")+b:b.charAt(0)==="/"?w?b:x.replace(i,"$1")+b:x+b}var d={exec:function(){}};function h(x){for(var b=1,w,S;b<arguments.length;b++){w=arguments[b];for(S in w)Object.prototype.hasOwnProperty.call(w,S)&&(x[S]=w[S])}return x}function p(x,b){var w=x.replace(/\|/g,function(C,O,_){for(var M=!1,k=O;--k>=0&&_[k]==="\\";)M=!M;return M?"|":" |"}),S=w.split(/ \|/),T=0;if(S.length>b)S.splice(b);else for(;S.length<b;)S.push("");for(;T<S.length;T++)S[T]=S[T].trim().replace(/\\\|/g,"|");return S}function g(x,b,w){var S=x.length;if(S===0)return"";for(var T=0;T<S;){var C=x.charAt(S-T-1);if(C===b&&!w)T++;else if(C!==b&&w)T++;else break}return x.substr(0,S-T)}function v(x,b){if(x.indexOf(b[1])===-1)return-1;for(var w=x.length,S=0,T=0;T<w;T++)if(x[T]==="\\")T++;else if(x[T]===b[0])S++;else if(x[T]===b[1]&&(S--,S<0))return T;return-1}function A(x){x&&x.sanitize&&!x.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")}fe.exports={escape:o,unescape:f,edit:t,cleanUrl:r,resolveUrl:c,noopTest:d,merge:h,splitCells:p,rtrim:g,findClosingBracket:v,checkSanitizeDeprecation:A}},rcnY:function(fe,z,y){var D=y("aRTE");function N(L,E){this.totalCount=L,this.dataCount=E}N.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],N.getRSBlocks=function(L,E){var I=N.getRsBlockTable(L,E);if(I==null)throw new Error("bad rs block @ typeNumber:"+L+"/errorCorrectLevel:"+E);for(var o=I.length/3,m=new Array,f=0;f<o;f++)for(var s=I[f*3+0],t=I[f*3+1],l=I[f*3+2],a=0;a<s;a++)m.push(new N(t,l));return m},N.getRsBlockTable=function(L,E){switch(E){case D.L:return N.RS_BLOCK_TABLE[(L-1)*4+0];case D.M:return N.RS_BLOCK_TABLE[(L-1)*4+1];case D.Q:return N.RS_BLOCK_TABLE[(L-1)*4+2];case D.H:return N.RS_BLOCK_TABLE[(L-1)*4+3];default:return}},fe.exports=N},rdUC:function(fe,z,y){var D=y("MFOe"),N=D.Global;fe.exports={name:"localStorage",read:E,write:I,each:o,remove:m,clearAll:f};function L(){return N.localStorage}function E(s){return L().getItem(s)}function I(s,t){return L().setItem(s,t)}function o(s){for(var t=L().length-1;t>=0;t--){var l=L().key(t);s(E(l),l)}}function m(s){return L().removeItem(s)}function f(){return L().clear()}},rdor:function(fe,z,y){var D=y("lOQZ"),N=D.circularLayout;function L(E){E.eachSeriesByType("graph",function(I){I.get("layout")==="circular"&&N(I,"symbolSize")})}fe.exports=L},rfSb:function(fe,z,y){var D=y("T4UG"),N=y("sdST"),L=y("L0Ub"),E=L.getDimensionTypeByAxis,I=y("YXkt"),o=y("bYtY"),m=y("4NO4"),f=m.groupData,s=y("7aKB"),t=s.encodeHTML,l=y("xKMd"),a=2,r=D.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){r.superApply(this,"init",arguments),this.legendVisualProvider=new l(o.bind(this.getData,this),o.bind(this.getRawData,this))},fixData:function(e){var n=e.length,i=f(e,function(_){return _[2]}),c=[];i.buckets.each(function(_,M){c.push({name:M,dataList:_})});for(var d=c.length,h=-1,p=-1,g=0;g<d;++g){var v=c[g].dataList.length;v>h&&(h=v,p=g)}for(var A=0;A<d;++A){if(A===p)continue;for(var x=c[A].name,b=0;b<h;++b){for(var w=c[p].dataList[b][0],S=c[A].dataList.length,T=-1,C=0;C<S;++C){var O=c[A].dataList[C][0];if(O===w){T=C;break}}T===-1&&(e[n]=[],e[n][0]=w,e[n][1]=0,e[n][2]=x,n++)}}return e},getInitialData:function(e,n){for(var i=n.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],c=i.get("type"),d=o.filter(e.data,function(w){return w[2]!==void 0}),h=this.fixData(d||[]),p=[],g=this.nameMap=o.createHashMap(),v=0,A=0;A<h.length;++A)p.push(h[A][a]),g.get(h[A][a])||(g.set(h[A][a],v),v++);var x=N(h,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:E(c)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),b=new I(x,this);return b.initData(h),b},getLayerSeries:function(){for(var e=this.getData(),n=e.count(),i=[],c=0;c<n;++c)i[c]=c;var d=e.mapDimension("single"),h=f(i,function(g){return e.get("name",g)}),p=[];return h.buckets.each(function(g,v){g.sort(function(A,x){return e.get(d,A)-e.get(d,x)}),p.push({name:v,indices:g})}),p},getAxisTooltipData:function(e,n,i){o.isArray(e)||(e=e?[e]:[]);for(var c=this.getData(),d=this.getLayerSeries(),h=[],p=d.length,g,v=0;v<p;++v){for(var A=Number.MAX_VALUE,x=-1,b=d[v].indices.length,w=0;w<b;++w){var S=c.get(e[0],d[v].indices[w]),T=Math.abs(S-n);T<=A&&(g=S,A=T,x=d[v].indices[w])}h.push(x)}return{dataIndices:h,nestestValue:g}},formatTooltip:function(e){var n=this.getData(),i=n.getName(e),c=n.get(n.mapDimension("value"),e);return(isNaN(c)||c==null)&&(c="-"),t(i+" : "+c)},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}}}}),u=r;fe.exports=u},rkZ5:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("ProS"),E=y("c8qY"),I=y("D9ME"),o=y("fls0"),m=y("RSch"),f=y("akwb"),s=y("o40c"),t=y("ZYIC"),l=y("sK/D"),a=l.createClipPath,r=L.extendChartView({type:"lines",init:function(){},render:function(u,e,n){var i=u.getData(),c=this._updateLineDraw(i,u),d=u.get("zlevel"),h=u.get("effect.trailLength"),p=n.getZr(),g=p.painter.getType()==="svg";g||p.painter.getLayer(d).clear(!0),this._lastZlevel!=null&&!g&&p.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(u)&&h&&(g||p.configLayer(d,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(h/10+.9,1),0)})),c.updateData(i);var v=u.get("clip",!0)&&a(u.coordinateSystem,!1,u);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=d,this._finished=!0},incrementalPrepareRender:function(u,e,n){var i=u.getData(),c=this._updateLineDraw(i,u);c.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(u,e,n){this._lineDraw.incrementalUpdate(u,e.getData()),this._finished=u.end===e.getData().count()},updateTransform:function(u,e,n){var i=u.getData(),c=u.pipelineContext;if(!this._finished||c.large||c.progressiveRender)return{update:!0};var d=t.reset(u);d.progress&&d.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(u,e){var n=this._lineDraw,i=this._showEffect(e),c=!!e.get("polyline"),d=e.pipelineContext,h=d.large;return(!n||i!==this._hasEffet||c!==this._isPolyline||h!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=h?new s:new E(c?i?f:m:i?I:o),this._hasEffet=i,this._isPolyline=c,this._isLargeDraw=h,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(u){return!!u.get("effect.show")},_clearLayer:function(u){var e=u.getZr(),n=e.painter.getType()==="svg";!n&&this._lastZlevel!=null&&e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(u,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});fe.exports=r},rmlV:function(fe,z,y){var D=y("y+Vt"),N=D.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(E,I){var o=.5522848,m=I.cx,f=I.cy,s=I.rx,t=I.ry,l=s*o,a=t*o;E.moveTo(m-s,f),E.bezierCurveTo(m-s,f-a,m-l,f-t,m,f-t),E.bezierCurveTo(m+l,f-t,m+s,f-a,m+s,f),E.bezierCurveTo(m+s,f+a,m+l,f+t,m,f+t),E.bezierCurveTo(m-l,f+t,m-s,f+a,m-s,f),E.closePath()}});fe.exports=N},rnVJ:function(fe,z,y){var D=y("bYtY"),N=["rect","polygon","keep","clear"];function L(I,o){var m=I&&I.brush;if(D.isArray(m)||(m=m?[m]:[]),!m.length)return;var f=[];D.each(m,function(r){var u=r.hasOwnProperty("toolbox")?r.toolbox:[];u instanceof Array&&(f=f.concat(u))});var s=I&&I.toolbox;D.isArray(s)&&(s=s[0]),s||(s={feature:{}},I.toolbox=[s]);var t=s.feature||(s.feature={}),l=t.brush||(t.brush={}),a=l.type||(l.type=[]);a.push.apply(a,f),E(a),o&&!a.length&&a.push.apply(a,N)}function E(I){var o={};D.each(I,function(m){o[m]=1}),I.length=0,D.each(o,function(m,f){I.push(f)})}fe.exports=L},rwxt:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=y("GdRQ");function N(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function L(m,f){for(var s=0;s<f.length;s++){var t=f[s];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(m,t.key,t)}}function E(m,f,s){return f&&L(m.prototype,f),s&&L(m,s),m}var I=!D.supportsCursorURIs||D.isTouchDevice,o=function(){function m(){N(this,m),this._target=null,this._canvas=document.createElement("canvas"),I&&(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 E(m,[{key:"attach",value:function(s){if(this._target&&this.detach(),this._target=s,I){document.body.appendChild(this._canvas);var t={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,t),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,t),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,t),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,t)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(I){var s={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,s),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,s),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,s),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,s),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(s,t,l,a,r){if(a===0||r===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-t,this._position.y=this._position.y+this._hotSpot.y-l,this._hotSpot.x=t,this._hotSpot.y=l;var u=this._canvas.getContext("2d");this._canvas.width=a,this._canvas.height=r;var e;try{e=new ImageData(new Uint8ClampedArray(s),a,r)}catch(i){e=u.createImageData(a,r),e.data.set(new Uint8ClampedArray(s))}if(u.clearRect(0,0,a,r),u.putImageData(e,0,0),I)this._updatePosition();else{var n=this._canvas.toDataURL();this._target.style.cursor="url("+n+")"+t+" "+l+", 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(s,t){if(!I)return;window.visualViewport?(this._position.x=s+window.visualViewport.offsetLeft,this._position.y=t+window.visualViewport.offsetTop):(this._position.x=s,this._position.y=t),this._updatePosition();var l=document.elementFromPoint(s,t);this._updateVisibility(l)}},{key:"_handleMouseOver",value:function(s){this._handleMouseMove(s)}},{key:"_handleMouseLeave",value:function(s){this._updateVisibility(s.relatedTarget)}},{key:"_handleMouseMove",value:function(s){this._updateVisibility(s.target),this._position.x=s.clientX-this._hotSpot.x,this._position.y=s.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(s){var t=this,l=document.elementFromPoint(s.clientX,s.clientY);this._updateVisibility(l),this._captureIsActive()&&window.setTimeout(function(){if(!t._target)return;l=document.elementFromPoint(s.clientX,s.clientY),t._updateVisibility(l)},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(s){return s?s===this._target?!0:this._target.contains(s)?!(window.getComputedStyle(s).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(s){this._captureIsActive()&&(s=document.captureElement),this._shouldShowCursor(s)?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)}}]),m}();z.default=o},rySg:function(fe,z,y){y("SMc4"),y("8nMs")},s2MQ:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},s2lz:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("IwbS"),E=y("gPAo"),I=y("VaxA"),o=y("9hCq"),m=y("SgGq"),f=y("mFDi"),s=y("Fofx"),t=y("5s0K"),l=y("KCsZ"),a=y("7aKB"),r=a.windowOpen,u=N.bind,e=L.Group,n=L.Rect,i=N.each,c=3,d=["label"],h=["emphasis","label"],p=["upperLabel"],g=["emphasis","upperLabel"],v=10,A=1,x=2,b=l([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),w=function(_){var M=b(_);return M.stroke=M.fill=M.lineWidth=null,M},S=D.extendChartView({type:"treemap",init:function(_,M){this._containerGroup,this._storage=T(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(_,M,k,R){var B=M.findComponents({mainType:"series",subType:"treemap",query:R});if(N.indexOf(B,_)<0)return;this.seriesModel=_,this.api=k,this.ecModel=M;var P=["treemapZoomToNode","treemapRootToNode"],U=I.retrieveTargetInfo(R,P,_),j=R&&R.type,H=_.layoutInfo,W=!this._oldTree,G=this._storage,V=j==="treemapRootToNode"&&U&&G?{rootNodeGroup:G.nodeGroup[U.node.getRawIndex()],direction:R.direction}:null,Z=this._giveContainerGroup(H),Y=this._doRender(Z,_,V);!W&&(!j||j==="treemapZoomToNode"||j==="treemapRootToNode")?this._doAnimation(Z,Y,_,V):Y.renderFinally(),this._resetController(k),this._renderBreadcrumb(_,k,U)},_giveContainerGroup:function(_){var M=this._containerGroup;return M||(M=this._containerGroup=new e,this._initEvents(M),this.group.add(M)),M.attr("position",[_.x,_.y]),M},_doRender:function(_,M,k){var R=M.getData().tree,B=this._oldTree,P=T(),U=T(),j=this._storage,H=[],W=N.curry(C,M,U,j,k,P,H);V(R.root?[R.root]:[],B&&B.root?[B.root]:[],_,R===B||!B,0);var G=Z(j);return this._oldTree=R,this._storage=U,{lastsForAnimation:P,willDeleteEls:G,renderFinally:Y};function V(Q,oe,ue,Le,me){Le?(oe=Q,i(Q,function(q,We){!q.isRemoved()&&X(We,We)})):new E(oe,Q,Ie,Ie).add(X).update(X).remove(N.curry(X,null)).execute();function Ie(q){return q.getId()}function X(q,We){var $=q!=null?Q[q]:null,J=We!=null?oe[We]:null,le=W($,J,ue,me);le&&V($&&$.viewChildren||[],J&&J.viewChildren||[],le,Le,me+1)}}function Z(Q){var oe=T();return Q&&i(Q,function(ue,Le){var me=oe[Le];i(ue,function(Ie){Ie&&(me.push(Ie),Ie.__tmWillDelete=1)})}),oe}function Y(){i(G,function(Q){i(Q,function(oe){oe.parent&&oe.parent.remove(oe)})}),i(H,function(Q){Q.invisible=!0,Q.dirty()})}},_doAnimation:function(_,M,k,R){if(!k.get("animation"))return;var B=k.get("animationDurationUpdate"),P=k.get("animationEasing"),U=t.createWrap();i(M.willDeleteEls,function(j,H){i(j,function(W,G){if(W.invisible)return;var V=W.parent,Z;if(R&&R.direction==="drillDown")Z=V===R.rootNodeGroup?{shape:{x:0,y:0,width:V.__tmNodeWidth,height:V.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var Y=0,Q=0;V.__tmWillDelete||(Y=V.__tmNodeWidth/2,Q=V.__tmNodeHeight/2),Z=H==="nodeGroup"?{position:[Y,Q],style:{opacity:0}}:{shape:{x:Y,y:Q,width:0,height:0},style:{opacity:0}}}Z&&U.add(W,Z,B,P)})}),i(this._storage,function(j,H){i(j,function(W,G){var V=M.lastsForAnimation[H][G],Z={};if(!V)return;H==="nodeGroup"?V.old&&(Z.position=W.position.slice(),W.attr("position",V.old)):(V.old&&(Z.shape=N.extend({},W.shape),W.setShape(V.old)),V.fadein?(W.setStyle("opacity",0),Z.style={opacity:1}):W.style.opacity!==1&&(Z.style={opacity:1})),U.add(W,Z,B,P)})},this),this._state="animating",U.done(u(function(){this._state="ready",M.renderFinally()},this)).start()},_resetController:function(_){var M=this._controller;M||(M=this._controller=new m(_.getZr()),M.enable(this.seriesModel.get("roam")),M.on("pan",u(this._onPan,this)),M.on("zoom",u(this._onZoom,this)));var k=new f(0,0,_.getWidth(),_.getHeight());M.setPointerChecker(function(R,B,P){return k.contain(B,P)})},_clearController:function(){var _=this._controller;_&&(_.dispose(),_=null)},_onPan:function(_){if(this._state!=="animating"&&(Math.abs(_.dx)>c||Math.abs(_.dy)>c)){var M=this.seriesModel.getData().tree.root;if(!M)return;var k=M.getLayout();if(!k)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:k.x+_.dx,y:k.y+_.dy,width:k.width,height:k.height}})}},_onZoom:function(_){var M=_.originX,k=_.originY;if(this._state!=="animating"){var R=this.seriesModel.getData().tree.root;if(!R)return;var B=R.getLayout();if(!B)return;var P=new f(B.x,B.y,B.width,B.height),U=this.seriesModel.layoutInfo;M-=U.x,k-=U.y;var j=s.create();s.translate(j,j,[-M,-k]),s.scale(j,j,[_.scale,_.scale]),s.translate(j,j,[M,k]),P.applyTransform(j),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:P.x,y:P.y,width:P.width,height:P.height}})}},_initEvents:function(_){_.on("click",function(M){if(this._state!=="ready")return;var k=this.seriesModel.get("nodeClick",!0);if(!k)return;var R=this.findTarget(M.offsetX,M.offsetY);if(!R)return;var B=R.node;if(B.getLayout().isLeafRoot)this._rootToNode(R);else if(k==="zoomToNode")this._zoomToNode(R);else if(k==="link"){var P=B.hostTree.data.getItemModel(B.dataIndex),U=P.get("link",!0),j=P.get("target",!0)||"blank";U&&r(U,j)}},this)},_renderBreadcrumb:function(_,M,k){k||(k=_.get("leafDepth",!0)!=null?{node:_.getViewRoot()}:this.findTarget(M.getWidth()/2,M.getHeight()/2),k||(k={node:_.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new o(this.group))).render(_,M,k.node,u(R,this));function R(B){this._state!=="animating"&&(I.aboveViewRoot(_.getViewRoot(),B)?this._rootToNode({node:B}):this._zoomToNode({node:B}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=T(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(_){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:_.node})},_rootToNode:function(_){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:_.node})},findTarget:function(_,M){var k,R=this.seriesModel.getViewRoot();return R.eachNode({attr:"viewChildren",order:"preorder"},function(B){var P=this._storage.background[B.getRawIndex()];if(P){var U=P.transformCoordToLocal(_,M),j=P.shape;if(j.x<=U[0]&&U[0]<=j.x+j.width&&j.y<=U[1]&&U[1]<=j.y+j.height)k={node:B,offsetX:U[0],offsetY:U[1]};else return!1}},this),k}});function T(){return{nodeGroup:[],background:[],content:[]}}function C(_,M,k,R,B,P,U,j,H,W){if(!U)return;var G=U.getLayout(),V=_.getData();if(V.setItemGraphicEl(U.dataIndex,null),!G||!G.isInView)return;var Z=G.width,Y=G.height,Q=G.borderWidth,oe=G.invisible,ue=U.getRawIndex(),Le=j&&j.getRawIndex(),me=U.viewChildren,Ie=G.upperHeight,X=me&&me.length,q=U.getModel("itemStyle"),We=U.getModel("emphasis.itemStyle"),$=ne("nodeGroup",e);if(!$)return;if(H.add($),$.attr("position",[G.x||0,G.y||0]),$.__tmNodeWidth=Z,$.__tmNodeHeight=Y,G.isAboveViewRoot)return $;var J=U.getModel(),le=ne("background",n,W,A);if(le&&Ne($,le,X&&G.upperLabelHeight),X)L.isHighDownDispatcher($)&&L.setAsHighDownDispatcher($,!1),le&&(L.setAsHighDownDispatcher(le,!0),V.setItemGraphicEl(U.dataIndex,le));else{var de=ne("content",n,W,x);de&&we($,de),le&&L.isHighDownDispatcher(le)&&L.setAsHighDownDispatcher(le,!1),L.setAsHighDownDispatcher($,!0),V.setItemGraphicEl(U.dataIndex,$)}return $;function Ne(Ve,Ke,Oe){if(Ke.dataIndex=U.dataIndex,Ke.seriesIndex=_.seriesIndex,Ke.setShape({x:0,y:0,width:Z,height:Y}),oe)De(Ke);else{Ke.invisible=!1;var it=U.getVisual("borderColor",!0),Fe=We.get("borderColor"),ft=w(q);ft.fill=it;var At=b(We);if(At.fill=Fe,Oe){var bt=Z-2*Q;Ee(ft,At,it,bt,Ie,{x:Q,y:0,width:bt,height:Ie})}else ft.text=At.text=null;Ke.setStyle(ft),L.setElementHoverStyle(Ke,At)}Ve.add(Ke)}function we(Ve,Ke){Ke.dataIndex=U.dataIndex,Ke.seriesIndex=_.seriesIndex;var Oe=Math.max(Z-2*Q,0),it=Math.max(Y-2*Q,0);if(Ke.culling=!0,Ke.setShape({x:Q,y:Q,width:Oe,height:it}),oe)De(Ke);else{Ke.invisible=!1;var Fe=U.getVisual("color",!0),ft=w(q);ft.fill=Fe;var At=b(We);Ee(ft,At,Fe,Oe,it),Ke.setStyle(ft),L.setElementHoverStyle(Ke,At)}Ve.add(Ke)}function De(Ve){!Ve.invisible&&P.push(Ve)}function Ee(Ve,Ke,Oe,it,Fe,ft){var At=J.get("name"),bt=J.getModel(ft?p:d),St=J.getModel(ft?g:h),Et=bt.getShallow("show");L.setLabelStyle(Ve,Ke,bt,St,{defaultText:Et?At:null,autoColor:Oe,isRectText:!0,labelFetcher:_,labelDataIndex:U.dataIndex,labelProp:ft?"upperLabel":"label"}),ce(Ve,ft,G),ce(Ke,ft,G),ft&&(Ve.textRect=N.clone(ft)),Ve.truncate=Et&&bt.get("ellipsis")?{outerWidth:it,outerHeight:Fe,minChar:2}:null}function ce(Ve,Ke,Oe){var it=Ve.text;if(!Ke&&Oe.isLeafRoot&&it!=null){var Fe=_.get("drillDownIcon",!0);Ve.text=Fe?Fe+" "+it:it}}function ne(Ve,Ke,Oe,it){var Fe=Le!=null&&k[Ve][Le],ft=B[Ve];return Fe?(k[Ve][Le]=null,ee(ft,Fe,Ve)):oe||(Fe=new Ke({z:O(Oe,it)}),Fe.__tmDepth=Oe,Fe.__tmStorageName=Ve,Ae(ft,Fe,Ve)),M[Ve][ue]=Fe}function ee(Ve,Ke,Oe){var it=Ve[ue]={};it.old=Oe==="nodeGroup"?Ke.position.slice():N.extend({},Ke.shape)}function Ae(Ve,Ke,Oe){var it=Ve[ue]={},Fe=U.parentNode;if(Fe&&(!R||R.direction==="drillDown")){var ft=0,At=0,bt=B.background[Fe.getRawIndex()];!R&&bt&&bt.old&&(ft=bt.old.width,At=bt.old.height),it.old=Oe==="nodeGroup"?[0,At]:{x:ft,y:At,width:0,height:0}}it.fadein=Oe!=="nodeGroup"}}function O(_,M){var k=_*v+M;return(k-1)/k}fe.exports=S},sAZ8:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("+rIm"),E=y("/IIm"),I=y("9KIM"),o=y("IwbS"),m=["axisLine","axisTickLabel","axisName"],f=D.extendComponentView({type:"parallelAxis",init:function(r,u){f.superApply(this,"init",arguments),(this._brushController=new E(u.getZr())).on("brush",N.bind(this._onBrush,this))},render:function(r,u,e,n){if(s(r,u,n))return;this.axisModel=r,this.api=e,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new o.Group,this.group.add(this._axisGroup),!r.get("show"))return;var c=l(r,u),d=c.coordinateSystem,h=r.getAreaSelectStyle(),p=h.width,g=r.axis.dim,v=d.getAxisLayout(g),A=N.extend({strokeContainThreshold:p},v),x=new L(r,A);N.each(m,x.add,x),this._axisGroup.add(x.getGroup()),this._refreshBrushController(A,h,r,c,p,e);var b=n&&n.animation===!1?null:r;o.groupTransition(i,this._axisGroup,b)},_refreshBrushController:function(r,u,e,n,i,c){var d=e.axis.getExtent(),h=d[1]-d[0],p=Math.min(30,Math.abs(h)*.1),g=o.BoundingRect.create({x:d[0],y:-i/2,width:h,height:i});g.x-=p,g.width+=2*p,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,position:r.position}).setPanels([{panelId:"pl",clipPath:I.makeRectPanelClipPath(g),isTargetByCursor:I.makeRectIsTargetByCursor(g,c,n),getLinearBrushOtherExtent:I.makeLinearBrushOtherExtent(g,0)}]).enableBrush({brushType:"lineX",brushStyle:u,removeOnClick:!0}).updateCovers(t(e))},_onBrush:function(r,u){var e=this.axisModel,n=e.axis,i=N.map(r,function(c){return[n.coordToData(c.range[0],!0),n.coordToData(c.range[1],!0)]});(!e.option.realtime===u.isEnd||u.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:e.id,intervals:i})},dispose:function(){this._brushController.dispose()}});function s(r,u,e){return e&&e.type==="axisAreaSelect"&&u.findComponents({mainType:"parallelAxis",query:e})[0]===r}function t(r){var u=r.axis;return N.map(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[u.dataToCoord(e[0],!0),u.dataToCoord(e[1],!0)]}})}function l(r,u){return u.getComponent("parallel",r.get("parallelIndex"))}var a=f;fe.exports=a},sE09:function(fe,z,y){},sGsY:function(fe,z,y){"use strict";var D=y("lSNA"),N=y.n(D),L=y("pVnL"),E=y.n(L),I=y("q1tI"),o=y("TSYQ"),m=y.n(o),f=y("H84U"),s=y("B6l+"),t=y.n(s),l=function(U){var j=U.value,H=U.formatter,W=U.precision,G=U.decimalSeparator,V=U.groupSeparator,Z=V===void 0?"":V,Y=U.prefixCls,Q;if(typeof H=="function")Q=H(j);else{var oe=String(j),ue=oe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ue||oe==="-")Q=oe;else{var Le=ue[1],me=ue[2]||"0",Ie=ue[4]||"";me=me.replace(/\B(?=(\d{3})+(?!\d))/g,Z),typeof W=="number"&&(Ie=t()(Ie,W,"0").slice(0,W)),Ie&&(Ie="".concat(G).concat(Ie)),Q=[I.createElement("span",{key:"int",className:"".concat(Y,"-content-value-int")},Le,me),Ie&&I.createElement("span",{key:"decimal",className:"".concat(Y,"-content-value-decimal")},Ie)]}}return I.createElement("span",{className:"".concat(Y,"-content-value")},Q)},a=l,r=function(U){var j=U.prefixCls,H=U.className,W=U.style,G=U.valueStyle,V=U.value,Z=V===void 0?0:V,Y=U.title,Q=U.valueRender,oe=U.prefix,ue=U.suffix,Le=U.direction,me=U.onMouseEnter,Ie=U.onMouseLeave,X=I.createElement(a,E()({},U,{value:Z})),q=m()(j,H,N()({},"".concat(j,"-rtl"),Le==="rtl"));return I.createElement("div",{className:q,style:W,onMouseEnter:me,onMouseLeave:Ie},Y&&I.createElement("div",{className:"".concat(j,"-title")},Y),I.createElement("div",{style:G,className:"".concat(j,"-content")},oe&&I.createElement("span",{className:"".concat(j,"-content-prefix")},oe),Q?Q(X):X,ue&&I.createElement("span",{className:"".concat(j,"-content-suffix")},ue)))};r.defaultProps={decimalSeparator:".",groupSeparator:","};var u=Object(f.c)({prefixCls:"statistic"})(r),e=u,n=y("lwsE"),i=y.n(n),c=y("W8MJ"),d=y.n(c),h=y("7W2i"),p=y.n(h),g=y("LQ03"),v=y.n(g),A=y("J4zp"),x=y.n(A),b=y("QQZ/"),w=y.n(b),S=[["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 T(P,U){var j=P,H=/\[[^\]]*]/g,W=(U.match(H)||[]).map(function(Y){return Y.slice(1,-1)}),G=U.replace(H,"[]"),V=S.reduce(function(Y,Q){var oe=x()(Q,2),ue=oe[0],Le=oe[1];if(Y.indexOf(ue)!==-1){var me=Math.floor(j/Le);return j-=me*Le,Y.replace(new RegExp("".concat(ue,"+"),"g"),function(Ie){var X=Ie.length;return w()(me.toString(),X,"0")})}return Y},G),Z=0;return V.replace(H,function(){var Y=W[Z];return Z+=1,Y})}function C(P,U){var j=U.format,H=j===void 0?"":j,W=new Date(P).getTime(),G=Date.now(),V=Math.max(W-G,0);return T(V,H)}var O=y("0n0R"),_=1e3/30;function M(P){return new Date(P).getTime()}var k=function(P){p()(j,P);var U=v()(j);function j(){var H;return i()(this,j),H=U.apply(this,arguments),H.syncTimer=function(){var W=H.props.value,G=M(W);G>=Date.now()?H.startTimer():H.stopTimer()},H.startTimer=function(){if(H.countdownId)return;H.countdownId=window.setInterval(function(){H.forceUpdate()},_)},H.stopTimer=function(){var W=H.props,G=W.onFinish,V=W.value;if(H.countdownId){clearInterval(H.countdownId),H.countdownId=void 0;var Z=M(V);G&&Z<Date.now()&&G()}},H.formatCountdown=function(W,G){var V=H.props.format;return C(W,E()(E()({},G),{format:V}))},H.valueRender=function(W){return Object(O.a)(W,{title:void 0})},H}return d()(j,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return I.createElement(e,E()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),j}(I.Component);k.defaultProps={format:"HH:mm:ss"};var R=k;e.Countdown=R;var B=z.a=e},"sK/D":function(fe,z,y){var D=y("IwbS"),N=y("OELB"),L=N.round;function E(m,f,s){var t=m.getArea(),l=m.getBaseAxis().isHorizontal(),a=t.x,r=t.y,u=t.width,e=t.height,n=s.get("lineStyle.width")||2;a-=n/2,r-=n/2,u+=n,e+=n,a=Math.floor(a),u=Math.round(u);var i=new D.Rect({shape:{x:a,y:r,width:u,height:e}});return f&&(i.shape[l?"width":"height"]=0,D.initProps(i,{shape:{width:u,height:e}},s)),i}function I(m,f,s){var t=m.getArea(),l=new D.Sector({shape:{cx:L(m.cx,1),cy:L(m.cy,1),r0:L(t.r0,1),r:L(t.r,1),startAngle:t.startAngle,endAngle:t.endAngle,clockwise:t.clockwise}});return f&&(l.shape.endAngle=t.startAngle,D.initProps(l,{shape:{endAngle:t.endAngle}},s)),l}function o(m,f,s){if(m){if(m.type==="polar")return I(m,f,s);if(m.type==="cartesian2d")return E(m,f,s)}else return null;return null}z.createGridClipPath=E,z.createPolarClipPath=I,z.createClipPath=o},sKgW:function(fe,z){var y=9007199254740991,D=Math.floor;function N(L,E){var I="";if(!L||E<1||E>y)return I;do E%2&&(I+=L),E=D(E/2),E&&(L+=L);while(E);return I}fe.exports=N},sPJy:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("AOa7"),E=y.n(L),I=y("lUTK"),o=y("qVdP")},sPtV:function(fe,z,y){"use strict";y.d(z,"a",function(){return E});var D=y("q1tI"),N=y.n(D),L=y("hkKa");function E(I){var o=D.useRef(I),m=Object(L.a)();return[function(){return o.current},function(f){o.current=f,m()}]}},sRwP:function(fe,z,y){y("jsU+"),y("2548"),y("Tp9H"),y("06DH"),y("dnwI"),y("fE02"),y("33Ds")},"sS/r":function(fe,z,y){var D=y("4fz+"),N=y("iRjW"),L=y("Yl7c"),E=function(){this.group=new D,this.uid=N.getUID("viewComponent")};E.prototype={constructor:E,init:function(m,f){},render:function(m,f,s,t){},dispose:function(){},filterForExposedEvent:null};var I=E.prototype;I.updateView=I.updateLayout=I.updateVisual=function(m,f,s,t){},L.enableClassExtend(E),L.enableClassManagement(E,{registerWhenExtend:!0});var o=E;fe.exports=o},"sW+o":function(fe,z,y){var D=y("SrGk"),N=y("bYtY"),L=y("SUKs"),E=y("Qe9p");function I(m,f){D.call(this,m,f,["linearGradient","radialGradient"],"__gradient_in_use__")}N.inherits(I,D),I.prototype.addWithoutUpdate=function(m,f){if(f&&f.style){var s=this;N.each(["fill","stroke"],function(t){if(f.style[t]&&(f.style[t].type==="linear"||f.style[t].type==="radial")){var l=f.style[t],a=s.getDefs(!0),r;l._dom?(r=l._dom,a.contains(l._dom)||s.addDom(r)):r=s.add(l),s.markUsed(f);var u=r.getAttribute("id");m.setAttribute(t,"url(#"+u+")")}})}},I.prototype.add=function(m){var f;if(m.type==="linear")f=this.createElement("linearGradient");else if(m.type==="radial")f=this.createElement("radialGradient");else return L("Illegal gradient type."),null;return m.id=m.id||this.nextId++,f.setAttribute("id","zr"+this._zrId+"-gradient-"+m.id),this.updateDom(m,f),this.addDom(f),f},I.prototype.update=function(m){var f=this;D.prototype.update.call(this,m,function(){var s=m.type,t=m._dom.tagName;s==="linear"&&t==="linearGradient"||s==="radial"&&t==="radialGradient"?f.updateDom(m,m._dom):(f.removeDom(m),f.add(m))})},I.prototype.updateDom=function(m,f){if(m.type==="linear")f.setAttribute("x1",m.x),f.setAttribute("y1",m.y),f.setAttribute("x2",m.x2),f.setAttribute("y2",m.y2);else if(m.type==="radial")f.setAttribute("cx",m.x),f.setAttribute("cy",m.y),f.setAttribute("r",m.r);else{L("Illegal gradient type.");return}m.global?f.setAttribute("gradientUnits","userSpaceOnUse"):f.setAttribute("gradientUnits","objectBoundingBox"),f.innerHTML="";for(var s=m.colorStops,t=0,l=s.length;t<l;++t){var a=this.createElement("stop");a.setAttribute("offset",s[t].offset*100+"%");var r=s[t].color;if(r.indexOf("rgba">-1)){var u=E.parse(r)[3],e=E.toHex(r);a.setAttribute("stop-color","#"+e),a.setAttribute("stop-opacity",u)}else a.setAttribute("stop-color",s[t].color);f.appendChild(a)}m._dom=f},I.prototype.markUsed=function(m){if(m.style){var f=m.style.fill;f&&f._dom&&D.prototype.markUsed.call(this,f._dom),f=m.style.stroke,f&&f._dom&&D.prototype.markUsed.call(this,f._dom)}};var o=I;fe.exports=o},sboe:function(fe,z,y){"use strict";y.d(z,"a",function(){return L});var D=y("q1tI"),N=y.n(D),L=D.createContext(null)},sdST:function(fe,z,y){var D=y("hi0g");function N(L,E){return E=E||{},D(E.coordDimensions||[],L,{dimsDef:E.dimensionsDefine||L.dimensionsDefine,encodeDef:E.encodeDefine||L.encodeDefine,dimCount:E.dimensionsCount,encodeDefaulter:E.encodeDefaulter,generateCoord:E.generateCoord,generateCoordCount:E.generateCoordCount})}fe.exports=N},sjKO:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=L;var D=30,N=12;function L(E,I){var o,m,f,s,t,l,a,r,u,e,n,i,c,d,h,p,g,v,A,x,b,w,S,T,C;o=E.state,m=E.next_in,T=E.input,f=m+(E.avail_in-5),s=E.next_out,C=E.output,t=s-(I-E.avail_out),l=s+(E.avail_out-257),a=o.dmax,r=o.wsize,u=o.whave,e=o.wnext,n=o.window,i=o.hold,c=o.bits,d=o.lencode,h=o.distcode,p=(1<<o.lenbits)-1,g=(1<<o.distbits)-1;e:do{c<15&&(i+=T[m++]<<c,c+=8,i+=T[m++]<<c,c+=8),v=d[i&p];t:for(;;){if(A=v>>>24,i>>>=A,c-=A,A=v>>>16&255,A===0)C[s++]=v&65535;else if(A&16){x=v&65535,A&=15,A&&(c<A&&(i+=T[m++]<<c,c+=8),x+=i&(1<<A)-1,i>>>=A,c-=A),c<15&&(i+=T[m++]<<c,c+=8,i+=T[m++]<<c,c+=8),v=h[i&g];r:for(;;){if(A=v>>>24,i>>>=A,c-=A,A=v>>>16&255,A&16){if(b=v&65535,A&=15,c<A&&(i+=T[m++]<<c,c+=8,c<A&&(i+=T[m++]<<c,c+=8)),b+=i&(1<<A)-1,b>a){E.msg="invalid distance too far back",o.mode=D;break e}if(i>>>=A,c-=A,A=s-t,b>A){if(A=b-A,A>u&&o.sane){E.msg="invalid distance too far back",o.mode=D;break e}if(w=0,S=n,e===0){if(w+=r-A,A<x){x-=A;do C[s++]=n[w++];while(--A);w=s-b,S=C}}else if(e<A){if(w+=r+e-A,A-=e,A<x){x-=A;do C[s++]=n[w++];while(--A);if(w=0,e<x){A=e,x-=A;do C[s++]=n[w++];while(--A);w=s-b,S=C}}}else if(w+=e-A,A<x){x-=A;do C[s++]=n[w++];while(--A);w=s-b,S=C}for(;x>2;)C[s++]=S[w++],C[s++]=S[w++],C[s++]=S[w++],x-=3;x&&(C[s++]=S[w++],x>1&&(C[s++]=S[w++]))}else{w=s-b;do C[s++]=C[w++],C[s++]=C[w++],C[s++]=C[w++],x-=3;while(x>2);x&&(C[s++]=C[w++],x>1&&(C[s++]=C[w++]))}}else if((A&64)===0){v=h[(v&65535)+(i&(1<<A)-1)];continue r}else{E.msg="invalid distance code",o.mode=D;break e}break}}else if((A&64)===0){v=d[(v&65535)+(i&(1<<A)-1)];continue t}else if(A&32){o.mode=N;break e}else{E.msg="invalid literal/length code",o.mode=D;break e}break}}while(m<f&&s<l);x=c>>3,m-=x,c-=x<<3,i&=(1<<c)-1,E.next_in=m,E.next_out=s,E.avail_in=m<f?5+(f-m):5-(m-f),E.avail_out=s<l?257+(l-s):257-(s-l),o.hold=i,o.bits=c;return}},szbU:function(fe,z,y){var D=y("bYtY"),N=D.each;function L(I){var o=I&&I.visualMap;D.isArray(o)||(o=o?[o]:[]),N(o,function(m){if(!m)return;E(m,"splitList")&&!E(m,"pieces")&&(m.pieces=m.splitList,delete m.splitList);var f=m.pieces;f&&D.isArray(f)&&N(f,function(s){D.isObject(s)&&(E(s,"start")&&!E(s,"min")&&(s.min=s.start),E(s,"end")&&!E(s,"max")&&(s.max=s.end))})})}function E(I,o){return I&&I.hasOwnProperty&&I.hasOwnProperty(o)}fe.exports=L},t23M:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("1OyB"),L=y("vuIU"),E=y("Ji7U"),I=y("LK+K"),o=y("q1tI"),m=y.n(o),f=y("m+aA"),s=y("Zm9Q"),t=y("Kwbf"),l=y("c+Xe"),a=y("bdgK"),r="rc-observer-key",u=function(e){Object(E.a)(i,e);var n=Object(I.a)(i);function i(){var c;return Object(N.a)(this,i),c=n.apply(this,arguments),c.resizeObserver=null,c.childNode=null,c.currentElement=null,c.state={width:0,height:0,offsetHeight:0,offsetWidth:0},c.onResize=function(d){var h=c.props.onResize,p=d[0].target,g=p.getBoundingClientRect(),v=g.width,A=g.height,x=p.offsetWidth,b=p.offsetHeight,w=Math.floor(v),S=Math.floor(A);if(c.state.width!==w||c.state.height!==S||c.state.offsetWidth!==x||c.state.offsetHeight!==b){var T={width:w,height:S,offsetWidth:x,offsetHeight:b};c.setState(T),h&&Promise.resolve().then(function(){h(Object(D.a)(Object(D.a)({},T),{},{offsetWidth:x,offsetHeight:b}))})}},c.setChildNode=function(d){c.childNode=d},c}return Object(L.a)(i,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var d=this.props.disabled;if(d){this.destroyObserver();return}var h=Object(f.a)(this.childNode||this),p=h!==this.currentElement;p&&(this.destroyObserver(),this.currentElement=h),!this.resizeObserver&&h&&(this.resizeObserver=new a.default(this.onResize),this.resizeObserver.observe(h))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var d=this.props.children,h=Object(s.a)(d);if(h.length>1)Object(t.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(h.length===0)return Object(t.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=h[0];if(o.isValidElement(p)&&Object(l.c)(p)){var g=p.ref;h[0]=o.cloneElement(p,{ref:Object(l.a)(g,this.setChildNode)})}return h.length===1?h[0]:h.map(function(v,A){return!o.isValidElement(v)||"key"in v&&v.key!==null?v:o.cloneElement(v,{key:"".concat(r,"-").concat(A)})})}}]),i}(o.Component);u.displayName="ResizeObserver",z.a=u},t3Fx:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var c=arguments[i];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(n[d]=c[d])}return n},N=function(){function n(i,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}return function(i,c,d){return c&&n(i.prototype,c),d&&n(i,d),i}}(),L=y("q1tI"),E=l(L),I=y("17x9"),o=l(I),m=y("tkwv"),f=l(m),s=y("u3os"),t=y("kzFp");function l(n){return n&&n.__esModule?n:{default:n}}function a(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function r(n,i){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:n}function u(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=i)}var e=function(n){u(i,n);function i(c){a(this,i);var d=r(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,c));return d.getEchartsInstance=function(){return d.echartsLib.getInstanceByDom(d.echartsElement)||d.echartsLib.init(d.echartsElement,d.props.theme,d.props.opts)},d.dispose=function(){if(d.echartsElement){try{(0,s.clear)(d.echartsElement)}catch(h){console.warn(h)}d.echartsLib.dispose(d.echartsElement)}},d.rerender=function(){var h=d.props,p=h.onEvents,g=h.onChartReady,v=d.renderEchartDom();d.bindEvents(v,p||{}),typeof g=="function"&&d.props.onChartReady(v),d.echartsElement&&(0,s.bind)(d.echartsElement,function(){try{v.resize()}catch(A){console.warn(A)}})},d.bindEvents=function(h,p){var g=function(x,b){typeof x=="string"&&typeof b=="function"&&h.on(x,function(w){b(w,h)})};for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&g(v,p[v])},d.renderEchartDom=function(){var h=d.getEchartsInstance();return h.setOption(d.props.option,d.props.notMerge||!1,d.props.lazyUpdate||!1),d.props.showLoading?h.showLoading(d.props.loadingOption||null):h.hideLoading(),h},d.echartsLib=c.echarts,d.echartsElement=null,d}return N(i,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(d){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(d,this.props))return;if(!(0,f.default)(d.theme,this.props.theme)||!(0,f.default)(d.opts,this.props.opts)||!(0,f.default)(d.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var h=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,f.default)((0,t.pick)(this.props,h),(0,t.pick)(d,h)))return;var p=this.renderEchartDom();if(!(0,f.default)(d.style,this.props.style)||!(0,f.default)(d.className,this.props.className))try{p.resize()}catch(g){console.warn(g)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var d=this,h=this.props,p=h.style,g=h.className,v=D({height:300},p);return E.default.createElement("div",{ref:function(x){d.echartsElement=x},style:v,className:"echarts-for-react "+g})}}]),i}(L.Component);z.default=e,e.propTypes={option:o.default.object.isRequired,echarts:o.default.object,notMerge:o.default.bool,lazyUpdate:o.default.bool,style:o.default.object,className:o.default.string,theme:o.default.oneOfType([o.default.string,o.default.object]),onChartReady:o.default.func,showLoading:o.default.bool,loadingOption:o.default.object,onEvents:o.default.object,opts:o.default.shape({devicePixelRatio:o.default.number,renderer:o.default.oneOf(["canvas","svg"]),width:o.default.oneOfType([o.default.number,o.default.oneOf([null,void 0,"auto"])]),height:o.default.oneOfType([o.default.number,o.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:o.default.func},e.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(fe,z,y){var D=y("bYtY"),N=y("IwbS"),L=y("Qxkt"),E=y("Znkb"),I=y("+rIm"),o=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function m(l,a,r){a[1]>a[0]&&(a=a.slice().reverse());var u=l.coordToPoint([a[0],r]),e=l.coordToPoint([a[1],r]);return{x1:u[0],y1:u[1],x2:e[0],y2:e[1]}}function f(l){var a=l.getRadiusAxis();return a.inverse?0:1}function s(l){var a=l[0],r=l[l.length-1];a&&r&&Math.abs(Math.abs(a.coord-r.coord)-360)<1e-4&&l.pop()}var t=E.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(l,a){if(this.group.removeAll(),!l.get("show"))return;var r=l.axis,u=r.polar,e=u.getRadiusAxis().getExtent(),n=r.getTicksCoords(),i=r.getMinorTicksCoords(),c=D.map(r.getViewLabels(),function(d){var d=D.clone(d);return d.coord=r.dataToCoord(d.tickValue),d});s(c),s(n),D.each(o,function(d){l.get(d+".show")&&(!r.scale.isBlank()||d==="axisLine")&&this["_"+d](l,u,n,i,e,c)},this)},_axisLine:function(l,a,r,u,e){var n=l.getModel("axisLine.lineStyle"),i=f(a),c=i?0:1,d;e[c]===0?d=new N.Circle({shape:{cx:a.cx,cy:a.cy,r:e[i]},style:n.getLineStyle(),z2:1,silent:!0}):d=new N.Ring({shape:{cx:a.cx,cy:a.cy,r:e[i],r0:e[c]},style:n.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,this.group.add(d)},_axisTick:function(l,a,r,u,e){var n=l.getModel("axisTick"),i=(n.get("inside")?-1:1)*n.get("length"),c=e[f(a)],d=D.map(r,function(h){return new N.Line({shape:m(a,[c,c+i],h.coord)})});this.group.add(N.mergePath(d,{style:D.defaults(n.getModel("lineStyle").getLineStyle(),{stroke:l.get("axisLine.lineStyle.color")})}))},_minorTick:function(l,a,r,u,e){if(!u.length)return;for(var n=l.getModel("axisTick"),i=l.getModel("minorTick"),c=(n.get("inside")?-1:1)*i.get("length"),d=e[f(a)],h=[],p=0;p<u.length;p++)for(var g=0;g<u[p].length;g++)h.push(new N.Line({shape:m(a,[d,d+c],u[p][g].coord)}));this.group.add(N.mergePath(h,{style:D.defaults(i.getModel("lineStyle").getLineStyle(),D.defaults(n.getLineStyle(),{stroke:l.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(l,a,r,u,e,n){var i=l.getCategories(!0),c=l.getModel("axisLabel"),d=c.get("margin"),h=l.get("triggerEvent");D.each(n,function(p,g){var v=c,A=p.tickValue,x=e[f(a)],b=a.coordToPoint([x+d,p.coord]),w=a.cx,S=a.cy,T=Math.abs(b[0]-w)/x<.3?"center":b[0]>w?"left":"right",C=Math.abs(b[1]-S)/x<.3?"middle":b[1]>S?"top":"bottom";i&&i[A]&&i[A].textStyle&&(v=new L(i[A].textStyle,c,c.ecModel));var O=new N.Text({silent:I.isLabelSilent(l)});this.group.add(O),N.setTextStyle(O.style,v,{x:b[0],y:b[1],textFill:v.getTextColor()||l.get("axisLine.lineStyle.color"),text:p.formattedLabel,textAlign:T,textVerticalAlign:C}),h&&(O.eventData=I.makeAxisEventDataBase(l),O.eventData.targetType="axisLabel",O.eventData.value=p.rawLabel)},this)},_splitLine:function(l,a,r,u,e){var n=l.getModel("splitLine"),i=n.getModel("lineStyle"),c=i.get("color"),d=0;c=c instanceof Array?c:[c];for(var h=[],p=0;p<r.length;p++){var g=d++%c.length;h[g]=h[g]||[],h[g].push(new N.Line({shape:m(a,e,r[p].coord)}))}for(var p=0;p<h.length;p++)this.group.add(N.mergePath(h[p],{style:D.defaults({stroke:c[p%c.length]},i.getLineStyle()),silent:!0,z:l.get("z")}))},_minorSplitLine:function(l,a,r,u,e){if(!u.length)return;for(var n=l.getModel("minorSplitLine"),i=n.getModel("lineStyle"),c=[],d=0;d<u.length;d++)for(var h=0;h<u[d].length;h++)c.push(new N.Line({shape:m(a,e,u[d][h].coord)}));this.group.add(N.mergePath(c,{style:i.getLineStyle(),silent:!0,z:l.get("z")}))},_splitArea:function(l,a,r,u,e){if(!r.length)return;var n=l.getModel("splitArea"),i=n.getModel("areaStyle"),c=i.get("color"),d=0;c=c instanceof Array?c:[c];for(var h=[],p=Math.PI/180,g=-r[0].coord*p,v=Math.min(e[0],e[1]),A=Math.max(e[0],e[1]),x=l.get("clockwise"),b=1;b<r.length;b++){var w=d++%c.length;h[w]=h[w]||[],h[w].push(new N.Sector({shape:{cx:a.cx,cy:a.cy,r0:v,r:A,startAngle:g,endAngle:-r[b].coord*p,clockwise:x},silent:!0})),g=-r[b].coord*p}for(var b=0;b<h.length;b++)this.group.add(N.mergePath(h[b],{style:D.defaults({fill:c[b%c.length]},i.getAreaStyle()),silent:!0}))}});fe.exports=t},tSko:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("SRve")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="PlusOutlined";var f=E.forwardRef(m);z.default=f},tceW:function(fe,z,y){var D=y("KCsZ"),N=D([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),L={getBarItemStyle:function(E){var I=N(this,E);if(this.getBorderLineDash){var o=this.getBorderLineDash();o&&(I.lineDash=o)}return I}};fe.exports=L},tkwv:function(fe,z,y){"use strict";var D=Array.isArray,N=Object.keys,L=Object.prototype.hasOwnProperty;fe.exports=function E(I,o){if(I===o)return!0;if(I&&o&&typeof I=="object"&&typeof o=="object"){var m=D(I),f=D(o),s,t,l;if(m&&f){if(t=I.length,t!=o.length)return!1;for(s=t;s--!==0;)if(!E(I[s],o[s]))return!1;return!0}if(m!=f)return!1;var a=I instanceof Date,r=o instanceof Date;if(a!=r)return!1;if(a&&r)return I.getTime()==o.getTime();var u=I instanceof RegExp,e=o instanceof RegExp;if(u!=e)return!1;if(u&&e)return I.toString()==o.toString();var n=N(I);if(t=n.length,t!==N(o).length)return!1;for(s=t;s--!==0;)if(!L.call(o,n[s]))return!1;for(s=t;s--!==0;)if(l=n[s],!E(I[l],o[l]))return!1;return!0}return I!==I&&o!==o}},txkQ:function(fe,z,y){var D=y("aX58");z.zrender=D;var N=y("Fofx");z.matrix=N;var L=y("QBsz");z.vector=L;var E=y("bYtY"),I=y("Qe9p");z.color=I;var o=y("IwbS"),m=y("OELB");z.number=m;var f=y("7aKB");z.format=f;var s=y("iLNv"),t=s.throttle;z.throttle=s.throttle;var l=y("FUi9");z.helper=l;var a=y("vafp");z.parseGeoJSON=a;var r=y("YXkt");z.List=r;var u=y("Qxkt");z.Model=u;var e=y("hM6l");z.Axis=e;var n=y("ItGF");z.env=n;var i=a,c={};E.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(h){c[h]=E[h]});var d={};E.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(h){d[h]=o[h]}),z.parseGeoJson=i,z.util=c,z.graphic=d},u3DP:function(fe,z,y){var D=y("6GrX"),N=y("OELB"),L=N.parsePercent,E=Math.PI/180;function I(s,t,l,a,r,u,e,n,i,c){s.sort(function(T,C){return T.y-C.y});function d(T,C,O,_){for(var M=T;M<C&&!(s[M].y+O>i+e);M++)if(s[M].y+=O,M>T&&M+1<C&&s[M+1].y>s[M].y+s[M].height){h(M,O/2);return}h(C-1,O/2)}function h(T,C){for(var O=T;O>=0&&!(s[O].y-C<i);O--)if(s[O].y-=C,O>0&&s[O].y>s[O-1].y+s[O-1].height)break}function p(T,C,O,_,M,k){for(var R=(k>0,C?Number.MAX_VALUE:0),B=0,P=T.length;B<P;B++){if(T[B].labelAlignTo!=="none")continue;var U=Math.abs(T[B].y-_),j=T[B].len,H=T[B].len2,W=U<M+j?Math.sqrt((M+j+H)*(M+j+H)-U*U):Math.abs(T[B].x-O);C&&W>=R&&(W=R-10),!C&&W<=R&&(W=R+10),T[B].x=O+W*k,R=W}}for(var g=0,v,A=s.length,x=[],b=[],w=0;w<A;w++){if(s[w].position==="outer"&&s[w].labelAlignTo==="labelLine"){var S=s[w].x-c;s[w].linePoints[1][0]+=S,s[w].x=c}v=s[w].y-g,v<0&&d(w,A,-v,r),g=s[w].y+s[w].height}e-g<0&&h(A-1,g-e);for(var w=0;w<A;w++)s[w].y>=l?b.push(s[w]):x.push(s[w]);p(x,!1,t,l,a,r),p(b,!0,t,l,a,r)}function o(s,t,l,a,r,u,e,n){for(var i=[],c=[],d=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<s.length;p++){if(m(s[p]))continue;s[p].x<t?(d=Math.min(d,s[p].x),i.push(s[p])):(h=Math.max(h,s[p].x),c.push(s[p]))}I(c,t,l,a,1,r,u,e,n,h),I(i,t,l,a,-1,r,u,e,n,d);for(var p=0;p<s.length;p++){var g=s[p];if(m(g))continue;var v=g.linePoints;if(v){var A=g.labelAlignTo==="edge",x=g.textRect.width,b;A?g.x<t?b=v[2][0]-g.labelDistance-e-g.labelMargin:b=e+r-g.labelMargin-v[2][0]-g.labelDistance:g.x<t?b=g.x-e-g.bleedMargin:b=e+r-g.x-g.bleedMargin,b<g.textRect.width&&(g.text=D.truncateText(g.text,b,g.font),g.labelAlignTo==="edge"&&(x=D.getWidth(g.text,g.font)));var w=v[1][0]-v[2][0];A?g.x<t?v[2][0]=e+g.labelMargin+x+g.labelDistance:v[2][0]=e+r-g.labelMargin-x-g.labelDistance:(g.x<t?v[2][0]=g.x+g.labelDistance:v[2][0]=g.x-g.labelDistance,v[1][0]=v[2][0]+w),v[1][1]=v[2][1]=g.y}}}function m(s){return s.position==="center"}function f(s,t,l,a,r,u){var e=s.getData(),n=[],i,c,d=!1,h=(s.get("minShowLabelAngle")||0)*E;e.each(function(p){var g=e.getItemLayout(p),v=e.getItemModel(p),A=v.getModel("label"),x=A.get("position")||v.get("emphasis.label.position"),b=A.get("distanceToLabelLine"),w=A.get("alignTo"),S=L(A.get("margin"),l),T=A.get("bleedMargin"),C=A.getFont(),O=v.getModel("labelLine"),_=O.get("length");_=L(_,l);var M=O.get("length2");if(M=L(M,l),g.angle<h)return;var k=(g.startAngle+g.endAngle)/2,R=Math.cos(k),B=Math.sin(k),P,U,j,H;i=g.cx,c=g.cy;var W=s.getFormattedLabel(p,"normal")||e.getName(p),G=D.getBoundingRect(W,C,H,"top"),V=x==="inside"||x==="inner";if(x==="center")P=g.cx,U=g.cy,H="center";else{var Z=(V?(g.r+g.r0)/2*R:g.r*R)+i,Y=(V?(g.r+g.r0)/2*B:g.r*B)+c;if(P=Z+R*3,U=Y+B*3,!V){var Q=Z+R*(_+t-g.r),oe=Y+B*(_+t-g.r),ue=Q+(R<0?-1:1)*M,Le=oe;w==="edge"?P=R<0?r+S:r+l-S:P=ue+(R<0?-b:b),U=Le,j=[[Z,Y],[Q,oe],[ue,Le]]}H=V?"center":w==="edge"?R>0?"right":"left":R>0?"left":"right"}var me,Ie=A.get("rotate");typeof Ie=="number"?me=Ie*(Math.PI/180):me=Ie?R<0?-k+Math.PI:-k:0,d=!!me,g.label={x:P,y:U,position:x,height:G.height,len:_,len2:M,linePoints:j,textAlign:H,verticalAlign:"middle",rotation:me,inside:V,labelDistance:b,labelAlignTo:w,labelMargin:S,bleedMargin:T,textRect:G,text:W,font:C},V||n.push(g.label)}),!d&&s.get("avoidLabelOverlap")&&o(n,i,c,t,l,a,r,u)}fe.exports=f},u3os:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.ver=z.clear=z.bind=void 0;var D=y("P4Qj"),N=function(o,m){var f=(0,D.getSensor)(o);return f.bind(m),function(){f.unbind(m)}};z.bind=N;var L=function(o){var m=(0,D.getSensor)(o);(0,D.removeSensor)(m)};z.clear=L;var E="1.0.1";z.ver=E},u4NN:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("Uc92")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="EyeOutlined";var f=E.forwardRef(m);z.default=f},u9fO:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("b80e"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},uAnK:function(fe,z,y){var D=y("bYtY"),N=y("Kagy"),L=y("KxfA"),E=L.retrieveRawValue;function I(o,m){var f=m.getModel("aria");if(f.get("show")){if(f.get("description")){o.setAttribute("aria-label",f.get("description"));return}}else return;var s=0;m.eachSeries(function(p,g){++s},this);var t=f.get("data.maxCount")||10,l=f.get("series.maxCount")||10,a=Math.min(s,l),r;if(s<1)return;var u=d();u?r=i(c("general.withTitle"),{title:u}):r=c("general.withoutTitle");var e=[],n=s>1?"series.multiple.prefix":"series.single.prefix";r+=i(c(n),{seriesCount:s}),m.eachSeries(function(p,g){if(g<a){var v,A=p.get("name"),x="series."+(s>1?"multiple":"single")+".";v=c(A?x+"withName":x+"withoutName"),v=i(v,{seriesId:p.seriesIndex,seriesName:p.get("name"),seriesType:h(p.subType)});var b=p.getData();window.data=b,b.count()>t?v+=i(c("data.partialData"),{displayCnt:t}):v+=c("data.allData");for(var w=[],S=0;S<b.count();S++)if(S<t){var T=b.getName(S),C=E(b,S);w.push(i(c(T?"data.withName":"data.withoutName"),{name:T,value:C}))}v+=w.join(c("data.separator.middle"))+c("data.separator.end"),e.push(v)}}),r+=e.join(c("series.multiple.separator.middle"))+c("series.multiple.separator.end"),o.setAttribute("aria-label",r);function i(p,g){if(typeof p!="string")return p;var v=p;return D.each(g,function(A,x){v=v.replace(new RegExp("\\{\\s*"+x+"\\s*\\}","g"),A)}),v}function c(p){var g=f.get(p);if(g==null){for(var v=p.split("."),A=N.aria,x=0;x<v.length;++x)A=A[v[x]];return A}else return g}function d(){var p=m.getModel("title").option;return p&&p.length&&(p=p[0]),p&&p.text}function h(p){return N.series.typeNames[p]||"\u81EA\u5B9A\u4E49\u56FE"}}fe.exports=I},uGsb:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("MlIO"),y("1uat"))})(this,function(D){return function(){var N=D,L=N.x64,E=L.Word,I=L.WordArray,o=N.algo,m=o.SHA512,f=o.SHA384=m.extend({_doReset:function(){this._hash=new I.init([new E.init(3418070365,3238371032),new E.init(1654270250,914150663),new E.init(2438529370,812702999),new E.init(355462360,4144912697),new E.init(1731405415,4290775857),new E.init(2394180231,1750603025),new E.init(3675008525,1694076839),new E.init(1203062813,3204075428)])},_doFinalize:function(){var t=m._doFinalize.call(this);return t.sigBytes-=16,t}});N.SHA384=m._createHelper(f),N.HmacSHA384=m._createHmacHelper(f)}(),D.SHA384})},uGxW:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("OLod"))})(this,function(D){return D.pad.NoPadding={pad:function(){},unpad:function(){}},D.pad.NoPadding})},uK0f:function(fe,z,y){(function(D,N){fe.exports=N()})(this,function(){"use strict";function D(N,L,E){E=E||{},E.childrenKeyName=E.childrenKeyName||"children";var I=N||[],o=[],m=0;do{var f=I.filter(function(s){return L(s,m)})[0];if(!f)break;o.push(f),I=f[E.childrenKeyName]||[],m+=1}while(I.length>0);return o}return D})},uOyE:function(fe,z,y){var D=y("ProS");D.registerAction({type:"brush",event:"brush"},function(N,L){L.eachComponent({mainType:"brush",query:N},function(E){E.setAreas(N.areas)})}),D.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),D.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(fe,z,y){fe.exports=D;function D(){return y("gaXo"),{}}},ugBc:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},ulZh:function(fe,z,y){typeof window!="undefined"&&function(N,L){fe.exports=L()}(this,function(){return function(D){var N={};function L(E){if(N[E])return N[E].exports;var I=N[E]={i:E,l:!1,exports:{}};return D[E].call(I.exports,I,I.exports,L),I.l=!0,I.exports}return L.m=D,L.c=N,L.d=function(E,I,o){L.o(E,I)||Object.defineProperty(E,I,{enumerable:!0,get:o})},L.r=function(E){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},L.t=function(E,I){if(I&1&&(E=L(E)),I&8)return E;if(I&4&&typeof E=="object"&&E&&E.__esModule)return E;var o=Object.create(null);if(L.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:E}),I&2&&typeof E!="string")for(var m in E)L.d(o,m,function(f){return E[f]}.bind(null,m));return o},L.n=function(E){var I=E&&E.__esModule?function(){return E.default}:function(){return E};return L.d(I,"a",I),I},L.o=function(E,I){return Object.prototype.hasOwnProperty.call(E,I)},L.p="/dist/",L(L.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(N,L,E){"use strict";var I=Object.prototype.hasOwnProperty,o="~";function m(){}Object.create&&(m.prototype=Object.create(null),new m().__proto__||(o=!1));function f(a,r,u){this.fn=a,this.context=r,this.once=u||!1}function s(a,r,u,e,n){if(typeof u!="function")throw new TypeError("The listener must be a function");var i=new f(u,e||a,n),c=o?o+r:r;return a._events[c]?a._events[c].fn?a._events[c]=[a._events[c],i]:a._events[c].push(i):(a._events[c]=i,a._eventsCount++),a}function t(a,r){--a._eventsCount===0?a._events=new m:delete a._events[r]}function l(){this._events=new m,this._eventsCount=0}l.prototype.eventNames=function(){var r=[],u,e;if(this._eventsCount===0)return r;for(e in u=this._events)I.call(u,e)&&r.push(o?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(u)):r},l.prototype.listeners=function(r){var u=o?o+r:r,e=this._events[u];if(!e)return[];if(e.fn)return[e.fn];for(var n=0,i=e.length,c=new Array(i);n<i;n++)c[n]=e[n].fn;return c},l.prototype.listenerCount=function(r){var u=o?o+r:r,e=this._events[u];return e?e.fn?1:e.length:0},l.prototype.emit=function(r,u,e,n,i,c){var d=o?o+r:r;if(!this._events[d])return!1;var h=this._events[d],p=arguments.length,g,v;if(h.fn){h.once&&this.removeListener(r,h.fn,void 0,!0);switch(p){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,u),!0;case 3:return h.fn.call(h.context,u,e),!0;case 4:return h.fn.call(h.context,u,e,n),!0;case 5:return h.fn.call(h.context,u,e,n,i),!0;case 6:return h.fn.call(h.context,u,e,n,i,c),!0}for(v=1,g=new Array(p-1);v<p;v++)g[v-1]=arguments[v];h.fn.apply(h.context,g)}else{var A=h.length,x;for(v=0;v<A;v++){h[v].once&&this.removeListener(r,h[v].fn,void 0,!0);switch(p){case 1:h[v].fn.call(h[v].context);break;case 2:h[v].fn.call(h[v].context,u);break;case 3:h[v].fn.call(h[v].context,u,e);break;case 4:h[v].fn.call(h[v].context,u,e,n);break;default:if(!g)for(x=1,g=new Array(p-1);x<p;x++)g[x-1]=arguments[x];h[v].fn.apply(h[v].context,g)}}}return!0},l.prototype.on=function(r,u,e){return s(this,r,u,e,!1)},l.prototype.once=function(r,u,e){return s(this,r,u,e,!0)},l.prototype.removeListener=function(r,u,e,n){var i=o?o+r:r;if(!this._events[i])return this;if(!u)return t(this,i),this;var c=this._events[i];if(c.fn)c.fn===u&&(!n||c.once)&&(!e||c.context===e)&&t(this,i);else{for(var d=0,h=[],p=c.length;d<p;d++)(c[d].fn!==u||n&&!c[d].once||e&&c[d].context!==e)&&h.push(c[d]);h.length?this._events[i]=h.length===1?h[0]:h:t(this,i)}return this},l.prototype.removeAllListeners=function(r){var u;return r?(u=o?o+r:r,this._events[u]&&t(this,u)):(this._events=new m,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=o,l.EventEmitter=l,N.exports=l},"./node_modules/url-toolkit/src/url-toolkit.js":function(N,L,E){(function(I){var o=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,m=/^([^\/?#]*)([^]*)$/,f=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,t={buildAbsoluteURL:function(a,r,u){if(u=u||{},a=a.trim(),r=r.trim(),!r){if(!u.alwaysNormalize)return a;var e=t.parseURL(a);if(!e)throw new Error("Error trying to parse base URL.");return e.path=t.normalizePath(e.path),t.buildURLFromParts(e)}var n=t.parseURL(r);if(!n)throw new Error("Error trying to parse relative URL.");if(n.scheme)return u.alwaysNormalize?(n.path=t.normalizePath(n.path),t.buildURLFromParts(n)):r;var i=t.parseURL(a);if(!i)throw new Error("Error trying to parse base URL.");if(!i.netLoc&&i.path&&i.path[0]!=="/"){var c=m.exec(i.path);i.netLoc=c[1],i.path=c[2]}i.netLoc&&!i.path&&(i.path="/");var d={scheme:i.scheme,netLoc:n.netLoc,path:null,params:n.params,query:n.query,fragment:n.fragment};if(!n.netLoc&&(d.netLoc=i.netLoc,n.path[0]!=="/"))if(!n.path)d.path=i.path,n.params||(d.params=i.params,n.query||(d.query=i.query));else{var h=i.path,p=h.substring(0,h.lastIndexOf("/")+1)+n.path;d.path=t.normalizePath(p)}return d.path===null&&(d.path=u.alwaysNormalize?t.normalizePath(n.path):n.path),t.buildURLFromParts(d)},parseURL:function(a){var r=o.exec(a);return r?{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}:null},normalizePath:function(a){for(a=a.split("").reverse().join("").replace(f,"");a.length!==(a=a.replace(s,"")).length;);return a.split("").reverse().join("")},buildURLFromParts:function(a){return a.scheme+a.netLoc+a.path+a.params+a.query+a.fragment}};N.exports=t})(this)},"./node_modules/webworkify-webpack/index.js":function(N,L,E){function I(r){var u={};function e(i){if(u[i])return u[i].exports;var c=u[i]={i,l:!1,exports:{}};return r[i].call(c.exports,c,c.exports,e),c.l=!0,c.exports}e.m=r,e.c=u,e.i=function(i){return i},e.d=function(i,c,d){e.o(i,c)||Object.defineProperty(i,c,{configurable:!1,enumerable:!0,get:d})},e.r=function(i){Object.defineProperty(i,"__esModule",{value:!0})},e.n=function(i){var c=i&&i.__esModule?function(){return i.default}:function(){return i};return e.d(c,"a",c),c},e.o=function(i,c){return Object.prototype.hasOwnProperty.call(i,c)},e.p="/",e.oe=function(i){throw console.error(i),i};var n=e(e.s=ENTRY_MODULE);return n.default||n}var o="[\\.|\\-|\\+|\\w|/|@]+",m="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+o+").*?\\)";function f(r){return(r+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function s(r){return!isNaN(1*r)}function t(r,u,e){var n={};n[e]=[];var i=u.toString(),c=i.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!c)return n;for(var d=c[1],h=new RegExp("(\\\\n|\\W)"+f(d)+m,"g"),p;p=h.exec(i);){if(p[3]==="dll-reference")continue;n[e].push(p[3])}for(h=new RegExp("\\("+f(d)+'\\("(dll-reference\\s('+o+'))"\\)\\)'+m,"g");p=h.exec(i);)r[p[2]]||(n[e].push(p[1]),r[p[2]]=E(p[1]).m),n[p[2]]=n[p[2]]||[],n[p[2]].push(p[4]);for(var g=Object.keys(n),v=0;v<g.length;v++)for(var A=0;A<n[g[v]].length;A++)s(n[g[v]][A])&&(n[g[v]][A]=1*n[g[v]][A]);return n}function l(r){var u=Object.keys(r);return u.reduce(function(e,n){return e||r[n].length>0},!1)}function a(r,u){for(var e={main:[u]},n={main:[]},i={main:{}};l(e);)for(var c=Object.keys(e),d=0;d<c.length;d++){var h=c[d],p=e[h],g=p.pop();if(i[h]=i[h]||{},i[h][g]||!r[h][g])continue;i[h][g]=!0,n[h]=n[h]||[],n[h].push(g);for(var v=t(r,r[h][g],h),A=Object.keys(v),x=0;x<A.length;x++)e[A[x]]=e[A[x]]||[],e[A[x]]=e[A[x]].concat(v[A[x]])}return n}N.exports=function(r,u){u=u||{};var e={main:E.m},n=u.all?{main:Object.keys(e.main)}:a(e,r),i="";Object.keys(n).filter(function(g){return g!=="main"}).forEach(function(g){for(var v=0;n[g][v];)v++;n[g].push(v),e[g][v]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",i=i+"var "+g+" = ("+I.toString().replace("ENTRY_MODULE",JSON.stringify(v))+")({"+n[g].map(function(A){return""+JSON.stringify(A)+": "+e[g][A].toString()}).join(",")+`});
|
|
|
`}),i=i+"new (("+I.toString().replace("ENTRY_MODULE",JSON.stringify(r))+")({"+n.main.map(function(g){return""+JSON.stringify(g)+": "+e.main[g].toString()}).join(",")+"}))(self);";var c=new window.Blob([i],{type:"text/javascript"});if(u.bare)return c;var d=window.URL||window.webkitURL||window.mozURL||window.msURL,h=d.createObjectURL(c),p=new window.Worker(h);return p.objectURL=h,p}},"./src/config.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"hlsDefaultConfig",function(){return x}),E.d(L,"mergeConfig",function(){return w}),E.d(L,"enableStreamingMode",function(){return S});var I=E("./src/controller/abr-controller.ts"),o=E("./src/controller/audio-stream-controller.ts"),m=E("./src/controller/audio-track-controller.ts"),f=E("./src/controller/subtitle-stream-controller.ts"),s=E("./src/controller/subtitle-track-controller.ts"),t=E("./src/controller/buffer-controller.ts"),l=E("./src/controller/timeline-controller.ts"),a=E("./src/controller/cap-level-controller.ts"),r=E("./src/controller/fps-controller.ts"),u=E("./src/controller/eme-controller.ts"),e=E("./src/controller/cmcd-controller.ts"),n=E("./src/utils/xhr-loader.ts"),i=E("./src/utils/fetch-loader.ts"),c=E("./src/utils/cues.ts"),d=E("./src/utils/mediakeys-helper.ts"),h=E("./src/utils/logger.ts");function p(){return p=Object.assign||function(T){for(var C=1;C<arguments.length;C++){var O=arguments[C];for(var _ in O)Object.prototype.hasOwnProperty.call(O,_)&&(T[_]=O[_])}return T},p.apply(this,arguments)}function g(T,C){var O=Object.keys(T);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(T);C&&(_=_.filter(function(M){return Object.getOwnPropertyDescriptor(T,M).enumerable})),O.push.apply(O,_)}return O}function v(T){for(var C=1;C<arguments.length;C++){var O=arguments[C]!=null?arguments[C]:{};C%2?g(Object(O),!0).forEach(function(_){A(T,_,O[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(O)):g(Object(O)).forEach(function(_){Object.defineProperty(T,_,Object.getOwnPropertyDescriptor(O,_))})}return T}function A(T,C,O){return C in T?Object.defineProperty(T,C,{value:O,enumerable:!0,configurable:!0,writable:!0}):T[C]=O,T}var x=v(v({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:n.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:I.default,bufferController:t.default,capLevelController:a.default,fpsController:r.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:d.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},b()),{},{subtitleStreamController:f.SubtitleStreamController,subtitleTrackController:s.default,timelineController:l.TimelineController,audioStreamController:o.default,audioTrackController:m.default,emeController:u.default,cmcdController:e.default});function b(){return{cueHandler:c.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 w(T,C){if((C.liveSyncDurationCount||C.liveMaxLatencyDurationCount)&&(C.liveSyncDuration||C.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(C.liveMaxLatencyDurationCount!==void 0&&(C.liveSyncDurationCount===void 0||C.liveMaxLatencyDurationCount<=C.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(C.liveMaxLatencyDuration!==void 0&&(C.liveSyncDuration===void 0||C.liveMaxLatencyDuration<=C.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return p({},T,C)}function S(T){var C=T.loader;if(C!==i.default&&C!==n.default)h.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),T.progressive=!1;else{var O=Object(i.fetchSupported)();O&&(T.loader=i.default,T.progressive=!0,T.enableSoftwareAES=!0,h.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/polyfills/number.ts"),o=E("./src/utils/ewma-bandwidth-estimator.ts"),m=E("./src/events.ts"),f=E("./src/utils/buffer-helper.ts"),s=E("./src/errors.ts"),t=E("./src/types/loader.ts"),l=E("./src/utils/logger.ts");function a(e,n){for(var i=0;i<n.length;i++){var c=n[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function r(e,n,i){return n&&a(e.prototype,n),i&&a(e,i),e}var u=function(){function e(i){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=i;var c=i.config;this.bwEstimator=new o.default(c.abrEwmaSlowVoD,c.abrEwmaFastVoD,c.abrEwmaDefaultEstimate),this.registerListeners()}var n=e.prototype;return n.registerListeners=function(){var c=this.hls;c.on(m.Events.FRAG_LOADING,this.onFragLoading,this),c.on(m.Events.FRAG_LOADED,this.onFragLoaded,this),c.on(m.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.on(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),c.on(m.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){var c=this.hls;c.off(m.Events.FRAG_LOADING,this.onFragLoading,this),c.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),c.off(m.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.off(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),c.off(m.Events.ERROR,this.onError,this)},n.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},n.onFragLoading=function(c,d){var h=d.frag;if(h.type===t.PlaylistLevelType.MAIN&&!this.timer){var p;this.fragCurrent=h,this.partCurrent=(p=d.part)!=null?p:null,this.timer=self.setInterval(this.onCheck,100)}},n.onLevelLoaded=function(c,d){var h=this.hls.config;d.details.live?this.bwEstimator.update(h.abrEwmaSlowLive,h.abrEwmaFastLive):this.bwEstimator.update(h.abrEwmaSlowVoD,h.abrEwmaFastVoD)},n._abandonRulesCheck=function(){var c=this.fragCurrent,d=this.partCurrent,h=this.hls,p=h.autoLevelEnabled,g=h.config,v=h.media;if(!c||!v)return;var A=d?d.stats:c.stats,x=d?d.duration:c.duration;if(A.aborted){l.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!p||v.paused||!v.playbackRate||!v.readyState)return;var b=performance.now()-A.loading.start,w=Math.abs(v.playbackRate);if(b<=500*x/w)return;var S=h.levels,T=h.minAutoLevel,C=S[c.level],O=A.total||Math.max(A.loaded,Math.round(x*C.maxBitrate/8)),_=Math.max(1,A.bwEstimate?A.bwEstimate/8:A.loaded*1e3/b),M=(O-A.loaded)/_,k=v.currentTime,R=(f.BufferHelper.bufferInfo(v,k,g.maxBufferHole).end-k)/w;if(R>=2*x/w||M<=R)return;var B=Number.POSITIVE_INFINITY,P;for(P=c.level-1;P>T;P--){var U=S[P].maxBitrate;if(B=x*U/(8*.8*_),B<R)break}if(B>=M)return;var j=this.bwEstimator.getEstimate();l.logger.warn("Fragment "+c.sn+(d?" part "+d.index:"")+" of level "+c.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+P+`
|
|
|
Current BW estimate: `+(Object(I.isFiniteNumber)(j)?(j/1024).toFixed(3):"Unknown")+` Kb/s
|
|
|
Estimated load time for current fragment: `+M.toFixed(3)+` s
|
|
|
Estimated load time for the next fragment: `+B.toFixed(3)+` s
|
|
|
Time to underbuffer: `+R.toFixed(3)+" s"),h.nextLoadLevel=P,this.bwEstimator.sample(b,A.loaded),this.clearTimer(),c.loader&&(this.fragCurrent=this.partCurrent=null,c.loader.abort()),h.trigger(m.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:c,part:d,stats:A})},n.onFragLoaded=function(c,d){var h=d.frag,p=d.part;if(h.type===t.PlaylistLevelType.MAIN&&Object(I.isFiniteNumber)(h.sn)){var g=p?p.stats:h.stats,v=p?p.duration:h.duration;if(this.clearTimer(),this.lastLoadedFragLevel=h.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var A=this.hls.levels[h.level],x=(A.loaded?A.loaded.bytes:0)+g.loaded,b=(A.loaded?A.loaded.duration:0)+v;A.loaded={bytes:x,duration:b},A.realBitrate=Math.round(8*x/b)}if(h.bitrateTest){var w={stats:g,frag:h,part:p,id:h.type};this.onFragBuffered(m.Events.FRAG_BUFFERED,w),h.bitrateTest=!1}}},n.onFragBuffered=function(c,d){var h=d.frag,p=d.part,g=p?p.stats:h.stats;if(g.aborted)return;if(h.type!==t.PlaylistLevelType.MAIN||h.sn==="initSegment")return;var v=g.parsing.end-g.loading.start;this.bwEstimator.sample(v,g.loaded),g.bwEstimate=this.bwEstimator.getEstimate(),h.bitrateTest?this.bitrateTestDelay=v/1e3:this.bitrateTestDelay=0},n.onError=function(c,d){switch(d.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},n.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},n.getNextABRAutoLevel=function(){var c=this.fragCurrent,d=this.partCurrent,h=this.hls,p=h.maxAutoLevel,g=h.config,v=h.minAutoLevel,A=h.media,x=d?d.duration:c?c.duration:0,b=A?A.currentTime:0,w=A&&A.playbackRate!==0?Math.abs(A.playbackRate):1,S=this.bwEstimator?this.bwEstimator.getEstimate():g.abrEwmaDefaultEstimate,T=(f.BufferHelper.bufferInfo(A,b,g.maxBufferHole).end-b)/w,C=this.findBestLevel(S,v,p,T,g.abrBandWidthFactor,g.abrBandWidthUpFactor);if(C>=0)return C;l.logger.trace((T?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var O=x?Math.min(x,g.maxStarvationDelay):g.maxStarvationDelay,_=g.abrBandWidthFactor,M=g.abrBandWidthUpFactor;if(!T){var k=this.bitrateTestDelay;if(k){var R=x?Math.min(x,g.maxLoadingDelay):g.maxLoadingDelay;O=R-k,l.logger.trace("bitrate test took "+Math.round(1e3*k)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*O)+" ms"),_=M=1}}return C=this.findBestLevel(S,v,p,T+O,_,M),Math.max(C,0)},n.findBestLevel=function(c,d,h,p,g,v){for(var A,x=this.fragCurrent,b=this.partCurrent,w=this.lastLoadedFragLevel,S=this.hls.levels,T=S[w],C=!!(T!=null&&(A=T.details)!==null&&A!==void 0&&A.live),O=T==null?void 0:T.codecSet,_=b?b.duration:x?x.duration:0,M=h;M>=d;M--){var k=S[M];if(!k||O&&k.codecSet!==O)continue;var R=k.details,B=(b?R==null?void 0:R.partTarget:R==null?void 0:R.averagetargetduration)||_,P=void 0;M<=w?P=g*c:P=v*c;var U=S[M].maxBitrate,j=U*B/P;if(l.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+M+"/"+Math.round(P)+"/"+U+"/"+B+"/"+p+"/"+j),P>U&&(!j||C&&!this.bitrateTestDelay||j<p))return M}return-1},r(e,[{key:"nextAutoLevel",get:function(){var c=this._nextAutoLevel,d=this.bwEstimator;if(c!==-1&&(!d||!d.canEstimate()))return c;var h=this.getNextABRAutoLevel();return c!==-1&&(h=Math.min(c,h)),h},set:function(c){this._nextAutoLevel=c}}]),e}();L.default=u},"./src/controller/audio-stream-controller.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/polyfills/number.ts"),o=E("./src/controller/base-stream-controller.ts"),m=E("./src/events.ts"),f=E("./src/utils/buffer-helper.ts"),s=E("./src/controller/fragment-tracker.ts"),t=E("./src/types/level.ts"),l=E("./src/types/loader.ts"),a=E("./src/loader/fragment.ts"),r=E("./src/demux/chunk-cache.ts"),u=E("./src/demux/transmuxer-interface.ts"),e=E("./src/types/transmuxer.ts"),n=E("./src/controller/fragment-finders.ts"),i=E("./src/utils/discontinuities.ts"),c=E("./src/errors.ts"),d=E("./src/utils/logger.ts");function h(){return h=Object.assign||function(x){for(var b=1;b<arguments.length;b++){var w=arguments[b];for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(x[S]=w[S])}return x},h.apply(this,arguments)}function p(x,b){x.prototype=Object.create(b.prototype),x.prototype.constructor=x,g(x,b)}function g(x,b){return g=Object.setPrototypeOf||function(S,T){return S.__proto__=T,S},g(x,b)}var v=100,A=function(x){p(b,x);function b(S,T){var C;return C=x.call(this,S,T,"[audio-stream-controller]")||this,C.videoBuffer=null,C.videoTrackCC=-1,C.waitingVideoCC=-1,C.audioSwitch=!1,C.trackId=-1,C.waitingData=null,C.mainDetails=null,C.bufferFlushed=!1,C._registerListeners(),C}var w=b.prototype;return w.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},w._registerListeners=function(){var T=this.hls;T.on(m.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),T.on(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),T.on(m.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),T.on(m.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),T.on(m.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),T.on(m.Events.ERROR,this.onError,this),T.on(m.Events.BUFFER_RESET,this.onBufferReset,this),T.on(m.Events.BUFFER_CREATED,this.onBufferCreated,this),T.on(m.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),T.on(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),T.on(m.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w._unregisterListeners=function(){var T=this.hls;T.off(m.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),T.off(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),T.off(m.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),T.off(m.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),T.off(m.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),T.off(m.Events.ERROR,this.onError,this),T.off(m.Events.BUFFER_RESET,this.onBufferReset,this),T.off(m.Events.BUFFER_CREATED,this.onBufferCreated,this),T.off(m.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),T.off(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),T.off(m.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w.onInitPtsFound=function(T,C){var O=C.frag,_=C.id,M=C.initPTS;if(_==="main"){var k=O.cc;this.initPTS[O.cc]=M,this.log("InitPTS for cc: "+k+" found from main: "+M),this.videoTrackCC=k,this.state===o.State.WAITING_INIT_PTS&&this.tick()}},w.startLoad=function(T){if(!this.levels){this.startPosition=T,this.state=o.State.STOPPED;return}var C=this.lastCurrentTime;this.stopLoad(),this.setInterval(v),this.fragLoadError=0,C>0&&T===-1?(this.log("Override startPosition with lastCurrentTime @"+C.toFixed(3)),this.state=o.State.IDLE):(this.loadedmetadata=!1,this.state=o.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=T,this.tick()},w.doTick=function(){switch(this.state){case o.State.IDLE:this.doTickIdle();break;case o.State.WAITING_TRACK:{var T,C=this.levels,O=this.trackId,_=C==null||((T=C[O])===null||T===void 0)?void 0:T.details;if(_){if(this.waitForCdnTuneIn(_))break;this.state=o.State.WAITING_INIT_PTS}break}case o.State.FRAG_LOADING_WAITING_RETRY:{var M,k=performance.now(),R=this.retryDate;(!R||k>=R||(M=this.media)!==null&&M!==void 0&&M.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=o.State.IDLE);break}case o.State.WAITING_INIT_PTS:{var B=this.waitingData;if(B){var P=B.frag,U=B.part,j=B.cache,H=B.complete;if(this.initPTS[P.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=o.State.FRAG_LOADING;var W=j.flush(),G={frag:P,part:U,payload:W,networkDetails:null};this._handleFragmentLoadProgress(G),H&&x.prototype._handleFragmentLoadComplete.call(this,G)}else if(this.videoTrackCC!==this.waitingVideoCC)d.logger.log("Waiting fragment cc ("+P.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var V=this.getLoadPosition(),Z=f.BufferHelper.bufferInfo(this.mediaBuffer,V,this.config.maxBufferHole),Y=Object(n.fragmentWithinToleranceTest)(Z.end,this.config.maxFragLookUpTolerance,P);Y<0&&(d.logger.log("Waiting fragment cc ("+P.cc+") @ "+P.start+" cancelled because another fragment at "+Z.end+" is needed"),this.clearWaitingFragment())}}else this.state=o.State.IDLE}}this.onTickEnd()},w.clearWaitingFragment=function(){var T=this.waitingData;T&&(this.fragmentTracker.removeFragment(T.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=o.State.IDLE)},w.onTickEnd=function(){var T=this.media;if(!T||!T.readyState)return;var C=this.mediaBuffer?this.mediaBuffer:T,O=C.buffered;!this.loadedmetadata&&O.length&&(this.loadedmetadata=!0),this.lastCurrentTime=T.currentTime},w.doTickIdle=function(){var T,C,O=this.hls,_=this.levels,M=this.media,k=this.trackId,R=O.config;if(!_||!_[k])return;if(!M&&(this.startFragRequested||!R.startFragPrefetch))return;var B=_[k],P=B.details;if(!P||P.live&&this.levelLastLoaded!==k||this.waitForCdnTuneIn(P)){this.state=o.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,a.ElementaryStreamTypes.AUDIO,l.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,l.PlaylistLevelType.AUDIO);if(U===null)return;var j=U.len,H=this.getMaxBufferLength(),W=this.audioSwitch;if(j>=H&&!W)return;if(!W&&this._streamEnded(U,P)){O.trigger(m.Events.BUFFER_EOS,{type:"audio"}),this.state=o.State.ENDED;return}var G=P.fragments,V=G[0].start,Z=U.end;if(W){var Y=this.getLoadPosition();Z=Y,P.PTSKnown&&Y<V&&((U.end>V||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),M.currentTime=V+.05))}var Q=this.getNextFragment(Z,P);if(!Q){this.bufferFlushed=!0;return}((T=Q.decryptdata)===null||T===void 0?void 0:T.keyFormat)==="identity"&&!((C=Q.decryptdata)!==null&&C!==void 0&&C.key)?this.loadKey(Q,P):this.loadFragment(Q,P,Z)},w.getMaxBufferLength=function(){var T=x.prototype.getMaxBufferLength.call(this),C=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,l.PlaylistLevelType.MAIN);return C===null?T:Math.max(T,C.len)},w.onMediaDetaching=function(){this.videoBuffer=null,x.prototype.onMediaDetaching.call(this)},w.onAudioTracksUpdated=function(T,C){var O=C.audioTracks;this.resetTransmuxer(),this.levels=O.map(function(_){return new t.Level(_)})},w.onAudioTrackSwitching=function(T,C){var O=!!C.url;this.trackId=C.id;var _=this.fragCurrent;_!=null&&_.loader&&_.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),O?this.setInterval(v):this.resetTransmuxer(),O?(this.audioSwitch=!0,this.state=o.State.IDLE):this.state=o.State.STOPPED,this.tick()},w.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},w.onLevelLoaded=function(T,C){this.mainDetails=C.details},w.onAudioTrackLoaded=function(T,C){var O,_=this.levels,M=C.details,k=C.id;if(!_){this.warn("Audio tracks were reset while loading level "+k);return}this.log("Track "+k+" loaded ["+M.startSN+","+M.endSN+"],duration:"+M.totalduration);var R=_[k],B=0;if(M.live||(O=R.details)!==null&&O!==void 0&&O.live){var P=this.mainDetails;if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed||!P)return;!R.details&&M.hasProgramDateTime&&P.hasProgramDateTime?(Object(i.alignMediaPlaylistByPDT)(M,P),B=M.fragments[0].start):B=this.alignPlaylists(M,R.details)}R.details=M,this.levelLastLoaded=k,!this.startFragRequested&&(this.mainDetails||!M.live)&&this.setStartPosition(R.details,B),this.state===o.State.WAITING_TRACK&&!this.waitForCdnTuneIn(M)&&(this.state=o.State.IDLE),this.tick()},w._handleFragmentLoadProgress=function(T){var C,O=T.frag,_=T.part,M=T.payload,k=this.config,R=this.trackId,B=this.levels;if(!B){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+O.sn+" of level "+O.level+" will not be buffered");return}var P=B[R];console.assert(P,"Audio track is defined on fragment load progress");var U=P.details;console.assert(U,"Audio track details are defined on fragment load progress");var j=k.defaultAudioCodec||P.audioCodec||"mp4a.40.2",H=this.transmuxer;H||(H=this.transmuxer=new u.default(this.hls,l.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var W=this.initPTS[O.cc],G=(C=O.initSegment)===null||C===void 0?void 0:C.data;if(W!==void 0){var V=!1,Z=_?_.index:-1,Y=Z!==-1,Q=new e.ChunkMetadata(O.level,O.sn,O.stats.chunkCount,M.byteLength,Z,Y);H.push(M,G,j,"",O,_,U.totalduration,V,Q,W)}else{d.logger.log("Unknown video PTS for cc "+O.cc+", waiting for video PTS before demuxing audio frag "+O.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+R);var oe=this.waitingData=this.waitingData||{frag:O,part:_,cache:new r.default,complete:!1},ue=oe.cache;ue.push(new Uint8Array(M)),this.waitingVideoCC=this.videoTrackCC,this.state=o.State.WAITING_INIT_PTS}},w._handleFragmentLoadComplete=function(T){if(this.waitingData){this.waitingData.complete=!0;return}x.prototype._handleFragmentLoadComplete.call(this,T)},w.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},w.onBufferCreated=function(T,C){var O=C.tracks.audio;O&&(this.mediaBuffer=O.buffer),C.tracks.video&&(this.videoBuffer=C.tracks.video.buffer)},w.onFragBuffered=function(T,C){var O=C.frag,_=C.part;if(O.type!==l.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(O)){this.warn("Fragment "+O.sn+(_?" p: "+_.index:"")+" of level "+O.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}O.sn!=="initSegment"&&(this.fragPrevious=O,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(m.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(O,_)},w.onError=function(T,C){switch(C.details){case c.ErrorDetails.FRAG_LOAD_ERROR:case c.ErrorDetails.FRAG_LOAD_TIMEOUT:case c.ErrorDetails.KEY_LOAD_ERROR:case c.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(l.PlaylistLevelType.AUDIO,C);break;case c.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case c.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==o.State.ERROR&&this.state!==o.State.STOPPED&&(this.state=C.fatal?o.State.ERROR:o.State.IDLE,this.warn(C.details+" while loading frag, switching to "+this.state+" state"));break;case c.ErrorDetails.BUFFER_FULL_ERROR:if(C.parent==="audio"&&(this.state===o.State.PARSING||this.state===o.State.PARSED)){var O=!0,_=this.getFwdBufferInfo(this.mediaBuffer,l.PlaylistLevelType.AUDIO);_&&_.len>.5&&(O=!this.reduceMaxBufferLength(_.len)),O&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,x.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},w.onBufferFlushed=function(T,C){var O=C.type;O===a.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},w._handleTransmuxComplete=function(T){var C,O="audio",_=this.hls,M=T.remuxResult,k=T.chunkMeta,R=this.getCurrentContext(k);if(!R){this.warn("The loading context changed while buffering fragment "+k.sn+" of level "+k.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(k.level);return}var B=R.frag,P=R.part,U=M.audio,j=M.text,H=M.id3,W=M.initSegment;if(this.fragContextChanged(B))return;if(this.state=o.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),W!=null&&W.tracks&&(this._bufferInitSegment(W.tracks,B,k),_.trigger(m.Events.FRAG_PARSING_INIT_SEGMENT,{frag:B,id:O,tracks:W.tracks})),U){var G=U.startPTS,V=U.endPTS,Z=U.startDTS,Y=U.endDTS;P&&(P.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:G,endPTS:V,startDTS:Z,endDTS:Y}),B.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,G,V,Z,Y),this.bufferFragmentData(U,B,P,k)}if(H!=null&&(C=H.samples)!==null&&C!==void 0&&C.length){var Q=h({frag:B,id:O},H);_.trigger(m.Events.FRAG_PARSING_METADATA,Q)}if(j){var oe=h({frag:B,id:O},j);_.trigger(m.Events.FRAG_PARSING_USERDATA,oe)}},w._bufferInitSegment=function(T,C,O){if(this.state!==o.State.PARSING)return;T.video&&delete T.video;var _=T.audio;if(!_)return;_.levelCodec=_.codec,_.id="audio",this.log("Init audio buffer, container:"+_.container+", codecs[parsed]=["+_.codec+"]"),this.hls.trigger(m.Events.BUFFER_CODECS,T);var M=_.initSegment;if(M!=null&&M.byteLength){var k={type:"audio",frag:C,part:null,chunkMeta:O,parent:C.type,data:M};this.hls.trigger(m.Events.BUFFER_APPENDING,k)}this.tick()},w.loadFragment=function(T,C,O){var _=this.fragmentTracker.getState(T);this.fragCurrent=T,(this.audioSwitch||_===s.FragmentState.NOT_LOADED||_===s.FragmentState.PARTIAL)&&(T.sn==="initSegment"?this._loadInitSegment(T):C.live&&!Object(I.isFiniteNumber)(this.initPTS[T.cc])?(this.log("Waiting for video PTS in continuity counter "+T.cc+" of live stream before loading audio fragment "+T.sn+" of level "+this.trackId),this.state=o.State.WAITING_INIT_PTS):(this.startFragRequested=!0,x.prototype.loadFragment.call(this,T,C,O)))},w.completeAudioSwitch=function(){var T=this.hls,C=this.media,O=this.trackId;C&&(this.log("Switching audio track : flushing all audio"),x.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,T.trigger(m.Events.AUDIO_TRACK_SWITCHED,{id:O})},b}(o.default);L.default=A},"./src/controller/audio-track-controller.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/events.ts"),o=E("./src/errors.ts"),m=E("./src/controller/base-playlist-controller.ts"),f=E("./src/types/loader.ts");function s(u,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(u,i.key,i)}}function t(u,e,n){return e&&s(u.prototype,e),n&&s(u,n),u}function l(u,e){u.prototype=Object.create(e.prototype),u.prototype.constructor=u,a(u,e)}function a(u,e){return a=Object.setPrototypeOf||function(i,c){return i.__proto__=c,i},a(u,e)}var r=function(u){l(e,u);function e(i){var c;return c=u.call(this,i,"[audio-track-controller]")||this,c.tracks=[],c.groupId=null,c.tracksInGroup=[],c.trackId=-1,c.trackName="",c.selectDefaultTrack=!0,c.registerListeners(),c}var n=e.prototype;return n.registerListeners=function(){var c=this.hls;c.on(I.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.on(I.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.on(I.Events.LEVEL_LOADING,this.onLevelLoading,this),c.on(I.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),c.on(I.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),c.on(I.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){var c=this.hls;c.off(I.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.off(I.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.off(I.Events.LEVEL_LOADING,this.onLevelLoading,this),c.off(I.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),c.off(I.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),c.off(I.Events.ERROR,this.onError,this)},n.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,u.prototype.destroy.call(this)},n.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},n.onManifestParsed=function(c,d){this.tracks=d.audioTracks||[]},n.onAudioTrackLoaded=function(c,d){var h=d.id,p=d.details,g=this.tracksInGroup[h];if(!g){this.warn("Invalid audio track id "+h);return}var v=g.details;g.details=d.details,this.log("audioTrack "+h+" loaded ["+p.startSN+"-"+p.endSN+"]"),h===this.trackId&&(this.retryCount=0,this.playlistLoaded(h,d,v))},n.onLevelLoading=function(c,d){this.switchLevel(d.level)},n.onLevelSwitching=function(c,d){this.switchLevel(d.level)},n.switchLevel=function(c){var d=this.hls.levels[c];if(!(d!=null&&d.audioGroupIds))return;var h=d.audioGroupIds[d.urlId];if(this.groupId!==h){this.groupId=h;var p=this.tracks.filter(function(v){return!h||v.groupId===h});this.selectDefaultTrack&&!p.some(function(v){return v.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=p;var g={audioTracks:p};this.log("Updating audio tracks, "+p.length+' track(s) found in "'+h+'" group-id'),this.hls.trigger(I.Events.AUDIO_TRACKS_UPDATED,g),this.selectInitialTrack()}},n.onError=function(c,d){if(u.prototype.onError.call(this,c,d),d.fatal||!d.context)return;d.context.type===f.PlaylistContextType.AUDIO_TRACK&&d.context.id===this.trackId&&d.context.groupId===this.groupId&&this.retryLoadingOrFail(d)},n.setAudioTrack=function(c){var d=this.tracksInGroup;if(c<0||c>=d.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var h=d[this.trackId];this.log("Now switching to audio-track index "+c);var p=d[c],g=p.id,v=p.groupId,A=v===void 0?"":v,x=p.name,b=p.type,w=p.url;if(this.trackId=c,this.trackName=x,this.selectDefaultTrack=!1,this.hls.trigger(I.Events.AUDIO_TRACK_SWITCHING,{id:g,groupId:A,name:x,type:b,url:w}),p.details&&!p.details.live)return;var S=this.switchParams(p.url,h==null?void 0:h.details);this.loadPlaylist(S)},n.selectInitialTrack=function(){var c=this.tracksInGroup;console.assert(c.length,"Initial audio track should be selected when tracks are known");var d=this.trackName,h=this.findTrackId(d)||this.findTrackId();h!==-1?this.setAudioTrack(h):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},n.findTrackId=function(c){for(var d=this.tracksInGroup,h=0;h<d.length;h++){var p=d[h];if((!this.selectDefaultTrack||p.default)&&(!c||c===p.name))return p.id}return-1},n.loadPlaylist=function(c){var d=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(d)){var h=d.id,p=d.groupId,g=d.url;if(c)try{g=c.addDirectives(g)}catch(v){this.warn("Could not construct new URL with HLS Delivery Directives: "+v)}this.log("loading audio-track playlist for id: "+h),this.clearTimer(),this.hls.trigger(I.Events.AUDIO_TRACK_LOADING,{url:g,id:h,groupId:p,deliveryDirectives:c||null})}},t(e,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(c){this.selectDefaultTrack=!1,this.setAudioTrack(c)}}]),e}(m.default);L.default=r},"./src/controller/base-playlist-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return t});var I=E("./src/polyfills/number.ts"),o=E("./src/types/level.ts"),m=E("./src/controller/level-helper.ts"),f=E("./src/utils/logger.ts"),s=E("./src/errors.ts"),t=function(){function l(r,u){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=f.logger.log.bind(f.logger,u+":"),this.warn=f.logger.warn.bind(f.logger,u+":"),this.hls=r}var a=l.prototype;return a.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},a.onError=function(u,e){e.fatal&&e.type===s.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},a.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},a.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},a.stopLoad=function(){this.canLoad=!1,this.clearTimer()},a.switchParams=function(u,e){var n=e==null?void 0:e.renditionReports;if(n)for(var i=0;i<n.length;i++){var c=n[i],d=""+c.URI;if(d===u.substr(-d.length)){var h=parseInt(c["LAST-MSN"]),p=parseInt(c["LAST-PART"]);if(e&&this.hls.config.lowLatencyMode){var g=Math.min(e.age-e.partTarget,e.targetduration);p!==void 0&&g>e.partTarget&&(p+=1)}if(Object(I.isFiniteNumber)(h))return new o.HlsUrlParameters(h,Object(I.isFiniteNumber)(p)?p:void 0,o.HlsSkip.No)}}},a.loadPlaylist=function(u){},a.shouldLoadTrack=function(u){return this.canLoad&&u&&!!u.url&&(!u.details||u.details.live)},a.playlistLoaded=function(u,e,n){var i=this,c=e.details,d=e.stats,h=d.loading.end?Math.max(0,self.performance.now()-d.loading.end):0;if(c.advancedDateTime=Date.now()-h,c.live||n!=null&&n.live){if(c.reloaded(n),n&&this.log("live playlist "+u+" "+(c.advanced?"REFRESHED "+c.lastPartSn+"-"+c.lastPartIndex:"MISSED")),n&&c.fragments.length>0&&Object(m.mergeDetails)(n,c),!this.canLoad||!c.live)return;var p,g=void 0,v=void 0;if(c.canBlockReload&&c.endSN&&c.advanced){var A=this.hls.config.lowLatencyMode,x=c.lastPartSn,b=c.endSN,w=c.lastPartIndex,S=w!==-1,T=x===b,C=A?0:w;S?(g=T?b+1:x,v=T?C:w+1):g=b+1;var O=c.age,_=O+c.ageHeader,M=Math.min(_-c.partTarget,c.targetduration*1.5);if(M>0){if(n&&M>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+n.tuneInGoal+" to: "+M+" with playlist age: "+c.age),M=0;else{var k=Math.floor(M/c.targetduration);if(g+=k,v!==void 0){var R=Math.round(M%c.targetduration/c.partTarget);v+=R}this.log("CDN Tune-in age: "+c.ageHeader+"s last advanced "+O.toFixed(2)+"s goal: "+M+" skip sn "+k+" to part "+v)}c.tuneInGoal=M}if(p=this.getDeliveryDirectives(c,e.deliveryDirectives,g,v),A||!T){this.loadPlaylist(p);return}}else p=this.getDeliveryDirectives(c,e.deliveryDirectives,g,v);var B=Object(m.computeReloadInterval)(c,d);g!==void 0&&c.canBlockReload&&(B-=c.partTarget||1),this.log("reload live playlist "+u+" in "+Math.round(B)+" ms"),this.timer=self.setTimeout(function(){return i.loadPlaylist(p)},B)}else this.clearTimer()},a.getDeliveryDirectives=function(u,e,n,i){var c=Object(o.getSkipValue)(u,n);return e!=null&&e.skip&&u.deltaUpdateFailed&&(n=e.msn,i=e.part,c=o.HlsSkip.No),new o.HlsUrlParameters(n,i,c)},a.retryLoadingOrFail=function(u){var e=this,n=this.hls.config,i=this.retryCount<n.levelLoadingMaxRetry;if(i){var c;if(this.retryCount++,u.details.indexOf("LoadTimeOut")>-1&&(c=u.context)!==null&&c!==void 0&&c.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+u.details+'"'),this.loadPlaylist();else{var d=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return e.loadPlaylist()},d),this.warn("retry playlist loading #"+this.retryCount+" in "+d+' ms after "'+u.details+'"')}}else this.warn('cannot recover from error "'+u.details+'"'),this.clearTimer(),u.fatal=!0;return i},l}()},"./src/controller/base-stream-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"State",function(){return b}),E.d(L,"default",function(){return w});var I=E("./src/polyfills/number.ts"),o=E("./src/task-loop.ts"),m=E("./src/controller/fragment-tracker.ts"),f=E("./src/utils/buffer-helper.ts"),s=E("./src/utils/logger.ts"),t=E("./src/events.ts"),l=E("./src/errors.ts"),a=E("./src/types/transmuxer.ts"),r=E("./src/utils/mp4-tools.ts"),u=E("./src/utils/discontinuities.ts"),e=E("./src/controller/fragment-finders.ts"),n=E("./src/controller/level-helper.ts"),i=E("./src/loader/fragment-loader.ts"),c=E("./src/crypt/decrypter.ts"),d=E("./src/utils/time-ranges.ts"),h=E("./src/types/loader.ts");function p(S,T){for(var C=0;C<T.length;C++){var O=T[C];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(S,O.key,O)}}function g(S,T,C){return T&&p(S.prototype,T),C&&p(S,C),S}function v(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function A(S,T){S.prototype=Object.create(T.prototype),S.prototype.constructor=S,x(S,T)}function x(S,T){return x=Object.setPrototypeOf||function(O,_){return O.__proto__=_,O},x(S,T)}var b={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},w=function(S){A(T,S);function T(O,_,M){var k;return k=S.call(this)||this,k.hls=void 0,k.fragPrevious=null,k.fragCurrent=null,k.fragmentTracker=void 0,k.transmuxer=null,k._state=b.STOPPED,k.media=void 0,k.mediaBuffer=void 0,k.config=void 0,k.bitrateTest=!1,k.lastCurrentTime=0,k.nextLoadPosition=0,k.startPosition=0,k.loadedmetadata=!1,k.fragLoadError=0,k.retryDate=0,k.levels=null,k.fragmentLoader=void 0,k.levelLastLoaded=null,k.startFragRequested=!1,k.decrypter=void 0,k.initPTS=[],k.onvseeking=null,k.onvended=null,k.logPrefix="",k.log=void 0,k.warn=void 0,k.logPrefix=M,k.log=s.logger.log.bind(s.logger,M+":"),k.warn=s.logger.warn.bind(s.logger,M+":"),k.hls=O,k.fragmentLoader=new i.default(O.config),k.fragmentTracker=_,k.config=O.config,k.decrypter=new c.default(O,O.config),O.on(t.Events.KEY_LOADED,k.onKeyLoaded,v(k)),k}var C=T.prototype;return C.doTick=function(){this.onTickEnd()},C.onTickEnd=function(){},C.startLoad=function(_){},C.stopLoad=function(){this.fragmentLoader.abort();var _=this.fragCurrent;_&&this.fragmentTracker.removeFragment(_),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=b.STOPPED},C._streamEnded=function(_,M){var k=this.fragCurrent,R=this.fragmentTracker;if(!M.live&&k&&k.sn===M.endSN&&!_.nextStart){var B=R.getState(k);return B===m.FragmentState.PARTIAL||B===m.FragmentState.OK}return!1},C.onMediaAttached=function(_,M){var k=this.media=this.mediaBuffer=M.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),k.addEventListener("seeking",this.onvseeking),k.addEventListener("ended",this.onvended);var R=this.config;this.levels&&R.autoStartLoad&&this.state===b.STOPPED&&this.startLoad(R.startPosition)},C.onMediaDetaching=function(){var _=this.media;_!=null&&_.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),_&&(_.removeEventListener("seeking",this.onvseeking),_.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},C.onMediaSeeking=function(){var _=this.config,M=this.fragCurrent,k=this.media,R=this.mediaBuffer,B=this.state,P=k?k.currentTime:0,U=f.BufferHelper.bufferInfo(R||k,P,_.maxBufferHole);if(this.log("media seeking to "+(Object(I.isFiniteNumber)(P)?P.toFixed(3):P)+", state: "+B),B===b.ENDED)this.resetLoadingState();else if(M&&!U.len){var j=_.maxFragLookUpTolerance,H=M.start-j,W=M.start+M.duration+j,G=P>W;(P<H||G)&&(G&&M.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),M.loader.abort()),this.resetLoadingState())}k&&(this.lastCurrentTime=P),!this.loadedmetadata&&!U.len&&(this.nextLoadPosition=this.startPosition=P),this.tickImmediate()},C.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},C.onKeyLoaded=function(_,M){if(this.state!==b.KEY_LOADING||M.frag!==this.fragCurrent||!this.levels)return;this.state=b.IDLE;var k=this.levels[M.frag.level].details;k&&this.loadFragment(M.frag,k,M.frag.start)},C.onHandlerDestroying=function(){this.stopLoad(),S.prototype.onHandlerDestroying.call(this)},C.onHandlerDestroyed=function(){this.state=b.STOPPED,this.hls.off(t.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,S.prototype.onHandlerDestroyed.call(this)},C.loadKey=function(_,M){this.log("Loading key for "+_.sn+" of ["+M.startSN+"-"+M.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+_.level),this.state=b.KEY_LOADING,this.fragCurrent=_,this.hls.trigger(t.Events.KEY_LOADING,{frag:_})},C.loadFragment=function(_,M,k){this._loadFragForPlayback(_,M,k)},C._loadFragForPlayback=function(_,M,k){var R=this,B=function(U){if(R.fragContextChanged(_)){R.warn("Fragment "+_.sn+(U.part?" p: "+U.part.index:"")+" of level "+_.level+" was dropped during download."),R.fragmentTracker.removeFragment(_);return}_.stats.chunkCount++,R._handleFragmentLoadProgress(U)};this._doFragLoad(_,M,k,B).then(function(P){if(!P)return;R.fragLoadError=0;var U=R.state;if(R.fragContextChanged(_)){(U===b.FRAG_LOADING||U===b.BACKTRACKING||!R.fragCurrent&&U===b.PARSING)&&(R.fragmentTracker.removeFragment(_),R.state=b.IDLE);return}if("payload"in P&&(R.log("Loaded fragment "+_.sn+" of level "+_.level),R.hls.trigger(t.Events.FRAG_LOADED,P),R.state===b.BACKTRACKING)){R.fragmentTracker.backtrack(_,P),R.resetFragmentLoading(_);return}R._handleFragmentLoadComplete(P)}).catch(function(P){R.warn(P),R.resetFragmentLoading(_)})},C.flushMainBuffer=function(_,M,k){if(k===void 0&&(k=null),!(_-M))return;var R={startOffset:_,endOffset:M,type:k};this.fragLoadError=0,this.hls.trigger(t.Events.BUFFER_FLUSHING,R)},C._loadInitSegment=function(_){var M=this;this._doFragLoad(_).then(function(k){if(!k||M.fragContextChanged(_)||!M.levels)throw new Error("init load aborted");return k}).then(function(k){var R=M.hls,B=k.payload,P=_.decryptdata;if(B&&B.byteLength>0&&P&&P.key&&P.iv&&P.method==="AES-128"){var U=self.performance.now();return M.decrypter.webCryptoDecrypt(new Uint8Array(B),P.key.buffer,P.iv.buffer).then(function(j){var H=self.performance.now();return R.trigger(t.Events.FRAG_DECRYPTED,{frag:_,payload:j,stats:{tstart:U,tdecrypt:H}}),k.payload=j,k})}return k}).then(function(k){var R=M.fragCurrent,B=M.hls,P=M.levels;if(!P)throw new Error("init load aborted, missing levels");var U=P[_.level].details;console.assert(U,"Level details are defined when init segment is loaded");var j=_.stats;M.state=b.IDLE,M.fragLoadError=0,_.data=new Uint8Array(k.payload),j.parsing.start=j.buffering.start=self.performance.now(),j.parsing.end=j.buffering.end=self.performance.now(),k.frag===R&&B.trigger(t.Events.FRAG_BUFFERED,{stats:j,frag:R,part:null,id:_.type}),M.tick()}).catch(function(k){M.warn(k),M.resetFragmentLoading(_)})},C.fragContextChanged=function(_){var M=this.fragCurrent;return!_||!M||_.level!==M.level||_.sn!==M.sn||_.urlId!==M.urlId},C.fragBufferedComplete=function(_,M){var k=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+_.type+" sn: "+_.sn+(M?" part: "+M.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+_.level+" "+d.default.toString(f.BufferHelper.getBuffered(k))),this.state=b.IDLE,this.tick()},C._handleFragmentLoadComplete=function(_){var M=this.transmuxer;if(!M)return;var k=_.frag,R=_.part,B=_.partsLoaded,P=!B||B.length===0||B.some(function(j){return!j}),U=new a.ChunkMetadata(k.level,k.sn,k.stats.chunkCount+1,0,R?R.index:-1,!P);M.flush(U)},C._handleFragmentLoadProgress=function(_){},C._doFragLoad=function(_,M,k,R){var B=this;if(k===void 0&&(k=null),!this.levels)throw new Error("frag load aborted, missing levels");if(k=Math.max(_.start,k||0),this.config.lowLatencyMode&&M){var P=M.partList;if(P&&R){k>_.end&&M.fragmentHint&&(_=M.fragmentHint);var U=this.getNextPart(P,_,k);if(U>-1){var j=P[U];return this.log("Loading part sn: "+_.sn+" p: "+j.index+" cc: "+_.cc+" of playlist ["+M.startSN+"-"+M.endSN+"] parts [0-"+U+"-"+(P.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+_.level+", target: "+parseFloat(k.toFixed(3))),this.nextLoadPosition=j.start+j.duration,this.state=b.FRAG_LOADING,this.hls.trigger(t.Events.FRAG_LOADING,{frag:_,part:P[U],targetBufferTime:k}),this.doFragPartsLoad(_,P,U,R).catch(function(H){return B.handleFragLoadError(H)})}else if(!_.url||this.loadedEndOfParts(P,k))return Promise.resolve(null)}}return this.log("Loading fragment "+_.sn+" cc: "+_.cc+" "+(M?"of ["+M.startSN+"-"+M.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+_.level+", target: "+parseFloat(k.toFixed(3))),Object(I.isFiniteNumber)(_.sn)&&!this.bitrateTest&&(this.nextLoadPosition=_.start+_.duration),this.state=b.FRAG_LOADING,this.hls.trigger(t.Events.FRAG_LOADING,{frag:_,targetBufferTime:k}),this.fragmentLoader.load(_,R).catch(function(H){return B.handleFragLoadError(H)})},C.doFragPartsLoad=function(_,M,k,R){var B=this;return new Promise(function(P,U){var j=[],H=function W(G){var V=M[G];B.fragmentLoader.loadPart(_,V,R).then(function(Z){j[V.index]=Z;var Y=Z.part;B.hls.trigger(t.Events.FRAG_LOADED,Z);var Q=M[G+1];if(Q&&Q.fragment===_)W(G+1);else return P({frag:_,part:Y,partsLoaded:j})}).catch(U)};H(k)})},C.handleFragLoadError=function(_){var M=_.data;return M&&M.details===l.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(M.frag,M.part):this.hls.trigger(t.Events.ERROR,M),null},C._handleTransmuxerFlush=function(_){var M=this.getCurrentContext(_);if(!M||this.state!==b.PARSING){this.fragCurrent||(this.state=b.IDLE);return}var k=M.frag,R=M.part,B=M.level,P=self.performance.now();k.stats.parsing.end=P,R&&(R.stats.parsing.end=P),this.updateLevelTiming(k,R,B,_.partial)},C.getCurrentContext=function(_){var M=this.levels,k=_.level,R=_.sn,B=_.part;if(!M||!M[k])return this.warn("Levels object was unset while buffering fragment "+R+" of level "+k+". The current chunk will not be buffered."),null;var P=M[k],U=B>-1?Object(n.getPartWith)(P,R,B):null,j=U?U.fragment:Object(n.getFragmentWithSN)(P,R,this.fragCurrent);return j?{frag:j,part:U,level:P}:null},C.bufferFragmentData=function(_,M,k,R){if(!_||this.state!==b.PARSING)return;var B=_.data1,P=_.data2,U=B;if(B&&P&&(U=Object(r.appendUint8Array)(B,P)),!U||!U.length)return;var j={type:_.type,frag:M,part:k,chunkMeta:R,parent:M.type,data:U};this.hls.trigger(t.Events.BUFFER_APPENDING,j),_.dropped&&_.independent&&!k&&this.flushBufferGap(M)},C.flushBufferGap=function(_){var M=this.media;if(!M)return;if(!f.BufferHelper.isBuffered(M,M.currentTime)){this.flushMainBuffer(0,_.start);return}var k=M.currentTime,R=f.BufferHelper.bufferInfo(M,k,0),B=_.duration,P=Math.min(this.config.maxFragLookUpTolerance*2,B*.25),U=Math.max(Math.min(_.start-P,R.end-P),k+P);_.start-U>P&&this.flushMainBuffer(U,_.start)},C.getFwdBufferInfo=function(_,M){var k=this.config,R=this.getLoadPosition();if(!Object(I.isFiniteNumber)(R))return null;var B=f.BufferHelper.bufferInfo(_,R,k.maxBufferHole);if(B.len===0&&B.nextStart!==void 0){var P=this.fragmentTracker.getBufferedFrag(R,M);if(P&&B.nextStart<P.end)return f.BufferHelper.bufferInfo(_,R,Math.max(B.nextStart,k.maxBufferHole))}return B},C.getMaxBufferLength=function(_){var M=this.config,k;return _?k=Math.max(8*M.maxBufferSize/_,M.maxBufferLength):k=M.maxBufferLength,Math.min(k,M.maxMaxBufferLength)},C.reduceMaxBufferLength=function(_){var M=this.config,k=_||M.maxBufferLength;return M.maxMaxBufferLength>=k?(M.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+M.maxMaxBufferLength+"s"),!0):!1},C.getNextFragment=function(_,M){var k,R,B=M.fragments,P=B.length;if(!P)return null;var U=this.config,j=B[0].start,H;if(M.live){var W=U.initialLiveManifestSize;if(P<W)return this.warn("Not enough fragments to start playback (have: "+P+", need: "+W+")"),null;!M.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(H=this.getInitialLiveFragment(M,B),this.startPosition=H?this.hls.liveSyncPosition||H.start:_)}else _<=j&&(H=B[0]);if(!H){var G=U.lowLatencyMode?M.partEnd:M.fragmentEnd;H=this.getFragmentAtPosition(_,G,M)}return(k=H)!==null&&k!==void 0&&k.initSegment&&!((R=H)!==null&&R!==void 0&&R.initSegment.data)&&!this.bitrateTest&&(H=H.initSegment),H},C.getNextPart=function(_,M,k){for(var R=-1,B=!1,P=!0,U=0,j=_.length;U<j;U++){var H=_[U];if(P=P&&!H.independent,R>-1&&k<H.start)break;var W=H.loaded;!W&&(B||H.independent||P)&&H.fragment===M&&(R=U),B=W}return R},C.loadedEndOfParts=function(_,M){var k=_[_.length-1];return k&&M>k.start&&k.loaded},C.getInitialLiveFragment=function(_,M){var k=this.fragPrevious,R=null;if(k){if(_.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+k.programDateTime),R=Object(e.findFragmentByPDT)(M,k.endProgramDateTime,this.config.maxFragLookUpTolerance)),!R){var B=k.sn+1;if(B>=_.startSN&&B<=_.endSN){var P=M[B-_.startSN];k.cc===P.cc&&(R=P,this.log("Live playlist, switching playlist, load frag with next SN: "+R.sn))}R||(R=Object(e.findFragWithCC)(M,k.cc),R&&this.log("Live playlist, switching playlist, load frag with same CC: "+R.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(R=this.getFragmentAtPosition(U,this.bitrateTest?_.fragmentEnd:_.edge,_))}return R},C.getFragmentAtPosition=function(_,M,k){var R=this.config,B=this.fragPrevious,P=k.fragments,U=k.endSN,j=k.fragmentHint,H=R.maxFragLookUpTolerance,W=!!(R.lowLatencyMode&&k.partList&&j);W&&j&&!this.bitrateTest&&(P=P.concat(j),U=j.sn);var G;if(_<M){var V=_>M-H?0:H;G=Object(e.findFragmentByPTS)(B,P,_,V)}else G=P[P.length-1];if(G){var Z=G.sn-k.startSN,Y=B&&G.level===B.level,Q=P[Z+1],oe=this.fragmentTracker.getState(G);if(oe===m.FragmentState.BACKTRACKED){G=null;for(var ue=Z;P[ue]&&this.fragmentTracker.getState(P[ue])===m.FragmentState.BACKTRACKED;)B?G=P[ue--]:G=P[--ue];G||(G=Q)}else B&&G.sn===B.sn&&!W&&(Y&&(G.sn<U&&this.fragmentTracker.getState(Q)!==m.FragmentState.OK?(this.log("SN "+G.sn+" just loaded, load next one: "+Q.sn),G=Q):G=null))}return G},C.synchronizeToLiveEdge=function(_){var M=this.config,k=this.media;if(!k)return;var R=this.hls.liveSyncPosition,B=k.currentTime,P=_.fragments[0].start,U=_.edge,j=B>=P-M.maxFragLookUpTolerance&&B<=U;if(R!==null&&k.duration>R&&(B<R||!j)){var H=M.liveMaxLatencyDuration!==void 0?M.liveMaxLatencyDuration:M.liveMaxLatencyDurationCount*_.targetduration;(!j&&k.readyState<4||B<U-H)&&(this.loadedmetadata||(this.nextLoadPosition=R),k.readyState&&(this.warn("Playback: "+B.toFixed(3)+" is located too far from the end of live sliding playlist: "+U+", reset currentTime to : "+R.toFixed(3)),k.currentTime=R))}},C.alignPlaylists=function(_,M){var k=this.levels,R=this.levelLastLoaded,B=this.fragPrevious,P=R!==null?k[R]:null,U=_.fragments.length;if(!U)return this.warn("No fragments in live playlist"),0;var j=_.fragments[0].start,H=!M,W=_.alignedSliding&&Object(I.isFiniteNumber)(j);if(H||!W&&!j){Object(u.alignStream)(B,P,_);var G=_.fragments[0].start;return this.log("Live playlist sliding: "+G.toFixed(2)+" start-sn: "+(M?M.startSN:"na")+"->"+_.startSN+" prev-sn: "+(B?B.sn:"na")+" fragments: "+U),G}return j},C.waitForCdnTuneIn=function(_){var M=3;return _.live&&_.canBlockReload&&_.tuneInGoal>Math.max(_.partHoldBack,_.partTarget*M)},C.setStartPosition=function(_,M){var k=this.startPosition;if(k<M&&(k=-1),k===-1||this.lastCurrentTime===-1){var R=_.startTimeOffset;Object(I.isFiniteNumber)(R)?(k=M+R,R<0&&(k+=_.totalduration),k=Math.min(Math.max(M,k),M+_.totalduration),this.log("Start time offset "+R+" found in playlist, adjust startPosition to "+k),this.startPosition=k):_.live?k=this.hls.liveSyncPosition||M:this.startPosition=k=0,this.lastCurrentTime=k}this.nextLoadPosition=k},C.getLoadPosition=function(){var _=this.media,M=0;return this.loadedmetadata&&_?M=_.currentTime:this.nextLoadPosition&&(M=this.nextLoadPosition),M},C.handleFragLoadAborted=function(_,M){this.transmuxer&&_.sn!=="initSegment"&&_.stats.aborted&&(this.warn("Fragment "+_.sn+(M?" part"+M.index:"")+" of level "+_.level+" was aborted"),this.resetFragmentLoading(_))},C.resetFragmentLoading=function(_){(!this.fragCurrent||!this.fragContextChanged(_))&&(this.state=b.IDLE)},C.onFragmentOrKeyLoadError=function(_,M){if(M.fatal)return;var k=M.frag;if(!k||k.type!==_)return;var R=this.fragCurrent;console.assert(R&&k.sn===R.sn&&k.level===R.level&&k.urlId===R.urlId,"Frag load error must match current frag to retry");var B=this.config;if(this.fragLoadError+1<=B.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(k.level))return;var P=Math.min(Math.pow(2,this.fragLoadError)*B.fragLoadingRetryDelay,B.fragLoadingMaxRetryTimeout);this.warn("Fragment "+k.sn+" of "+_+" "+k.level+" failed to load, retrying in "+P+"ms"),this.retryDate=self.performance.now()+P,this.fragLoadError++,this.state=b.FRAG_LOADING_WAITING_RETRY}else M.levelRetry?(_===h.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=b.IDLE):(s.logger.error(M.details+" reaches max retry, redispatch as fatal ..."),M.fatal=!0,this.hls.stopLoad(),this.state=b.ERROR)},C.afterBufferFlushed=function(_,M,k){if(!_)return;var R=f.BufferHelper.getBuffered(_);this.fragmentTracker.detectEvictedFragments(M,R,k),this.state===b.ENDED&&this.resetLoadingState()},C.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=b.IDLE},C.resetLiveStartWhenNotLoaded=function(_){if(!this.loadedmetadata){this.startFragRequested=!1;var M=this.levels?this.levels[_].details:null;if(M!=null&&M.live)return this.startPosition=-1,this.setStartPosition(M,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},C.updateLevelTiming=function(_,M,k,R){var B=this,P=k.details;console.assert(!!P,"level.details must be defined");var U=Object.keys(_.elementaryStreams).reduce(function(j,H){var W=_.elementaryStreams[H];if(W){var G=W.endPTS-W.startPTS;if(G<=0)return B.warn("Could not parse fragment "+_.sn+" "+H+" duration reliably ("+G+") resetting transmuxer to fallback to playlist timing"),B.resetTransmuxer(),j||!1;var V=R?0:Object(n.updateFragPTSDTS)(P,_,W.startPTS,W.endPTS,W.startDTS,W.endDTS);return B.hls.trigger(t.Events.LEVEL_PTS_UPDATED,{details:P,level:k,drift:V,type:H,frag:_,start:W.startPTS,end:W.endPTS}),!0}return j},!1);U?(this.state=b.PARSED,this.hls.trigger(t.Events.FRAG_PARSED,{frag:_,part:M})):this.resetLoadingState()},C.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},g(T,[{key:"state",get:function(){return this._state},set:function(_){var M=this._state;M!==_&&(this._state=_,this.log(M+"->"+_))}}]),T}(o.default)},"./src/controller/buffer-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return e});var I=E("./src/polyfills/number.ts"),o=E("./src/events.ts"),m=E("./src/utils/logger.ts"),f=E("./src/errors.ts"),s=E("./src/utils/buffer-helper.ts"),t=E("./src/utils/mediasource-helper.ts"),l=E("./src/loader/fragment.ts"),a=E("./src/controller/buffer-operation-queue.ts"),r=Object(t.getMediaSource)(),u=/([ha]vc.)(?:\.[^.,]+)+/,e=function(){function n(c){var d=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var h=d.hls,p=d.media,g=d.mediaSource;m.logger.log("[buffer-controller]: Media source opened"),p&&(d.updateMediaElementDuration(),h.trigger(o.Events.MEDIA_ATTACHED,{media:p})),g&&g.removeEventListener("sourceopen",d._onMediaSourceOpen),d.checkPendingTracks()},this._onMediaSourceClose=function(){m.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){m.logger.log("[buffer-controller]: Media source ended")},this.hls=c,this._initSourceBuffer(),this.registerListeners()}var i=n.prototype;return i.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},i.destroy=function(){this.unregisterListeners(),this.details=null},i.registerListeners=function(){var d=this.hls;d.on(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(o.Events.BUFFER_RESET,this.onBufferReset,this),d.on(o.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.on(o.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.on(o.Events.BUFFER_EOS,this.onBufferEos,this),d.on(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.on(o.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.on(o.Events.FRAG_PARSED,this.onFragParsed,this),d.on(o.Events.FRAG_CHANGED,this.onFragChanged,this)},i.unregisterListeners=function(){var d=this.hls;d.off(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),d.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(o.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(o.Events.BUFFER_RESET,this.onBufferReset,this),d.off(o.Events.BUFFER_APPENDING,this.onBufferAppending,this),d.off(o.Events.BUFFER_CODECS,this.onBufferCodecs,this),d.off(o.Events.BUFFER_EOS,this.onBufferEos,this),d.off(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),d.off(o.Events.LEVEL_UPDATED,this.onLevelUpdated,this),d.off(o.Events.FRAG_PARSED,this.onFragParsed,this),d.off(o.Events.FRAG_CHANGED,this.onFragChanged,this)},i._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new a.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},i.onManifestParsed=function(d,h){var p=2;(h.audio&&!h.video||!h.altAudio)&&(p=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=p,this.details=null,m.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},i.onMediaAttaching=function(d,h){var p=this.media=h.media;if(p&&r){var g=this.mediaSource=new r;g.addEventListener("sourceopen",this._onMediaSourceOpen),g.addEventListener("sourceended",this._onMediaSourceEnded),g.addEventListener("sourceclose",this._onMediaSourceClose),p.src=self.URL.createObjectURL(g),this._objectUrl=p.src}},i.onMediaDetaching=function(){var d=this.media,h=this.mediaSource,p=this._objectUrl;if(h){if(m.logger.log("[buffer-controller]: media source detaching"),h.readyState==="open")try{h.endOfStream()}catch(g){m.logger.warn("[buffer-controller]: onMediaDetaching: "+g.message+" while calling endOfStream")}this.onBufferReset(),h.removeEventListener("sourceopen",this._onMediaSourceOpen),h.removeEventListener("sourceended",this._onMediaSourceEnded),h.removeEventListener("sourceclose",this._onMediaSourceClose),d&&(p&&self.URL.revokeObjectURL(p),d.src===p?(d.removeAttribute("src"),d.load()):m.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(o.Events.MEDIA_DETACHED,void 0)},i.onBufferReset=function(){var d=this;this.getSourceBufferTypes().forEach(function(h){var p=d.sourceBuffer[h];try{p&&(d.removeBufferListeners(h),d.mediaSource&&d.mediaSource.removeSourceBuffer(p),d.sourceBuffer[h]=void 0)}catch(g){m.logger.warn("[buffer-controller]: Failed to reset the "+h+" buffer",g)}}),this._initSourceBuffer()},i.onBufferCodecs=function(d,h){var p=this,g=this.getSourceBufferTypes().length;if(Object.keys(h).forEach(function(v){if(g){var A=p.tracks[v];if(A&&typeof A.buffer.changeType=="function"){var x=h[v],b=x.codec,w=x.levelCodec,S=x.container,T=(A.levelCodec||A.codec).replace(u,"$1"),C=(w||b).replace(u,"$1");if(T!==C){var O=S+";codecs="+(w||b);p.appendChangeType(v,O)}}}else p.pendingTracks[v]=h[v]}),g)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},i.appendChangeType=function(d,h){var p=this,g=this.operationQueue,v={execute:function(){var x=p.sourceBuffer[d];x&&(m.logger.log("[buffer-controller]: changing "+d+" sourceBuffer type to "+h),x.changeType(h)),g.shiftAndExecuteNext(d)},onStart:function(){},onComplete:function(){},onError:function(x){m.logger.warn("[buffer-controller]: Failed to change "+d+" SourceBuffer type",x)}};g.append(v,d)},i.onBufferAppending=function(d,h){var p=this,g=this.hls,v=this.operationQueue,A=this.tracks,x=h.data,b=h.type,w=h.frag,S=h.part,T=h.chunkMeta,C=T.buffering[b],O=self.performance.now();C.start=O;var _=w.stats.buffering,M=S?S.stats.buffering:null;_.start===0&&(_.start=O),M&&M.start===0&&(M.start=O);var k=A.audio,R=b==="audio"&&T.id===1&&(k==null?void 0:k.container)==="audio/mpeg",B={execute:function(){if(C.executeStart=self.performance.now(),R){var U=p.sourceBuffer[b];if(U){var j=w.start-U.timestampOffset;Math.abs(j)>=.1&&(m.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+w.start+" (delta: "+j+") sn: "+w.sn+")"),U.timestampOffset=w.start)}}p.appendExecutor(x,b)},onStart:function(){},onComplete:function(){var U=self.performance.now();C.executeEnd=C.end=U,_.first===0&&(_.first=U),M&&M.first===0&&(M.first=U);var j=p.sourceBuffer,H={};for(var W in j)H[W]=s.BufferHelper.getBuffered(j[W]);p.appendError=0,p.hls.trigger(o.Events.BUFFER_APPENDED,{type:b,frag:w,part:S,chunkMeta:T,parent:w.type,timeRanges:H})},onError:function(U){m.logger.error("[buffer-controller]: Error encountered while trying to append to the "+b+" SourceBuffer",U);var j={type:f.ErrorTypes.MEDIA_ERROR,parent:w.type,details:f.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?j.details=f.ErrorDetails.BUFFER_FULL_ERROR:(p.appendError++,j.details=f.ErrorDetails.BUFFER_APPEND_ERROR,p.appendError>g.config.appendErrorMaxRetry&&(m.logger.error("[buffer-controller]: Failed "+g.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),j.fatal=!0)),g.trigger(o.Events.ERROR,j)}};v.append(B,b)},i.onBufferFlushing=function(d,h){var p=this,g=this.operationQueue,v=function(x){return{execute:p.removeExecutor.bind(p,x,h.startOffset,h.endOffset),onStart:function(){},onComplete:function(){p.hls.trigger(o.Events.BUFFER_FLUSHED,{type:x})},onError:function(w){m.logger.warn("[buffer-controller]: Failed to remove from "+x+" SourceBuffer",w)}}};h.type?g.append(v(h.type),h.type):this.getSourceBufferTypes().forEach(function(A){g.append(v(A),A)})},i.onFragParsed=function(d,h){var p=this,g=h.frag,v=h.part,A=[],x=v?v.elementaryStreams:g.elementaryStreams;x[l.ElementaryStreamTypes.AUDIOVIDEO]?A.push("audiovideo"):(x[l.ElementaryStreamTypes.AUDIO]&&A.push("audio"),x[l.ElementaryStreamTypes.VIDEO]&&A.push("video"));var b=function(){var S=self.performance.now();g.stats.buffering.end=S,v&&(v.stats.buffering.end=S);var T=v?v.stats:g.stats;p.hls.trigger(o.Events.FRAG_BUFFERED,{frag:g,part:v,stats:T,id:g.type})};A.length===0&&m.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+g.type+" level: "+g.level+" sn: "+g.sn),this.blockBuffers(b,A)},i.onFragChanged=function(d,h){this.flushBackBuffer()},i.onBufferEos=function(d,h){var p=this,g=this.getSourceBufferTypes().reduce(function(v,A){var x=p.sourceBuffer[A];return(!h.type||h.type===A)&&(x&&!x.ended&&(x.ended=!0,m.logger.log("[buffer-controller]: "+A+" sourceBuffer now EOS"))),v&&!!(!x||x.ended)},!0);g&&this.blockBuffers(function(){var v=p.mediaSource;if(!v||v.readyState!=="open")return;v.endOfStream()})},i.onLevelUpdated=function(d,h){var p=h.details;if(!p.fragments.length)return;this.details=p,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},i.flushBackBuffer=function(){var d=this.hls,h=this.details,p=this.media,g=this.sourceBuffer;if(!p||h===null)return;var v=this.getSourceBufferTypes();if(!v.length)return;var A=h.live&&d.config.liveBackBufferLength!==null?d.config.liveBackBufferLength:d.config.backBufferLength;if(!Object(I.isFiniteNumber)(A)||A<0)return;var x=p.currentTime,b=h.levelTargetDuration,w=Math.max(A,b),S=Math.floor(x/b)*b-w;v.forEach(function(T){var C=g[T];if(C){var O=s.BufferHelper.getBuffered(C);O.length>0&&S>O.start(0)&&(d.trigger(o.Events.BACK_BUFFER_REACHED,{bufferEnd:S}),h.live&&d.trigger(o.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:S}),d.trigger(o.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:S,type:T}))}})},i.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var d=this.details,h=this.hls,p=this.media,g=this.mediaSource,v=d.fragments[0].start+d.totalduration,A=p.duration,x=Object(I.isFiniteNumber)(g.duration)?g.duration:0;d.live&&h.config.liveDurationInfinity?(m.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),g.duration=Infinity,this.updateSeekableRange(d)):(v>x&&v>A||!Object(I.isFiniteNumber)(A))&&(m.logger.log("[buffer-controller]: Updating Media Source duration to "+v.toFixed(3)),g.duration=v)},i.updateSeekableRange=function(d){var h=this.mediaSource,p=d.fragments,g=p.length;if(g&&d.live&&h!==null&&h!==void 0&&h.setLiveSeekableRange){var v=Math.max(0,p[0].start),A=Math.max(v,v+d.totalduration);h.setLiveSeekableRange(v,A)}},i.checkPendingTracks=function(){var d=this.bufferCodecEventsExpected,h=this.operationQueue,p=this.pendingTracks,g=Object.keys(p).length;if(g&&!d||g===2){this.createSourceBuffers(p),this.pendingTracks={};var v=this.getSourceBufferTypes();if(v.length===0){this.hls.trigger(o.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}v.forEach(function(A){h.executeNext(A)})}},i.createSourceBuffers=function(d){var h=this.sourceBuffer,p=this.mediaSource;if(!p)throw Error("createSourceBuffers called when mediaSource was null");var g=0;for(var v in d)if(!h[v]){var A=d[v];if(!A)throw Error("source buffer exists for track "+v+", however track does not");var x=A.levelCodec||A.codec,b=A.container+";codecs="+x;m.logger.log("[buffer-controller]: creating sourceBuffer("+b+")");try{var w=h[v]=p.addSourceBuffer(b),S=v;this.addBufferListener(S,"updatestart",this._onSBUpdateStart),this.addBufferListener(S,"updateend",this._onSBUpdateEnd),this.addBufferListener(S,"error",this._onSBUpdateError),this.tracks[v]={buffer:w,codec:x,container:A.container,levelCodec:A.levelCodec,id:A.id},g++}catch(T){m.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+T.message),this.hls.trigger(o.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:T,mimeType:b})}}g&&this.hls.trigger(o.Events.BUFFER_CREATED,{tracks:this.tracks})},i._onSBUpdateStart=function(d){var h=this.operationQueue,p=h.current(d);p.onStart()},i._onSBUpdateEnd=function(d){var h=this.operationQueue,p=h.current(d);p.onComplete(),h.shiftAndExecuteNext(d)},i._onSBUpdateError=function(d,h){m.logger.error("[buffer-controller]: "+d+" SourceBuffer error",h),this.hls.trigger(o.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var p=this.operationQueue.current(d);p&&p.onError(h)},i.removeExecutor=function(d,h,p){var g=this.media,v=this.mediaSource,A=this.operationQueue,x=this.sourceBuffer,b=x[d];if(!g||!v||!b){m.logger.warn("[buffer-controller]: Attempting to remove from the "+d+" SourceBuffer, but it does not exist"),A.shiftAndExecuteNext(d);return}var w=Object(I.isFiniteNumber)(g.duration)?g.duration:Infinity,S=Object(I.isFiniteNumber)(v.duration)?v.duration:Infinity,T=Math.max(0,h),C=Math.min(p,w,S);C>T?(m.logger.log("[buffer-controller]: Removing ["+T+","+C+"] from the "+d+" SourceBuffer"),console.assert(!b.updating,d+" sourceBuffer must not be updating"),b.remove(T,C)):A.shiftAndExecuteNext(d)},i.appendExecutor=function(d,h){var p=this.operationQueue,g=this.sourceBuffer,v=g[h];if(!v){m.logger.warn("[buffer-controller]: Attempting to append to the "+h+" SourceBuffer, but it does not exist"),p.shiftAndExecuteNext(h);return}v.ended=!1,console.assert(!v.updating,h+" sourceBuffer must not be updating"),v.appendBuffer(d)},i.blockBuffers=function(d,h){var p=this;if(h===void 0&&(h=this.getSourceBufferTypes()),!h.length){m.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(d);return}var g=this.operationQueue,v=h.map(function(A){return g.appendBlocker(A)});Promise.all(v).then(function(){d(),h.forEach(function(A){var x=p.sourceBuffer[A];(!x||!x.updating)&&g.shiftAndExecuteNext(A)})})},i.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},i.addBufferListener=function(d,h,p){var g=this.sourceBuffer[d];if(!g)return;var v=p.bind(this,d);this.listeners[d].push({event:h,listener:v}),g.addEventListener(h,v)},i.removeBufferListeners=function(d){var h=this.sourceBuffer[d];if(!h)return;this.listeners[d].forEach(function(p){h.removeEventListener(p.event,p.listener)})},n}()},"./src/controller/buffer-operation-queue.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return o});var I=E("./src/utils/logger.ts"),o=function(){function m(s){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=s}var f=m.prototype;return f.append=function(t,l){var a=this.queues[l];a.push(t),a.length===1&&this.buffers[l]&&this.executeNext(l)},f.insertAbort=function(t,l){var a=this.queues[l];a.unshift(t),this.executeNext(l)},f.appendBlocker=function(t){var l,a=new Promise(function(u){l=u}),r={execute:l,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(r,t),a},f.executeNext=function(t){var l=this.buffers,a=this.queues,r=l[t],u=a[t];if(u.length){var e=u[0];try{e.execute()}catch(n){I.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),e.onError(n),(!r||!r.updating)&&(u.shift(),this.executeNext(t))}}},f.shiftAndExecuteNext=function(t){this.queues[t].shift(),this.executeNext(t)},f.current=function(t){return this.queues[t][0]},m}()},"./src/controller/cap-level-controller.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/events.ts");function o(s,t){for(var l=0;l<t.length;l++){var a=t[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function m(s,t,l){return t&&o(s.prototype,t),l&&o(s,l),s}var f=function(){function s(l){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=l,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var t=s.prototype;return t.setStreamController=function(a){this.streamController=a},t.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},t.registerListeners=function(){var a=this.hls;a.on(I.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.on(I.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.on(I.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(I.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.on(I.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},t.unregisterListener=function(){var a=this.hls;a.off(I.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.off(I.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.off(I.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(I.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.off(I.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},t.onFpsDropLevelCapping=function(a,r){s.isLevelAllowed(r.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(r.droppedLevel)},t.onMediaAttaching=function(a,r){this.media=r.media instanceof HTMLVideoElement?r.media:null},t.onManifestParsed=function(a,r){var u=this.hls;this.restrictedLevels=[],this.firstLevel=r.firstLevel,u.config.capLevelToPlayerSize&&r.video&&this.startCapping()},t.onBufferCodecs=function(a,r){var u=this.hls;u.config.capLevelToPlayerSize&&r.video&&this.startCapping()},t.onMediaDetaching=function(){this.stopCapping()},t.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var a=this.hls.levels;if(a.length){var r=this.hls;r.autoLevelCapping=this.getMaxLevel(a.length-1),r.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=r.autoLevelCapping}}},t.getMaxLevel=function(a){var r=this,u=this.hls.levels;if(!u.length)return-1;var e=u.filter(function(n,i){return s.isLevelAllowed(i,r.restrictedLevels)&&i<=a});return this.clientRect=null,s.getMaxLevelByMediaSize(e,this.mediaWidth,this.mediaHeight)},t.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()},t.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},t.getDimensions=function(){if(this.clientRect)return this.clientRect;var a=this.media,r={width:0,height:0};if(a){var u=a.getBoundingClientRect();r.width=u.width,r.height=u.height,!r.width&&!r.height&&(r.width=u.right-u.left||a.width||0,r.height=u.bottom-u.top||a.height||0)}return this.clientRect=r,r},s.isLevelAllowed=function(a,r){return r===void 0&&(r=[]),r.indexOf(a)===-1},s.getMaxLevelByMediaSize=function(a,r,u){if(!a||!a.length)return-1;for(var e=function(h,p){return p?h.width!==p.width||h.height!==p.height:!0},n=a.length-1,i=0;i<a.length;i+=1){var c=a[i];if((c.width>=r||c.height>=u)&&e(c,a[i+1])){n=i;break}}return n},m(s,[{key:"mediaWidth",get:function(){return this.getDimensions().width*s.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*s.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(r){}return a}}]),s}();L.default=f},"./src/controller/cmcd-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return e});var I=E("./src/events.ts"),o=E("./src/types/cmcd.ts"),m=E("./src/utils/buffer-helper.ts"),f=E("./src/utils/logger.ts");function s(n,i){for(var c=0;c<i.length;c++){var d=i[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(n,d.key,d)}}function t(n,i,c){return i&&s(n.prototype,i),c&&s(n,c),n}function l(n,i){var c=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(c)return(c=c.call(n)).next.bind(c);if(Array.isArray(n)||(c=a(n))||i&&n&&typeof n.length=="number"){c&&(n=c);var d=0;return function(){return d>=n.length?{done:!0}:{done:!1,value:n[d++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(n,i){if(!n)return;if(typeof n=="string")return r(n,i);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return r(n,i)}function r(n,i){(i==null||i>n.length)&&(i=n.length);for(var c=0,d=new Array(i);c<i;c++)d[c]=n[c];return d}function u(){return u=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var c=arguments[i];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(n[d]=c[d])}return n},u.apply(this,arguments)}var e=function(){function n(c){var d=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(){d.initialized&&(d.starved=!0),d.buffering=!0},this.onPlaying=function(){d.initialized||(d.initialized=!0),d.buffering=!1},this.applyPlaylistData=function(g){try{d.apply(g,{ot:o.CMCDObjectType.MANIFEST,su:!d.initialized})}catch(v){f.logger.warn("Could not generate manifest CMCD data.",v)}},this.applyFragmentData=function(g){try{var v=g.frag,A=d.hls.levels[v.level],x=d.getObjectType(v),b={d:v.duration*1e3,ot:x};(x===o.CMCDObjectType.VIDEO||x===o.CMCDObjectType.AUDIO||x==o.CMCDObjectType.MUXED)&&(b.br=A.bitrate/1e3,b.tb=d.getTopBandwidth(x),b.bl=d.getBufferLength(x)),d.apply(g,b)}catch(w){f.logger.warn("Could not generate segment CMCD data.",w)}},this.hls=c;var h=this.config=c.config,p=h.cmcd;p!=null&&(h.pLoader=this.createPlaylistLoader(),h.fLoader=this.createFragmentLoader(),this.sid=p.sessionId||n.uuid(),this.cid=p.contentId,this.useHeaders=p.useHeaders===!0,this.registerListeners())}var i=n.prototype;return i.registerListeners=function(){var d=this.hls;d.on(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(I.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.on(I.Events.BUFFER_CREATED,this.onBufferCreated,this)},i.unregisterListeners=function(){var d=this.hls;d.off(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(I.Events.MEDIA_DETACHED,this.onMediaDetached,this),d.off(I.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},i.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},i.onMediaAttached=function(d,h){this.media=h.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},i.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},i.onBufferCreated=function(d,h){var p,g;this.audioBuffer=(p=h.tracks.audio)===null||p===void 0?void 0:p.buffer,this.videoBuffer=(g=h.tracks.video)===null||g===void 0?void 0:g.buffer},i.createData=function(){var d;return{v:o.CMCDVersion,sf:o.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(d=this.media)===null||d===void 0?void 0:d.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},i.apply=function(d,h){h===void 0&&(h={}),u(h,this.createData());var p=h.ot===o.CMCDObjectType.INIT||h.ot===o.CMCDObjectType.VIDEO||h.ot===o.CMCDObjectType.MUXED;if(this.starved&&p&&(h.bs=!0,h.su=!0,this.starved=!1),h.su==null&&(h.su=this.buffering),this.useHeaders){var g=n.toHeaders(h);if(!Object.keys(g).length)return;d.headers||(d.headers={}),u(d.headers,g)}else{var v=n.toQuery(h);if(!v)return;d.url=n.appendQueryToUri(d.url,v)}},i.getObjectType=function(d){var h=d.type;return h==="subtitle"?o.CMCDObjectType.TIMED_TEXT:d.sn==="initSegment"?o.CMCDObjectType.INIT:h==="audio"?o.CMCDObjectType.AUDIO:h==="main"?this.hls.audioTracks.length?o.CMCDObjectType.VIDEO:o.CMCDObjectType.MUXED:void 0},i.getTopBandwidth=function(d){for(var h=0,p=d===o.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,g=l(p),v;!(v=g()).done;){var A=v.value;A.bitrate>h&&(h=A.bitrate)}return h>0?h:NaN},i.getBufferLength=function(d){var h=this.hls.media,p=d===o.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!p||!h)return NaN;var g=m.BufferHelper.bufferInfo(p,h.currentTime,this.config.maxBufferHole);return g.len*1e3},i.createPlaylistLoader=function(){var d=this.config.pLoader,h=this.applyPlaylistData,p=d||this.config.loader;return function(){function g(A){this.loader=void 0,this.loader=new p(A)}var v=g.prototype;return v.destroy=function(){this.loader.destroy()},v.abort=function(){this.loader.abort()},v.load=function(x,b,w){h(x),this.loader.load(x,b,w)},t(g,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),g}()},i.createFragmentLoader=function(){var d=this.config.fLoader,h=this.applyFragmentData,p=d||this.config.loader;return function(){function g(A){this.loader=void 0,this.loader=new p(A)}var v=g.prototype;return v.destroy=function(){this.loader.destroy()},v.abort=function(){this.loader.abort()},v.load=function(x,b,w){h(x),this.loader.load(x,b,w)},t(g,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),g}()},n.uuid=function(){var d=URL.createObjectURL(new Blob),h=d.toString();return URL.revokeObjectURL(d),h.substr(h.lastIndexOf("/")+1)},n.serialize=function(d){for(var h=[],p=function(R){return!Number.isNaN(R)&&R!=null&&R!==""&&R!==!1},g=function(R){return Math.round(R)},v=function(R){return g(R/100)*100},A=function(R){return encodeURIComponent(R)},x={br:g,d:g,bl:v,dl:v,mtp:v,nor:A,rtp:v,tb:g},b=Object.keys(d||{}).sort(),w=l(b),S;!(S=w()).done;){var T=S.value,C=d[T];if(!p(C))continue;if(T==="v"&&C===1)continue;if(T=="pr"&&C===1)continue;var O=x[T];O&&(C=O(C));var _=typeof C,M=void 0;T==="ot"||T==="sf"||T==="st"?M=T+"="+C:_==="boolean"?M=T:_==="number"?M=T+"="+C:M=T+"="+JSON.stringify(C),h.push(M)}return h.join(",")},n.toHeaders=function(d){for(var h=Object.keys(d),p={},g=["Object","Request","Session","Status"],v=[{},{},{},{}],A={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},x=0,b=h;x<b.length;x++){var w=b[x],S=A[w]!=null?A[w]:1;v[S][w]=d[w]}for(var T=0;T<v.length;T++){var C=n.serialize(v[T]);C&&(p["CMCD-"+g[T]]=C)}return p},n.toQuery=function(d){return"CMCD="+encodeURIComponent(n.serialize(d))},n.appendQueryToUri=function(d,h){if(!h)return d;var p=d.includes("?")?"&":"?";return""+d+p+h},n}()},"./src/controller/eme-controller.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/events.ts"),o=E("./src/errors.ts"),m=E("./src/utils/logger.ts"),f=E("./src/utils/mediakeys-helper.ts");function s(e,n){for(var i=0;i<n.length;i++){var c=n[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function t(e,n,i){return n&&s(e.prototype,n),i&&s(e,i),e}var l=3,a=function(n,i,c){var d={audioCapabilities:[],videoCapabilities:[]};return n.forEach(function(h){d.audioCapabilities.push({contentType:'audio/mp4; codecs="'+h+'"',robustness:c.audioRobustness||""})}),i.forEach(function(h){d.videoCapabilities.push({contentType:'video/mp4; codecs="'+h+'"',robustness:c.videoRobustness||""})}),[d]},r=function(n,i,c,d){switch(n){case f.KeySystems.WIDEVINE:return a(i,c,d);default:throw new Error("Unknown key-system: "+n)}},u=function(){function e(i){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=i,this._config=i.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 n=e.prototype;return n.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},n._registerListeners=function(){this.hls.on(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(I.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(I.Events.MANIFEST_PARSED,this.onManifestParsed,this)},n._unregisterListeners=function(){this.hls.off(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(I.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(I.Events.MANIFEST_PARSED,this.onManifestParsed,this)},n.getLicenseServerUrl=function(c){switch(c){case f.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+c+'"')},n._attemptKeySystemAccess=function(c,d,h){var p=this,g=r(c,d,h,this._drmSystemOptions);m.logger.log("Requesting encrypted media key-system access");var v=this.requestMediaKeySystemAccess(c,g);this.mediaKeysPromise=v.then(function(A){return p._onMediaKeySystemAccessObtained(c,A)}),v.catch(function(A){m.logger.error('Failed to obtain key-system "'+c+'" access:',A)})},n._onMediaKeySystemAccessObtained=function(c,d){var h=this;m.logger.log('Access for key-system "'+c+'" obtained');var p={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:d,mediaKeySystemDomain:c};this._mediaKeysList.push(p);var g=Promise.resolve().then(function(){return d.createMediaKeys()}).then(function(v){return p.mediaKeys=v,m.logger.log('Media-keys created for key-system "'+c+'"'),h._onMediaKeysCreated(),v});return g.catch(function(v){m.logger.error("Failed to create media-keys:",v)}),g},n._onMediaKeysCreated=function(){var c=this;this._mediaKeysList.forEach(function(d){d.mediaKeysSession||(d.mediaKeysSession=d.mediaKeys.createSession(),c._onNewMediaKeySession(d.mediaKeysSession))})},n._onNewMediaKeySession=function(c){var d=this;m.logger.log("New key-system session "+c.sessionId),c.addEventListener("message",function(h){d._onKeySessionMessage(c,h.message)},!1)},n._onKeySessionMessage=function(c,d){m.logger.log("Got EME message event, creating license request"),this._requestLicense(d,function(h){m.logger.log("Received license data (length: "+(h&&h.byteLength)+"), updating key-session"),c.update(h)})},n.onMediaEncrypted=function(c){var d=this;if(m.logger.log('Media is encrypted using "'+c.initDataType+'" init data type'),!this.mediaKeysPromise){m.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.KEY_SYSTEM_ERROR,details:o.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var h=function(g){if(!d._media)return;d._attemptSetMediaKeys(g),d._generateRequestWithPreferredKeySession(c.initDataType,c.initData)};this.mediaKeysPromise.then(h).catch(h)},n._attemptSetMediaKeys=function(c){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var d=this._mediaKeysList[0];if(!d||!d.mediaKeys){m.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.KEY_SYSTEM_ERROR,details:o.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}m.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(d.mediaKeys),this._hasSetMediaKeys=!0}},n._generateRequestWithPreferredKeySession=function(c,d){var h=this,p=this._mediaKeysList[0];if(!p){m.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.KEY_SYSTEM_ERROR,details:o.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(p.mediaKeysSessionInitialized){m.logger.warn("Key-Session already initialized but requested again");return}var g=p.mediaKeysSession;if(!g){m.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.KEY_SYSTEM_ERROR,details:o.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!d){m.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.KEY_SYSTEM_ERROR,details:o.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}m.logger.log('Generating key-session request for "'+c+'" init data type'),p.mediaKeysSessionInitialized=!0,g.generateRequest(c,d).then(function(){m.logger.debug("Key-session generation succeeded")}).catch(function(v){m.logger.error("Error generating key-session request:",v),h.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.KEY_SYSTEM_ERROR,details:o.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},n._createLicenseXhr=function(c,d,h){var p=new XMLHttpRequest;p.responseType="arraybuffer",p.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,p,c,d,h);var g=this._licenseXhrSetup;if(g)try{g.call(this.hls,p,c),g=void 0}catch(v){m.logger.error(v)}try{p.readyState||p.open("POST",c,!0),g&&g.call(this.hls,p,c)}catch(v){throw new Error("issue setting up KeySystem license XHR "+v)}return p},n._onLicenseRequestReadyStageChange=function(c,d,h,p){switch(c.readyState){case 4:if(c.status===200){this._requestLicenseFailureCount=0,m.logger.log("License request succeeded");var g=c.response,v=this._licenseResponseCallback;if(v)try{g=v.call(this.hls,c,d)}catch(x){m.logger.error(x)}p(g)}else{if(m.logger.error("License Request XHR failed ("+d+"). Status: "+c.status+" ("+c.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>l){this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.KEY_SYSTEM_ERROR,details:o.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var A=l-this._requestLicenseFailureCount+1;m.logger.warn("Retrying license request, "+A+" attempts left"),this._requestLicense(h,p)}break}},n._generateLicenseRequestChallenge=function(c,d){switch(c.mediaKeySystemDomain){case f.KeySystems.WIDEVINE:return d}throw new Error("unsupported key-system: "+c.mediaKeySystemDomain)},n._requestLicense=function(c,d){m.logger.log("Requesting content license for key-system");var h=this._mediaKeysList[0];if(!h){m.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.KEY_SYSTEM_ERROR,details:o.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var p=this.getLicenseServerUrl(h.mediaKeySystemDomain),g=this._createLicenseXhr(p,c,d);m.logger.log("Sending license request to URL: "+p);var v=this._generateLicenseRequestChallenge(h,c);g.send(v)}catch(A){m.logger.error("Failure requesting DRM license: "+A),this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.KEY_SYSTEM_ERROR,details:o.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},n.onMediaAttached=function(c,d){if(!this._emeEnabled)return;var h=d.media;this._media=h,h.addEventListener("encrypted",this._onMediaEncrypted)},n.onMediaDetached=function(){var c=this._media,d=this._mediaKeysList;if(!c)return;c.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(d.map(function(h){if(h.mediaKeysSession)return h.mediaKeysSession.close().catch(function(){})})).then(function(){return c.setMediaKeys(null)}).catch(function(){})},n.onManifestParsed=function(c,d){if(!this._emeEnabled)return;var h=d.levels.map(function(g){return g.audioCodec}).filter(function(g){return!!g}),p=d.levels.map(function(g){return g.videoCodec}).filter(function(g){return!!g});this._attemptKeySystemAccess(f.KeySystems.WIDEVINE,h,p)},t(e,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),e}();L.default=u},"./src/controller/fps-controller.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/events.ts"),o=E("./src/utils/logger.ts"),m=function(){function f(t){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=t,this.registerListeners()}var s=f.prototype;return s.setStreamController=function(l){this.streamController=l},s.registerListeners=function(){this.hls.on(I.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},s.unregisterListeners=function(){this.hls.off(I.Events.MEDIA_ATTACHING,this.onMediaAttaching)},s.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},s.onMediaAttaching=function(l,a){var r=this.hls.config;if(r.capLevelOnFPSDrop){var u=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=u,u&&typeof u.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},s.checkFPS=function(l,a,r){var u=performance.now();if(a){if(this.lastTime){var e=u-this.lastTime,n=r-this.lastDroppedFrames,i=a-this.lastDecodedFrames,c=1e3*n/e,d=this.hls;if(d.trigger(I.Events.FPS_DROP,{currentDropped:n,currentDecoded:i,totalDroppedFrames:r}),c>0&&n>d.config.fpsDroppedMonitoringThreshold*i){var h=d.currentLevel;o.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=h)&&(h=h-1,d.trigger(I.Events.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:d.currentLevel}),d.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=u,this.lastDroppedFrames=r,this.lastDecodedFrames=a}},s.checkFPSInterval=function(){var l=this.media;if(l)if(this.isVideoPlaybackQualityAvailable){var a=l.getVideoPlaybackQuality();this.checkFPS(l,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(l,l.webkitDecodedFrameCount,l.webkitDroppedFrameCount)},f}();L.default=m},"./src/controller/fragment-finders.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"findFragmentByPDT",function(){return m}),E.d(L,"findFragmentByPTS",function(){return f}),E.d(L,"fragmentWithinToleranceTest",function(){return s}),E.d(L,"pdtWithinToleranceTest",function(){return t}),E.d(L,"findFragWithCC",function(){return l});var I=E("./src/polyfills/number.ts"),o=E("./src/utils/binary-search.ts");function m(a,r,u){if(r===null||!Array.isArray(a)||!a.length||!Object(I.isFiniteNumber)(r))return null;var e=a[0].programDateTime;if(r<(e||0))return null;var n=a[a.length-1].endProgramDateTime;if(r>=(n||0))return null;u=u||0;for(var i=0;i<a.length;++i){var c=a[i];if(t(r,u,c))return c}return null}function f(a,r,u,e){u===void 0&&(u=0),e===void 0&&(e=0);var n=null;if(a?n=r[a.sn-r[0].sn+1]||null:u===0&&r[0].start===0&&(n=r[0]),n&&s(u,e,n)===0)return n;var i=o.default.search(r,s.bind(null,u,e));return i||n}function s(a,r,u){a===void 0&&(a=0),r===void 0&&(r=0);var e=Math.min(r,u.duration+(u.deltaPTS?u.deltaPTS:0));return u.start+u.duration-e<=a?1:u.start-e>a&&u.start?-1:0}function t(a,r,u){var e=Math.min(r,u.duration+(u.deltaPTS?u.deltaPTS:0))*1e3,n=u.endProgramDateTime||0;return n-e>a}function l(a,r){return o.default.search(a,function(u){return u.cc<r?1:u.cc>r?-1:0})}},"./src/controller/fragment-tracker.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"FragmentState",function(){return m}),E.d(L,"FragmentTracker",function(){return f});var I=E("./src/events.ts"),o=E("./src/types/loader.ts"),m;(function(l){l.NOT_LOADED="NOT_LOADED",l.BACKTRACKED="BACKTRACKED",l.APPENDING="APPENDING",l.PARTIAL="PARTIAL",l.OK="OK"})(m||(m={}));var f=function(){function l(r){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=r,this._registerListeners()}var a=l.prototype;return a._registerListeners=function(){var u=this.hls;u.on(I.Events.BUFFER_APPENDED,this.onBufferAppended,this),u.on(I.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.on(I.Events.FRAG_LOADED,this.onFragLoaded,this)},a._unregisterListeners=function(){var u=this.hls;u.off(I.Events.BUFFER_APPENDED,this.onBufferAppended,this),u.off(I.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.off(I.Events.FRAG_LOADED,this.onFragLoaded,this)},a.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},a.getAppendedFrag=function(u,e){if(e===o.PlaylistLevelType.MAIN){var n=this.activeFragment,i=this.activeParts;if(!n)return null;if(i)for(var c=i.length;c--;){var d=i[c],h=d?d.end:n.appendedPTS;if(d.start<=u&&h!==void 0&&u<=h)return c>9&&(this.activeParts=i.slice(c-9)),d}else if(n.start<=u&&n.appendedPTS!==void 0&&u<=n.appendedPTS)return n}return this.getBufferedFrag(u,e)},a.getBufferedFrag=function(u,e){for(var n=this.fragments,i=Object.keys(n),c=i.length;c--;){var d=n[i[c]];if((d==null?void 0:d.body.type)===e&&d.buffered){var h=d.body;if(h.start<=u&&u<=h.end)return h}}return null},a.detectEvictedFragments=function(u,e,n){var i=this;Object.keys(this.fragments).forEach(function(c){var d=i.fragments[c];if(!d)return;if(!d.buffered){d.body.type===n&&i.removeFragment(d.body);return}var h=d.range[u];if(!h)return;h.time.some(function(p){var g=!i.isTimeBuffered(p.startPTS,p.endPTS,e);return g&&i.removeFragment(d.body),g})})},a.detectPartialFragments=function(u){var e=this,n=this.timeRanges,i=u.frag,c=u.part;if(!n||i.sn==="initSegment")return;var d=t(i),h=this.fragments[d];if(!h)return;Object.keys(n).forEach(function(p){var g=i.elementaryStreams[p];if(!g)return;var v=n[p],A=c!==null||g.partial===!0;h.range[p]=e.getBufferedTimes(i,c,A,v)}),h.backtrack=h.loaded=null,Object.keys(h.range).length?h.buffered=!0:this.removeFragment(h.body)},a.fragBuffered=function(u){var e=t(u),n=this.fragments[e];n&&(n.backtrack=n.loaded=null,n.buffered=!0)},a.getBufferedTimes=function(u,e,n,i){for(var c={time:[],partial:n},d=e?e.start:u.start,h=e?e.end:u.end,p=u.minEndPTS||h,g=u.maxStartPTS||d,v=0;v<i.length;v++){var A=i.start(v)-this.bufferPadding,x=i.end(v)+this.bufferPadding;if(g>=A&&p<=x){c.time.push({startPTS:Math.max(d,i.start(v)),endPTS:Math.min(h,i.end(v))});break}else if(d<x&&h>A)c.partial=!0,c.time.push({startPTS:Math.max(d,i.start(v)),endPTS:Math.min(h,i.end(v))});else if(h<=A)break}return c},a.getPartialFragment=function(u){var e=null,n,i,c,d=0,h=this.bufferPadding,p=this.fragments;return Object.keys(p).forEach(function(g){var v=p[g];if(!v)return;s(v)&&(i=v.body.start-h,c=v.body.end+h,u>=i&&u<=c&&(n=Math.min(u-i,c-u),d<=n&&(e=v.body,d=n)))}),e},a.getState=function(u){var e=t(u),n=this.fragments[e];return n?n.buffered?s(n)?m.PARTIAL:m.OK:n.backtrack?m.BACKTRACKED:m.APPENDING:m.NOT_LOADED},a.backtrack=function(u,e){var n=t(u),i=this.fragments[n];if(!i||i.backtrack)return null;var c=i.backtrack=e||i.loaded;return i.loaded=null,c},a.getBacktrackData=function(u){var e=t(u),n=this.fragments[e];if(n){var i,c=n.backtrack;if(c!=null&&(i=c.payload)!==null&&i!==void 0&&i.byteLength)return c;this.removeFragment(u)}return null},a.isTimeBuffered=function(u,e,n){for(var i,c,d=0;d<n.length;d++){if(i=n.start(d)-this.bufferPadding,c=n.end(d)+this.bufferPadding,u>=i&&e<=c)return!0;if(e<=i)return!1}return!1},a.onFragLoaded=function(u,e){var n=e.frag,i=e.part;if(n.sn==="initSegment"||n.bitrateTest||i)return;var c=t(n);this.fragments[c]={body:n,loaded:e,backtrack:null,buffered:!1,range:Object.create(null)}},a.onBufferAppended=function(u,e){var n=this,i=e.frag,c=e.part,d=e.timeRanges;if(i.type===o.PlaylistLevelType.MAIN)if(this.activeFragment=i,c){var h=this.activeParts;h||(this.activeParts=h=[]),h.push(c)}else this.activeParts=null;this.timeRanges=d,Object.keys(d).forEach(function(p){var g=d[p];if(n.detectEvictedFragments(p,g),!c)for(var v=0;v<g.length;v++)i.appendedPTS=Math.max(g.end(v),i.appendedPTS||0)})},a.onFragBuffered=function(u,e){this.detectPartialFragments(e)},a.hasFragment=function(u){var e=t(u);return!!this.fragments[e]},a.removeFragmentsInRange=function(u,e,n){var i=this;Object.keys(this.fragments).forEach(function(c){var d=i.fragments[c];if(!d)return;if(d.buffered){var h=d.body;h.type===n&&h.start<e&&h.end>u&&i.removeFragment(h)}})},a.removeFragment=function(u){var e=t(u);u.stats.loaded=0,u.clearElementaryStreamInfo(),delete this.fragments[e]},a.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},l}();function s(l){var a,r;return l.buffered&&(((a=l.range.video)===null||a===void 0?void 0:a.partial)||((r=l.range.audio)===null||r===void 0?void 0:r.partial))}function t(l){return l.type+"_"+l.level+"_"+l.urlId+"_"+l.sn}},"./src/controller/gap-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"STALL_MINIMUM_DURATION_MS",function(){return s}),E.d(L,"MAX_START_GAP_JUMP",function(){return t}),E.d(L,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return l}),E.d(L,"SKIP_BUFFER_RANGE_START",function(){return a}),E.d(L,"default",function(){return r});var I=E("./src/utils/buffer-helper.ts"),o=E("./src/errors.ts"),m=E("./src/events.ts"),f=E("./src/utils/logger.ts"),s=250,t=2,l=.1,a=.05,r=function(){function u(n,i,c,d){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=n,this.media=i,this.fragmentTracker=c,this.hls=d}var e=u.prototype;return e.destroy=function(){this.hls=this.fragmentTracker=this.media=null},e.poll=function(i){var c=this.config,d=this.media,h=this.stalled,p=d.currentTime,g=d.seeking,v=this.seeking&&!g,A=!this.seeking&&g;if(this.seeking=g,p!==i){if(this.moved=!0,h!==null){if(this.stallReported){var x=self.performance.now()-h;f.logger.warn("playback not stuck anymore @"+p+", after "+Math.round(x)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((A||v)&&(this.stalled=null),d.paused||d.ended||d.playbackRate===0||!I.BufferHelper.getBuffered(d).length)return;var b=I.BufferHelper.bufferInfo(d,p,0),w=b.len>0,S=b.nextStart||0;if(!w&&!S)return;if(g){var T=b.len>t,C=!S||S-p>t&&!this.fragmentTracker.getPartialFragment(p);if(T||C)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var O,_=Math.max(S,b.start||0)-p,M=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,k=M==null||((O=M.details)===null||O===void 0)?void 0:O.live,R=k?M.details.targetduration*2:t;if(_>0&&_<=R){this._trySkipBufferHole(null);return}}var B=self.performance.now();if(h===null){this.stalled=B;return}var P=B-h;!g&&P>=s&&this._reportStall(b.len);var U=I.BufferHelper.bufferInfo(d,p,c.maxBufferHole);this._tryFixBufferStall(U,P)},e._tryFixBufferStall=function(i,c){var d=this.config,h=this.fragmentTracker,p=this.media,g=p.currentTime,v=h.getPartialFragment(g);if(v){var A=this._trySkipBufferHole(v);if(A)return}i.len>d.maxBufferHole&&c>d.highBufferWatchdogPeriod*1e3&&(f.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},e._reportStall=function(i){var c=this.hls,d=this.media,h=this.stallReported;h||(this.stallReported=!0,f.logger.warn("Playback stalling at @"+d.currentTime+" due to low buffer (buffer="+i+")"),c.trigger(m.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:i}))},e._trySkipBufferHole=function(i){for(var c=this.config,d=this.hls,h=this.media,p=h.currentTime,g=0,v=I.BufferHelper.getBuffered(h),A=0;A<v.length;A++){var x=v.start(A);if(p+c.maxBufferHole>=g&&p<x){var b=Math.max(x+a,h.currentTime+l);return f.logger.warn("skipping hole, adjusting currentTime from "+p+" to "+b),this.moved=!0,this.stalled=null,h.currentTime=b,i&&d.trigger(m.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+p+" to "+b,frag:i}),b}g=v.end(A)}return 0},e._tryNudgeBuffer=function(){var i=this.config,c=this.hls,d=this.media,h=d.currentTime,p=(this.nudgeRetry||0)+1;if(this.nudgeRetry=p,p<i.nudgeMaxRetry){var g=h+p*i.nudgeOffset;f.logger.warn("Nudging 'currentTime' from "+h+" to "+g),d.currentTime=g,c.trigger(m.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else f.logger.error("Playhead still not moving while enough data buffered @"+h+" after "+i.nudgeMaxRetry+" nudges"),c.trigger(m.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},u}()},"./src/controller/id3-track-controller.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/events.ts"),o=E("./src/utils/texttrack-utils.ts"),m=E("./src/demux/id3.ts"),f=.25,s=function(){function t(a){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=a,this._registerListeners()}var l=t.prototype;return l.destroy=function(){this._unregisterListeners()},l._registerListeners=function(){var r=this.hls;r.on(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),r.on(I.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(I.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),r.on(I.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},l._unregisterListeners=function(){var r=this.hls;r.off(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),r.off(I.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(I.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),r.off(I.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},l.onMediaAttached=function(r,u){this.media=u.media},l.onMediaDetaching=function(){if(!this.id3Track)return;Object(o.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},l.getID3Track=function(r){if(!this.media)return;for(var u=0;u<r.length;u++){var e=r[u];if(e.kind==="metadata"&&e.label==="id3")return Object(o.sendAddTrackEvent)(e,this.media),e}return this.media.addTextTrack("metadata","id3")},l.onFragParsingMetadata=function(r,u){if(!this.media)return;var e=u.frag,n=u.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var i=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,c=0;c<n.length;c++){var d=m.getID3Frames(n[c].data);if(d){var h=n[c].pts,p=c<n.length-1?n[c+1].pts:e.end,g=p-h;g<=0&&(p=h+f);for(var v=0;v<d.length;v++){var A=d[v];if(!m.isTimeStampFrame(A)){var x=new i(h,p,"");x.value=A,this.id3Track.addCue(x)}}}}},l.onBufferFlushing=function(r,u){var e=u.startOffset,n=u.endOffset,i=u.type;if(!i||i==="audio"){var c=this.id3Track;c&&Object(o.removeCuesInRange)(c,e,n)}},t}();L.default=s},"./src/controller/latency-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return t});var I=E("./src/errors.ts"),o=E("./src/events.ts"),m=E("./src/utils/logger.ts");function f(l,a){for(var r=0;r<a.length;r++){var u=a[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function s(l,a,r){return a&&f(l.prototype,a),r&&f(l,r),l}var t=function(){function l(r){var u=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 u.timeupdate()},this.hls=r,this.config=r.config,this.registerListeners()}var a=l.prototype;return a.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},a.registerListeners=function(){this.hls.on(o.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(o.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(o.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){this.hls.off(o.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(o.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(o.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(o.Events.ERROR,this.onError)},a.onMediaAttached=function(u,e){this.media=e.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},a.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},a.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},a.onLevelUpdated=function(u,e){var n=e.details;this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},a.onError=function(u,e){if(e.details!==I.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,m.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},a.timeupdate=function(){var u=this.media,e=this.levelDetails;if(!u||!e)return;this.currentTime=u.currentTime;var n=this.computeLatency();if(n===null)return;this._latency=n;var i=this.config,c=i.lowLatencyMode,d=i.maxLiveSyncPlaybackRate;if(!c||d===1)return;var h=this.targetLatency;if(h===null)return;var p=n-h,g=Math.min(this.maxLatency,h+e.targetduration),v=p<g;if(e.live&&v&&p>.05&&this.forwardBufferLength>1){var A=Math.min(2,Math.max(1,d)),x=Math.round(2/(1+Math.exp(-.75*p-this.edgeStalled))*20)/20;u.playbackRate=Math.min(A,Math.max(1,x))}else u.playbackRate!==1&&u.playbackRate!==0&&(u.playbackRate=1)},a.estimateLiveEdge=function(){var u=this.levelDetails;return u===null?null:u.edge+u.age},a.computeLatency=function(){var u=this.estimateLiveEdge();return u===null?null:u-this.currentTime},s(l,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var u=this.config,e=this.levelDetails;return u.liveMaxLatencyDuration!==void 0?u.liveMaxLatencyDuration:e?u.liveMaxLatencyDurationCount*e.targetduration:0}},{key:"targetLatency",get:function(){var u=this.levelDetails;if(u===null)return null;var e=u.holdBack,n=u.partHoldBack,i=u.targetduration,c=this.config,d=c.liveSyncDuration,h=c.liveSyncDurationCount,p=c.lowLatencyMode,g=this.hls.userConfig,v=p&&n||e;(g.liveSyncDuration||g.liveSyncDurationCount||v===0)&&(v=d!==void 0?d:h*i);var A=i,x=1;return v+Math.min(this.stallCount*x,A)}},{key:"liveSyncPosition",get:function(){var u=this.estimateLiveEdge(),e=this.targetLatency,n=this.levelDetails;if(u===null||e===null||n===null)return null;var i=n.edge,c=u-e-this.edgeStalled,d=i-n.totalduration,h=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(d,c),h)}},{key:"drift",get:function(){var u=this.levelDetails;return u===null?1:u.drift}},{key:"edgeStalled",get:function(){var u=this.levelDetails;if(u===null)return 0;var e=(this.config.lowLatencyMode&&u.partTarget||u.targetduration)*3;return Math.max(u.age-e,0)}},{key:"forwardBufferLength",get:function(){var u=this.media,e=this.levelDetails;if(!u||!e)return 0;var n=u.buffered.length;return n?u.buffered.end(n-1):e.edge-this.currentTime}}]),l}()},"./src/controller/level-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return c});var I=E("./src/types/level.ts"),o=E("./src/events.ts"),m=E("./src/errors.ts"),f=E("./src/utils/codecs.ts"),s=E("./src/controller/level-helper.ts"),t=E("./src/controller/base-playlist-controller.ts"),l=E("./src/types/loader.ts");function a(){return a=Object.assign||function(d){for(var h=1;h<arguments.length;h++){var p=arguments[h];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(d[g]=p[g])}return d},a.apply(this,arguments)}function r(d,h){for(var p=0;p<h.length;p++){var g=h[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function u(d,h,p){return h&&r(d.prototype,h),p&&r(d,p),d}function e(d,h){d.prototype=Object.create(h.prototype),d.prototype.constructor=d,n(d,h)}function n(d,h){return n=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},n(d,h)}var i=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),c=function(d){e(h,d);function h(g){var v;return v=d.call(this,g,"[level-controller]")||this,v._levels=[],v._firstLevel=-1,v._startLevel=void 0,v.currentLevelIndex=-1,v.manualLevelIndex=-1,v.onParsedComplete=void 0,v._registerListeners(),v}var p=h.prototype;return p._registerListeners=function(){var v=this.hls;v.on(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this),v.on(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),v.on(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),v.on(o.Events.FRAG_LOADED,this.onFragLoaded,this),v.on(o.Events.ERROR,this.onError,this)},p._unregisterListeners=function(){var v=this.hls;v.off(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this),v.off(o.Events.LEVEL_LOADED,this.onLevelLoaded,this),v.off(o.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),v.off(o.Events.FRAG_LOADED,this.onFragLoaded,this),v.off(o.Events.ERROR,this.onError,this)},p.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,d.prototype.destroy.call(this)},p.startLoad=function(){var v=this._levels;v.forEach(function(A){A.loadError=0}),d.prototype.startLoad.call(this)},p.onManifestLoaded=function(v,A){var x=[],b=[],w=[],S,T={},C,O=!1,_=!1,M=!1;if(A.levels.forEach(function(P){var U=P.attrs;O=O||!!(P.width&&P.height),_=_||!!P.videoCodec,M=M||!!P.audioCodec,i&&P.audioCodec&&P.audioCodec.indexOf("mp4a.40.34")!==-1&&(P.audioCodec=void 0);var j=P.bitrate+"-"+P.attrs.RESOLUTION+"-"+P.attrs.CODECS;C=T[j],C?C.url.push(P.url):(C=new I.Level(P),T[j]=C,x.push(C)),U&&(U.AUDIO&&Object(s.addGroupId)(C,"audio",U.AUDIO),U.SUBTITLES&&Object(s.addGroupId)(C,"text",U.SUBTITLES))}),(O||_)&&M&&(x=x.filter(function(P){var U=P.videoCodec,j=P.width,H=P.height;return!!U||!!(j&&H)})),x=x.filter(function(P){var U=P.audioCodec,j=P.videoCodec;return(!U||Object(f.isCodecSupportedInMp4)(U,"audio"))&&(!j||Object(f.isCodecSupportedInMp4)(j,"video"))}),A.audioTracks&&(b=A.audioTracks.filter(function(P){return!P.audioCodec||Object(f.isCodecSupportedInMp4)(P.audioCodec,"audio")}),Object(s.assignTrackIdsByGroup)(b)),A.subtitles&&(w=A.subtitles,Object(s.assignTrackIdsByGroup)(w)),x.length>0){S=x[0].bitrate,x.sort(function(P,U){return P.bitrate-U.bitrate}),this._levels=x;for(var k=0;k<x.length;k++)if(x[k].bitrate===S){this._firstLevel=k,this.log("manifest loaded, "+x.length+" level(s) found, first bitrate: "+S);break}var R=M&&!_,B={levels:x,audioTracks:b,subtitleTracks:w,firstLevel:this._firstLevel,stats:A.stats,audio:M,video:_,altAudio:!R&&b.some(function(P){return!!P.url})};this.hls.trigger(o.Events.MANIFEST_PARSED,B),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(o.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:A.url,reason:"no level with compatible codecs found in manifest"})},p.onError=function(v,A){if(d.prototype.onError.call(this,v,A),A.fatal)return;var x=A.context,b=this._levels[this.currentLevelIndex];if(x&&(x.type===l.PlaylistContextType.AUDIO_TRACK&&b.audioGroupIds&&x.groupId===b.audioGroupIds[b.urlId]||x.type===l.PlaylistContextType.SUBTITLE_TRACK&&b.textGroupIds&&x.groupId===b.textGroupIds[b.urlId])){this.redundantFailover(this.currentLevelIndex);return}var w=!1,S=!0,T;switch(A.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.ErrorDetails.FRAG_LOAD_TIMEOUT:case m.ErrorDetails.KEY_LOAD_ERROR:case m.ErrorDetails.KEY_LOAD_TIMEOUT:if(A.frag){var C=this._levels[A.frag.level];C?(C.fragmentError++,C.fragmentError>this.hls.config.fragLoadingMaxRetry&&(T=A.frag.level)):T=A.frag.level}break;case m.ErrorDetails.LEVEL_LOAD_ERROR:case m.ErrorDetails.LEVEL_LOAD_TIMEOUT:x&&(x.deliveryDirectives&&(S=!1),T=x.level),w=!0;break;case m.ErrorDetails.REMUX_ALLOC_ERROR:T=A.level,w=!0;break}T!==void 0&&this.recoverLevel(A,T,w,S)},p.recoverLevel=function(v,A,x,b){var w=v.details,S=this._levels[A];if(S.loadError++,x){var T=this.retryLoadingOrFail(v);if(T)v.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(b){var C=S.url.length;if(C>1&&S.loadError<C)v.levelRetry=!0,this.redundantFailover(A);else if(this.manualLevelIndex===-1){var O=A===0?this._levels.length-1:A-1;this.currentLevelIndex!==O&&this._levels[O].loadError===0&&(this.warn(w+": switch to "+O),v.levelRetry=!0,this.hls.nextAutoLevel=O)}}},p.redundantFailover=function(v){var A=this._levels[v],x=A.url.length;if(x>1){var b=(A.urlId+1)%x;this.warn("Switching to redundant URL-id "+b),this._levels.forEach(function(w){w.urlId=b}),this.level=v}},p.onFragLoaded=function(v,A){var x=A.frag;if(x!==void 0&&x.type===l.PlaylistLevelType.MAIN){var b=this._levels[x.level];b!==void 0&&(b.fragmentError=0,b.loadError=0)}},p.onLevelLoaded=function(v,A){var x,b=A.level,w=A.details,S=this._levels[b];if(!S){var T;this.warn("Invalid level index "+b),(T=A.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(w.deltaUpdateFailed=!0);return}b===this.currentLevelIndex?(S.fragmentError===0&&(S.loadError=0,this.retryCount=0),this.playlistLoaded(b,A,S.details)):(x=A.deliveryDirectives)!==null&&x!==void 0&&x.skip&&(w.deltaUpdateFailed=!0)},p.onAudioTrackSwitched=function(v,A){var x=this.hls.levels[this.currentLevelIndex];if(!x)return;if(x.audioGroupIds){for(var b=-1,w=this.hls.audioTracks[A.id].groupId,S=0;S<x.audioGroupIds.length;S++)if(x.audioGroupIds[S]===w){b=S;break}b!==x.urlId&&(x.urlId=b,this.startLoad())}},p.loadPlaylist=function(v){var A=this.currentLevelIndex,x=this._levels[A];if(this.canLoad&&x&&x.url.length>0){var b=x.urlId,w=x.url[b];if(v)try{w=v.addDirectives(w)}catch(S){this.warn("Could not construct new URL with HLS Delivery Directives: "+S)}this.log("Attempt loading level index "+A+(v?" at sn "+v.msn+" part "+v.part:"")+" with URL-id "+b+" "+w),this.clearTimer(),this.hls.trigger(o.Events.LEVEL_LOADING,{url:w,level:A,id:b,deliveryDirectives:v||null})}},p.removeLevel=function(v,A){var x=function(S,T){return T!==A},b=this._levels.filter(function(w,S){return S!==v?!0:w.url.length>1&&A!==void 0?(w.url=w.url.filter(x),w.audioGroupIds&&(w.audioGroupIds=w.audioGroupIds.filter(x)),w.textGroupIds&&(w.textGroupIds=w.textGroupIds.filter(x)),w.urlId=0,!0):!1}).map(function(w,S){var T=w.details;return T!=null&&T.fragments&&T.fragments.forEach(function(C){C.level=S}),w});this._levels=b,this.hls.trigger(o.Events.LEVELS_UPDATED,{levels:b})},u(h,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(v){var A,x=this._levels;if(x.length===0)return;if(this.currentLevelIndex===v&&(A=x[v])!==null&&A!==void 0&&A.details)return;if(v<0||v>=x.length){var b=v<0;if(this.hls.trigger(o.Events.ERROR,{type:m.ErrorTypes.OTHER_ERROR,details:m.ErrorDetails.LEVEL_SWITCH_ERROR,level:v,fatal:b,reason:"invalid level idx"}),b)return;v=Math.min(v,x.length-1)}this.clearTimer();var w=this.currentLevelIndex,S=x[w],T=x[v];this.log("switching to level "+v+" from "+w),this.currentLevelIndex=v;var C=a({},T,{level:v,maxBitrate:T.maxBitrate,uri:T.uri,urlId:T.urlId});delete C._urlId,this.hls.trigger(o.Events.LEVEL_SWITCHING,C);var O=T.details;if(!O||O.live){var _=this.switchParams(T.uri,S==null?void 0:S.details);this.loadPlaylist(_)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(v){this.manualLevelIndex=v,this._startLevel===void 0&&(this._startLevel=v),v!==-1&&(this.level=v)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(v){this._firstLevel=v}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var v=this.hls.config.startLevel;return v!==void 0?v:this._firstLevel}else return this._startLevel},set:function(v){this._startLevel=v}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(v){this.level=v,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=v)}}]),h}(t.default)},"./src/controller/level-helper.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"addGroupId",function(){return m}),E.d(L,"assignTrackIdsByGroup",function(){return f}),E.d(L,"updatePTS",function(){return s}),E.d(L,"updateFragPTSDTS",function(){return l}),E.d(L,"mergeDetails",function(){return a}),E.d(L,"mapPartIntersection",function(){return r}),E.d(L,"mapFragmentIntersection",function(){return u}),E.d(L,"adjustSliding",function(){return e}),E.d(L,"addSliding",function(){return n}),E.d(L,"computeReloadInterval",function(){return i}),E.d(L,"getFragmentWithSN",function(){return c}),E.d(L,"getPartWith",function(){return d});var I=E("./src/polyfills/number.ts"),o=E("./src/utils/logger.ts");function m(h,p,g){switch(p){case"audio":h.audioGroupIds||(h.audioGroupIds=[]),h.audioGroupIds.push(g);break;case"text":h.textGroupIds||(h.textGroupIds=[]),h.textGroupIds.push(g);break}}function f(h){var p={};h.forEach(function(g){var v=g.groupId||"";g.id=p[v]=p[v]||0,p[v]++})}function s(h,p,g){var v=h[p],A=h[g];t(v,A)}function t(h,p){var g=p.startPTS;if(Object(I.isFiniteNumber)(g)){var v=0,A;p.sn>h.sn?(v=g-h.start,A=h):(v=h.start-g,A=p),A.duration!==v&&(A.duration=v)}else if(p.sn>h.sn){var x=h.cc===p.cc;x&&h.minEndPTS?p.start=h.start+(h.minEndPTS-h.start):p.start=h.start+h.duration}else p.start=Math.max(h.start-p.duration,0)}function l(h,p,g,v,A,x){var b=v-g;b<=0&&(o.logger.warn("Fragment should have a positive duration",p),v=g+p.duration,x=A+p.duration);var w=g,S=v,T=p.startPTS,C=p.endPTS;if(Object(I.isFiniteNumber)(T)){var O=Math.abs(T-g);Object(I.isFiniteNumber)(p.deltaPTS)?p.deltaPTS=Math.max(O,p.deltaPTS):p.deltaPTS=O,w=Math.max(g,T),g=Math.min(g,T),A=Math.min(A,p.startDTS),S=Math.min(v,C),v=Math.max(v,C),x=Math.max(x,p.endDTS)}p.duration=v-g;var _=g-p.start;p.appendedPTS=v,p.start=p.startPTS=g,p.maxStartPTS=w,p.startDTS=A,p.endPTS=v,p.minEndPTS=S,p.endDTS=x;var M=p.sn;if(!h||M<h.startSN||M>h.endSN)return 0;var k,R=M-h.startSN,B=h.fragments;for(B[R]=p,k=R;k>0;k--)t(B[k],B[k-1]);for(k=R;k<B.length-1;k++)t(B[k],B[k+1]);return h.fragmentHint&&t(B[B.length-1],h.fragmentHint),h.PTSKnown=h.alignedSliding=!0,_}function a(h,p){for(var g=null,v=h.fragments,A=v.length-1;A>=0;A--){var x=v[A].initSegment;if(x){g=x;break}}h.fragmentHint&&delete h.fragmentHint.endPTS;var b=0,w;if(u(h,p,function(k,R){k.relurl&&(b=k.cc-R.cc),Object(I.isFiniteNumber)(k.startPTS)&&Object(I.isFiniteNumber)(k.endPTS)&&(R.start=R.startPTS=k.startPTS,R.startDTS=k.startDTS,R.appendedPTS=k.appendedPTS,R.maxStartPTS=k.maxStartPTS,R.endPTS=k.endPTS,R.endDTS=k.endDTS,R.minEndPTS=k.minEndPTS,R.duration=k.endPTS-k.startPTS,R.duration&&(w=R),p.PTSKnown=p.alignedSliding=!0),R.elementaryStreams=k.elementaryStreams,R.loader=k.loader,R.stats=k.stats,R.urlId=k.urlId,k.initSegment&&(R.initSegment=k.initSegment,g=k.initSegment)}),g){var S=p.fragmentHint?p.fragments.concat(p.fragmentHint):p.fragments;S.forEach(function(k){var R;(!k.initSegment||k.initSegment.relurl===((R=g)===null||R===void 0?void 0:R.relurl))&&(k.initSegment=g)})}if(p.skippedSegments&&(p.deltaUpdateFailed=p.fragments.some(function(k){return!k}),p.deltaUpdateFailed)){o.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var T=p.skippedSegments;T--;)p.fragments.shift();p.startSN=p.fragments[0].sn,p.startCC=p.fragments[0].cc}var C=p.fragments;if(b){o.logger.warn("discontinuity sliding from playlist, take drift into account");for(var O=0;O<C.length;O++)C[O].cc+=b}p.skippedSegments&&(p.startCC=p.fragments[0].cc),r(h.partList,p.partList,function(k,R){R.elementaryStreams=k.elementaryStreams,R.stats=k.stats}),w?l(p,w,w.startPTS,w.endPTS,w.startDTS,w.endDTS):e(h,p),C.length&&(p.totalduration=p.edge-C[0].start),p.driftStartTime=h.driftStartTime,p.driftStart=h.driftStart;var _=p.advancedDateTime;if(p.advanced&&_){var M=p.edge;p.driftStart||(p.driftStartTime=_,p.driftStart=M),p.driftEndTime=_,p.driftEnd=M}else p.driftEndTime=h.driftEndTime,p.driftEnd=h.driftEnd,p.advancedDateTime=h.advancedDateTime}function r(h,p,g){if(h&&p)for(var v=0,A=0,x=h.length;A<=x;A++){var b=h[A],w=p[A+v];b&&w&&b.index===w.index&&b.fragment.sn===w.fragment.sn?g(b,w):v--}}function u(h,p,g){for(var v=p.skippedSegments,A=Math.max(h.startSN,p.startSN)-p.startSN,x=(h.fragmentHint?1:0)+(v?p.endSN:Math.min(h.endSN,p.endSN))-p.startSN,b=p.startSN-h.startSN,w=p.fragmentHint?p.fragments.concat(p.fragmentHint):p.fragments,S=h.fragmentHint?h.fragments.concat(h.fragmentHint):h.fragments,T=A;T<=x;T++){var C=S[b+T],O=w[T];v&&!O&&T<v&&(O=p.fragments[T]=C),C&&O&&g(C,O)}}function e(h,p){var g=p.startSN+p.skippedSegments-h.startSN,v=h.fragments;if(g<0||g>=v.length)return;n(p,v[g].start)}function n(h,p){if(p){for(var g=h.fragments,v=h.skippedSegments;v<g.length;v++)g[v].start+=p;h.fragmentHint&&(h.fragmentHint.start+=p)}}function i(h,p){var g=1e3*h.levelTargetDuration,v=g/2,A=h.age,x=A>0&&A<g*3,b=p.loading.end-p.loading.start,w,S=h.availabilityDelay;if(h.updated===!1)if(x){var T=333*h.misses;w=Math.max(Math.min(v,b*2),T),h.availabilityDelay=(h.availabilityDelay||0)+w}else w=v;else x?(S=Math.min(S||g/2,A),h.availabilityDelay=S,w=S+g-A):w=g-b;return Math.round(w)}function c(h,p,g){if(!h||!h.details)return null;var v=h.details,A=v.fragments[p-v.startSN];return A||(A=v.fragmentHint,A&&A.sn===p?A:p<v.startSN&&g&&g.sn===p?g:null)}function d(h,p,g){if(!h||!h.details)return null;var v=h.details.partList;if(v)for(var A=v.length;A--;){var x=v[A];if(x.index===g&&x.fragment.sn===p)return x}return null}},"./src/controller/stream-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return v});var I=E("./src/polyfills/number.ts"),o=E("./src/controller/base-stream-controller.ts"),m=E("./src/is-supported.ts"),f=E("./src/events.ts"),s=E("./src/utils/buffer-helper.ts"),t=E("./src/controller/fragment-tracker.ts"),l=E("./src/types/loader.ts"),a=E("./src/loader/fragment.ts"),r=E("./src/demux/transmuxer-interface.ts"),u=E("./src/types/transmuxer.ts"),e=E("./src/controller/gap-controller.ts"),n=E("./src/errors.ts"),i=E("./src/utils/logger.ts");function c(A,x){for(var b=0;b<x.length;b++){var w=x[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(A,w.key,w)}}function d(A,x,b){return x&&c(A.prototype,x),b&&c(A,b),A}function h(A,x){A.prototype=Object.create(x.prototype),A.prototype.constructor=A,p(A,x)}function p(A,x){return p=Object.setPrototypeOf||function(w,S){return w.__proto__=S,w},p(A,x)}var g=100,v=function(A){h(x,A);function x(w,S){var T;return T=A.call(this,w,S,"[stream-controller]")||this,T.audioCodecSwap=!1,T.gapController=null,T.level=-1,T._forceStartLoad=!1,T.altAudio=!1,T.audioOnly=!1,T.fragPlaying=null,T.onvplaying=null,T.onvseeked=null,T.fragLastKbps=0,T.stalled=!1,T.couldBacktrack=!1,T.audioCodecSwitch=!1,T.videoBuffer=null,T._registerListeners(),T}var b=x.prototype;return b._registerListeners=function(){var S=this.hls;S.on(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.on(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.on(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.on(f.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.on(f.Events.LEVEL_LOADING,this.onLevelLoading,this),S.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.on(f.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.on(f.Events.ERROR,this.onError,this),S.on(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.on(f.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.on(f.Events.BUFFER_CREATED,this.onBufferCreated,this),S.on(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.on(f.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b._unregisterListeners=function(){var S=this.hls;S.off(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),S.off(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),S.off(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),S.off(f.Events.MANIFEST_PARSED,this.onManifestParsed,this),S.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.off(f.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),S.off(f.Events.ERROR,this.onError,this),S.off(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),S.off(f.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.off(f.Events.BUFFER_CREATED,this.onBufferCreated,this),S.off(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),S.off(f.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),S.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},b.startLoad=function(S){if(this.levels){var T=this.lastCurrentTime,C=this.hls;if(this.stopLoad(),this.setInterval(g),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var O=C.startLevel;O===-1&&(C.config.testBandwidth?(O=0,this.bitrateTest=!0):O=C.nextAutoLevel),this.level=C.nextLoadLevel=O,this.loadedmetadata=!1}T>0&&S===-1&&(this.log("Override startPosition with lastCurrentTime @"+T.toFixed(3)),S=T),this.state=o.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=S,this.tick()}else this._forceStartLoad=!0,this.state=o.State.STOPPED},b.stopLoad=function(){this._forceStartLoad=!1,A.prototype.stopLoad.call(this)},b.doTick=function(){switch(this.state){case o.State.IDLE:this.doTickIdle();break;case o.State.WAITING_LEVEL:{var S,T=this.levels,C=this.level,O=T==null||((S=T[C])===null||S===void 0)?void 0:S.details;if(O&&(!O.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(O))break;this.state=o.State.IDLE;break}break}case o.State.FRAG_LOADING_WAITING_RETRY:{var _,M=self.performance.now(),k=this.retryDate;(!k||M>=k||(_=this.media)!==null&&_!==void 0&&_.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=o.State.IDLE)}break;default:break}this.onTickEnd()},b.onTickEnd=function(){A.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},b.doTickIdle=function(){var S,T,C=this.hls,O=this.levelLastLoaded,_=this.levels,M=this.media,k=C.config,R=C.nextLoadLevel;if(O===null||!M&&(this.startFragRequested||!k.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!_||!_[R])return;var B=_[R];this.level=C.nextLoadLevel=R;var P=B.details;if(!P||this.state===o.State.WAITING_LEVEL||P.live&&this.levelLastLoaded!==R){this.state=o.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:M,l.PlaylistLevelType.MAIN);if(U===null)return;var j=U.len,H=this.getMaxBufferLength(B.maxBitrate);if(j>=H)return;if(this._streamEnded(U,P)){var W={};this.altAudio&&(W.type="video"),this.hls.trigger(f.Events.BUFFER_EOS,W),this.state=o.State.ENDED;return}var G=U.end,V=this.getNextFragment(G,P);if(this.couldBacktrack&&!this.fragPrevious&&V&&V.sn!=="initSegment"){var Z=V.sn-P.startSN;Z>1&&(V=P.fragments[Z-1],this.fragmentTracker.removeFragment(V))}if(V&&this.fragmentTracker.getState(V)===t.FragmentState.OK&&this.nextLoadPosition>G){var Y=this.audioOnly&&!this.altAudio?a.ElementaryStreamTypes.AUDIO:a.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(M,Y,l.PlaylistLevelType.MAIN),V=this.getNextFragment(this.nextLoadPosition,P)}if(!V)return;V.initSegment&&!V.initSegment.data&&!this.bitrateTest&&(V=V.initSegment),((S=V.decryptdata)===null||S===void 0?void 0:S.keyFormat)==="identity"&&!((T=V.decryptdata)!==null&&T!==void 0&&T.key)?this.loadKey(V,P):this.loadFragment(V,P,G)},b.loadFragment=function(S,T,C){var O,_=this.fragmentTracker.getState(S);if(this.fragCurrent=S,_===t.FragmentState.BACKTRACKED){var M=this.fragmentTracker.getBacktrackData(S);if(M){this._handleFragmentLoadProgress(M),this._handleFragmentLoadComplete(M);return}else _=t.FragmentState.NOT_LOADED}_===t.FragmentState.NOT_LOADED||_===t.FragmentState.PARTIAL?S.sn==="initSegment"?this._loadInitSegment(S):this.bitrateTest?(S.bitrateTest=!0,this.log("Fragment "+S.sn+" of level "+S.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(S)):(this.startFragRequested=!0,A.prototype.loadFragment.call(this,S,T,C)):_===t.FragmentState.APPENDING?this.reduceMaxBufferLength(S.duration)&&this.fragmentTracker.removeFragment(S):((O=this.media)===null||O===void 0?void 0:O.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},b.getAppendedFrag=function(S){var T=this.fragmentTracker.getAppendedFrag(S,l.PlaylistLevelType.MAIN);return T&&"fragment"in T?T.fragment:T},b.getBufferedFrag=function(S){return this.fragmentTracker.getBufferedFrag(S,l.PlaylistLevelType.MAIN)},b.followingBufferedFrag=function(S){return S?this.getBufferedFrag(S.end+.5):null},b.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},b.nextLevelSwitch=function(){var S=this.levels,T=this.media;if(T!=null&&T.readyState){var C,O=this.getAppendedFrag(T.currentTime);if(O&&O.start>1&&this.flushMainBuffer(0,O.start-1),!T.paused&&S){var _=this.hls.nextLoadLevel,M=S[_],k=this.fragLastKbps;k&&this.fragCurrent?C=this.fragCurrent.duration*M.maxBitrate/(1e3*k)+1:C=0}else C=0;var R=this.getBufferedFrag(T.currentTime+C);if(R){var B=this.followingBufferedFrag(R);if(B){this.abortCurrentFrag();var P=B.maxStartPTS?B.maxStartPTS:B.start,U=B.duration,j=Math.max(R.end,P+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(j,Number.POSITIVE_INFINITY)}}}},b.abortCurrentFrag=function(){var S=this.fragCurrent;this.fragCurrent=null,S!=null&&S.loader&&S.loader.abort(),this.state===o.State.KEY_LOADING&&(this.state=o.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},b.flushMainBuffer=function(S,T){A.prototype.flushMainBuffer.call(this,S,T,this.altAudio?"video":null)},b.onMediaAttached=function(S,T){A.prototype.onMediaAttached.call(this,S,T);var C=T.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),C.addEventListener("playing",this.onvplaying),C.addEventListener("seeked",this.onvseeked),this.gapController=new e.default(this.config,C,this.fragmentTracker,this.hls)},b.onMediaDetaching=function(){var S=this.media;S&&(S.removeEventListener("playing",this.onvplaying),S.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),A.prototype.onMediaDetaching.call(this)},b.onMediaPlaying=function(){this.tick()},b.onMediaSeeked=function(){var S=this.media,T=S?S.currentTime:null;Object(I.isFiniteNumber)(T)&&this.log("Media seeked to "+T.toFixed(3)),this.tick()},b.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(f.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},b.onManifestParsed=function(S,T){var C=!1,O=!1,_;T.levels.forEach(function(M){_=M.audioCodec,_&&(_.indexOf("mp4a.40.2")!==-1&&(C=!0),_.indexOf("mp4a.40.5")!==-1&&(O=!0))}),this.audioCodecSwitch=C&&O&&!Object(m.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=T.levels,this.startFragRequested=!1},b.onLevelLoading=function(S,T){var C=this.levels;if(!C||this.state!==o.State.IDLE)return;var O=C[T.level];(!O.details||O.details.live&&this.levelLastLoaded!==T.level||this.waitForCdnTuneIn(O.details))&&(this.state=o.State.WAITING_LEVEL)},b.onLevelLoaded=function(S,T){var C,O=this.levels,_=T.level,M=T.details,k=M.totalduration;if(!O){this.warn("Levels were reset while loading level "+_);return}this.log("Level "+_+" loaded ["+M.startSN+","+M.endSN+"], cc ["+M.startCC+", "+M.endCC+"] duration:"+k);var R=this.fragCurrent;R&&(this.state===o.State.FRAG_LOADING||this.state===o.State.FRAG_LOADING_WAITING_RETRY)&&(R.level!==T.level&&R.loader&&(this.state=o.State.IDLE,R.loader.abort()));var B=O[_],P=0;if(M.live||(C=B.details)!==null&&C!==void 0&&C.live){if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed)return;P=this.alignPlaylists(M,B.details)}if(B.details=M,this.levelLastLoaded=_,this.hls.trigger(f.Events.LEVEL_UPDATED,{details:M,level:_}),this.state===o.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(M))return;this.state=o.State.IDLE}this.startFragRequested?M.live&&this.synchronizeToLiveEdge(M):this.setStartPosition(M,P),this.tick()},b._handleFragmentLoadProgress=function(S){var T,C=S.frag,O=S.part,_=S.payload,M=this.levels;if(!M){this.warn("Levels were reset while fragment load was in progress. Fragment "+C.sn+" of level "+C.level+" will not be buffered");return}var k=M[C.level],R=k.details;if(!R){this.warn("Dropping fragment "+C.sn+" of level "+C.level+" after level details were reset");return}var B=k.videoCodec,P=R.PTSKnown||!R.live,U=(T=C.initSegment)===null||T===void 0?void 0:T.data,j=this._getAudioCodec(k),H=this.transmuxer=this.transmuxer||new r.default(this.hls,l.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),W=O?O.index:-1,G=W!==-1,V=new u.ChunkMetadata(C.level,C.sn,C.stats.chunkCount,_.byteLength,W,G),Z=this.initPTS[C.cc];H.push(_,U,j,B,C,O,R.totalduration,P,V,Z)},b.onAudioTrackSwitching=function(S,T){var C=this.altAudio,O=!!T.url,_=T.id;if(!O){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var M=this.fragCurrent;M!=null&&M.loader&&(this.log("Switching to main audio track, cancel main fragment load"),M.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var k=this.hls;C&&k.trigger(f.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),k.trigger(f.Events.AUDIO_TRACK_SWITCHED,{id:_})}},b.onAudioTrackSwitched=function(S,T){var C=T.id,O=!!this.hls.audioTracks[C].url;if(O){var _=this.videoBuffer;_&&this.mediaBuffer!==_&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=_)}this.altAudio=O,this.tick()},b.onBufferCreated=function(S,T){var C=T.tracks,O,_,M=!1;for(var k in C){var R=C[k];if(R.id==="main"){if(_=k,O=R,k==="video"){var B=C[k];B&&(this.videoBuffer=B.buffer)}}else M=!0}M&&O?(this.log("Alternate track found, use "+_+".buffered to schedule main fragment loading"),this.mediaBuffer=O.buffer):this.mediaBuffer=this.media},b.onFragBuffered=function(S,T){var C=T.frag,O=T.part;if(C&&C.type!==l.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(C)){this.warn("Fragment "+C.sn+(O?" p: "+O.index:"")+" of level "+C.level+" finished buffering, but was aborted. state: "+this.state),this.state===o.State.PARSED&&(this.state=o.State.IDLE);return}var _=O?O.stats:C.stats;this.fragLastKbps=Math.round(8*_.total/(_.buffering.end-_.loading.first)),C.sn!=="initSegment"&&(this.fragPrevious=C),this.fragBufferedComplete(C,O)},b.onError=function(S,T){switch(T.details){case n.ErrorDetails.FRAG_LOAD_ERROR:case n.ErrorDetails.FRAG_LOAD_TIMEOUT:case n.ErrorDetails.KEY_LOAD_ERROR:case n.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(l.PlaylistLevelType.MAIN,T);break;case n.ErrorDetails.LEVEL_LOAD_ERROR:case n.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==o.State.ERROR&&(T.fatal?(this.warn(""+T.details),this.state=o.State.ERROR):!T.levelRetry&&this.state===o.State.WAITING_LEVEL&&(this.state=o.State.IDLE));break;case n.ErrorDetails.BUFFER_FULL_ERROR:if(T.parent==="main"&&(this.state===o.State.PARSING||this.state===o.State.PARSED)){var C=!0,O=this.getFwdBufferInfo(this.media,l.PlaylistLevelType.MAIN);O&&O.len>.5&&(C=!this.reduceMaxBufferLength(O.len)),C&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},b.checkBuffer=function(){var S=this.media,T=this.gapController;if(!S||!T||!S.readyState)return;var C=s.BufferHelper.getBuffered(S);!this.loadedmetadata&&C.length?(this.loadedmetadata=!0,this.seekToStartPos()):T.poll(this.lastCurrentTime),this.lastCurrentTime=S.currentTime},b.onFragLoadEmergencyAborted=function(){this.state=o.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},b.onBufferFlushed=function(S,T){var C=T.type;if(C!==a.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var O=(C===a.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(O,C,l.PlaylistLevelType.MAIN)}},b.onLevelsUpdated=function(S,T){this.levels=T.levels},b.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},b.seekToStartPos=function(){var S=this.media,T=S.currentTime,C=this.startPosition;if(C>=0&&T<C){if(S.seeking){i.logger.log("could not seek to "+C+", already seeking at "+T);return}var O=s.BufferHelper.getBuffered(S),_=O.length?O.start(0):0,M=_-C;M>0&&(M<this.config.maxBufferHole||M<this.config.maxFragLookUpTolerance)&&(i.logger.log("adjusting start position by "+M+" to match buffer start"),C+=M,this.startPosition=C),this.log("seek to target start position "+C+" from current time "+T),S.currentTime=C}},b._getAudioCodec=function(S){var T=this.config.defaultAudioCodec||S.audioCodec;return this.audioCodecSwap&&T&&(this.log("Swapping audio codec"),T.indexOf("mp4a.40.5")!==-1?T="mp4a.40.2":T="mp4a.40.5"),T},b._loadBitrateTestFrag=function(S){var T=this;this._doFragLoad(S).then(function(C){var O=T.hls;if(!C||O.nextLoadLevel||T.fragContextChanged(S))return;T.fragLoadError=0,T.state=o.State.IDLE,T.startFragRequested=!1,T.bitrateTest=!1;var _=S.stats;_.parsing.start=_.parsing.end=_.buffering.start=_.buffering.end=self.performance.now(),O.trigger(f.Events.FRAG_LOADED,C)})},b._handleTransmuxComplete=function(S){var T,C="main",O=this.hls,_=S.remuxResult,M=S.chunkMeta,k=this.getCurrentContext(M);if(!k){this.warn("The loading context changed while buffering fragment "+M.sn+" of level "+M.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(M.level);return}var R=k.frag,B=k.part,P=k.level,U=_.video,j=_.text,H=_.id3,W=_.initSegment,G=this.altAudio?void 0:_.audio;if(this.fragContextChanged(R))return;if(this.state=o.State.PARSING,W){W.tracks&&(this._bufferInitSegment(P,W.tracks,R,M),O.trigger(f.Events.FRAG_PARSING_INIT_SEGMENT,{frag:R,id:C,tracks:W.tracks}));var V=W.initPTS,Z=W.timescale;Object(I.isFiniteNumber)(V)&&(this.initPTS[R.cc]=V,O.trigger(f.Events.INIT_PTS_FOUND,{frag:R,id:C,initPTS:V,timescale:Z}))}if(U&&_.independent!==!1){if(P.details){var Y=U.startPTS,Q=U.endPTS,oe=U.startDTS,ue=U.endDTS;if(B)B.elementaryStreams[U.type]={startPTS:Y,endPTS:Q,startDTS:oe,endDTS:ue};else if(U.firstKeyFrame&&U.independent&&(this.couldBacktrack=!0),U.dropped&&U.independent){var Le=this.getLoadPosition()+this.config.maxBufferHole;if(Le<Y){this.backtrack(R);return}R.setElementaryStreamInfo(U.type,R.start,Q,R.start,ue,!0)}R.setElementaryStreamInfo(U.type,Y,Q,oe,ue),this.bufferFragmentData(U,R,B,M)}}else if(_.independent===!1){this.backtrack(R);return}if(G){var me=G.startPTS,Ie=G.endPTS,X=G.startDTS,q=G.endDTS;B&&(B.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:me,endPTS:Ie,startDTS:X,endDTS:q}),R.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,me,Ie,X,q),this.bufferFragmentData(G,R,B,M)}if(H!=null&&(T=H.samples)!==null&&T!==void 0&&T.length){var We={frag:R,id:C,samples:H.samples};O.trigger(f.Events.FRAG_PARSING_METADATA,We)}if(j){var $={frag:R,id:C,samples:j.samples};O.trigger(f.Events.FRAG_PARSING_USERDATA,$)}},b._bufferInitSegment=function(S,T,C,O){var _=this;if(this.state!==o.State.PARSING)return;this.audioOnly=!!T.audio&&!T.video,this.altAudio&&!this.audioOnly&&delete T.audio;var M=T.audio,k=T.video,R=T.audiovideo;if(M){var B=S.audioCodec,P=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(B&&(B.indexOf("mp4a.40.5")!==-1?B="mp4a.40.2":B="mp4a.40.5"),M.metadata.channelCount!==1&&P.indexOf("firefox")===-1&&(B="mp4a.40.5")),P.indexOf("android")!==-1&&M.container!=="audio/mpeg"&&(B="mp4a.40.2",this.log("Android: force audio codec to "+B)),S.audioCodec&&S.audioCodec!==B&&this.log('Swapping manifest audio codec "'+S.audioCodec+'" for "'+B+'"'),M.levelCodec=B,M.id="main",this.log("Init audio buffer, container:"+M.container+", codecs[selected/level/parsed]=["+(B||"")+"/"+(S.audioCodec||"")+"/"+M.codec+"]")}k&&(k.levelCodec=S.videoCodec,k.id="main",this.log("Init video buffer, container:"+k.container+", codecs[level/parsed]=["+(S.videoCodec||"")+"/"+k.codec+"]")),R&&this.log("Init audiovideo buffer, container:"+R.container+", codecs[level/parsed]=["+(S.attrs.CODECS||"")+"/"+R.codec+"]"),this.hls.trigger(f.Events.BUFFER_CODECS,T),Object.keys(T).forEach(function(U){var j=T[U],H=j.initSegment;H!=null&&H.byteLength&&_.hls.trigger(f.Events.BUFFER_APPENDING,{type:U,data:H,frag:C,part:null,chunkMeta:O,parent:C.type})}),this.tick()},b.backtrack=function(S){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(S);var T=this.fragmentTracker.backtrack(S);this.fragPrevious=null,this.nextLoadPosition=S.start,T?this.resetFragmentLoading(S):this.state=o.State.BACKTRACKING},b.checkFragmentChanged=function(){var S=this.media,T=null;if(S&&S.readyState>1&&S.seeking===!1){var C=S.currentTime;if(s.BufferHelper.isBuffered(S,C)?T=this.getAppendedFrag(C):s.BufferHelper.isBuffered(S,C+.1)&&(T=this.getAppendedFrag(C+.1)),T){var O=this.fragPlaying,_=T.level;(!O||T.sn!==O.sn||O.level!==_||T.urlId!==O.urlId)&&(this.hls.trigger(f.Events.FRAG_CHANGED,{frag:T}),(!O||O.level!==_)&&this.hls.trigger(f.Events.LEVEL_SWITCHED,{level:_}),this.fragPlaying=T)}}},d(x,[{key:"nextLevel",get:function(){var S=this.nextBufferedFrag;return S?S.level:-1}},{key:"currentLevel",get:function(){var S=this.media;if(S){var T=this.getAppendedFrag(S.currentTime);if(T)return T.level}return-1}},{key:"nextBufferedFrag",get:function(){var S=this.media;if(S){var T=this.getAppendedFrag(S.currentTime);return this.followingBufferedFrag(T)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),x}(o.default)},"./src/controller/subtitle-stream-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"SubtitleStreamController",function(){return h});var I=E("./src/events.ts"),o=E("./src/utils/logger.ts"),m=E("./src/utils/buffer-helper.ts"),f=E("./src/controller/fragment-finders.ts"),s=E("./src/utils/discontinuities.ts"),t=E("./src/controller/level-helper.ts"),l=E("./src/controller/fragment-tracker.ts"),a=E("./src/controller/base-stream-controller.ts"),r=E("./src/types/loader.ts"),u=E("./src/types/level.ts");function e(p,g){for(var v=0;v<g.length;v++){var A=g[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(p,A.key,A)}}function n(p,g,v){return g&&e(p.prototype,g),v&&e(p,v),p}function i(p,g){p.prototype=Object.create(g.prototype),p.prototype.constructor=p,c(p,g)}function c(p,g){return c=Object.setPrototypeOf||function(A,x){return A.__proto__=x,A},c(p,g)}var d=500,h=function(p){i(g,p);function g(A,x){var b;return b=p.call(this,A,x,"[subtitle-stream-controller]")||this,b.levels=[],b.currentTrackId=-1,b.tracksBuffered=[],b.mainDetails=null,b._registerListeners(),b}var v=g.prototype;return v.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},v._registerListeners=function(){var x=this.hls;x.on(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.on(I.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.on(I.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.on(I.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.on(I.Events.ERROR,this.onError,this),x.on(I.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),x.on(I.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),x.on(I.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),x.on(I.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),x.on(I.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},v._unregisterListeners=function(){var x=this.hls;x.off(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),x.off(I.Events.MEDIA_DETACHING,this.onMediaDetaching,this),x.off(I.Events.MANIFEST_LOADING,this.onManifestLoading,this),x.off(I.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.off(I.Events.ERROR,this.onError,this),x.off(I.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),x.off(I.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),x.off(I.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),x.off(I.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),x.off(I.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},v.startLoad=function(){this.stopLoad(),this.state=a.State.IDLE,this.setInterval(d),this.tick()},v.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},v.onLevelLoaded=function(x,b){this.mainDetails=b.details},v.onSubtitleFragProcessed=function(x,b){var w=b.frag,S=b.success;if(this.fragPrevious=w,this.state=a.State.IDLE,!S)return;var T=this.tracksBuffered[this.currentTrackId];if(!T)return;for(var C,O=w.start,_=0;_<T.length;_++)if(O>=T[_].start&&O<=T[_].end){C=T[_];break}var M=w.start+w.duration;C?C.end=M:(C={start:O,end:M},T.push(C)),this.fragmentTracker.fragBuffered(w)},v.onBufferFlushing=function(x,b){var w=b.startOffset,S=b.endOffset;if(w===0&&S!==Number.POSITIVE_INFINITY){var T=this.currentTrackId,C=this.levels;if(!C.length||!C[T]||!C[T].details)return;var O=C[T].details,_=O.targetduration,M=S-_;if(M<=0)return;b.endOffsetSubtitles=Math.max(0,M),this.tracksBuffered.forEach(function(k){for(var R=0;R<k.length;){if(k[R].end<=M){k.shift();continue}else if(k[R].start<M)k[R].start=M;else break;R++}}),this.fragmentTracker.removeFragmentsInRange(w,M,r.PlaylistLevelType.SUBTITLE)}},v.onError=function(x,b){var w,S=b.frag;if(!S||S.type!==r.PlaylistLevelType.SUBTITLE)return;(w=this.fragCurrent)!==null&&w!==void 0&&w.loader&&this.fragCurrent.loader.abort(),this.state=a.State.IDLE},v.onSubtitleTracksUpdated=function(x,b){var w=this,S=b.subtitleTracks;this.tracksBuffered=[],this.levels=S.map(function(T){return new u.Level(T)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(T){w.tracksBuffered[T.id]=[]}),this.mediaBuffer=null},v.onSubtitleTrackSwitch=function(x,b){if(this.currentTrackId=b.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var w=this.levels[this.currentTrackId];w!=null&&w.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,w&&this.setInterval(d)},v.onSubtitleTrackLoaded=function(x,b){var w,S=b.details,T=b.id,C=this.currentTrackId,O=this.levels;if(!O.length)return;var _=O[C];if(T>=O.length||T!==C||!_)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,S.live||(w=_.details)!==null&&w!==void 0&&w.live){var M=this.mainDetails;if(S.deltaUpdateFailed||!M)return;var k=M.fragments[0];if(!_.details)S.hasProgramDateTime&&M.hasProgramDateTime?Object(s.alignMediaPlaylistByPDT)(S,M):k&&Object(t.addSliding)(S,k.start);else{var R=this.alignPlaylists(S,_.details);R===0&&k&&Object(t.addSliding)(S,k.start)}}if(_.details=S,this.levelLastLoaded=T,this.tick(),S.live&&!this.fragCurrent&&this.media&&this.state===a.State.IDLE){var B=Object(f.findFragmentByPTS)(null,S.fragments,this.media.currentTime,0);B||(this.warn("Subtitle playlist not aligned with playback"),_.details=void 0)}},v._handleFragmentLoadComplete=function(x){var b=x.frag,w=x.payload,S=b.decryptdata,T=this.hls;if(this.fragContextChanged(b))return;if(w&&w.byteLength>0&&S&&S.key&&S.iv&&S.method==="AES-128"){var C=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(w),S.key.buffer,S.iv.buffer).then(function(O){var _=performance.now();T.trigger(I.Events.FRAG_DECRYPTED,{frag:b,payload:O,stats:{tstart:C,tdecrypt:_}})})}},v.doTick=function(){if(!this.media){this.state=a.State.IDLE;return}if(this.state===a.State.IDLE){var x,b=this.currentTrackId,w=this.levels;if(!w.length||!w[b]||!w[b].details)return;var S=w[b].details,T=S.targetduration,C=this.config,O=this.media,_=m.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,O.currentTime-T,C.maxBufferHole),M=_.end,k=_.len,R=this.getMaxBufferLength()+T;if(k>R)return;console.assert(S,"Subtitle track details are defined on idle subtitle stream controller tick");var B=S.fragments,P=B.length,U=S.edge,j,H=this.fragPrevious;if(M<U){var W=C.maxFragLookUpTolerance;H&&S.hasProgramDateTime&&(j=Object(f.findFragmentByPDT)(B,H.endProgramDateTime,W)),j||(j=Object(f.findFragmentByPTS)(H,B,M,W),!j&&H&&H.start<B[0].start&&(j=B[0]))}else j=B[P-1];(x=j)!==null&&x!==void 0&&x.encrypted?(o.logger.log("Loading key for "+j.sn),this.state=a.State.KEY_LOADING,this.hls.trigger(I.Events.KEY_LOADING,{frag:j})):j&&this.fragmentTracker.getState(j)===l.FragmentState.NOT_LOADED&&this.loadFragment(j,S,M)}},v.loadFragment=function(x,b,w){this.fragCurrent=x,p.prototype.loadFragment.call(this,x,b,w)},n(g,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),g}(a.default)},"./src/controller/subtitle-track-controller.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/events.ts"),o=E("./src/utils/texttrack-utils.ts"),m=E("./src/controller/base-playlist-controller.ts"),f=E("./src/types/loader.ts");function s(e,n){for(var i=0;i<n.length;i++){var c=n[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function t(e,n,i){return n&&s(e.prototype,n),i&&s(e,i),e}function l(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,a(e,n)}function a(e,n){return a=Object.setPrototypeOf||function(c,d){return c.__proto__=d,c},a(e,n)}var r=function(e){l(n,e);function n(c){var d;return d=e.call(this,c,"[subtitle-track-controller]")||this,d.media=null,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.selectDefaultTrack=!0,d.queuedDefaultTrack=-1,d.trackChangeListener=function(){return d.onTextTracksChanged()},d.asyncPollTrackChange=function(){return d.pollTrackChange(0)},d.useTextTrackPolling=!1,d.subtitlePollingInterval=-1,d.subtitleDisplay=!0,d.registerListeners(),d}var i=n.prototype;return i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,e.prototype.destroy.call(this)},i.registerListeners=function(){var d=this.hls;d.on(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.on(I.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.on(I.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(I.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(I.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(I.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(I.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.on(I.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var d=this.hls;d.off(I.Events.MEDIA_ATTACHED,this.onMediaAttached,this),d.off(I.Events.MEDIA_DETACHING,this.onMediaDetaching,this),d.off(I.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(I.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(I.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(I.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(I.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),d.off(I.Events.ERROR,this.onError,this)},i.onMediaAttached=function(d,h){if(this.media=h.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},i.pollTrackChange=function(d){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,d)},i.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 d=u(this.media.textTracks);d.forEach(function(h){Object(o.clearCurrentCues)(h)}),this.subtitleTrack=-1,this.media=null},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},i.onManifestParsed=function(d,h){this.tracks=h.subtitleTracks},i.onSubtitleTrackLoaded=function(d,h){var p=h.id,g=h.details,v=this.trackId,A=this.tracksInGroup[v];if(!A){this.warn("Invalid subtitle track id "+p);return}var x=A.details;A.details=h.details,this.log("subtitle track "+p+" loaded ["+g.startSN+"-"+g.endSN+"]"),p===this.trackId&&(this.retryCount=0,this.playlistLoaded(p,h,x))},i.onLevelLoading=function(d,h){this.switchLevel(h.level)},i.onLevelSwitching=function(d,h){this.switchLevel(h.level)},i.switchLevel=function(d){var h=this.hls.levels[d];if(!(h!=null&&h.textGroupIds))return;var p=h.textGroupIds[h.urlId];if(this.groupId!==p){var g=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,v=this.tracks.filter(function(b){return!p||b.groupId===p});this.tracksInGroup=v;var A=this.findTrackId(g==null?void 0:g.name)||this.findTrackId();this.groupId=p;var x={subtitleTracks:v};this.log("Updating subtitle tracks, "+v.length+' track(s) found in "'+p+'" group-id'),this.hls.trigger(I.Events.SUBTITLE_TRACKS_UPDATED,x),A!==-1&&this.setSubtitleTrack(A,g)}},i.findTrackId=function(d){for(var h=this.tracksInGroup,p=0;p<h.length;p++){var g=h[p];if((!this.selectDefaultTrack||g.default)&&(!d||d===g.name))return g.id}return-1},i.onError=function(d,h){if(e.prototype.onError.call(this,d,h),h.fatal||!h.context)return;h.context.type===f.PlaylistContextType.SUBTITLE_TRACK&&h.context.id===this.trackId&&h.context.groupId===this.groupId&&this.retryLoadingOrFail(h)},i.loadPlaylist=function(d){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var p=h.id,g=h.groupId,v=h.url;if(d)try{v=d.addDirectives(v)}catch(A){this.warn("Could not construct new URL with HLS Delivery Directives: "+A)}this.log("Loading subtitle playlist for id "+p),this.hls.trigger(I.Events.SUBTITLE_TRACK_LOADING,{url:v,id:p,groupId:g,deliveryDirectives:d||null})}},i.toggleTrackModes=function(d){var h=this,p=this.media,g=this.subtitleDisplay,v=this.trackId;if(!p)return;var A=u(p.textTracks),x=A.filter(function(S){return S.groupId===h.groupId});if(d===-1)[].slice.call(A).forEach(function(S){S.mode="disabled"});else{var b=x[v];b&&(b.mode="disabled")}var w=x[d];w&&(w.mode=g?"showing":"hidden")},i.setSubtitleTrack=function(d,h){var p,g=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=d;return}if(this.trackId!==d&&this.toggleTrackModes(d),this.trackId===d&&(d===-1||(p=g[d])!==null&&p!==void 0&&p.details)||d<-1||d>=g.length)return;this.clearTimer();var v=g[d];if(this.log("Switching to subtitle track "+d),this.trackId=d,v){var A=v.id,x=v.groupId,b=x===void 0?"":x,w=v.name,S=v.type,T=v.url;this.hls.trigger(I.Events.SUBTITLE_TRACK_SWITCH,{id:A,groupId:b,name:w,type:S,url:T});var C=this.switchParams(v.url,h==null?void 0:h.details);this.loadPlaylist(C)}else this.hls.trigger(I.Events.SUBTITLE_TRACK_SWITCH,{id:d})},i.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var d=-1,h=u(this.media.textTracks),p=0;p<h.length;p++)if(h[p].mode==="hidden")d=p;else if(h[p].mode==="showing"){d=p;break}this.subtitleTrack!==d&&(this.subtitleTrack=d)},t(n,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(d){this.selectDefaultTrack=!1;var h=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(d,h)}}]),n}(m.default);function u(e){for(var n=[],i=0;i<e.length;i++){var c=e[i];c.kind==="subtitles"&&c.label&&n.push(e[i])}return n}L.default=r},"./src/controller/timeline-controller.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"TimelineController",function(){return u});var I=E("./src/polyfills/number.ts"),o=E("./src/events.ts"),m=E("./src/utils/cea-608-parser.ts"),f=E("./src/utils/output-filter.ts"),s=E("./src/utils/webvtt-parser.ts"),t=E("./src/utils/texttrack-utils.ts"),l=E("./src/utils/imsc1-ttml-parser.ts"),a=E("./src/types/loader.ts"),r=E("./src/utils/logger.ts"),u=function(){function c(h){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=i(),this.captionsProperties=void 0,this.hls=h,this.config=h.config,this.Cues=h.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var p=new f.default(this,"textTrack1"),g=new f.default(this,"textTrack2"),v=new f.default(this,"textTrack3"),A=new f.default(this,"textTrack4");this.cea608Parser1=new m.default(1,p,g),this.cea608Parser2=new m.default(3,v,A)}h.on(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.on(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this),h.on(o.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),h.on(o.Events.FRAG_LOADING,this.onFragLoading,this),h.on(o.Events.FRAG_LOADED,this.onFragLoaded,this),h.on(o.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),h.on(o.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),h.on(o.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),h.on(o.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),h.on(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var d=c.prototype;return d.destroy=function(){var p=this.hls;p.off(o.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.off(o.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.off(o.Events.MANIFEST_LOADED,this.onManifestLoaded,this),p.off(o.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),p.off(o.Events.FRAG_LOADING,this.onFragLoading,this),p.off(o.Events.FRAG_LOADED,this.onFragLoaded,this),p.off(o.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),p.off(o.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),p.off(o.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),p.off(o.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),p.off(o.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},d.addCues=function(p,g,v,A,x){for(var b=!1,w=x.length;w--;){var S=x[w],T=n(S[0],S[1],g,v);if(T>=0&&(S[0]=Math.min(S[0],g),S[1]=Math.max(S[1],v),b=!0,T/(v-g)>.5))return}if(b||x.push([g,v]),this.config.renderTextTracksNatively){var C=this.captionsTracks[p];this.Cues.newCue(C,g,v,A)}else{var O=this.Cues.newCue(null,g,v,A);this.hls.trigger(o.Events.CUES_PARSED,{type:"captions",cues:O,track:p})}},d.onInitPtsFound=function(p,g){var v=this,A=g.frag,x=g.id,b=g.initPTS,w=g.timescale,S=this.unparsedVttFrags;x==="main"&&(this.initPTS[A.cc]=b,this.timescale[A.cc]=w),S.length&&(this.unparsedVttFrags=[],S.forEach(function(T){v.onFragLoaded(o.Events.FRAG_LOADED,T)}))},d.getExistingTrack=function(p){var g=this.media;if(g)for(var v=0;v<g.textTracks.length;v++){var A=g.textTracks[v];if(A[p])return A}return null},d.createCaptionsTrack=function(p){this.config.renderTextTracksNatively?this.createNativeTrack(p):this.createNonNativeTrack(p)},d.createNativeTrack=function(p){if(this.captionsTracks[p])return;var g=this.captionsProperties,v=this.captionsTracks,A=this.media,x=g[p],b=x.label,w=x.languageCode,S=this.getExistingTrack(p);if(S)v[p]=S,Object(t.clearCurrentCues)(v[p]),Object(t.sendAddTrackEvent)(v[p],A);else{var T=this.createTextTrack("captions",b,w);T&&(T[p]=!0,v[p]=T)}},d.createNonNativeTrack=function(p){if(this.nonNativeCaptionsTracks[p])return;var g=this.captionsProperties[p];if(!g)return;var v=g.label,A={_id:p,label:v,kind:"captions",default:g.media?!!g.media.default:!1,closedCaptions:g.media};this.nonNativeCaptionsTracks[p]=A,this.hls.trigger(o.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[A]})},d.createTextTrack=function(p,g,v){var A=this.media;return A?A.addTextTrack(p,g,v):void 0},d.onMediaAttaching=function(p,g){this.media=g.media,this._cleanTracks()},d.onMediaDetaching=function(){var p=this.captionsTracks;Object.keys(p).forEach(function(g){Object(t.clearCurrentCues)(p[g]),delete p[g]}),this.nonNativeCaptionsTracks={}},d.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=i(),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())},d._cleanTracks=function(){var p=this.media;if(!p)return;var g=p.textTracks;if(g)for(var v=0;v<g.length;v++)Object(t.clearCurrentCues)(g[v])},d.onSubtitleTracksUpdated=function(p,g){var v=this;this.textTracks=[];var A=g.subtitleTracks||[],x=A.some(function(T){return T.textCodec===l.IMSC1_CODEC});if(this.config.enableWebVTT||x&&this.config.enableIMSC1){var b=this.tracks&&A&&this.tracks.length===A.length;if(this.tracks=A||[],this.config.renderTextTracksNatively){var w=this.media?this.media.textTracks:[];this.tracks.forEach(function(T,C){var O;if(C<w.length){for(var _=null,M=0;M<w.length;M++)if(e(w[M],T)){_=w[M];break}_&&(O=_)}O?Object(t.clearCurrentCues)(O):(O=v.createTextTrack("subtitles",T.name,T.lang),O&&(O.mode="disabled")),O&&(O.groupId=T.groupId,v.textTracks.push(O))})}else if(!b&&this.tracks&&this.tracks.length){var S=this.tracks.map(function(T){return{label:T.name,kind:T.type.toLowerCase(),default:T.default,subtitleTrack:T}});this.hls.trigger(o.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:S})}}},d.onManifestLoaded=function(p,g){var v=this;this.config.enableCEA708Captions&&g.captions&&g.captions.forEach(function(A){var x=/(?:CC|SERVICE)([1-4])/.exec(A.instreamId);if(!x)return;var b="textTrack"+x[1],w=v.captionsProperties[b];if(!w)return;w.label=A.name,A.lang&&(w.languageCode=A.lang),w.media=A})},d.onFragLoading=function(p,g){var v=this.cea608Parser1,A=this.cea608Parser2,x=this.lastSn,b=this.lastPartIndex;if(!this.enabled||!(v&&A))return;if(g.frag.type===a.PlaylistLevelType.MAIN){var w,S,T=g.frag.sn,C=(w=g==null||((S=g.part)===null||S===void 0)?void 0:S.index)!=null?w:-1;T===x+1||T===x&&C===b+1||(v.reset(),A.reset()),this.lastSn=T,this.lastPartIndex=C}},d.onFragLoaded=function(p,g){var v=g.frag,A=g.payload,x=this.initPTS,b=this.unparsedVttFrags;if(v.type===a.PlaylistLevelType.SUBTITLE)if(A.byteLength){if(!Object(I.isFiniteNumber)(x[v.cc])){b.push(g),x.length&&this.hls.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:v,error:new Error("Missing initial subtitle PTS")});return}var w=v.decryptdata;if(w==null||w.key==null||w.method!=="AES-128"){var S=this.tracks[v.level],T=this.vttCCs;T[v.cc]||(T[v.cc]={start:v.start,prevCC:this.prevCC,new:!0},this.prevCC=v.cc),S&&S.textCodec===l.IMSC1_CODEC?this._parseIMSC1(v,A):this._parseVTTs(v,A,T)}}else this.hls.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:v,error:new Error("Empty subtitle payload")})},d._parseIMSC1=function(p,g){var v=this,A=this.hls;Object(l.parseIMSC1)(g,this.initPTS[p.cc],this.timescale[p.cc],function(x){v._appendCues(x,p.level),A.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:p})},function(x){r.logger.log("Failed to parse IMSC1: "+x),A.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:p,error:x})})},d._parseVTTs=function(p,g,v){var A=this,x=this.hls;Object(s.parseWebVTT)(g,this.initPTS[p.cc],this.timescale[p.cc],v,p.cc,p.start,function(b){A._appendCues(b,p.level),x.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:p})},function(b){A._fallbackToIMSC1(p,g),r.logger.log("Failed to parse VTT cue: "+b),x.trigger(o.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:p,error:b})})},d._fallbackToIMSC1=function(p,g){var v=this,A=this.tracks[p.level];A.textCodec||Object(l.parseIMSC1)(g,this.initPTS[p.cc],this.timescale[p.cc],function(){A.textCodec=l.IMSC1_CODEC,v._parseIMSC1(p,g)},function(){A.textCodec="wvtt"})},d._appendCues=function(p,g){var v=this.hls;if(this.config.renderTextTracksNatively){var A=this.textTracks[g];if(A.mode==="disabled")return;p.forEach(function(w){return Object(t.addCueToTrack)(A,w)})}else{var x=this.tracks[g],b=x.default?"default":"subtitles"+g;v.trigger(o.Events.CUES_PARSED,{type:"subtitles",cues:p,track:b})}},d.onFragDecrypted=function(p,g){var v=g.frag;if(v.type===a.PlaylistLevelType.SUBTITLE){if(!Object(I.isFiniteNumber)(this.initPTS[v.cc])){this.unparsedVttFrags.push(g);return}this.onFragLoaded(o.Events.FRAG_LOADED,g)}},d.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},d.onFragParsingUserdata=function(p,g){var v=this.cea608Parser1,A=this.cea608Parser2;if(!this.enabled||!(v&&A))return;for(var x=0;x<g.samples.length;x++){var b=g.samples[x].bytes;if(b){var w=this.extractCea608Data(b);v.addData(g.samples[x].pts,w[0]),A.addData(g.samples[x].pts,w[1])}}},d.onBufferFlushing=function(p,g){var v=g.startOffset,A=g.endOffset,x=g.endOffsetSubtitles,b=g.type,w=this.media;if(!w||w.currentTime<A)return;if(!b||b==="video"){var S=this.captionsTracks;Object.keys(S).forEach(function(C){return Object(t.removeCuesInRange)(S[C],v,A)})}if(this.config.renderTextTracksNatively&&(v===0&&x!==void 0)){var T=this.textTracks;Object.keys(T).forEach(function(C){return Object(t.removeCuesInRange)(T[C],v,x)})}},d.extractCea608Data=function(p){for(var g=p[0]&31,v=2,A=[[],[]],x=0;x<g;x++){var b=p[v++],w=127&p[v++],S=127&p[v++],T=(4&b)!==0,C=3&b;if(w===0&&S===0)continue;T&&((C===0||C===1)&&(A[C].push(w),A[C].push(S)))}return A},c}();function e(c,d){return c&&c.label===d.name&&!(c.textTrack1||c.textTrack2)}function n(c,d,h,p){return Math.min(d,p)-Math.max(c,h)}function i(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return I});var I=function(){function o(f,s){this.subtle=void 0,this.aesIV=void 0,this.subtle=f,this.aesIV=s}var m=o.prototype;return m.decrypt=function(s,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,s)},o}()},"./src/crypt/aes-decryptor.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"removePadding",function(){return o}),E.d(L,"default",function(){return m});var I=E("./src/utils/typed-array.ts");function o(f){var s=f.byteLength,t=s&&new DataView(f.buffer).getUint8(s-1);return t?Object(I.sliceUint8)(f,0,s-t):f}var m=function(){function f(){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 s=f.prototype;return s.uint8ArrayToUint32Array_=function(l){for(var a=new DataView(l),r=new Uint32Array(4),u=0;u<4;u++)r[u]=a.getUint32(u*4);return r},s.initTable=function(){var l=this.sBox,a=this.invSBox,r=this.subMix,u=r[0],e=r[1],n=r[2],i=r[3],c=this.invSubMix,d=c[0],h=c[1],p=c[2],g=c[3],v=new Uint32Array(256),A=0,x=0,b=0;for(b=0;b<256;b++)b<128?v[b]=b<<1:v[b]=b<<1^283;for(b=0;b<256;b++){var w=x^x<<1^x<<2^x<<3^x<<4;w=w>>>8^w&255^99,l[A]=w,a[w]=A;var S=v[A],T=v[S],C=v[T],O=v[w]*257^w*16843008;u[A]=O<<24|O>>>8,e[A]=O<<16|O>>>16,n[A]=O<<8|O>>>24,i[A]=O,O=C*16843009^T*65537^S*257^A*16843008,d[w]=O<<24|O>>>8,h[w]=O<<16|O>>>16,p[w]=O<<8|O>>>24,g[w]=O,A?(A=S^v[v[v[C^S]]],x^=v[v[x]]):A=x=1}},s.expandKey=function(l){for(var a=this.uint8ArrayToUint32Array_(l),r=!0,u=0;u<a.length&&r;)r=a[u]===this.key[u],u++;if(r)return;this.key=a;var e=this.keySize=a.length;if(e!==4&&e!==6&&e!==8)throw new Error("Invalid aes key size="+e);var n=this.ksRows=(e+6+1)*4,i,c,d=this.keySchedule=new Uint32Array(n),h=this.invKeySchedule=new Uint32Array(n),p=this.sBox,g=this.rcon,v=this.invSubMix,A=v[0],x=v[1],b=v[2],w=v[3],S,T;for(i=0;i<n;i++){if(i<e){S=d[i]=a[i];continue}T=S,i%e===0?(T=T<<8|T>>>24,T=p[T>>>24]<<24|p[T>>>16&255]<<16|p[T>>>8&255]<<8|p[T&255],T^=g[i/e|0]<<24):e>6&&i%e===4&&(T=p[T>>>24]<<24|p[T>>>16&255]<<16|p[T>>>8&255]<<8|p[T&255]),d[i]=S=(d[i-e]^T)>>>0}for(c=0;c<n;c++)i=n-c,c&3?T=d[i]:T=d[i-4],c<4||i<=4?h[c]=T:h[c]=A[p[T>>>24]]^x[p[T>>>16&255]]^b[p[T>>>8&255]]^w[p[T&255]],h[c]=h[c]>>>0},s.networkToHostOrderSwap=function(l){return l<<24|(l&65280)<<8|(l&16711680)>>8|l>>>24},s.decrypt=function(l,a,r){for(var u=this.keySize+6,e=this.invKeySchedule,n=this.invSBox,i=this.invSubMix,c=i[0],d=i[1],h=i[2],p=i[3],g=this.uint8ArrayToUint32Array_(r),v=g[0],A=g[1],x=g[2],b=g[3],w=new Int32Array(l),S=new Int32Array(w.length),T,C,O,_,M,k,R,B,P,U,j,H,W,G,V=this.networkToHostOrderSwap;a<w.length;){for(P=V(w[a]),U=V(w[a+1]),j=V(w[a+2]),H=V(w[a+3]),M=P^e[0],k=H^e[1],R=j^e[2],B=U^e[3],W=4,G=1;G<u;G++)T=c[M>>>24]^d[k>>16&255]^h[R>>8&255]^p[B&255]^e[W],C=c[k>>>24]^d[R>>16&255]^h[B>>8&255]^p[M&255]^e[W+1],O=c[R>>>24]^d[B>>16&255]^h[M>>8&255]^p[k&255]^e[W+2],_=c[B>>>24]^d[M>>16&255]^h[k>>8&255]^p[R&255]^e[W+3],M=T,k=C,R=O,B=_,W=W+4;T=n[M>>>24]<<24^n[k>>16&255]<<16^n[R>>8&255]<<8^n[B&255]^e[W],C=n[k>>>24]<<24^n[R>>16&255]<<16^n[B>>8&255]<<8^n[M&255]^e[W+1],O=n[R>>>24]<<24^n[B>>16&255]<<16^n[M>>8&255]<<8^n[k&255]^e[W+2],_=n[B>>>24]<<24^n[M>>16&255]<<16^n[k>>8&255]<<8^n[R&255]^e[W+3],S[a]=V(T^v),S[a+1]=V(_^A),S[a+2]=V(O^x),S[a+3]=V(C^b),v=P,A=U,x=j,b=H,a=a+4}return S.buffer},f}()},"./src/crypt/decrypter.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return a});var I=E("./src/crypt/aes-crypto.ts"),o=E("./src/crypt/fast-aes-key.ts"),m=E("./src/crypt/aes-decryptor.ts"),f=E("./src/utils/logger.ts"),s=E("./src/utils/mp4-tools.ts"),t=E("./src/utils/typed-array.ts"),l=16,a=function(){function r(e,n,i){var c=i===void 0?{}:i,d=c.removePKCS7Padding,h=d===void 0?!0:d;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=e,this.config=n,this.removePKCS7Padding=h,h)try{var p=self.crypto;p&&(this.subtle=p.subtle||p.webkitSubtle)}catch(g){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var u=r.prototype;return u.destroy=function(){this.observer=null},u.isSync=function(){return this.config.enableSoftwareAES},u.flush=function(){var n=this.currentResult;if(!n){this.reset();return}var i=new Uint8Array(n);return this.reset(),this.removePKCS7Padding?Object(m.removePadding)(i):i},u.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},u.decrypt=function(n,i,c,d){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(n),i,c);var h=this.flush();h&&d(h.buffer)}else this.webCryptoDecrypt(new Uint8Array(n),i,c).then(d)},u.softwareDecrypt=function(n,i,c){var d=this.currentIV,h=this.currentResult,p=this.remainderData;this.logOnce("JS AES decrypt"),p&&(n=Object(s.appendUint8Array)(p,n),this.remainderData=null);var g=this.getValidChunk(n);if(!g.length)return null;d&&(c=d);var v=this.softwareDecrypter;v||(v=this.softwareDecrypter=new m.default),v.expandKey(i);var A=h;return this.currentResult=v.decrypt(g.buffer,0,c),this.currentIV=Object(t.sliceUint8)(g,-16).buffer,A||null},u.webCryptoDecrypt=function(n,i,c){var d=this,h=this.subtle;return(this.key!==i||!this.fastAesKey)&&(this.key=i,this.fastAesKey=new o.default(h,i)),this.fastAesKey.expandKey().then(function(p){if(!h)return Promise.reject(new Error("web crypto not initialized"));var g=new I.default(h,c);return g.decrypt(n.buffer,p)}).catch(function(p){return d.onWebCryptoError(p,n,i,c)})},u.onWebCryptoError=function(n,i,c,d){return f.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",n),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(i,c,d)},u.getValidChunk=function(n){var i=n,c=n.length-n.length%l;return c!==n.length&&(i=Object(t.sliceUint8)(n,0,c),this.remainderData=Object(t.sliceUint8)(n,c)),i},u.logOnce=function(n){if(!this.logEnabled)return;f.logger.log("[decrypter.ts]: "+n),this.logEnabled=!1},r}()},"./src/crypt/fast-aes-key.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return I});var I=function(){function o(f,s){this.subtle=void 0,this.key=void 0,this.subtle=f,this.key=s}var m=o.prototype;return m.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},o}()},"./src/demux/aacdemuxer.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/demux/base-audio-demuxer.ts"),o=E("./src/demux/adts.ts"),m=E("./src/utils/logger.ts"),f=E("./src/demux/id3.ts");function s(a,r){a.prototype=Object.create(r.prototype),a.prototype.constructor=a,t(a,r)}function t(a,r){return t=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},t(a,r)}var l=function(a){s(r,a);function r(e,n){var i;return i=a.call(this)||this,i.observer=void 0,i.config=void 0,i.observer=e,i.config=n,i}var u=r.prototype;return u.resetInitSegment=function(n,i,c){a.prototype.resetInitSegment.call(this,n,i,c),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:n,duration:c,inputTimeScale:9e4,dropped:0}},r.probe=function(n){if(!n)return!1;for(var i=f.getID3Data(n,0)||[],c=i.length,d=n.length;c<d;c++)if(o.probe(n,c))return m.logger.log("ADTS sync word found !"),!0;return!1},u.canParse=function(n,i){return o.canParse(n,i)},u.appendFrame=function(n,i,c){o.initTrackConfig(n,this.observer,i,c,n.manifestCodec);var d=o.appendFrame(n,i,c,this.initPTS,this.frameIndex);if(d&&d.missing===0)return d},r}(I.default);l.minProbeByteLength=9,L.default=l},"./src/demux/adts.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"getAudioConfig",function(){return f}),E.d(L,"isHeaderPattern",function(){return s}),E.d(L,"getHeaderLength",function(){return t}),E.d(L,"getFullFrameLength",function(){return l}),E.d(L,"canGetFrameLength",function(){return a}),E.d(L,"isHeader",function(){return r}),E.d(L,"canParse",function(){return u}),E.d(L,"probe",function(){return e}),E.d(L,"initTrackConfig",function(){return n}),E.d(L,"getFrameDuration",function(){return i}),E.d(L,"parseFrameHeader",function(){return c}),E.d(L,"appendFrame",function(){return d});var I=E("./src/utils/logger.ts"),o=E("./src/errors.ts"),m=E("./src/events.ts");function f(h,p,g,v){var A,x,b,w,S=navigator.userAgent.toLowerCase(),T=v,C=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];A=((p[g+2]&192)>>>6)+1;var O=(p[g+2]&60)>>>2;if(O>C.length-1){h.trigger(m.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+O});return}return b=(p[g+2]&1)<<2,b|=(p[g+3]&192)>>>6,I.logger.log("manifest codec:"+v+", ADTS type:"+A+", samplingIndex:"+O),/firefox/i.test(S)?O>=6?(A=5,w=new Array(4),x=O-3):(A=2,w=new Array(2),x=O):S.indexOf("android")!==-1?(A=2,w=new Array(2),x=O):(A=5,w=new Array(4),v&&(v.indexOf("mp4a.40.29")!==-1||v.indexOf("mp4a.40.5")!==-1)||!v&&O>=6?x=O-3:((v&&v.indexOf("mp4a.40.2")!==-1&&(O>=6&&b===1||/vivaldi/i.test(S))||!v&&b===1)&&(A=2,w=new Array(2)),x=O)),w[0]=A<<3,w[0]|=(O&14)>>1,w[1]|=(O&1)<<7,w[1]|=b<<3,A===5&&(w[1]|=(x&14)>>1,w[2]=(x&1)<<7,w[2]|=2<<2,w[3]=0),{config:w,samplerate:C[O],channelCount:b,codec:"mp4a.40."+A,manifestCodec:T}}function s(h,p){return h[p]===255&&(h[p+1]&246)===240}function t(h,p){return h[p+1]&1?7:9}function l(h,p){return(h[p+3]&3)<<11|h[p+4]<<3|(h[p+5]&224)>>>5}function a(h,p){return p+5<h.length}function r(h,p){return p+1<h.length&&s(h,p)}function u(h,p){return a(h,p)&&s(h,p)&&l(h,p)<=h.length-p}function e(h,p){if(r(h,p)){var g=t(h,p);if(p+g>=h.length)return!1;var v=l(h,p);if(v<=g)return!1;var A=p+v;return A===h.length||r(h,A)}return!1}function n(h,p,g,v,A){if(!h.samplerate){var x=f(p,g,v,A);if(!x)return;h.config=x.config,h.samplerate=x.samplerate,h.channelCount=x.channelCount,h.codec=x.codec,h.manifestCodec=x.manifestCodec,I.logger.log("parsed codec:"+h.codec+", rate:"+x.samplerate+", channels:"+x.channelCount)}}function i(h){return 1024*9e4/h}function c(h,p,g,v,A){var x=t(h,p),b=l(h,p);if(b-=x,b>0){var w=g+v*A;return{headerLength:x,frameLength:b,stamp:w}}}function d(h,p,g,v,A){var x=i(h.samplerate),b=c(p,g,v,A,x);if(b){var w=b.frameLength,S=b.headerLength,T=b.stamp,C=S+w,O=Math.max(0,g+C-p.length),_;O?(_=new Uint8Array(C-S),_.set(p.subarray(g+S,p.length),0)):_=p.subarray(g+S,g+C);var M={unit:_,pts:T};return O||h.samples.push(M),{sample:M,length:C,missing:O}}}},"./src/demux/base-audio-demuxer.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"initPTSFn",function(){return l});var I=E("./src/polyfills/number.ts"),o=E("./src/demux/id3.ts"),m=E("./src/demux/dummy-demuxed-track.ts"),f=E("./src/utils/mp4-tools.ts"),s=E("./src/utils/typed-array.ts"),t=function(){function a(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var r=a.prototype;return r.resetInitSegment=function(e,n,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},r.resetTimeStamp=function(){},r.resetContiguity=function(){},r.canParse=function(e,n){return!1},r.appendFrame=function(e,n,i){},r.demux=function(e,n){this.cachedData&&(e=Object(f.appendUint8Array)(this.cachedData,e),this.cachedData=null);var i=o.getID3Data(e,0),c=i?i.length:0,d,h,p=this._audioTrack,g=this._id3Track,v=i?o.getTimeStamp(i):void 0,A=e.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=l(v,n)),i&&i.length>0&&g.samples.push({pts:this.initPTS,dts:this.initPTS,data:i}),h=this.initPTS;c<A;){if(this.canParse(e,c)){var x=this.appendFrame(p,e,c);x?(this.frameIndex++,h=x.sample.pts,c+=x.length,d=c):c=A}else o.canParse(e,c)?(i=o.getID3Data(e,c),g.samples.push({pts:h,dts:h,data:i}),c+=i.length,d=c):c++;if(c===A&&d!==A){var b=Object(s.sliceUint8)(e,d);this.cachedData?this.cachedData=Object(f.appendUint8Array)(this.cachedData,b):this.cachedData=b}}return{audioTrack:p,avcTrack:Object(m.dummyTrack)(),id3Track:g,textTrack:Object(m.dummyTrack)()}},r.demuxSampleAes=function(e,n,i){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},r.flush=function(e){var n=this.cachedData;return n&&(this.cachedData=null,this.demux(n,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(m.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(m.dummyTrack)()}},r.destroy=function(){},a}(),l=function(r,u){return Object(I.isFiniteNumber)(r)?r*90:u*9e4};L.default=t},"./src/demux/chunk-cache.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return I});var I=function(){function m(){this.chunks=[],this.dataLength=0}var f=m.prototype;return f.push=function(t){this.chunks.push(t),this.dataLength+=t.length},f.flush=function(){var t=this.chunks,l=this.dataLength,a;if(t.length)t.length===1?a=t[0]:a=o(t,l);else return new Uint8Array(0);return this.reset(),a},f.reset=function(){this.chunks.length=0,this.dataLength=0},m}();function o(m,f){for(var s=new Uint8Array(f),t=0,l=0;l<m.length;l++){var a=m[l];s.set(a,t),t+=a.length}return s}},"./src/demux/dummy-demuxed-track.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"dummyTrack",function(){return I});function I(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/utils/logger.ts"),o=function(){function m(s){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=s,this.bytesAvailable=s.byteLength,this.word=0,this.bitsAvailable=0}var f=m.prototype;return f.loadWord=function(){var t=this.data,l=this.bytesAvailable,a=t.byteLength-l,r=new Uint8Array(4),u=Math.min(4,l);if(u===0)throw new Error("no bytes available");r.set(t.subarray(a,a+u)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=u*8,this.bytesAvailable-=u},f.skipBits=function(t){var l;this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,l=t>>3,t-=l>>3,this.bytesAvailable-=l,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},f.readBits=function(t){var l=Math.min(this.bitsAvailable,t),a=this.word>>>32-l;return t>32&&I.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=l,this.bitsAvailable>0?this.word<<=l:this.bytesAvailable>0&&this.loadWord(),l=t-l,l>0&&this.bitsAvailable?a<<l|this.readBits(l):a},f.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if((this.word&2147483648>>>t)!==0)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},f.skipUEG=function(){this.skipBits(1+this.skipLZ())},f.skipEG=function(){this.skipBits(1+this.skipLZ())},f.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},f.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},f.readBoolean=function(){return this.readBits(1)===1},f.readUByte=function(){return this.readBits(8)},f.readUShort=function(){return this.readBits(16)},f.readUInt=function(){return this.readBits(32)},f.skipScalingList=function(t){for(var l=8,a=8,r,u=0;u<t;u++)a!==0&&(r=this.readEG(),a=(l+r+256)%256),l=a===0?l:a},f.readSPS=function(){var t=0,l=0,a=0,r=0,u,e,n,i=this.readUByte.bind(this),c=this.readBits.bind(this),d=this.readUEG.bind(this),h=this.readBoolean.bind(this),p=this.skipBits.bind(this),g=this.skipEG.bind(this),v=this.skipUEG.bind(this),A=this.skipScalingList.bind(this);i();var x=i();if(c(5),p(3),i(),v(),x===100||x===110||x===122||x===244||x===44||x===83||x===86||x===118||x===128){var b=d();if(b===3&&p(1),v(),v(),p(1),h())for(e=b!==3?8:12,n=0;n<e;n++)h()&&(n<6?A(16):A(64))}v();var w=d();if(w===0)d();else if(w===1)for(p(1),g(),g(),u=d(),n=0;n<u;n++)g();v(),p(1);var S=d(),T=d(),C=c(1);C===0&&p(1),p(1),h()&&(t=d(),l=d(),a=d(),r=d());var O=[1,1];if(h()&&h()){var _=i();switch(_){case 1:O=[1,1];break;case 2:O=[12,11];break;case 3:O=[10,11];break;case 4:O=[16,11];break;case 5:O=[40,33];break;case 6:O=[24,11];break;case 7:O=[20,11];break;case 8:O=[32,11];break;case 9:O=[80,33];break;case 10:O=[18,11];break;case 11:O=[15,11];break;case 12:O=[64,33];break;case 13:O=[160,99];break;case 14:O=[4,3];break;case 15:O=[3,2];break;case 16:O=[2,1];break;case 255:{O=[i()<<8|i(),i()<<8|i()];break}}}return{width:Math.ceil((S+1)*16-t*2-l*2),height:(2-C)*(T+1)*16-(C?2:4)*(a+r),pixelRatio:O}},f.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},m}();L.default=o},"./src/demux/id3.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"isHeader",function(){return I}),E.d(L,"isFooter",function(){return o}),E.d(L,"getID3Data",function(){return m}),E.d(L,"canParse",function(){return s}),E.d(L,"getTimeStamp",function(){return t}),E.d(L,"isTimeStampFrame",function(){return l}),E.d(L,"getID3Frames",function(){return r}),E.d(L,"decodeFrame",function(){return u}),E.d(L,"utf8ArrayToStr",function(){return d}),E.d(L,"testables",function(){return h});var I=function(A,x){return x+10<=A.length&&(A[x]===73&&A[x+1]===68&&A[x+2]===51&&(A[x+3]<255&&A[x+4]<255&&(A[x+6]<128&&A[x+7]<128&&A[x+8]<128&&A[x+9]<128)))},o=function(A,x){return x+10<=A.length&&(A[x]===51&&A[x+1]===68&&A[x+2]===73&&(A[x+3]<255&&A[x+4]<255&&(A[x+6]<128&&A[x+7]<128&&A[x+8]<128&&A[x+9]<128)))},m=function(A,x){for(var b=x,w=0;I(A,x);){w+=10;var S=f(A,x+6);w+=S,o(A,x+10)&&(w+=10),x+=w}return w>0?A.subarray(b,b+w):void 0},f=function(A,x){var b=0;return b=(A[x]&127)<<21,b|=(A[x+1]&127)<<14,b|=(A[x+2]&127)<<7,b|=A[x+3]&127,b},s=function(A,x){return I(A,x)&&f(A,x+6)+10<=A.length-x},t=function(A){for(var x=r(A),b=0;b<x.length;b++){var w=x[b];if(l(w))return c(w)}return},l=function(A){return A&&A.key==="PRIV"&&A.info==="com.apple.streaming.transportStreamTimestamp"},a=function(A){var x=String.fromCharCode(A[0],A[1],A[2],A[3]),b=f(A,4),w=10;return{type:x,size:b,data:A.subarray(w,w+b)}},r=function(A){for(var x=0,b=[];I(A,x);){var w=f(A,x+6);x+=10;for(var S=x+w;x+8<S;){var T=a(A.subarray(x)),C=u(T);C&&b.push(C),x+=T.size+10}o(A,x)&&(x+=10)}return b},u=function(A){return A.type==="PRIV"?e(A):A.type[0]==="W"?i(A):n(A)},e=function(A){if(A.size<2)return;var x=d(A.data,!0),b=new Uint8Array(A.data.subarray(x.length+1));return{key:A.type,info:x,data:b.buffer}},n=function(A){if(A.size<2)return;if(A.type==="TXXX"){var x=1,b=d(A.data.subarray(x),!0);x+=b.length+1;var w=d(A.data.subarray(x));return{key:A.type,info:b,data:w}}var S=d(A.data.subarray(1));return{key:A.type,data:S}},i=function(A){if(A.type==="WXXX"){if(A.size<2)return;var x=1,b=d(A.data.subarray(x),!0);x+=b.length+1;var w=d(A.data.subarray(x));return{key:A.type,info:b,data:w}}var S=d(A.data);return{key:A.type,data:S}},c=function(A){if(A.data.byteLength===8){var x=new Uint8Array(A.data),b=x[3]&1,w=(x[4]<<23)+(x[5]<<15)+(x[6]<<7)+x[7];return w/=45,b&&(w+=4772185884e-2),Math.round(w)}return},d=function(A,x){x===void 0&&(x=!1);var b=g();if(b){var w=b.decode(A);if(x){var S=w.indexOf("\0");return S!==-1?w.substring(0,S):w}return w.replace(/\0/g,"")}for(var T=A.length,C,O,_,M="",k=0;k<T;){if(C=A[k++],C===0&&x)return M;if(C===0||C===3)continue;switch(C>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:M+=String.fromCharCode(C);break;case 12:case 13:O=A[k++],M+=String.fromCharCode((C&31)<<6|O&63);break;case 14:O=A[k++],_=A[k++],M+=String.fromCharCode((C&15)<<12|(O&63)<<6|(_&63)<<0);break;default:}}return M},h={decodeTextFrame:n},p;function g(){return!p&&typeof self.TextDecoder!="undefined"&&(p=new self.TextDecoder("utf-8")),p}},"./src/demux/mp3demuxer.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/demux/base-audio-demuxer.ts"),o=E("./src/demux/id3.ts"),m=E("./src/utils/logger.ts"),f=E("./src/demux/mpegaudio.ts");function s(a,r){a.prototype=Object.create(r.prototype),a.prototype.constructor=a,t(a,r)}function t(a,r){return t=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},t(a,r)}var l=function(a){s(r,a);function r(){return a.apply(this,arguments)||this}var u=r.prototype;return u.resetInitSegment=function(n,i,c){a.prototype.resetInitSegment.call(this,n,i,c),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:n,duration:c,inputTimeScale:9e4,dropped:0}},r.probe=function(n){if(!n)return!1;for(var i=o.getID3Data(n,0)||[],c=i.length,d=n.length;c<d;c++)if(f.probe(n,c))return m.logger.log("MPEG Audio sync word found !"),!0;return!1},u.canParse=function(n,i){return f.canParse(n,i)},u.appendFrame=function(n,i,c){return this.initPTS===null?void 0:f.appendFrame(n,i,c,this.initPTS,this.frameIndex)},r}(I.default);l.minProbeByteLength=4,L.default=l},"./src/demux/mp4demuxer.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/utils/mp4-tools.ts"),o=E("./src/demux/dummy-demuxed-track.ts"),m=function(){function f(t,l){this.remainderData=null,this.config=void 0,this.config=l}var s=f.prototype;return s.resetTimeStamp=function(){},s.resetInitSegment=function(){},s.resetContiguity=function(){},f.probe=function(l){return Object(I.findBox)({data:l,start:0,end:Math.min(l.length,16384)},["moof"]).length>0},s.demux=function(l){var a=l,r=Object(o.dummyTrack)();if(this.config.progressive){this.remainderData&&(a=Object(I.appendUint8Array)(this.remainderData,l));var u=Object(I.segmentValidRange)(a);this.remainderData=u.remainder,r.samples=u.valid||new Uint8Array}else r.samples=a;return{audioTrack:Object(o.dummyTrack)(),avcTrack:r,id3Track:Object(o.dummyTrack)(),textTrack:Object(o.dummyTrack)()}},s.flush=function(){var l=Object(o.dummyTrack)();return l.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(o.dummyTrack)(),avcTrack:l,id3Track:Object(o.dummyTrack)(),textTrack:Object(o.dummyTrack)()}},s.demuxSampleAes=function(l,a,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},s.destroy=function(){},f}();m.minProbeByteLength=1024,L.default=m},"./src/demux/mpegaudio.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"appendFrame",function(){return t}),E.d(L,"parseHeader",function(){return l}),E.d(L,"isHeaderPattern",function(){return a}),E.d(L,"isHeader",function(){return r}),E.d(L,"canParse",function(){return u}),E.d(L,"probe",function(){return e});var I=null,o=[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],m=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],f=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],s=[0,1,1,4];function t(n,i,c,d,h){if(c+24>i.length)return;var p=l(i,c);if(p&&c+p.frameLength<=i.length){var g=p.samplesPerFrame*9e4/p.sampleRate,v=d+h*g,A={unit:i.subarray(c,c+p.frameLength),pts:v,dts:v};return n.config=[],n.channelCount=p.channelCount,n.samplerate=p.sampleRate,n.samples.push(A),{sample:A,length:p.frameLength,missing:0}}}function l(n,i){var c=n[i+1]>>3&3,d=n[i+1]>>1&3,h=n[i+2]>>4&15,p=n[i+2]>>2&3;if(c!==1&&h!==0&&h!==15&&p!==3){var g=n[i+2]>>1&1,v=n[i+3]>>6,A=c===3?3-d:d===3?3:4,x=o[A*14+h-1]*1e3,b=c===3?0:c===2?1:2,w=m[b*3+p],S=v===3?1:2,T=f[c][d],C=s[d],O=T*8*C,_=Math.floor(T*x/w+g)*C;if(I===null){var M=navigator.userAgent||"",k=M.match(/Chrome\/(\d+)/i);I=k?parseInt(k[1]):0}var R=!!I&&I<=87;return R&&d===2&&x>=224e3&&v===0&&(n[i+3]=n[i+3]|128),{sampleRate:w,channelCount:S,frameLength:_,samplesPerFrame:O}}}function a(n,i){return n[i]===255&&(n[i+1]&224)===224&&(n[i+1]&6)!==0}function r(n,i){return i+1<n.length&&a(n,i)}function u(n,i){var c=4;return a(n,i)&&c<=n.length-i}function e(n,i){if(i+1<n.length&&a(n,i)){var c=4,d=l(n,i),h=c;d!=null&&d.frameLength&&(h=d.frameLength);var p=i+h;return p===n.length||r(n,p)}return!1}},"./src/demux/sample-aes.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/crypt/decrypter.ts"),o=E("./src/demux/tsdemuxer.ts"),m=function(){function f(t,l,a){this.keyData=void 0,this.decrypter=void 0,this.keyData=a,this.decrypter=new I.default(t,l,{removePKCS7Padding:!1})}var s=f.prototype;return s.decryptBuffer=function(l,a){this.decrypter.decrypt(l,this.keyData.key.buffer,this.keyData.iv.buffer,a)},s.decryptAacSample=function(l,a,r,u){var e=l[a].unit,n=e.subarray(16,e.length-e.length%16),i=n.buffer.slice(n.byteOffset,n.byteOffset+n.length),c=this;this.decryptBuffer(i,function(d){var h=new Uint8Array(d);e.set(h,16),u||c.decryptAacSamples(l,a+1,r)})},s.decryptAacSamples=function(l,a,r){for(;;a++){if(a>=l.length){r();return}if(l[a].unit.length<32)continue;var u=this.decrypter.isSync();if(this.decryptAacSample(l,a,r,u),!u)return}},s.getAvcEncryptedData=function(l){for(var a=Math.floor((l.length-48)/160)*16+16,r=new Int8Array(a),u=0,e=32;e<=l.length-16;e+=160,u+=16)r.set(l.subarray(e,e+16),u);return r},s.getAvcDecryptedUnit=function(l,a){for(var r=new Uint8Array(a),u=0,e=32;e<=l.length-16;e+=160,u+=16)l.set(r.subarray(u,u+16),e);return l},s.decryptAvcSample=function(l,a,r,u,e,n){var i=Object(o.discardEPB)(e.data),c=this.getAvcEncryptedData(i),d=this;this.decryptBuffer(c.buffer,function(h){e.data=d.getAvcDecryptedUnit(i,h),n||d.decryptAvcSamples(l,a,r+1,u)})},s.decryptAvcSamples=function(l,a,r,u){if(l instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;a++,r=0){if(a>=l.length){u();return}for(var e=l[a].units;!(r>=e.length);r++){var n=e[r];if(n.data.length<=48||n.type!==1&&n.type!==5)continue;var i=this.decrypter.isSync();if(this.decryptAvcSample(l,a,r,u,n,i),!i)return}}},f}();L.default=m},"./src/demux/transmuxer-interface.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return e});var I=E("./node_modules/webworkify-webpack/index.js"),o=E.n(I),m=E("./src/events.ts"),f=E("./src/demux/transmuxer.ts"),s=E("./src/utils/logger.ts"),t=E("./src/errors.ts"),l=E("./src/utils/mediasource-helper.ts"),a=E("./node_modules/eventemitter3/index.js"),r=E.n(a),u=Object(l.getMediaSource)()||{isTypeSupported:function(){return!1}},e=function(){function n(c,d,h,p){var g=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=c,this.id=d,this.onTransmuxComplete=h,this.onFlush=p;var v=c.config,A=function(T,C){C=C||{},C.frag=g.frag,C.id=g.id,c.trigger(T,C)};this.observer=new a.EventEmitter,this.observer.on(m.Events.FRAG_DECRYPTED,A),this.observer.on(m.Events.ERROR,A);var x={mp4:u.isTypeSupported("video/mp4"),mpeg:u.isTypeSupported("audio/mpeg"),mp3:u.isTypeSupported('audio/mp4; codecs="mp3"')},b=navigator.vendor;if(v.enableWorker&&typeof Worker!="undefined"){s.logger.log("demuxing in webworker");var w;try{w=this.worker=I("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),w.addEventListener("message",this.onwmsg),w.onerror=function(S){c.trigger(m.Events.ERROR,{type:t.ErrorTypes.OTHER_ERROR,details:t.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(S.message+" ("+S.filename+":"+S.lineno+")")})},w.postMessage({cmd:"init",typeSupported:x,vendor:b,id:d,config:JSON.stringify(v)})}catch(S){s.logger.warn("Error in worker:",S),s.logger.error("Error while initializing DemuxerWorker, fallback to inline"),w&&self.URL.revokeObjectURL(w.objectURL),this.transmuxer=new f.default(this.observer,x,v,b,d),this.worker=null}}else this.transmuxer=new f.default(this.observer,x,v,b,d)}var i=n.prototype;return i.destroy=function(){var d=this.worker;if(d)d.removeEventListener("message",this.onwmsg),d.terminate(),this.worker=null;else{var h=this.transmuxer;h&&(h.destroy(),this.transmuxer=null)}var p=this.observer;p&&p.removeAllListeners(),this.observer=null},i.push=function(d,h,p,g,v,A,x,b,w,S){var T=this;w.transmuxing.start=self.performance.now();var C=this.transmuxer,O=this.worker,_=A?A.start:v.start,M=v.decryptdata,k=this.frag,R=!(k&&v.cc===k.cc),B=!(k&&w.level===k.level),P=k?w.sn-k.sn:-1,U=this.part?w.part-this.part.index:1,j=!B&&(P===1||P===0&&U===1),H=self.performance.now();(B||P||v.stats.parsing.start===0)&&(v.stats.parsing.start=H),A&&(U||!j)&&(A.stats.parsing.start=H);var W=new f.TransmuxState(R,j,b,B,_);if(!j||R){s.logger.log("[transmuxer-interface, "+v.type+"]: Starting new transmux session for sn: "+w.sn+" p: "+w.part+" level: "+w.level+" id: "+w.id+`
|
|
|
discontinuity: `+R+`
|
|
|
trackSwitch: `+B+`
|
|
|
contiguous: `+j+`
|
|
|
accurateTimeOffset: `+b+`
|
|
|
timeOffset: `+_);var G=new f.TransmuxConfig(p,g,h,x,S);this.configureTransmuxer(G)}if(this.frag=v,this.part=A,O)O.postMessage({cmd:"demux",data:d,decryptdata:M,chunkMeta:w,state:W},d instanceof ArrayBuffer?[d]:[]);else if(C){var V=C.push(d,M,w,W);Object(f.isPromise)(V)?V.then(function(Z){T.handleTransmuxComplete(Z)}):this.handleTransmuxComplete(V)}},i.flush=function(d){var h=this;d.transmuxing.start=self.performance.now();var p=this.transmuxer,g=this.worker;if(g)g.postMessage({cmd:"flush",chunkMeta:d});else if(p){var v=p.flush(d);Object(f.isPromise)(v)?v.then(function(A){h.handleFlushResult(A,d)}):this.handleFlushResult(v,d)}},i.handleFlushResult=function(d,h){var p=this;d.forEach(function(g){p.handleTransmuxComplete(g)}),this.onFlush(h)},i.onWorkerMessage=function(d){var h=d.data,p=this.hls;switch(h.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(h.data);break}case"flush":{this.onFlush(h.data);break}default:{h.data=h.data||{},h.data.frag=this.frag,h.data.id=this.id,p.trigger(h.event,h.data);break}}},i.configureTransmuxer=function(d){var h=this.worker,p=this.transmuxer;h?h.postMessage({cmd:"configure",config:d}):p&&p.configure(d)},i.handleTransmuxComplete=function(d){d.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(d)},n}()},"./src/demux/transmuxer-worker.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return t});var I=E("./src/demux/transmuxer.ts"),o=E("./src/events.ts"),m=E("./src/utils/logger.ts"),f=E("./node_modules/eventemitter3/index.js"),s=E.n(f);function t(e){var n=new f.EventEmitter,i=function(d,h){e.postMessage({event:d,data:h})};n.on(o.Events.FRAG_DECRYPTED,i),n.on(o.Events.ERROR,i),e.addEventListener("message",function(c){var d=c.data;switch(d.cmd){case"init":{var h=JSON.parse(d.config);e.transmuxer=new I.default(n,d.typeSupported,h,d.vendor,d.id),Object(m.enableLogs)(h.debug),i("init",null);break}case"configure":{e.transmuxer.configure(d.config);break}case"demux":{var p=e.transmuxer.push(d.data,d.decryptdata,d.chunkMeta,d.state);Object(I.isPromise)(p)?p.then(function(A){l(e,A)}):l(e,p);break}case"flush":{var g=d.chunkMeta,v=e.transmuxer.flush(g);Object(I.isPromise)(v)?v.then(function(A){r(e,A,g)}):r(e,v,g);break}default:break}})}function l(e,n){if(u(n.remuxResult))return;var i=[],c=n.remuxResult,d=c.audio,h=c.video;d&&a(i,d),h&&a(i,h),e.postMessage({event:"transmuxComplete",data:n},i)}function a(e,n){n.data1&&e.push(n.data1.buffer),n.data2&&e.push(n.data2.buffer)}function r(e,n,i){n.forEach(function(c){l(e,c)}),e.postMessage({event:"flush",data:i})}function u(e){return!e.audio&&!e.video&&!e.text&&!e.id3&&!e.initSegment}},"./src/demux/transmuxer.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return h}),E.d(L,"isPromise",function(){return v}),E.d(L,"TransmuxConfig",function(){return A}),E.d(L,"TransmuxState",function(){return x});var I=E("./src/events.ts"),o=E("./src/errors.ts"),m=E("./src/crypt/decrypter.ts"),f=E("./src/demux/aacdemuxer.ts"),s=E("./src/demux/mp4demuxer.ts"),t=E("./src/demux/tsdemuxer.ts"),l=E("./src/demux/mp3demuxer.ts"),a=E("./src/remux/mp4-remuxer.ts"),r=E("./src/remux/passthrough-remuxer.ts"),u=E("./src/demux/chunk-cache.ts"),e=E("./src/utils/mp4-tools.ts"),n=E("./src/utils/logger.ts"),i;try{i=self.performance.now.bind(self.performance)}catch(b){n.logger.debug("Unable to use Performance API on this environment"),i=self.Date.now}var c=[{demux:t.default,remux:a.default},{demux:s.default,remux:r.default},{demux:f.default,remux:a.default},{demux:l.default,remux:a.default}],d=1024;c.forEach(function(b){var w=b.demux;d=Math.max(d,w.minProbeByteLength)});var h=function(){function b(S,T,C,O,_){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 u.default,this.observer=S,this.typeSupported=T,this.config=C,this.vendor=O,this.id=_}var w=b.prototype;return w.configure=function(T){this.transmuxConfig=T,this.decrypter&&this.decrypter.reset()},w.push=function(T,C,O,_){var M=this,k=O.transmuxing;k.executeStart=i();var R=new Uint8Array(T),B=this.cache,P=this.config,U=this.currentTransmuxState,j=this.transmuxConfig;_&&(this.currentTransmuxState=_);var H=p(R,C);if(H&&H.method==="AES-128"){var W=this.getDecrypter();if(P.enableSoftwareAES){var G=W.softwareDecrypt(R,H.key.buffer,H.iv.buffer);if(!G)return k.executeEnd=i(),g(O);R=new Uint8Array(G)}else return this.decryptionPromise=W.webCryptoDecrypt(R,H.key.buffer,H.iv.buffer).then(function(le){var de=M.push(le,null,O);return M.decryptionPromise=null,de}),this.decryptionPromise}var V=_||U,Z=V.contiguous,Y=V.discontinuity,Q=V.trackSwitch,oe=V.accurateTimeOffset,ue=V.timeOffset,Le=j.audioCodec,me=j.videoCodec,Ie=j.defaultInitPts,X=j.duration,q=j.initSegmentData;if((Y||Q)&&this.resetInitSegment(q,Le,me,X),Y&&this.resetInitialTimestamp(Ie),Z||this.resetContiguity(),this.needsProbing(R,Y,Q)){if(B.dataLength){var We=B.flush();R=Object(e.appendUint8Array)(We,R)}this.configureTransmuxer(R,j)}var $=this.transmux(R,H,ue,oe,O),J=this.currentTransmuxState;return J.contiguous=!0,J.discontinuity=!1,J.trackSwitch=!1,k.executeEnd=i(),$},w.flush=function(T){var C=this,O=T.transmuxing;O.executeStart=i();var _=this.decrypter,M=this.cache,k=this.currentTransmuxState,R=this.decryptionPromise;if(R)return R.then(function(){return C.flush(T)});var B=[],P=k.timeOffset;if(_){var U=_.flush();U&&B.push(this.push(U,null,T))}var j=M.dataLength;M.reset();var H=this.demuxer,W=this.remuxer;if(!H||!W)return j>=d&&this.observer.emit(I.Events.ERROR,I.Events.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),O.executeEnd=i(),[g(T)];var G=H.flush(P);return v(G)?G.then(function(V){return C.flushRemux(B,V,T),B}):(this.flushRemux(B,G,T),B)},w.flushRemux=function(T,C,O){var _=C.audioTrack,M=C.avcTrack,k=C.id3Track,R=C.textTrack,B=this.currentTransmuxState,P=B.accurateTimeOffset,U=B.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+O.sn+(O.part>-1?" p: "+O.part:"")+" of level "+O.level);var j=this.remuxer.remux(_,M,k,R,U,P,!0,this.id);T.push({remuxResult:j,chunkMeta:O}),O.transmuxing.executeEnd=i()},w.resetInitialTimestamp=function(T){var C=this.demuxer,O=this.remuxer;if(!C||!O)return;C.resetTimeStamp(T),O.resetTimeStamp(T)},w.resetContiguity=function(){var T=this.demuxer,C=this.remuxer;if(!T||!C)return;T.resetContiguity(),C.resetNextTimestamp()},w.resetInitSegment=function(T,C,O,_){var M=this.demuxer,k=this.remuxer;if(!M||!k)return;M.resetInitSegment(C,O,_),k.resetInitSegment(T,C,O)},w.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},w.transmux=function(T,C,O,_,M){var k;return C&&C.method==="SAMPLE-AES"?k=this.transmuxSampleAes(T,C,O,_,M):k=this.transmuxUnencrypted(T,O,_,M),k},w.transmuxUnencrypted=function(T,C,O,_){var M=this.demuxer.demux(T,C,!1,!this.config.progressive),k=M.audioTrack,R=M.avcTrack,B=M.id3Track,P=M.textTrack,U=this.remuxer.remux(k,R,B,P,C,O,!1,this.id);return{remuxResult:U,chunkMeta:_}},w.transmuxSampleAes=function(T,C,O,_,M){var k=this;return this.demuxer.demuxSampleAes(T,C,O).then(function(R){var B=k.remuxer.remux(R.audioTrack,R.avcTrack,R.id3Track,R.textTrack,O,_,!1,k.id);return{remuxResult:B,chunkMeta:M}})},w.configureTransmuxer=function(T,C){for(var O=this.config,_=this.observer,M=this.typeSupported,k=this.vendor,R=C.audioCodec,B=C.defaultInitPts,P=C.duration,U=C.initSegmentData,j=C.videoCodec,H,W=0,G=c.length;W<G;W++)if(c[W].demux.probe(T)){H=c[W];break}H||(n.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),H={demux:s.default,remux:r.default});var V=this.demuxer,Z=this.remuxer,Y=H.remux,Q=H.demux;(!Z||!(Z instanceof Y))&&(this.remuxer=new Y(_,O,M,k)),(!V||!(V instanceof Q))&&(this.demuxer=new Q(_,O,M),this.probe=Q.probe),this.resetInitSegment(U,R,j,P),this.resetInitialTimestamp(B)},w.needsProbing=function(T,C,O){return!this.demuxer||!this.remuxer||C||O},w.getDecrypter=function(){var T=this.decrypter;return T||(T=this.decrypter=new m.default(this.observer,this.config)),T},b}();function p(b,w){var S=null;return b.byteLength>0&&w!=null&&w.key!=null&&w.iv!==null&&w.method!=null&&(S=w),S}var g=function(w){return{remuxResult:{},chunkMeta:w}};function v(b){return"then"in b&&b.then instanceof Function}var A=function(w,S,T,C,O){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=w,this.videoCodec=S,this.initSegmentData=T,this.duration=C,this.defaultInitPts=O},x=function(w,S,T,C,O){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=w,this.contiguous=S,this.accurateTimeOffset=T,this.trackSwitch=C,this.timeOffset=O}},"./src/demux/tsdemuxer.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"discardEPB",function(){return g});var I=E("./src/demux/adts.ts"),o=E("./src/demux/mpegaudio.ts"),m=E("./src/demux/exp-golomb.ts"),f=E("./src/demux/id3.ts"),s=E("./src/demux/sample-aes.ts"),t=E("./src/events.ts"),l=E("./src/utils/mp4-tools.ts"),a=E("./src/utils/logger.ts"),r=E("./src/errors.ts"),u={video:1,audio:2,id3:3,text:4},e=function(){function v(x,b,w){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=x,this.config=b,this.typeSupported=w}v.probe=function(b){var w=v.syncOffset(b);return w<0?!1:(w&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+w+", junk ahead ?"),!0)},v.syncOffset=function(b){for(var w=Math.min(1e3,b.length-3*188),S=0;S<w;){if(b[S]===71&&b[S+188]===71&&b[S+2*188]===71)return S;S++}return-1},v.createTrack=function(b,w){return{container:b==="video"||b==="audio"?"video/mp2t":void 0,type:b,id:u[b],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:b==="audio"?w:void 0}};var A=v.prototype;return A.resetInitSegment=function(b,w,S){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=v.createTrack("video",S),this._audioTrack=v.createTrack("audio",S),this._id3Track=v.createTrack("id3",S),this._txtTrack=v.createTrack("text",S),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=b,this.videoCodec=w,this._duration=S},A.resetTimeStamp=function(){},A.resetContiguity=function(){var b=this._audioTrack,w=this._avcTrack,S=this._id3Track;b&&(b.pesData=null),w&&(w.pesData=null),S&&(S.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},A.demux=function(b,w,S,T){S===void 0&&(S=!1),T===void 0&&(T=!1),S||(this.sampleAes=null);var C,O=this._avcTrack,_=this._audioTrack,M=this._id3Track,k=O.pid,R=O.pesData,B=_.pid,P=M.pid,U=_.pesData,j=M.pesData,H=!1,W=this.pmtParsed,G=this._pmtId,V=b.length;if(this.remainderData&&(b=Object(l.appendUint8Array)(this.remainderData,b),V=b.length,this.remainderData=null),V<188&&!T)return this.remainderData=b,{audioTrack:_,avcTrack:O,id3Track:M,textTrack:this._txtTrack};var Z=Math.max(0,v.syncOffset(b));V-=(V+Z)%188,V<b.byteLength&&!T&&(this.remainderData=new Uint8Array(b.buffer,V,b.buffer.byteLength-V));for(var Y=Z;Y<V;Y+=188)if(b[Y]===71){var Q=!!(b[Y+1]&64),oe=((b[Y+1]&31)<<8)+b[Y+2],ue=(b[Y+3]&48)>>4,Le=void 0;if(ue>1){if(Le=Y+5+b[Y+4],Le===Y+188)continue}else Le=Y+4;switch(oe){case k:Q&&(R&&(C=d(R))&&this.parseAVCPES(C,!1),R={data:[],size:0}),R&&(R.data.push(b.subarray(Le,Y+188)),R.size+=Y+188-Le);break;case B:Q&&(U&&(C=d(U))&&(_.isAAC?this.parseAACPES(C):this.parseMPEGPES(C)),U={data:[],size:0}),U&&(U.data.push(b.subarray(Le,Y+188)),U.size+=Y+188-Le);break;case P:Q&&(j&&(C=d(j))&&this.parseID3PES(C),j={data:[],size:0}),j&&(j.data.push(b.subarray(Le,Y+188)),j.size+=Y+188-Le);break;case 0:Q&&(Le+=b[Le]+1),G=this._pmtId=i(b,Le);break;case G:{Q&&(Le+=b[Le]+1);var me=c(b,Le,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,S);k=me.avc,k>0&&(O.pid=k),B=me.audio,B>0&&(_.pid=B,_.isAAC=me.isAAC),P=me.id3,P>0&&(M.pid=P),H&&!W&&(a.logger.log("reparse from beginning"),H=!1,Y=Z-188),W=this.pmtParsed=!0;break}case 17:case 8191:break;default:H=!0;break}}else this.observer.emit(t.Events.ERROR,t.Events.ERROR,{type:r.ErrorTypes.MEDIA_ERROR,details:r.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});O.pesData=R,_.pesData=U,M.pesData=j;var Ie={audioTrack:_,avcTrack:O,id3Track:M,textTrack:this._txtTrack};return T&&this.extractRemainingSamples(Ie),Ie},A.flush=function(){var b=this.remainderData;this.remainderData=null;var w;return b?w=this.demux(b,-1,!1,!0):w={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(w),this.sampleAes?this.decrypt(w,this.sampleAes):w},A.extractRemainingSamples=function(b){var w=b.audioTrack,S=b.avcTrack,T=b.id3Track,C=S.pesData,O=w.pesData,_=T.pesData,M;C&&(M=d(C))?(this.parseAVCPES(M,!0),S.pesData=null):S.pesData=C,O&&(M=d(O))?(w.isAAC?this.parseAACPES(M):this.parseMPEGPES(M),w.pesData=null):(O!=null&&O.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),w.pesData=O),_&&(M=d(_))?(this.parseID3PES(M),T.pesData=null):T.pesData=_},A.demuxSampleAes=function(b,w,S){var T=this.demux(b,S,!0,!this.config.progressive),C=this.sampleAes=new s.default(this.observer,this.config,w);return this.decrypt(T,C)},A.decrypt=function(b,w){return new Promise(function(S){var T=b.audioTrack,C=b.avcTrack;T.samples&&T.isAAC?w.decryptAacSamples(T.samples,0,function(){C.samples?w.decryptAvcSamples(C.samples,0,0,function(){S(b)}):S(b)}):C.samples&&w.decryptAvcSamples(C.samples,0,0,function(){S(b)})})},A.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},A.parseAVCPES=function(b,w){var S=this,T=this._avcTrack,C=this.parseAVCNALu(b.data),O=!1,_=this.avcSample,M,k=!1;b.data=null,_&&C.length&&!T.audFound&&(h(_,T),_=this.avcSample=n(!1,b.pts,b.dts,"")),C.forEach(function(R){switch(R.type){case 1:{M=!0,_||(_=S.avcSample=n(!0,b.pts,b.dts,"")),O&&(_.debug+="NDR "),_.frame=!0;var B=R.data;if(k&&B.length>4){var P=new m.default(B).readSliceType();(P===2||P===4||P===7||P===9)&&(_.key=!0)}break}case 5:M=!0,_||(_=S.avcSample=n(!0,b.pts,b.dts,"")),O&&(_.debug+="IDR "),_.key=!0,_.frame=!0;break;case 6:{M=!0,O&&_&&(_.debug+="SEI ");var U=new m.default(g(R.data));U.readUByte();for(var j=0,H=0,W=!1,G=0;!W&&U.bytesAvailable>1;){j=0;do G=U.readUByte(),j+=G;while(G===255);H=0;do G=U.readUByte(),H+=G;while(G===255);if(j===4&&U.bytesAvailable!==0){W=!0;var V=U.readUByte();if(V===181){var Z=U.readUShort();if(Z===49){var Y=U.readUInt();if(Y===1195456820){var Q=U.readUByte();if(Q===3){for(var oe=U.readUByte(),ue=U.readUByte(),Le=31&oe,me=[oe,ue],Ie=0;Ie<Le;Ie++)me.push(U.readUByte()),me.push(U.readUByte()),me.push(U.readUByte());p(S._txtTrack.samples,{type:3,pts:b.pts,bytes:me})}}}}}else if(j===5&&U.bytesAvailable!==0){if(W=!0,H>16){for(var X=[],q=0;q<16;q++)X.push(U.readUByte().toString(16)),(q===3||q===5||q===7||q===9)&&X.push("-");for(var We=H-16,$=new Uint8Array(We),J=0;J<We;J++)$[J]=U.readUByte();p(S._txtTrack.samples,{pts:b.pts,payloadType:j,uuid:X.join(""),userData:Object(f.utf8ArrayToStr)($),userDataBytes:$})}}else if(H<U.bytesAvailable)for(var le=0;le<H;le++)U.readUByte()}break}case 7:if(M=!0,k=!0,O&&_&&(_.debug+="SPS "),!T.sps){var de=new m.default(R.data),Ne=de.readSPS();T.width=Ne.width,T.height=Ne.height,T.pixelRatio=Ne.pixelRatio,T.sps=[R.data],T.duration=S._duration;for(var we=R.data.subarray(1,4),De="avc1.",Ee=0;Ee<3;Ee++){var ce=we[Ee].toString(16);ce.length<2&&(ce="0"+ce),De+=ce}T.codec=De}break;case 8:M=!0,O&&_&&(_.debug+="PPS "),T.pps||(T.pps=[R.data]);break;case 9:M=!1,T.audFound=!0,_&&h(_,T),_=S.avcSample=n(!1,b.pts,b.dts,O?"AUD ":"");break;case 12:M=!1;break;default:M=!1,_&&(_.debug+="unknown NAL "+R.type+" ");break}if(_&&M){var ne=_.units;ne.push(R)}}),w&&_&&(h(_,T),this.avcSample=null)},A.getLastNalUnit=function(){var b,w=this.avcSample,S;if(!w||w.units.length===0){var T=this._avcTrack.samples;w=T[T.length-1]}if((b=w)!==null&&b!==void 0&&b.units){var C=w.units;S=C[C.length-1]}return S},A.parseAVCNALu=function(b){var w=b.byteLength,S=this._avcTrack,T=S.naluState||0,C=T,O=[],_=0,M,k,R,B=-1,P=0;for(T===-1&&(B=0,P=b[0]&31,T=0,_=1);_<w;){if(M=b[_++],!T){T=M?0:1;continue}if(T===1){T=M?0:2;continue}if(!M)T=3;else if(M===1){if(B>=0){var U={data:b.subarray(B,_-T-1),type:P};O.push(U)}else{var j=this.getLastNalUnit();if(j&&(C&&_<=4-C&&(j.state&&(j.data=j.data.subarray(0,j.data.byteLength-C))),k=_-T-1,k>0)){var H=new Uint8Array(j.data.byteLength+k);H.set(j.data,0),H.set(b.subarray(0,k),j.data.byteLength),j.data=H,j.state=0}}_<w?(R=b[_]&31,B=_,P=R,T=0):T=-1}else T=0}if(B>=0&&T>=0){var W={data:b.subarray(B,w),type:P,state:T};O.push(W)}if(O.length===0){var G=this.getLastNalUnit();if(G){var V=new Uint8Array(G.data.byteLength+b.byteLength);V.set(G.data,0),V.set(b,G.data.byteLength),G.data=V}}return S.naluState=T,O},A.parseAACPES=function(b){var w=0,S=this._audioTrack,T=this.aacOverFlow,C=b.data;if(T){this.aacOverFlow=null;var O=T.sample.unit.byteLength,_=Math.min(T.missing,O),M=O-_;T.sample.unit.set(C.subarray(0,_),M),S.samples.push(T.sample),w=T.missing}var k,R;for(k=w,R=C.length;k<R-1&&!I.isHeader(C,k);k++);if(k!==w){var B,P;if(k<R-1?(B="AAC PES did not start with ADTS header,offset:"+k,P=!1):(B="no ADTS header found in AAC PES",P=!0),a.logger.warn("parsing error:"+B),this.observer.emit(t.Events.ERROR,t.Events.ERROR,{type:r.ErrorTypes.MEDIA_ERROR,details:r.ErrorDetails.FRAG_PARSING_ERROR,fatal:P,reason:B}),P)return}I.initTrackConfig(S,this.observer,C,k,this.audioCodec);var U;if(b.pts!==void 0)U=b.pts;else if(T){var j=I.getFrameDuration(S.samplerate);U=T.sample.pts+j}else{a.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var H=0;k<R;)if(I.isHeader(C,k)){if(k+5<R){var W=I.appendFrame(S,C,k,U,H);if(W)if(W.missing)this.aacOverFlow=W;else{k+=W.length,H++;continue}}break}else k++},A.parseMPEGPES=function(b){var w=b.data,S=w.length,T=0,C=0,O=b.pts;if(O===void 0){a.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;C<S;)if(o.isHeader(w,C)){var _=o.appendFrame(this._audioTrack,w,C,O,T);if(_)C+=_.length,T++;else break}else C++},A.parseID3PES=function(b){if(b.pts===void 0){a.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(b)},v}();e.minProbeByteLength=188;function n(v,A,x,b){return{key:v,frame:!1,pts:A,dts:x,units:[],debug:b,length:0}}function i(v,A){return(v[A+10]&31)<<8|v[A+11]}function c(v,A,x,b){var w={audio:-1,avc:-1,id3:-1,isAAC:!0},S=(v[A+1]&15)<<8|v[A+2],T=A+3+S-4,C=(v[A+10]&15)<<8|v[A+11];for(A+=12+C;A<T;){var O=(v[A+1]&31)<<8|v[A+2];switch(v[A]){case 207:if(!b){a.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:w.audio===-1&&(w.audio=O);break;case 21:w.id3===-1&&(w.id3=O);break;case 219:if(!b){a.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:w.avc===-1&&(w.avc=O);break;case 3:case 4:x?w.audio===-1&&(w.audio=O,w.isAAC=!1):a.logger.log("MPEG audio found, not supported in this browser");break;case 36:a.logger.warn("Unsupported HEVC stream type found");break;default:break}A+=((v[A+3]&15)<<8|v[A+4])+5}return w}function d(v){var A=0,x,b,w,S,T,C=v.data;if(!v||v.size===0)return null;for(;C[0].length<19&&C.length>1;){var O=new Uint8Array(C[0].length+C[1].length);O.set(C[0]),O.set(C[1],C[0].length),C[0]=O,C.splice(1,1)}x=C[0];var _=(x[0]<<16)+(x[1]<<8)+x[2];if(_===1){if(b=(x[4]<<8)+x[5],b&&b>v.size-6)return null;var M=x[7];M&192&&(S=(x[9]&14)*536870912+(x[10]&255)*4194304+(x[11]&254)*16384+(x[12]&255)*128+(x[13]&254)/2,M&64?(T=(x[14]&14)*536870912+(x[15]&255)*4194304+(x[16]&254)*16384+(x[17]&255)*128+(x[18]&254)/2,S-T>60*9e4&&(a.logger.warn(Math.round((S-T)/9e4)+"s delta between PTS and DTS, align them"),S=T)):T=S),w=x[8];var k=w+9;if(v.size<=k)return null;v.size-=k;for(var R=new Uint8Array(v.size),B=0,P=C.length;B<P;B++){x=C[B];var U=x.byteLength;if(k)if(k>U){k-=U;continue}else x=x.subarray(k),U-=k,k=0;R.set(x,A),A+=U}return b&&(b-=w+3),{data:R,pts:S,dts:T,len:b}}return null}function h(v,A){if(v.units.length&&v.frame){if(v.pts===void 0){var x=A.samples,b=x.length;if(b){var w=x[b-1];v.pts=w.pts,v.dts=w.dts}else{A.dropped++;return}}A.samples.push(v)}v.debug.length&&a.logger.log(v.pts+"/"+v.dts+":"+v.debug)}function p(v,A){var x=v.length;if(x>0){if(A.pts>=v[x-1].pts)v.push(A);else for(var b=x-1;b>=0;b--)if(A.pts<v[b].pts){v.splice(b,0,A);break}}else v.push(A)}function g(v){for(var A=v.byteLength,x=[],b=1;b<A-2;)v[b]===0&&v[b+1]===0&&v[b+2]===3?(x.push(b+2),b+=2):b++;if(x.length===0)return v;var w=A-x.length,S=new Uint8Array(w),T=0;for(b=0;b<w;T++,b++)T===x[0]&&(T++,x.shift()),S[b]=v[T];return S}L.default=e},"./src/errors.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"ErrorTypes",function(){return I}),E.d(L,"ErrorDetails",function(){return o});var I;(function(m){m.NETWORK_ERROR="networkError",m.MEDIA_ERROR="mediaError",m.KEY_SYSTEM_ERROR="keySystemError",m.MUX_ERROR="muxError",m.OTHER_ERROR="otherError"})(I||(I={}));var o;(function(m){m.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",m.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",m.KEY_SYSTEM_NO_SESSION="keySystemNoSession",m.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",m.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",m.MANIFEST_LOAD_ERROR="manifestLoadError",m.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",m.MANIFEST_PARSING_ERROR="manifestParsingError",m.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",m.LEVEL_EMPTY_ERROR="levelEmptyError",m.LEVEL_LOAD_ERROR="levelLoadError",m.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",m.LEVEL_SWITCH_ERROR="levelSwitchError",m.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",m.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",m.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",m.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",m.FRAG_LOAD_ERROR="fragLoadError",m.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",m.FRAG_DECRYPT_ERROR="fragDecryptError",m.FRAG_PARSING_ERROR="fragParsingError",m.REMUX_ALLOC_ERROR="remuxAllocError",m.KEY_LOAD_ERROR="keyLoadError",m.KEY_LOAD_TIMEOUT="keyLoadTimeOut",m.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",m.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",m.BUFFER_APPEND_ERROR="bufferAppendError",m.BUFFER_APPENDING_ERROR="bufferAppendingError",m.BUFFER_STALLED_ERROR="bufferStalledError",m.BUFFER_FULL_ERROR="bufferFullError",m.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",m.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",m.INTERNAL_EXCEPTION="internalException",m.INTERNAL_ABORTED="aborted",m.UNKNOWN="unknown"})(o||(o={}))},"./src/events.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"Events",function(){return I});var I;(function(o){o.MEDIA_ATTACHING="hlsMediaAttaching",o.MEDIA_ATTACHED="hlsMediaAttached",o.MEDIA_DETACHING="hlsMediaDetaching",o.MEDIA_DETACHED="hlsMediaDetached",o.BUFFER_RESET="hlsBufferReset",o.BUFFER_CODECS="hlsBufferCodecs",o.BUFFER_CREATED="hlsBufferCreated",o.BUFFER_APPENDING="hlsBufferAppending",o.BUFFER_APPENDED="hlsBufferAppended",o.BUFFER_EOS="hlsBufferEos",o.BUFFER_FLUSHING="hlsBufferFlushing",o.BUFFER_FLUSHED="hlsBufferFlushed",o.MANIFEST_LOADING="hlsManifestLoading",o.MANIFEST_LOADED="hlsManifestLoaded",o.MANIFEST_PARSED="hlsManifestParsed",o.LEVEL_SWITCHING="hlsLevelSwitching",o.LEVEL_SWITCHED="hlsLevelSwitched",o.LEVEL_LOADING="hlsLevelLoading",o.LEVEL_LOADED="hlsLevelLoaded",o.LEVEL_UPDATED="hlsLevelUpdated",o.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",o.LEVELS_UPDATED="hlsLevelsUpdated",o.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",o.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",o.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",o.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",o.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",o.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",o.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",o.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",o.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",o.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",o.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",o.CUES_PARSED="hlsCuesParsed",o.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",o.INIT_PTS_FOUND="hlsInitPtsFound",o.FRAG_LOADING="hlsFragLoading",o.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",o.FRAG_LOADED="hlsFragLoaded",o.FRAG_DECRYPTED="hlsFragDecrypted",o.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",o.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",o.FRAG_PARSING_METADATA="hlsFragParsingMetadata",o.FRAG_PARSED="hlsFragParsed",o.FRAG_BUFFERED="hlsFragBuffered",o.FRAG_CHANGED="hlsFragChanged",o.FPS_DROP="hlsFpsDrop",o.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",o.ERROR="hlsError",o.DESTROYING="hlsDestroying",o.KEY_LOADING="hlsKeyLoading",o.KEY_LOADED="hlsKeyLoaded",o.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",o.BACK_BUFFER_REACHED="hlsBackBufferReached"})(I||(I={}))},"./src/hls.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return v});var I=E("./node_modules/url-toolkit/src/url-toolkit.js"),o=E.n(I),m=E("./src/loader/playlist-loader.ts"),f=E("./src/loader/key-loader.ts"),s=E("./src/controller/id3-track-controller.ts"),t=E("./src/controller/latency-controller.ts"),l=E("./src/controller/level-controller.ts"),a=E("./src/controller/fragment-tracker.ts"),r=E("./src/controller/stream-controller.ts"),u=E("./src/is-supported.ts"),e=E("./src/utils/logger.ts"),n=E("./src/config.ts"),i=E("./node_modules/eventemitter3/index.js"),c=E.n(i),d=E("./src/events.ts"),h=E("./src/errors.ts");function p(A,x){for(var b=0;b<x.length;b++){var w=x[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(A,w.key,w)}}function g(A,x,b){return x&&p(A.prototype,x),b&&p(A,b),A}var v=function(){A.isSupported=function(){return Object(u.isSupported)()};function A(b){b===void 0&&(b={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new i.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 w=this.config=Object(n.mergeConfig)(A.DefaultConfig,b);this.userConfig=b,Object(e.enableLogs)(w.debug),this._autoLevelCapping=-1,w.progressive&&Object(n.enableStreamingMode)(w);var S=w.abrController,T=w.bufferController,C=w.capLevelController,O=w.fpsController,_=this.abrController=new S(this),M=this.bufferController=new T(this),k=this.capLevelController=new C(this),R=new O(this),B=new m.default(this),P=new f.default(this),U=new s.default(this),j=this.levelController=new l.default(this),H=new a.FragmentTracker(this),W=this.streamController=new r.default(this,H);k.setStreamController(W),R.setStreamController(W);var G=[j,W];this.networkControllers=G;var V=[B,P,_,M,k,R,U,H];this.audioTrackController=this.createController(w.audioTrackController,null,G),this.createController(w.audioStreamController,H,G),this.subtitleTrackController=this.createController(w.subtitleTrackController,null,G),this.createController(w.subtitleStreamController,H,G),this.createController(w.timelineController,null,V),this.emeController=this.createController(w.emeController,null,V),this.cmcdController=this.createController(w.cmcdController,null,V),this.latencyController=this.createController(t.default,null,V),this.coreComponents=V}var x=A.prototype;return x.createController=function(w,S,T){if(w){var C=S?new w(this,S):new w(this);return T&&T.push(C),C}return null},x.on=function(w,S,T){T===void 0&&(T=this),this._emitter.on(w,S,T)},x.once=function(w,S,T){T===void 0&&(T=this),this._emitter.once(w,S,T)},x.removeAllListeners=function(w){this._emitter.removeAllListeners(w)},x.off=function(w,S,T,C){T===void 0&&(T=this),this._emitter.off(w,S,T,C)},x.listeners=function(w){return this._emitter.listeners(w)},x.emit=function(w,S,T){return this._emitter.emit(w,S,T)},x.trigger=function(w,S){if(this.config.debug)return this.emit(w,w,S);try{return this.emit(w,w,S)}catch(T){e.logger.error("An internal error happened while handling event "+w+'. Error message: "'+T.message+'". Here is a stacktrace:',T),this.trigger(d.Events.ERROR,{type:h.ErrorTypes.OTHER_ERROR,details:h.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:w,error:T})}return!1},x.listenerCount=function(w){return this._emitter.listenerCount(w)},x.destroy=function(){e.logger.log("destroy"),this.trigger(d.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(w){return w.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(w){return w.destroy()}),this.coreComponents.length=0},x.attachMedia=function(w){e.logger.log("attachMedia"),this._media=w,this.trigger(d.Events.MEDIA_ATTACHING,{media:w})},x.detachMedia=function(){e.logger.log("detachMedia"),this.trigger(d.Events.MEDIA_DETACHING,void 0),this._media=null},x.loadSource=function(w){this.stopLoad();var S=this.media,T=this.url,C=this.url=I.buildAbsoluteURL(self.location.href,w,{alwaysNormalize:!0});e.logger.log("loadSource:"+C),S&&T&&T!==C&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(S)),this.trigger(d.Events.MANIFEST_LOADING,{url:w})},x.startLoad=function(w){w===void 0&&(w=-1),e.logger.log("startLoad("+w+")"),this.networkControllers.forEach(function(S){S.startLoad(w)})},x.stopLoad=function(){e.logger.log("stopLoad"),this.networkControllers.forEach(function(w){w.stopLoad()})},x.swapAudioCodec=function(){e.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},x.recoverMediaError=function(){e.logger.log("recoverMediaError");var w=this._media;this.detachMedia(),w&&this.attachMedia(w)},x.removeLevel=function(w,S){S===void 0&&(S=0),this.levelController.removeLevel(w,S)},g(A,[{key:"levels",get:function(){var w=this.levelController.levels;return w||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(w){e.logger.log("set currentLevel:"+w),this.loadLevel=w,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(w){e.logger.log("set nextLevel:"+w),this.levelController.manualLevel=w,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(w){e.logger.log("set loadLevel:"+w),this.levelController.manualLevel=w}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(w){this.levelController.nextLoadLevel=w}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(w){e.logger.log("set firstLevel:"+w),this.levelController.firstLevel=w}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(w){e.logger.log("set startLevel:"+w),w!==-1&&(w=Math.max(w,this.minAutoLevel)),this.levelController.startLevel=w}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(w){var S=!!w;S!==this.config.capLevelToPlayerSize&&(S?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=S)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(w){this._autoLevelCapping!==w&&(e.logger.log("set autoLevelCapping:"+w),this._autoLevelCapping=w)}},{key:"bandwidthEstimate",get:function(){var w=this.abrController.bwEstimator;return w?w.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var w=this.levels,S=this.config.minAutoBitrate;if(!w)return 0;for(var T=w.length,C=0;C<T;C++)if(w[C].maxBitrate>S)return C;return 0}},{key:"maxAutoLevel",get:function(){var w=this.levels,S=this.autoLevelCapping,T;return S===-1&&w&&w.length?T=w.length-1:T=S,T}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(w){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,w)}},{key:"audioTracks",get:function(){var w=this.audioTrackController;return w?w.audioTracks:[]}},{key:"audioTrack",get:function(){var w=this.audioTrackController;return w?w.audioTrack:-1},set:function(w){var S=this.audioTrackController;S&&(S.audioTrack=w)}},{key:"subtitleTracks",get:function(){var w=this.subtitleTrackController;return w?w.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var w=this.subtitleTrackController;return w?w.subtitleTrack:-1},set:function(w){var S=this.subtitleTrackController;S&&(S.subtitleTrack=w)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var w=this.subtitleTrackController;return w?w.subtitleDisplay:!1},set:function(w){var S=this.subtitleTrackController;S&&(S.subtitleDisplay=w)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(w){this.config.lowLatencyMode=w}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return d.Events}},{key:"ErrorTypes",get:function(){return h.ErrorTypes}},{key:"ErrorDetails",get:function(){return h.ErrorDetails}},{key:"DefaultConfig",get:function(){return A.defaultConfig?A.defaultConfig:n.hlsDefaultConfig},set:function(w){A.defaultConfig=w}}]),A}();v.defaultConfig=void 0},"./src/is-supported.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"isSupported",function(){return m}),E.d(L,"changeTypeSupported",function(){return f});var I=E("./src/utils/mediasource-helper.ts");function o(){return self.SourceBuffer||self.WebKitSourceBuffer}function m(){var s=Object(I.getMediaSource)();if(!s)return!1;var t=o(),l=s&&typeof s.isTypeSupported=="function"&&s.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function";return!!l&&!!a}function f(){var s,t=o();return typeof(t==null||((s=t.prototype)===null||s===void 0)?void 0:s.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return e}),E.d(L,"LoadError",function(){return i});var I=E("./src/polyfills/number.ts"),o=E("./src/errors.ts");function m(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,a(c,d)}function f(c){var d=typeof Map=="function"?new Map:void 0;return f=function(p){if(p===null||!l(p))return p;if(typeof p!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d!="undefined"){if(d.has(p))return d.get(p);d.set(p,g)}function g(){return s(p,arguments,r(this).constructor)}return g.prototype=Object.create(p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),a(g,p)},f(c)}function s(c,d,h){return t()?s=Reflect.construct:s=function(g,v,A){var x=[null];x.push.apply(x,v);var b=Function.bind.apply(g,x),w=new b;return A&&a(w,A.prototype),w},s.apply(null,arguments)}function t(){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(c){return!1}}function l(c){return Function.toString.call(c).indexOf("[native code]")!==-1}function a(c,d){return a=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},a(c,d)}function r(c){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},r(c)}var u=Math.pow(2,17),e=function(){function c(h){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=h}var d=c.prototype;return d.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},d.abort=function(){this.loader&&this.loader.abort()},d.load=function(p,g){var v=this,A=p.url;if(!A)return Promise.reject(new i({type:o.ErrorTypes.NETWORK_ERROR,details:o.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:p,networkDetails:null},"Fragment does not have a "+(A?"part list":"url")));this.abort();var x=this.config,b=x.fLoader,w=x.loader;return new Promise(function(S,T){v.loader&&v.loader.destroy();var C=v.loader=p.loader=b?new b(x):new w(x),O=n(p),_={timeout:x.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:x.fragLoadingMaxRetryTimeout,highWaterMark:u};p.stats=C.stats,C.load(O,_,{onSuccess:function(k,R,B,P){v.resetLoader(p,C),S({frag:p,part:null,payload:k.data,networkDetails:P})},onError:function(k,R,B){v.resetLoader(p,C),T(new i({type:o.ErrorTypes.NETWORK_ERROR,details:o.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:p,response:k,networkDetails:B}))},onAbort:function(k,R,B){v.resetLoader(p,C),T(new i({type:o.ErrorTypes.NETWORK_ERROR,details:o.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:p,networkDetails:B}))},onTimeout:function(k,R,B){v.resetLoader(p,C),T(new i({type:o.ErrorTypes.NETWORK_ERROR,details:o.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:p,networkDetails:B}))},onProgress:function(k,R,B,P){g&&g({frag:p,part:null,payload:B,networkDetails:P})}})})},d.loadPart=function(p,g,v){var A=this;this.abort();var x=this.config,b=x.fLoader,w=x.loader;return new Promise(function(S,T){A.loader&&A.loader.destroy();var C=A.loader=p.loader=b?new b(x):new w(x),O=n(p,g),_={timeout:x.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:x.fragLoadingMaxRetryTimeout,highWaterMark:u};g.stats=C.stats,C.load(O,_,{onSuccess:function(k,R,B,P){A.resetLoader(p,C),A.updateStatsFromPart(p,g);var U={frag:p,part:g,payload:k.data,networkDetails:P};v(U),S(U)},onError:function(k,R,B){A.resetLoader(p,C),T(new i({type:o.ErrorTypes.NETWORK_ERROR,details:o.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:p,part:g,response:k,networkDetails:B}))},onAbort:function(k,R,B){p.stats.aborted=g.stats.aborted,A.resetLoader(p,C),T(new i({type:o.ErrorTypes.NETWORK_ERROR,details:o.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:p,part:g,networkDetails:B}))},onTimeout:function(k,R,B){A.resetLoader(p,C),T(new i({type:o.ErrorTypes.NETWORK_ERROR,details:o.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:p,part:g,networkDetails:B}))}})})},d.updateStatsFromPart=function(p,g){var v=p.stats,A=g.stats,x=A.total;if(v.loaded+=A.loaded,x){var b=Math.round(p.duration/g.duration),w=Math.min(Math.round(v.loaded/x),b),S=b-w,T=S*Math.round(v.loaded/w);v.total=v.loaded+T}else v.total=Math.max(v.loaded,v.total);var C=v.loading,O=A.loading;C.start?C.first+=O.first-O.start:(C.start=O.start,C.first=O.first),C.end=O.end},d.resetLoader=function(p,g){p.loader=null,this.loader===g&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),g.destroy()},c}();function n(c,d){d===void 0&&(d=null);var h=d||c,p={frag:c,part:d,responseType:"arraybuffer",url:h.url,headers:{},rangeStart:0,rangeEnd:0},g=h.byteRangeStartOffset,v=h.byteRangeEndOffset;return Object(I.isFiniteNumber)(g)&&Object(I.isFiniteNumber)(v)&&(p.rangeStart=g,p.rangeEnd=v),p}var i=function(c){m(d,c);function d(h){for(var p,g=arguments.length,v=new Array(g>1?g-1:0),A=1;A<g;A++)v[A-1]=arguments[A];return p=c.call.apply(c,[this].concat(v))||this,p.data=void 0,p.data=h,p}return d}(f(Error))},"./src/loader/fragment.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"ElementaryStreamTypes",function(){return e}),E.d(L,"BaseSegment",function(){return n}),E.d(L,"Fragment",function(){return i}),E.d(L,"Part",function(){return c});var I=E("./src/polyfills/number.ts"),o=E("./node_modules/url-toolkit/src/url-toolkit.js"),m=E.n(o),f=E("./src/utils/logger.ts"),s=E("./src/loader/level-key.ts"),t=E("./src/loader/load-stats.ts");function l(d,h){d.prototype=Object.create(h.prototype),d.prototype.constructor=d,a(d,h)}function a(d,h){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(d,h)}function r(d,h){for(var p=0;p<h.length;p++){var g=h[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}function u(d,h,p){return h&&r(d.prototype,h),p&&r(d,p),d}var e;(function(d){d.AUDIO="audio",d.VIDEO="video",d.AUDIOVIDEO="audiovideo"})(e||(e={}));var n=function(){function d(p){var g;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(g={},g[e.AUDIO]=null,g[e.VIDEO]=null,g[e.AUDIOVIDEO]=null,g),this.baseurl=p}var h=d.prototype;return h.setByteRange=function(g,v){var A=g.split("@",2),x=[];A.length===1?x[0]=v?v.byteRangeEndOffset:0:x[0]=parseInt(A[1]),x[1]=parseInt(A[0])+x[0],this._byteRange=x},u(d,[{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(o.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(g){this._url=g}}]),d}(),i=function(d){l(h,d);function h(g,v){var A;return A=d.call(this,v)||this,A._decryptdata=null,A.rawProgramDateTime=null,A.programDateTime=null,A.tagList=[],A.duration=0,A.sn=0,A.levelkey=void 0,A.type=void 0,A.loader=null,A.level=-1,A.cc=0,A.startPTS=void 0,A.endPTS=void 0,A.appendedPTS=void 0,A.startDTS=void 0,A.endDTS=void 0,A.start=0,A.deltaPTS=void 0,A.maxStartPTS=void 0,A.minEndPTS=void 0,A.stats=new t.LoadStats,A.urlId=0,A.data=void 0,A.bitrateTest=!1,A.title=null,A.initSegment=null,A.type=g,A}var p=h.prototype;return p.createInitializationVector=function(v){for(var A=new Uint8Array(16),x=12;x<16;x++)A[x]=v>>8*(15-x)&255;return A},p.setDecryptDataFromLevelKey=function(v,A){var x=v;return(v==null?void 0:v.method)==="AES-128"&&v.uri&&!v.iv&&(x=s.LevelKey.fromURI(v.uri),x.method=v.method,x.iv=this.createInitializationVector(A),x.keyFormat="identity"),x},p.setElementaryStreamInfo=function(v,A,x,b,w,S){S===void 0&&(S=!1);var T=this.elementaryStreams,C=T[v];if(!C){T[v]={startPTS:A,endPTS:x,startDTS:b,endDTS:w,partial:S};return}C.startPTS=Math.min(C.startPTS,A),C.endPTS=Math.max(C.endPTS,x),C.startDTS=Math.min(C.startDTS,b),C.endDTS=Math.max(C.endDTS,w)},p.clearElementaryStreamInfo=function(){var v=this.elementaryStreams;v[e.AUDIO]=null,v[e.VIDEO]=null,v[e.AUDIOVIDEO]=null},u(h,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var v=this.sn;typeof v!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&f.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),v=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,v)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(I.isFiniteNumber)(this.programDateTime))return null;var v=Object(I.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+v*1e3}},{key:"encrypted",get:function(){var v;return!!((v=this.decryptdata)!==null&&v!==void 0&&v.keyFormat&&this.decryptdata.uri)}}]),h}(n),c=function(d){l(h,d);function h(p,g,v,A,x){var b;b=d.call(this,v)||this,b.fragOffset=0,b.duration=0,b.gap=!1,b.independent=!1,b.relurl=void 0,b.fragment=void 0,b.index=void 0,b.stats=new t.LoadStats,b.duration=p.decimalFloatingPoint("DURATION"),b.gap=p.bool("GAP"),b.independent=p.bool("INDEPENDENT"),b.relurl=p.enumeratedString("URI"),b.fragment=g,b.index=A;var w=p.enumeratedString("BYTERANGE");return w&&b.setByteRange(w,x),x&&(b.fragOffset=x.fragOffset+x.duration),b}return u(h,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var g=this.elementaryStreams;return!!(g.audio||g.video||g.audiovideo)}}]),h}(n)},"./src/loader/key-loader.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return f});var I=E("./src/events.ts"),o=E("./src/errors.ts"),m=E("./src/utils/logger.ts"),f=function(){function s(l){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=l,this._registerListeners()}var t=s.prototype;return t._registerListeners=function(){this.hls.on(I.Events.KEY_LOADING,this.onKeyLoading,this)},t._unregisterListeners=function(){this.hls.off(I.Events.KEY_LOADING,this.onKeyLoading)},t.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var r=this.loaders[a];r&&r.destroy()}this.loaders={}},t.onKeyLoading=function(a,r){var u=r.frag,e=u.type,n=this.loaders[e];if(!u.decryptdata){m.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var i=u.decryptdata.uri;if(i!==this.decrypturl||this.decryptkey===null){var c=this.hls.config;if(n&&(m.logger.warn("abort previous key loader for type:"+e),n.abort()),!i){m.logger.warn("key uri is falsy");return}var d=c.loader,h=u.loader=this.loaders[e]=new d(c);this.decrypturl=i,this.decryptkey=null;var p={url:i,frag:u,responseType:"arraybuffer"},g={timeout:c.fragLoadingTimeOut,maxRetry:0,retryDelay:c.fragLoadingRetryDelay,maxRetryDelay:c.fragLoadingMaxRetryTimeout,highWaterMark:0},v={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};h.load(p,g,v)}else this.decryptkey&&(u.decryptdata.key=this.decryptkey,this.hls.trigger(I.Events.KEY_LOADED,{frag:u}))},t.loadsuccess=function(a,r,u){var e=u.frag;if(!e.decryptdata){m.logger.error("after key load, decryptdata unset");return}this.decryptkey=e.decryptdata.key=new Uint8Array(a.data),e.loader=null,delete this.loaders[e.type],this.hls.trigger(I.Events.KEY_LOADED,{frag:e})},t.loaderror=function(a,r){var u=r.frag,e=u.loader;e&&e.abort(),delete this.loaders[u.type],this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.NETWORK_ERROR,details:o.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:u,response:a})},t.loadtimeout=function(a,r){var u=r.frag,e=u.loader;e&&e.abort(),delete this.loaders[u.type],this.hls.trigger(I.Events.ERROR,{type:o.ErrorTypes.NETWORK_ERROR,details:o.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:u})},s}()},"./src/loader/level-details.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"LevelDetails",function(){return s});var I=E("./src/polyfills/number.ts");function o(t,l){for(var a=0;a<l.length;a++){var r=l[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,l,a){return l&&o(t.prototype,l),a&&o(t,a),t}var f=10,s=function(){function t(a){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=a}var l=t.prototype;return l.reloaded=function(r){if(!r){this.advanced=!0,this.updated=!0;return}var u=this.lastPartSn-r.lastPartSn,e=this.lastPartIndex-r.lastPartIndex;this.updated=this.endSN!==r.endSN||!!e||!!u,this.advanced=this.endSN>r.endSN||u>0||u===0&&e>0,this.updated||this.advanced?this.misses=Math.floor(r.misses*.6):this.misses=r.misses+1,this.availabilityDelay=r.availabilityDelay},m(t,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(I.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||f}},{key:"drift",get:function(){var r=this.driftEndTime-this.driftStartTime;if(r>0){var u=this.driftEnd-this.driftStart;return u*1e3/r}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var r;return(r=this.partList)!==null&&r!==void 0&&r.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var r;return(r=this.fragments)!==null&&r!==void 0&&r.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 r;return(r=this.partList)!==null&&r!==void 0&&r.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var r;return(r=this.partList)!==null&&r!==void 0&&r.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),t}()},"./src/loader/level-key.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"LevelKey",function(){return s});var I=E("./node_modules/url-toolkit/src/url-toolkit.js"),o=E.n(I);function m(t,l){for(var a=0;a<l.length;a++){var r=l[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,l,a){return l&&m(t.prototype,l),a&&m(t,a),t}var s=function(){t.fromURL=function(a,r){return new t(a,r)},t.fromURI=function(a){return new t(a)};function t(l,a){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,a?this._uri=Object(I.buildAbsoluteURL)(l,a,{alwaysNormalize:!0}):this._uri=l}return f(t,[{key:"uri",get:function(){return this._uri}}]),t}()},"./src/loader/load-stats.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"LoadStats",function(){return I});var I=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(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return h});var I=E("./src/polyfills/number.ts"),o=E("./node_modules/url-toolkit/src/url-toolkit.js"),m=E.n(o),f=E("./src/loader/fragment.ts"),s=E("./src/loader/level-details.ts"),t=E("./src/loader/level-key.ts"),l=E("./src/utils/attr-list.ts"),a=E("./src/utils/logger.ts"),r=E("./src/utils/codecs.ts"),u=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,e=/#EXT-X-MEDIA:(.*)/g,n=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),i=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("|")),c=/\.(mp4|m4s|m4v|m4a)$/i;function d(x){var b,w;return c.test((b=(w=o.parseURL(x))===null||w===void 0?void 0:w.path)!=null?b:"")}var h=function(){function x(){}return x.findGroup=function(w,S){for(var T=0;T<w.length;T++){var C=w[T];if(C.id===S)return C}},x.convertAVC1ToAVCOTI=function(w){var S=w.split(".");if(S.length>2){var T=S.shift()+".";return T+=parseInt(S.shift()).toString(16),T+=("000"+parseInt(S.shift()).toString(16)).substr(-4),T}return w},x.resolve=function(w,S){return o.buildAbsoluteURL(S,w,{alwaysNormalize:!0})},x.parseMasterPlaylist=function(w,S){var T=[],C={},O=!1;u.lastIndex=0;for(var _;(_=u.exec(w))!=null;)if(_[1]){var M=new l.AttrList(_[1]),k={attrs:M,bitrate:M.decimalInteger("AVERAGE-BANDWIDTH")||M.decimalInteger("BANDWIDTH"),name:M.NAME,url:x.resolve(_[2],S)},R=M.decimalResolution("RESOLUTION");R&&(k.width=R.width,k.height=R.height),p((M.CODECS||"").split(/[ ,]+/).filter(function(P){return P}),k),k.videoCodec&&k.videoCodec.indexOf("avc1")!==-1&&(k.videoCodec=x.convertAVC1ToAVCOTI(k.videoCodec)),T.push(k)}else if(_[3]){var B=new l.AttrList(_[3]);B["DATA-ID"]&&(O=!0,C[B["DATA-ID"]]=B)}return{levels:T,sessionData:O?C:null}},x.parseMasterPlaylistMedia=function(w,S,T,C){C===void 0&&(C=[]);var O,_=[],M=0;for(e.lastIndex=0;(O=e.exec(w))!==null;){var k=new l.AttrList(O[1]);if(k.TYPE===T){var R={attrs:k,bitrate:0,id:M++,groupId:k["GROUP-ID"],instreamId:k["INSTREAM-ID"],name:k.NAME||k.LANGUAGE||"",type:T,default:k.bool("DEFAULT"),autoselect:k.bool("AUTOSELECT"),forced:k.bool("FORCED"),lang:k.LANGUAGE,url:k.URI?x.resolve(k.URI,S):""};if(C.length){var B=x.findGroup(C,R.groupId)||C[0];g(R,B,"audioCodec"),g(R,B,"textCodec")}_.push(R)}}return _},x.parseLevelPlaylist=function(w,S,T,C,O){var _=new s.LevelDetails(S),M=_.fragments,k=null,R=0,B=0,P=0,U=0,j=null,H=new f.Fragment(C,S),W,G,V,Z=-1,Y=!1;for(n.lastIndex=0,_.m3u8=w;(W=n.exec(w))!==null;){Y&&(Y=!1,H=new f.Fragment(C,S),H.start=P,H.sn=R,H.cc=U,H.level=T,k&&(H.initSegment=k,H.rawProgramDateTime=k.rawProgramDateTime));var Q=W[1];if(Q){H.duration=parseFloat(Q);var oe=(" "+W[2]).slice(1);H.title=oe||null,H.tagList.push(oe?["INF",Q,oe]:["INF",Q])}else if(W[3])Object(I.isFiniteNumber)(H.duration)&&(H.start=P,V&&(H.levelkey=V),H.sn=R,H.level=T,H.cc=U,H.urlId=O,M.push(H),H.relurl=(" "+W[3]).slice(1),A(H,j),j=H,P+=H.duration,R++,B=0,Y=!0);else if(W[4]){var ue=(" "+W[4]).slice(1);j?H.setByteRange(ue,j):H.setByteRange(ue)}else if(W[5])H.rawProgramDateTime=(" "+W[5]).slice(1),H.tagList.push(["PROGRAM-DATE-TIME",H.rawProgramDateTime]),Z===-1&&(Z=M.length);else{if(W=W[0].match(i),!W){a.logger.warn("No matches on slow regex match for level playlist!");continue}for(G=1;G<W.length&&!(typeof W[G]!="undefined");G++);var Le=(" "+W[G]).slice(1),me=(" "+W[G+1]).slice(1),Ie=W[G+2]?(" "+W[G+2]).slice(1):"";switch(Le){case"PLAYLIST-TYPE":_.type=me.toUpperCase();break;case"MEDIA-SEQUENCE":R=_.startSN=parseInt(me);break;case"SKIP":{var X=new l.AttrList(me),q=X.decimalInteger("SKIPPED-SEGMENTS");if(Object(I.isFiniteNumber)(q)){_.skippedSegments=q;for(var We=q;We--;)M.unshift(null);R+=q}var $=X.enumeratedString("RECENTLY-REMOVED-DATERANGES");$&&(_.recentlyRemovedDateranges=$.split(" "));break}case"TARGETDURATION":_.targetduration=parseFloat(me);break;case"VERSION":_.version=parseInt(me);break;case"EXTM3U":break;case"ENDLIST":_.live=!1;break;case"#":(me||Ie)&&H.tagList.push(Ie?[me,Ie]:[me]);break;case"DIS":U++;case"GAP":H.tagList.push([Le]);break;case"BITRATE":H.tagList.push([Le,me]);break;case"DISCONTINUITY-SEQ":U=parseInt(me);break;case"KEY":{var J,le=new l.AttrList(me),de=le.enumeratedString("METHOD"),Ne=le.URI,we=le.hexadecimalInteger("IV"),De=le.enumeratedString("KEYFORMATVERSIONS"),Ee=le.enumeratedString("KEYID"),ce=(J=le.enumeratedString("KEYFORMAT"))!=null?J:"identity",ne=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(ne.indexOf(ce)>-1){a.logger.warn("Keyformat "+ce+" is not supported from the manifest");continue}else if(ce!=="identity")continue;de&&(V=t.LevelKey.fromURL(S,Ne),Ne&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(de)>=0&&(V.method=de,V.keyFormat=ce,Ee&&(V.keyID=Ee),De&&(V.keyFormatVersions=De),V.iv=we));break}case"START":{var ee=new l.AttrList(me),Ae=ee.decimalFloatingPoint("TIME-OFFSET");Object(I.isFiniteNumber)(Ae)&&(_.startTimeOffset=Ae);break}case"MAP":{var Ve=new l.AttrList(me);H.relurl=Ve.URI,Ve.BYTERANGE&&H.setByteRange(Ve.BYTERANGE),H.level=T,H.sn="initSegment",V&&(H.levelkey=V),H.initSegment=null,k=H,Y=!0;break}case"SERVER-CONTROL":{var Ke=new l.AttrList(me);_.canBlockReload=Ke.bool("CAN-BLOCK-RELOAD"),_.canSkipUntil=Ke.optionalFloat("CAN-SKIP-UNTIL",0),_.canSkipDateRanges=_.canSkipUntil>0&&Ke.bool("CAN-SKIP-DATERANGES"),_.partHoldBack=Ke.optionalFloat("PART-HOLD-BACK",0),_.holdBack=Ke.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Oe=new l.AttrList(me);_.partTarget=Oe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var it=_.partList;it||(it=_.partList=[]);var Fe=B>0?it[it.length-1]:void 0,ft=B++,At=new f.Part(new l.AttrList(me),H,S,ft,Fe);it.push(At),H.duration+=At.duration;break}case"PRELOAD-HINT":{var bt=new l.AttrList(me);_.preloadHint=bt;break}case"RENDITION-REPORT":{var St=new l.AttrList(me);_.renditionReports=_.renditionReports||[],_.renditionReports.push(St);break}default:a.logger.warn("line parsed but not handled: "+W);break}}}j&&!j.relurl?(M.pop(),P-=j.duration,_.partList&&(_.fragmentHint=j)):_.partList&&(A(H,j),H.cc=U,_.fragmentHint=H);var Et=M.length,je=M[0],pe=M[Et-1];if(P+=_.skippedSegments*_.targetduration,P>0&&Et&&pe){_.averagetargetduration=P/Et;var ie=pe.sn;_.endSN=ie!=="initSegment"?ie:0,je&&(_.startCC=je.cc,je.initSegment||_.fragments.every(function(st){return st.relurl&&d(st.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),H=new f.Fragment(C,S),H.relurl=pe.relurl,H.level=T,H.sn="initSegment",je.initSegment=H,_.needSidxRanges=!0))}else _.endSN=0,_.startCC=0;return _.fragmentHint&&(P+=_.fragmentHint.duration),_.totalduration=P,_.endCC=U,Z>0&&v(M,Z),_},x}();function p(x,b){["video","audio","text"].forEach(function(w){var S=x.filter(function(C){return Object(r.isCodecType)(C,w)});if(S.length){var T=S.filter(function(C){return C.lastIndexOf("avc1",0)===0||C.lastIndexOf("mp4a",0)===0});b[w+"Codec"]=T.length>0?T[0]:S[0],x=x.filter(function(C){return S.indexOf(C)===-1})}}),b.unknownCodecs=x}function g(x,b,w){var S=b[w];S&&(x[w]=S)}function v(x,b){for(var w=x[b],S=b;S--;){var T=x[S];if(!T)return;T.programDateTime=w.programDateTime-T.duration*1e3,w=T}}function A(x,b){x.rawProgramDateTime?x.programDateTime=Date.parse(x.rawProgramDateTime):b!=null&&b.programDateTime&&(x.programDateTime=b.endProgramDateTime),Object(I.isFiniteNumber)(x.programDateTime)||(x.programDateTime=null,x.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/polyfills/number.ts"),o=E("./src/events.ts"),m=E("./src/errors.ts"),f=E("./src/utils/logger.ts"),s=E("./src/utils/mp4-tools.ts"),t=E("./src/loader/m3u8-parser.ts"),l=E("./src/types/loader.ts"),a=E("./src/utils/attr-list.ts");function r(n){var i=n.type;switch(i){case l.PlaylistContextType.AUDIO_TRACK:return l.PlaylistLevelType.AUDIO;case l.PlaylistContextType.SUBTITLE_TRACK:return l.PlaylistLevelType.SUBTITLE;default:return l.PlaylistLevelType.MAIN}}function u(n,i){var c=n.url;return(c===void 0||c.indexOf("data:")===0)&&(c=i.url),c}var e=function(){function n(c){this.hls=void 0,this.loaders=Object.create(null),this.hls=c,this.registerListeners()}var i=n.prototype;return i.registerListeners=function(){var d=this.hls;d.on(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(o.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(o.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.on(o.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},i.unregisterListeners=function(){var d=this.hls;d.off(o.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(o.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(o.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.off(o.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},i.createInternalLoader=function(d){var h=this.hls.config,p=h.pLoader,g=h.loader,v=p||g,A=new v(h);return d.loader=A,this.loaders[d.type]=A,A},i.getInternalLoader=function(d){return this.loaders[d.type]},i.resetInternalLoader=function(d){this.loaders[d]&&delete this.loaders[d]},i.destroyInternalLoaders=function(){for(var d in this.loaders){var h=this.loaders[d];h&&h.destroy(),this.resetInternalLoader(d)}},i.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},i.onManifestLoading=function(d,h){var p=h.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:l.PlaylistContextType.MANIFEST,url:p,deliveryDirectives:null})},i.onLevelLoading=function(d,h){var p=h.id,g=h.level,v=h.url,A=h.deliveryDirectives;this.load({id:p,groupId:null,level:g,responseType:"text",type:l.PlaylistContextType.LEVEL,url:v,deliveryDirectives:A})},i.onAudioTrackLoading=function(d,h){var p=h.id,g=h.groupId,v=h.url,A=h.deliveryDirectives;this.load({id:p,groupId:g,level:null,responseType:"text",type:l.PlaylistContextType.AUDIO_TRACK,url:v,deliveryDirectives:A})},i.onSubtitleTrackLoading=function(d,h){var p=h.id,g=h.groupId,v=h.url,A=h.deliveryDirectives;this.load({id:p,groupId:g,level:null,responseType:"text",type:l.PlaylistContextType.SUBTITLE_TRACK,url:v,deliveryDirectives:A})},i.load=function(d){var h,p=this.hls.config,g=this.getInternalLoader(d);if(g){var v=g.context;if(v&&v.url===d.url){f.logger.trace("[playlist-loader]: playlist request ongoing");return}f.logger.log("[playlist-loader]: aborting previous loader for type: "+d.type),g.abort()}var A,x,b,w;switch(d.type){case l.PlaylistContextType.MANIFEST:A=p.manifestLoadingMaxRetry,x=p.manifestLoadingTimeOut,b=p.manifestLoadingRetryDelay,w=p.manifestLoadingMaxRetryTimeout;break;case l.PlaylistContextType.LEVEL:case l.PlaylistContextType.AUDIO_TRACK:case l.PlaylistContextType.SUBTITLE_TRACK:A=0,x=p.levelLoadingTimeOut;break;default:A=p.levelLoadingMaxRetry,x=p.levelLoadingTimeOut,b=p.levelLoadingRetryDelay,w=p.levelLoadingMaxRetryTimeout;break}if(g=this.createInternalLoader(d),(h=d.deliveryDirectives)!==null&&h!==void 0&&h.part){var S;if(d.type===l.PlaylistContextType.LEVEL&&d.level!==null?S=this.hls.levels[d.level].details:d.type===l.PlaylistContextType.AUDIO_TRACK&&d.id!==null?S=this.hls.audioTracks[d.id].details:d.type===l.PlaylistContextType.SUBTITLE_TRACK&&d.id!==null&&(S=this.hls.subtitleTracks[d.id].details),S){var T=S.partTarget,C=S.targetduration;T&&C&&(x=Math.min(Math.max(T*3,C*.8)*1e3,x))}}var O={timeout:x,maxRetry:A,retryDelay:b,maxRetryDelay:w,highWaterMark:0},_={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};g.load(d,O,_)},i.loadsuccess=function(d,h,p,g){if(g===void 0&&(g=null),p.isSidxRequest){this.handleSidxRequest(d,p),this.handlePlaylistLoaded(d,h,p,g);return}this.resetInternalLoader(p.type);var v=d.data;if(v.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(d,p,"no EXTM3U delimiter",g);return}h.parsing.start=performance.now(),v.indexOf("#EXTINF:")>0||v.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(d,h,p,g):this.handleMasterPlaylist(d,h,p,g)},i.loaderror=function(d,h,p){p===void 0&&(p=null),this.handleNetworkError(h,p,!1,d)},i.loadtimeout=function(d,h,p){p===void 0&&(p=null),this.handleNetworkError(h,p,!0)},i.handleMasterPlaylist=function(d,h,p,g){var v=this.hls,A=d.data,x=u(d,p),b=t.default.parseMasterPlaylist(A,x),w=b.levels,S=b.sessionData;if(!w.length){this.handleManifestParsingError(d,p,"no level found in manifest",g);return}var T=w.map(function(R){return{id:R.attrs.AUDIO,audioCodec:R.audioCodec}}),C=w.map(function(R){return{id:R.attrs.SUBTITLES,textCodec:R.textCodec}}),O=t.default.parseMasterPlaylistMedia(A,x,"AUDIO",T),_=t.default.parseMasterPlaylistMedia(A,x,"SUBTITLES",C),M=t.default.parseMasterPlaylistMedia(A,x,"CLOSED-CAPTIONS");if(O.length){var k=O.some(function(R){return!R.url});!k&&w[0].audioCodec&&!w[0].attrs.AUDIO&&(f.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),O.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}v.trigger(o.Events.MANIFEST_LOADED,{levels:w,audioTracks:O,subtitles:_,captions:M,url:x,stats:h,networkDetails:g,sessionData:S})},i.handleTrackOrLevelPlaylist=function(d,h,p,g){var v=this.hls,A=p.id,x=p.level,b=p.type,w=u(d,p),S=Object(I.isFiniteNumber)(A)?A:0,T=Object(I.isFiniteNumber)(x)?x:S,C=r(p),O=t.default.parseLevelPlaylist(d.data,w,T,C,S);if(!O.fragments.length){v.trigger(o.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:w,reason:"no fragments found in level",level:typeof p.level=="number"?p.level:void 0});return}if(b===l.PlaylistContextType.MANIFEST){var _={attrs:new a.AttrList({}),bitrate:0,details:O,name:"",url:w};v.trigger(o.Events.MANIFEST_LOADED,{levels:[_],audioTracks:[],url:w,stats:h,networkDetails:g,sessionData:null})}if(h.parsing.end=performance.now(),O.needSidxRanges){var M,k=(M=O.fragments[0].initSegment)===null||M===void 0?void 0:M.url;this.load({url:k,isSidxRequest:!0,type:b,level:x,levelDetails:O,id:A,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}p.levelDetails=O,this.handlePlaylistLoaded(d,h,p,g)},i.handleSidxRequest=function(d,h){var p=Object(s.parseSegmentIndex)(new Uint8Array(d.data));if(!p)return;var g=p.references,v=h.levelDetails;g.forEach(function(A,x){var b=A.info,w=v.fragments[x];w.byteRange.length===0&&w.setByteRange(String(1+b.end-b.start)+"@"+String(b.start)),w.initSegment&&w.initSegment.setByteRange(String(p.moovEndOffset)+"@0")})},i.handleManifestParsingError=function(d,h,p,g){this.hls.trigger(o.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:h.type===l.PlaylistContextType.MANIFEST,url:d.url,reason:p,response:d,context:h,networkDetails:g})},i.handleNetworkError=function(d,h,p,g){p===void 0&&(p=!1),f.logger.warn("[playlist-loader]: A network "+(p?"timeout":"error")+" occurred while loading "+d.type+" level: "+d.level+" id: "+d.id+' group-id: "'+d.groupId+'"');var v=m.ErrorDetails.UNKNOWN,A=!1,x=this.getInternalLoader(d);switch(d.type){case l.PlaylistContextType.MANIFEST:v=p?m.ErrorDetails.MANIFEST_LOAD_TIMEOUT:m.ErrorDetails.MANIFEST_LOAD_ERROR,A=!0;break;case l.PlaylistContextType.LEVEL:v=p?m.ErrorDetails.LEVEL_LOAD_TIMEOUT:m.ErrorDetails.LEVEL_LOAD_ERROR,A=!1;break;case l.PlaylistContextType.AUDIO_TRACK:v=p?m.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:m.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,A=!1;break;case l.PlaylistContextType.SUBTITLE_TRACK:v=p?m.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:m.ErrorDetails.SUBTITLE_LOAD_ERROR,A=!1;break}x&&this.resetInternalLoader(d.type);var b={type:m.ErrorTypes.NETWORK_ERROR,details:v,fatal:A,url:d.url,loader:x,context:d,networkDetails:h};g&&(b.response=g),this.hls.trigger(o.Events.ERROR,b)},i.handlePlaylistLoaded=function(d,h,p,g){var v=p.type,A=p.level,x=p.id,b=p.groupId,w=p.loader,S=p.levelDetails,T=p.deliveryDirectives;if(!(S!=null&&S.targetduration)){this.handleManifestParsingError(d,p,"invalid target duration",g);return}if(!w)return;S.live&&(w.getCacheAge&&(S.ageHeader=w.getCacheAge()||0),(!w.getCacheAge||isNaN(S.ageHeader))&&(S.ageHeader=0));switch(v){case l.PlaylistContextType.MANIFEST:case l.PlaylistContextType.LEVEL:this.hls.trigger(o.Events.LEVEL_LOADED,{details:S,level:A||0,id:x||0,stats:h,networkDetails:g,deliveryDirectives:T});break;case l.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(o.Events.AUDIO_TRACK_LOADED,{details:S,id:x||0,groupId:b||"",stats:h,networkDetails:g,deliveryDirectives:T});break;case l.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(o.Events.SUBTITLE_TRACK_LOADED,{details:S,id:x||0,groupId:b||"",stats:h,networkDetails:g,deliveryDirectives:T});break}},n}();L.default=e},"./src/polyfills/number.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"isFiniteNumber",function(){return I}),E.d(L,"MAX_SAFE_INTEGER",function(){return o});var I=Number.isFinite||function(m){return typeof m=="number"&&isFinite(m)},o=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(N,L,E){"use strict";E.r(L);var I=function(){function o(){}return o.getSilentFrame=function(f,s){switch(f){case"mp4a.40.2":if(s===1)return new Uint8Array([0,200,0,128,35,128]);if(s===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(s===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(s===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(s===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(s===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(s===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(s===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(s===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},o}();L.default=I},"./src/remux/mp4-generator.ts":function(N,L,E){"use strict";E.r(L);var I=Math.pow(2,32)-1,o=function(){function m(){}return m.init=function(){m.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 s;for(s in m.types)m.types.hasOwnProperty(s)&&(m.types[s]=[s.charCodeAt(0),s.charCodeAt(1),s.charCodeAt(2),s.charCodeAt(3)]);var t=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]),l=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]);m.HDLR_TYPES={video:t,audio:l};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new Uint8Array([0,0,0,0,0,0,0,0]);m.STTS=m.STSC=m.STCO=r,m.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),m.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),m.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),m.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var u=new Uint8Array([105,115,111,109]),e=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);m.FTYP=m.box(m.types.ftyp,u,n,u,e),m.DINF=m.box(m.types.dinf,m.box(m.types.dref,a))},m.box=function(s){for(var t=8,l=arguments.length,a=new Array(l>1?l-1:0),r=1;r<l;r++)a[r-1]=arguments[r];for(var u=a.length,e=u;u--;)t+=a[u].byteLength;var n=new Uint8Array(t);for(n[0]=t>>24&255,n[1]=t>>16&255,n[2]=t>>8&255,n[3]=t&255,n.set(s,4),u=0,t=8;u<e;u++)n.set(a[u],t),t+=a[u].byteLength;return n},m.hdlr=function(s){return m.box(m.types.hdlr,m.HDLR_TYPES[s])},m.mdat=function(s){return m.box(m.types.mdat,s)},m.mdhd=function(s,t){t*=s;var l=Math.floor(t/(I+1)),a=Math.floor(t%(I+1));return m.box(m.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,s>>24&255,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},m.mdia=function(s){return m.box(m.types.mdia,m.mdhd(s.timescale,s.duration),m.hdlr(s.type),m.minf(s))},m.mfhd=function(s){return m.box(m.types.mfhd,new Uint8Array([0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255]))},m.minf=function(s){return s.type==="audio"?m.box(m.types.minf,m.box(m.types.smhd,m.SMHD),m.DINF,m.stbl(s)):m.box(m.types.minf,m.box(m.types.vmhd,m.VMHD),m.DINF,m.stbl(s))},m.moof=function(s,t,l){return m.box(m.types.moof,m.mfhd(s),m.traf(l,t))},m.moov=function(s){for(var t=s.length,l=[];t--;)l[t]=m.trak(s[t]);return m.box.apply(null,[m.types.moov,m.mvhd(s[0].timescale,s[0].duration)].concat(l).concat(m.mvex(s)))},m.mvex=function(s){for(var t=s.length,l=[];t--;)l[t]=m.trex(s[t]);return m.box.apply(null,[m.types.mvex].concat(l))},m.mvhd=function(s,t){t*=s;var l=Math.floor(t/(I+1)),a=Math.floor(t%(I+1)),r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,s>>24&255,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255,a>>24,a>>16&255,a>>8&255,a&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return m.box(m.types.mvhd,r)},m.sdtp=function(s){var t=s.samples||[],l=new Uint8Array(4+t.length),a,r;for(a=0;a<t.length;a++)r=t[a].flags,l[a+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return m.box(m.types.sdtp,l)},m.stbl=function(s){return m.box(m.types.stbl,m.stsd(s),m.box(m.types.stts,m.STTS),m.box(m.types.stsc,m.STSC),m.box(m.types.stsz,m.STSZ),m.box(m.types.stco,m.STCO))},m.avc1=function(s){var t=[],l=[],a,r,u;for(a=0;a<s.sps.length;a++)r=s.sps[a],u=r.byteLength,t.push(u>>>8&255),t.push(u&255),t=t.concat(Array.prototype.slice.call(r));for(a=0;a<s.pps.length;a++)r=s.pps[a],u=r.byteLength,l.push(u>>>8&255),l.push(u&255),l=l.concat(Array.prototype.slice.call(r));var e=m.box(m.types.avcC,new Uint8Array([1,t[3],t[4],t[5],252|3,224|s.sps.length].concat(t).concat([s.pps.length]).concat(l))),n=s.width,i=s.height,c=s.pixelRatio[0],d=s.pixelRatio[1];return m.box(m.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,n>>8&255,n&255,i>>8&255,i&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]),e,m.box(m.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),m.box(m.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,c&255,d>>24,d>>16&255,d>>8&255,d&255])))},m.esds=function(s){var t=s.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(s.config).concat([6,1,2]))},m.mp4a=function(s){var t=s.samplerate;return m.box(m.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,s.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0]),m.box(m.types.esds,m.esds(s)))},m.mp3=function(s){var t=s.samplerate;return m.box(m.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,s.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0]))},m.stsd=function(s){return s.type==="audio"?!s.isAAC&&s.codec==="mp3"?m.box(m.types.stsd,m.STSD,m.mp3(s)):m.box(m.types.stsd,m.STSD,m.mp4a(s)):m.box(m.types.stsd,m.STSD,m.avc1(s))},m.tkhd=function(s){var t=s.id,l=s.duration*s.timescale,a=s.width,r=s.height,u=Math.floor(l/(I+1)),e=Math.floor(l%(I+1));return m.box(m.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,a&255,0,0,r>>8&255,r&255,0,0]))},m.traf=function(s,t){var l=m.sdtp(s),a=s.id,r=Math.floor(t/(I+1)),u=Math.floor(t%(I+1));return m.box(m.types.traf,m.box(m.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),m.box(m.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,u>>24,u>>16&255,u>>8&255,u&255])),m.trun(s,l.length+16+20+8+16+8+8),l)},m.trak=function(s){return s.duration=s.duration||4294967295,m.box(m.types.trak,m.tkhd(s),m.mdia(s))},m.trex=function(s){var t=s.id;return m.box(m.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},m.trun=function(s,t){var l=s.samples||[],a=l.length,r=12+16*a,u=new Uint8Array(r),e,n,i,c,d,h;for(t+=8+r,u.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),e=0;e<a;e++)n=l[e],i=n.duration,c=n.size,d=n.flags,h=n.cts,u.set([i>>>24&255,i>>>16&255,i>>>8&255,i&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&240<<8,d.degradPrio&15,h>>>24&255,h>>>16&255,h>>>8&255,h&255],12+16*e);return m.box(m.types.trun,u)},m.initSegment=function(s){m.types||m.init();var t=m.moov(s),l=new Uint8Array(m.FTYP.byteLength+t.byteLength);return l.set(m.FTYP),l.set(t,m.FTYP.byteLength),l},m}();o.types=void 0,o.HDLR_TYPES=void 0,o.STTS=void 0,o.STSC=void 0,o.STCO=void 0,o.STSZ=void 0,o.VMHD=void 0,o.SMHD=void 0,o.STSD=void 0,o.FTYP=void 0,o.DINF=void 0,L.default=o},"./src/remux/mp4-remuxer.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return h}),E.d(L,"normalizePts",function(){return p});var I=E("./src/polyfills/number.ts"),o=E("./src/remux/aac-helper.ts"),m=E("./src/remux/mp4-generator.ts"),f=E("./src/events.ts"),s=E("./src/errors.ts"),t=E("./src/utils/logger.ts"),l=E("./src/types/loader.ts"),a=E("./src/utils/timescale-conversion.ts");function r(){return r=Object.assign||function(x){for(var b=1;b<arguments.length;b++){var w=arguments[b];for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(x[S]=w[S])}return x},r.apply(this,arguments)}var u=10*1e3,e=1024,n=1152,i=null,c=null,d=!1,h=function(){function x(w,S,T,C){if(C===void 0&&(C=""),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=w,this.config=S,this.typeSupported=T,this.ISGenerated=!1,i===null){var O=navigator.userAgent||"",_=O.match(/Chrome\/(\d+)/i);i=_?parseInt(_[1]):0}if(c===null){var M=navigator.userAgent.match(/Safari\/(\d+)/i);c=M?parseInt(M[1]):0}d=!!i&&i<75||!!c&&c<600}var b=x.prototype;return b.destroy=function(){},b.resetTimeStamp=function(S){t.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=S},b.resetNextTimestamp=function(){t.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},b.resetInitSegment=function(){t.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},b.getVideoStartPts=function(S){var T=!1,C=S.reduce(function(O,_){var M=_.pts-O;return M<-4294967296?(T=!0,p(O,_.pts)):M>0?O:_.pts},S[0].pts);return T&&t.logger.debug("PTS rollover detected"),C},b.remux=function(S,T,C,O,_,M,k,R){var B,P,U,j,H,W,G=_,V=_,Z=S.pid>-1,Y=T.pid>-1,Q=T.samples.length,oe=S.samples.length>0,ue=Q>1,Le=(!Z||oe)&&(!Y||ue)||this.ISGenerated||k;if(Le){this.ISGenerated||(U=this.generateIS(S,T,_));var me=this.isVideoContiguous,Ie=-1;if(ue&&(Ie=g(T.samples),!me&&this.config.forceKeyFrameOnDiscontinuity))if(W=!0,Ie>0){t.logger.warn("[mp4-remuxer]: Dropped "+Ie+" out of "+Q+" video samples due to a missing keyframe");var X=this.getVideoStartPts(T.samples);T.samples=T.samples.slice(Ie),T.dropped+=Ie,V+=(T.samples[0].pts-X)/(T.timescale||9e4)}else Ie===-1&&(t.logger.warn("[mp4-remuxer]: No keyframe found out of "+Q+" video samples"),W=!1);if(this.ISGenerated){if(oe&&ue){var q=this.getVideoStartPts(T.samples),We=p(S.samples[0].pts,q)-q,$=We/T.inputTimeScale;G+=Math.max(0,$),V+=Math.max(0,-$)}if(oe){if(S.samplerate||(t.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(S,T,_)),P=this.remuxAudio(S,G,this.isAudioContiguous,M,Y||ue||R===l.PlaylistLevelType.AUDIO?V:void 0),ue){var J=P?P.endPTS-P.startPTS:0;T.inputTimeScale||(t.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(S,T,_)),B=this.remuxVideo(T,V,me,J)}}else ue&&(B=this.remuxVideo(T,V,me,0));B&&(B.firstKeyFrame=Ie,B.independent=Ie!==-1)}}return this.ISGenerated&&(C.samples.length&&(H=this.remuxID3(C,_)),O.samples.length&&(j=this.remuxText(O,_))),{audio:P,video:B,initSegment:U,independent:W,text:j,id3:H}},b.generateIS=function(S,T,C){var O=S.samples,_=T.samples,M=this.typeSupported,k={},R=!Object(I.isFiniteNumber)(this._initPTS),B="audio/mp4",P,U,j;if(R&&(P=U=Infinity),S.config&&O.length&&(S.timescale=S.samplerate,S.isAAC||(M.mpeg?(B="audio/mpeg",S.codec=""):M.mp3&&(S.codec="mp3")),k.audio={id:"audio",container:B,codec:S.codec,initSegment:!S.isAAC&&M.mpeg?new Uint8Array(0):m.default.initSegment([S]),metadata:{channelCount:S.channelCount}},R&&(j=S.inputTimeScale,P=U=O[0].pts-Math.round(j*C))),T.sps&&T.pps&&_.length&&(T.timescale=T.inputTimeScale,k.video={id:"main",container:"video/mp4",codec:T.codec,initSegment:m.default.initSegment([T]),metadata:{width:T.width,height:T.height}},R)){j=T.inputTimeScale;var H=this.getVideoStartPts(_),W=Math.round(j*C);U=Math.min(U,p(_[0].dts,H)-W),P=Math.min(P,H-W)}if(Object.keys(k).length)return this.ISGenerated=!0,R&&(this._initPTS=P,this._initDTS=U),{tracks:k,initPTS:P,timescale:j}},b.remuxVideo=function(S,T,C,O){var _=S.inputTimeScale,M=S.samples,k=[],R=M.length,B=this._initPTS,P=this.nextAvcDts,U=8,j,H,W,G=Number.POSITIVE_INFINITY,V=Number.NEGATIVE_INFINITY,Z=0,Y=!1;if(!C||P===null){var Q=T*_,oe=M[0].pts-p(M[0].dts,M[0].pts);P=Q-oe}for(var ue=0;ue<R;ue++){var Le=M[ue];if(Le.pts=p(Le.pts-B,P),Le.dts=p(Le.dts-B,P),Le.dts>Le.pts){var me=9e4*.2;Z=Math.max(Math.min(Z,Le.pts-Le.dts),-1*me)}Le.dts<M[ue>0?ue-1:ue].dts&&(Y=!0)}Y&&M.sort(function(Fr,er){var nr=Fr.dts-er.dts,Ot=Fr.pts-er.pts;return nr||Ot}),H=M[0].dts,W=M[M.length-1].dts;var Ie=Math.round((W-H)/(R-1));if(Z<0){if(Z<Ie*-2){t.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(a.toMsFromMpegTsClock)(-Ie,!0)+" ms");for(var X=Z,q=0;q<R;q++)M[q].dts=X=Math.max(X,M[q].pts-Ie),M[q].pts=Math.max(X,M[q].pts)}else{t.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(a.toMsFromMpegTsClock)(Z,!0)+" ms to overcome this issue");for(var We=0;We<R;We++)M[We].dts=M[We].dts+Z}H=M[0].dts}if(C){var $=H-P,J=$>Ie,le=$<-1;if(J||le){J?t.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)($,!0)+" ms ("+$+"dts) hole between fragments detected, filling it"):t.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-$,!0)+" ms ("+$+"dts) overlapping between fragments detected"),H=P;var de=M[0].pts-$;M[0].dts=H,M[0].pts=de,t.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(de,!0)+"/"+Object(a.toMsFromMpegTsClock)(H,!0)+", delta: "+Object(a.toMsFromMpegTsClock)($,!0)+" ms")}}d&&(H=Math.max(0,H));for(var Ne=0,we=0,De=0;De<R;De++){for(var Ee=M[De],ce=Ee.units,ne=ce.length,ee=0,Ae=0;Ae<ne;Ae++)ee+=ce[Ae].data.length;we+=ee,Ne+=ne,Ee.length=ee,Ee.dts=Math.max(Ee.dts,H),Ee.pts=Math.max(Ee.pts,Ee.dts,0),G=Math.min(Ee.pts,G),V=Math.max(Ee.pts,V)}W=M[R-1].dts;var Ve=we+4*Ne+8,Ke;try{Ke=new Uint8Array(Ve)}catch(Fr){this.observer.emit(f.Events.ERROR,f.Events.ERROR,{type:s.ErrorTypes.MUX_ERROR,details:s.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ve,reason:"fail allocating video mdat "+Ve});return}var Oe=new DataView(Ke.buffer);Oe.setUint32(0,Ve),Ke.set(m.default.types.mdat,4);for(var it=0;it<R;it++){for(var Fe=M[it],ft=Fe.units,At=0,bt=0,St=ft.length;bt<St;bt++){var Et=ft[bt],je=Et.data,pe=Et.data.byteLength;Oe.setUint32(U,pe),U+=4,Ke.set(je,U),U+=pe,At+=4+pe}if(it<R-1)j=M[it+1].dts-Fe.dts;else{var ie=this.config,st=Fe.dts-M[it>0?it-1:it].dts;if(ie.stretchShortVideoTrack&&this.nextAudioPts!==null){var Qe=Math.floor(ie.maxBufferHole*_),ve=(O?G+O*_:this.nextAudioPts)-Fe.pts;ve>Qe?(j=ve-st,j<0&&(j=st),t.logger.log("[mp4-remuxer]: It is approximately "+ve/90+" ms to the next segment; using duration "+j/90+" ms for the last video frame.")):j=st}else j=st}var Bt=Math.round(Fe.pts-Fe.dts);k.push(new v(Fe.key,j,At,Bt))}if(k.length&&i&&i<70){var qt=k[0].flags;qt.dependsOn=2,qt.isNonSync=0}console.assert(j!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=P=W+j,this.isVideoContiguous=!0;var ct=m.default.moof(S.sequenceNumber++,H,r({},S,{samples:k})),Wt="video",or={data1:ct,data2:Ke,startPTS:G/_,endPTS:(V+j)/_,startDTS:H/_,endDTS:P/_,type:Wt,hasAudio:!1,hasVideo:!0,nb:k.length,dropped:S.dropped};return S.samples=[],S.dropped=0,console.assert(Ke.length,"MDAT length must not be zero"),or},b.remuxAudio=function(S,T,C,O,_){var M=S.inputTimeScale,k=S.samplerate?S.samplerate:M,R=M/k,B=S.isAAC?e:n,P=B*R,U=this._initPTS,j=!S.isAAC&&this.typeSupported.mpeg,H=[],W=S.samples,G=j?0:8,V=this.nextAudioPts||-1,Z=T*M;if(this.isAudioContiguous=C=C||W.length&&V>0&&(O&&Math.abs(Z-V)<9e3||Math.abs(p(W[0].pts-U,Z)-V)<20*P),W.forEach(function(je){je.pts=p(je.pts-U,Z)}),!C||V<0){if(W=W.filter(function(je){return je.pts>=0}),!W.length)return;_===0?V=0:O?V=Math.max(0,Z):V=W[0].pts}if(S.isAAC)for(var Y=_!==void 0,Q=this.config.maxAudioFramesDrift,oe=0,ue=V;oe<W.length;oe++){var Le=W[oe],me=Le.pts,Ie=me-ue,X=Math.abs(1e3*Ie/M);if(Ie<=-Q*P&&Y)oe===0&&(t.logger.warn("Audio frame @ "+(me/M).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*Ie/M)+" ms."),this.nextAudioPts=V=ue=me);else if(Ie>=Q*P&&X<u&&Y){var q=Math.round(Ie/P);ue=me-q*P,ue<0&&(q--,ue+=P),oe===0&&(this.nextAudioPts=V=ue),t.logger.warn("[mp4-remuxer]: Injecting "+q+" audio frame @ "+(ue/M).toFixed(3)+"s due to "+Math.round(1e3*Ie/M)+" ms gap.");for(var We=0;We<q;We++){var $=Math.max(ue,0),J=o.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);J||(t.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),J=Le.unit.subarray()),W.splice(oe,0,{unit:J,pts:$}),ue+=P,oe++}}Le.pts=ue,ue+=P}for(var le=null,de=null,Ne,we=0,De=W.length;De--;)we+=W[De].unit.byteLength;for(var Ee=0,ce=W.length;Ee<ce;Ee++){var ne=W[Ee],ee=ne.unit,Ae=ne.pts;if(de!==null){var Ve=H[Ee-1];Ve.duration=Math.round((Ae-de)/R)}else if(C&&S.isAAC&&(Ae=V),le=Ae,we>0){we+=G;try{Ne=new Uint8Array(we)}catch(je){this.observer.emit(f.Events.ERROR,f.Events.ERROR,{type:s.ErrorTypes.MUX_ERROR,details:s.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:we,reason:"fail allocating audio mdat "+we});return}if(!j){var Ke=new DataView(Ne.buffer);Ke.setUint32(0,we),Ne.set(m.default.types.mdat,4)}}else return;Ne.set(ee,G);var Oe=ee.byteLength;G+=Oe,H.push(new v(!0,B,Oe,0)),de=Ae}var it=H.length;if(!it)return;var Fe=H[H.length-1];this.nextAudioPts=V=de+R*Fe.duration;var ft=j?new Uint8Array(0):m.default.moof(S.sequenceNumber++,le/R,r({},S,{samples:H}));S.samples=[];var At=le/M,bt=V/M,St="audio",Et={data1:ft,data2:Ne,startPTS:At,endPTS:bt,startDTS:At,endDTS:bt,type:St,hasAudio:!0,hasVideo:!1,nb:it};return this.isAudioContiguous=!0,console.assert(Ne.length,"MDAT length must not be zero"),Et},b.remuxEmptyAudio=function(S,T,C,O){var _=S.inputTimeScale,M=S.samplerate?S.samplerate:_,k=_/M,R=this.nextAudioPts,B=(R!==null?R:O.startDTS*_)+this._initDTS,P=O.endDTS*_+this._initDTS,U=k*e,j=Math.ceil((P-B)/U),H=o.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);if(t.logger.warn("[mp4-remuxer]: remux empty Audio"),!H){t.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var W=[],G=0;G<j;G++){var V=B+G*U;W.push({unit:H,pts:V,dts:V})}return S.samples=W,this.remuxAudio(S,T,C,!1)},b.remuxID3=function(S,T){var C=S.samples.length;if(!C)return;for(var O=S.inputTimeScale,_=this._initPTS,M=this._initDTS,k=0;k<C;k++){var R=S.samples[k];R.pts=p(R.pts-_,T*O)/O,R.dts=p(R.dts-M,T*O)/O}var B=S.samples;return S.samples=[],{samples:B}},b.remuxText=function(S,T){var C=S.samples.length;if(!C)return;for(var O=S.inputTimeScale,_=this._initPTS,M=0;M<C;M++){var k=S.samples[M];k.pts=p(k.pts-_,T*O)/O}S.samples.sort(function(B,P){return B.pts-P.pts});var R=S.samples;return S.samples=[],{samples:R}},x}();function p(x,b){var w;if(b===null)return x;for(b<x?w=-8589934592:w=8589934592;Math.abs(x-b)>4294967296;)x+=w;return x}function g(x){for(var b=0;b<x.length;b++)if(x[b].key)return b;return-1}var v=function(b,w,S,T){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=w,this.size=S,this.cts=T,this.flags=new A(b)},A=function(b){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=b?2:1,this.isNonSync=b?0:1}},"./src/remux/passthrough-remuxer.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/polyfills/number.ts"),o=E("./src/utils/mp4-tools.ts"),m=E("./src/loader/fragment.ts"),f=E("./src/utils/logger.ts"),s=function(){function a(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var r=a.prototype;return r.destroy=function(){},r.resetTimeStamp=function(e){this.initPTS=e,this.lastEndDTS=null},r.resetNextTimestamp=function(){this.lastEndDTS=null},r.resetInitSegment=function(e,n,i){this.audioCodec=n,this.videoCodec=i,this.generateInitSegment(e),this.emitInitSegment=!0},r.generateInitSegment=function(e){var n=this.audioCodec,i=this.videoCodec;if(!e||!e.byteLength){this.initTracks=void 0,this.initData=void 0;return}var c=this.initData=Object(o.parseInitSegment)(e);n||(n=l(c.audio,m.ElementaryStreamTypes.AUDIO)),i||(i=l(c.video,m.ElementaryStreamTypes.VIDEO));var d={};c.audio&&c.video?d.audiovideo={container:"video/mp4",codec:n+","+i,initSegment:e,id:"main"}:c.audio?d.audio={container:"audio/mp4",codec:n,initSegment:e,id:"audio"}:c.video?d.video={container:"video/mp4",codec:i,initSegment:e,id:"main"}:f.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=d},r.remux=function(e,n,i,c,d){var h=this.initPTS,p=this.lastEndDTS,g={audio:void 0,video:void 0,text:c,id3:i,initSegment:void 0};Object(I.isFiniteNumber)(p)||(p=this.lastEndDTS=d||0);var v=n.samples;if(!v||!v.length)return g;var A={initPTS:void 0,timescale:1},x=this.initData;if((!x||!x.length)&&(this.generateInitSegment(v),x=this.initData),!x||!x.length)return f.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),g;this.emitInitSegment&&(A.tracks=this.initTracks,this.emitInitSegment=!1),Object(I.isFiniteNumber)(h)||(this.initPTS=A.initPTS=h=t(x,v,p));var b=Object(o.getDuration)(v,x),w=p,S=b+w;Object(o.offsetStartDTS)(x,v,h),b>0?this.lastEndDTS=S:(f.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var T=!!x.audio,C=!!x.video,O="";T&&(O+="audio"),C&&(O+="video");var _={data1:v,startPTS:w,startDTS:w,endPTS:S,endDTS:S,type:O,hasAudio:T,hasVideo:C,nb:1,dropped:0};return g.audio=_.type==="audio"?_:void 0,g.video=_.type!=="audio"?_:void 0,g.text=c,g.id3=i,g.initSegment=A,g},a}(),t=function(r,u,e){return Object(o.getStartDTS)(r,u)-e};function l(a,r){var u=a==null?void 0:a.codec;return u&&u.length>4?u:u==="hvc1"?"hvc1.1.c.L120.90":u==="av01"?"av01.0.04M.08":u==="avc1"||r===m.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}L.default=s},"./src/task-loop.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return I});var I=function(){function o(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var m=o.prototype;return m.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},m.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},m.onHandlerDestroyed=function(){},m.hasInterval=function(){return!!this._tickInterval},m.hasNextTick=function(){return!!this._tickTimer},m.setInterval=function(s){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,s),!0)},m.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},m.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},m.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},m.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},m.doTick=function(){},o}()},"./src/types/cmcd.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"CMCDVersion",function(){return I}),E.d(L,"CMCDObjectType",function(){return o}),E.d(L,"CMCDStreamingFormat",function(){return m}),E.d(L,"CMCDStreamType",function(){return f});var I=1,o;(function(s){s.MANIFEST="m",s.AUDIO="a",s.VIDEO="v",s.MUXED="av",s.INIT="i",s.CAPTION="c",s.TIMED_TEXT="tt",s.KEY="k",s.OTHER="o"})(o||(o={}));var m;(function(s){s.DASH="d",s.HLS="h",s.SMOOTH="s",s.OTHER="o"})(m||(m={}));var f;(function(s){s.VOD="v",s.LIVE="l"})(f||(f={}))},"./src/types/level.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"HlsSkip",function(){return m}),E.d(L,"getSkipValue",function(){return f}),E.d(L,"HlsUrlParameters",function(){return s}),E.d(L,"Level",function(){return t});function I(l,a){for(var r=0;r<a.length;r++){var u=a[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function o(l,a,r){return a&&I(l.prototype,a),r&&I(l,r),l}var m;(function(l){l.No="",l.Yes="YES",l.v2="v2"})(m||(m={}));function f(l,a){var r=l.canSkipUntil,u=l.canSkipDateRanges,e=l.endSN,n=a!==void 0?a-e:0;return r&&n<r?u?m.v2:m.Yes:m.No}var s=function(){function l(r,u,e){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=r,this.part=u,this.skip=e}var a=l.prototype;return a.addDirectives=function(u){var e=new self.URL(u);return this.msn!==void 0&&e.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.toString()},l}(),t=function(){function l(a){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[a.url],this.attrs=a.attrs,this.bitrate=a.bitrate,a.details&&(this.details=a.details),this.id=a.id||0,this.name=a.name,this.width=a.width||0,this.height=a.height||0,this.audioCodec=a.audioCodec,this.videoCodec=a.videoCodec,this.unknownCodecs=a.unknownCodecs,this.codecSet=[a.videoCodec,a.audioCodec].filter(function(r){return r}).join(",").replace(/\.[^.,]+/g,"")}return o(l,[{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(r){var u=r%this.url.length;this._urlId!==u&&(this.details=void 0,this._urlId=u)}}]),l}()},"./src/types/loader.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"PlaylistContextType",function(){return I}),E.d(L,"PlaylistLevelType",function(){return o});var I;(function(m){m.MANIFEST="manifest",m.LEVEL="level",m.AUDIO_TRACK="audioTrack",m.SUBTITLE_TRACK="subtitleTrack"})(I||(I={}));var o;(function(m){m.MAIN="main",m.AUDIO="audio",m.SUBTITLE="subtitle"})(o||(o={}))},"./src/types/transmuxer.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"ChunkMetadata",function(){return I});var I=function(f,s,t,l,a,r){l===void 0&&(l=0),a===void 0&&(a=-1),r===void 0&&(r=!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=o(),this.buffering={audio:o(),video:o(),audiovideo:o()},this.level=f,this.sn=s,this.id=t,this.size=l,this.part=a,this.partial=r};function o(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"AttrList",function(){return m});var I=/^(\d+)x(\d+)$/,o=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,m=function(){function f(t){typeof t=="string"&&(t=f.parseAttrList(t));for(var l in t)t.hasOwnProperty(l)&&(this[l]=t[l])}var s=f.prototype;return s.decimalInteger=function(l){var a=parseInt(this[l],10);return a>Number.MAX_SAFE_INTEGER?Infinity:a},s.hexadecimalInteger=function(l){if(this[l]){var a=(this[l]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var r=new Uint8Array(a.length/2),u=0;u<a.length/2;u++)r[u]=parseInt(a.slice(u*2,u*2+2),16);return r}else return null},s.hexadecimalIntegerAsNumber=function(l){var a=parseInt(this[l],16);return a>Number.MAX_SAFE_INTEGER?Infinity:a},s.decimalFloatingPoint=function(l){return parseFloat(this[l])},s.optionalFloat=function(l,a){var r=this[l];return r?parseFloat(r):a},s.enumeratedString=function(l){return this[l]},s.bool=function(l){return this[l]==="YES"},s.decimalResolution=function(l){var a=I.exec(this[l]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},f.parseAttrList=function(l){var a,r={},u='"';for(o.lastIndex=0;(a=o.exec(l))!==null;){var e=a[2];e.indexOf(u)===0&&e.lastIndexOf(u)===e.length-1&&(e=e.slice(1,-1)),r[a[1]]=e}return r},f}()},"./src/utils/binary-search.ts":function(N,L,E){"use strict";E.r(L);var I={search:function(m,f){for(var s=0,t=m.length-1,l=null,a=null;s<=t;){l=(s+t)/2|0,a=m[l];var r=f(a);if(r>0)s=l+1;else if(r<0)t=l-1;else return a}return null}};L.default=I},"./src/utils/buffer-helper.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"BufferHelper",function(){return m});var I=E("./src/utils/logger.ts"),o={length:0,start:function(){return 0},end:function(){return 0}},m=function(){function f(){}return f.isBuffered=function(t,l){try{if(t){for(var a=f.getBuffered(t),r=0;r<a.length;r++)if(l>=a.start(r)&&l<=a.end(r))return!0}}catch(u){}return!1},f.bufferInfo=function(t,l,a){try{if(t){var r=f.getBuffered(t),u=[],e;for(e=0;e<r.length;e++)u.push({start:r.start(e),end:r.end(e)});return this.bufferedInfo(u,l,a)}}catch(n){}return{len:0,start:l,end:l,nextStart:void 0}},f.bufferedInfo=function(t,l,a){l=Math.max(0,l),t.sort(function(A,x){var b=A.start-x.start;return b||x.end-A.end});var r=[];if(a)for(var u=0;u<t.length;u++){var e=r.length;if(e){var n=r[e-1].end;t[u].start-n<a?t[u].end>n&&(r[e-1].end=t[u].end):r.push(t[u])}else r.push(t[u])}else r=t;for(var i=0,c,d=l,h=l,p=0;p<r.length;p++){var g=r[p].start,v=r[p].end;if(l+a>=g&&l<v)d=g,h=v,i=h-l;else if(l+a<g){c=g;break}}return{len:i,start:d||0,end:h||0,nextStart:c}},f.getBuffered=function(t){try{return t.buffered}catch(l){return I.logger.log("failed to get media.buffered",l),o}},f}()},"./src/utils/cea-608-parser.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"Row",function(){return h}),E.d(L,"CaptionScreen",function(){return p});var I=E("./src/utils/logger.ts"),o={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},m=function(S){var T=S;return o.hasOwnProperty(S)&&(T=o[S]),String.fromCharCode(T)},f=15,s=100,t={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},l={17:2,18:4,21:6,22:8,23:10,19:13,20:15},a={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},r={25:2,26:4,29:6,30:8,31:10,27:13,28:15},u=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],e;(function(w){w[w.ERROR=0]="ERROR",w[w.TEXT=1]="TEXT",w[w.WARNING=2]="WARNING",w[w.INFO=2]="INFO",w[w.DEBUG=3]="DEBUG",w[w.DATA=3]="DATA"})(e||(e={}));var n=function(){function w(){this.time=null,this.verboseLevel=e.ERROR}var S=w.prototype;return S.log=function(C,O){this.verboseLevel>=C&&I.logger.log(this.time+" ["+C+"] "+O)},w}(),i=function(S){for(var T=[],C=0;C<S.length;C++)T.push(S[C].toString(16));return T},c=function(){function w(T,C,O,_,M){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=T||"white",this.underline=C||!1,this.italics=O||!1,this.background=_||"black",this.flash=M||!1}var S=w.prototype;return S.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},S.setStyles=function(C){for(var O=["foreground","underline","italics","background","flash"],_=0;_<O.length;_++){var M=O[_];C.hasOwnProperty(M)&&(this[M]=C[M])}},S.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},S.equals=function(C){return this.foreground===C.foreground&&this.underline===C.underline&&this.italics===C.italics&&this.background===C.background&&this.flash===C.flash},S.copy=function(C){this.foreground=C.foreground,this.underline=C.underline,this.italics=C.italics,this.background=C.background,this.flash=C.flash},S.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},w}(),d=function(){function w(T,C,O,_,M,k){this.uchar=void 0,this.penState=void 0,this.uchar=T||" ",this.penState=new c(C,O,_,M,k)}var S=w.prototype;return S.reset=function(){this.uchar=" ",this.penState.reset()},S.setChar=function(C,O){this.uchar=C,this.penState.copy(O)},S.setPenState=function(C){this.penState.copy(C)},S.equals=function(C){return this.uchar===C.uchar&&this.penState.equals(C.penState)},S.copy=function(C){this.uchar=C.uchar,this.penState.copy(C.penState)},S.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},w}(),h=function(){function w(T){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var C=0;C<s;C++)this.chars.push(new d);this.logger=T,this.pos=0,this.currPenState=new c}var S=w.prototype;return S.equals=function(C){for(var O=!0,_=0;_<s;_++)if(!this.chars[_].equals(C.chars[_])){O=!1;break}return O},S.copy=function(C){for(var O=0;O<s;O++)this.chars[O].copy(C.chars[O])},S.isEmpty=function(){for(var C=!0,O=0;O<s;O++)if(!this.chars[O].isEmpty()){C=!1;break}return C},S.setCursor=function(C){this.pos!==C&&(this.pos=C),this.pos<0?(this.logger.log(e.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>s&&(this.logger.log(e.DEBUG,"Too large cursor position "+this.pos),this.pos=s)},S.moveCursor=function(C){var O=this.pos+C;if(C>1)for(var _=this.pos+1;_<O+1;_++)this.chars[_].setPenState(this.currPenState);this.setCursor(O)},S.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},S.insertChar=function(C){C>=144&&this.backSpace();var O=m(C);if(this.pos>=s){this.logger.log(e.ERROR,"Cannot insert "+C.toString(16)+" ("+O+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(O,this.currPenState),this.moveCursor(1)},S.clearFromPos=function(C){var O;for(O=C;O<s;O++)this.chars[O].reset()},S.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},S.clearToEndOfRow=function(){this.clearFromPos(this.pos)},S.getTextString=function(){for(var C=[],O=!0,_=0;_<s;_++){var M=this.chars[_].uchar;M!==" "&&(O=!1),C.push(M)}return O?"":C.join("")},S.setPenStyles=function(C){this.currPenState.setStyles(C);var O=this.chars[this.pos];O.setPenState(this.currPenState)},w}(),p=function(){function w(T){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var C=0;C<f;C++)this.rows.push(new h(T));this.logger=T,this.currRow=f-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var S=w.prototype;return S.reset=function(){for(var C=0;C<f;C++)this.rows[C].clear();this.currRow=f-1},S.equals=function(C){for(var O=!0,_=0;_<f;_++)if(!this.rows[_].equals(C.rows[_])){O=!1;break}return O},S.copy=function(C){for(var O=0;O<f;O++)this.rows[O].copy(C.rows[O])},S.isEmpty=function(){for(var C=!0,O=0;O<f;O++)if(!this.rows[O].isEmpty()){C=!1;break}return C},S.backSpace=function(){var C=this.rows[this.currRow];C.backSpace()},S.clearToEndOfRow=function(){var C=this.rows[this.currRow];C.clearToEndOfRow()},S.insertChar=function(C){var O=this.rows[this.currRow];O.insertChar(C)},S.setPen=function(C){var O=this.rows[this.currRow];O.setPenStyles(C)},S.moveCursor=function(C){var O=this.rows[this.currRow];O.moveCursor(C)},S.setCursor=function(C){this.logger.log(e.INFO,"setCursor: "+C);var O=this.rows[this.currRow];O.setCursor(C)},S.setPAC=function(C){this.logger.log(e.INFO,"pacData = "+JSON.stringify(C));var O=C.row-1;if(this.nrRollUpRows&&O<this.nrRollUpRows-1&&(O=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==O){for(var _=0;_<f;_++)this.rows[_].clear();var M=this.currRow+1-this.nrRollUpRows,k=this.lastOutputScreen;if(k){var R=k.rows[M].cueStartTime,B=this.logger.time;if(R&&B!==null&&R<B)for(var P=0;P<this.nrRollUpRows;P++)this.rows[O-this.nrRollUpRows+P+1].copy(k.rows[M+P])}}this.currRow=O;var U=this.rows[this.currRow];if(C.indent!==null){var j=C.indent,H=Math.max(j-1,0);U.setCursor(C.indent),C.color=U.chars[H].penState.foreground}var W={foreground:C.color,underline:C.underline,italics:C.italics,background:"black",flash:!1};this.setPen(W)},S.setBkgData=function(C){this.logger.log(e.INFO,"bkgData = "+JSON.stringify(C)),this.backSpace(),this.setPen(C),this.insertChar(32)},S.setRollUpRows=function(C){this.nrRollUpRows=C},S.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(e.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(e.TEXT,this.getDisplayText());var C=this.currRow+1-this.nrRollUpRows,O=this.rows.splice(C,1)[0];O.clear(),this.rows.splice(this.currRow,0,O),this.logger.log(e.INFO,"Rolling up")},S.getDisplayText=function(C){C=C||!1;for(var O=[],_="",M=-1,k=0;k<f;k++){var R=this.rows[k].getTextString();R&&(M=k+1,C?O.push("Row "+M+": '"+R+"'"):O.push(R.trim()))}return O.length>0&&(C?_="["+O.join(" | ")+"]":_=O.join(`
|
|
|
`)),_},S.getTextAndFormat=function(){return this.rows},w}(),g=function(){function w(T,C,O){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=T,this.outputFilter=C,this.mode=null,this.verbose=0,this.displayedMemory=new p(O),this.nonDisplayedMemory=new p(O),this.lastOutputScreen=new p(O),this.currRollUpRow=this.displayedMemory.rows[f-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=O}var S=w.prototype;return S.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[f-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},S.getHandler=function(){return this.outputFilter},S.setHandler=function(C){this.outputFilter=C},S.setPAC=function(C){this.writeScreen.setPAC(C)},S.setBkgData=function(C){this.writeScreen.setBkgData(C)},S.setMode=function(C){if(C===this.mode)return;this.mode=C,this.logger.log(e.INFO,"MODE="+C),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=C},S.insertChars=function(C){for(var O=0;O<C.length;O++)this.writeScreen.insertChar(C[O]);var _=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(e.INFO,_+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(e.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},S.ccRCL=function(){this.logger.log(e.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},S.ccBS=function(){if(this.logger.log(e.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},S.ccAOF=function(){},S.ccAON=function(){},S.ccDER=function(){this.logger.log(e.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},S.ccRU=function(C){this.logger.log(e.INFO,"RU("+C+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(C)},S.ccFON=function(){this.logger.log(e.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},S.ccRDC=function(){this.logger.log(e.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},S.ccTR=function(){this.logger.log(e.INFO,"TR"),this.setMode("MODE_TEXT")},S.ccRTD=function(){this.logger.log(e.INFO,"RTD"),this.setMode("MODE_TEXT")},S.ccEDM=function(){this.logger.log(e.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},S.ccCR=function(){this.logger.log(e.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},S.ccENM=function(){this.logger.log(e.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},S.ccEOC=function(){if(this.logger.log(e.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var C=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=C,this.writeScreen=this.nonDisplayedMemory,this.logger.log(e.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},S.ccTO=function(C){this.logger.log(e.INFO,"TO("+C+") - Tab Offset"),this.writeScreen.moveCursor(C)},S.ccMIDROW=function(C){var O={flash:!1};if(O.underline=C%2===1,O.italics=C>=46,O.italics)O.foreground="white";else{var _=Math.floor(C/2)-16,M=["white","green","blue","cyan","red","yellow","magenta"];O.foreground=M[_]}this.logger.log(e.INFO,"MIDROW: "+JSON.stringify(O)),this.writeScreen.setPen(O)},S.outputDataUpdate=function(C){C===void 0&&(C=!1);var O=this.logger.time;if(O===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=O:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,O,this.lastOutputScreen),C&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:O),this.lastOutputScreen.copy(this.displayedMemory))},S.cueSplitAtTime=function(C){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,C,this.displayedMemory),this.cueStartTime=C))},w}(),v=function(){function w(T,C,O){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var _=new n;this.channels=[null,new g(T,C,_),new g(T+1,O,_)],this.cmdHistory=b(),this.logger=_}var S=w.prototype;return S.getHandler=function(C){return this.channels[C].getHandler()},S.setHandler=function(C,O){this.channels[C].setHandler(O)},S.addData=function(C,O){var _,M,k,R=!1;this.logger.time=C;for(var B=0;B<O.length;B+=2){if(M=O[B]&127,k=O[B+1]&127,M===0&&k===0)continue;if(this.logger.log(e.DATA,"["+i([O[B],O[B+1]])+"] -> ("+i([M,k])+")"),_=this.parseCmd(M,k),_||(_=this.parseMidrow(M,k)),_||(_=this.parsePAC(M,k)),_||(_=this.parseBackgroundAttributes(M,k)),!_&&(R=this.parseChars(M,k),R)){var P=this.currentChannel;if(P&&P>0){var U=this.channels[P];U.insertChars(R)}else this.logger.log(e.WARNING,"No channel found yet. TEXT-MODE?")}!_&&!R&&this.logger.log(e.WARNING,"Couldn't parse cleaned data "+i([M,k])+" orig: "+i([O[B],O[B+1]]))}},S.parseCmd=function(C,O){var _=this.cmdHistory,M=(C===20||C===28||C===21||C===29)&&O>=32&&O<=47,k=(C===23||C===31)&&O>=33&&O<=35;if(!(M||k))return!1;if(x(C,O,_))return A(null,null,_),this.logger.log(e.DEBUG,"Repeated command ("+i([C,O])+") is dropped"),!0;var R=C===20||C===21||C===23?1:2,B=this.channels[R];return C===20||C===21||C===28||C===29?O===32?B.ccRCL():O===33?B.ccBS():O===34?B.ccAOF():O===35?B.ccAON():O===36?B.ccDER():O===37?B.ccRU(2):O===38?B.ccRU(3):O===39?B.ccRU(4):O===40?B.ccFON():O===41?B.ccRDC():O===42?B.ccTR():O===43?B.ccRTD():O===44?B.ccEDM():O===45?B.ccCR():O===46?B.ccENM():O===47&&B.ccEOC():B.ccTO(O-32),A(C,O,_),this.currentChannel=R,!0},S.parseMidrow=function(C,O){var _=0;if((C===17||C===25)&&O>=32&&O<=47){if(C===17?_=1:_=2,_!==this.currentChannel)return this.logger.log(e.ERROR,"Mismatch channel in midrow parsing"),!1;var M=this.channels[_];return M?(M.ccMIDROW(O),this.logger.log(e.DEBUG,"MIDROW ("+i([C,O])+")"),!0):!1}return!1},S.parsePAC=function(C,O){var _,M=this.cmdHistory,k=(C>=17&&C<=23||C>=25&&C<=31)&&O>=64&&O<=127,R=(C===16||C===24)&&O>=64&&O<=95;if(!(k||R))return!1;if(x(C,O,M))return A(null,null,M),!0;var B=C<=23?1:2;O>=64&&O<=95?_=B===1?t[C]:a[C]:_=B===1?l[C]:r[C];var P=this.channels[B];return P?(P.setPAC(this.interpretPAC(_,O)),A(C,O,M),this.currentChannel=B,!0):!1},S.interpretPAC=function(C,O){var _,M={color:null,italics:!1,indent:null,underline:!1,row:C};return O>95?_=O-96:_=O-64,M.underline=(_&1)===1,_<=13?M.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(_/2)]:_<=15?(M.italics=!0,M.color="white"):M.indent=Math.floor((_-16)/2)*4,M},S.parseChars=function(C,O){var _,M=null,k=null;if(C>=25?(_=2,k=C-8):(_=1,k=C),k>=17&&k<=19){var R;k===17?R=O+80:k===18?R=O+112:R=O+144,this.logger.log(e.INFO,"Special char '"+m(R)+"' in channel "+_),M=[R]}else C>=32&&C<=127&&(M=O===0?[C]:[C,O]);if(M){var B=i(M);this.logger.log(e.DEBUG,"Char codes = "+B.join(",")),A(C,O,this.cmdHistory)}return M},S.parseBackgroundAttributes=function(C,O){var _=(C===16||C===24)&&O>=32&&O<=47,M=(C===23||C===31)&&O>=45&&O<=47;if(!(_||M))return!1;var k,R={};C===16||C===24?(k=Math.floor((O-32)/2),R.background=u[k],O%2===1&&(R.background=R.background+"_semi")):O===45?R.background="transparent":(R.foreground="black",O===47&&(R.underline=!0));var B=C<=23?1:2,P=this.channels[B];return P.setBkgData(R),A(C,O,this.cmdHistory),!0},S.reset=function(){for(var C=0;C<Object.keys(this.channels).length;C++){var O=this.channels[C];O&&O.reset()}this.cmdHistory=b()},S.cueSplitAtTime=function(C){for(var O=0;O<this.channels.length;O++){var _=this.channels[O];_&&_.cueSplitAtTime(C)}},w}();function A(w,S,T){T.a=w,T.b=S}function x(w,S,T){return T.a===w&&T.b===S}function b(){return{a:null,b:null}}L.default=v},"./src/utils/codecs.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"isCodecType",function(){return o}),E.d(L,"isCodecSupportedInMp4",function(){return m});var I={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 o(f,s){var t=I[s];return!!t&&t[f.slice(0,4)]===!0}function m(f,s){return MediaSource.isTypeSupported((s||"video")+'/mp4;codecs="'+f+'"')}},"./src/utils/cues.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/utils/vttparser.ts"),o=E("./src/utils/webvtt-parser.ts"),m=E("./src/utils/texttrack-utils.ts"),f=/\s/,s={newCue:function(l,a,r,u){for(var e=[],n,i,c,d,h,p=self.VTTCue||self.TextTrackCue,g=0;g<u.rows.length;g++)if(n=u.rows[g],c=!0,d=0,h="",!n.isEmpty()){for(var v=0;v<n.chars.length;v++)f.test(n.chars[v].uchar)&&c?d++:(h+=n.chars[v].uchar,c=!1);n.cueStartTime=a,a===r&&(r+=1e-4),d>=16?d--:d++;var A=Object(I.fixLineBreaks)(h.trim()),x=Object(o.generateCueId)(a,r,A);(!l||!l.cues||!l.cues.getCueById(x))&&(i=new p(a,r,A),i.id=x,i.line=g+1,i.align="left",i.position=10+Math.min(80,Math.floor(d*8/32)*10),e.push(i))}return l&&e.length&&(e.sort(function(b,w){return b.line==="auto"||w.line==="auto"?0:b.line>8&&w.line>8?w.line-b.line:b.line-w.line}),e.forEach(function(b){return Object(m.addCueToTrack)(l,b)})),e}};L.default=s},"./src/utils/discontinuities.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"findFirstFragWithCC",function(){return f}),E.d(L,"shouldAlignOnDiscontinuities",function(){return s}),E.d(L,"findDiscontinuousReferenceFrag",function(){return t}),E.d(L,"adjustSlidingStart",function(){return a}),E.d(L,"alignStream",function(){return r}),E.d(L,"alignPDT",function(){return e}),E.d(L,"alignFragmentByPDTDelta",function(){return n}),E.d(L,"alignMediaPlaylistByPDT",function(){return i});var I=E("./src/polyfills/number.ts"),o=E("./src/utils/logger.ts"),m=E("./src/controller/level-helper.ts");function f(c,d){for(var h=null,p=0,g=c.length;p<g;p++){var v=c[p];if(v&&v.cc===d){h=v;break}}return h}function s(c,d,h){return!!(d.details&&(h.endCC>h.startCC||c&&c.cc<h.startCC))}function t(c,d){var h=c.fragments,p=d.fragments;if(!p.length||!h.length){o.logger.log("No fragments to align");return}var g=f(h,p[0].cc);if(!g||g&&!g.startPTS){o.logger.log("No frag in previous level to align on");return}return g}function l(c,d){if(c){var h=c.start+d;c.start=c.startPTS=h,c.endPTS=h+c.duration}}function a(c,d){for(var h=d.fragments,p=0,g=h.length;p<g;p++)l(h[p],c);d.fragmentHint&&l(d.fragmentHint,c),d.alignedSliding=!0}function r(c,d,h){if(!d)return;u(c,h,d),!h.alignedSliding&&d.details&&e(h,d.details),!h.alignedSliding&&d.details&&!h.skippedSegments&&Object(m.adjustSliding)(d.details,h)}function u(c,d,h){if(s(c,h,d)){var p=t(h.details,d);p&&Object(I.isFiniteNumber)(p.start)&&(o.logger.log("Adjusting PTS using last level due to CC increase within current level "+d.url),a(p.start,d))}}function e(c,d){if(!d.fragments.length||!c.hasProgramDateTime||!d.hasProgramDateTime)return;var h=d.fragments[0].programDateTime,p=c.fragments[0].programDateTime,g=(p-h)/1e3+d.fragments[0].start;g&&Object(I.isFiniteNumber)(g)&&(o.logger.log("Adjusting PTS using programDateTime delta "+(p-h)+"ms, sliding:"+g.toFixed(3)+" "+c.url+" "),a(g,c))}function n(c,d){var h=c.programDateTime;if(!h)return;var p=(h-d)/1e3;c.start=c.startPTS=p,c.endPTS=p+c.duration}function i(c,d){if(!d.fragments.length||!c.hasProgramDateTime||!d.hasProgramDateTime)return;var h=d.fragments[0].programDateTime,p=d.fragments[0].start,g=h-p*1e3;c.fragments.forEach(function(v){n(v,g)}),c.fragmentHint&&n(c.fragmentHint,g),c.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/utils/ewma.ts"),o=function(){function m(s,t,l){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=l,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new I.default(s),this.fast_=new I.default(t)}var f=m.prototype;return f.update=function(t,l){var a=this.slow_,r=this.fast_;this.slow_.halfLife!==t&&(this.slow_=new I.default(t,a.getEstimate(),a.getTotalWeight())),this.fast_.halfLife!==l&&(this.fast_=new I.default(l,r.getEstimate(),r.getTotalWeight()))},f.sample=function(t,l){t=Math.max(t,this.minDelayMs_);var a=8*l,r=t/1e3,u=a/r;this.fast_.sample(r,u),this.slow_.sample(r,u)},f.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},f.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},f.destroy=function(){},m}();L.default=o},"./src/utils/ewma.ts":function(N,L,E){"use strict";E.r(L);var I=function(){function o(f,s,t){s===void 0&&(s=0),t===void 0&&(t=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=f,this.alpha_=f?Math.exp(Math.log(.5)/f):0,this.estimate_=s,this.totalWeight_=t}var m=o.prototype;return m.sample=function(s,t){var l=Math.pow(this.alpha_,s);this.estimate_=t*(1-l)+l*this.estimate_,this.totalWeight_+=s},m.getTotalWeight=function(){return this.totalWeight_},m.getEstimate=function(){if(this.alpha_){var s=1-Math.pow(this.alpha_,this.totalWeight_);if(s)return this.estimate_/s}return this.estimate_},o}();L.default=I},"./src/utils/fetch-loader.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"fetchSupported",function(){return n});var I=E("./src/polyfills/number.ts"),o=E("./src/loader/load-stats.ts"),m=E("./src/demux/chunk-cache.ts");function f(p,g){p.prototype=Object.create(g.prototype),p.prototype.constructor=p,r(p,g)}function s(p){var g=typeof Map=="function"?new Map:void 0;return s=function(A){if(A===null||!a(A))return A;if(typeof A!="function")throw new TypeError("Super expression must either be null or a function");if(typeof g!="undefined"){if(g.has(A))return g.get(A);g.set(A,x)}function x(){return t(A,arguments,u(this).constructor)}return x.prototype=Object.create(A.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),r(x,A)},s(p)}function t(p,g,v){return l()?t=Reflect.construct:t=function(x,b,w){var S=[null];S.push.apply(S,b);var T=Function.bind.apply(x,S),C=new T;return w&&r(C,w.prototype),C},t.apply(null,arguments)}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(p){return!1}}function a(p){return Function.toString.call(p).indexOf("[native code]")!==-1}function r(p,g){return r=Object.setPrototypeOf||function(A,x){return A.__proto__=x,A},r(p,g)}function u(p){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},u(p)}function e(){return e=Object.assign||function(p){for(var g=1;g<arguments.length;g++){var v=arguments[g];for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(p[A]=v[A])}return p},e.apply(this,arguments)}function n(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(p){}return!1}var i=function(){function p(v){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=v.fetchSetup||d,this.controller=new self.AbortController,this.stats=new o.LoadStats}var g=p.prototype;return g.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},g.abortInternal=function(){var A=this.response;(!A||!A.ok)&&(this.stats.aborted=!0,this.controller.abort())},g.abort=function(){var A;this.abortInternal(),(A=this.callbacks)!==null&&A!==void 0&&A.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},g.load=function(A,x,b){var w=this,S=this.stats;if(S.loading.start)throw new Error("Loader can only be used once.");S.loading.start=self.performance.now();var T=c(A,this.controller.signal),C=b.onProgress,O=A.responseType==="arraybuffer",_=O?"byteLength":"length";this.context=A,this.config=x,this.callbacks=b,this.request=this.fetchSetup(A,T),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){w.abortInternal(),b.onTimeout(S,A,w.response)},x.timeout),self.fetch(this.request).then(function(M){if(w.response=w.loader=M,!M.ok){var k=M.status,R=M.statusText;throw new h(R||"fetch, bad network response",k,M)}return S.loading.first=Math.max(self.performance.now(),S.loading.start),S.total=parseInt(M.headers.get("Content-Length")||"0"),C&&Object(I.isFiniteNumber)(x.highWaterMark)?w.loadProgressively(M,S,A,x.highWaterMark,C):O?M.arrayBuffer():M.text()}).then(function(M){var k=w.response;self.clearTimeout(w.requestTimeout),S.loading.end=Math.max(self.performance.now(),S.loading.first),S.loaded=S.total=M[_];var R={url:k.url,data:M};C&&!Object(I.isFiniteNumber)(x.highWaterMark)&&C(S,A,M,k),b.onSuccess(R,S,A,k)}).catch(function(M){if(self.clearTimeout(w.requestTimeout),S.aborted)return;var k=M.code||0;b.onError({code:k,text:M.message},A,M.details)})},g.getCacheAge=function(){var A=null;if(this.response){var x=this.response.headers.get("age");A=x?parseFloat(x):null}return A},g.loadProgressively=function(A,x,b,w,S){w===void 0&&(w=0);var T=new m.default,C=A.body.getReader(),O=function _(){return C.read().then(function(M){if(M.done)return T.dataLength&&S(x,b,T.flush(),A),Promise.resolve(new ArrayBuffer(0));var k=M.value,R=k.length;return x.loaded+=R,R<w||T.dataLength?(T.push(k),T.dataLength>=w&&S(x,b,T.flush(),A)):S(x,b,k,A),_()}).catch(function(){return Promise.reject()})};return O()},p}();function c(p,g){var v={method:"GET",mode:"cors",credentials:"same-origin",signal:g,headers:new self.Headers(e({},p.headers))};return p.rangeEnd&&v.headers.set("Range","bytes="+p.rangeStart+"-"+String(p.rangeEnd-1)),v}function d(p,g){return new self.Request(p.url,g)}var h=function(p){f(g,p);function g(v,A,x){var b;return b=p.call(this,v)||this,b.code=void 0,b.details=void 0,b.code=A,b.details=x,b}return g}(s(Error));L.default=i},"./src/utils/imsc1-ttml-parser.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"IMSC1_CODEC",function(){return a}),E.d(L,"parseIMSC1",function(){return n});var I=E("./src/utils/mp4-tools.ts"),o=E("./src/utils/vttparser.ts"),m=E("./src/utils/vttcue.ts"),f=E("./src/demux/id3.ts"),s=E("./src/utils/timescale-conversion.ts"),t=E("./src/utils/webvtt-parser.ts");function l(){return l=Object.assign||function(w){for(var S=1;S<arguments.length;S++){var T=arguments[S];for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&(w[C]=T[C])}return w},l.apply(this,arguments)}var a="stpp.ttml.im1t",r=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,u=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,e={left:"start",center:"center",right:"end",start:"start",end:"end"};function n(w,S,T,C,O){var _=Object(I.findBox)(new Uint8Array(w),["mdat"]);if(_.length===0){O(new Error("Could not parse IMSC1 mdat"));return}var M=_[0],k=Object(f.utf8ArrayToStr)(new Uint8Array(w,M.start,M.end-M.start)),R=Object(s.toTimescaleFromScale)(S,1,T);try{C(i(k,R))}catch(B){O(B)}}function i(w,S){var T=new DOMParser,C=T.parseFromString(w,"text/xml"),O=C.getElementsByTagName("tt")[0];if(!O)throw new Error("Invalid ttml");var _={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},M=Object.keys(_).reduce(function(U,j){return U[j]=O.getAttribute("ttp:"+j)||_[j],U},{}),k=O.getAttribute("xml:space")!=="preserve",R=d(c(O,"styling","style")),B=d(c(O,"layout","region")),P=c(O,"body","[begin]");return[].map.call(P,function(U){var j=h(U,k);if(!j||!U.hasAttribute("begin"))return null;var H=A(U.getAttribute("begin"),M),W=A(U.getAttribute("dur"),M),G=A(U.getAttribute("end"),M);if(H===null)throw v(U);if(G===null){if(W===null)throw v(U);G=H+W}var V=new m.default(H-S,G-S,j);V.id=Object(t.generateCueId)(V.startTime,V.endTime,V.text);var Z=B[U.getAttribute("region")],Y=R[U.getAttribute("style")];V.position=10,V.size=80;var Q=p(Z,Y),oe=Q.textAlign;if(oe){var ue=e[oe];ue&&(V.lineAlign=ue),V.align=oe}return l(V,Q),V}).filter(function(U){return U!==null})}function c(w,S,T){var C=w.getElementsByTagName(S)[0];return C?[].slice.call(C.querySelectorAll(T)):[]}function d(w){return w.reduce(function(S,T){var C=T.getAttribute("xml:id");return C&&(S[C]=T),S},{})}function h(w,S){return[].slice.call(w.childNodes).reduce(function(T,C,O){var _;return C.nodeName==="br"&&O?T+`
|
|
|
`:(_=C.childNodes)!==null&&_!==void 0&&_.length?h(C,S):S?T+C.textContent.trim().replace(/\s+/g," "):T+C.textContent},"")}function p(w,S){var T="http://www.w3.org/ns/ttml#styling",C=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return C.reduce(function(O,_){var M=g(S,T,_)||g(w,T,_);return M&&(O[_]=M),O},{})}function g(w,S,T){return w.hasAttributeNS(S,T)?w.getAttributeNS(S,T):null}function v(w){return new Error("Could not parse ttml timestamp "+w)}function A(w,S){if(!w)return null;var T=Object(o.parseTimeStamp)(w);return T===null&&(r.test(w)?T=x(w,S):u.test(w)&&(T=b(w,S))),T}function x(w,S){var T=r.exec(w),C=(T[4]|0)+(T[5]|0)/S.subFrameRate;return(T[1]|0)*3600+(T[2]|0)*60+(T[3]|0)+C/S.frameRate}function b(w,S){var T=u.exec(w),C=Number(T[1]),O=T[2];switch(O){case"h":return C*3600;case"m":return C*60;case"ms":return C*1e3;case"f":return C/S.frameRate;case"t":return C/S.tickRate}return C}},"./src/utils/logger.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"enableLogs",function(){return t}),E.d(L,"logger",function(){return l});var I=function(){},o={trace:I,debug:I,log:I,warn:I,info:I,error:I},m=o;function f(a){var r=self.console[a];return r?r.bind(self.console,"["+a+"] >"):I}function s(a){for(var r=arguments.length,u=new Array(r>1?r-1:0),e=1;e<r;e++)u[e-1]=arguments[e];u.forEach(function(n){m[n]=a[n]?a[n].bind(a):f(n)})}function t(a){if(self.console&&a===!0||typeof a=="object"){s(a,"debug","log","info","warn","error");try{m.log()}catch(r){m=o}}else m=o}var l=m},"./src/utils/mediakeys-helper.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"KeySystems",function(){return I}),E.d(L,"requestMediaKeySystemAccess",function(){return o});var I;(function(m){m.WIDEVINE="com.widevine.alpha",m.PLAYREADY="com.microsoft.playready"})(I||(I={}));var o=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"getMediaSource",function(){return I});function I(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"bin2str",function(){return s}),E.d(L,"readUint16",function(){return t}),E.d(L,"readUint32",function(){return l}),E.d(L,"writeUint32",function(){return a}),E.d(L,"findBox",function(){return r}),E.d(L,"parseSegmentIndex",function(){return u}),E.d(L,"parseInitSegment",function(){return e}),E.d(L,"getStartDTS",function(){return n}),E.d(L,"getDuration",function(){return i}),E.d(L,"computeRawDurationFromSamples",function(){return c}),E.d(L,"offsetStartDTS",function(){return d}),E.d(L,"segmentValidRange",function(){return h}),E.d(L,"appendUint8Array",function(){return p});var I=E("./src/utils/typed-array.ts"),o=E("./src/loader/fragment.ts"),m=Math.pow(2,32)-1,f=[].push;function s(g){return String.fromCharCode.apply(null,g)}function t(g,v){"data"in g&&(v+=g.start,g=g.data);var A=g[v]<<8|g[v+1];return A<0?65536+A:A}function l(g,v){"data"in g&&(v+=g.start,g=g.data);var A=g[v]<<24|g[v+1]<<16|g[v+2]<<8|g[v+3];return A<0?4294967296+A:A}function a(g,v,A){"data"in g&&(v+=g.start,g=g.data),g[v]=A>>24,g[v+1]=A>>16&255,g[v+2]=A>>8&255,g[v+3]=A&255}function r(g,v){var A=[];if(!v.length)return A;var x,b,w;"data"in g?(x=g.data,b=g.start,w=g.end):(x=g,b=0,w=x.byteLength);for(var S=b;S<w;){var T=l(x,S),C=s(x.subarray(S+4,S+8)),O=T>1?S+T:w;if(C===v[0])if(v.length===1)A.push({data:x,start:S+8,end:O});else{var _=r({data:x,start:S+8,end:O},v.slice(1));_.length&&f.apply(A,_)}S=O}return A}function u(g){var v=r(g,["moov"]),A=v[0],x=A?A.end:null,b=r(g,["sidx"]);if(!b||!b[0])return null;var w=[],S=b[0],T=S.data[0],C=T===0?8:16,O=l(S,C);C+=4;var _=0,M=0;T===0?C+=8:C+=16,C+=2;var k=S.end+M,R=t(S,C);C+=2;for(var B=0;B<R;B++){var P=C,U=l(S,P);P+=4;var j=U&2147483647,H=(U&2147483648)>>>31;if(H===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var W=l(S,P);P+=4,w.push({referenceSize:j,subsegmentDuration:W,info:{duration:W/O,start:k,end:k+j-1}}),k+=j,P+=4,C=P}return{earliestPresentationTime:_,timescale:O,version:T,referencesCount:R,references:w,moovEndOffset:x}}function e(g){for(var v=[],A=r(g,["moov","trak"]),x=0;x<A.length;x++){var b=A[x],w=r(b,["tkhd"])[0];if(w){var S=w.data[w.start],T=S===0?12:20,C=l(w,T),O=r(b,["mdia","mdhd"])[0];if(O){S=O.data[O.start],T=S===0?12:20;var _=l(O,T),M=r(b,["mdia","hdlr"])[0];if(M){var k=s(M.data.subarray(M.start+8,M.start+12)),R={soun:o.ElementaryStreamTypes.AUDIO,vide:o.ElementaryStreamTypes.VIDEO}[k];if(R){var B=r(b,["mdia","minf","stbl","stsd"])[0],P=void 0;B&&(P=s(B.data.subarray(B.start+12,B.start+16))),v[C]={timescale:_,type:R},v[R]={timescale:_,id:C,codec:P}}}}}}var U=r(g,["moov","mvex","trex"]);return U.forEach(function(j){var H=l(j,4),W=v[H];W&&(W.default={duration:l(j,12),flags:l(j,20)})}),v}function n(g,v){return r(v,["moof","traf"]).reduce(function(A,x){var b=r(x,["tfdt"])[0],w=b.data[b.start],S=r(x,["tfhd"]).reduce(function(T,C){var O=l(C,4),_=g[O];if(_){var M=l(b,4);w===1&&(M*=Math.pow(2,32),M+=l(b,8));var k=_.timescale||9e4,R=M/k;if(isFinite(R)&&(T===null||R<T))return R}return T},null);return S!==null&&isFinite(S)&&(A===null||S<A)?S:A},null)||0}function i(g,v){for(var A=0,x=0,b=0,w=r(g,["moof","traf"]),S=0;S<w.length;S++){var T=w[S],C=r(T,["tfhd"])[0],O=l(C,4),_=v[O];if(!_)continue;var M=_.default,k=l(C,0)|(M==null?void 0:M.flags),R=M==null?void 0:M.duration;k&8&&(k&2?R=l(C,12):R=l(C,8));for(var B=_.timescale||9e4,P=r(T,["trun"]),U=0;U<P.length;U++){if(R){var j=l(P[U],4);A=R*j}else A=c(P[U]);_.type===o.ElementaryStreamTypes.VIDEO?x+=A/B:_.type===o.ElementaryStreamTypes.AUDIO&&(b+=A/B)}}if(x===0&&b===0){var H=u(g);if(H!=null&&H.references)return H.references.reduce(function(W,G){return W+G.info.duration||0},0)}return x||b}function c(g){var v=l(g,0),A=8;v&1&&(A+=4),v&4&&(A+=4);for(var x=0,b=l(g,4),w=0;w<b;w++){if(v&256){var S=l(g,A);x+=S,A+=4}v&512&&(A+=4),v&1024&&(A+=4),v&2048&&(A+=4)}return x}function d(g,v,A){r(v,["moof","traf"]).forEach(function(x){r(x,["tfhd"]).forEach(function(b){var w=l(b,4),S=g[w];if(!S)return;var T=S.timescale||9e4;r(x,["tfdt"]).forEach(function(C){var O=C.data[C.start],_=l(C,4);if(O===0)a(C,4,_-A*T);else{_*=Math.pow(2,32),_+=l(C,8),_-=A*T,_=Math.max(_,0);var M=Math.floor(_/(m+1)),k=Math.floor(_%(m+1));a(C,4,M),a(C,8,k)}})})})}function h(g){var v={valid:null,remainder:null},A=r(g,["moof"]);if(A){if(A.length<2)return v.remainder=g,v}else return v;var x=A[A.length-1];return v.valid=Object(I.sliceUint8)(g,0,x.start-8),v.remainder=Object(I.sliceUint8)(g,x.start-8),v}function p(g,v){var A=new Uint8Array(g.length+v.length);return A.set(g),A.set(v,g.length),A}},"./src/utils/output-filter.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"default",function(){return I});var I=function(){function o(f,s){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=f,this.trackName=s}var m=o.prototype;return m.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},m.newCue=function(s,t,l){(this.startTime===null||this.startTime>s)&&(this.startTime=s),this.endTime=t,this.screen=l,this.timelineController.createCaptionsTrack(this.trackName)},m.reset=function(){this.cueRanges=[]},o}()},"./src/utils/texttrack-utils.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"sendAddTrackEvent",function(){return o}),E.d(L,"addCueToTrack",function(){return m}),E.d(L,"clearCurrentCues",function(){return f}),E.d(L,"removeCuesInRange",function(){return s}),E.d(L,"getCuesInRange",function(){return l});var I=E("./src/utils/logger.ts");function o(a,r){var u;try{u=new Event("addtrack")}catch(e){u=document.createEvent("Event"),u.initEvent("addtrack",!1,!1)}u.track=a,r.dispatchEvent(u)}function m(a,r){var u=a.mode;if(u==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(r.id))try{if(a.addCue(r),!a.cues.getCueById(r.id))throw new Error("addCue is failed for: "+r)}catch(n){I.logger.debug("[texttrack-utils]: "+n);var e=new self.TextTrackCue(r.startTime,r.endTime,r.text);e.id=r.id,a.addCue(e)}u==="disabled"&&(a.mode=u)}function f(a){var r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues)for(var u=a.cues.length;u--;)a.removeCue(a.cues[u]);r==="disabled"&&(a.mode=r)}function s(a,r,u){var e=a.mode;if(e==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var n=l(a.cues,r,u),i=0;i<n.length;i++)a.removeCue(n[i]);e==="disabled"&&(a.mode=e)}function t(a,r){if(r<a[0].startTime)return 0;var u=a.length-1;if(r>a[u].endTime)return-1;for(var e=0,n=u;e<=n;){var i=Math.floor((n+e)/2);if(r<a[i].startTime)n=i-1;else if(r>a[i].startTime&&e<u)e=i+1;else return i}return a[e].startTime-r<r-a[n].startTime?e:n}function l(a,r,u){var e=[],n=t(a,r);if(n>-1)for(var i=n,c=a.length;i<c;i++){var d=a[i];if(d.startTime>=r&&d.endTime<=u)e.push(d);else if(d.startTime>u)return e}return e}},"./src/utils/time-ranges.ts":function(N,L,E){"use strict";E.r(L);var I={toString:function(m){for(var f="",s=m.length,t=0;t<s;t++)f+="["+m.start(t).toFixed(3)+","+m.end(t).toFixed(3)+"]";return f}};L.default=I},"./src/utils/timescale-conversion.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"toTimescaleFromBase",function(){return o}),E.d(L,"toTimescaleFromScale",function(){return m}),E.d(L,"toMsFromMpegTsClock",function(){return f}),E.d(L,"toMpegTsClockFromTimescale",function(){return s});var I=9e4;function o(t,l,a,r){a===void 0&&(a=1),r===void 0&&(r=!1);var u=t*l*a;return r?Math.round(u):u}function m(t,l,a,r){return a===void 0&&(a=1),r===void 0&&(r=!1),o(t,l,1/a,r)}function f(t,l){return l===void 0&&(l=!1),o(t,1e3,1/I,l)}function s(t,l){return l===void 0&&(l=1),o(t,I,1/l)}},"./src/utils/typed-array.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"sliceUint8",function(){return I});function I(o,m,f){return Uint8Array.prototype.slice?o.slice(m,f):new Uint8Array(Array.prototype.slice.call(o,m,f))}},"./src/utils/vttcue.ts":function(N,L,E){"use strict";E.r(L),L.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var I=["","lr","rl"],o=["start","middle","end","left","right"];function m(a,r){if(typeof r!="string")return!1;if(!Array.isArray(a))return!1;var u=r.toLowerCase();return~a.indexOf(u)?u:!1}function f(a){return m(I,a)}function s(a){return m(o,a)}function t(a){for(var r=arguments.length,u=new Array(r>1?r-1:0),e=1;e<r;e++)u[e-1]=arguments[e];for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var c in i)a[c]=i[c]}return a}function l(a,r,u){var e=this,n={enumerable:!0};e.hasBeenReset=!1;var i="",c=!1,d=a,h=r,p=u,g=null,v="",A=!0,x="auto",b="start",w=50,S="middle",T=50,C="middle";Object.defineProperty(e,"id",t({},n,{get:function(){return i},set:function(_){i=""+_}})),Object.defineProperty(e,"pauseOnExit",t({},n,{get:function(){return c},set:function(_){c=!!_}})),Object.defineProperty(e,"startTime",t({},n,{get:function(){return d},set:function(_){if(typeof _!="number")throw new TypeError("Start time must be set to a number.");d=_,this.hasBeenReset=!0}})),Object.defineProperty(e,"endTime",t({},n,{get:function(){return h},set:function(_){if(typeof _!="number")throw new TypeError("End time must be set to a number.");h=_,this.hasBeenReset=!0}})),Object.defineProperty(e,"text",t({},n,{get:function(){return p},set:function(_){p=""+_,this.hasBeenReset=!0}})),Object.defineProperty(e,"region",t({},n,{get:function(){return g},set:function(_){g=_,this.hasBeenReset=!0}})),Object.defineProperty(e,"vertical",t({},n,{get:function(){return v},set:function(_){var M=f(_);if(M===!1)throw new SyntaxError("An invalid or illegal string was specified.");v=M,this.hasBeenReset=!0}})),Object.defineProperty(e,"snapToLines",t({},n,{get:function(){return A},set:function(_){A=!!_,this.hasBeenReset=!0}})),Object.defineProperty(e,"line",t({},n,{get:function(){return x},set:function(_){if(typeof _!="number"&&_!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");x=_,this.hasBeenReset=!0}})),Object.defineProperty(e,"lineAlign",t({},n,{get:function(){return b},set:function(_){var M=s(_);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");b=M,this.hasBeenReset=!0}})),Object.defineProperty(e,"position",t({},n,{get:function(){return w},set:function(_){if(_<0||_>100)throw new Error("Position must be between 0 and 100.");w=_,this.hasBeenReset=!0}})),Object.defineProperty(e,"positionAlign",t({},n,{get:function(){return S},set:function(_){var M=s(_);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");S=M,this.hasBeenReset=!0}})),Object.defineProperty(e,"size",t({},n,{get:function(){return T},set:function(_){if(_<0||_>100)throw new Error("Size must be between 0 and 100.");T=_,this.hasBeenReset=!0}})),Object.defineProperty(e,"align",t({},n,{get:function(){return C},set:function(_){var M=s(_);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");C=M,this.hasBeenReset=!0}})),e.displayState=void 0}return l.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},l}()},"./src/utils/vttparser.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"parseTimeStamp",function(){return m}),E.d(L,"fixLineBreaks",function(){return r}),E.d(L,"VTTParser",function(){return u});var I=E("./src/utils/vttcue.ts"),o=function(){function e(){}var n=e.prototype;return n.decode=function(c,d){if(!c)return"";if(typeof c!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(c))},e}();function m(e){function n(c,d,h,p){return(c|0)*3600+(d|0)*60+(h|0)+parseFloat(p||0)}var i=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return i?parseFloat(i[2])>59?n(i[2],i[3],0,i[4]):n(i[1],i[2],i[3],i[4]):null}var f=function(){function e(){this.values=Object.create(null)}var n=e.prototype;return n.set=function(c,d){!this.get(c)&&d!==""&&(this.values[c]=d)},n.get=function(c,d,h){return h?this.has(c)?this.values[c]:d[h]:this.has(c)?this.values[c]:d},n.has=function(c){return c in this.values},n.alt=function(c,d,h){for(var p=0;p<h.length;++p)if(d===h[p]){this.set(c,d);break}},n.integer=function(c,d){/^-?\d+$/.test(d)&&this.set(c,parseInt(d,10))},n.percent=function(c,d){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(d)){var h=parseFloat(d);if(h>=0&&h<=100)return this.set(c,h),!0}return!1},e}();function s(e,n,i,c){var d=c?e.split(c):[e];for(var h in d){if(typeof d[h]!="string")continue;var p=d[h].split(i);if(p.length!==2)continue;var g=p[0],v=p[1];n(g,v)}}var t=new I.default(0,0,""),l=t.align==="middle"?"middle":"center";function a(e,n,i){var c=e;function d(){var g=m(e);if(g===null)throw new Error("Malformed timestamp: "+c);return e=e.replace(/^[^\sa-zA-Z-]+/,""),g}function h(g,v){var A=new f;s(g,function(w,S){var T;switch(w){case"region":for(var C=i.length-1;C>=0;C--)if(i[C].id===S){A.set(w,i[C].region);break}break;case"vertical":A.alt(w,S,["rl","lr"]);break;case"line":T=S.split(","),A.integer(w,T[0]),A.percent(w,T[0])&&A.set("snapToLines",!1),A.alt(w,T[0],["auto"]),T.length===2&&A.alt("lineAlign",T[1],["start",l,"end"]);break;case"position":T=S.split(","),A.percent(w,T[0]),T.length===2&&A.alt("positionAlign",T[1],["start",l,"end","line-left","line-right","auto"]);break;case"size":A.percent(w,S);break;case"align":A.alt(w,S,["start",l,"end","left","right"]);break}},/:/,/\s/),v.region=A.get("region",null),v.vertical=A.get("vertical","");var x=A.get("line","auto");x==="auto"&&t.line===-1&&(x=-1),v.line=x,v.lineAlign=A.get("lineAlign","start"),v.snapToLines=A.get("snapToLines",!0),v.size=A.get("size",100),v.align=A.get("align",l);var b=A.get("position","auto");b==="auto"&&t.position===50&&(b=v.align==="start"||v.align==="left"?0:v.align==="end"||v.align==="right"?100:50),v.position=b}function p(){e=e.replace(/^\s+/,"")}if(p(),n.startTime=d(),p(),e.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+c);e=e.substr(3),p(),n.endTime=d(),p(),h(e,n)}function r(e){return e.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}var u=function(){function e(){this.state="INITIAL",this.buffer="",this.decoder=new o,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var n=e.prototype;return n.parse=function(c){var d=this;c&&(d.buffer+=d.decoder.decode(c,{stream:!0}));function h(){var b=d.buffer,w=0;for(b=r(b);w<b.length&&b[w]!=="\r"&&b[w]!==`
|
|
|
`;)++w;var S=b.substr(0,w);return b[w]==="\r"&&++w,b[w]===`
|
|
|
`&&++w,d.buffer=b.substr(w),S}function p(b){s(b,function(w,S){},/:/)}try{var g="";if(d.state==="INITIAL"){if(!/\r\n|\n/.test(d.buffer))return this;g=h();var v=g.match(/^()?WEBVTT([ \t].*)?$/);if(!v||!v[0])throw new Error("Malformed WebVTT signature.");d.state="HEADER"}for(var A=!1;d.buffer;){if(!/\r\n|\n/.test(d.buffer))return this;A?A=!1:g=h();switch(d.state){case"HEADER":/:/.test(g)?p(g):g||(d.state="ID");continue;case"NOTE":g||(d.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(g)){d.state="NOTE";break}if(!g)continue;if(d.cue=new I.default(0,0,""),d.state="CUE",g.indexOf("-->")===-1){d.cue.id=g;continue}case"CUE":if(!d.cue){d.state="BADCUE";continue}try{a(g,d.cue,d.regionList)}catch(b){d.cue=null,d.state="BADCUE";continue}d.state="CUETEXT";continue;case"CUETEXT":{var x=g.indexOf("-->")!==-1;if(!g||x&&(A=!0)){d.oncue&&d.cue&&d.oncue(d.cue),d.cue=null,d.state="ID";continue}if(d.cue===null)continue;d.cue.text&&(d.cue.text+=`
|
|
|
`),d.cue.text+=g}continue;case"BADCUE":g||(d.state="ID")}}}catch(b){d.state==="CUETEXT"&&d.cue&&d.oncue&&d.oncue(d.cue),d.cue=null,d.state=d.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},n.flush=function(){var c=this;try{if((c.cue||c.state==="HEADER")&&(c.buffer+=`
|
|
|
|
|
|
`,c.parse()),c.state==="INITIAL"||c.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(d){c.onparsingerror&&c.onparsingerror(d)}return c.onflush&&c.onflush(),this},e}()},"./src/utils/webvtt-parser.ts":function(N,L,E){"use strict";E.r(L),E.d(L,"generateCueId",function(){return u}),E.d(L,"parseWebVTT",function(){return n});var I=E("./src/polyfills/number.ts"),o=E("./src/utils/vttparser.ts"),m=E("./src/demux/id3.ts"),f=E("./src/utils/timescale-conversion.ts"),s=E("./src/remux/mp4-remuxer.ts"),t=/\r\n|\n\r|\n|\r/g,l=function(c,d,h){return h===void 0&&(h=0),c.substr(h,d.length)===d},a=function(c){var d=parseInt(c.substr(-3)),h=parseInt(c.substr(-6,2)),p=parseInt(c.substr(-9,2)),g=c.length>9?parseInt(c.substr(0,c.indexOf(":"))):0;if(!Object(I.isFiniteNumber)(d)||!Object(I.isFiniteNumber)(h)||!Object(I.isFiniteNumber)(p)||!Object(I.isFiniteNumber)(g))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+c);return d+=1e3*h,d+=60*1e3*p,d+=60*60*1e3*g,d},r=function(c){for(var d=5381,h=c.length;h;)d=d*33^c.charCodeAt(--h);return(d>>>0).toString()};function u(i,c,d){return r(i.toString())+r(c.toString())+r(d)}var e=function(c,d,h){var p=c[d],g=c[p.prevCC];if(!g||!g.new&&p.new){c.ccOffset=c.presentationOffset=p.start,p.new=!1;return}for(;(v=g)!==null&&v!==void 0&&v.new;){var v;c.ccOffset+=p.start-g.start,p.new=!1,p=g,g=c[p.prevCC]}c.presentationOffset=h};function n(i,c,d,h,p,g,v,A){var x=new o.VTTParser,b=Object(m.utf8ArrayToStr)(new Uint8Array(i)).trim().replace(t,`
|
|
|
`).split(`
|
|
|
`),w=[],S=Object(f.toMpegTsClockFromTimescale)(c,d),T="00:00.000",C=0,O=0,_,M=!0,k=!1;x.oncue=function(R){var B=h[p],P=h.ccOffset,U=(C-S)/9e4;if(B!=null&&B.new&&(O!==void 0?P=h.ccOffset=B.start:e(h,p,U)),U&&(P=U-h.presentationOffset),k){var j=R.endTime-R.startTime,H=Object(s.normalizePts)((R.startTime+P-O)*9e4,g*9e4)/9e4;R.startTime=H,R.endTime=H+j}var W=R.text.trim();R.text=decodeURIComponent(encodeURIComponent(W)),R.id||(R.id=u(R.startTime,R.endTime,W)),R.endTime>0&&w.push(R)},x.onparsingerror=function(R){_=R},x.onflush=function(){if(_){A(_);return}v(w)},b.forEach(function(R){if(M)if(l(R,"X-TIMESTAMP-MAP=")){M=!1,k=!0,R.substr(16).split(",").forEach(function(B){l(B,"LOCAL:")?T=B.substr(6):l(B,"MPEGTS:")&&(C=parseInt(B.substr(7)))});try{O=a(T)/1e3}catch(B){k=!1,_=B}return}else R===""&&(M=!1);x.parse(R+`
|
|
|
`)}),x.flush()}},"./src/utils/xhr-loader.ts":function(N,L,E){"use strict";E.r(L);var I=E("./src/utils/logger.ts"),o=E("./src/loader/load-stats.ts"),m=/^age:\s*[\d.]+\s*$/m,f=function(){function s(l){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=l?l.xhrSetup:null,this.stats=new o.LoadStats,this.retryDelay=0}var t=s.prototype;return t.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},t.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},t.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},t.load=function(a,r,u){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=r,this.callbacks=u,this.retryDelay=r.retryDelay,this.loadInternal()},t.loadInternal=function(){var a=this.config,r=this.context;if(!a)return;var u=this.loader=new self.XMLHttpRequest,e=this.stats;e.loading.first=0,e.loaded=0;var n=this.xhrSetup;try{if(n)try{n(u,r.url)}catch(d){u.open("GET",r.url,!0),n(u,r.url)}u.readyState||u.open("GET",r.url,!0);var i=this.context.headers;if(i)for(var c in i)u.setRequestHeader(c,i[c])}catch(d){this.callbacks.onError({code:u.status,text:d.message},r,u);return}r.rangeEnd&&u.setRequestHeader("Range","bytes="+r.rangeStart+"-"+(r.rangeEnd-1)),u.onreadystatechange=this.readystatechange.bind(this),u.onprogress=this.loadprogress.bind(this),u.responseType=r.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),u.send()},t.readystatechange=function(){var a=this.context,r=this.loader,u=this.stats;if(!a||!r)return;var e=r.readyState,n=this.config;if(u.aborted)return;if(e>=2)if(self.clearTimeout(this.requestTimeout),u.loading.first===0&&(u.loading.first=Math.max(self.performance.now(),u.loading.start)),e===4){r.onreadystatechange=null,r.onprogress=null;var i=r.status;if(i>=200&&i<300){u.loading.end=Math.max(self.performance.now(),u.loading.first);var c,d;if(a.responseType==="arraybuffer"?(c=r.response,d=c.byteLength):(c=r.responseText,d=c.length),u.loaded=u.total=d,!this.callbacks)return;var h=this.callbacks.onProgress;if(h&&h(u,a,c,r),!this.callbacks)return;var p={url:r.responseURL,data:c};this.callbacks.onSuccess(p,u,a,r)}else u.retry>=n.maxRetry||i>=400&&i<499?(I.logger.error(i+" while loading "+a.url),this.callbacks.onError({code:i,text:r.statusText},a,r)):(I.logger.warn(i+" while loading "+a.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,n.maxRetryDelay),u.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},t.loadtimeout=function(){I.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},t.loadprogress=function(a){var r=this.stats;r.loaded=a.loaded,a.lengthComputable&&(r.total=a.total)},t.getCacheAge=function(){var a=null;if(this.loader&&m.test(this.loader.getAllResponseHeaders())){var r=this.loader.getResponseHeader("age");a=r?parseFloat(r):null}return a},s}();L.default=f}}).default})},v56E:function(fe,z,y){},v5uJ:function(fe,z,y){var D=y("ProS"),N=y("2B6p"),L=N.updateCenterAndZoom;D.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(E,I){I.eachComponent({mainType:"series",subType:"tree",query:E},function(o){var m=E.dataIndex,f=o.getData().tree,s=f.getNodeByDataIndex(m);s.isExpand=!s.isExpand})}),D.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(E,I){I.eachComponent({mainType:"series",subType:"tree",query:E},function(o){var m=o.coordinateSystem,f=L(m,E);o.setCenter&&o.setCenter(f.center),o.setZoom&&o.setZoom(f.zoom)})})},"vF/C":function(fe,z,y){var D=y("bLfw");D.registerSubTypeDefaulter("visualMap",function(N){return!N.categories&&(!(N.pieces?N.pieces.length>0:N.splitNumber>0)||N.calculable)?"continuous":"piecewise"})},vKoX:function(fe,z,y){var D=y("SrGk"),N=y("bYtY");function L(o,m){D.call(this,o,m,["filter"],"__filter_in_use__","_shadowDom")}N.inherits(L,D),L.prototype.addWithoutUpdate=function(o,m){if(m&&E(m.style)){var f;if(m._shadowDom){f=m._shadowDom;var s=this.getDefs(!0);s.contains(m._shadowDom)||this.addDom(f)}else f=this.add(m);this.markUsed(m);var t=f.getAttribute("id");o.style.filter="url(#"+t+")"}},L.prototype.add=function(o){var m=this.createElement("filter");return o._shadowDomId=o._shadowDomId||this.nextId++,m.setAttribute("id","zr"+this._zrId+"-shadow-"+o._shadowDomId),this.updateDom(o,m),this.addDom(m),m},L.prototype.update=function(o,m){var f=m.style;if(E(f)){var s=this;D.prototype.update.call(this,m,function(){s.updateDom(m,m._shadowDom)})}else this.remove(o,m)},L.prototype.remove=function(o,m){m._shadowDomId!=null&&(this.removeDom(o),o.style.filter="")},L.prototype.updateDom=function(o,m){var f=m.getElementsByTagName("feDropShadow");f.length===0?f=this.createElement("feDropShadow"):f=f[0];var s=o.style,t=o.scale&&o.scale[0]||1,l=o.scale&&o.scale[1]||1,a,r,u,e;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)a=s.shadowOffsetX||0,r=s.shadowOffsetY||0,u=s.shadowBlur,e=s.shadowColor;else if(s.textShadowBlur)a=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,u=s.textShadowBlur,e=s.textShadowColor;else{this.removeDom(m,s);return}f.setAttribute("dx",a/t),f.setAttribute("dy",r/l),f.setAttribute("flood-color",e);var n=u/2/t,i=u/2/l,c=n+" "+i;f.setAttribute("stdDeviation",c),m.setAttribute("x","-100%"),m.setAttribute("y","-100%"),m.setAttribute("width",Math.ceil(u/2*200)+"%"),m.setAttribute("height",Math.ceil(u/2*200)+"%"),m.appendChild(f),o._shadowDom=m},L.prototype.markUsed=function(o){o._shadowDom&&D.prototype.markUsed.call(this,o._shadowDom)};function E(o){return o&&(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY||o.textShadowBlur||o.textShadowOffsetX||o.textShadowOffsetY)}var I=L;fe.exports=I},vL6D:function(fe,z,y){var D=y("bYtY"),N=y("+rIm"),L=y("IwbS"),E=y("7bkD"),I=y("Znkb"),o=y("WN+l"),m=o.rectCoordAxisBuildSplitArea,f=o.rectCoordAxisHandleRemove,s=["axisLine","axisTickLabel","axisName"],t=["splitArea","splitLine"],l=I.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(r,u,e,n){var i=this.group;i.removeAll();var c=this._axisGroup;this._axisGroup=new L.Group;var d=E.layout(r),h=new N(r,d);D.each(s,h.add,h),i.add(this._axisGroup),i.add(h.getGroup()),D.each(t,function(p){r.get(p+".show")&&this["_"+p](r)},this),L.groupTransition(c,this._axisGroup,r),l.superCall(this,"render",r,u,e,n)},remove:function(){f(this)},_splitLine:function(r){var u=r.axis;if(u.scale.isBlank())return;var e=r.getModel("splitLine"),n=e.getModel("lineStyle"),i=n.get("width"),c=n.get("color");c=c instanceof Array?c:[c];for(var d=r.coordinateSystem.getRect(),h=u.isHorizontal(),p=[],g=0,v=u.getTicksCoords({tickModel:e}),A=[],x=[],b=0;b<v.length;++b){var w=u.toGlobalCoord(v[b].coord);h?(A[0]=w,A[1]=d.y,x[0]=w,x[1]=d.y+d.height):(A[0]=d.x,A[1]=w,x[0]=d.x+d.width,x[1]=w);var S=g++%c.length;p[S]=p[S]||[],p[S].push(new L.Line({subPixelOptimize:!0,shape:{x1:A[0],y1:A[1],x2:x[0],y2:x[1]},style:{lineWidth:i},silent:!0}))}for(var b=0;b<p.length;++b)this.group.add(L.mergePath(p[b],{style:{stroke:c[b%c.length],lineDash:n.getLineDash(i),lineWidth:i},silent:!0}))},_splitArea:function(r){m(this,this._axisGroup,r,r)}}),a=l;fe.exports=a},vWvF:function(fe,z,y){var D=y("Bq2U"),N=y("SUKs"),L=y("bYtY"),E=L.isString,I=L.isFunction,o=L.isObject,m=L.isArrayLike,f=L.indexOf,s=function(){this.animators=[]};s.prototype={constructor:s,animate:function(e,n){var i,c=!1,d=this,h=this.__zr;if(e){var p=e.split("."),g=d;c=p[0]==="shape";for(var v=0,A=p.length;v<A;v++){if(!g)continue;g=g[p[v]]}g&&(i=g)}else i=d;if(!i){N('Property "'+e+'" is not existed in element '+d.id);return}var x=d.animators,b=new D(i,n);return b.during(function(w){d.dirty(c)}).done(function(){x.splice(f(x,b),1)}),x.push(b),h&&h.animation.addAnimator(b),b},stopAnimation:function(e){for(var n=this.animators,i=n.length,c=0;c<i;c++)n[c].stop(e);return n.length=0,this},animateTo:function(e,n,i,c,d,h){t(this,e,n,i,c,d,h)},animateFrom:function(e,n,i,c,d,h){t(this,e,n,i,c,d,h,!0)}};function t(u,e,n,i,c,d,h,p){E(i)?(d=c,c=i,i=0):I(c)?(d=c,c="linear",i=0):I(i)?(d=i,i=0):I(n)?(d=n,n=500):n||(n=500),u.stopAnimation(),l(u,"",u,e,n,i,p);var g=u.animators.slice(),v=g.length;function A(){v--,v||d&&d()}v||d&&d();for(var x=0;x<g.length;x++)g[x].done(A).start(c,h)}function l(u,e,n,i,c,d,h){var p={},g=0;for(var v in i){if(!i.hasOwnProperty(v))continue;n[v]!=null?o(i[v])&&!m(i[v])?l(u,e?e+"."+v:v,n[v],i[v],c,d,h):(h?(p[v]=n[v],a(u,e,v,i[v])):p[v]=i[v],g++):i[v]!=null&&!h&&a(u,e,v,i[v])}g>0&&u.animate(e,!1).when(c==null?500:c,p).delay(d||0)}function a(u,e,n,i){if(!e)u.attr(n,i);else{var c={};c[e]={},c[e][n]=i,u.attr(c)}}var r=s;fe.exports=r},vZ6x:function(fe,z,y){var D=y("Tghj"),N=D.__DEV__,L=y("bYtY"),E=y("IwbS"),I=y("4NO4"),o=y("9KIM"),m=L.each,f=L.indexOf,s=L.curry,t=["dataToPoint","pointToData"],l=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function a(b,w,S){var T=this._targetInfoList=[],C={},O=e(w,b);m(n,function(_,M){(!S||!S.include||f(S.include,M)>=0)&&_(O,T,C)})}var r=a.prototype;r.setOutputRanges=function(b,w){this.matchOutputRanges(b,w,function(S,T,C){if((S.coordRanges||(S.coordRanges=[])).push(T),!S.coordRange){S.coordRange=T;var O=d[S.brushType](0,C,T);S.__rangeOffset={offset:p[S.brushType](O.values,S.range,[1,1]),xyMinMax:O.xyMinMax}}})},r.matchOutputRanges=function(b,w,S){m(b,function(T){var C=this.findTargetInfo(T,w);C&&C!==!0&&L.each(C.coordSyses,function(O){var _=d[T.brushType](1,O,T.range);S(T,_.values,O,w)})},this)},r.setInputRanges=function(b,w){m(b,function(S){var T=this.findTargetInfo(S,w);if(S.range=S.range||[],T&&T!==!0){S.panelId=T.panelId;var C=d[S.brushType](0,T.coordSys,S.coordRange),O=S.__rangeOffset;S.range=O?p[S.brushType](C.values,O.offset,v(C.xyMinMax,O.xyMinMax)):C.values}},this)},r.makePanelOpts=function(b,w){return L.map(this._targetInfoList,function(S){var T=S.getPanelRect();return{panelId:S.panelId,defaultBrushType:w&&w(S),clipPath:o.makeRectPanelClipPath(T),isTargetByCursor:o.makeRectIsTargetByCursor(T,b,S.coordSysModel),getLinearBrushOtherExtent:o.makeLinearBrushOtherExtent(T)}})},r.controlSeries=function(b,w,S){var T=this.findTargetInfo(b,S);return T===!0||T&&f(T.coordSyses,w.coordinateSystem)>=0},r.findTargetInfo=function(b,w){for(var S=this._targetInfoList,T=e(w,b),C=0;C<S.length;C++){var O=S[C],_=b.panelId;if(_){if(O.panelId===_)return O}else for(var C=0;C<i.length;C++)if(i[C](T,O))return O}return!0};function u(b){return b[0]>b[1]&&b.reverse(),b}function e(b,w){return I.parseFinder(b,w,{includeMainTypes:l})}var n={grid:function(b,w){var S=b.xAxisModels,T=b.yAxisModels,C=b.gridModels,O=L.createHashMap(),_={},M={};if(!S&&!T&&!C)return;m(S,function(k){var R=k.axis.grid.model;O.set(R.id,R),_[R.id]=!0}),m(T,function(k){var R=k.axis.grid.model;O.set(R.id,R),M[R.id]=!0}),m(C,function(k){O.set(k.id,k),_[k.id]=!0,M[k.id]=!0}),O.each(function(k){var R=k.coordinateSystem,B=[];m(R.getCartesians(),function(P,U){(f(S,P.getAxis("x").model)>=0||f(T,P.getAxis("y").model)>=0)&&B.push(P)}),w.push({panelId:"grid--"+k.id,gridModel:k,coordSysModel:k,coordSys:B[0],coordSyses:B,getPanelRect:c.grid,xAxisDeclared:_[k.id],yAxisDeclared:M[k.id]})})},geo:function(b,w){m(b.geoModels,function(S){var T=S.coordinateSystem;w.push({panelId:"geo--"+S.id,geoModel:S,coordSysModel:S,coordSys:T,coordSyses:[T],getPanelRect:c.geo})})}},i=[function(b,w){var S=b.xAxisModel,T=b.yAxisModel,C=b.gridModel;return!C&&S&&(C=S.axis.grid.model),!C&&T&&(C=T.axis.grid.model),C&&C===w.gridModel},function(b,w){var S=b.geoModel;return S&&S===w.geoModel}],c={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var b=this.coordSys,w=b.getBoundingRect().clone();return w.applyTransform(E.getTransform(b)),w}},d={lineX:s(h,0),lineY:s(h,1),rect:function(b,w,S){var T=w[t[b]]([S[0][0],S[1][0]]),C=w[t[b]]([S[0][1],S[1][1]]),O=[u([T[0],C[0]]),u([T[1],C[1]])];return{values:O,xyMinMax:O}},polygon:function(b,w,S){var T=[[Infinity,-Infinity],[Infinity,-Infinity]],C=L.map(S,function(O){var _=w[t[b]](O);return T[0][0]=Math.min(T[0][0],_[0]),T[1][0]=Math.min(T[1][0],_[1]),T[0][1]=Math.max(T[0][1],_[0]),T[1][1]=Math.max(T[1][1],_[1]),_});return{values:C,xyMinMax:T}}};function h(b,w,S,T){var C=S.getAxis(["x","y"][b]),O=u(L.map([0,1],function(M){return w?C.coordToData(C.toLocalCoord(T[M])):C.toGlobalCoord(C.dataToCoord(T[M]))})),_=[];return _[b]=O,_[1-b]=[NaN,NaN],{values:O,xyMinMax:_}}var p={lineX:s(g,0),lineY:s(g,1),rect:function(b,w,S){return[[b[0][0]-S[0]*w[0][0],b[0][1]-S[0]*w[0][1]],[b[1][0]-S[1]*w[1][0],b[1][1]-S[1]*w[1][1]]]},polygon:function(b,w,S){return L.map(b,function(T,C){return[T[0]-S[0]*w[C][0],T[1]-S[1]*w[C][1]]})}};function g(b,w,S,T){return[w[0]-T[b]*S[0],w[1]-T[b]*S[1]]}function v(b,w){var S=A(b),T=A(w),C=[S[0]/T[0],S[1]/T[1]];return isNaN(C[0])&&(C[0]=1),isNaN(C[1])&&(C[1]=1),C}function A(b){return b?[b[0][1]-b[0][0],b[1][1]-b[1][0]]:[NaN,NaN]}var x=a;fe.exports=x},vZI5:function(fe,z,y){var D=y("bYtY"),N=y("T4UG"),L=y("5GhG"),E=L.seriesModelMixin,I=N.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(m,f,s){var t=f.getItemLayout(m);return t&&s.rect(t.brushRect)}});D.mixin(I,E,!0);var o=I;fe.exports=o},vafp:function(fe,z,y){var D=y("bYtY"),N=y("8nly");function L(o){if(!o.UTF8Encoding)return o;var m=o.UTF8Scale;m==null&&(m=1024);for(var f=o.features,s=0;s<f.length;s++)for(var t=f[s],l=t.geometry,a=l.coordinates,r=l.encodeOffsets,u=0;u<a.length;u++){var e=a[u];if(l.type==="Polygon")a[u]=E(e,r[u],m);else if(l.type==="MultiPolygon")for(var n=0;n<e.length;n++){var i=e[n];e[n]=E(i,r[u][n],m)}}return o.UTF8Encoding=!1,o}function E(o,m,f){for(var s=[],t=m[0],l=m[1],a=0;a<o.length;a+=2){var r=o.charCodeAt(a)-64,u=o.charCodeAt(a+1)-64;r=r>>1^-(r&1),u=u>>1^-(u&1),r+=t,u+=l,t=r,l=u,s.push([r/f,u/f])}return s}function I(o,m){return L(o),D.map(D.filter(o.features,function(f){return f.geometry&&f.properties&&f.geometry.coordinates.length>0}),function(f){var s=f.properties,t=f.geometry,l=t.coordinates,a=[];t.type==="Polygon"&&a.push({type:"polygon",exterior:l[0],interiors:l.slice(1)}),t.type==="MultiPolygon"&&D.each(l,function(u){u[0]&&a.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})});var r=new N(s[m||"name"],a,s.cp);return r.properties=s,r})}fe.exports=I},vcCh:function(fe,z,y){var D=y("ProS");y("0qV/"),D.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(N,L){L.eachComponent({mainType:"series",subType:"sankey",query:N},function(E){E.setNodePosition(N.dataIndex,[N.localX,N.localY])})})},vewr:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.getPointerEvent=D,z.stopEvent=N,z.setCapture=f,z.releaseCapture=s;function D(t){return t.changedTouches?t.changedTouches[0]:t.touches?t.touches[0]:t}function N(t){t.stopPropagation(),t.preventDefault()}var L=!1,E=null;document.captureElement=null;function I(t){if(L)return;var l=new t.constructor(t.type,t);L=!0,document.captureElement?document.captureElement.dispatchEvent(l):E.dispatchEvent(l),L=!1,t.stopPropagation(),l.defaultPrevented&&t.preventDefault(),t.type==="mouseup"&&s()}function o(){var t=document.getElementById("noVNC_mouse_capture_elem");t.style.cursor=window.getComputedStyle(document.captureElement).cursor}var m=new MutationObserver(o);function f(t){if(t.setCapture)t.setCapture(),document.captureElement=t,t.addEventListener("mouseup",s);else{s();var l=document.getElementById("noVNC_mouse_capture_elem");l===null&&(l=document.createElement("div"),l.id="noVNC_mouse_capture_elem",l.style.position="fixed",l.style.top="0px",l.style.left="0px",l.style.width="100%",l.style.height="100%",l.style.zIndex=1e4,l.style.display="none",document.body.appendChild(l),l.addEventListener("contextmenu",I),l.addEventListener("mousemove",I),l.addEventListener("mouseup",I)),document.captureElement=t,m.observe(t,{attributes:!0}),o(),l.style.display="",window.addEventListener("mousemove",I),window.addEventListener("mouseup",I)}}function s(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;E=document.captureElement,document.captureElement=null,m.disconnect();var t=document.getElementById("noVNC_mouse_capture_elem");t.style.display="none",window.removeEventListener("mousemove",I),window.removeEventListener("mouseup",I)}}},vg9a:function(fe,z,y){},"vk+C":function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("RZPm"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},w4Tj:function(fe,z,y){"use strict";y.d(z,"a",function(){return L});var D=y("oZsa");function N(E,I){for(;!Object.prototype.hasOwnProperty.call(E,I)&&!(E=Object(D.a)(E),E===null););return E}function L(E,I,o){return typeof Reflect!="undefined"&&Reflect.get?L=Reflect.get:L=function(f,s,t){var l=N(f,s);if(!l)return;var a=Object.getOwnPropertyDescriptor(l,s);return a.get?a.get.call(t):a.value},L(E,I,o||E)}},w5pM:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="PlusCircleOutlined";var m=z.a=N.forwardRef(o)},w6Tc:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("apAg"));function N(E){return E&&E.__esModule?E:{default:E}}var L=D;z.default=L,fe.exports=L},w7YG:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.StreamCipher,I=N.algo,o=I.RC4=E.extend({_doReset:function(){for(var t=this._key,l=t.words,a=t.sigBytes,r=this._S=[],u=0;u<256;u++)r[u]=u;for(var u=0,e=0;u<256;u++){var n=u%a,i=l[n>>>2]>>>24-n%4*8&255;e=(e+r[u]+i)%256;var c=r[u];r[u]=r[e],r[e]=c}this._i=this._j=0},_doProcessBlock:function(t,l){t[l]^=m.call(this)},keySize:256/32,ivSize:0});function m(){for(var s=this._S,t=this._i,l=this._j,a=0,r=0;r<4;r++){t=(t+1)%256,l=(l+s[t])%256;var u=s[t];s[t]=s[l],s[l]=u,a|=s[(s[t]+s[l])%256]<<24-r*8}return this._i=t,this._j=l,a}N.RC4=E._createHelper(o);var f=I.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)m.call(this)}});N.RC4Drop=E._createHelper(f)}(),D.RC4})},wCAj:function(fe,z,y){"use strict";var D=y("cDf5"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("J4zp"),o=y.n(I),m=y("pVnL"),f=y.n(m),s=y("q1tI"),t=y("TSYQ"),l=y.n(t),a=y("BGR+"),r=y("rePB"),u=y("VTBJ"),e=y("KQm4"),n=y("U8pU"),i=y("ODXe"),c=y("Gytx"),d=y.n(c),h=y("Kwbf"),p=y("t23M"),g=y("qx4F");function v(Vt){return null}var A=v;function x(Vt){return null}var b=x,w=y("Ff2n"),S=y("c+Xe"),T="RC_TABLE_KEY";function C(Vt){return Vt==null?[]:Array.isArray(Vt)?Vt:[Vt]}function O(Vt,Xr){if(!Xr&&typeof Xr!="number")return Vt;for(var nn=C(Xr),fn=Vt,Ze=0;Ze<nn.length;Ze+=1){if(!fn)return null;var Lt=nn[Ze];fn=fn[Lt]}return fn}function _(Vt){var Xr=[],nn={};return Vt.forEach(function(fn){for(var Ze=fn||{},Lt=Ze.key,cr=Ze.dataIndex,lr=Lt||C(cr).join("-")||T;nn[lr];)lr="".concat(lr,"_next");nn[lr]=!0,Xr.push(lr)}),Xr}function M(){var Vt={};function Xr(Lt,cr){cr&&Object.keys(cr).forEach(function(lr){var _r=cr[lr];_r&&Object(n.a)(_r)==="object"?(Lt[lr]=Lt[lr]||{},Xr(Lt[lr],_r)):Lt[lr]=_r})}for(var nn=arguments.length,fn=new Array(nn),Ze=0;Ze<nn;Ze++)fn[Ze]=arguments[Ze];return fn.forEach(function(Lt){Xr(Vt,Lt)}),Vt}function k(Vt){return Vt!=null}function R(Vt){return Vt&&Object(n.a)(Vt)==="object"&&!Array.isArray(Vt)&&!s.isValidElement(Vt)}function B(Vt){return typeof Vt=="string"?!0:Object(S.c)(Vt)}function P(Vt,Xr){var nn,fn=Vt.prefixCls,Ze=Vt.className,Lt=Vt.record,cr=Vt.index,lr=Vt.dataIndex,_r=Vt.render,Rr=Vt.children,Wr=Vt.component,on=Wr===void 0?"td":Wr,En=Vt.colSpan,An=Vt.rowSpan,Rn=Vt.fixLeft,Un=Vt.fixRight,wn=Vt.firstFixLeft,_n=Vt.lastFixLeft,Cn=Vt.firstFixRight,Kn=Vt.lastFixRight,Yn=Vt.appendNode,ni=Vt.additionalProps,yi=ni===void 0?{}:ni,li=Vt.ellipsis,Oi=Vt.align,ki=Vt.rowType,Si=Vt.isSticky,mi="".concat(fn,"-cell"),Li,Wn;if(Rr)Wn=Rr;else{var Di=O(Lt,lr);if(Wn=Di,_r){var zi=_r(Di,Lt,cr);R(zi)?(Wn=zi.children,Li=zi.props):Wn=zi}}Object(n.a)(Wn)==="object"&&!Array.isArray(Wn)&&!s.isValidElement(Wn)&&(Wn=null),li&&(_n||Cn)&&(Wn=s.createElement("span",{className:"".concat(mi,"-content")},Wn));var yr=Li||{},Mr=yr.colSpan,Qr=yr.rowSpan,Ir=yr.style,Gt=yr.className,Sr=Object(w.a)(yr,["colSpan","rowSpan","style","className"]),Zt=Mr!==void 0?Mr:En,jr=Qr!==void 0?Qr:An;if(Zt===0||jr===0)return null;var Kr={},pn=typeof Rn=="number",sn=typeof Un=="number";pn&&(Kr.position="sticky",Kr.left=Rn),sn&&(Kr.position="sticky",Kr.right=Un);var yn={};Oi&&(yn.textAlign=Oi);var Fn,Xn=li===!0?{showTitle:!0}:li;Xn&&(Xn.showTitle||ki==="header")&&(typeof Wn=="string"||typeof Wn=="number"?Fn=Wn.toString():s.isValidElement(Wn)&&typeof Wn.props.children=="string"&&(Fn=Wn.props.children));var Jn=Object(u.a)(Object(u.a)(Object(u.a)({title:Fn},Sr),yi),{},{colSpan:Zt&&Zt!==1?Zt:null,rowSpan:jr&&jr!==1?jr:null,className:l()(mi,Ze,(nn={},Object(r.a)(nn,"".concat(mi,"-fix-left"),pn),Object(r.a)(nn,"".concat(mi,"-fix-left-first"),wn),Object(r.a)(nn,"".concat(mi,"-fix-left-last"),_n),Object(r.a)(nn,"".concat(mi,"-fix-right"),sn),Object(r.a)(nn,"".concat(mi,"-fix-right-first"),Cn),Object(r.a)(nn,"".concat(mi,"-fix-right-last"),Kn),Object(r.a)(nn,"".concat(mi,"-ellipsis"),li),Object(r.a)(nn,"".concat(mi,"-with-append"),Yn),Object(r.a)(nn,"".concat(mi,"-fix-sticky"),(pn||sn)&&Si),nn),yi.className,Gt),style:Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},yi.style),yn),Kr),Ir),ref:B(on)?Xr:null});return s.createElement(on,Object.assign({},Jn),Yn,Wn)}var U=s.forwardRef(P);U.displayName="Cell";var j=s.memo(U,function(Vt,Xr){return Xr.shouldCellUpdate?!Xr.shouldCellUpdate(Xr.record,Vt.record):!1}),H=j,W=s.createContext(null),G=W;function V(Vt,Xr,nn,fn,Ze){var Lt=nn[Vt]||{},cr=nn[Xr]||{},lr,_r;Lt.fixed==="left"?lr=fn.left[Vt]:cr.fixed==="right"&&(_r=fn.right[Xr]);var Rr=!1,Wr=!1,on=!1,En=!1,An=nn[Xr+1],Rn=nn[Vt-1];if(Ze==="rtl"){if(lr!==void 0){var Un=Rn&&Rn.fixed==="left";En=!Un}else if(_r!==void 0){var wn=An&&An.fixed==="right";on=!wn}}else if(lr!==void 0){var _n=An&&An.fixed==="left";Rr=!_n}else if(_r!==void 0){var Cn=Rn&&Rn.fixed==="right";Wr=!Cn}return{fixLeft:lr,fixRight:_r,lastFixLeft:Rr,firstFixRight:Wr,lastFixRight:on,firstFixLeft:En,isSticky:fn.isSticky}}function Z(Vt){var Xr=Vt.cells,nn=Vt.stickyOffsets,fn=Vt.flattenColumns,Ze=Vt.rowComponent,Lt=Vt.cellComponent,cr=Vt.onHeaderRow,lr=Vt.index,_r=s.useContext(G),Rr=_r.prefixCls,Wr=_r.direction,on;cr&&(on=cr(Xr.map(function(An){return An.column}),lr));var En=_(Xr.map(function(An){return An.column}));return s.createElement(Ze,Object.assign({},on),Xr.map(function(An,Rn){var Un=An.column,wn=V(An.colStart,An.colEnd,fn,nn,Wr),_n;return Un&&Un.onHeaderCell&&(_n=An.column.onHeaderCell(Un)),s.createElement(H,Object.assign({},An,{ellipsis:Un.ellipsis,align:Un.align,component:Lt,prefixCls:Rr,key:En[Rn]},wn,{additionalProps:_n,rowType:"header"}))}))}Z.displayName="HeaderRow";var Y=Z;function Q(Vt){var Xr=[];function nn(cr,lr){var _r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Xr[_r]=Xr[_r]||[];var Rr=lr,Wr=cr.filter(Boolean).map(function(on){var En={key:on.key,className:on.className||"",children:on.title,column:on,colStart:Rr},An=1,Rn=on.children;return Rn&&Rn.length>0&&(An=nn(Rn,Rr,_r+1).reduce(function(Un,wn){return Un+wn},0),En.hasSubColumns=!0),"colSpan"in on&&(An=on.colSpan),"rowSpan"in on&&(En.rowSpan=on.rowSpan),En.colSpan=An,En.colEnd=En.colStart+An-1,Xr[_r].push(En),Rr+=An,An});return Wr}nn(Vt,0);for(var fn=Xr.length,Ze=function(lr){Xr[lr].forEach(function(_r){!("rowSpan"in _r)&&!_r.hasSubColumns&&(_r.rowSpan=fn-lr)})},Lt=0;Lt<fn;Lt+=1)Ze(Lt);return Xr}function oe(Vt){var Xr=Vt.stickyOffsets,nn=Vt.columns,fn=Vt.flattenColumns,Ze=Vt.onHeaderRow,Lt=s.useContext(G),cr=Lt.prefixCls,lr=Lt.getComponent,_r=s.useMemo(function(){return Q(nn)},[nn]),Rr=lr(["header","wrapper"],"thead"),Wr=lr(["header","row"],"tr"),on=lr(["header","cell"],"th");return s.createElement(Rr,{className:"".concat(cr,"-thead")},_r.map(function(En,An){var Rn=s.createElement(Y,{key:An,flattenColumns:fn,cells:En,stickyOffsets:Xr,rowComponent:Wr,cellComponent:on,onHeaderRow:Ze,index:An});return Rn}))}var ue=oe,Le="RC_TABLE_INTERNAL_COL_DEFINE";function me(Vt){var Xr=Vt.expandable,nn=Object(w.a)(Vt,["expandable"]);return"expandable"in Vt?Object(u.a)(Object(u.a)({},nn),Xr):nn}function Ie(Vt){return Object.keys(Vt).reduce(function(Xr,nn){return(nn.substr(0,5)==="data-"||nn.substr(0,5)==="aria-")&&(Xr[nn]=Vt[nn]),Xr},{})}function X(Vt){for(var Xr=Vt.colWidths,nn=Vt.columns,fn=Vt.columCount,Ze=[],Lt=fn||nn.length,cr=!1,lr=Lt-1;lr>=0;lr-=1){var _r=Xr[lr],Rr=nn&&nn[lr],Wr=Rr&&Rr[Le];(_r||Wr||cr)&&(Ze.unshift(s.createElement("col",Object.assign({key:lr,style:{width:_r,minWidth:_r}},Wr))),cr=!0)}return s.createElement("colgroup",null,Ze)}var q=X;function We(Vt,Xr){return Object(s.useMemo)(function(){for(var nn=[],fn=0;fn<Xr;fn+=1){var Ze=Vt[fn];if(Ze!==void 0)nn[fn]=Ze;else return null}return nn},[Vt.join("_"),Xr])}var $=s.forwardRef(function(Vt,Xr){var nn=Vt.noData,fn=Vt.columns,Ze=Vt.flattenColumns,Lt=Vt.colWidths,cr=Vt.columCount,lr=Vt.stickyOffsets,_r=Vt.direction,Rr=Vt.fixHeader,Wr=Vt.offsetHeader,on=Vt.stickyClassName,En=Vt.onScroll,An=Object(w.a)(Vt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Rn=s.useContext(G),Un=Rn.prefixCls,wn=Rn.scrollbarSize,_n=Rn.isSticky,Cn=_n&&!Rr?0:wn,Kn=s.useRef(null),Yn=s.useCallback(function(mi){Object(S.b)(Xr,mi),Object(S.b)(Kn,mi)},[]);s.useEffect(function(){var mi;function Li(Wn){var Di=Wn.currentTarget,zi=Wn.deltaX;zi&&(En({currentTarget:Di,scrollLeft:Di.scrollLeft+zi}),Wn.preventDefault())}return(mi=Kn.current)===null||mi===void 0||mi.addEventListener("wheel",Li),function(){var Wn;(Wn=Kn.current)===null||Wn===void 0||Wn.removeEventListener("wheel",Li)}},[]);var ni=Ze[Ze.length-1],yi={fixed:ni?ni.fixed:null,onHeaderCell:function(){return{className:"".concat(Un,"-cell-scrollbar")}}},li=Object(s.useMemo)(function(){return Cn?[].concat(Object(e.a)(fn),[yi]):fn},[Cn,fn]),Oi=Object(s.useMemo)(function(){return Cn?[].concat(Object(e.a)(Ze),[yi]):Ze},[Cn,Ze]),ki=Object(s.useMemo)(function(){var mi=lr.right,Li=lr.left;return Object(u.a)(Object(u.a)({},lr),{},{left:_r==="rtl"?[].concat(Object(e.a)(Li.map(function(Wn){return Wn+Cn})),[0]):Li,right:_r==="rtl"?mi:[].concat(Object(e.a)(mi.map(function(Wn){return Wn+Cn})),[0]),isSticky:_n})},[Cn,lr,_n]),Si=We(Lt,cr);return s.createElement("div",{style:Object(u.a)({overflow:"hidden"},_n?{top:Wr}:{}),ref:Yn,className:l()("".concat(Un,"-header"),Object(r.a)({},on,!!on))},s.createElement("table",{style:{tableLayout:"fixed",visibility:nn||Si?null:"hidden"}},s.createElement(q,{colWidths:Si?[].concat(Object(e.a)(Si),[Cn]):[],columCount:cr+1,columns:Oi}),s.createElement(ue,Object.assign({},An,{stickyOffsets:ki,columns:li,flattenColumns:Oi}))))});$.displayName="FixedHeader";var J=$,le=s.createContext(null),de=le;function Ne(Vt){var Xr=Vt.prefixCls,nn=Vt.children,fn=Vt.component,Ze=Vt.cellComponent,Lt=Vt.fixHeader,cr=Vt.fixColumn,lr=Vt.horizonScroll,_r=Vt.className,Rr=Vt.expanded,Wr=Vt.componentWidth,on=Vt.colSpan,En=s.useContext(G),An=En.scrollbarSize;return s.useMemo(function(){var Rn=nn;return cr&&(Rn=s.createElement("div",{style:{width:Wr-(Lt?An:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Xr,"-expanded-row-fixed")},Rn)),s.createElement(fn,{className:_r,style:{display:Rr?null:"none"}},s.createElement(H,{component:Ze,prefixCls:Xr,colSpan:on},Rn))},[nn,fn,Lt,lr,_r,Rr,Wr,on,An])}var we=Ne;function De(Vt){var Xr=Vt.className,nn=Vt.style,fn=Vt.record,Ze=Vt.index,Lt=Vt.rowKey,cr=Vt.getRowKey,lr=Vt.rowExpandable,_r=Vt.expandedKeys,Rr=Vt.onRow,Wr=Vt.indent,on=Wr===void 0?0:Wr,En=Vt.rowComponent,An=Vt.cellComponent,Rn=Vt.childrenColumnName,Un=s.useContext(G),wn=Un.prefixCls,_n=Un.fixedInfoList,Cn=s.useContext(de),Kn=Cn.fixHeader,Yn=Cn.fixColumn,ni=Cn.horizonScroll,yi=Cn.componentWidth,li=Cn.flattenColumns,Oi=Cn.expandableType,ki=Cn.expandRowByClick,Si=Cn.onTriggerExpand,mi=Cn.rowClassName,Li=Cn.expandedRowClassName,Wn=Cn.indentSize,Di=Cn.expandIcon,zi=Cn.expandedRowRender,yr=Cn.expandIconColumnIndex,Mr=s.useState(!1),Qr=Object(i.a)(Mr,2),Ir=Qr[0],Gt=Qr[1],Sr=_r&&_r.has(Vt.recordKey);s.useEffect(function(){Sr&&Gt(!0)},[Sr]);var Zt=Oi==="row"&&(!lr||lr(fn)),jr=Oi==="nest",Kr=Rn&&fn&&fn[Rn],pn=Zt||jr,sn;Rr&&(sn=Rr(fn,Ze));var yn=function(ma){if(ki&&pn&&Si(fn,ma),sn&&sn.onClick){for(var Ui,Ni=arguments.length,ra=new Array(Ni>1?Ni-1:0),qi=1;qi<Ni;qi++)ra[qi-1]=arguments[qi];(Ui=sn).onClick.apply(Ui,[ma].concat(ra))}},Fn;typeof mi=="string"?Fn=mi:typeof mi=="function"&&(Fn=mi(fn,Ze,on));var Xn=_(li),Jn=s.createElement(En,Object.assign({},sn,{"data-row-key":Lt,className:l()(Xr,"".concat(wn,"-row"),"".concat(wn,"-row-level-").concat(on),Fn,sn&&sn.className),style:Object(u.a)(Object(u.a)({},nn),sn?sn.style:null),onClick:yn}),li.map(function(ca,ma){var Ui=ca.render,Ni=ca.dataIndex,ra=ca.className,qi=Xn[ma],Aa=_n[ma],Oa;ma===(yr||0)&&jr&&(Oa=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(Wn*on,"px")},className:"".concat(wn,"-row-indent indent-level-").concat(on)}),Di({prefixCls:wn,expanded:Sr,expandable:Kr,record:fn,onExpand:Si})));var Zi;return ca.onCell&&(Zi=ca.onCell(fn,Ze)),s.createElement(H,Object.assign({className:ra,ellipsis:ca.ellipsis,align:ca.align,component:An,prefixCls:wn,key:qi,record:fn,index:Ze,dataIndex:Ni,render:Ui,shouldCellUpdate:ca.shouldCellUpdate},Aa,{appendNode:Oa,additionalProps:Zi}))})),Ti;if(Zt&&(Ir||Sr)){var ta=zi(fn,Ze,on+1,Sr),oa=Li&&Li(fn,Ze,on);Ti=s.createElement(we,{expanded:Sr,className:l()("".concat(wn,"-expanded-row"),"".concat(wn,"-expanded-row-level-").concat(on+1),oa),prefixCls:wn,fixHeader:Kn,fixColumn:Yn,horizonScroll:ni,component:En,componentWidth:yi,cellComponent:An,colSpan:li.length},ta)}var da;return Kr&&Sr&&(da=(fn[Rn]||[]).map(function(ca,ma){var Ui=cr(ca,ma);return s.createElement(De,Object.assign({},Vt,{key:Ui,rowKey:Ui,record:ca,recordKey:Ui,index:ma,indent:on+1}))})),s.createElement(s.Fragment,null,Jn,Ti,da)}De.displayName="BodyRow";var Ee=De,ce=s.createContext(null),ne=ce;function ee(Vt){var Xr=Vt.columnKey,nn=Vt.onColumnResize,fn=s.useRef();return s.useEffect(function(){fn.current&&nn(Xr,fn.current.offsetWidth)},[]),s.createElement(p.a,{onResize:function(Lt){var cr=Lt.offsetWidth;nn(Xr,cr)}},s.createElement("td",{ref:fn,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ae(Vt){var Xr=Vt.data,nn=Vt.getRowKey,fn=Vt.measureColumnWidth,Ze=Vt.expandedKeys,Lt=Vt.onRow,cr=Vt.rowExpandable,lr=Vt.emptyNode,_r=Vt.childrenColumnName,Rr=s.useContext(ne),Wr=Rr.onColumnResize,on=s.useContext(G),En=on.prefixCls,An=on.getComponent,Rn=s.useContext(de),Un=Rn.fixHeader,wn=Rn.horizonScroll,_n=Rn.flattenColumns,Cn=Rn.componentWidth;return s.useMemo(function(){var Kn=An(["body","wrapper"],"tbody"),Yn=An(["body","row"],"tr"),ni=An(["body","cell"],"td"),yi;Xr.length?yi=Xr.map(function(Oi,ki){var Si=nn(Oi,ki);return s.createElement(Ee,{key:Si,rowKey:Si,record:Oi,recordKey:Si,index:ki,rowComponent:Yn,cellComponent:ni,expandedKeys:Ze,onRow:Lt,getRowKey:nn,rowExpandable:cr,childrenColumnName:_r})}):yi=s.createElement(we,{expanded:!0,className:"".concat(En,"-placeholder"),prefixCls:En,fixHeader:Un,fixColumn:wn,horizonScroll:wn,component:Yn,componentWidth:Cn,cellComponent:ni,colSpan:_n.length},lr);var li=_(_n);return s.createElement(Kn,{className:"".concat(En,"-tbody")},fn&&s.createElement("tr",{"aria-hidden":"true",className:"".concat(En,"-measure-row"),style:{height:0}},li.map(function(Oi){return s.createElement(ee,{key:Oi,columnKey:Oi,onColumnResize:Wr})})),yi)},[Xr,En,Lt,fn,Ze,nn,An,Cn,lr,_n])}var Ve=s.memo(Ae);Ve.displayName="Body";var Ke=Ve,Oe=y("Zm9Q");function it(Vt){return Object(Oe.a)(Vt).filter(function(Xr){return s.isValidElement(Xr)}).map(function(Xr){var nn=Xr.key,fn=Xr.props,Ze=fn.children,Lt=Object(w.a)(fn,["children"]),cr=Object(u.a)({key:nn},Lt);return Ze&&(cr.children=it(Ze)),cr})}function Fe(Vt){return Vt.reduce(function(Xr,nn){var fn=nn.fixed,Ze=fn===!0?"left":fn,Lt=nn.children;return Lt&&Lt.length>0?[].concat(Object(e.a)(Xr),Object(e.a)(Fe(Lt).map(function(cr){return Object(u.a)({fixed:Ze},cr)}))):[].concat(Object(e.a)(Xr),[Object(u.a)(Object(u.a)({},nn),{},{fixed:Ze})])},[])}function ft(Vt){for(var Xr=!0,nn=0;nn<Vt.length;nn+=1){var fn=Vt[nn];if(Xr&&fn.fixed!=="left")Xr=!1;else if(!Xr&&fn.fixed==="left"){Object(h.a)(!1,"Index ".concat(nn-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ze=!0,Lt=Vt.length-1;Lt>=0;Lt-=1){var cr=Vt[Lt];if(Ze&&cr.fixed!=="right")Ze=!1;else if(!Ze&&cr.fixed==="right"){Object(h.a)(!1,"Index ".concat(Lt+1," of `columns` missing `fixed='right'` prop."));break}}}function At(Vt){return Vt.map(function(Xr){var nn=Xr.fixed,fn=Object(w.a)(Xr,["fixed"]),Ze=nn;return nn==="left"?Ze="right":nn==="right"&&(Ze="left"),Object(u.a)({fixed:Ze},fn)})}function bt(Vt,Xr){var nn=Vt.prefixCls,fn=Vt.columns,Ze=Vt.children,Lt=Vt.expandable,cr=Vt.expandedKeys,lr=Vt.getRowKey,_r=Vt.onTriggerExpand,Rr=Vt.expandIcon,Wr=Vt.rowExpandable,on=Vt.expandIconColumnIndex,En=Vt.direction,An=Vt.expandRowByClick,Rn=s.useMemo(function(){return fn||it(Ze)},[fn,Ze]),Un=s.useMemo(function(){if(Lt){var Cn,Kn=on||0,Yn=Rn[Kn],ni=(Cn={},Object(r.a)(Cn,Le,{className:"".concat(nn,"-expand-icon-col")}),Object(r.a)(Cn,"title",""),Object(r.a)(Cn,"fixed",Yn?Yn.fixed:null),Object(r.a)(Cn,"className","".concat(nn,"-row-expand-icon-cell")),Object(r.a)(Cn,"render",function(Oi,ki,Si){var mi=lr(ki,Si),Li=cr.has(mi),Wn=Wr?Wr(ki):!0,Di=Rr({prefixCls:nn,expanded:Li,expandable:Wn,record:ki,onExpand:_r});return An?s.createElement("span",{onClick:function(yr){return yr.stopPropagation()}},Di):Di}),Cn),yi=Rn.slice();return Kn>=0&&yi.splice(Kn,0,ni),yi}return Rn},[Lt,Rn,lr,cr,Rr,En]),wn=s.useMemo(function(){var Cn=Un;return Xr&&(Cn=Xr(Cn)),Cn.length||(Cn=[{render:function(){return null}}]),Cn},[Xr,Un,En]),_n=s.useMemo(function(){return En==="rtl"?At(Fe(wn)):Fe(wn)},[wn,En]);return[wn,_n]}var St=bt,Et=y("xEkU"),je=y.n(Et);function pe(Vt){var Xr=Object(s.useRef)(Vt),nn=Object(s.useState)({}),fn=Object(i.a)(nn,2),Ze=fn[1],Lt=Object(s.useRef)(null),cr=Object(s.useRef)([]);function lr(_r){Lt.current===null&&(cr.current=[],Lt.current=je()(function(){cr.current.forEach(function(Rr){Xr.current=Rr(Xr.current)}),Lt.current=null,Ze({})})),cr.current.push(_r)}return Object(s.useEffect)(function(){return function(){je.a.cancel(Lt.current)}},[]),[Xr.current,lr]}function ie(Vt){var Xr=Object(s.useRef)(Vt),nn=Object(s.useRef)(null);function fn(){window.clearTimeout(nn.current)}function Ze(cr){Xr.current=cr,fn(),nn.current=window.setTimeout(function(){Xr.current=null,nn.current=null},100)}function Lt(){return Xr.current}return Object(s.useEffect)(function(){return fn},[]),[Ze,Lt]}function st(Vt,Xr,nn){var fn=Object(s.useMemo)(function(){for(var Ze=[],Lt=[],cr=0,lr=0,_r=0;_r<Xr;_r+=1)if(nn==="rtl"){Lt[_r]=lr,lr+=Vt[_r]||0;var Rr=Xr-_r-1;Ze[Rr]=cr,cr+=Vt[Rr]||0}else{Ze[_r]=cr,cr+=Vt[_r]||0;var Wr=Xr-_r-1;Lt[Wr]=lr,lr+=Vt[Wr]||0}return{left:Ze,right:Lt}},[Vt,Xr,nn]);return fn}var Qe=st;function ve(Vt){var Xr=Vt.className,nn=Vt.children;return s.createElement("div",{className:Xr},nn)}var Bt=ve;function qt(Vt){var Xr=Vt.className,nn=Vt.index,fn=Vt.children,Ze=Vt.colSpan,Lt=Vt.rowSpan,cr=s.useContext(G),lr=cr.prefixCls,_r=cr.fixedInfoList,Rr=_r[nn];return s.createElement(H,Object.assign({className:Xr,index:nn,component:"td",prefixCls:lr,record:null,dataIndex:null,render:function(){return{children:fn,props:{colSpan:Ze,rowSpan:Lt}}}},Rr))}function ct(Vt){return s.createElement("tr",Object.assign({},Vt))}function Wt(Vt){var Xr=Vt.children,nn=s.useContext(G),fn=nn.prefixCls;return s.createElement("tfoot",{className:"".concat(fn,"-summary")},Xr)}var or=Wt,Fr={Cell:qt,Row:ct};function er(Vt){var Xr,nn=Vt.prefixCls,fn=Vt.record,Ze=Vt.onExpand,Lt=Vt.expanded,cr=Vt.expandable,lr="".concat(nn,"-row-expand-icon");if(!cr)return s.createElement("span",{className:l()(lr,"".concat(nn,"-row-spaced"))});var _r=function(Wr){Ze(fn,Wr),Wr.stopPropagation()};return s.createElement("span",{className:l()(lr,(Xr={},Object(r.a)(Xr,"".concat(nn,"-row-expanded"),Lt),Object(r.a)(Xr,"".concat(nn,"-row-collapsed"),!Lt),Xr)),onClick:_r})}function nr(Vt,Xr,nn){var fn=[];function Ze(Lt){(Lt||[]).forEach(function(cr,lr){fn.push(Xr(cr,lr)),Ze(cr[nn])})}return Ze(Vt),fn}var Ot=y("zT1h"),lt=y("y0+3"),qe=function(Xr,nn){var fn,Ze,Lt=Xr.scrollBodyRef,cr=Xr.onScroll,lr=Xr.offsetScroll,_r=s.useContext(G),Rr=_r.prefixCls,Wr=((fn=Lt.current)===null||fn===void 0?void 0:fn.scrollWidth)||0,on=((Ze=Lt.current)===null||Ze===void 0?void 0:Ze.clientWidth)||0,En=Wr&&on*(on/Wr),An=s.useRef(),Rn=pe({scrollLeft:0,isHiddenScrollBar:!1}),Un=Object(i.a)(Rn,2),wn=Un[0],_n=Un[1],Cn=s.useRef({delta:0,x:0}),Kn=s.useState(!1),Yn=Object(i.a)(Kn,2),ni=Yn[0],yi=Yn[1],li=function(){yi(!1)},Oi=function(Wn){Wn.persist(),Cn.current.delta=Wn.pageX-wn.scrollLeft,Cn.current.x=0,yi(!0),Wn.preventDefault()},ki=function(Wn){var Di,zi=Wn||((Di=window)===null||Di===void 0?void 0:Di.event),yr=zi.buttons;if(!ni||yr===0){ni&&yi(!1);return}var Mr=Cn.current.x+Wn.pageX-Cn.current.x-Cn.current.delta;Mr<=0&&(Mr=0),Mr+En>=on&&(Mr=on-En),cr({scrollLeft:Mr/on*(Wr+2)}),Cn.current.x=Wn.pageX},Si=function(){var Wn=Object(lt.b)(Lt.current).top,Di=Wn+Lt.current.offsetHeight,zi=document.documentElement.scrollTop+window.innerHeight;Di-Object(g.a)()<=zi||Wn>=zi-lr?_n(function(yr){return Object(u.a)(Object(u.a)({},yr),{},{isHiddenScrollBar:!0})}):_n(function(yr){return Object(u.a)(Object(u.a)({},yr),{},{isHiddenScrollBar:!1})})},mi=function(Wn){_n(function(Di){return Object(u.a)(Object(u.a)({},Di),{},{scrollLeft:Wn/Wr*on||0})})};return s.useImperativeHandle(nn,function(){return{setScrollLeft:mi}}),s.useEffect(function(){var Li=Object(Ot.a)(document.body,"mouseup",li,!1),Wn=Object(Ot.a)(document.body,"mousemove",ki,!1);return Si(),function(){Li.remove(),Wn.remove()}},[En,ni]),s.useEffect(function(){var Li=Object(Ot.a)(window,"scroll",Si,!1),Wn=Object(Ot.a)(window,"resize",Si,!1);return function(){Li.remove(),Wn.remove()}},[]),s.useEffect(function(){wn.isHiddenScrollBar||_n(function(Li){var Wn,Di;return Object(u.a)(Object(u.a)({},Li),{},{scrollLeft:Lt.current.scrollLeft/((Wn=Lt.current)===null||Wn===void 0?void 0:Wn.scrollWidth)*((Di=Lt.current)===null||Di===void 0?void 0:Di.clientWidth)})})},[wn.isHiddenScrollBar]),Wr<=on||!En||wn.isHiddenScrollBar?null:s.createElement("div",{style:{height:Object(g.a)(),width:on,bottom:lr},className:"".concat(Rr,"-sticky-scroll")},s.createElement("div",{onMouseDown:Oi,ref:An,className:l()("".concat(Rr,"-sticky-scroll-bar"),Object(r.a)({},"".concat(Rr,"-sticky-scroll-bar-active"),ni)),style:{width:"".concat(En,"px"),transform:"translate3d(".concat(wn.scrollLeft,"px, 0, 0)")}}))},tr=s.forwardRef(qe);function xr(Vt,Xr){return s.useMemo(function(){var nn=!!Vt;return{isSticky:nn,stickyClassName:nn?"".concat(Xr,"-sticky-header"):"",offsetHeader:Object(n.a)(Vt)==="object"&&Vt.offsetHeader||0,offsetScroll:Object(n.a)(Vt)==="object"&&Vt.offsetScroll||0}},[Vt,Xr])}var Ar=[],fr={},vn="rc-table-internal-hook",$r=s.memo(function(Vt){var Xr=Vt.children;return Xr},function(Vt,Xr){return d()(Vt.props,Xr.props)?Vt.pingLeft!==Xr.pingLeft||Vt.pingRight!==Xr.pingRight:!1});function Ln(Vt){var Xr,nn=Vt.prefixCls,fn=Vt.className,Ze=Vt.rowClassName,Lt=Vt.style,cr=Vt.data,lr=Vt.rowKey,_r=Vt.scroll,Rr=Vt.tableLayout,Wr=Vt.direction,on=Vt.title,En=Vt.footer,An=Vt.summary,Rn=Vt.id,Un=Vt.showHeader,wn=Vt.components,_n=Vt.emptyText,Cn=Vt.onRow,Kn=Vt.onHeaderRow,Yn=Vt.internalHooks,ni=Vt.transformColumns,yi=Vt.internalRefs,li=Vt.sticky,Oi=cr||Ar,ki=!!Oi.length,Si=s.useState(0),mi=Object(i.a)(Si,2),Li=mi[0],Wn=mi[1];s.useEffect(function(){Wn(Object(g.a)())});var Di=s.useMemo(function(){return M(wn,{})},[wn]),zi=s.useCallback(function(no,vo){return O(Di,no)||vo},[Di]),yr=s.useMemo(function(){return typeof lr=="function"?lr:function(no){var vo=no&&no[lr];return vo}},[lr]),Mr=me(Vt),Qr=Mr.expandIcon,Ir=Mr.expandedRowKeys,Gt=Mr.defaultExpandedRowKeys,Sr=Mr.defaultExpandAllRows,Zt=Mr.expandedRowRender,jr=Mr.onExpand,Kr=Mr.onExpandedRowsChange,pn=Mr.expandRowByClick,sn=Mr.rowExpandable,yn=Mr.expandIconColumnIndex,Fn=Mr.expandedRowClassName,Xn=Mr.childrenColumnName,Jn=Mr.indentSize,Ti=Qr||er,ta=Xn||"children",oa=s.useMemo(function(){return Zt?"row":Vt.expandable&&Yn===vn&&Vt.expandable.__PARENT_RENDER_ICON__||Oi.some(function(no){return no&&Object(n.a)(no)==="object"&&no[ta]})?"nest":!1},[!!Zt,Oi]),da=s.useState(function(){return Gt||(Sr?nr(Oi,yr,ta):[])}),ca=Object(i.a)(da,2),ma=ca[0],Ui=ca[1],Ni=s.useMemo(function(){return new Set(Ir||ma||[])},[Ir,ma]),ra=s.useCallback(function(no){var vo=yr(no,Oi.indexOf(no)),Fo,ns=Ni.has(vo);ns?(Ni.delete(vo),Fo=Object(e.a)(Ni)):Fo=[].concat(Object(e.a)(Ni),[vo]),Ui(Fo),jr&&jr(!ns,no),Kr&&Kr(Fo)},[yr,Ni,Oi,jr,Kr]),qi=s.useState(0),Aa=Object(i.a)(qi,2),Oa=Aa[0],Zi=Aa[1],Gi=St(Object(u.a)(Object(u.a)(Object(u.a)({},Vt),Mr),{},{expandable:!!Zt,expandedKeys:Ni,getRowKey:yr,onTriggerExpand:ra,expandIcon:Ti,expandIconColumnIndex:yn,direction:Wr}),Yn===vn?ni:null),La=Object(i.a)(Gi,2),va=La[0],Ci=La[1],Sa=s.useMemo(function(){return{columns:va,flattenColumns:Ci}},[va,Ci]),Da=s.useRef(),Na=s.useRef(),Ua=s.useRef(),Pa=s.useState(!1),za=Object(i.a)(Pa,2),xa=za[0],ja=za[1],io=s.useState(!1),ia=Object(i.a)(io,2),lo=ia[0],Xa=ia[1],Ta=pe(new Map),Qa=Object(i.a)(Ta,2),Ra=Qa[0],_a=Qa[1],yo=_(Ci),ao=yo.map(function(no){return Ra.get(no)}),bo=s.useMemo(function(){return ao},[ao.join("_")]),co=Qe(bo,Ci.length,Wr),uo=_r&&k(_r.y),Ya=_r&&k(_r.x),eo=Ya&&Ci.some(function(no){var vo=no.fixed;return vo}),wa=s.useRef(),ro=xr(li,nn),fo=ro.isSticky,Bi=ro.offsetHeader,Ma=ro.offsetScroll,Do=ro.stickyClassName,jo,Vo,Go;uo&&(Vo={overflowY:"scroll",maxHeight:_r.y}),Ya&&(jo={overflowX:"auto"},uo||(Vo={overflowY:"hidden"}),Go={width:_r.x===!0?"auto":_r.x,minWidth:"100%"});var wo=s.useCallback(function(no,vo){_a(function(Fo){var ns=new Map(Fo);return ns.set(no,vo),ns})},[]),Ia=ie(null),Po=Object(i.a)(Ia,2),ds=Po[0],ho=Po[1];function Oo(no,vo){if(!vo)return;typeof vo=="function"?vo(no):vo.scrollLeft!==no&&(vo.scrollLeft=no)}var Ka=function(vo){var Fo=vo.currentTarget,ns=vo.scrollLeft,ys=typeof ns=="number"?ns:Fo.scrollLeft,ms=Fo||fr;if(!ho()||ho()===ms){var Is;ds(ms),Oo(ys,Na.current),Oo(ys,Ua.current),Oo(ys,(Is=wa.current)===null||Is===void 0?void 0:Is.setScrollLeft)}if(Fo){var ol=Fo.scrollWidth,Ls=Fo.clientWidth;ja(ys>0),Xa(ys<ol-Ls)}},Xo=function(){Ua.current&&Ka({currentTarget:Ua.current})},nl=function(vo){var Fo=vo.width;Xo(),Zi(Da.current?Da.current.offsetWidth:Fo)};s.useEffect(function(){return Xo},[]),s.useEffect(function(){Ya&&Xo()},[Ya]),s.useEffect(function(){Yn===vn&&yi&&(yi.body.current=Ua.current)});var Cs=zi(["table"],"table"),_s=s.useMemo(function(){return Rr||(eo?_r.x==="max-content"?"auto":"fixed":uo||Ci.some(function(no){var vo=no.ellipsis;return vo})?"fixed":"auto")},[uo,eo,Ci,Rr]),xs,ps={colWidths:bo,columCount:Ci.length,stickyOffsets:co,onHeaderRow:Kn,fixHeader:uo},Os=s.useMemo(function(){return ki?null:typeof _n=="function"?_n():_n},[ki,_n]),Ho=s.createElement(Ke,{data:Oi,measureColumnWidth:uo||Ya||fo,expandedKeys:Ni,rowExpandable:sn,getRowKey:yr,onRow:Cn,emptyNode:Os,childrenColumnName:ta}),mo=s.createElement(q,{colWidths:Ci.map(function(no){var vo=no.width;return vo}),columns:Ci}),es=An&&s.createElement(or,null,An(Oi)),Ko=zi(["body"]);if(uo||fo){var Bo;typeof Ko=="function"?(Bo=Ko(Oi,{scrollbarSize:Li,ref:Ua,onScroll:Ka}),ps.colWidths=Ci.map(function(no,vo){var Fo=no.width,ns=vo===va.length-1?Fo-Li:Fo;return typeof ns=="number"&&!Number.isNaN(ns)?ns:(Object(h.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Bo=s.createElement("div",{style:Object(u.a)(Object(u.a)({},jo),Vo),onScroll:Ka,ref:Ua,className:l()("".concat(nn,"-body"))},s.createElement(Cs,{style:Object(u.a)(Object(u.a)({},Go),{},{tableLayout:_s})},mo,Ho,es),fo&&s.createElement(tr,{ref:wa,offsetScroll:Ma,scrollBodyRef:Ua,onScroll:Ka})),xs=s.createElement(s.Fragment,null,Un!==!1&&s.createElement(J,Object.assign({noData:!Oi.length},ps,Sa,{direction:Wr,offsetHeader:Bi,stickyClassName:Do,ref:Na,onScroll:Ka})),Bo)}else xs=s.createElement("div",{style:Object(u.a)(Object(u.a)({},jo),Vo),className:l()("".concat(nn,"-content")),onScroll:Ka,ref:Ua},s.createElement(Cs,{style:Object(u.a)(Object(u.a)({},Go),{},{tableLayout:_s})},mo,Un!==!1&&s.createElement(ue,Object.assign({},ps,Sa)),Ho,es));var zr=Ie(Vt),Yo=s.createElement("div",Object.assign({className:l()(nn,fn,(Xr={},Object(r.a)(Xr,"".concat(nn,"-rtl"),Wr==="rtl"),Object(r.a)(Xr,"".concat(nn,"-ping-left"),xa),Object(r.a)(Xr,"".concat(nn,"-ping-right"),lo),Object(r.a)(Xr,"".concat(nn,"-layout-fixed"),Rr==="fixed"),Object(r.a)(Xr,"".concat(nn,"-fixed-header"),uo),Object(r.a)(Xr,"".concat(nn,"-fixed-column"),eo),Object(r.a)(Xr,"".concat(nn,"-scroll-horizontal"),Ya),Object(r.a)(Xr,"".concat(nn,"-has-fix-left"),Ci[0]&&Ci[0].fixed),Object(r.a)(Xr,"".concat(nn,"-has-fix-right"),Ci[Ci.length-1]&&Ci[Ci.length-1].fixed==="right"),Xr)),style:Lt,id:Rn,ref:Da},zr),s.createElement($r,{pingLeft:xa,pingRight:lo,props:Object(u.a)(Object(u.a)({},Vt),{},{stickyOffsets:co,mergedExpandedKeys:Ni})},on&&s.createElement(Bt,{className:"".concat(nn,"-title")},on(Oi)),s.createElement("div",{className:"".concat(nn,"-container")},xs),En&&s.createElement(Bt,{className:"".concat(nn,"-footer")},En(Oi))));Ya&&(Yo=s.createElement(p.a,{onResize:nl},Yo));var il=s.useMemo(function(){return{prefixCls:nn,getComponent:zi,scrollbarSize:Li,direction:Wr,fixedInfoList:Ci.map(function(no,vo){return V(vo,vo,Ci,co,Wr)}),isSticky:fo}},[nn,zi,Li,Wr,Ci,co,Wr,fo]),Ks=s.useMemo(function(){return Object(u.a)(Object(u.a)({},Sa),{},{tableLayout:_s,rowClassName:Ze,expandedRowClassName:Fn,componentWidth:Oa,fixHeader:uo,fixColumn:eo,horizonScroll:Ya,expandIcon:Ti,expandableType:oa,expandRowByClick:pn,expandedRowRender:Zt,onTriggerExpand:ra,expandIconColumnIndex:yn,indentSize:Jn})},[Sa,_s,Ze,Fn,Oa,uo,eo,Ya,Ti,oa,pn,Zt,ra,yn,Jn]),Ps=s.useMemo(function(){return{onColumnResize:wo}},[wo]);return s.createElement(G.Provider,{value:il},s.createElement(de.Provider,{value:Ks},s.createElement(ne.Provider,{value:Ps},Yo)))}Ln.Column=b,Ln.ColumnGroup=A,Ln.Summary=Fr,Ln.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var tt=Ln,nt=tt,Te=y("W9HT"),Me=y("NUBc"),Xe=y("H84U"),at=function(Vt,Xr){var nn={};for(var fn in Vt)Object.prototype.hasOwnProperty.call(Vt,fn)&&Xr.indexOf(fn)<0&&(nn[fn]=Vt[fn]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,fn=Object.getOwnPropertySymbols(Vt);Ze<fn.length;Ze++)Xr.indexOf(fn[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Vt,fn[Ze])&&(nn[fn[Ze]]=Vt[fn[Ze]]);return nn},zt=10;function kt(Vt,Xr){var nn={current:Xr.current,pageSize:Xr.pageSize},fn=Vt&&N()(Vt)==="object"?Vt:{};return Object.keys(fn).forEach(function(Ze){var Lt=Xr[Ze];typeof Lt!="function"&&(nn[Ze]=Lt)}),nn}function Xt(){for(var Vt={},Xr=arguments.length,nn=new Array(Xr),fn=0;fn<Xr;fn++)nn[fn]=arguments[fn];return nn.forEach(function(Ze){Ze&&Object.keys(Ze).forEach(function(Lt){var cr=Ze[Lt];cr!==void 0&&(Vt[Lt]=cr)})}),Vt}function Dr(Vt,Xr,nn){var fn=Xr&&N()(Xr)==="object"?Xr:{},Ze=fn.total,Lt=Ze===void 0?0:Ze,cr=at(fn,["total"]),lr=Object(s.useState)(function(){return{current:"defaultCurrent"in cr?cr.defaultCurrent:1,pageSize:"defaultPageSize"in cr?cr.defaultPageSize:zt}}),_r=o()(lr,2),Rr=_r[0],Wr=_r[1],on=Xt(Rr,cr,{total:Lt>0?Lt:Vt});if(!Lt){var En=Math.ceil(Vt/on.pageSize);En<on.current&&(on.current=1)}var An=function(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,_n=arguments.length>1?arguments[1]:void 0;Wr(f()(f()({},on),{current:wn,pageSize:_n||on.pageSize}))},Rn=function(wn,_n){var Cn=on==null?void 0:on.pageSize;_n&&_n!==Cn&&(wn=1,Xr&&Xr.onShowSizeChange&&Xr.onShowSizeChange(wn,_n)),Xr&&Xr.onChange&&Xr.onChange(wn,_n),An(wn,_n),nn(wn,_n||Cn)};return Xr===!1?[{},function(){}]:[f()(f()({},on),{onChange:Rn}),An]}function Pr(Vt,Xr,nn){var fn=s.useRef({});function Ze(Lt){if(!fn.current||fn.current.data!==Vt||fn.current.childrenColumnName!==Xr||fn.current.getRowKey!==nn){var cr=function _r(Rr){Rr.forEach(function(Wr,on){var En=nn(Wr,on);lr.set(En,Wr),Wr&&N()(Wr)==="object"&&Xr in Wr&&_r(Wr[Xr]||[])})},lr=new Map;cr(Vt),fn.current={data:Vt,childrenColumnName:Xr,kvMap:lr,getRowKey:nn}}return fn.current.kvMap.get(Lt)}return[Ze]}var cn=y("SA+Z"),jt=y.n(cn),gt=y("RIqP"),dt=y.n(gt),Qt=y("HQEm"),Jt=y.n(Qt),xt=y("815F"),Pt=y("NvD2"),yt=y("OZM5"),Ut=y("6cGi"),pr=y("kaz8"),sr=y("jsC+"),ir=y("BvKs"),Yr=y("9yH6"),Jr=y("uaoM"),In="SELECT_ALL",Nn="SELECT_INVERT";function zn(Vt){return Vt&&Vt.fixed}function ei(Vt,Xr){var nn=[];return(Vt||[]).forEach(function(fn){nn.push(fn),fn&&N()(fn)==="object"&&Xr in fn&&(nn=[].concat(dt()(nn),dt()(ei(fn[Xr],Xr))))}),nn}function Ai(Vt,Xr){var nn=Vt||{},fn=nn.preserveSelectedRowKeys,Ze=nn.selectedRowKeys,Lt=nn.getCheckboxProps,cr=nn.onChange,lr=nn.onSelect,_r=nn.onSelectAll,Rr=nn.onSelectInvert,Wr=nn.onSelectMultiple,on=nn.columnWidth,En=nn.type,An=nn.selections,Rn=nn.fixed,Un=nn.renderCell,wn=nn.hideSelectAll,_n=nn.checkStrictly,Cn=_n===void 0?!0:_n,Kn=Xr.prefixCls,Yn=Xr.data,ni=Xr.pageData,yi=Xr.getRecordByKey,li=Xr.getRowKey,Oi=Xr.expandType,ki=Xr.childrenColumnName,Si=Xr.locale,mi=Xr.expandIconColumnIndex,Li=Xr.getPopupContainer,Wn=s.useRef(new Map),Di=Object(Ut.a)(Ze||[],{value:Ze}),zi=o()(Di,2),yr=zi[0],Mr=zi[1],Qr=Object(s.useMemo)(function(){return Cn?{keyEntities:null}:Object(xt.a)(Yn,void 0,li)},[Yn,li,Cn]),Ir=Qr.keyEntities,Gt=Object(s.useMemo)(function(){return ei(ni,ki)},[ni,ki]),Sr=Object(s.useMemo)(function(){var Ui=new Map;return Gt.forEach(function(Ni,ra){var qi=li(Ni,ra),Aa=(Lt?Lt(Ni):null)||{};Ui.set(qi,Aa)}),Ui},[Gt,li,Lt]),Zt=Object(s.useCallback)(function(Ui){var Ni;return!!((Ni=Sr.get(li(Ui)))===null||Ni===void 0?void 0:Ni.disabled)},[Sr,li]),jr=Object(s.useMemo)(function(){if(Cn)return[yr,[]];var Ui=Object(Pt.a)(yr,!0,Ir,Zt),Ni=Ui.checkedKeys,ra=Ui.halfCheckedKeys;return[Ni,ra]},[yr,Cn,Ir,Zt]),Kr=o()(jr,2),pn=Kr[0],sn=Kr[1],yn=Object(s.useMemo)(function(){var Ui=En==="radio"?pn.slice(0,1):pn;return new Set(Ui)},[pn,En]),Fn=Object(s.useMemo)(function(){return En==="radio"?new Set:new Set(sn)},[sn,En]),Xn=Object(s.useState)(null),Jn=o()(Xn,2),Ti=Jn[0],ta=Jn[1];s.useEffect(function(){Vt||Mr([])},[!!Vt]);var oa=Object(s.useCallback)(function(Ui){var Ni,ra;if(fn){var qi=new Map;Ni=Ui,ra=Ui.map(function(Aa){var Oa=yi(Aa);return!Oa&&Wn.current.has(Aa)&&(Oa=Wn.current.get(Aa)),qi.set(Aa,Oa),Oa}),Wn.current=qi}else Ni=[],ra=[],Ui.forEach(function(Aa){var Oa=yi(Aa);Oa!==void 0&&(Ni.push(Aa),ra.push(Oa))});Mr(Ni),cr&&cr(Ni,ra)},[Mr,yi,cr,fn]),da=Object(s.useCallback)(function(Ui,Ni,ra,qi){if(lr){var Aa=ra.map(function(Oa){return yi(Oa)});lr(yi(Ui),Ni,Aa,qi)}oa(ra)},[lr,yi,oa]),ca=Object(s.useMemo)(function(){if(!An||wn)return null;var Ui=An===!0?[In,Nn]:An;return Ui.map(function(Ni){return Ni===In?{key:"all",text:Si.selectionAll,onSelect:function(){oa(Yn.map(function(qi,Aa){return li(qi,Aa)}))}}:Ni===Nn?{key:"invert",text:Si.selectInvert,onSelect:function(){var qi=new Set(yn);ni.forEach(function(Oa,Zi){var Gi=li(Oa,Zi);qi.has(Gi)?qi.delete(Gi):qi.add(Gi)});var Aa=Array.from(qi);oa(Aa),Rr&&(Object(Jr.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),Rr(Aa))}}:Ni})},[An,yn,ni,li,Rr,oa]),ma=Object(s.useCallback)(function(Ui){if(!Vt)return Ui;var Ni=new Set(yn),ra=Gt.map(li).filter(function(xa){return!Sr.get(xa).disabled}),qi=ra.every(function(xa){return Ni.has(xa)}),Aa=ra.some(function(xa){return Ni.has(xa)}),Oa=function(){var ja=[];qi?ra.forEach(function(ia){Ni.delete(ia),ja.push(ia)}):ra.forEach(function(ia){Ni.has(ia)||(Ni.add(ia),ja.push(ia))});var io=Array.from(Ni);oa(io),_r&&_r(!qi,io.map(function(ia){return yi(ia)}),ja.map(function(ia){return yi(ia)}))},Zi;if(En!=="radio"){var Gi;if(ca){var La=s.createElement(ir.a,{getPopupContainer:Li},ca.map(function(xa,ja){var io=xa.key,ia=xa.text,lo=xa.onSelect;return s.createElement(ir.a.Item,{key:io||ja,onClick:function(){lo&&lo(ra)}},ia)}));Gi=s.createElement("div",{className:"".concat(Kn,"-selection-extra")},s.createElement(sr.a,{overlay:La,getPopupContainer:Li},s.createElement("span",null,s.createElement(Jt.a,null))))}var va=Gt.every(function(xa,ja){var io=li(xa,ja),ia=Sr.get(io)||{};return ia.disabled});Zi=!wn&&s.createElement("div",{className:"".concat(Kn,"-selection")},s.createElement(pr.a,{checked:!va&&!!Gt.length&&qi,indeterminate:!qi&&Aa,onChange:Oa,disabled:Gt.length===0||va}),Gi)}var Ci;En==="radio"?Ci=function(ja,io,ia){var lo=li(io,ia),Xa=Ni.has(lo);return{node:s.createElement(Yr.a,f()({},Sr.get(lo),{checked:Xa,onClick:function(Qa){return Qa.stopPropagation()},onChange:function(Qa){Ni.has(lo)||da(lo,!0,[lo],Qa.nativeEvent)}})),checked:Xa}}:Ci=function(ja,io,ia){var lo,Xa=li(io,ia),Ta=Ni.has(Xa),Qa=Fn.has(Xa),Ra=Sr.get(Xa),_a;return Oi==="nest"?(_a=Qa,Object(Jr.a)(!(typeof(Ra==null?void 0:Ra.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):_a=(lo=Ra==null?void 0:Ra.indeterminate)!==null&&lo!==void 0?lo:Qa,{node:s.createElement(pr.a,f()({},Ra,{indeterminate:_a,checked:Ta,onClick:function(ao){return ao.stopPropagation()},onChange:function(ao){var bo=ao.nativeEvent,co=bo.shiftKey,uo=-1,Ya=-1;if(co&&Cn){var eo=new Set([Ti,Xa]);ra.some(function(Ia,Po){if(eo.has(Ia))if(uo===-1)uo=Po;else return Ya=Po,!0;return!1})}if(Ya!==-1&&uo!==Ya&&Cn){var wa=ra.slice(uo,Ya+1),ro=[];Ta?wa.forEach(function(Ia){Ni.has(Ia)&&(ro.push(Ia),Ni.delete(Ia))}):wa.forEach(function(Ia){Ni.has(Ia)||(ro.push(Ia),Ni.add(Ia))});var fo=Array.from(Ni);oa(fo),Wr&&Wr(!Ta,fo.map(function(Ia){return yi(Ia)}),ro.map(function(Ia){return yi(Ia)}))}else{var Bi=pn;if(Cn){var Ma=Ta?Object(yt.b)(Bi,Xa):Object(yt.a)(Bi,Xa);da(Xa,!Ta,Ma,bo)}else{var Do=Object(Pt.a)([].concat(dt()(Bi),[Xa]),!0,Ir,Zt),jo=Do.checkedKeys,Vo=Do.halfCheckedKeys,Go=jo;if(Ta){var wo=new Set(jo);wo.delete(Xa),Go=Object(Pt.a)(Array.from(wo),{checked:!1,halfCheckedKeys:Vo},Ir,Zt).checkedKeys}da(Xa,!Ta,Go,bo)}}ta(Xa)}})),checked:Ta}};var Sa=function(ja,io,ia){var lo=Ci(ja,io,ia),Xa=lo.node,Ta=lo.checked;return Un?Un(Ta,io,ia,Xa):Xa},Da=E()({width:on,className:"".concat(Kn,"-selection-column"),title:Vt.columnTitle||Zi,render:Sa},Le,{className:"".concat(Kn,"-selection-col")});if(Oi==="row"&&Ui.length&&!mi){var Na=jt()(Ui),Ua=Na[0],Pa=Na.slice(1),za=Rn||zn(Pa[0]);return za&&(Ua.fixed=za),[Ua,f()(f()({},Da),{fixed:za})].concat(dt()(Pa))}return[f()(f()({},Da),{fixed:Rn||zn(Ui[0])})].concat(dt()(Ui))},[li,Gt,Vt,pn,yn,Fn,on,ca,Oi,Ti,Sr,Wr,da,Zt]);return[ma,yn]}var Pi=y("6SEX"),$e=y.n(Pi),_e=y("i8CU"),Be=y.n(_e),He=y("3S7+");function Je(Vt,Xr){return"key"in Vt&&Vt.key!==void 0&&Vt.key!==null?Vt.key:Vt.dataIndex?Array.isArray(Vt.dataIndex)?Vt.dataIndex.join("."):Vt.dataIndex:Xr}function Ye(Vt,Xr){return Xr?"".concat(Xr,"-").concat(Vt):"".concat(Vt)}function et(Vt,Xr){return typeof Vt=="function"?Vt(Xr):Vt}var wt="ascend",ut="descend";function Ft(Vt){return N()(Vt.sorter)==="object"&&typeof Vt.sorter.multiple=="number"?Vt.sorter.multiple:!1}function wr(Vt){return typeof Vt=="function"?Vt:Vt&&N()(Vt)==="object"&&Vt.compare?Vt.compare:!1}function hr(Vt,Xr){return Xr?Vt[Vt.indexOf(Xr)+1]:Vt[0]}function Nr(Vt,Xr,nn){var fn=[];function Ze(Lt,cr){fn.push({column:Lt,key:Je(Lt,cr),multiplePriority:Ft(Lt),sortOrder:Lt.sortOrder})}return(Vt||[]).forEach(function(Lt,cr){var lr=Ye(cr,nn);Lt.children?("sortOrder"in Lt&&Ze(Lt,lr),fn=[].concat(dt()(fn),dt()(Nr(Lt.children,Xr,lr)))):Lt.sorter&&("sortOrder"in Lt?Ze(Lt,lr):Xr&&Lt.defaultSortOrder&&fn.push({column:Lt,key:Je(Lt,lr),multiplePriority:Ft(Lt),sortOrder:Lt.defaultSortOrder}))}),fn}function Kt(Vt,Xr,nn,fn,Ze,Lt,cr,lr){return(Xr||[]).map(function(_r,Rr){var Wr=Ye(Rr,lr),on=_r;if(on.sorter){var En=on.sortDirections||Ze,An=on.showSorterTooltip===void 0?cr:on.showSorterTooltip,Rn=Je(on,Wr),Un=nn.find(function(ki){var Si=ki.key;return Si===Rn}),wn=Un?Un.sortOrder:null,_n=hr(En,wn),Cn=En.includes(wt)&&s.createElement(Be.a,{className:l()("".concat(Vt,"-column-sorter-up"),{active:wn===wt})}),Kn=En.includes(ut)&&s.createElement($e.a,{className:l()("".concat(Vt,"-column-sorter-down"),{active:wn===ut})}),Yn=Lt||{},ni=Yn.cancelSort,yi=Yn.triggerAsc,li=Yn.triggerDesc,Oi=ni;_n===ut?Oi=li:_n===wt&&(Oi=yi),on=f()(f()({},on),{className:l()(on.className,E()({},"".concat(Vt,"-column-sort"),wn)),title:function(Si){var mi=s.createElement("div",{className:"".concat(Vt,"-column-sorters")},s.createElement("span",null,et(_r.title,Si)),s.createElement("span",{className:l()("".concat(Vt,"-column-sorter"),E()({},"".concat(Vt,"-column-sorter-full"),Cn&&Kn))},s.createElement("span",{className:"".concat(Vt,"-column-sorter-inner")},Cn,Kn)));return An?s.createElement(He.a,{title:Oi},s.createElement("div",{className:"".concat(Vt,"-column-sorters-with-tooltip")},mi)):mi},onHeaderCell:function(Si){var mi=_r.onHeaderCell&&_r.onHeaderCell(Si)||{},Li=mi.onClick;return mi.onClick=function(Wn){fn({column:_r,key:Rn,sortOrder:_n,multiplePriority:Ft(_r)}),Li&&Li(Wn)},mi.className=l()(mi.className,"".concat(Vt,"-column-has-sorters")),mi}})}return"children"in on&&(on=f()(f()({},on),{children:Kt(Vt,on.children,nn,fn,Ze,Lt,cr,Wr)})),on})}function un(Vt){var Xr=Vt.column,nn=Vt.sortOrder;return{column:Xr,order:nn,field:Xr.dataIndex,columnKey:Xr.key}}function ar(Vt){var Xr=Vt.filter(function(nn){var fn=nn.sortOrder;return fn}).map(un);return Xr.length===0&&Vt.length?f()(f()({},un(Vt[Vt.length-1])),{column:void 0}):Xr.length<=1?Xr[0]||{}:Xr}function Gr(Vt,Xr,nn){var fn=Xr.slice().sort(function(cr,lr){return lr.multiplePriority-cr.multiplePriority}),Ze=Vt.slice(),Lt=fn.filter(function(cr){var lr=cr.column.sorter,_r=cr.sortOrder;return wr(lr)&&_r});return Lt.length?Ze.sort(function(cr,lr){for(var _r=0;_r<Lt.length;_r+=1){var Rr=Lt[_r],Wr=Rr.column.sorter,on=Rr.sortOrder,En=wr(Wr);if(En&&on){var An=En(cr,lr,on);if(An!==0)return on===wt?An:-An}}return 0}).map(function(cr){var lr=cr[nn];return lr?f()(f()({},cr),E()({},nn,Gr(lr,Xr,nn))):cr}):Ze}function Br(Vt){var Xr=Vt.prefixCls,nn=Vt.mergedColumns,fn=Vt.onSorterChange,Ze=Vt.sortDirections,Lt=Vt.tableLocale,cr=Vt.showSorterTooltip,lr=s.useState(Nr(nn,!0)),_r=o()(lr,2),Rr=_r[0],Wr=_r[1],on=s.useMemo(function(){var wn=!0,_n=Nr(nn,!1);if(!_n.length)return Rr;var Cn=[];function Kn(ni){wn?Cn.push(ni):Cn.push(f()(f()({},ni),{sortOrder:null}))}var Yn=null;return _n.forEach(function(ni){Yn===null?(Kn(ni),ni.sortOrder&&(ni.multiplePriority===!1?wn=!1:Yn=!0)):(Yn&&ni.multiplePriority!==!1||(wn=!1),Kn(ni))}),Cn},[nn,Rr]),En=s.useMemo(function(){var wn=on.map(function(_n){var Cn=_n.column,Kn=_n.sortOrder;return{column:Cn,order:Kn}});return{sortColumns:wn,sortColumn:wn[0]&&wn[0].column,sortOrder:wn[0]&&wn[0].order}},[on]);function An(wn){var _n;wn.multiplePriority===!1||!on.length||on[0].multiplePriority===!1?_n=[wn]:_n=[].concat(dt()(on.filter(function(Cn){var Kn=Cn.key;return Kn!==wn.key})),[wn]),Wr(_n),fn(ar(_n),_n)}var Rn=function(_n){return Kt(Xr,_n,on,An,Ze,Lt,cr)},Un=function(){return ar(on)};return[Rn,on,En,Un]}var gr=y("Y+p1"),Sn=y.n(gr),Pn=y("5Uyt"),ii=y.n(Pn),oi=y("2/Rp"),ti=y("ECub"),bi=function(Xr){return s.createElement("div",{className:Xr.className,onClick:function(fn){return fn.stopPropagation()}},Xr.children)},kn=bi,Ii=y("sPtV"),gn=ir.a.SubMenu,Vr=ir.a.Item;function xn(Vt){return Vt.some(function(Xr){var nn=Xr.children;return nn})}function tn(Vt){var Xr=Vt.filters,nn=Vt.prefixCls,fn=Vt.filteredKeys,Ze=Vt.filterMultiple,Lt=Vt.locale;return Xr.length===0?s.createElement(s.Fragment,null,s.createElement(ti.a,{image:ti.a.PRESENTED_IMAGE_SIMPLE,description:Lt.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):Xr.map(function(cr,lr){var _r=String(cr.value);if(cr.children)return s.createElement(gn,{key:_r||lr,title:cr.text,popupClassName:"".concat(nn,"-dropdown-submenu")},tn({filters:cr.children,prefixCls:nn,filteredKeys:fn,filterMultiple:Ze,locale:Lt}));var Rr=Ze?pr.a:Yr.a;return s.createElement(Vr,{key:cr.value!==void 0?_r:lr},s.createElement(Rr,{checked:fn.includes(_r)}),s.createElement("span",null,cr.text))})}function ui(Vt){var Xr,nn=Vt.prefixCls,fn=Vt.column,Ze=Vt.dropdownPrefixCls,Lt=Vt.columnKey,cr=Vt.filterMultiple,lr=Vt.filterState,_r=Vt.triggerFilter,Rr=Vt.locale,Wr=Vt.children,on=Vt.getPopupContainer,En=fn.filterDropdownVisible,An=fn.onFilterDropdownVisibleChange,Rn=s.useState(!1),Un=o()(Rn,2),wn=Un[0],_n=Un[1],Cn=!!(lr&&(((Xr=lr.filteredKeys)===null||Xr===void 0?void 0:Xr.length)||lr.forceFiltered)),Kn=function(Jn){_n(Jn),An&&An(Jn)},Yn=typeof En=="boolean"?En:wn,ni=lr&&lr.filteredKeys,yi=Object(Ii.a)(ni||[]),li=o()(yi,2),Oi=li[0],ki=li[1],Si=function(Jn){var Ti=Jn.selectedKeys;ki(Ti)};s.useEffect(function(){Si({selectedKeys:ni||[]})},[ni]);var mi=s.useState([]),Li=o()(mi,2),Wn=Li[0],Di=Li[1],zi=s.useRef(),yr=function(Jn){zi.current=window.setTimeout(function(){Di(Jn)})},Mr=function(){window.clearTimeout(zi.current)};s.useEffect(function(){return function(){window.clearTimeout(zi.current)}},[]);var Qr=function(Jn){Kn(!1);var Ti=Jn&&Jn.length?Jn:null;if(Ti===null&&(!lr||!lr.filteredKeys))return null;if(Sn()(Ti,lr==null?void 0:lr.filteredKeys))return null;_r({column:fn,key:Lt,filteredKeys:Ti})},Ir=function(){Qr(Oi())},Gt=function(){ki([]),Qr([])},Sr=function(Jn){Jn&&ni!==void 0&&ki(ni||[]),Kn(Jn),!Jn&&!fn.filterDropdown&&Ir()},Zt=l()(E()({},"".concat(Ze,"-menu-without-submenu"),!xn(fn.filters||[]))),jr;if(typeof fn.filterDropdown=="function")jr=fn.filterDropdown({prefixCls:"".concat(Ze,"-custom"),setSelectedKeys:function(Jn){return Si({selectedKeys:Jn})},selectedKeys:Oi(),confirm:Ir,clearFilters:Gt,filters:fn.filters,visible:Yn});else if(fn.filterDropdown)jr=fn.filterDropdown;else{var Kr=Oi()||[];jr=s.createElement(s.Fragment,null,s.createElement(ir.a,{multiple:cr,prefixCls:"".concat(Ze,"-menu"),className:Zt,onClick:Mr,onSelect:Si,onDeselect:Si,selectedKeys:Kr,getPopupContainer:on,openKeys:Wn,onOpenChange:yr},tn({filters:fn.filters||[],prefixCls:nn,filteredKeys:Oi(),filterMultiple:cr,locale:Rr})),s.createElement("div",{className:"".concat(nn,"-dropdown-btns")},s.createElement(oi.a,{type:"link",size:"small",disabled:Kr.length===0,onClick:Gt},Rr.filterReset),s.createElement(oi.a,{type:"primary",size:"small",onClick:Ir},Rr.filterConfirm)))}var pn=s.createElement(kn,{className:"".concat(nn,"-dropdown")},jr),sn;typeof fn.filterIcon=="function"?sn=fn.filterIcon(Cn):fn.filterIcon?sn=fn.filterIcon:sn=s.createElement(ii.a,null);var yn=s.useContext(Xe.b),Fn=yn.direction;return s.createElement("div",{className:l()("".concat(nn,"-column"))},s.createElement("span",{className:"".concat(nn,"-column-title")},Wr),s.createElement("span",{className:l()("".concat(nn,"-trigger-container"),E()({},"".concat(nn,"-trigger-container-open"),Yn)),onClick:function(Jn){Jn.stopPropagation()}},s.createElement(sr.a,{overlay:pn,trigger:["click"],visible:Yn,onVisibleChange:Sr,getPopupContainer:on,placement:Fn==="rtl"?"bottomLeft":"bottomRight"},s.createElement("span",{role:"button",tabIndex:-1,className:l()("".concat(nn,"-trigger"),{active:Cn})},sn))))}var qn=ui;function wi(Vt,Xr,nn){var fn=[];return(Vt||[]).forEach(function(Ze,Lt){var cr=Ye(Lt,nn);"children"in Ze?fn=[].concat(dt()(fn),dt()(wi(Ze.children,Xr,cr))):(Ze.filters||"filterDropdown"in Ze||"onFilter"in Ze)&&("filteredValue"in Ze?fn.push({column:Ze,key:Je(Ze,cr),filteredKeys:Ze.filteredValue,forceFiltered:Ze.filtered}):fn.push({column:Ze,key:Je(Ze,cr),filteredKeys:Xr&&Ze.defaultFilteredValue?Ze.defaultFilteredValue:void 0,forceFiltered:Ze.filtered}))}),fn}function Qn(Vt,Xr,nn,fn,Ze,Lt,cr,lr){return nn.map(function(_r,Rr){var Wr=Ye(Rr,lr),on=_r.filterMultiple,En=on===void 0?!0:on;if(_r.filters||"filterDropdown"in _r){var An=Je(_r,Wr),Rn=fn.find(function(Un){var wn=Un.key;return An===wn});return f()(f()({},_r),{title:function(wn){return s.createElement(qn,{prefixCls:"".concat(Vt,"-filter"),dropdownPrefixCls:Xr,column:_r,columnKey:An,filterState:Rn,filterMultiple:En,triggerFilter:Ze,locale:cr,getPopupContainer:Lt},et(_r.title,wn))}})}return"children"in _r?f()(f()({},_r),{children:Qn(Vt,Xr,_r.children,fn,Ze,Lt,cr,Wr)}):_r})}function Hi(Vt){var Xr={};return Vt.forEach(function(nn){var fn=nn.key,Ze=nn.filteredKeys;Xr[fn]=Ze||null}),Xr}function ri(Vt){var Xr=[];return(Vt||[]).forEach(function(nn){var fn=nn.value,Ze=nn.children;Xr.push(fn),Ze&&(Xr=[].concat(dt()(Xr),dt()(ri(Ze))))}),Xr}function Mi(Vt,Xr){return Xr.reduce(function(nn,fn){var Ze=fn.column,Lt=Ze.onFilter,cr=Ze.filters,lr=fn.filteredKeys;return Lt&&lr&&lr.length?nn.filter(function(_r){return lr.some(function(Rr){var Wr=ri(cr),on=Wr.findIndex(function(An){return String(An)===String(Rr)}),En=on!==-1?Wr[on]:Rr;return Lt(En,_r)})}):nn},Vt)}function dn(Vt){var Xr=Vt.prefixCls,nn=Vt.dropdownPrefixCls,fn=Vt.mergedColumns,Ze=Vt.onFilterChange,Lt=Vt.getPopupContainer,cr=Vt.locale,lr=s.useState(wi(fn,!0)),_r=o()(lr,2),Rr=_r[0],Wr=_r[1],on=s.useMemo(function(){var Un=wi(fn,!1);return Un.every(function(wn){var _n=wn.filteredKeys;return _n===void 0})?Rr:Un},[fn,Rr]),En=s.useCallback(function(){return Hi(on)},[on]),An=function(wn){var _n=on.filter(function(Cn){var Kn=Cn.key;return Kn!==wn.key});_n.push(wn),Wr(_n),Ze(Hi(_n),_n)},Rn=function(wn){return Qn(Xr,nn,wn,on,An,Lt,cr)};return[Rn,on,En]}var Ur=dn;function bn(Vt,Xr){return Vt.map(function(nn){var fn=f()({},nn);return fn.title=et(nn.title,Xr),"children"in fn&&(fn.children=bn(fn.children,Xr)),fn})}function Mn(Vt){var Xr=s.useCallback(function(nn){return bn(nn,Vt)},[Vt]);return[Xr]}function Gn(Vt){return function(nn){var fn,Ze=nn.prefixCls,Lt=nn.onExpand,cr=nn.record,lr=nn.expanded,_r=nn.expandable,Rr="".concat(Ze,"-row-expand-icon");return s.createElement("button",{type:"button",onClick:function(on){Lt(cr,on),on.stopPropagation()},className:l()(Rr,(fn={},E()(fn,"".concat(Rr,"-spaced"),!_r),E()(fn,"".concat(Rr,"-expanded"),_r&&lr),E()(fn,"".concat(Rr,"-collapsed"),_r&&!lr),fn)),"aria-label":lr?Vt.collapse:Vt.expand})}}var $n=Gn,hi=y("zAh6"),fi=y("ZvpZ"),gi=fi.a,Wi=y("3Nzz");function na(Vt){return null}var $i=na;function Ha(Vt){return null}var pi=Ha,ln=y("5OYt"),_i=[];function Ji(Vt){var Xr,nn=Vt.prefixCls,fn=Vt.className,Ze=Vt.style,Lt=Vt.size,cr=Vt.bordered,lr=Vt.dropdownPrefixCls,_r=Vt.dataSource,Rr=Vt.pagination,Wr=Vt.rowSelection,on=Vt.rowKey,En=Vt.rowClassName,An=Vt.columns,Rn=Vt.children,Un=Vt.childrenColumnName,wn=Vt.onChange,_n=Vt.getPopupContainer,Cn=Vt.loading,Kn=Vt.expandIcon,Yn=Vt.expandable,ni=Vt.expandedRowRender,yi=Vt.expandIconColumnIndex,li=Vt.indentSize,Oi=Vt.scroll,ki=Vt.sortDirections,Si=Vt.locale,mi=Vt.showSorterTooltip,Li=mi===void 0?!0:mi;Object(Jr.a)(!(typeof on=="function"&&on.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var Wn=Object(ln.a)(),Di=s.useMemo(function(){var wo=new Set(Object.keys(Wn).filter(function(Ia){return Wn[Ia]}));return(An||it(Rn)).filter(function(Ia){return!Ia.responsive||Ia.responsive.some(function(Po){return wo.has(Po)})})},[Rn,An,Wn]),zi=Object(a.default)(Vt,["className","style","columns"]),yr=s.useContext(Wi.b),Mr=s.useContext(Xe.b),Qr=Mr.locale,Ir=Qr===void 0?gi:Qr,Gt=Mr.renderEmpty,Sr=Mr.direction,Zt=Lt||yr,jr=f()(f()({},Ir.Table),Si),Kr=_r||_i,pn=s.useContext(Xe.b),sn=pn.getPrefixCls,yn=sn("table",nn),Fn=sn("dropdown",lr),Xn=f()({childrenColumnName:Un,expandIconColumnIndex:yi},Yn),Jn=Xn.childrenColumnName,Ti=Jn===void 0?"children":Jn,ta=s.useMemo(function(){return Kr.some(function(wo){var Ia;return(Ia=wo)===null||Ia===void 0?void 0:Ia[Ti]})?"nest":ni||Yn&&Yn.expandedRowRender?"row":null},[Kr]),oa={body:s.useRef()},da=s.useMemo(function(){return typeof on=="function"?on:function(wo){var Ia;return(Ia=wo)===null||Ia===void 0?void 0:Ia[on]}},[on]),ca=Pr(Kr,Ti,da),ma=o()(ca,1),Ui=ma[0],Ni={},ra=function(Ia,Po){var ds=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ho=f()(f()({},Ni),Ia);ds&&(Ni.resetPagination(),ho.pagination.current&&(ho.pagination.current=1),Rr&&Rr.onChange&&Rr.onChange(1,ho.pagination.pageSize)),Oi&&Oi.scrollToFirstRowOnChange!==!1&&oa.body.current&&Object(hi.a)(0,{getContainer:function(){return oa.body.current}}),wn&&wn(ho.pagination,ho.filters,ho.sorter,{currentDataSource:Mi(Gr(Kr,ho.sorterStates,Ti),ho.filterStates),action:Po})},qi=function(Ia,Po){ra({sorter:Ia,sorterStates:Po},"sort",!1)},Aa=Br({prefixCls:yn,mergedColumns:Di,onSorterChange:qi,sortDirections:ki||["ascend","descend"],tableLocale:jr,showSorterTooltip:Li}),Oa=o()(Aa,4),Zi=Oa[0],Gi=Oa[1],La=Oa[2],va=Oa[3],Ci=s.useMemo(function(){return Gr(Kr,Gi,Ti)},[Kr,Gi]);Ni.sorter=va(),Ni.sorterStates=Gi;var Sa=function(Ia,Po){ra({filters:Ia,filterStates:Po},"filter",!0)},Da=Ur({prefixCls:yn,locale:jr,dropdownPrefixCls:Fn,mergedColumns:Di,onFilterChange:Sa,getPopupContainer:_n}),Na=o()(Da,3),Ua=Na[0],Pa=Na[1],za=Na[2],xa=Mi(Ci,Pa);Ni.filters=za(),Ni.filterStates=Pa;var ja=s.useMemo(function(){return f()({},La)},[La]),io=Mn(ja),ia=o()(io,1),lo=ia[0],Xa=function(Ia,Po){ra({pagination:f()(f()({},Ni.pagination),{current:Ia,pageSize:Po})},"paginate")},Ta=Dr(xa.length,Rr,Xa),Qa=o()(Ta,2),Ra=Qa[0],_a=Qa[1];Ni.pagination=Rr===!1?{}:kt(Rr,Ra),Ni.resetPagination=_a;var yo=s.useMemo(function(){if(Rr===!1||!Ra.pageSize)return xa;var wo=Ra.current,Ia=wo===void 0?1:wo,Po=Ra.total,ds=Ra.pageSize,ho=ds===void 0?zt:ds;return xa.length<Po?xa.length>ho?(Object(Jr.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."),xa.slice((Ia-1)*ho,Ia*ho)):xa:xa.slice((Ia-1)*ho,Ia*ho)},[!!Rr,xa,Ra&&Ra.current,Ra&&Ra.pageSize,Ra&&Ra.total]),ao=Ai(Wr,{prefixCls:yn,data:xa,pageData:yo,getRowKey:da,getRecordByKey:Ui,expandType:ta,childrenColumnName:Ti,locale:jr,expandIconColumnIndex:Xn.expandIconColumnIndex,getPopupContainer:_n}),bo=o()(ao,2),co=bo[0],uo=bo[1],Ya=function(Ia,Po,ds){var ho;return typeof En=="function"?ho=l()(En(Ia,Po,ds)):ho=l()(En),l()(E()({},"".concat(yn,"-row-selected"),uo.has(da(Ia,Po))),ho)};Xn.__PARENT_RENDER_ICON__=Xn.expandIcon,Xn.expandIcon=Xn.expandIcon||Kn||$n(jr),ta==="nest"&&Xn.expandIconColumnIndex===void 0?Xn.expandIconColumnIndex=Wr?1:0:Xn.expandIconColumnIndex>0&&Wr&&(Xn.expandIconColumnIndex-=1),typeof Xn.indentSize!="number"&&(Xn.indentSize=typeof li=="number"?li:15);var eo=s.useCallback(function(wo){return lo(co(Ua(Zi(wo))))},[Zi,Ua,co]),wa,ro;if(Rr!==!1){var fo;Ra.size?fo=Ra.size:fo=Zt==="small"||Zt==="middle"?"small":void 0;var Bi=function(Ia){return s.createElement(Me.a,f()({className:"".concat(yn,"-pagination ").concat(yn,"-pagination-").concat(Ia)},Ra,{size:fo}))},Ma=Sr==="rtl"?"left":"right";if(Ra.position!==null&&Array.isArray(Ra.position)){var Do=Ra.position.find(function(wo){return wo.indexOf("top")!==-1}),jo=Ra.position.find(function(wo){return wo.indexOf("bottom")!==-1});!Do&&!jo?ro=Bi(Ma):(Do&&(wa=Bi(Do.toLowerCase().replace("top",""))),jo&&(ro=Bi(jo.toLowerCase().replace("bottom",""))))}else ro=Bi(Ma)}var Vo;typeof Cn=="boolean"?Vo={spinning:Cn}:N()(Cn)==="object"&&(Vo=f()({spinning:!0},Cn));var Go=l()("".concat(yn,"-wrapper"),fn,E()({},"".concat(yn,"-wrapper-rtl"),Sr==="rtl"));return s.createElement("div",{className:Go,style:Ze},s.createElement(Te.a,f()({spinning:!1},Vo),wa,s.createElement(nt,f()({},zi,{columns:Di,direction:Sr,expandable:Xn,prefixCls:yn,className:l()((Xr={},E()(Xr,"".concat(yn,"-middle"),Zt==="middle"),E()(Xr,"".concat(yn,"-small"),Zt==="small"),E()(Xr,"".concat(yn,"-bordered"),cr),E()(Xr,"".concat(yn,"-empty"),Kr.length===0),Xr)),data:yo,rowKey:da,rowClassName:Ya,emptyText:Si&&Si.emptyText||Gt("Table"),internalHooks:vn,internalRefs:oa,transformColumns:eo})),xa&&xa.length>0&&ro))}Ji.defaultProps={rowKey:"key"},Ji.SELECTION_ALL=In,Ji.SELECTION_INVERT=Nn,Ji.Column=$i,Ji.ColumnGroup=pi,Ji.Summary=Fr;var Fi=Ji,ea=z.a=Fi},wDdD:function(fe,z,y){var D=y("ProS"),N=y("bYtY");y("98bh"),y("GrNh");var L=y("d4KN"),E=y("mOdp"),I=y("KS52"),o=y("0/Rx");L("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),D.registerVisual(E("pie")),D.registerLayout(N.curry(I,"pie")),D.registerProcessor(o("pie"))},wOnQ:function(fe,z,y){/*!
|
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
|
* Released under MIT License
|
|
|
*/(function(D,N){fe.exports=N()})(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 D=function(ge,Ce){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,rt){ke.__proto__=rt}||function(ke,rt){for(var Mt in rt)Object.prototype.hasOwnProperty.call(rt,Mt)&&(ke[Mt]=rt[Mt])},D(ge,Ce)};function N($t,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Class extends value "+String(ge)+" is not a constructor or null");D($t,ge);function Ce(){this.constructor=$t}$t.prototype=ge===null?Object.create(ge):(Ce.prototype=ge.prototype,new Ce)}var L=function(){return L=Object.assign||function(Ce){for(var ke,rt=1,Mt=arguments.length;rt<Mt;rt++){ke=arguments[rt];for(var Er in ke)Object.prototype.hasOwnProperty.call(ke,Er)&&(Ce[Er]=ke[Er])}return Ce},L.apply(this,arguments)};function E($t,ge,Ce,ke){function rt(Mt){return Mt instanceof Ce?Mt:new Ce(function(Er){Er(Mt)})}return new(Ce||(Ce=Promise))(function(Mt,Er){function Hr(ai){try{mn(ke.next(ai))}catch(Zn){Er(Zn)}}function qr(ai){try{mn(ke.throw(ai))}catch(Zn){Er(Zn)}}function mn(ai){ai.done?Mt(ai.value):rt(ai.value).then(Hr,qr)}mn((ke=ke.apply($t,ge||[])).next())})}function I($t,ge){var Ce={label:0,sent:function(){if(Mt[0]&1)throw Mt[1];return Mt[1]},trys:[],ops:[]},ke,rt,Mt,Er;return Er={next:Hr(0),throw:Hr(1),return:Hr(2)},typeof Symbol=="function"&&(Er[Symbol.iterator]=function(){return this}),Er;function Hr(mn){return function(ai){return qr([mn,ai])}}function qr(mn){if(ke)throw new TypeError("Generator is already executing.");for(;Ce;)try{if(ke=1,rt&&(Mt=mn[0]&2?rt.return:mn[0]?rt.throw||((Mt=rt.return)&&Mt.call(rt),0):rt.next)&&!(Mt=Mt.call(rt,mn[1])).done)return Mt;(rt=0,Mt)&&(mn=[mn[0]&2,Mt.value]);switch(mn[0]){case 0:case 1:Mt=mn;break;case 4:return Ce.label++,{value:mn[1],done:!1};case 5:Ce.label++,rt=mn[1],mn=[0];continue;case 7:mn=Ce.ops.pop(),Ce.trys.pop();continue;default:if(!(Mt=Ce.trys,Mt=Mt.length>0&&Mt[Mt.length-1])&&(mn[0]===6||mn[0]===2)){Ce=0;continue}if(mn[0]===3&&(!Mt||mn[1]>Mt[0]&&mn[1]<Mt[3])){Ce.label=mn[1];break}if(mn[0]===6&&Ce.label<Mt[1]){Ce.label=Mt[1],Mt=mn;break}if(Mt&&Ce.label<Mt[2]){Ce.label=Mt[2],Ce.ops.push(mn);break}Mt[2]&&Ce.ops.pop(),Ce.trys.pop();continue}mn=ge.call($t,Ce)}catch(ai){mn=[6,ai],rt=0}finally{ke=Mt=0}if(mn[0]&5)throw mn[1];return{value:mn[0]?mn[1]:void 0,done:!0}}}function o($t,ge,Ce){if(Ce||arguments.length===2)for(var ke=0,rt=ge.length,Mt;ke<rt;ke++)(Mt||!(ke in ge))&&(Mt||(Mt=Array.prototype.slice.call(ge,0,ke)),Mt[ke]=ge[ke]);return $t.concat(Mt||ge)}for(var m=function(){function $t(ge,Ce,ke,rt){this.left=ge,this.top=Ce,this.width=ke,this.height=rt}return $t.prototype.add=function(ge,Ce,ke,rt){return new $t(this.left+ge,this.top+Ce,this.width+ke,this.height+rt)},$t.fromClientRect=function(ge,Ce){return new $t(Ce.left+ge.windowBounds.left,Ce.top+ge.windowBounds.top,Ce.width,Ce.height)},$t.fromDOMRectList=function(ge,Ce){var ke=Array.from(Ce).find(function(rt){return rt.width!==0});return ke?new $t(ke.left+ge.windowBounds.left,ke.top+ge.windowBounds.top,ke.width,ke.height):$t.EMPTY},$t.EMPTY=new $t(0,0,0,0),$t}(),f=function(ge,Ce){return m.fromClientRect(ge,Ce.getBoundingClientRect())},s=function(ge){var Ce=ge.body,ke=ge.documentElement;if(!Ce||!ke)throw new Error("Unable to get document size");var rt=Math.max(Math.max(Ce.scrollWidth,ke.scrollWidth),Math.max(Ce.offsetWidth,ke.offsetWidth),Math.max(Ce.clientWidth,ke.clientWidth)),Mt=Math.max(Math.max(Ce.scrollHeight,ke.scrollHeight),Math.max(Ce.offsetHeight,ke.offsetHeight),Math.max(Ce.clientHeight,ke.clientHeight));return new m(0,0,rt,Mt)},t=function(ge){for(var Ce=[],ke=0,rt=ge.length;ke<rt;){var Mt=ge.charCodeAt(ke++);if(Mt>=55296&&Mt<=56319&&ke<rt){var Er=ge.charCodeAt(ke++);(Er&64512)===56320?Ce.push(((Mt&1023)<<10)+(Er&1023)+65536):(Ce.push(Mt),ke--)}else Ce.push(Mt)}return Ce},l=function(){for(var ge=[],Ce=0;Ce<arguments.length;Ce++)ge[Ce]=arguments[Ce];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ge);var ke=ge.length;if(!ke)return"";for(var rt=[],Mt=-1,Er="";++Mt<ke;){var Hr=ge[Mt];Hr<=65535?rt.push(Hr):(Hr-=65536,rt.push((Hr>>10)+55296,Hr%1024+56320)),(Mt+1===ke||rt.length>16384)&&(Er+=String.fromCharCode.apply(String,rt),rt.length=0)}return Er},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),u=0;u<a.length;u++)r[a.charCodeAt(u)]=u;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i<e.length;i++)n[e.charCodeAt(i)]=i;for(var c=function(ge){var Ce=ge.length*.75,ke=ge.length,rt,Mt=0,Er,Hr,qr,mn;ge[ge.length-1]==="="&&(Ce--,ge[ge.length-2]==="="&&Ce--);var ai=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ce):new Array(Ce),Zn=Array.isArray(ai)?ai:new Uint8Array(ai);for(rt=0;rt<ke;rt+=4)Er=n[ge.charCodeAt(rt)],Hr=n[ge.charCodeAt(rt+1)],qr=n[ge.charCodeAt(rt+2)],mn=n[ge.charCodeAt(rt+3)],Zn[Mt++]=Er<<2|Hr>>4,Zn[Mt++]=(Hr&15)<<4|qr>>2,Zn[Mt++]=(qr&3)<<6|mn&63;return ai},d=function(ge){for(var Ce=ge.length,ke=[],rt=0;rt<Ce;rt+=2)ke.push(ge[rt+1]<<8|ge[rt]);return ke},h=function(ge){for(var Ce=ge.length,ke=[],rt=0;rt<Ce;rt+=4)ke.push(ge[rt+3]<<24|ge[rt+2]<<16|ge[rt+1]<<8|ge[rt]);return ke},p=5,g=6+5,v=2,A=g-p,x=65536>>p,b=1<<p,w=b-1,S=1024>>p,T=x+S,C=T,O=2048>>6,_=C+O,M=65536>>g,k=1<<A,R=k-1,B=function(ge,Ce,ke){return ge.slice?ge.slice(Ce,ke):new Uint16Array(Array.prototype.slice.call(ge,Ce,ke))},P=function(ge,Ce,ke){return ge.slice?ge.slice(Ce,ke):new Uint32Array(Array.prototype.slice.call(ge,Ce,ke))},U=function(ge,Ce){var ke=c(ge),rt=Array.isArray(ke)?h(ke):new Uint32Array(ke),Mt=Array.isArray(ke)?d(ke):new Uint16Array(ke),Er=24,Hr=B(Mt,Er/2,rt[4]/2),qr=rt[5]===2?B(Mt,(Er+rt[4])/2):P(rt,Math.ceil((Er+rt[4])/4));return new j(rt[0],rt[1],rt[2],rt[3],Hr,qr)},j=function(){function $t(ge,Ce,ke,rt,Mt,Er){this.initialValue=ge,this.errorValue=Ce,this.highStart=ke,this.highValueIndex=rt,this.index=Mt,this.data=Er}return $t.prototype.get=function(ge){var Ce;if(ge>=0){if(ge<55296||ge>56319&&ge<=65535)return Ce=this.index[ge>>p],Ce=(Ce<<v)+(ge&w),this.data[Ce];if(ge<=65535)return Ce=this.index[x+(ge-55296>>p)],Ce=(Ce<<v)+(ge&w),this.data[Ce];if(ge<this.highStart)return Ce=_-M+(ge>>g),Ce=this.index[Ce],Ce+=ge>>p&R,Ce=this.index[Ce],Ce=(Ce<<v)+(ge&w),this.data[Ce];if(ge<=1114111)return this.data[this.highValueIndex]}return this.errorValue},$t}(),H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),G=0;G<H.length;G++)W[H.charCodeAt(G)]=G;var V="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==",Z=50,Y=1,Q=2,oe=3,ue=4,Le=5,me=7,Ie=8,X=9,q=10,We=11,$=12,J=13,le=14,de=15,Ne=16,we=17,De=18,Ee=19,ce=20,ne=21,ee=22,Ae=23,Ve=24,Ke=25,Oe=26,it=27,Fe=28,ft=29,At=30,bt=31,St=32,Et=33,je=34,pe=35,ie=36,st=37,Qe=38,ve=39,Bt=40,qt=41,ct=42,Wt=43,or=[9001,65288],Fr="!",er="\xD7",nr="\xF7",Ot=U(V),lt=[At,ie],qe=[Y,Q,oe,Le],tr=[q,Ie],xr=[it,Oe],Ar=qe.concat(tr),fr=[Qe,ve,Bt,je,pe],vn=[de,J],$r=function(ge,Ce){Ce===void 0&&(Ce="strict");var ke=[],rt=[],Mt=[];return ge.forEach(function(Er,Hr){var qr=Ot.get(Er);if(qr>Z?(Mt.push(!0),qr-=Z):Mt.push(!1),["normal","auto","loose"].indexOf(Ce)!==-1&&[8208,8211,12316,12448].indexOf(Er)!==-1)return rt.push(Hr),ke.push(Ne);if(qr===ue||qr===We){if(Hr===0)return rt.push(Hr),ke.push(At);var mn=ke[Hr-1];return Ar.indexOf(mn)===-1?(rt.push(rt[Hr-1]),ke.push(mn)):(rt.push(Hr),ke.push(At))}if(rt.push(Hr),qr===bt)return ke.push(Ce==="strict"?ne:st);if(qr===ct)return ke.push(At);if(qr===ft)return ke.push(At);if(qr===Wt)return Er>=131072&&Er<=196605||Er>=196608&&Er<=262141?ke.push(st):ke.push(At);ke.push(qr)}),[rt,ke,Mt]},Ln=function(ge,Ce,ke,rt){var Mt=rt[ke];if(Array.isArray(ge)?ge.indexOf(Mt)!==-1:ge===Mt)for(var Er=ke;Er<=rt.length;){Er++;var Hr=rt[Er];if(Hr===Ce)return!0;if(Hr!==q)break}if(Mt===q)for(var Er=ke;Er>0;){Er--;var qr=rt[Er];if(Array.isArray(ge)?ge.indexOf(qr)!==-1:ge===qr)for(var mn=ke;mn<=rt.length;){mn++;var Hr=rt[mn];if(Hr===Ce)return!0;if(Hr!==q)break}if(qr!==q)break}return!1},tt=function(ge,Ce){for(var ke=ge;ke>=0;){var rt=Ce[ke];if(rt===q)ke--;else return rt}return 0},nt=function(ge,Ce,ke,rt,Mt){if(ke[rt]===0)return er;var Er=rt-1;if(Array.isArray(Mt)&&Mt[Er]===!0)return er;var Hr=Er-1,qr=Er+1,mn=Ce[Er],ai=Hr>=0?Ce[Hr]:0,Zn=Ce[qr];if(mn===Q&&Zn===oe)return er;if(qe.indexOf(mn)!==-1)return Fr;if(qe.indexOf(Zn)!==-1)return er;if(tr.indexOf(Zn)!==-1)return er;if(tt(Er,Ce)===Ie)return nr;if(Ot.get(ge[Er])===We)return er;if((mn===St||mn===Et)&&Ot.get(ge[qr])===We)return er;if(mn===me||Zn===me)return er;if(mn===X)return er;if([q,J,de].indexOf(mn)===-1&&Zn===X)return er;if([we,De,Ee,Ve,Fe].indexOf(Zn)!==-1)return er;if(tt(Er,Ce)===ee)return er;if(Ln(Ae,ee,Er,Ce))return er;if(Ln([we,De],ne,Er,Ce))return er;if(Ln($,$,Er,Ce))return er;if(mn===q)return nr;if(mn===Ae||Zn===Ae)return er;if(Zn===Ne||mn===Ne)return nr;if([J,de,ne].indexOf(Zn)!==-1||mn===le)return er;if(ai===ie&&vn.indexOf(mn)!==-1)return er;if(mn===Fe&&Zn===ie)return er;if(Zn===ce)return er;if(lt.indexOf(Zn)!==-1&&mn===Ke||lt.indexOf(mn)!==-1&&Zn===Ke)return er;if(mn===it&&[st,St,Et].indexOf(Zn)!==-1||[st,St,Et].indexOf(mn)!==-1&&Zn===Oe)return er;if(lt.indexOf(mn)!==-1&&xr.indexOf(Zn)!==-1||xr.indexOf(mn)!==-1&<.indexOf(Zn)!==-1)return er;if([it,Oe].indexOf(mn)!==-1&&(Zn===Ke||[ee,de].indexOf(Zn)!==-1&&Ce[qr+1]===Ke)||[ee,de].indexOf(mn)!==-1&&Zn===Ke||mn===Ke&&[Ke,Fe,Ve].indexOf(Zn)!==-1)return er;if([Ke,Fe,Ve,we,De].indexOf(Zn)!==-1)for(var ci=Er;ci>=0;){var la=Ce[ci];if(la===Ke)return er;if([Fe,Ve].indexOf(la)!==-1)ci--;else break}if([it,Oe].indexOf(Zn)!==-1)for(var ci=[we,De].indexOf(mn)!==-1?Hr:Er;ci>=0;){var la=Ce[ci];if(la===Ke)return er;if([Fe,Ve].indexOf(la)!==-1)ci--;else break}if(Qe===mn&&[Qe,ve,je,pe].indexOf(Zn)!==-1||[ve,je].indexOf(mn)!==-1&&[ve,Bt].indexOf(Zn)!==-1||[Bt,pe].indexOf(mn)!==-1&&Zn===Bt)return er;if(fr.indexOf(mn)!==-1&&[ce,Oe].indexOf(Zn)!==-1||fr.indexOf(Zn)!==-1&&mn===it)return er;if(lt.indexOf(mn)!==-1&<.indexOf(Zn)!==-1)return er;if(mn===Ve&<.indexOf(Zn)!==-1)return er;if(lt.concat(Ke).indexOf(mn)!==-1&&Zn===ee&&or.indexOf(ge[qr])===-1||lt.concat(Ke).indexOf(Zn)!==-1&&mn===De)return er;if(mn===qt&&Zn===qt){for(var pa=ke[Er],Ea=1;pa>0&&(pa--,Ce[pa]===qt);)Ea++;if(Ea%2!==0)return er}return mn===St&&Zn===Et?er:nr},Te=function(ge,Ce){Ce||(Ce={lineBreak:"normal",wordBreak:"normal"});var ke=$r(ge,Ce.lineBreak),rt=ke[0],Mt=ke[1],Er=ke[2];(Ce.wordBreak==="break-all"||Ce.wordBreak==="break-word")&&(Mt=Mt.map(function(qr){return[Ke,At,ct].indexOf(qr)!==-1?st:qr}));var Hr=Ce.wordBreak==="keep-all"?Er.map(function(qr,mn){return qr&&ge[mn]>=19968&&ge[mn]<=40959}):void 0;return[rt,Mt,Hr]},Me=function(){function $t(ge,Ce,ke,rt){this.codePoints=ge,this.required=Ce===Fr,this.start=ke,this.end=rt}return $t.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},$t}(),Xe=function(ge,Ce){var ke=t(ge),rt=Te(ke,Ce),Mt=rt[0],Er=rt[1],Hr=rt[2],qr=ke.length,mn=0,ai=0;return{next:function(){if(ai>=qr)return{done:!0,value:null};for(var ci=er;ai<qr&&(ci=nt(ke,Er,Mt,++ai,Hr))===er;);if(ci!==er||ai===qr){var la=new Me(ke,ci,mn,ai);return mn=ai,{value:la,done:!1}}return{done:!0,value:null}}}},at=1<<0,zt=1<<1,kt=1<<2,Xt=1<<3,Dr=10,Pr=47,cn=92,jt=9,gt=32,dt=34,Qt=61,Jt=35,xt=36,Pt=37,yt=39,Ut=40,pr=41,sr=95,ir=45,Yr=33,Jr=60,In=62,Nn=64,zn=91,ei=93,Ai=61,Pi=123,$e=63,_e=125,Be=124,He=126,Je=128,Ye=65533,et=42,wt=43,ut=44,Ft=58,wr=59,hr=46,Nr=0,Kt=8,un=11,ar=14,Gr=31,Br=127,gr=-1,Sn=48,Pn=97,ii=101,oi=102,ti=117,bi=122,kn=65,Ii=69,gn=70,Vr=85,xn=90,tn=function(ge){return ge>=Sn&&ge<=57},ui=function(ge){return ge>=55296&&ge<=57343},qn=function(ge){return tn(ge)||ge>=kn&&ge<=gn||ge>=Pn&&ge<=oi},wi=function(ge){return ge>=Pn&&ge<=bi},Qn=function(ge){return ge>=kn&&ge<=xn},Hi=function(ge){return wi(ge)||Qn(ge)},ri=function(ge){return ge>=Je},Mi=function(ge){return ge===Dr||ge===jt||ge===gt},dn=function(ge){return Hi(ge)||ri(ge)||ge===sr},Ur=function(ge){return dn(ge)||tn(ge)||ge===ir},bn=function(ge){return ge>=Nr&&ge<=Kt||ge===un||ge>=ar&&ge<=Gr||ge===Br},Mn=function(ge,Ce){return ge!==cn?!1:Ce!==Dr},Gn=function(ge,Ce,ke){return ge===ir?dn(Ce)||Mn(Ce,ke):dn(ge)?!0:!!(ge===cn&&Mn(ge,Ce))},$n=function(ge,Ce,ke){return ge===wt||ge===ir?tn(Ce)?!0:Ce===hr&&tn(ke):ge===hr?tn(Ce):tn(ge)},hi=function(ge){var Ce=0,ke=1;(ge[Ce]===wt||ge[Ce]===ir)&&(ge[Ce]===ir&&(ke=-1),Ce++);for(var rt=[];tn(ge[Ce]);)rt.push(ge[Ce++]);var Mt=rt.length?parseInt(l.apply(void 0,rt),10):0;ge[Ce]===hr&&Ce++;for(var Er=[];tn(ge[Ce]);)Er.push(ge[Ce++]);var Hr=Er.length,qr=Hr?parseInt(l.apply(void 0,Er),10):0;(ge[Ce]===Ii||ge[Ce]===ii)&&Ce++;var mn=1;(ge[Ce]===wt||ge[Ce]===ir)&&(ge[Ce]===ir&&(mn=-1),Ce++);for(var ai=[];tn(ge[Ce]);)ai.push(ge[Ce++]);var Zn=ai.length?parseInt(l.apply(void 0,ai),10):0;return ke*(Mt+qr*Math.pow(10,-Hr))*Math.pow(10,mn*Zn)},fi={type:2},gi={type:3},Wi={type:4},na={type:13},$i={type:8},Ha={type:21},pi={type:9},ln={type:10},_i={type:11},Ji={type:12},Fi={type:14},ea={type:23},Vt={type:1},Xr={type:25},nn={type:24},fn={type:26},Ze={type:27},Lt={type:28},cr={type:29},lr={type:31},_r={type:32},Rr=function(){function $t(){this._value=[]}return $t.prototype.write=function(ge){this._value=this._value.concat(t(ge))},$t.prototype.read=function(){for(var ge=[],Ce=this.consumeToken();Ce!==_r;)ge.push(Ce),Ce=this.consumeToken();return ge},$t.prototype.consumeToken=function(){var ge=this.consumeCodePoint();switch(ge){case dt:return this.consumeStringToken(dt);case Jt:var Ce=this.peekCodePoint(0),ke=this.peekCodePoint(1),rt=this.peekCodePoint(2);if(Ur(Ce)||Mn(ke,rt)){var Mt=Gn(Ce,ke,rt)?zt:at,Er=this.consumeName();return{type:5,value:Er,flags:Mt}}break;case xt:if(this.peekCodePoint(0)===Qt)return this.consumeCodePoint(),na;break;case yt:return this.consumeStringToken(yt);case Ut:return fi;case pr:return gi;case et:if(this.peekCodePoint(0)===Qt)return this.consumeCodePoint(),Fi;break;case wt:if($n(ge,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ge),this.consumeNumericToken();break;case ut:return Wi;case ir:var Hr=ge,qr=this.peekCodePoint(0),mn=this.peekCodePoint(1);if($n(Hr,qr,mn))return this.reconsumeCodePoint(ge),this.consumeNumericToken();if(Gn(Hr,qr,mn))return this.reconsumeCodePoint(ge),this.consumeIdentLikeToken();if(qr===ir&&mn===In)return this.consumeCodePoint(),this.consumeCodePoint(),nn;break;case hr:if($n(ge,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ge),this.consumeNumericToken();break;case Pr:if(this.peekCodePoint(0)===et)for(this.consumeCodePoint();;){var ai=this.consumeCodePoint();if(ai===et&&(ai=this.consumeCodePoint(),ai===Pr))return this.consumeToken();if(ai===gr)return this.consumeToken()}break;case Ft:return fn;case wr:return Ze;case Jr:if(this.peekCodePoint(0)===Yr&&this.peekCodePoint(1)===ir&&this.peekCodePoint(2)===ir)return this.consumeCodePoint(),this.consumeCodePoint(),Xr;break;case Nn:var Zn=this.peekCodePoint(0),ci=this.peekCodePoint(1),la=this.peekCodePoint(2);if(Gn(Zn,ci,la)){var Er=this.consumeName();return{type:7,value:Er}}break;case zn:return Lt;case cn:if(Mn(ge,this.peekCodePoint(0)))return this.reconsumeCodePoint(ge),this.consumeIdentLikeToken();break;case ei:return cr;case Ai:if(this.peekCodePoint(0)===Qt)return this.consumeCodePoint(),$i;break;case Pi:return _i;case _e:return Ji;case ti:case Vr:var pa=this.peekCodePoint(0),Ea=this.peekCodePoint(1);return pa===wt&&(qn(Ea)||Ea===$e)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ge),this.consumeIdentLikeToken();case Be:if(this.peekCodePoint(0)===Qt)return this.consumeCodePoint(),pi;if(this.peekCodePoint(0)===Be)return this.consumeCodePoint(),Ha;break;case He:if(this.peekCodePoint(0)===Qt)return this.consumeCodePoint(),ln;break;case gr:return _r}return Mi(ge)?(this.consumeWhiteSpace(),lr):tn(ge)?(this.reconsumeCodePoint(ge),this.consumeNumericToken()):dn(ge)?(this.reconsumeCodePoint(ge),this.consumeIdentLikeToken()):{type:6,value:l(ge)}},$t.prototype.consumeCodePoint=function(){var ge=this._value.shift();return typeof ge=="undefined"?-1:ge},$t.prototype.reconsumeCodePoint=function(ge){this._value.unshift(ge)},$t.prototype.peekCodePoint=function(ge){return ge>=this._value.length?-1:this._value[ge]},$t.prototype.consumeUnicodeRangeToken=function(){for(var ge=[],Ce=this.consumeCodePoint();qn(Ce)&&ge.length<6;)ge.push(Ce),Ce=this.consumeCodePoint();for(var ke=!1;Ce===$e&&ge.length<6;)ge.push(Ce),Ce=this.consumeCodePoint(),ke=!0;if(ke){var rt=parseInt(l.apply(void 0,ge.map(function(qr){return qr===$e?Sn:qr})),16),Mt=parseInt(l.apply(void 0,ge.map(function(qr){return qr===$e?gn:qr})),16);return{type:30,start:rt,end:Mt}}var Er=parseInt(l.apply(void 0,ge),16);if(this.peekCodePoint(0)===ir&&qn(this.peekCodePoint(1))){this.consumeCodePoint(),Ce=this.consumeCodePoint();for(var Hr=[];qn(Ce)&&Hr.length<6;)Hr.push(Ce),Ce=this.consumeCodePoint();var Mt=parseInt(l.apply(void 0,Hr),16);return{type:30,start:Er,end:Mt}}else return{type:30,start:Er,end:Er}},$t.prototype.consumeIdentLikeToken=function(){var ge=this.consumeName();return ge.toLowerCase()==="url"&&this.peekCodePoint(0)===Ut?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ut?(this.consumeCodePoint(),{type:19,value:ge}):{type:20,value:ge}},$t.prototype.consumeUrlToken=function(){var ge=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===gr)return{type:22,value:""};var Ce=this.peekCodePoint(0);if(Ce===yt||Ce===dt){var ke=this.consumeStringToken(this.consumeCodePoint());return ke.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===gr||this.peekCodePoint(0)===pr)?(this.consumeCodePoint(),{type:22,value:ke.value}):(this.consumeBadUrlRemnants(),ea)}for(;;){var rt=this.consumeCodePoint();if(rt===gr||rt===pr)return{type:22,value:l.apply(void 0,ge)};if(Mi(rt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===gr||this.peekCodePoint(0)===pr?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,ge)}):(this.consumeBadUrlRemnants(),ea);if(rt===dt||rt===yt||rt===Ut||bn(rt))return this.consumeBadUrlRemnants(),ea;if(rt===cn)if(Mn(rt,this.peekCodePoint(0)))ge.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ea;else ge.push(rt)}},$t.prototype.consumeWhiteSpace=function(){for(;Mi(this.peekCodePoint(0));)this.consumeCodePoint()},$t.prototype.consumeBadUrlRemnants=function(){for(;;){var ge=this.consumeCodePoint();if(ge===pr||ge===gr)return;Mn(ge,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},$t.prototype.consumeStringSlice=function(ge){for(var Ce=5e4,ke="";ge>0;){var rt=Math.min(Ce,ge);ke+=l.apply(void 0,this._value.splice(0,rt)),ge-=rt}return this._value.shift(),ke},$t.prototype.consumeStringToken=function(ge){var Ce="",ke=0;do{var rt=this._value[ke];if(rt===gr||rt===void 0||rt===ge)return Ce+=this.consumeStringSlice(ke),{type:0,value:Ce};if(rt===Dr)return this._value.splice(0,ke),Vt;if(rt===cn){var Mt=this._value[ke+1];Mt!==gr&&Mt!==void 0&&(Mt===Dr?(Ce+=this.consumeStringSlice(ke),ke=-1,this._value.shift()):Mn(rt,Mt)&&(Ce+=this.consumeStringSlice(ke),Ce+=l(this.consumeEscapedCodePoint()),ke=-1))}ke++}while(!0)},$t.prototype.consumeNumber=function(){var ge=[],Ce=kt,ke=this.peekCodePoint(0);for((ke===wt||ke===ir)&&ge.push(this.consumeCodePoint());tn(this.peekCodePoint(0));)ge.push(this.consumeCodePoint());ke=this.peekCodePoint(0);var rt=this.peekCodePoint(1);if(ke===hr&&tn(rt))for(ge.push(this.consumeCodePoint(),this.consumeCodePoint()),Ce=Xt;tn(this.peekCodePoint(0));)ge.push(this.consumeCodePoint());ke=this.peekCodePoint(0),rt=this.peekCodePoint(1);var Mt=this.peekCodePoint(2);if((ke===Ii||ke===ii)&&((rt===wt||rt===ir)&&tn(Mt)||tn(rt)))for(ge.push(this.consumeCodePoint(),this.consumeCodePoint()),Ce=Xt;tn(this.peekCodePoint(0));)ge.push(this.consumeCodePoint());return[hi(ge),Ce]},$t.prototype.consumeNumericToken=function(){var ge=this.consumeNumber(),Ce=ge[0],ke=ge[1],rt=this.peekCodePoint(0),Mt=this.peekCodePoint(1),Er=this.peekCodePoint(2);if(Gn(rt,Mt,Er)){var Hr=this.consumeName();return{type:15,number:Ce,flags:ke,unit:Hr}}return rt===Pt?(this.consumeCodePoint(),{type:16,number:Ce,flags:ke}):{type:17,number:Ce,flags:ke}},$t.prototype.consumeEscapedCodePoint=function(){var ge=this.consumeCodePoint();if(qn(ge)){for(var Ce=l(ge);qn(this.peekCodePoint(0))&&Ce.length<6;)Ce+=l(this.consumeCodePoint());Mi(this.peekCodePoint(0))&&this.consumeCodePoint();var ke=parseInt(Ce,16);return ke===0||ui(ke)||ke>1114111?Ye:ke}return ge===gr?Ye:ge},$t.prototype.consumeName=function(){for(var ge="";;){var Ce=this.consumeCodePoint();if(Ur(Ce))ge+=l(Ce);else if(Mn(Ce,this.peekCodePoint(0)))ge+=l(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ce),ge}},$t}(),Wr=function(){function $t(ge){this._tokens=ge}return $t.create=function(ge){var Ce=new Rr;return Ce.write(ge),new $t(Ce.read())},$t.parseValue=function(ge){return $t.create(ge).parseComponentValue()},$t.parseValues=function(ge){return $t.create(ge).parseComponentValues()},$t.prototype.parseComponentValue=function(){for(var ge=this.consumeToken();ge.type===31;)ge=this.consumeToken();if(ge.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ge);var Ce=this.consumeComponentValue();do ge=this.consumeToken();while(ge.type===31);if(ge.type===32)return Ce;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},$t.prototype.parseComponentValues=function(){for(var ge=[];;){var Ce=this.consumeComponentValue();if(Ce.type===32)return ge;ge.push(Ce),ge.push()}},$t.prototype.consumeComponentValue=function(){var ge=this.consumeToken();switch(ge.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ge.type);case 19:return this.consumeFunction(ge)}return ge},$t.prototype.consumeSimpleBlock=function(ge){for(var Ce={type:ge,values:[]},ke=this.consumeToken();;){if(ke.type===32||Kn(ke,ge))return Ce;this.reconsumeToken(ke),Ce.values.push(this.consumeComponentValue()),ke=this.consumeToken()}},$t.prototype.consumeFunction=function(ge){for(var Ce={name:ge.value,values:[],type:18};;){var ke=this.consumeToken();if(ke.type===32||ke.type===3)return Ce;this.reconsumeToken(ke),Ce.values.push(this.consumeComponentValue())}},$t.prototype.consumeToken=function(){var ge=this._tokens.shift();return typeof ge=="undefined"?_r:ge},$t.prototype.reconsumeToken=function(ge){this._tokens.unshift(ge)},$t}(),on=function(ge){return ge.type===15},En=function(ge){return ge.type===17},An=function(ge){return ge.type===20},Rn=function(ge){return ge.type===0},Un=function(ge,Ce){return An(ge)&&ge.value===Ce},wn=function(ge){return ge.type!==31},_n=function(ge){return ge.type!==31&&ge.type!==4},Cn=function(ge){var Ce=[],ke=[];return ge.forEach(function(rt){if(rt.type===4){if(ke.length===0)throw new Error("Error parsing function args, zero tokens for arg");Ce.push(ke),ke=[];return}rt.type!==31&&ke.push(rt)}),ke.length&&Ce.push(ke),Ce},Kn=function(ge,Ce){return Ce===11&&ge.type===12||Ce===28&&ge.type===29?!0:Ce===2&&ge.type===3},Yn=function(ge){return ge.type===17||ge.type===15},ni=function(ge){return ge.type===16||Yn(ge)},yi=function(ge){return ge.length>1?[ge[0],ge[1]]:[ge[0]]},li={type:17,number:0,flags:kt},Oi={type:16,number:50,flags:kt},ki={type:16,number:100,flags:kt},Si=function(ge,Ce,ke){var rt=ge[0],Mt=ge[1];return[mi(rt,Ce),mi(typeof Mt!="undefined"?Mt:rt,ke)]},mi=function(ge,Ce){if(ge.type===16)return ge.number/100*Ce;if(on(ge))switch(ge.unit){case"rem":case"em":return 16*ge.number;case"px":default:return ge.number}return ge.number},Li="deg",Wn="grad",Di="rad",zi="turn",yr={name:"angle",parse:function(ge,Ce){if(Ce.type===15)switch(Ce.unit){case Li:return Math.PI*Ce.number/180;case Wn:return Math.PI/200*Ce.number;case Di:return Ce.number;case zi:return Math.PI*2*Ce.number}throw new Error("Unsupported angle type")}},Mr=function(ge){return ge.type===15&&(ge.unit===Li||ge.unit===Wn||ge.unit===Di||ge.unit===zi)},Qr=function(ge){var Ce=ge.filter(An).map(function(ke){return ke.value}).join(" ");switch(Ce){case"to bottom right":case"to right bottom":case"left top":case"top left":return[li,li];case"to top":case"bottom":return Ir(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[li,ki];case"to right":case"left":return Ir(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ki,ki];case"to bottom":case"top":return Ir(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ki,li];case"to left":case"right":return Ir(270)}return 0},Ir=function(ge){return Math.PI*ge/180},Gt={name:"color",parse:function(ge,Ce){if(Ce.type===18){var ke=Fn[Ce.name];if(typeof ke=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Ce.name+'"');return ke(ge,Ce.values)}if(Ce.type===5){if(Ce.value.length===3){var rt=Ce.value.substring(0,1),Mt=Ce.value.substring(1,2),Er=Ce.value.substring(2,3);return jr(parseInt(rt+rt,16),parseInt(Mt+Mt,16),parseInt(Er+Er,16),1)}if(Ce.value.length===4){var rt=Ce.value.substring(0,1),Mt=Ce.value.substring(1,2),Er=Ce.value.substring(2,3),Hr=Ce.value.substring(3,4);return jr(parseInt(rt+rt,16),parseInt(Mt+Mt,16),parseInt(Er+Er,16),parseInt(Hr+Hr,16)/255)}if(Ce.value.length===6){var rt=Ce.value.substring(0,2),Mt=Ce.value.substring(2,4),Er=Ce.value.substring(4,6);return jr(parseInt(rt,16),parseInt(Mt,16),parseInt(Er,16),1)}if(Ce.value.length===8){var rt=Ce.value.substring(0,2),Mt=Ce.value.substring(2,4),Er=Ce.value.substring(4,6),Hr=Ce.value.substring(6,8);return jr(parseInt(rt,16),parseInt(Mt,16),parseInt(Er,16),parseInt(Hr,16)/255)}}if(Ce.type===20){var qr=Jn[Ce.value.toUpperCase()];if(typeof qr!="undefined")return qr}return Jn.TRANSPARENT}},Sr=function(ge){return(255&ge)===0},Zt=function(ge){var Ce=255&ge,ke=255&ge>>8,rt=255&ge>>16,Mt=255&ge>>24;return Ce<255?"rgba("+Mt+","+rt+","+ke+","+Ce/255+")":"rgb("+Mt+","+rt+","+ke+")"},jr=function(ge,Ce,ke,rt){return(ge<<24|Ce<<16|ke<<8|Math.round(rt*255)<<0)>>>0},Kr=function(ge,Ce){if(ge.type===17)return ge.number;if(ge.type===16){var ke=Ce===3?1:255;return Ce===3?ge.number/100*ke:Math.round(ge.number/100*ke)}return 0},pn=function(ge,Ce){var ke=Ce.filter(_n);if(ke.length===3){var rt=ke.map(Kr),Mt=rt[0],Er=rt[1],Hr=rt[2];return jr(Mt,Er,Hr,1)}if(ke.length===4){var qr=ke.map(Kr),Mt=qr[0],Er=qr[1],Hr=qr[2],mn=qr[3];return jr(Mt,Er,Hr,mn)}return 0};function sn($t,ge,Ce){return Ce<0&&(Ce+=1),Ce>=1&&(Ce-=1),Ce<1/6?(ge-$t)*Ce*6+$t:Ce<1/2?ge:Ce<2/3?(ge-$t)*6*(2/3-Ce)+$t:$t}var yn=function(ge,Ce){var ke=Ce.filter(_n),rt=ke[0],Mt=ke[1],Er=ke[2],Hr=ke[3],qr=(rt.type===17?Ir(rt.number):yr.parse(ge,rt))/(Math.PI*2),mn=ni(Mt)?Mt.number/100:0,ai=ni(Er)?Er.number/100:0,Zn=typeof Hr!="undefined"&&ni(Hr)?mi(Hr,1):1;if(mn===0)return jr(ai*255,ai*255,ai*255,1);var ci=ai<=.5?ai*(mn+1):ai+mn-ai*mn,la=ai*2-ci,pa=sn(la,ci,qr+1/3),Ea=sn(la,ci,qr),so=sn(la,ci,qr-1/3);return jr(pa*255,Ea*255,so*255,Zn)},Fn={hsl:yn,hsla:yn,rgb:pn,rgba:pn},Xn=function(ge,Ce){return Gt.parse(ge,Wr.create(Ce).parseComponentValue())},Jn={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},Ti={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ge,Ce){return Ce.map(function(ke){if(An(ke))switch(ke.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ta={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},oa=function(ge,Ce){var ke=Gt.parse(ge,Ce[0]),rt=Ce[1];return rt&&ni(rt)?{color:ke,stop:rt}:{color:ke,stop:null}},da=function(ge,Ce){var ke=ge[0],rt=ge[ge.length-1];ke.stop===null&&(ke.stop=li),rt.stop===null&&(rt.stop=ki);for(var Mt=[],Er=0,Hr=0;Hr<ge.length;Hr++){var qr=ge[Hr].stop;if(qr!==null){var mn=mi(qr,Ce);mn>Er?Mt.push(mn):Mt.push(Er),Er=mn}else Mt.push(null)}for(var ai=null,Hr=0;Hr<Mt.length;Hr++){var Zn=Mt[Hr];if(Zn===null)ai===null&&(ai=Hr);else if(ai!==null){for(var ci=Hr-ai,la=Mt[ai-1],pa=(Zn-la)/(ci+1),Ea=1;Ea<=ci;Ea++)Mt[ai+Ea-1]=pa*Ea;ai=null}}return ge.map(function(so,Va){var Fa=so.color;return{color:Fa,stop:Math.max(Math.min(1,Mt[Va]/Ce),0)}})},ca=function(ge,Ce,ke){var rt=Ce/2,Mt=ke/2,Er=mi(ge[0],Ce)-rt,Hr=Mt-mi(ge[1],ke);return(Math.atan2(Hr,Er)+Math.PI*2)%(Math.PI*2)},ma=function(ge,Ce,ke){var rt=typeof ge=="number"?ge:ca(ge,Ce,ke),Mt=Math.abs(Ce*Math.sin(rt))+Math.abs(ke*Math.cos(rt)),Er=Ce/2,Hr=ke/2,qr=Mt/2,mn=Math.sin(rt-Math.PI/2)*qr,ai=Math.cos(rt-Math.PI/2)*qr;return[Mt,Er-ai,Er+ai,Hr-mn,Hr+mn]},Ui=function(ge,Ce){return Math.sqrt(ge*ge+Ce*Ce)},Ni=function(ge,Ce,ke,rt,Mt){var Er=[[0,0],[0,Ce],[ge,0],[ge,Ce]];return Er.reduce(function(Hr,qr){var mn=qr[0],ai=qr[1],Zn=Ui(ke-mn,rt-ai);return(Mt?Zn<Hr.optimumDistance:Zn>Hr.optimumDistance)?{optimumCorner:qr,optimumDistance:Zn}:Hr},{optimumDistance:Mt?Infinity:-Infinity,optimumCorner:null}).optimumCorner},ra=function(ge,Ce,ke,rt,Mt){var Er=0,Hr=0;switch(ge.size){case 0:ge.shape===0?Er=Hr=Math.min(Math.abs(Ce),Math.abs(Ce-rt),Math.abs(ke),Math.abs(ke-Mt)):ge.shape===1&&(Er=Math.min(Math.abs(Ce),Math.abs(Ce-rt)),Hr=Math.min(Math.abs(ke),Math.abs(ke-Mt)));break;case 2:if(ge.shape===0)Er=Hr=Math.min(Ui(Ce,ke),Ui(Ce,ke-Mt),Ui(Ce-rt,ke),Ui(Ce-rt,ke-Mt));else if(ge.shape===1){var qr=Math.min(Math.abs(ke),Math.abs(ke-Mt))/Math.min(Math.abs(Ce),Math.abs(Ce-rt)),mn=Ni(rt,Mt,Ce,ke,!0),ai=mn[0],Zn=mn[1];Er=Ui(ai-Ce,(Zn-ke)/qr),Hr=qr*Er}break;case 1:ge.shape===0?Er=Hr=Math.max(Math.abs(Ce),Math.abs(Ce-rt),Math.abs(ke),Math.abs(ke-Mt)):ge.shape===1&&(Er=Math.max(Math.abs(Ce),Math.abs(Ce-rt)),Hr=Math.max(Math.abs(ke),Math.abs(ke-Mt)));break;case 3:if(ge.shape===0)Er=Hr=Math.max(Ui(Ce,ke),Ui(Ce,ke-Mt),Ui(Ce-rt,ke),Ui(Ce-rt,ke-Mt));else if(ge.shape===1){var qr=Math.max(Math.abs(ke),Math.abs(ke-Mt))/Math.max(Math.abs(Ce),Math.abs(Ce-rt)),ci=Ni(rt,Mt,Ce,ke,!1),ai=ci[0],Zn=ci[1];Er=Ui(ai-Ce,(Zn-ke)/qr),Hr=qr*Er}break}return Array.isArray(ge.size)&&(Er=mi(ge.size[0],rt),Hr=ge.size.length===2?mi(ge.size[1],Mt):Er),[Er,Hr]},qi=function(ge,Ce){var ke=Ir(180),rt=[];return Cn(Ce).forEach(function(Mt,Er){if(Er===0){var Hr=Mt[0];if(Hr.type===20&&Hr.value==="to"){ke=Qr(Mt);return}else if(Mr(Hr)){ke=yr.parse(ge,Hr);return}}var qr=oa(ge,Mt);rt.push(qr)}),{angle:ke,stops:rt,type:1}},Aa=function(ge,Ce){var ke=Ir(180),rt=[];return Cn(Ce).forEach(function(Mt,Er){if(Er===0){var Hr=Mt[0];if(Hr.type===20&&["top","left","right","bottom"].indexOf(Hr.value)!==-1){ke=Qr(Mt);return}else if(Mr(Hr)){ke=(yr.parse(ge,Hr)+Ir(270))%Ir(360);return}}var qr=oa(ge,Mt);rt.push(qr)}),{angle:ke,stops:rt,type:1}},Oa=function(ge,Ce){var ke=Ir(180),rt=[],Mt=1,Er=0,Hr=3,qr=[];return Cn(Ce).forEach(function(mn,ai){var Zn=mn[0];if(ai===0){if(An(Zn)&&Zn.value==="linear"){Mt=1;return}else if(An(Zn)&&Zn.value==="radial"){Mt=2;return}}if(Zn.type===18){if(Zn.name==="from"){var ci=Gt.parse(ge,Zn.values[0]);rt.push({stop:li,color:ci})}else if(Zn.name==="to"){var ci=Gt.parse(ge,Zn.values[0]);rt.push({stop:ki,color:ci})}else if(Zn.name==="color-stop"){var la=Zn.values.filter(_n);if(la.length===2){var ci=Gt.parse(ge,la[1]),pa=la[0];En(pa)&&rt.push({stop:{type:16,number:pa.number*100,flags:pa.flags},color:ci})}}}}),Mt===1?{angle:(ke+Ir(180))%Ir(360),stops:rt,type:Mt}:{size:Hr,shape:Er,stops:rt,position:qr,type:Mt}},Zi="closest-side",Gi="farthest-side",La="closest-corner",va="farthest-corner",Ci="circle",Sa="ellipse",Da="cover",Na="contain",Ua=function(ge,Ce){var ke=0,rt=3,Mt=[],Er=[];return Cn(Ce).forEach(function(Hr,qr){var mn=!0;if(qr===0){var ai=!1;mn=Hr.reduce(function(ci,la){if(ai)if(An(la))switch(la.value){case"center":return Er.push(Oi),ci;case"top":case"left":return Er.push(li),ci;case"right":case"bottom":return Er.push(ki),ci}else(ni(la)||Yn(la))&&Er.push(la);else if(An(la))switch(la.value){case Ci:return ke=0,!1;case Sa:return ke=1,!1;case"at":return ai=!0,!1;case Zi:return rt=0,!1;case Da:case Gi:return rt=1,!1;case Na:case La:return rt=2,!1;case va:return rt=3,!1}else if(Yn(la)||ni(la))return Array.isArray(rt)||(rt=[]),rt.push(la),!1;return ci},mn)}if(mn){var Zn=oa(ge,Hr);Mt.push(Zn)}}),{size:rt,shape:ke,stops:Mt,position:Er,type:2}},Pa=function(ge,Ce){var ke=0,rt=3,Mt=[],Er=[];return Cn(Ce).forEach(function(Hr,qr){var mn=!0;if(qr===0?mn=Hr.reduce(function(Zn,ci){if(An(ci))switch(ci.value){case"center":return Er.push(Oi),!1;case"top":case"left":return Er.push(li),!1;case"right":case"bottom":return Er.push(ki),!1}else if(ni(ci)||Yn(ci))return Er.push(ci),!1;return Zn},mn):qr===1&&(mn=Hr.reduce(function(Zn,ci){if(An(ci))switch(ci.value){case Ci:return ke=0,!1;case Sa:return ke=1,!1;case Na:case Zi:return rt=0,!1;case Gi:return rt=1,!1;case La:return rt=2,!1;case Da:case va:return rt=3,!1}else if(Yn(ci)||ni(ci))return Array.isArray(rt)||(rt=[]),rt.push(ci),!1;return Zn},mn)),mn){var ai=oa(ge,Hr);Mt.push(ai)}}),{size:rt,shape:ke,stops:Mt,position:Er,type:2}},za=function(ge){return ge.type===1},xa=function(ge){return ge.type===2},ja={name:"image",parse:function(ge,Ce){if(Ce.type===22){var ke={url:Ce.value,type:0};return ge.cache.addImage(Ce.value),ke}if(Ce.type===18){var rt=ia[Ce.name];if(typeof rt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Ce.name+'"');return rt(ge,Ce.values)}throw new Error("Unsupported image type "+Ce.type)}};function io($t){return!($t.type===20&&$t.value==="none")&&($t.type!==18||!!ia[$t.name])}var ia={"linear-gradient":qi,"-moz-linear-gradient":Aa,"-ms-linear-gradient":Aa,"-o-linear-gradient":Aa,"-webkit-linear-gradient":Aa,"radial-gradient":Ua,"-moz-radial-gradient":Pa,"-ms-radial-gradient":Pa,"-o-radial-gradient":Pa,"-webkit-radial-gradient":Pa,"-webkit-gradient":Oa},lo={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ce){if(Ce.length===0)return[];var ke=Ce[0];return ke.type===20&&ke.value==="none"?[]:Ce.filter(function(rt){return _n(rt)&&io(rt)}).map(function(rt){return ja.parse(ge,rt)})}},Xa={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ge,Ce){return Ce.map(function(ke){if(An(ke))switch(ke.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ta={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ge,Ce){return Cn(Ce).map(function(ke){return ke.filter(ni)}).map(yi)}},Qa={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ge,Ce){return Cn(Ce).map(function(ke){return ke.filter(An).map(function(rt){return rt.value}).join(" ")}).map(Ra)}},Ra=function(ge){switch(ge){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},_a;(function($t){$t.AUTO="auto",$t.CONTAIN="contain",$t.COVER="cover"})(_a||(_a={}));var yo={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ge,Ce){return Cn(Ce).map(function(ke){return ke.filter(ao)})}},ao=function(ge){return An(ge)||ni(ge)},bo=function(ge){return{name:"border-"+ge+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},co=bo("top"),uo=bo("right"),Ya=bo("bottom"),eo=bo("left"),wa=function(ge){return{name:"border-radius-"+ge,initialValue:"0 0",prefix:!1,type:1,parse:function(ke,rt){return yi(rt.filter(ni))}}},ro=wa("top-left"),fo=wa("top-right"),Bi=wa("bottom-right"),Ma=wa("bottom-left"),Do=function(ge){return{name:"border-"+ge+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(ke,rt){switch(rt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},jo=Do("top"),Vo=Do("right"),Go=Do("bottom"),wo=Do("left"),Ia=function(ge){return{name:"border-"+ge+"-width",initialValue:"0",type:0,prefix:!1,parse:function(ke,rt){return on(rt)?rt.number:0}}},Po=Ia("top"),ds=Ia("right"),ho=Ia("bottom"),Oo=Ia("left"),Ka={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Xo={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"rtl":return 1;case"ltr":default:return 0}}},nl={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ge,Ce){return Ce.filter(An).reduce(function(ke,rt){return ke|Cs(rt.value)},0)}},Cs=function(ge){switch(ge){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},_s={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},xs={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ge,Ce){return Ce.type===20&&Ce.value==="normal"?0:Ce.type===17||Ce.type===15?Ce.number:0}},ps;(function($t){$t.NORMAL="normal",$t.STRICT="strict"})(ps||(ps={}));var Os={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"strict":return ps.STRICT;case"normal":default:return ps.NORMAL}}},Ho={name:"line-height",initialValue:"normal",prefix:!1,type:4},mo=function(ge,Ce){return An(ge)&&ge.value==="normal"?1.2*Ce:ge.type===17?Ce*ge.number:ni(ge)?mi(ge,Ce):Ce},es={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ge,Ce){return Ce.type===20&&Ce.value==="none"?null:ja.parse(ge,Ce)}},Ko={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"inside":return 0;case"outside":default:return 1}}},Bo={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},zr=function(ge){return{name:"margin-"+ge,initialValue:"0",prefix:!1,type:4}},Yo=zr("top"),il=zr("right"),Ks=zr("bottom"),Ps=zr("left"),no={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ge,Ce){return Ce.filter(An).map(function(ke){switch(ke.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},vo={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"break-word":return"break-word";case"normal":default:return"normal"}}},Fo=function(ge){return{name:"padding-"+ge,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ns=Fo("top"),ys=Fo("right"),ms=Fo("bottom"),Is=Fo("left"),ol={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ls={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Xs={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ce){return Ce.length===1&&Un(Ce[0],"none")?[]:Cn(Ce).map(function(ke){for(var rt={color:Jn.TRANSPARENT,offsetX:li,offsetY:li,blur:li},Mt=0,Er=0;Er<ke.length;Er++){var Hr=ke[Er];Yn(Hr)?(Mt===0?rt.offsetX=Hr:Mt===1?rt.offsetY=Hr:rt.blur=Hr,Mt++):rt.color=Gt.parse(ge,Hr)}return rt})}},Bs={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},gs={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(ge,Ce){if(Ce.type===20&&Ce.value==="none")return null;if(Ce.type===18){var ke=Rt[Ce.name];if(typeof ke=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Ce.name+'"');return ke(Ce.values)}return null}},Ns=function(ge){var Ce=ge.filter(function(ke){return ke.type===17}).map(function(ke){return ke.number});return Ce.length===6?Ce:null},Tt=function(ge){var Ce=ge.filter(function(mn){return mn.type===17}).map(function(mn){return mn.number}),ke=Ce[0],rt=Ce[1];Ce[2],Ce[3];var Mt=Ce[4],Er=Ce[5];Ce[6],Ce[7],Ce[8],Ce[9],Ce[10],Ce[11];var Hr=Ce[12],qr=Ce[13];return Ce[14],Ce[15],Ce.length===16?[ke,rt,Mt,Er,Hr,qr]:null},Rt={matrix:Ns,matrix3d:Tt},rn={type:16,number:50,flags:kt},On=[rn,rn],vt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(ge,Ce){var ke=Ce.filter(ni);return ke.length!==2?On:[ke[0],ke[1]]}},se={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},ye;(function($t){$t.NORMAL="normal",$t.BREAK_ALL="break-all",$t.KEEP_ALL="keep-all"})(ye||(ye={}));for(var Se={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"break-all":return ye.BREAK_ALL;case"keep-all":return ye.KEEP_ALL;case"normal":default:return ye.NORMAL}}},Ue={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(ge,Ce){if(Ce.type===20)return{auto:!0,order:0};if(En(Ce))return{auto:!1,order:Ce.number};throw new Error("Invalid z-index number parsed")}},ht={name:"time",parse:function(ge,Ce){if(Ce.type===15)switch(Ce.unit.toLowerCase()){case"s":return 1e3*Ce.number;case"ms":return Ce.number}throw new Error("Unsupported time type")}},Nt={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(ge,Ce){return En(Ce)?Ce.number:1}},br={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Or={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(ge,Ce){return Ce.filter(An).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})}},Zr={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(ge,Ce){var ke=[],rt=[];return Ce.forEach(function(Mt){switch(Mt.type){case 20:case 0:ke.push(Mt.value);break;case 17:ke.push(Mt.number.toString());break;case 4:rt.push(ke.join(" ")),ke.length=0;break}}),ke.length&&rt.push(ke.join(" ")),rt.map(function(Mt){return Mt.indexOf(" ")===-1?Mt:"'"+Mt+"'"})}},Tn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Hn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(ge,Ce){if(En(Ce))return Ce.number;if(An(Ce))switch(Ce.value){case"bold":return 700;case"normal":default:return 400}return 400}},si={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ce){return Ce.filter(An).map(function(ke){return ke.value})}},xi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ce){switch(Ce){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ri=function(ge,Ce){return(ge&Ce)!==0},sa={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ce){if(Ce.length===0)return[];var ke=Ce[0];return ke.type===20&&ke.value==="none"?[]:Ce}},ya={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(ge,Ce){if(Ce.length===0)return null;var ke=Ce[0];if(ke.type===20&&ke.value==="none")return null;for(var rt=[],Mt=Ce.filter(wn),Er=0;Er<Mt.length;Er++){var Hr=Mt[Er],qr=Mt[Er+1];if(Hr.type===20){var mn=qr&&En(qr)?qr.number:1;rt.push({counter:Hr.value,increment:mn})}}return rt}},Ja={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(ge,Ce){if(Ce.length===0)return[];for(var ke=[],rt=Ce.filter(wn),Mt=0;Mt<rt.length;Mt++){var Er=rt[Mt],Hr=rt[Mt+1];if(An(Er)&&Er.value!=="none"){var qr=Hr&&En(Hr)?Hr.number:0;ke.push({counter:Er.value,reset:qr})}}return ke}},$a={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(ge,Ce){return Ce.filter(on).map(function(ke){return ht.parse(ge,ke)})}},to={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(ge,Ce){if(Ce.length===0)return null;var ke=Ce[0];if(ke.type===20&&ke.value==="none")return null;var rt=[],Mt=Ce.filter(Rn);if(Mt.length%2!==0)return null;for(var Er=0;Er<Mt.length;Er+=2){var Hr=Mt[Er].value,qr=Mt[Er+1].value;rt.push({open:Hr,close:qr})}return rt}},_o=function(ge,Ce,ke){if(!ge)return"";var rt=ge[Math.min(Ce,ge.length-1)];return rt?ke?rt.open:rt.close:""},To={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ce){return Ce.length===1&&Un(Ce[0],"none")?[]:Cn(Ce).map(function(ke){for(var rt={color:255,offsetX:li,offsetY:li,blur:li,spread:li,inset:!1},Mt=0,Er=0;Er<ke.length;Er++){var Hr=ke[Er];Un(Hr,"inset")?rt.inset=!0:Yn(Hr)?(Mt===0?rt.offsetX=Hr:Mt===1?rt.offsetY=Hr:Mt===2?rt.blur=Hr:rt.spread=Hr,Mt++):rt.color=Gt.parse(ge,Hr)}return rt})}},Ro={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(ge,Ce){var ke=[0,1,2],rt=[];return Ce.filter(An).forEach(function(Mt){switch(Mt.value){case"stroke":rt.push(1);break;case"fill":rt.push(0);break;case"markers":rt.push(2);break}}),ke.forEach(function(Mt){rt.indexOf(Mt)===-1&&rt.push(Mt)}),rt}},go={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},So={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(ge,Ce){return on(Ce)?Ce.number:0}},is=function(){function $t(ge,Ce){var ke,rt;this.animationDuration=Yi(ge,$a,Ce.animationDuration),this.backgroundClip=Yi(ge,Ti,Ce.backgroundClip),this.backgroundColor=Yi(ge,ta,Ce.backgroundColor),this.backgroundImage=Yi(ge,lo,Ce.backgroundImage),this.backgroundOrigin=Yi(ge,Xa,Ce.backgroundOrigin),this.backgroundPosition=Yi(ge,Ta,Ce.backgroundPosition),this.backgroundRepeat=Yi(ge,Qa,Ce.backgroundRepeat),this.backgroundSize=Yi(ge,yo,Ce.backgroundSize),this.borderTopColor=Yi(ge,co,Ce.borderTopColor),this.borderRightColor=Yi(ge,uo,Ce.borderRightColor),this.borderBottomColor=Yi(ge,Ya,Ce.borderBottomColor),this.borderLeftColor=Yi(ge,eo,Ce.borderLeftColor),this.borderTopLeftRadius=Yi(ge,ro,Ce.borderTopLeftRadius),this.borderTopRightRadius=Yi(ge,fo,Ce.borderTopRightRadius),this.borderBottomRightRadius=Yi(ge,Bi,Ce.borderBottomRightRadius),this.borderBottomLeftRadius=Yi(ge,Ma,Ce.borderBottomLeftRadius),this.borderTopStyle=Yi(ge,jo,Ce.borderTopStyle),this.borderRightStyle=Yi(ge,Vo,Ce.borderRightStyle),this.borderBottomStyle=Yi(ge,Go,Ce.borderBottomStyle),this.borderLeftStyle=Yi(ge,wo,Ce.borderLeftStyle),this.borderTopWidth=Yi(ge,Po,Ce.borderTopWidth),this.borderRightWidth=Yi(ge,ds,Ce.borderRightWidth),this.borderBottomWidth=Yi(ge,ho,Ce.borderBottomWidth),this.borderLeftWidth=Yi(ge,Oo,Ce.borderLeftWidth),this.boxShadow=Yi(ge,To,Ce.boxShadow),this.color=Yi(ge,Ka,Ce.color),this.direction=Yi(ge,Xo,Ce.direction),this.display=Yi(ge,nl,Ce.display),this.float=Yi(ge,_s,Ce.cssFloat),this.fontFamily=Yi(ge,Zr,Ce.fontFamily),this.fontSize=Yi(ge,Tn,Ce.fontSize),this.fontStyle=Yi(ge,xi,Ce.fontStyle),this.fontVariant=Yi(ge,si,Ce.fontVariant),this.fontWeight=Yi(ge,Hn,Ce.fontWeight),this.letterSpacing=Yi(ge,xs,Ce.letterSpacing),this.lineBreak=Yi(ge,Os,Ce.lineBreak),this.lineHeight=Yi(ge,Ho,Ce.lineHeight),this.listStyleImage=Yi(ge,es,Ce.listStyleImage),this.listStylePosition=Yi(ge,Ko,Ce.listStylePosition),this.listStyleType=Yi(ge,Bo,Ce.listStyleType),this.marginTop=Yi(ge,Yo,Ce.marginTop),this.marginRight=Yi(ge,il,Ce.marginRight),this.marginBottom=Yi(ge,Ks,Ce.marginBottom),this.marginLeft=Yi(ge,Ps,Ce.marginLeft),this.opacity=Yi(ge,Nt,Ce.opacity);var Mt=Yi(ge,no,Ce.overflow);this.overflowX=Mt[0],this.overflowY=Mt[Mt.length>1?1:0],this.overflowWrap=Yi(ge,vo,Ce.overflowWrap),this.paddingTop=Yi(ge,ns,Ce.paddingTop),this.paddingRight=Yi(ge,ys,Ce.paddingRight),this.paddingBottom=Yi(ge,ms,Ce.paddingBottom),this.paddingLeft=Yi(ge,Is,Ce.paddingLeft),this.paintOrder=Yi(ge,Ro,Ce.paintOrder),this.position=Yi(ge,Ls,Ce.position),this.textAlign=Yi(ge,ol,Ce.textAlign),this.textDecorationColor=Yi(ge,br,(ke=Ce.textDecorationColor)!==null&&ke!==void 0?ke:Ce.color),this.textDecorationLine=Yi(ge,Or,(rt=Ce.textDecorationLine)!==null&&rt!==void 0?rt:Ce.textDecoration),this.textShadow=Yi(ge,Xs,Ce.textShadow),this.textTransform=Yi(ge,Bs,Ce.textTransform),this.transform=Yi(ge,gs,Ce.transform),this.transformOrigin=Yi(ge,vt,Ce.transformOrigin),this.visibility=Yi(ge,se,Ce.visibility),this.webkitTextStrokeColor=Yi(ge,go,Ce.webkitTextStrokeColor),this.webkitTextStrokeWidth=Yi(ge,So,Ce.webkitTextStrokeWidth),this.wordBreak=Yi(ge,Se,Ce.wordBreak),this.zIndex=Yi(ge,Ue,Ce.zIndex)}return $t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},$t.prototype.isTransparent=function(){return Sr(this.backgroundColor)},$t.prototype.isTransformed=function(){return this.transform!==null},$t.prototype.isPositioned=function(){return this.position!==0},$t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},$t.prototype.isFloating=function(){return this.float!==0},$t.prototype.isInlineLevel=function(){return Ri(this.display,4)||Ri(this.display,33554432)||Ri(this.display,268435456)||Ri(this.display,536870912)||Ri(this.display,67108864)||Ri(this.display,134217728)},$t}(),ts=function(){function $t(ge,Ce){this.content=Yi(ge,sa,Ce.content),this.quotes=Yi(ge,to,Ce.quotes)}return $t}(),Co=function(){function $t(ge,Ce){this.counterIncrement=Yi(ge,ya,Ce.counterIncrement),this.counterReset=Yi(ge,Ja,Ce.counterReset)}return $t}(),Yi=function(ge,Ce,ke){var rt=new Rr,Mt=ke!==null&&typeof ke!="undefined"?ke.toString():Ce.initialValue;rt.write(Mt);var Er=new Wr(rt.read());switch(Ce.type){case 2:var Hr=Er.parseComponentValue();return Ce.parse(ge,An(Hr)?Hr.value:Ce.initialValue);case 0:return Ce.parse(ge,Er.parseComponentValue());case 1:return Ce.parse(ge,Er.parseComponentValues());case 4:return Er.parseComponentValue();case 3:switch(Ce.format){case"angle":return yr.parse(ge,Er.parseComponentValue());case"color":return Gt.parse(ge,Er.parseComponentValue());case"image":return ja.parse(ge,Er.parseComponentValue());case"length":var qr=Er.parseComponentValue();return Yn(qr)?qr:li;case"length-percentage":var mn=Er.parseComponentValue();return ni(mn)?mn:li;case"time":return ht.parse(ge,Er.parseComponentValue())}break}},Ds="data-html2canvas-debug",Es=function(ge){var Ce=ge.getAttribute(Ds);switch(Ce){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},as=function(ge,Ce){var ke=Es(ge);return ke===1||Ce===ke},Qo=function(){function $t(ge,Ce){if(this.context=ge,this.textNodes=[],this.elements=[],this.flags=0,as(Ce,3))debugger;this.styles=new is(ge,window.getComputedStyle(Ce,null)),vc(Ce)&&(this.styles.animationDuration.some(function(ke){return ke>0})&&(Ce.style.animationDuration="0s"),this.styles.transform!==null&&(Ce.style.transform="none")),this.bounds=f(this.context,Ce),as(Ce,4)&&(this.flags|=16)}return $t}(),hs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",vl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),fs=0;fs<vl.length;fs++)sl[vl.charCodeAt(fs)]=fs;for(var Lo=function(ge){var Ce=ge.length*.75,ke=ge.length,rt,Mt=0,Er,Hr,qr,mn;ge[ge.length-1]==="="&&(Ce--,ge[ge.length-2]==="="&&Ce--);var ai=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ce):new Array(Ce),Zn=Array.isArray(ai)?ai:new Uint8Array(ai);for(rt=0;rt<ke;rt+=4)Er=sl[ge.charCodeAt(rt)],Hr=sl[ge.charCodeAt(rt+1)],qr=sl[ge.charCodeAt(rt+2)],mn=sl[ge.charCodeAt(rt+3)],Zn[Mt++]=Er<<2|Hr>>4,Zn[Mt++]=(Hr&15)<<4|qr>>2,Zn[Mt++]=(qr&3)<<6|mn&63;return ai},ls=function(ge){for(var Ce=ge.length,ke=[],rt=0;rt<Ce;rt+=2)ke.push(ge[rt+1]<<8|ge[rt]);return ke},Zs=function(ge){for(var Ce=ge.length,ke=[],rt=0;rt<Ce;rt+=4)ke.push(ge[rt+3]<<24|ge[rt+2]<<16|ge[rt+1]<<8|ge[rt]);return ke},vs=5,Fs=6+5,Us=2,Rs=Fs-vs,al=65536>>vs,$s=1<<vs,Ys=$s-1,js=1024>>vs,Ga=al+js,ga=Ga,Wa=2048>>6,oo=ga+Wa,Jo=65536>>Fs,Hs=1<<Rs,bs=Hs-1,ws=function(ge,Ce,ke){return ge.slice?ge.slice(Ce,ke):new Uint16Array(Array.prototype.slice.call(ge,Ce,ke))},Uo=function(ge,Ce,ke){return ge.slice?ge.slice(Ce,ke):new Uint32Array(Array.prototype.slice.call(ge,Ce,ke))},Io=function(ge,Ce){var ke=Lo(ge),rt=Array.isArray(ke)?Zs(ke):new Uint32Array(ke),Mt=Array.isArray(ke)?ls(ke):new Uint16Array(ke),Er=24,Hr=ws(Mt,Er/2,rt[4]/2),qr=rt[5]===2?ws(Mt,(Er+rt[4])/2):Uo(rt,Math.ceil((Er+rt[4])/4));return new Zo(rt[0],rt[1],rt[2],rt[3],Hr,qr)},Zo=function(){function $t(ge,Ce,ke,rt,Mt,Er){this.initialValue=ge,this.errorValue=Ce,this.highStart=ke,this.highValueIndex=rt,this.index=Mt,this.data=Er}return $t.prototype.get=function(ge){var Ce;if(ge>=0){if(ge<55296||ge>56319&&ge<=65535)return Ce=this.index[ge>>vs],Ce=(Ce<<Us)+(ge&Ys),this.data[Ce];if(ge<=65535)return Ce=this.index[al+(ge-55296>>vs)],Ce=(Ce<<Us)+(ge&Ys),this.data[Ce];if(ge<this.highStart)return Ce=oo-Jo+(ge>>Fs),Ce=this.index[Ce],Ce+=ge>>vs&bs,Ce=this.index[Ce],Ce=(Ce<<Us)+(ge&Ys),this.data[Ce];if(ge<=1114111)return this.data[this.highValueIndex]}return this.errorValue},$t}(),xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ws=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Sl=0;Sl<xo.length;Sl++)Ws[xo.charCodeAt(Sl)]=Sl;var xl=1,Bl=2,el=3,_l=4,Ol=5,Uc=7,ic=8,Tc=9,ac=10,Hl=11,zs=12,tl=13,ll=14,Fl=15,oc=function(ge){for(var Ce=[],ke=0,rt=ge.length;ke<rt;){var Mt=ge.charCodeAt(ke++);if(Mt>=55296&&Mt<=56319&&ke<rt){var Er=ge.charCodeAt(ke++);(Er&64512)===56320?Ce.push(((Mt&1023)<<10)+(Er&1023)+65536):(Ce.push(Mt),ke--)}else Ce.push(Mt)}return Ce},sc=function(){for(var ge=[],Ce=0;Ce<arguments.length;Ce++)ge[Ce]=arguments[Ce];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ge);var ke=ge.length;if(!ke)return"";for(var rt=[],Mt=-1,Er="";++Mt<ke;){var Hr=ge[Mt];Hr<=65535?rt.push(Hr):(Hr-=65536,rt.push((Hr>>10)+55296,Hr%1024+56320)),(Mt+1===ke||rt.length>16384)&&(Er+=String.fromCharCode.apply(String,rt),rt.length=0)}return Er},Ql=Io(hs),Vs="\xD7",lc="\xF7",cc=function(ge){return Ql.get(ge)},Cc=function(ge,Ce,ke){var rt=ke-2,Mt=Ce[rt],Er=Ce[ke-1],Hr=Ce[ke];if(Er===Bl&&Hr===el)return Vs;if(Er===Bl||Er===el||Er===_l)return lc;if(Hr===Bl||Hr===el||Hr===_l)return lc;if(Er===ic&&[ic,Tc,Hl,zs].indexOf(Hr)!==-1)return Vs;if((Er===Hl||Er===Tc)&&(Hr===Tc||Hr===ac))return Vs;if((Er===zs||Er===ac)&&Hr===ac)return Vs;if(Hr===tl||Hr===Ol)return Vs;if(Hr===Uc)return Vs;if(Er===xl)return Vs;if(Er===tl&&Hr===ll){for(;Mt===Ol;)Mt=Ce[--rt];if(Mt===ll)return Vs}if(Er===Fl&&Hr===Fl){for(var qr=0;Mt===Fl;)qr++,Mt=Ce[--rt];if(qr%2===0)return Vs}return lc},Al=function(ge){var Ce=oc(ge),ke=Ce.length,rt=0,Mt=0,Er=Ce.map(cc);return{next:function(){if(rt>=ke)return{done:!0,value:null};for(var qr=Vs;rt<ke&&(qr=Cc(Ce,Er,++rt))===Vs;);if(qr!==Vs||rt===ke){var mn=sc.apply(null,Ce.slice(Mt,rt));return Mt=rt,{value:mn,done:!1}}return{done:!0,value:null}}}},Ll=function(ge){for(var Ce=Al(ge),ke=[],rt;!(rt=Ce.next()).done;)rt.value&&ke.push(rt.value.slice());return ke},Kl=function(ge){var Ce=123;if(ge.createRange){var ke=ge.createRange();if(ke.getBoundingClientRect){var rt=ge.createElement("boundtest");rt.style.height=Ce+"px",rt.style.display="block",ge.body.appendChild(rt),ke.selectNode(rt);var Mt=ke.getBoundingClientRect(),Er=Math.round(Mt.height);if(ge.body.removeChild(rt),Er===Ce)return!0}}return!1},Jl=function(ge){var Ce=ge.createElement("boundtest");Ce.style.width="50px",Ce.style.display="block",Ce.style.fontSize="12px",Ce.style.letterSpacing="0px",Ce.style.wordSpacing="0px",ge.body.appendChild(Ce);var ke=ge.createRange();Ce.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var rt=Ce.firstChild,Mt=t(rt.data).map(function(mn){return l(mn)}),Er=0,Hr={},qr=Mt.every(function(mn,ai){ke.setStart(rt,Er),ke.setEnd(rt,Er+mn.length);var Zn=ke.getBoundingClientRect();Er+=mn.length;var ci=Zn.x>Hr.x||Zn.y>Hr.y;return Hr=Zn,ai===0?!0:ci});return ge.body.removeChild(Ce),qr},El=function(){return typeof new Image().crossOrigin!="undefined"},jc=function(){return typeof new XMLHttpRequest().responseType=="string"},Hc=function(ge){var Ce=new Image,ke=ge.createElement("canvas"),rt=ke.getContext("2d");if(!rt)return!1;Ce.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{rt.drawImage(Ce,0,0),ke.toDataURL()}catch(Mt){return!1}return!0},yl=function(ge){return ge[0]===0&&ge[1]===255&&ge[2]===0&&ge[3]===255},Zl=function(ge){var Ce=ge.createElement("canvas"),ke=100;Ce.width=ke,Ce.height=ke;var rt=Ce.getContext("2d");if(!rt)return Promise.reject(!1);rt.fillStyle="rgb(0, 255, 0)",rt.fillRect(0,0,ke,ke);var Mt=new Image,Er=Ce.toDataURL();Mt.src=Er;var Hr=uc(ke,ke,0,0,Mt);return rt.fillStyle="red",rt.fillRect(0,0,ke,ke),$l(Hr).then(function(qr){rt.drawImage(qr,0,0);var mn=rt.getImageData(0,0,ke,ke).data;rt.fillStyle="red",rt.fillRect(0,0,ke,ke);var ai=ge.createElement("div");return ai.style.backgroundImage="url("+Er+")",ai.style.height=ke+"px",yl(mn)?$l(uc(ke,ke,0,0,ai)):Promise.reject(!1)}).then(function(qr){return rt.drawImage(qr,0,0),yl(rt.getImageData(0,0,ke,ke).data)}).catch(function(){return!1})},uc=function(ge,Ce,ke,rt,Mt){var Er="http://www.w3.org/2000/svg",Hr=document.createElementNS(Er,"svg"),qr=document.createElementNS(Er,"foreignObject");return Hr.setAttributeNS(null,"width",ge.toString()),Hr.setAttributeNS(null,"height",Ce.toString()),qr.setAttributeNS(null,"width","100%"),qr.setAttributeNS(null,"height","100%"),qr.setAttributeNS(null,"x",ke.toString()),qr.setAttributeNS(null,"y",rt.toString()),qr.setAttributeNS(null,"externalResourcesRequired","true"),Hr.appendChild(qr),qr.appendChild(Mt),Hr},$l=function(ge){return new Promise(function(Ce,ke){var rt=new Image;rt.onload=function(){return Ce(rt)},rt.onerror=ke,rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ge))})},Ss={get SUPPORT_RANGE_BOUNDS(){var $t=Kl(document);return Object.defineProperty(Ss,"SUPPORT_RANGE_BOUNDS",{value:$t}),$t},get SUPPORT_WORD_BREAKING(){var $t=Ss.SUPPORT_RANGE_BOUNDS&&Jl(document);return Object.defineProperty(Ss,"SUPPORT_WORD_BREAKING",{value:$t}),$t},get SUPPORT_SVG_DRAWING(){var $t=Hc(document);return Object.defineProperty(Ss,"SUPPORT_SVG_DRAWING",{value:$t}),$t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var $t=typeof Array.from=="function"&&typeof window.fetch=="function"?Zl(document):Promise.resolve(!1);return Object.defineProperty(Ss,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:$t}),$t},get SUPPORT_CORS_IMAGES(){var $t=El();return Object.defineProperty(Ss,"SUPPORT_CORS_IMAGES",{value:$t}),$t},get SUPPORT_RESPONSE_TYPE(){var $t=jc();return Object.defineProperty(Ss,"SUPPORT_RESPONSE_TYPE",{value:$t}),$t},get SUPPORT_CORS_XHR(){var $t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ss,"SUPPORT_CORS_XHR",{value:$t}),$t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var $t=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Ss,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:$t}),$t}},dl=function(){function $t(ge,Ce){this.text=ge,this.bounds=Ce}return $t}(),Ul=function(ge,Ce,ke,rt){var Mt=hc(Ce,ke),Er=[],Hr=0;return Mt.forEach(function(qr){if(ke.textDecorationLine.length||qr.trim().length>0)if(Ss.SUPPORT_RANGE_BOUNDS){var mn=dc(rt,Hr,qr.length).getClientRects();if(mn.length>1){var ai=Wl(qr),Zn=0;ai.forEach(function(la){Er.push(new dl(la,m.fromDOMRectList(ge,dc(rt,Zn+Hr,la.length).getClientRects()))),Zn+=la.length})}else Er.push(new dl(qr,m.fromDOMRectList(ge,mn)))}else{var ci=rt.splitText(qr.length);Er.push(new dl(qr,Ic(ge,rt))),rt=ci}else Ss.SUPPORT_RANGE_BOUNDS||(rt=rt.splitText(qr.length));Hr+=qr.length}),Er},Ic=function(ge,Ce){var ke=Ce.ownerDocument;if(ke){var rt=ke.createElement("html2canvaswrapper");rt.appendChild(Ce.cloneNode(!0));var Mt=Ce.parentNode;if(Mt){Mt.replaceChild(rt,Ce);var Er=f(ge,rt);return rt.firstChild&&Mt.replaceChild(rt.firstChild,rt),Er}}return m.EMPTY},dc=function(ge,Ce,ke){var rt=ge.ownerDocument;if(!rt)throw new Error("Node has no owner document");var Mt=rt.createRange();return Mt.setStart(ge,Ce),Mt.setEnd(ge,Ce+ke),Mt},Wl=function(ge){if(Ss.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ce=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Ce.segment(ge)).map(function(ke){return ke.segment})}return Ll(ge)},zl=function(ge,Ce){if(Ss.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ke=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(ke.segment(ge)).map(function(rt){return rt.segment})}return Kc(ge,Ce)},hc=function(ge,Ce){return Ce.letterSpacing!==0?Wl(ge):zl(ge,Ce)},_c=[32,160,4961,65792,65793,4153,4241],Kc=function(ge,Ce){for(var ke=Xe(ge,{lineBreak:Ce.lineBreak,wordBreak:Ce.overflowWrap==="break-word"?"break-word":Ce.wordBreak}),rt=[],Mt,Er=function(){if(Mt.value){var qr=Mt.value.slice(),mn=t(qr),ai="";mn.forEach(function(Zn){_c.indexOf(Zn)===-1?ai+=l(Zn):(ai.length&&rt.push(ai),rt.push(l(Zn)),ai="")}),ai.length&&rt.push(ai)}};!(Mt=ke.next()).done;)Er();return rt},hl=function(){function $t(ge,Ce,ke){this.text=fl(Ce.data,ke.textTransform),this.textBounds=Ul(ge,this.text,ke,Ce)}return $t}(),fl=function(ge,Ce){switch(Ce){case 1:return ge.toLowerCase();case 3:return ge.replace(Tl,ql);case 2:return ge.toUpperCase();default:return ge}},Tl=/(^|\s|:|-|\(|\))([a-z])/g,ql=function(ge,Ce,ke){return ge.length>0?Ce+ke.toUpperCase():ge},ec=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this;return rt.src=ke.currentSrc||ke.src,rt.intrinsicWidth=ke.naturalWidth,rt.intrinsicHeight=ke.naturalHeight,rt.context.cache.addImage(rt.src),rt}return ge}(Qo),bl=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this;return rt.canvas=ke,rt.intrinsicWidth=ke.width,rt.intrinsicHeight=ke.height,rt}return ge}(Qo),cl=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this,Mt=new XMLSerializer,Er=f(Ce,ke);return ke.setAttribute("width",Er.width+"px"),ke.setAttribute("height",Er.height+"px"),rt.svg="data:image/svg+xml,"+encodeURIComponent(Mt.serializeToString(ke)),rt.intrinsicWidth=ke.width.baseVal.value,rt.intrinsicHeight=ke.height.baseVal.value,rt.context.cache.addImage(rt.svg),rt}return ge}(Qo),fc=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this;return rt.value=ke.value,rt}return ge}(Qo),pc=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this;return rt.start=ke.start,rt.reversed=typeof ke.reversed=="boolean"&&ke.reversed===!0,rt}return ge}(Qo),Wc=[{type:15,flags:0,unit:"px",number:3}],Oc=[{type:16,flags:0,number:50}],Lc=function(ge){return ge.width>ge.height?new m(ge.left+(ge.width-ge.height)/2,ge.top,ge.height,ge.height):ge.width<ge.height?new m(ge.left,ge.top+(ge.height-ge.width)/2,ge.width,ge.width):ge},zc=function(ge){var Ce=ge.type===Nl?new Array(ge.value.length+1).join("\u2022"):ge.value;return Ce.length===0?ge.placeholder||"":Ce},Vl="checkbox",pl="radio",Nl="password",Gl=707406591,jl=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this;rt.type=ke.type.toLowerCase(),rt.checked=ke.checked,rt.value=zc(ke),(rt.type===Vl||rt.type===pl)&&(rt.styles.backgroundColor=3739148031,rt.styles.borderTopColor=rt.styles.borderRightColor=rt.styles.borderBottomColor=rt.styles.borderLeftColor=2779096575,rt.styles.borderTopWidth=rt.styles.borderRightWidth=rt.styles.borderBottomWidth=rt.styles.borderLeftWidth=1,rt.styles.borderTopStyle=rt.styles.borderRightStyle=rt.styles.borderBottomStyle=rt.styles.borderLeftStyle=1,rt.styles.backgroundClip=[0],rt.styles.backgroundOrigin=[0],rt.bounds=Lc(rt.bounds));switch(rt.type){case Vl:rt.styles.borderTopRightRadius=rt.styles.borderTopLeftRadius=rt.styles.borderBottomRightRadius=rt.styles.borderBottomLeftRadius=Wc;break;case pl:rt.styles.borderTopRightRadius=rt.styles.borderTopLeftRadius=rt.styles.borderBottomRightRadius=rt.styles.borderBottomLeftRadius=Oc;break}return rt}return ge}(Qo),mc=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this,Mt=ke.options[ke.selectedIndex||0];return rt.value=Mt&&Mt.text||"",rt}return ge}(Qo),Vc=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this;return rt.value=ke.value,rt}return ge}(Qo),Nc=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this;rt.src=ke.src,rt.width=parseInt(ke.width,10)||0,rt.height=parseInt(ke.height,10)||0,rt.backgroundColor=rt.styles.backgroundColor;try{if(ke.contentWindow&&ke.contentWindow.document&&ke.contentWindow.document.documentElement){rt.tree=Xc(Ce,ke.contentWindow.document.documentElement);var Mt=ke.contentWindow.document.documentElement?Xn(Ce,getComputedStyle(ke.contentWindow.document.documentElement).backgroundColor):Jn.TRANSPARENT,Er=ke.contentWindow.document.body?Xn(Ce,getComputedStyle(ke.contentWindow.document.body).backgroundColor):Jn.TRANSPARENT;rt.backgroundColor=Sr(Mt)?Sr(Er)?rt.styles.backgroundColor:Er:Mt}}catch(Hr){}return rt}return ge}(Qo),eu=["OL","UL","MENU"],Dc=function $t(ge,Ce,ke,rt){for(var Mt=Ce.firstChild,Er=void 0;Mt;Mt=Er)if(Er=Mt.nextSibling,gc(Mt)&&Mt.data.trim().length>0)ke.textNodes.push(new hl(ge,Mt,ke.styles));else if(wl(Mt))if(Dt(Mt)&&Mt.assignedNodes)Mt.assignedNodes().forEach(function(qr){return $t(ge,qr,ke,rt)});else{var Hr=Gc(ge,Mt);Hr.styles.isVisible()&&(Yc(Mt,Hr,rt)?Hr.flags|=4:Rc(Hr.styles)&&(Hr.flags|=2),eu.indexOf(Mt.tagName)!==-1&&(Hr.flags|=8),ke.elements.push(Hr),Mt.slot,Mt.shadowRoot?$t(ge,Mt.shadowRoot,Hr,rt):!Ct(Mt)&&!Ht(Mt)&&!_t(Mt)&&$t(ge,Mt,Hr,rt))}},Gc=function(ge,Ce){return re(Ce)?new ec(ge,Ce):Cr(Ce)?new bl(ge,Ce):Ht(Ce)?new cl(ge,Ce):tc(Ce)?new fc(ge,Ce):be(Ce)?new pc(ge,Ce):ze(Ce)?new jl(ge,Ce):_t(Ce)?new mc(ge,Ce):Ct(Ce)?new Vc(ge,Ce):xe(Ce)?new Nc(ge,Ce):new Qo(ge,Ce)},Xc=function(ge,Ce){var ke=Gc(ge,Ce);return ke.flags|=4,Dc(ge,Ce,ke,ke),ke},Yc=function(ge,Ce,ke){return Ce.styles.isPositionedWithZIndex()||Ce.styles.opacity<1||Ce.styles.isTransformed()||dr(ge)&&ke.styles.isTransparent()},Rc=function(ge){return ge.isPositioned()||ge.isFloating()},gc=function(ge){return ge.nodeType===Node.TEXT_NODE},wl=function(ge){return ge.nodeType===Node.ELEMENT_NODE},vc=function(ge){return wl(ge)&&typeof ge.style!="undefined"&&!Cl(ge)},Cl=function(ge){return typeof ge.className=="object"},tc=function(ge){return ge.tagName==="LI"},be=function(ge){return ge.tagName==="OL"},ze=function(ge){return ge.tagName==="INPUT"},pt=function(ge){return ge.tagName==="HTML"},Ht=function(ge){return ge.tagName==="svg"},dr=function(ge){return ge.tagName==="BODY"},Cr=function(ge){return ge.tagName==="CANVAS"},Re=function(ge){return ge.tagName==="VIDEO"},re=function(ge){return ge.tagName==="IMG"},xe=function(ge){return ge.tagName==="IFRAME"},Ge=function(ge){return ge.tagName==="STYLE"},ot=function(ge){return ge.tagName==="SCRIPT"},Ct=function(ge){return ge.tagName==="TEXTAREA"},_t=function(ge){return ge.tagName==="SELECT"},Dt=function(ge){return ge.tagName==="SLOT"},vr=function(ge){return ge.tagName.indexOf("-")>0},Lr=function(){function $t(){this.counters={}}return $t.prototype.getCounterValue=function(ge){var Ce=this.counters[ge];return Ce&&Ce.length?Ce[Ce.length-1]:1},$t.prototype.getCounterValues=function(ge){var Ce=this.counters[ge];return Ce||[]},$t.prototype.pop=function(ge){var Ce=this;ge.forEach(function(ke){return Ce.counters[ke].pop()})},$t.prototype.parse=function(ge){var Ce=this,ke=ge.counterIncrement,rt=ge.counterReset,Mt=!0;ke!==null&&ke.forEach(function(Hr){var qr=Ce.counters[Hr.counter];qr&&Hr.increment!==0&&(Mt=!1,qr.length||qr.push(1),qr[Math.max(0,qr.length-1)]+=Hr.increment)});var Er=[];return Mt&&rt.forEach(function(Hr){var qr=Ce.counters[Hr.counter];Er.push(Hr.counter),qr||(qr=Ce.counters[Hr.counter]=[]),qr.push(Hr.reset)}),Er},$t}(),mr={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"]},ur={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"]},Tr={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"]},kr={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"]},an=function(ge,Ce,ke,rt,Mt,Er){return ge<Ce||ge>ke?te(ge,Mt,Er.length>0):rt.integers.reduce(function(Hr,qr,mn){for(;ge>=qr;)ge-=qr,Hr+=rt.values[mn];return Hr},"")+Er},jn=function(ge,Ce,ke,rt){var Mt="";do ke||ge--,Mt=rt(ge)+Mt,ge/=Ce;while(ge*Ce>=Ce);return Mt},Vn=function(ge,Ce,ke,rt,Mt){var Er=ke-Ce+1;return(ge<0?"-":"")+(jn(Math.abs(ge),Er,rt,function(Hr){return l(Math.floor(Hr%Er)+Ce)})+Mt)},Ei=function(ge,Ce,ke){ke===void 0&&(ke=". ");var rt=Ce.length;return jn(Math.abs(ge),rt,!1,function(Mt){return Ce[Math.floor(Mt%rt)]})+ke},di=1<<0,ua=1<<1,ji=1<<2,Ca=1<<3,ha=function(ge,Ce,ke,rt,Mt,Er){if(ge<-9999||ge>9999)return te(ge,4,Mt.length>0);var Hr=Math.abs(ge),qr=Mt;if(Hr===0)return Ce[0]+qr;for(var mn=0;Hr>0&&mn<=4;mn++){var ai=Hr%10;ai===0&&Ri(Er,di)&&qr!==""?qr=Ce[ai]+qr:ai>1||ai===1&&mn===0||ai===1&&mn===1&&Ri(Er,ua)||ai===1&&mn===1&&Ri(Er,ji)&&ge>100||ai===1&&mn>1&&Ri(Er,Ca)?qr=Ce[ai]+(mn>0?ke[mn-1]:"")+qr:ai===1&&mn>0&&(qr=ke[mn-1]+qr),Hr=Math.floor(Hr/10)}return(ge<0?rt:"")+qr},Za="\u5341\u767E\u5343\u842C",po="\u62FE\u4F70\u4EDF\u842C",F="\u30DE\u30A4\u30CA\u30B9",K="\uB9C8\uC774\uB108\uC2A4",te=function(ge,Ce,ke){var rt=ke?". ":"",Mt=ke?"\u3001":"",Er=ke?", ":"",Hr=ke?" ":"";switch(Ce){case 0:return"\u2022"+Hr;case 1:return"\u25E6"+Hr;case 2:return"\u25FE"+Hr;case 5:var qr=Vn(ge,48,57,!0,rt);return qr.length<4?"0"+qr:qr;case 4:return Ei(ge,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Mt);case 6:return an(ge,1,3999,mr,3,rt).toLowerCase();case 7:return an(ge,1,3999,mr,3,rt);case 8:return Vn(ge,945,969,!1,rt);case 9:return Vn(ge,97,122,!1,rt);case 10:return Vn(ge,65,90,!1,rt);case 11:return Vn(ge,1632,1641,!0,rt);case 12:case 49:return an(ge,1,9999,ur,3,rt);case 35:return an(ge,1,9999,ur,3,rt).toLowerCase();case 13:return Vn(ge,2534,2543,!0,rt);case 14:case 30:return Vn(ge,6112,6121,!0,rt);case 15:return Ei(ge,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Mt);case 16:return Ei(ge,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Mt);case 17:case 48:return ha(ge,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Za,"\u8CA0",Mt,ua|ji|Ca);case 47:return ha(ge,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",po,"\u8CA0",Mt,di|ua|ji|Ca);case 42:return ha(ge,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Za,"\u8D1F",Mt,ua|ji|Ca);case 41:return ha(ge,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",po,"\u8D1F",Mt,di|ua|ji|Ca);case 26:return ha(ge,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",F,Mt,0);case 25:return ha(ge,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",F,Mt,di|ua|ji);case 31:return ha(ge,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",K,Er,di|ua|ji);case 33:return ha(ge,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",K,Er,0);case 32:return ha(ge,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",K,Er,di|ua|ji);case 18:return Vn(ge,2406,2415,!0,rt);case 20:return an(ge,1,19999,kr,3,rt);case 21:return Vn(ge,2790,2799,!0,rt);case 22:return Vn(ge,2662,2671,!0,rt);case 22:return an(ge,1,10999,Tr,3,rt);case 23:return Ei(ge,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Ei(ge,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Vn(ge,3302,3311,!0,rt);case 28:return Ei(ge,"\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",Mt);case 29:return Ei(ge,"\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",Mt);case 34:return Vn(ge,3792,3801,!0,rt);case 37:return Vn(ge,6160,6169,!0,rt);case 38:return Vn(ge,4160,4169,!0,rt);case 39:return Vn(ge,2918,2927,!0,rt);case 40:return Vn(ge,1776,1785,!0,rt);case 43:return Vn(ge,3046,3055,!0,rt);case 44:return Vn(ge,3174,3183,!0,rt);case 45:return Vn(ge,3664,3673,!0,rt);case 46:return Vn(ge,3872,3881,!0,rt);case 3:default:return Vn(ge,48,57,!0,rt)}},ae="data-html2canvas-ignore",he=function(){function $t(ge,Ce,ke){if(this.context=ge,this.options=ke,this.scrolledElements=[],this.referenceElement=Ce,this.counters=new Lr,this.quoteDepth=0,!Ce.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ce.ownerDocument.documentElement,!1)}return $t.prototype.toIFrame=function(ge,Ce){var ke=this,rt=mt(ge,Ce);if(!rt.contentWindow)return Promise.reject("Unable to find iframe window");var Mt=ge.defaultView.pageXOffset,Er=ge.defaultView.pageYOffset,Hr=rt.contentWindow,qr=Hr.document,mn=rr(rt).then(function(){return E(ke,void 0,void 0,function(){var ai,Zn;return I(this,function(ci){switch(ci.label){case 0:return this.scrolledElements.forEach(vi),Hr&&(Hr.scrollTo(Ce.left,Ce.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Hr.scrollY!==Ce.top||Hr.scrollX!==Ce.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Hr.scrollX-Ce.left,Hr.scrollY-Ce.top,0,0))),ai=this.options.onclone,Zn=this.clonedReferenceElement,typeof Zn=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:qr.fonts&&qr.fonts.ready?[4,qr.fonts.ready]:[3,2];case 1:ci.sent(),ci.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Yt(qr)]:[3,4];case 3:ci.sent(),ci.label=4;case 4:return typeof ai=="function"?[2,Promise.resolve().then(function(){return ai(qr,Zn)}).then(function(){return rt})]:[2,rt]}})})});return qr.open(),qr.write(Dn(document.doctype)+"<html></html>"),Bn(this.referenceElement.ownerDocument,Mt,Er),qr.replaceChild(qr.adoptNode(this.documentElement),qr.documentElement),qr.close(),mn},$t.prototype.createElementClone=function(ge){if(as(ge,2))debugger;if(Cr(ge))return this.createCanvasClone(ge);if(Re(ge))return this.createVideoClone(ge);if(Ge(ge))return this.createStyleClone(ge);var Ce=ge.cloneNode(!1);return re(Ce)&&(re(ge)&&ge.currentSrc&&ge.currentSrc!==ge.src&&(Ce.src=ge.currentSrc,Ce.srcset=""),Ce.loading==="lazy"&&(Ce.loading="eager")),vr(Ce)?this.createCustomElementClone(Ce):Ce},$t.prototype.createCustomElementClone=function(ge){var Ce=document.createElement("html2canvascustomelement");return hn(ge.style,Ce),Ce},$t.prototype.createStyleClone=function(ge){try{var Ce=ge.sheet;if(Ce&&Ce.cssRules){var ke=[].slice.call(Ce.cssRules,0).reduce(function(Mt,Er){return Er&&typeof Er.cssText=="string"?Mt+Er.cssText:Mt},""),rt=ge.cloneNode(!1);return rt.textContent=ke,rt}}catch(Mt){if(this.context.logger.error("Unable to access cssRules property",Mt),Mt.name!=="SecurityError")throw Mt}return ge.cloneNode(!1)},$t.prototype.createCanvasClone=function(ge){var Ce;if(this.options.inlineImages&&ge.ownerDocument){var ke=ge.ownerDocument.createElement("img");try{return ke.src=ge.toDataURL(),ke}catch(mn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ge)}}var rt=ge.cloneNode(!1);try{rt.width=ge.width,rt.height=ge.height;var Mt=ge.getContext("2d"),Er=rt.getContext("2d");if(Er)if(!this.options.allowTaint&&Mt)Er.putImageData(Mt.getImageData(0,0,ge.width,ge.height),0,0);else{var Hr=(Ce=ge.getContext("webgl2"))!==null&&Ce!==void 0?Ce:ge.getContext("webgl");if(Hr){var qr=Hr.getContextAttributes();(qr==null?void 0:qr.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ge)}Er.drawImage(ge,0,0)}return rt}catch(mn){this.context.logger.info("Unable to clone canvas as it is tainted",ge)}return rt},$t.prototype.createVideoClone=function(ge){var Ce=ge.ownerDocument.createElement("canvas");Ce.width=ge.offsetWidth,Ce.height=ge.offsetHeight;var ke=Ce.getContext("2d");try{return ke&&(ke.drawImage(ge,0,0,Ce.width,Ce.height),this.options.allowTaint||ke.getImageData(0,0,Ce.width,Ce.height)),Ce}catch(Mt){this.context.logger.info("Unable to clone video as it is tainted",ge)}var rt=ge.ownerDocument.createElement("canvas");return rt.width=ge.offsetWidth,rt.height=ge.offsetHeight,rt},$t.prototype.appendChildNode=function(ge,Ce,ke){(!wl(Ce)||!ot(Ce)&&!Ce.hasAttribute(ae)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Ce)))&&((!this.options.copyStyles||!wl(Ce)||!Ge(Ce))&&ge.appendChild(this.cloneNode(Ce,ke)))},$t.prototype.cloneChildNodes=function(ge,Ce,ke){for(var rt=this,Mt=ge.shadowRoot?ge.shadowRoot.firstChild:ge.firstChild;Mt;Mt=Mt.nextSibling)if(wl(Mt)&&Dt(Mt)&&typeof Mt.assignedNodes=="function"){var Er=Mt.assignedNodes();Er.length&&Er.forEach(function(Hr){return rt.appendChildNode(Ce,Hr,ke)})}else this.appendChildNode(Ce,Mt,ke)},$t.prototype.cloneNode=function(ge,Ce){if(gc(ge))return document.createTextNode(ge.data);if(!ge.ownerDocument)return ge.cloneNode(!1);var ke=ge.ownerDocument.defaultView;if(ke&&wl(ge)&&(vc(ge)||Cl(ge))){var rt=this.createElementClone(ge);rt.style.transitionProperty="none";var Mt=ke.getComputedStyle(ge),Er=ke.getComputedStyle(ge,":before"),Hr=ke.getComputedStyle(ge,":after");this.referenceElement===ge&&vc(rt)&&(this.clonedReferenceElement=rt),dr(rt)&&ba(rt);var qr=this.counters.parse(new Co(this.context,Mt)),mn=this.resolvePseudoContent(ge,rt,Er,Pe.BEFORE);vr(ge)&&(Ce=!0),Re(ge)||this.cloneChildNodes(ge,rt,Ce),mn&&rt.insertBefore(mn,rt.firstChild);var ai=this.resolvePseudoContent(ge,rt,Hr,Pe.AFTER);return ai&&rt.appendChild(ai),this.counters.pop(qr),(Mt&&(this.options.copyStyles||Cl(ge))&&!xe(ge)||Ce)&&hn(Mt,rt),(ge.scrollTop!==0||ge.scrollLeft!==0)&&this.scrolledElements.push([rt,ge.scrollLeft,ge.scrollTop]),(Ct(ge)||_t(ge))&&(Ct(rt)||_t(rt))&&(rt.value=ge.value),rt}return ge.cloneNode(!1)},$t.prototype.resolvePseudoContent=function(ge,Ce,ke,rt){var Mt=this;if(!ke)return;var Er=ke.content,Hr=Ce.ownerDocument;if(!Hr||!Er||Er==="none"||Er==="-moz-alt-content"||ke.display==="none")return;this.counters.parse(new Co(this.context,ke));var qr=new ts(this.context,ke),mn=Hr.createElement("html2canvaspseudoelement");hn(ke,mn),qr.content.forEach(function(Zn){if(Zn.type===0)mn.appendChild(Hr.createTextNode(Zn.value));else if(Zn.type===22){var ci=Hr.createElement("img");ci.src=Zn.value,ci.style.opacity="1",mn.appendChild(ci)}else if(Zn.type===18){if(Zn.name==="attr"){var la=Zn.values.filter(An);la.length&&mn.appendChild(Hr.createTextNode(ge.getAttribute(la[0].value)||""))}else if(Zn.name==="counter"){var pa=Zn.values.filter(_n),Ea=pa[0],so=pa[1];if(Ea&&An(Ea)){var Va=Mt.counters.getCounterValue(Ea.value),Fa=so&&An(so)?Bo.parse(Mt.context,so.value):3;mn.appendChild(Hr.createTextNode(te(Va,Fa,!1)))}}else if(Zn.name==="counters"){var zo=Zn.values.filter(_n),Ea=zo[0],qo=zo[1],so=zo[2];if(Ea&&An(Ea)){var Mo=Mt.counters.getCounterValues(Ea.value),ka=so&&An(so)?Bo.parse(Mt.context,so.value):3,ss=qo&&qo.type===0?qo.value:"",us=Mo.map(function(Yl){return te(Yl,ka,!1)}).join(ss);mn.appendChild(Hr.createTextNode(us))}}}else if(Zn.type===20)switch(Zn.value){case"open-quote":mn.appendChild(Hr.createTextNode(_o(qr.quotes,Mt.quoteDepth++,!0)));break;case"close-quote":mn.appendChild(Hr.createTextNode(_o(qr.quotes,--Mt.quoteDepth,!1)));break;default:mn.appendChild(Hr.createTextNode(Zn.value))}}),mn.className=Xi+" "+Vi;var ai=rt===Pe.BEFORE?" "+Xi:" "+Vi;return Cl(Ce)?Ce.className.baseValue+=ai:Ce.className+=ai,mn},$t.destroy=function(ge){return ge.parentNode?(ge.parentNode.removeChild(ge),!0):!1},$t}(),Pe;(function($t){$t[$t.BEFORE=0]="BEFORE",$t[$t.AFTER=1]="AFTER"})(Pe||(Pe={}));var mt=function(ge,Ce){var ke=ge.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=Ce.width.toString(),ke.height=Ce.height.toString(),ke.scrolling="no",ke.setAttribute(ae,"true"),ge.body.appendChild(ke),ke},It=function(ge){return new Promise(function(Ce){if(ge.complete){Ce();return}if(!ge.src){Ce();return}ge.onload=Ce,ge.onerror=Ce})},Yt=function(ge){return Promise.all([].slice.call(ge.images,0).map(It))},rr=function(ge){return new Promise(function(Ce,ke){var rt=ge.contentWindow;if(!rt)return ke("No window assigned for iframe");var Mt=rt.document;rt.onload=ge.onload=function(){rt.onload=ge.onload=null;var Er=setInterval(function(){Mt.body.childNodes.length>0&&Mt.readyState==="complete"&&(clearInterval(Er),Ce(ge))},50)}})},en=["all","d","content"],hn=function(ge,Ce){for(var ke=ge.length-1;ke>=0;ke--){var rt=ge.item(ke);en.indexOf(rt)===-1&&Ce.style.setProperty(rt,ge.getPropertyValue(rt))}return Ce},Dn=function(ge){var Ce="";return ge&&(Ce+="<!DOCTYPE ",ge.name&&(Ce+=ge.name),ge.internalSubset&&(Ce+=ge.internalSubset),ge.publicId&&(Ce+='"'+ge.publicId+'"'),ge.systemId&&(Ce+='"'+ge.systemId+'"'),Ce+=">"),Ce},Bn=function(ge,Ce,ke){ge&&ge.defaultView&&(Ce!==ge.defaultView.pageXOffset||ke!==ge.defaultView.pageYOffset)&&ge.defaultView.scrollTo(Ce,ke)},vi=function(ge){var Ce=ge[0],ke=ge[1],rt=ge[2];Ce.scrollLeft=ke,Ce.scrollTop=rt},Ki=":before",Qi=":after",Xi="___html2canvas___pseudoelement_before",Vi="___html2canvas___pseudoelement_after",fa=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,ba=function(ge){qa(ge,"."+Xi+Ki+fa+`
|
|
|
.`+Vi+Qi+fa)},qa=function(ge,Ce){var ke=ge.ownerDocument;if(ke){var rt=ke.createElement("style");rt.textContent=Ce,ge.appendChild(rt)}},Ba=function(){function $t(){}return $t.getOrigin=function(ge){var Ce=$t._link;return Ce?(Ce.href=ge,Ce.href=Ce.href,Ce.protocol+Ce.hostname+Ce.port):"about:blank"},$t.isSameOrigin=function(ge){return $t.getOrigin(ge)===$t._origin},$t.setContext=function(ge){$t._link=ge.document.createElement("a"),$t._origin=$t.getOrigin(ge.location.href)},$t._origin="about:blank",$t}(),Eo=function(){function $t(ge,Ce){this.context=ge,this._options=Ce,this._cache={}}return $t.prototype.addImage=function(ge){var Ce=Promise.resolve();return this.has(ge)||(Js(ge)||Ms(ge))&&(this._cache[ge]=this.loadImage(ge)).catch(function(){}),Ce},$t.prototype.match=function(ge){return this._cache[ge]},$t.prototype.loadImage=function(ge){return E(this,void 0,void 0,function(){var Ce,ke,rt,Mt,Er=this;return I(this,function(Hr){switch(Hr.label){case 0:return Ce=Ba.isSameOrigin(ge),ke=!Qs(ge)&&this._options.useCORS===!0&&Ss.SUPPORT_CORS_IMAGES&&!Ce,rt=!Qs(ge)&&!Ce&&!Js(ge)&&typeof this._options.proxy=="string"&&Ss.SUPPORT_CORS_XHR&&!ke,!Ce&&this._options.allowTaint===!1&&!Qs(ge)&&!Js(ge)&&!rt&&!ke?[2]:(Mt=ge,rt?[4,this.proxy(Mt)]:[3,2]);case 1:Mt=Hr.sent(),Hr.label=2;case 2:return this.context.logger.debug("Added image "+ge.substring(0,256)),[4,new Promise(function(qr,mn){var ai=new Image;ai.onload=function(){return qr(ai)},ai.onerror=mn,(Ts(Mt)||ke)&&(ai.crossOrigin="anonymous"),ai.src=Mt,ai.complete===!0&&setTimeout(function(){return qr(ai)},500),Er._options.imageTimeout>0&&setTimeout(function(){return mn("Timed out ("+Er._options.imageTimeout+"ms) loading image")},Er._options.imageTimeout)})];case 3:return[2,Hr.sent()]}})})},$t.prototype.has=function(ge){return typeof this._cache[ge]!="undefined"},$t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},$t.prototype.proxy=function(ge){var Ce=this,ke=this._options.proxy;if(!ke)throw new Error("No proxy defined");var rt=ge.substring(0,256);return new Promise(function(Mt,Er){var Hr=Ss.SUPPORT_RESPONSE_TYPE?"blob":"text",qr=new XMLHttpRequest;qr.onload=function(){if(qr.status===200)if(Hr==="text")Mt(qr.response);else{var Zn=new FileReader;Zn.addEventListener("load",function(){return Mt(Zn.result)},!1),Zn.addEventListener("error",function(ci){return Er(ci)},!1),Zn.readAsDataURL(qr.response)}else Er("Failed to proxy resource "+rt+" with status code "+qr.status)},qr.onerror=Er;var mn=ke.indexOf("?")>-1?"&":"?";if(qr.open("GET",""+ke+mn+"url="+encodeURIComponent(ge)+"&responseType="+Hr),Hr!=="text"&&qr instanceof XMLHttpRequest&&(qr.responseType=Hr),Ce._options.imageTimeout){var ai=Ce._options.imageTimeout;qr.timeout=ai,qr.ontimeout=function(){return Er("Timed out ("+ai+"ms) proxying "+rt)}}qr.send()})},$t}(),Wo=/^data:image\/svg\+xml/i,cs=/^data:image\/.*;base64,/i,$o=/^data:image\/.*/i,Ms=function(ge){return Ss.SUPPORT_SVG_DRAWING||!ks(ge)},Qs=function(ge){return $o.test(ge)},Ts=function(ge){return cs.test(ge)},Js=function(ge){return ge.substr(0,4)==="blob"},ks=function(ge){return ge.substr(-3).toLowerCase()==="svg"||Wo.test(ge)},aa=function(){function $t(ge,Ce){this.type=0,this.x=ge,this.y=Ce}return $t.prototype.add=function(ge,Ce){return new $t(this.x+ge,this.y+Ce)},$t}(),os=function(ge,Ce,ke){return new aa(ge.x+(Ce.x-ge.x)*ke,ge.y+(Ce.y-ge.y)*ke)},rs=function(){function $t(ge,Ce,ke,rt){this.type=1,this.start=ge,this.startControl=Ce,this.endControl=ke,this.end=rt}return $t.prototype.subdivide=function(ge,Ce){var ke=os(this.start,this.startControl,ge),rt=os(this.startControl,this.endControl,ge),Mt=os(this.endControl,this.end,ge),Er=os(ke,rt,ge),Hr=os(rt,Mt,ge),qr=os(Er,Hr,ge);return Ce?new $t(this.start,ke,Er,qr):new $t(qr,Hr,Mt,this.end)},$t.prototype.add=function(ge,Ce){return new $t(this.start.add(ge,Ce),this.startControl.add(ge,Ce),this.endControl.add(ge,Ce),this.end.add(ge,Ce))},$t.prototype.reverse=function(){return new $t(this.end,this.endControl,this.startControl,this.start)},$t}(),As=function(ge){return ge.type===1},Ac=function(){function $t(ge){var Ce=ge.styles,ke=ge.bounds,rt=Si(Ce.borderTopLeftRadius,ke.width,ke.height),Mt=rt[0],Er=rt[1],Hr=Si(Ce.borderTopRightRadius,ke.width,ke.height),qr=Hr[0],mn=Hr[1],ai=Si(Ce.borderBottomRightRadius,ke.width,ke.height),Zn=ai[0],ci=ai[1],la=Si(Ce.borderBottomLeftRadius,ke.width,ke.height),pa=la[0],Ea=la[1],so=[];so.push((Mt+qr)/ke.width),so.push((pa+Zn)/ke.width),so.push((Er+Ea)/ke.height),so.push((mn+ci)/ke.height);var Va=Math.max.apply(Math,so);Va>1&&(Mt/=Va,Er/=Va,qr/=Va,mn/=Va,Zn/=Va,ci/=Va,pa/=Va,Ea/=Va);var Fa=ke.width-qr,zo=ke.height-ci,qo=ke.width-Zn,Mo=ke.height-Ea,ka=Ce.borderTopWidth,ss=Ce.borderRightWidth,us=Ce.borderBottomWidth,ko=Ce.borderLeftWidth,kl=mi(Ce.paddingTop,ge.bounds.width),Yl=mi(Ce.paddingRight,ge.bounds.width),Pl=mi(Ce.paddingBottom,ge.bounds.width),ul=mi(Ce.paddingLeft,ge.bounds.width);this.topLeftBorderDoubleOuterBox=Mt>0||Er>0?Ao(ke.left+ko/3,ke.top+ka/3,Mt-ko/3,Er-ka/3,No.TOP_LEFT):new aa(ke.left+ko/3,ke.top+ka/3),this.topRightBorderDoubleOuterBox=Mt>0||Er>0?Ao(ke.left+Fa,ke.top+ka/3,qr-ss/3,mn-ka/3,No.TOP_RIGHT):new aa(ke.left+ke.width-ss/3,ke.top+ka/3),this.bottomRightBorderDoubleOuterBox=Zn>0||ci>0?Ao(ke.left+qo,ke.top+zo,Zn-ss/3,ci-us/3,No.BOTTOM_RIGHT):new aa(ke.left+ke.width-ss/3,ke.top+ke.height-us/3),this.bottomLeftBorderDoubleOuterBox=pa>0||Ea>0?Ao(ke.left+ko/3,ke.top+Mo,pa-ko/3,Ea-us/3,No.BOTTOM_LEFT):new aa(ke.left+ko/3,ke.top+ke.height-us/3),this.topLeftBorderDoubleInnerBox=Mt>0||Er>0?Ao(ke.left+ko*2/3,ke.top+ka*2/3,Mt-ko*2/3,Er-ka*2/3,No.TOP_LEFT):new aa(ke.left+ko*2/3,ke.top+ka*2/3),this.topRightBorderDoubleInnerBox=Mt>0||Er>0?Ao(ke.left+Fa,ke.top+ka*2/3,qr-ss*2/3,mn-ka*2/3,No.TOP_RIGHT):new aa(ke.left+ke.width-ss*2/3,ke.top+ka*2/3),this.bottomRightBorderDoubleInnerBox=Zn>0||ci>0?Ao(ke.left+qo,ke.top+zo,Zn-ss*2/3,ci-us*2/3,No.BOTTOM_RIGHT):new aa(ke.left+ke.width-ss*2/3,ke.top+ke.height-us*2/3),this.bottomLeftBorderDoubleInnerBox=pa>0||Ea>0?Ao(ke.left+ko*2/3,ke.top+Mo,pa-ko*2/3,Ea-us*2/3,No.BOTTOM_LEFT):new aa(ke.left+ko*2/3,ke.top+ke.height-us*2/3),this.topLeftBorderStroke=Mt>0||Er>0?Ao(ke.left+ko/2,ke.top+ka/2,Mt-ko/2,Er-ka/2,No.TOP_LEFT):new aa(ke.left+ko/2,ke.top+ka/2),this.topRightBorderStroke=Mt>0||Er>0?Ao(ke.left+Fa,ke.top+ka/2,qr-ss/2,mn-ka/2,No.TOP_RIGHT):new aa(ke.left+ke.width-ss/2,ke.top+ka/2),this.bottomRightBorderStroke=Zn>0||ci>0?Ao(ke.left+qo,ke.top+zo,Zn-ss/2,ci-us/2,No.BOTTOM_RIGHT):new aa(ke.left+ke.width-ss/2,ke.top+ke.height-us/2),this.bottomLeftBorderStroke=pa>0||Ea>0?Ao(ke.left+ko/2,ke.top+Mo,pa-ko/2,Ea-us/2,No.BOTTOM_LEFT):new aa(ke.left+ko/2,ke.top+ke.height-us/2),this.topLeftBorderBox=Mt>0||Er>0?Ao(ke.left,ke.top,Mt,Er,No.TOP_LEFT):new aa(ke.left,ke.top),this.topRightBorderBox=qr>0||mn>0?Ao(ke.left+Fa,ke.top,qr,mn,No.TOP_RIGHT):new aa(ke.left+ke.width,ke.top),this.bottomRightBorderBox=Zn>0||ci>0?Ao(ke.left+qo,ke.top+zo,Zn,ci,No.BOTTOM_RIGHT):new aa(ke.left+ke.width,ke.top+ke.height),this.bottomLeftBorderBox=pa>0||Ea>0?Ao(ke.left,ke.top+Mo,pa,Ea,No.BOTTOM_LEFT):new aa(ke.left,ke.top+ke.height),this.topLeftPaddingBox=Mt>0||Er>0?Ao(ke.left+ko,ke.top+ka,Math.max(0,Mt-ko),Math.max(0,Er-ka),No.TOP_LEFT):new aa(ke.left+ko,ke.top+ka),this.topRightPaddingBox=qr>0||mn>0?Ao(ke.left+Math.min(Fa,ke.width-ss),ke.top+ka,Fa>ke.width+ss?0:Math.max(0,qr-ss),Math.max(0,mn-ka),No.TOP_RIGHT):new aa(ke.left+ke.width-ss,ke.top+ka),this.bottomRightPaddingBox=Zn>0||ci>0?Ao(ke.left+Math.min(qo,ke.width-ko),ke.top+Math.min(zo,ke.height-us),Math.max(0,Zn-ss),Math.max(0,ci-us),No.BOTTOM_RIGHT):new aa(ke.left+ke.width-ss,ke.top+ke.height-us),this.bottomLeftPaddingBox=pa>0||Ea>0?Ao(ke.left+ko,ke.top+Math.min(Mo,ke.height-us),Math.max(0,pa-ko),Math.max(0,Ea-us),No.BOTTOM_LEFT):new aa(ke.left+ko,ke.top+ke.height-us),this.topLeftContentBox=Mt>0||Er>0?Ao(ke.left+ko+ul,ke.top+ka+kl,Math.max(0,Mt-(ko+ul)),Math.max(0,Er-(ka+kl)),No.TOP_LEFT):new aa(ke.left+ko+ul,ke.top+ka+kl),this.topRightContentBox=qr>0||mn>0?Ao(ke.left+Math.min(Fa,ke.width+ko+ul),ke.top+ka+kl,Fa>ke.width+ko+ul?0:qr-ko+ul,mn-(ka+kl),No.TOP_RIGHT):new aa(ke.left+ke.width-(ss+Yl),ke.top+ka+kl),this.bottomRightContentBox=Zn>0||ci>0?Ao(ke.left+Math.min(qo,ke.width-(ko+ul)),ke.top+Math.min(zo,ke.height+ka+kl),Math.max(0,Zn-(ss+Yl)),ci-(us+Pl),No.BOTTOM_RIGHT):new aa(ke.left+ke.width-(ss+Yl),ke.top+ke.height-(us+Pl)),this.bottomLeftContentBox=pa>0||Ea>0?Ao(ke.left+ko+ul,ke.top+Mo,Math.max(0,pa-(ko+ul)),Ea-(us+Pl),No.BOTTOM_LEFT):new aa(ke.left+ko+ul,ke.top+ke.height-(us+Pl))}return $t}(),No;(function($t){$t[$t.TOP_LEFT=0]="TOP_LEFT",$t[$t.TOP_RIGHT=1]="TOP_RIGHT",$t[$t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",$t[$t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(No||(No={}));var Ao=function(ge,Ce,ke,rt,Mt){var Er=4*((Math.sqrt(2)-1)/3),Hr=ke*Er,qr=rt*Er,mn=ge+ke,ai=Ce+rt;switch(Mt){case No.TOP_LEFT:return new rs(new aa(ge,ai),new aa(ge,ai-qr),new aa(mn-Hr,Ce),new aa(mn,Ce));case No.TOP_RIGHT:return new rs(new aa(ge,Ce),new aa(ge+Hr,Ce),new aa(mn,ai-qr),new aa(mn,ai));case No.BOTTOM_RIGHT:return new rs(new aa(mn,Ce),new aa(mn,Ce+qr),new aa(ge+Hr,ai),new aa(ge,ai));case No.BOTTOM_LEFT:default:return new rs(new aa(mn,ai),new aa(mn-Hr,ai),new aa(ge,Ce+qr),new aa(ge,Ce))}},ml=function(ge){return[ge.topLeftBorderBox,ge.topRightBorderBox,ge.bottomRightBorderBox,ge.bottomLeftBorderBox]},Gs=function(ge){return[ge.topLeftContentBox,ge.topRightContentBox,ge.bottomRightContentBox,ge.bottomLeftContentBox]},yc=function(ge){return[ge.topLeftPaddingBox,ge.topRightPaddingBox,ge.bottomRightPaddingBox,ge.bottomLeftPaddingBox]},Dl=function(){function $t(ge,Ce,ke){this.offsetX=ge,this.offsetY=Ce,this.matrix=ke,this.type=0,this.target=2|4}return $t}(),gl=function(){function $t(ge,Ce){this.path=ge,this.target=Ce,this.type=1}return $t}(),Xl=function(){function $t(ge){this.opacity=ge,this.type=2,this.target=2|4}return $t}(),rl=function(ge){return ge.type===0},Rl=function(ge){return ge.type===1},Mc=function(ge){return ge.type===2},Qc=function(ge,Ce){return ge.length===Ce.length?ge.some(function(ke,rt){return ke===Ce[rt]}):!1},vu=function(ge,Ce,ke,rt,Mt){return ge.map(function(Er,Hr){switch(Hr){case 0:return Er.add(Ce,ke);case 1:return Er.add(Ce+rt,ke);case 2:return Er.add(Ce+rt,ke+Mt);case 3:return Er.add(Ce,ke+Mt)}return Er})},Au=function(){function $t(ge){this.element=ge,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return $t}(),tu=function(){function $t(ge,Ce){if(this.container=ge,this.parent=Ce,this.effects=[],this.curves=new Ac(this.container),this.container.styles.opacity<1&&this.effects.push(new Xl(this.container.styles.opacity)),this.container.styles.transform!==null){var ke=this.container.bounds.left+this.container.styles.transformOrigin[0].number,rt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Mt=this.container.styles.transform;this.effects.push(new Dl(ke,rt,Mt))}if(this.container.styles.overflowX!==0){var Er=ml(this.curves),Hr=yc(this.curves);Qc(Er,Hr)?this.effects.push(new gl(Er,2|4)):(this.effects.push(new gl(Er,2)),this.effects.push(new gl(Hr,4)))}}return $t.prototype.getEffects=function(ge){for(var Ce=[2,3].indexOf(this.container.styles.position)===-1,ke=this.parent,rt=this.effects.slice(0);ke;){var Mt=ke.effects.filter(function(qr){return!Rl(qr)});if(Ce||ke.container.styles.position!==0||!ke.parent){if(rt.unshift.apply(rt,Mt),Ce=[2,3].indexOf(ke.container.styles.position)===-1,ke.container.styles.overflowX!==0){var Er=ml(ke.curves),Hr=yc(ke.curves);Qc(Er,Hr)||rt.unshift(new gl(Hr,2|4))}}else rt.unshift.apply(rt,Mt);ke=ke.parent}return rt.filter(function(qr){return Ri(qr.target,ge)})},$t}(),yu=function $t(ge,Ce,ke,rt){ge.container.elements.forEach(function(Mt){var Er=Ri(Mt.flags,4),Hr=Ri(Mt.flags,2),qr=new tu(Mt,ge);Ri(Mt.styles.display,2048)&&rt.push(qr);var mn=Ri(Mt.flags,8)?[]:rt;if(Er||Hr){var ai=Er||Mt.styles.isPositioned()?ke:Ce,Zn=new Au(qr);if(Mt.styles.isPositioned()||Mt.styles.opacity<1||Mt.styles.isTransformed()){var ci=Mt.styles.zIndex.order;if(ci<0){var la=0;ai.negativeZIndex.some(function(Ea,so){return ci>Ea.element.container.styles.zIndex.order?(la=so,!1):la>0}),ai.negativeZIndex.splice(la,0,Zn)}else if(ci>0){var pa=0;ai.positiveZIndex.some(function(Ea,so){return ci>=Ea.element.container.styles.zIndex.order?(pa=so+1,!1):pa>0}),ai.positiveZIndex.splice(pa,0,Zn)}else ai.zeroOrAutoZIndexOrTransformedOrOpacity.push(Zn)}else Mt.styles.isFloating()?ai.nonPositionedFloats.push(Zn):ai.nonPositionedInlineLevel.push(Zn);$t(qr,Zn,Er?Zn:ke,mn)}else Mt.styles.isInlineLevel()?Ce.inlineLevel.push(qr):Ce.nonInlineLevel.push(qr),$t(qr,Ce,ke,mn);Ri(Mt.flags,8)&&su(Mt,mn)})},su=function(ge,Ce){for(var ke=ge instanceof pc?ge.start:1,rt=ge instanceof pc?ge.reversed:!1,Mt=0;Mt<Ce.length;Mt++){var Er=Ce[Mt];Er.container instanceof fc&&typeof Er.container.value=="number"&&Er.container.value!==0&&(ke=Er.container.value),Er.listValue=te(ke,Er.container.styles.listStyleType,!0),ke+=rt?-1:1}},bc=function(ge){var Ce=new tu(ge,null),ke=new Au(Ce),rt=[];return yu(Ce,ke,ke,rt),su(Ce.container,rt),ke},hu=function(ge,Ce){switch(Ce){case 0:return Ml(ge.topLeftBorderBox,ge.topLeftPaddingBox,ge.topRightBorderBox,ge.topRightPaddingBox);case 1:return Ml(ge.topRightBorderBox,ge.topRightPaddingBox,ge.bottomRightBorderBox,ge.bottomRightPaddingBox);case 2:return Ml(ge.bottomRightBorderBox,ge.bottomRightPaddingBox,ge.bottomLeftBorderBox,ge.bottomLeftPaddingBox);case 3:default:return Ml(ge.bottomLeftBorderBox,ge.bottomLeftPaddingBox,ge.topLeftBorderBox,ge.topLeftPaddingBox)}},bu=function(ge,Ce){switch(Ce){case 0:return Ml(ge.topLeftBorderBox,ge.topLeftBorderDoubleOuterBox,ge.topRightBorderBox,ge.topRightBorderDoubleOuterBox);case 1:return Ml(ge.topRightBorderBox,ge.topRightBorderDoubleOuterBox,ge.bottomRightBorderBox,ge.bottomRightBorderDoubleOuterBox);case 2:return Ml(ge.bottomRightBorderBox,ge.bottomRightBorderDoubleOuterBox,ge.bottomLeftBorderBox,ge.bottomLeftBorderDoubleOuterBox);case 3:default:return Ml(ge.bottomLeftBorderBox,ge.bottomLeftBorderDoubleOuterBox,ge.topLeftBorderBox,ge.topLeftBorderDoubleOuterBox)}},Tu=function(ge,Ce){switch(Ce){case 0:return Ml(ge.topLeftBorderDoubleInnerBox,ge.topLeftPaddingBox,ge.topRightBorderDoubleInnerBox,ge.topRightPaddingBox);case 1:return Ml(ge.topRightBorderDoubleInnerBox,ge.topRightPaddingBox,ge.bottomRightBorderDoubleInnerBox,ge.bottomRightPaddingBox);case 2:return Ml(ge.bottomRightBorderDoubleInnerBox,ge.bottomRightPaddingBox,ge.bottomLeftBorderDoubleInnerBox,ge.bottomLeftPaddingBox);case 3:default:return Ml(ge.bottomLeftBorderDoubleInnerBox,ge.bottomLeftPaddingBox,ge.topLeftBorderDoubleInnerBox,ge.topLeftPaddingBox)}},wu=function(ge,Ce){switch(Ce){case 0:return rc(ge.topLeftBorderStroke,ge.topRightBorderStroke);case 1:return rc(ge.topRightBorderStroke,ge.bottomRightBorderStroke);case 2:return rc(ge.bottomRightBorderStroke,ge.bottomLeftBorderStroke);case 3:default:return rc(ge.bottomLeftBorderStroke,ge.topLeftBorderStroke)}},rc=function(ge,Ce){var ke=[];return As(ge)?ke.push(ge.subdivide(.5,!1)):ke.push(ge),As(Ce)?ke.push(Ce.subdivide(.5,!0)):ke.push(Ce),ke},Ml=function(ge,Ce,ke,rt){var Mt=[];return As(ge)?Mt.push(ge.subdivide(.5,!1)):Mt.push(ge),As(ke)?Mt.push(ke.subdivide(.5,!0)):Mt.push(ke),As(rt)?Mt.push(rt.subdivide(.5,!0).reverse()):Mt.push(rt),As(Ce)?Mt.push(Ce.subdivide(.5,!1).reverse()):Mt.push(Ce),Mt},fu=function(ge){var Ce=ge.bounds,ke=ge.styles;return Ce.add(ke.borderLeftWidth,ke.borderTopWidth,-(ke.borderRightWidth+ke.borderLeftWidth),-(ke.borderTopWidth+ke.borderBottomWidth))},lu=function(ge){var Ce=ge.styles,ke=ge.bounds,rt=mi(Ce.paddingLeft,ke.width),Mt=mi(Ce.paddingRight,ke.width),Er=mi(Ce.paddingTop,ke.width),Hr=mi(Ce.paddingBottom,ke.width);return ke.add(rt+Ce.borderLeftWidth,Er+Ce.borderTopWidth,-(Ce.borderRightWidth+Ce.borderLeftWidth+rt+Mt),-(Ce.borderTopWidth+Ce.borderBottomWidth+Er+Hr))},Su=function(ge,Ce){return ge===0?Ce.bounds:ge===2?lu(Ce):fu(Ce)},Cu=function(ge,Ce){return ge===0?Ce.bounds:ge===2?lu(Ce):fu(Ce)},kc=function(ge,Ce,ke){var rt=Su(Il(ge.styles.backgroundOrigin,Ce),ge),Mt=Cu(Il(ge.styles.backgroundClip,Ce),ge),Er=nc(Il(ge.styles.backgroundSize,Ce),ke,rt),Hr=Er[0],qr=Er[1],mn=Si(Il(ge.styles.backgroundPosition,Ce),rt.width-Hr,rt.height-qr),ai=Sc(Il(ge.styles.backgroundRepeat,Ce),mn,Er,rt,Mt),Zn=Math.round(rt.left+mn[0]),ci=Math.round(rt.top+mn[1]);return[ai,Zn,ci,Hr,qr]},wc=function(ge){return An(ge)&&ge.value===_a.AUTO},Pc=function(ge){return typeof ge=="number"},nc=function(ge,Ce,ke){var rt=Ce[0],Mt=Ce[1],Er=Ce[2],Hr=ge[0],qr=ge[1];if(!Hr)return[0,0];if(ni(Hr)&&qr&&ni(qr))return[mi(Hr,ke.width),mi(qr,ke.height)];var mn=Pc(Er);if(An(Hr)&&(Hr.value===_a.CONTAIN||Hr.value===_a.COVER)){if(Pc(Er)){var ai=ke.width/ke.height;return ai<Er!==(Hr.value===_a.COVER)?[ke.width,ke.width/Er]:[ke.height*Er,ke.height]}return[ke.width,ke.height]}var Zn=Pc(rt),ci=Pc(Mt),la=Zn||ci;if(wc(Hr)&&(!qr||wc(qr))){if(Zn&&ci)return[rt,Mt];if(!mn&&!la)return[ke.width,ke.height];if(la&&mn){var pa=Zn?rt:Mt*Er,Ea=ci?Mt:rt/Er;return[pa,Ea]}var so=Zn?rt:ke.width,Va=ci?Mt:ke.height;return[so,Va]}if(mn){var Fa=0,zo=0;return ni(Hr)?Fa=mi(Hr,ke.width):ni(qr)&&(zo=mi(qr,ke.height)),wc(Hr)?Fa=zo*Er:(!qr||wc(qr))&&(zo=Fa/Er),[Fa,zo]}var qo=null,Mo=null;if(ni(Hr)?qo=mi(Hr,ke.width):qr&&ni(qr)&&(Mo=mi(qr,ke.height)),qo!==null&&(!qr||wc(qr))&&(Mo=Zn&&ci?qo/rt*Mt:ke.height),Mo!==null&&wc(Hr)&&(qo=Zn&&ci?Mo/Mt*rt:ke.width),qo!==null&&Mo!==null)return[qo,Mo];throw new Error("Unable to calculate background-size for element")},Il=function(ge,Ce){var ke=ge[Ce];return typeof ke=="undefined"?ge[0]:ke},Sc=function(ge,Ce,ke,rt,Mt){var Er=Ce[0],Hr=Ce[1],qr=ke[0],mn=ke[1];switch(ge){case 2:return[new aa(Math.round(rt.left),Math.round(rt.top+Hr)),new aa(Math.round(rt.left+rt.width),Math.round(rt.top+Hr)),new aa(Math.round(rt.left+rt.width),Math.round(mn+rt.top+Hr)),new aa(Math.round(rt.left),Math.round(mn+rt.top+Hr))];case 3:return[new aa(Math.round(rt.left+Er),Math.round(rt.top)),new aa(Math.round(rt.left+Er+qr),Math.round(rt.top)),new aa(Math.round(rt.left+Er+qr),Math.round(rt.height+rt.top)),new aa(Math.round(rt.left+Er),Math.round(rt.height+rt.top))];case 1:return[new aa(Math.round(rt.left+Er),Math.round(rt.top+Hr)),new aa(Math.round(rt.left+Er+qr),Math.round(rt.top+Hr)),new aa(Math.round(rt.left+Er+qr),Math.round(rt.top+Hr+mn)),new aa(Math.round(rt.left+Er),Math.round(rt.top+Hr+mn))];default:return[new aa(Math.round(Mt.left),Math.round(Mt.top)),new aa(Math.round(Mt.left+Mt.width),Math.round(Mt.top)),new aa(Math.round(Mt.left+Mt.width),Math.round(Mt.height+Mt.top)),new aa(Math.round(Mt.left),Math.round(Mt.height+Mt.top))]}},cu="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",uu="Hidden Text",xu=function(){function $t(ge){this._data={},this._document=ge}return $t.prototype.parseMetrics=function(ge,Ce){var ke=this._document.createElement("div"),rt=this._document.createElement("img"),Mt=this._document.createElement("span"),Er=this._document.body;ke.style.visibility="hidden",ke.style.fontFamily=ge,ke.style.fontSize=Ce,ke.style.margin="0",ke.style.padding="0",ke.style.whiteSpace="nowrap",Er.appendChild(ke),rt.src=cu,rt.width=1,rt.height=1,rt.style.margin="0",rt.style.padding="0",rt.style.verticalAlign="baseline",Mt.style.fontFamily=ge,Mt.style.fontSize=Ce,Mt.style.margin="0",Mt.style.padding="0",Mt.appendChild(this._document.createTextNode(uu)),ke.appendChild(Mt),ke.appendChild(rt);var Hr=rt.offsetTop-Mt.offsetTop+2;ke.removeChild(Mt),ke.appendChild(this._document.createTextNode(uu)),ke.style.lineHeight="normal",rt.style.verticalAlign="super";var qr=rt.offsetTop-ke.offsetTop+2;return Er.removeChild(ke),{baseline:Hr,middle:qr}},$t.prototype.getMetrics=function(ge,Ce){var ke=ge+" "+Ce;return typeof this._data[ke]=="undefined"&&(this._data[ke]=this.parseMetrics(ge,Ce)),this._data[ke]},$t}(),Eu=function(){function $t(ge,Ce){this.context=ge,this.options=Ce}return $t}(),pu=1e4,mu=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this;return rt._activeEffects=[],rt.canvas=ke.canvas?ke.canvas:document.createElement("canvas"),rt.ctx=rt.canvas.getContext("2d"),ke.canvas||(rt.canvas.width=Math.floor(ke.width*ke.scale),rt.canvas.height=Math.floor(ke.height*ke.scale),rt.canvas.style.width=ke.width+"px",rt.canvas.style.height=ke.height+"px"),rt.fontMetrics=new xu(document),rt.ctx.scale(rt.options.scale,rt.options.scale),rt.ctx.translate(-ke.x,-ke.y),rt.ctx.textBaseline="bottom",rt._activeEffects=[],rt.context.logger.debug("Canvas renderer initialized ("+ke.width+"x"+ke.height+") with scale "+ke.scale),rt}return ge.prototype.applyEffects=function(Ce){for(var ke=this;this._activeEffects.length;)this.popEffect();Ce.forEach(function(rt){return ke.applyEffect(rt)})},ge.prototype.applyEffect=function(Ce){this.ctx.save(),Mc(Ce)&&(this.ctx.globalAlpha=Ce.opacity),rl(Ce)&&(this.ctx.translate(Ce.offsetX,Ce.offsetY),this.ctx.transform(Ce.matrix[0],Ce.matrix[1],Ce.matrix[2],Ce.matrix[3],Ce.matrix[4],Ce.matrix[5]),this.ctx.translate(-Ce.offsetX,-Ce.offsetY)),Rl(Ce)&&(this.path(Ce.path),this.ctx.clip()),this._activeEffects.push(Ce)},ge.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ge.prototype.renderStack=function(Ce){return E(this,void 0,void 0,function(){var ke;return I(this,function(rt){switch(rt.label){case 0:return ke=Ce.element.container.styles,ke.isVisible()?[4,this.renderStackContent(Ce)]:[3,2];case 1:rt.sent(),rt.label=2;case 2:return[2]}})})},ge.prototype.renderNode=function(Ce){return E(this,void 0,void 0,function(){return I(this,function(ke){switch(ke.label){case 0:if(Ri(Ce.container.flags,16))debugger;return Ce.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ce)]:[3,3];case 1:return ke.sent(),[4,this.renderNodeContent(Ce)];case 2:ke.sent(),ke.label=3;case 3:return[2]}})})},ge.prototype.renderTextWithLetterSpacing=function(Ce,ke,rt){var Mt=this;if(ke===0)this.ctx.fillText(Ce.text,Ce.bounds.left,Ce.bounds.top+rt);else{var Er=Wl(Ce.text);Er.reduce(function(Hr,qr){return Mt.ctx.fillText(qr,Hr,Ce.bounds.top+rt),Hr+Mt.ctx.measureText(qr).width},Ce.bounds.left)}},ge.prototype.createFontStyle=function(Ce){var ke=Ce.fontVariant.filter(function(Er){return Er==="normal"||Er==="small-caps"}).join(""),rt=Nu(Ce.fontFamily).join(", "),Mt=on(Ce.fontSize)?""+Ce.fontSize.number+Ce.fontSize.unit:Ce.fontSize.number+"px";return[[Ce.fontStyle,ke,Ce.fontWeight,Mt,rt].join(" "),rt,Mt]},ge.prototype.renderTextNode=function(Ce,ke){return E(this,void 0,void 0,function(){var rt,Mt,Er,Hr,qr,mn,ai,Zn,ci=this;return I(this,function(la){return rt=this.createFontStyle(ke),Mt=rt[0],Er=rt[1],Hr=rt[2],this.ctx.font=Mt,this.ctx.direction=ke.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",qr=this.fontMetrics.getMetrics(Er,Hr),mn=qr.baseline,ai=qr.middle,Zn=ke.paintOrder,Ce.textBounds.forEach(function(pa){Zn.forEach(function(Ea){switch(Ea){case 0:ci.ctx.fillStyle=Zt(ke.color),ci.renderTextWithLetterSpacing(pa,ke.letterSpacing,mn);var so=ke.textShadow;so.length&&pa.text.trim().length&&(so.slice(0).reverse().forEach(function(Va){ci.ctx.shadowColor=Zt(Va.color),ci.ctx.shadowOffsetX=Va.offsetX.number*ci.options.scale,ci.ctx.shadowOffsetY=Va.offsetY.number*ci.options.scale,ci.ctx.shadowBlur=Va.blur.number,ci.renderTextWithLetterSpacing(pa,ke.letterSpacing,mn)}),ci.ctx.shadowColor="",ci.ctx.shadowOffsetX=0,ci.ctx.shadowOffsetY=0,ci.ctx.shadowBlur=0),ke.textDecorationLine.length&&(ci.ctx.fillStyle=Zt(ke.textDecorationColor||ke.color),ke.textDecorationLine.forEach(function(Va){switch(Va){case 1:ci.ctx.fillRect(pa.bounds.left,Math.round(pa.bounds.top+mn),pa.bounds.width,1);break;case 2:ci.ctx.fillRect(pa.bounds.left,Math.round(pa.bounds.top),pa.bounds.width,1);break;case 3:ci.ctx.fillRect(pa.bounds.left,Math.ceil(pa.bounds.top+ai),pa.bounds.width,1);break}}));break;case 1:ke.webkitTextStrokeWidth&&pa.text.trim().length&&(ci.ctx.strokeStyle=Zt(ke.webkitTextStrokeColor),ci.ctx.lineWidth=ke.webkitTextStrokeWidth,ci.ctx.lineJoin=window.chrome?"miter":"round",ci.ctx.strokeText(pa.text,pa.bounds.left,pa.bounds.top+mn)),ci.ctx.strokeStyle="",ci.ctx.lineWidth=0,ci.ctx.lineJoin="miter";break}})}),[2]})})},ge.prototype.renderReplacedElement=function(Ce,ke,rt){if(rt&&Ce.intrinsicWidth>0&&Ce.intrinsicHeight>0){var Mt=lu(Ce),Er=yc(ke);this.path(Er),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(rt,0,0,Ce.intrinsicWidth,Ce.intrinsicHeight,Mt.left,Mt.top,Mt.width,Mt.height),this.ctx.restore()}},ge.prototype.renderNodeContent=function(Ce){return E(this,void 0,void 0,function(){var ke,rt,Mt,Er,Hr,qr,mn,mn,ai,Zn,ci,la,pa,Ea,so,Va,Fa,zo,qo,mn,Mo,pa,Va;return I(this,function(ka){switch(ka.label){case 0:this.applyEffects(Ce.getEffects(4)),ke=Ce.container,rt=Ce.curves,Mt=ke.styles,Er=0,Hr=ke.textNodes,ka.label=1;case 1:return Er<Hr.length?(qr=Hr[Er],[4,this.renderTextNode(qr,Mt)]):[3,4];case 2:ka.sent(),ka.label=3;case 3:return Er++,[3,1];case 4:if(!(ke instanceof ec))return[3,8];ka.label=5;case 5:return ka.trys.push([5,7,,8]),[4,this.context.cache.match(ke.src)];case 6:return mn=ka.sent(),this.renderReplacedElement(ke,rt,mn),[3,8];case 7:return ka.sent(),this.context.logger.error("Error loading image "+ke.src),[3,8];case 8:if(ke instanceof bl&&this.renderReplacedElement(ke,rt,ke.canvas),!(ke instanceof cl))return[3,12];ka.label=9;case 9:return ka.trys.push([9,11,,12]),[4,this.context.cache.match(ke.svg)];case 10:return mn=ka.sent(),this.renderReplacedElement(ke,rt,mn),[3,12];case 11:return ka.sent(),this.context.logger.error("Error loading svg "+ke.svg.substring(0,255)),[3,12];case 12:return ke instanceof Nc&&ke.tree?(ai=new ge(this.context,{scale:this.options.scale,backgroundColor:ke.backgroundColor,x:0,y:0,width:ke.width,height:ke.height}),[4,ai.render(ke.tree)]):[3,14];case 13:Zn=ka.sent(),ke.width&&ke.height&&this.ctx.drawImage(Zn,0,0,ke.width,ke.height,ke.bounds.left,ke.bounds.top,ke.bounds.width,ke.bounds.height),ka.label=14;case 14:if(ke instanceof jl&&(ci=Math.min(ke.bounds.width,ke.bounds.height),ke.type===Vl?ke.checked&&(this.ctx.save(),this.path([new aa(ke.bounds.left+ci*.39363,ke.bounds.top+ci*.79),new aa(ke.bounds.left+ci*.16,ke.bounds.top+ci*.5549),new aa(ke.bounds.left+ci*.27347,ke.bounds.top+ci*.44071),new aa(ke.bounds.left+ci*.39694,ke.bounds.top+ci*.5649),new aa(ke.bounds.left+ci*.72983,ke.bounds.top+ci*.23),new aa(ke.bounds.left+ci*.84,ke.bounds.top+ci*.34085),new aa(ke.bounds.left+ci*.39363,ke.bounds.top+ci*.79)]),this.ctx.fillStyle=Zt(Gl),this.ctx.fill(),this.ctx.restore()):ke.type===pl&&(ke.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(ke.bounds.left+ci/2,ke.bounds.top+ci/2,ci/4,0,Math.PI*2,!0),this.ctx.fillStyle=Zt(Gl),this.ctx.fill(),this.ctx.restore()))),Iu(ke)&&ke.value.length){la=this.createFontStyle(Mt),pa=la[0],Ea=la[1],so=this.fontMetrics.getMetrics(pa,Ea).baseline,this.ctx.font=pa,this.ctx.fillStyle=Zt(Mt.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ou(ke.styles.textAlign),Va=lu(ke),Fa=0;switch(ke.styles.textAlign){case 1:Fa+=Va.width/2;break;case 2:Fa+=Va.width;break}zo=Va.add(Fa,0,0,-Va.height/2+1),this.ctx.save(),this.path([new aa(Va.left,Va.top),new aa(Va.left+Va.width,Va.top),new aa(Va.left+Va.width,Va.top+Va.height),new aa(Va.left,Va.top+Va.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new dl(ke.value,zo),Mt.letterSpacing,so),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ri(ke.styles.display,2048))return[3,20];if(!(ke.styles.listStyleImage!==null))return[3,19];if(qo=ke.styles.listStyleImage,!(qo.type===0))return[3,18];mn=void 0,Mo=qo.url,ka.label=15;case 15:return ka.trys.push([15,17,,18]),[4,this.context.cache.match(Mo)];case 16:return mn=ka.sent(),this.ctx.drawImage(mn,ke.bounds.left-(mn.width+10),ke.bounds.top),[3,18];case 17:return ka.sent(),this.context.logger.error("Error loading list-style-image "+Mo),[3,18];case 18:return[3,20];case 19:Ce.listValue&&ke.styles.listStyleType!==-1&&(pa=this.createFontStyle(Mt)[0],this.ctx.font=pa,this.ctx.fillStyle=Zt(Mt.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Va=new m(ke.bounds.left,ke.bounds.top+mi(ke.styles.paddingTop,ke.bounds.width),ke.bounds.width,mo(Mt.lineHeight,Mt.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new dl(Ce.listValue,Va),Mt.letterSpacing,mo(Mt.lineHeight,Mt.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),ka.label=20;case 20:return[2]}})})},ge.prototype.renderStackContent=function(Ce){return E(this,void 0,void 0,function(){var ke,rt,Mt,Er,Hr,Mt,qr,mn,Mt,ai,Zn,Mt,ci,la,Mt,pa,Ea,Mt,so,Va,Mt;return I(this,function(Fa){switch(Fa.label){case 0:if(Ri(Ce.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ce.element)];case 1:Fa.sent(),ke=0,rt=Ce.negativeZIndex,Fa.label=2;case 2:return ke<rt.length?(Mt=rt[ke],[4,this.renderStack(Mt)]):[3,5];case 3:Fa.sent(),Fa.label=4;case 4:return ke++,[3,2];case 5:return[4,this.renderNodeContent(Ce.element)];case 6:Fa.sent(),Er=0,Hr=Ce.nonInlineLevel,Fa.label=7;case 7:return Er<Hr.length?(Mt=Hr[Er],[4,this.renderNode(Mt)]):[3,10];case 8:Fa.sent(),Fa.label=9;case 9:return Er++,[3,7];case 10:qr=0,mn=Ce.nonPositionedFloats,Fa.label=11;case 11:return qr<mn.length?(Mt=mn[qr],[4,this.renderStack(Mt)]):[3,14];case 12:Fa.sent(),Fa.label=13;case 13:return qr++,[3,11];case 14:ai=0,Zn=Ce.nonPositionedInlineLevel,Fa.label=15;case 15:return ai<Zn.length?(Mt=Zn[ai],[4,this.renderStack(Mt)]):[3,18];case 16:Fa.sent(),Fa.label=17;case 17:return ai++,[3,15];case 18:ci=0,la=Ce.inlineLevel,Fa.label=19;case 19:return ci<la.length?(Mt=la[ci],[4,this.renderNode(Mt)]):[3,22];case 20:Fa.sent(),Fa.label=21;case 21:return ci++,[3,19];case 22:pa=0,Ea=Ce.zeroOrAutoZIndexOrTransformedOrOpacity,Fa.label=23;case 23:return pa<Ea.length?(Mt=Ea[pa],[4,this.renderStack(Mt)]):[3,26];case 24:Fa.sent(),Fa.label=25;case 25:return pa++,[3,23];case 26:so=0,Va=Ce.positiveZIndex,Fa.label=27;case 27:return so<Va.length?(Mt=Va[so],[4,this.renderStack(Mt)]):[3,30];case 28:Fa.sent(),Fa.label=29;case 29:return so++,[3,27];case 30:return[2]}})})},ge.prototype.mask=function(Ce){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(Ce.slice(0).reverse()),this.ctx.closePath()},ge.prototype.path=function(Ce){this.ctx.beginPath(),this.formatPath(Ce),this.ctx.closePath()},ge.prototype.formatPath=function(Ce){var ke=this;Ce.forEach(function(rt,Mt){var Er=As(rt)?rt.start:rt;Mt===0?ke.ctx.moveTo(Er.x,Er.y):ke.ctx.lineTo(Er.x,Er.y),As(rt)&&ke.ctx.bezierCurveTo(rt.startControl.x,rt.startControl.y,rt.endControl.x,rt.endControl.y,rt.end.x,rt.end.y)})},ge.prototype.renderRepeat=function(Ce,ke,rt,Mt){this.path(Ce),this.ctx.fillStyle=ke,this.ctx.translate(rt,Mt),this.ctx.fill(),this.ctx.translate(-rt,-Mt)},ge.prototype.resizeImage=function(Ce,ke,rt){var Mt;if(Ce.width===ke&&Ce.height===rt)return Ce;var Er=(Mt=this.canvas.ownerDocument)!==null&&Mt!==void 0?Mt:document,Hr=Er.createElement("canvas");Hr.width=Math.max(1,ke),Hr.height=Math.max(1,rt);var qr=Hr.getContext("2d");return qr.drawImage(Ce,0,0,Ce.width,Ce.height,0,0,ke,rt),Hr},ge.prototype.renderBackgroundImage=function(Ce){return E(this,void 0,void 0,function(){var ke,rt,Mt,Er,Hr,qr;return I(this,function(mn){switch(mn.label){case 0:ke=Ce.styles.backgroundImage.length-1,rt=function(Zn){var ci,la,pa,Ea,so,Va,Fa,zo,qo,Mo,Ea,so,Va,Fa,zo,ka,ss,us,ko,kl,Yl,Pl,ul,ru,qo,xc,Ea,Jc,Zc,Fa,zo,$c,so,Va,nu,Ec,qc,iu,au,Bc,ou,Fc;return I(this,function(du){switch(du.label){case 0:if(!(Zn.type===0))return[3,5];ci=void 0,la=Zn.url,du.label=1;case 1:return du.trys.push([1,3,,4]),[4,Mt.context.cache.match(la)];case 2:return ci=du.sent(),[3,4];case 3:return du.sent(),Mt.context.logger.error("Error loading background-image "+la),[3,4];case 4:return ci&&(pa=kc(Ce,ke,[ci.width,ci.height,ci.width/ci.height]),Ea=pa[0],so=pa[1],Va=pa[2],Fa=pa[3],zo=pa[4],qo=Mt.ctx.createPattern(Mt.resizeImage(ci,Fa,zo),"repeat"),Mt.renderRepeat(Ea,qo,so,Va)),[3,6];case 5:za(Zn)?(Mo=kc(Ce,ke,[null,null,null]),Ea=Mo[0],so=Mo[1],Va=Mo[2],Fa=Mo[3],zo=Mo[4],ka=ma(Zn.angle,Fa,zo),ss=ka[0],us=ka[1],ko=ka[2],kl=ka[3],Yl=ka[4],Pl=document.createElement("canvas"),Pl.width=Fa,Pl.height=zo,ul=Pl.getContext("2d"),ru=ul.createLinearGradient(us,kl,ko,Yl),da(Zn.stops,ss).forEach(function(gu){return ru.addColorStop(gu.stop,Zt(gu.color))}),ul.fillStyle=ru,ul.fillRect(0,0,Fa,zo),Fa>0&&zo>0&&(qo=Mt.ctx.createPattern(Pl,"repeat"),Mt.renderRepeat(Ea,qo,so,Va))):xa(Zn)&&(xc=kc(Ce,ke,[null,null,null]),Ea=xc[0],Jc=xc[1],Zc=xc[2],Fa=xc[3],zo=xc[4],$c=Zn.position.length===0?[Oi]:Zn.position,so=mi($c[0],Fa),Va=mi($c[$c.length-1],zo),nu=ra(Zn,so,Va,Fa,zo),Ec=nu[0],qc=nu[1],Ec>0&&qc>0&&(iu=Mt.ctx.createRadialGradient(Jc+so,Zc+Va,0,Jc+so,Zc+Va,Ec),da(Zn.stops,Ec*2).forEach(function(gu){return iu.addColorStop(gu.stop,Zt(gu.color))}),Mt.path(Ea),Mt.ctx.fillStyle=iu,Ec!==qc?(au=Ce.bounds.left+.5*Ce.bounds.width,Bc=Ce.bounds.top+.5*Ce.bounds.height,ou=qc/Ec,Fc=1/ou,Mt.ctx.save(),Mt.ctx.translate(au,Bc),Mt.ctx.transform(1,0,0,ou,0,0),Mt.ctx.translate(-au,-Bc),Mt.ctx.fillRect(Jc,Fc*(Zc-Bc)+Bc,Fa,zo*Fc),Mt.ctx.restore()):Mt.ctx.fill())),du.label=6;case 6:return ke--,[2]}})},Mt=this,Er=0,Hr=Ce.styles.backgroundImage.slice(0).reverse(),mn.label=1;case 1:return Er<Hr.length?(qr=Hr[Er],[5,rt(qr)]):[3,4];case 2:mn.sent(),mn.label=3;case 3:return Er++,[3,1];case 4:return[2]}})})},ge.prototype.renderSolidBorder=function(Ce,ke,rt){return E(this,void 0,void 0,function(){return I(this,function(Mt){return this.path(hu(rt,ke)),this.ctx.fillStyle=Zt(Ce),this.ctx.fill(),[2]})})},ge.prototype.renderDoubleBorder=function(Ce,ke,rt,Mt){return E(this,void 0,void 0,function(){var Er,Hr;return I(this,function(qr){switch(qr.label){case 0:return ke<3?[4,this.renderSolidBorder(Ce,rt,Mt)]:[3,2];case 1:return qr.sent(),[2];case 2:return Er=bu(Mt,rt),this.path(Er),this.ctx.fillStyle=Zt(Ce),this.ctx.fill(),Hr=Tu(Mt,rt),this.path(Hr),this.ctx.fill(),[2]}})})},ge.prototype.renderNodeBackgroundAndBorders=function(Ce){return E(this,void 0,void 0,function(){var ke,rt,Mt,Er,Hr,qr,mn,ai,Zn=this;return I(this,function(ci){switch(ci.label){case 0:return this.applyEffects(Ce.getEffects(2)),ke=Ce.container.styles,rt=!Sr(ke.backgroundColor)||ke.backgroundImage.length,Mt=[{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}],Er=_u(Il(ke.backgroundClip,0),Ce.curves),rt||ke.boxShadow.length?(this.ctx.save(),this.path(Er),this.ctx.clip(),Sr(ke.backgroundColor)||(this.ctx.fillStyle=Zt(ke.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ce.container)]):[3,2];case 1:ci.sent(),this.ctx.restore(),ke.boxShadow.slice(0).reverse().forEach(function(la){Zn.ctx.save();var pa=ml(Ce.curves),Ea=la.inset?0:pu,so=vu(pa,-Ea+(la.inset?1:-1)*la.spread.number,(la.inset?1:-1)*la.spread.number,la.spread.number*(la.inset?-2:2),la.spread.number*(la.inset?-2:2));la.inset?(Zn.path(pa),Zn.ctx.clip(),Zn.mask(so)):(Zn.mask(pa),Zn.ctx.clip(),Zn.path(so)),Zn.ctx.shadowOffsetX=la.offsetX.number+Ea,Zn.ctx.shadowOffsetY=la.offsetY.number,Zn.ctx.shadowColor=Zt(la.color),Zn.ctx.shadowBlur=la.blur.number,Zn.ctx.fillStyle=la.inset?Zt(la.color):"rgba(0,0,0,1)",Zn.ctx.fill(),Zn.ctx.restore()}),ci.label=2;case 2:Hr=0,qr=0,mn=Mt,ci.label=3;case 3:return qr<mn.length?(ai=mn[qr],ai.style!==0&&!Sr(ai.color)&&ai.width>0?ai.style===2?[4,this.renderDashedDottedBorder(ai.color,ai.width,Hr,Ce.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return ci.sent(),[3,11];case 5:return ai.style===3?[4,this.renderDashedDottedBorder(ai.color,ai.width,Hr,Ce.curves,3)]:[3,7];case 6:return ci.sent(),[3,11];case 7:return ai.style===4?[4,this.renderDoubleBorder(ai.color,ai.width,Hr,Ce.curves)]:[3,9];case 8:return ci.sent(),[3,11];case 9:return[4,this.renderSolidBorder(ai.color,Hr,Ce.curves)];case 10:ci.sent(),ci.label=11;case 11:Hr++,ci.label=12;case 12:return qr++,[3,3];case 13:return[2]}})})},ge.prototype.renderDashedDottedBorder=function(Ce,ke,rt,Mt,Er){return E(this,void 0,void 0,function(){var Hr,qr,mn,ai,Zn,ci,la,pa,Ea,so,Va,Fa,zo,qo,Mo,ka,Mo,ka;return I(this,function(ss){return this.ctx.save(),Hr=wu(Mt,rt),qr=hu(Mt,rt),Er===2&&(this.path(qr),this.ctx.clip()),As(qr[0])?(mn=qr[0].start.x,ai=qr[0].start.y):(mn=qr[0].x,ai=qr[0].y),As(qr[1])?(Zn=qr[1].end.x,ci=qr[1].end.y):(Zn=qr[1].x,ci=qr[1].y),rt===0||rt===2?la=Math.abs(mn-Zn):la=Math.abs(ai-ci),this.ctx.beginPath(),Er===3?this.formatPath(Hr):this.formatPath(qr.slice(0,2)),pa=ke<3?ke*3:ke*2,Ea=ke<3?ke*2:ke,Er===3&&(pa=ke,Ea=ke),so=!0,la<=pa*2?so=!1:la<=pa*2+Ea?(Va=la/(2*pa+Ea),pa*=Va,Ea*=Va):(Fa=Math.floor((la+Ea)/(pa+Ea)),zo=(la-Fa*pa)/(Fa-1),qo=(la-(Fa+1)*pa)/Fa,Ea=qo<=0||Math.abs(Ea-zo)<Math.abs(Ea-qo)?zo:qo),so&&(Er===3?this.ctx.setLineDash([0,pa+Ea]):this.ctx.setLineDash([pa,Ea])),Er===3?(this.ctx.lineCap="round",this.ctx.lineWidth=ke):this.ctx.lineWidth=ke*2+1.1,this.ctx.strokeStyle=Zt(Ce),this.ctx.stroke(),this.ctx.setLineDash([]),Er===2&&(As(qr[0])&&(Mo=qr[3],ka=qr[0],this.ctx.beginPath(),this.formatPath([new aa(Mo.end.x,Mo.end.y),new aa(ka.start.x,ka.start.y)]),this.ctx.stroke()),As(qr[1])&&(Mo=qr[1],ka=qr[2],this.ctx.beginPath(),this.formatPath([new aa(Mo.end.x,Mo.end.y),new aa(ka.start.x,ka.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ge.prototype.render=function(Ce){return E(this,void 0,void 0,function(){var ke;return I(this,function(rt){switch(rt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Zt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),ke=bc(Ce),[4,this.renderStack(ke)];case 1:return rt.sent(),this.applyEffects([]),[2,this.canvas]}})})},ge}(Eu),Iu=function(ge){return ge instanceof Vc||ge instanceof mc?!0:ge instanceof jl&&ge.type!==pl&&ge.type!==Vl},_u=function(ge,Ce){switch(ge){case 0:return ml(Ce);case 2:return Gs(Ce);case 1:default:return yc(Ce)}},Ou=function(ge){switch(ge){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lu=["-apple-system","system-ui"],Nu=function(ge){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?ge.filter(function(Ce){return Lu.indexOf(Ce)===-1}):ge},Du=function($t){N(ge,$t);function ge(Ce,ke){var rt=$t.call(this,Ce,ke)||this;return rt.canvas=ke.canvas?ke.canvas:document.createElement("canvas"),rt.ctx=rt.canvas.getContext("2d"),rt.options=ke,rt.canvas.width=Math.floor(ke.width*ke.scale),rt.canvas.height=Math.floor(ke.height*ke.scale),rt.canvas.style.width=ke.width+"px",rt.canvas.style.height=ke.height+"px",rt.ctx.scale(rt.options.scale,rt.options.scale),rt.ctx.translate(-ke.x,-ke.y),rt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+ke.width+"x"+ke.height+" at "+ke.x+","+ke.y+") with scale "+ke.scale),rt}return ge.prototype.render=function(Ce){return E(this,void 0,void 0,function(){var ke,rt;return I(this,function(Mt){switch(Mt.label){case 0:return ke=uc(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ce),[4,Ru(ke)];case 1:return rt=Mt.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Zt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(rt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},ge}(Eu),Ru=function(ge){return new Promise(function(Ce,ke){var rt=new Image;rt.onload=function(){Ce(rt)},rt.onerror=ke,rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ge))})},Mu=function(){function $t(ge){var Ce=ge.id,ke=ge.enabled;this.id=Ce,this.enabled=ke,this.start=Date.now()}return $t.prototype.debug=function(){for(var ge=[],Ce=0;Ce<arguments.length;Ce++)ge[Ce]=arguments[Ce];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,o([this.id,this.getTime()+"ms"],ge)):this.info.apply(this,ge))},$t.prototype.getTime=function(){return Date.now()-this.start},$t.prototype.info=function(){for(var ge=[],Ce=0;Ce<arguments.length;Ce++)ge[Ce]=arguments[Ce];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,o([this.id,this.getTime()+"ms"],ge)))},$t.prototype.warn=function(){for(var ge=[],Ce=0;Ce<arguments.length;Ce++)ge[Ce]=arguments[Ce];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,o([this.id,this.getTime()+"ms"],ge)):this.info.apply(this,ge))},$t.prototype.error=function(){for(var ge=[],Ce=0;Ce<arguments.length;Ce++)ge[Ce]=arguments[Ce];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,o([this.id,this.getTime()+"ms"],ge)):this.info.apply(this,ge))},$t.instances={},$t}(),ku=function(){function $t(ge,Ce){var ke;this.windowBounds=Ce,this.instanceName="#"+$t.instanceCount++,this.logger=new Mu({id:this.instanceName,enabled:ge.logging}),this.cache=(ke=ge.cache)!==null&&ke!==void 0?ke:new Eo(this,ge)}return $t.instanceCount=1,$t}(),Pu=function(ge,Ce){return Ce===void 0&&(Ce={}),Bu(ge,Ce)};typeof window!="undefined"&&Ba.setContext(window);var Bu=function(ge,Ce){return E(void 0,void 0,void 0,function(){var ke,rt,Mt,Er,Hr,qr,mn,ai,Zn,ci,la,pa,Ea,so,Va,Fa,zo,qo,Mo,ka,ss,us,ss,ko,kl,Yl,Pl,ul,ru,xc,Jc,Zc,$c,nu,Ec,qc,iu,au,Bc,ou;return I(this,function(Fc){switch(Fc.label){case 0:if(!ge||typeof ge!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(ke=ge.ownerDocument,!ke)throw new Error("Element is not attached to a Document");if(rt=ke.defaultView,!rt)throw new Error("Document is not attached to a Window");return Mt={allowTaint:(ko=Ce.allowTaint)!==null&&ko!==void 0?ko:!1,imageTimeout:(kl=Ce.imageTimeout)!==null&&kl!==void 0?kl:15e3,proxy:Ce.proxy,useCORS:(Yl=Ce.useCORS)!==null&&Yl!==void 0?Yl:!1},Er=L({logging:(Pl=Ce.logging)!==null&&Pl!==void 0?Pl:!0,cache:Ce.cache},Mt),Hr={windowWidth:(ul=Ce.windowWidth)!==null&&ul!==void 0?ul:rt.innerWidth,windowHeight:(ru=Ce.windowHeight)!==null&&ru!==void 0?ru:rt.innerHeight,scrollX:(xc=Ce.scrollX)!==null&&xc!==void 0?xc:rt.pageXOffset,scrollY:(Jc=Ce.scrollY)!==null&&Jc!==void 0?Jc:rt.pageYOffset},qr=new m(Hr.scrollX,Hr.scrollY,Hr.windowWidth,Hr.windowHeight),mn=new ku(Er,qr),ai=(Zc=Ce.foreignObjectRendering)!==null&&Zc!==void 0?Zc:!1,Zn={allowTaint:($c=Ce.allowTaint)!==null&&$c!==void 0?$c:!1,onclone:Ce.onclone,ignoreElements:Ce.ignoreElements,inlineImages:ai,copyStyles:ai},mn.logger.debug("Starting document clone with size "+qr.width+"x"+qr.height+" scrolled to "+-qr.left+","+-qr.top),ci=new he(mn,ge,Zn),la=ci.clonedReferenceElement,la?[4,ci.toIFrame(ke,qr)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return pa=Fc.sent(),Ea=dr(la)||pt(la)?s(la.ownerDocument):f(mn,la),so=Ea.width,Va=Ea.height,Fa=Ea.left,zo=Ea.top,qo=Fu(mn,la,Ce.backgroundColor),Mo={canvas:Ce.canvas,backgroundColor:qo,scale:(Ec=(nu=Ce.scale)!==null&&nu!==void 0?nu:rt.devicePixelRatio)!==null&&Ec!==void 0?Ec:1,x:((qc=Ce.x)!==null&&qc!==void 0?qc:0)+Fa,y:((iu=Ce.y)!==null&&iu!==void 0?iu:0)+zo,width:(au=Ce.width)!==null&&au!==void 0?au:Math.ceil(so),height:(Bc=Ce.height)!==null&&Bc!==void 0?Bc:Math.ceil(Va)},ai?(mn.logger.debug("Document cloned, using foreign object rendering"),ss=new Du(mn,Mo),[4,ss.render(la)]):[3,3];case 2:return ka=Fc.sent(),[3,5];case 3:return mn.logger.debug("Document cloned, element located at "+Fa+","+zo+" with size "+so+"x"+Va+" using computed rendering"),mn.logger.debug("Starting DOM parsing"),us=Xc(mn,la),qo===us.styles.backgroundColor&&(us.styles.backgroundColor=Jn.TRANSPARENT),mn.logger.debug("Starting renderer for element at "+Mo.x+","+Mo.y+" with size "+Mo.width+"x"+Mo.height),ss=new mu(mn,Mo),[4,ss.render(us)];case 4:ka=Fc.sent(),Fc.label=5;case 5:return((ou=Ce.removeContainer)!==null&&ou!==void 0?ou:!0)&&(he.destroy(pa)||mn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),mn.logger.debug("Finished rendering"),[2,ka]}})})},Fu=function(ge,Ce,ke){var rt=Ce.ownerDocument,Mt=rt.documentElement?Xn(ge,getComputedStyle(rt.documentElement).backgroundColor):Jn.TRANSPARENT,Er=rt.body?Xn(ge,getComputedStyle(rt.body).backgroundColor):Jn.TRANSPARENT,Hr=typeof ke=="string"?Xn(ge,ke):ke===null?Jn.TRANSPARENT:4294967295;return Ce===rt.documentElement?Sr(Mt)?Sr(Er)?Hr:Er:Mt:Hr};return Pu})},wPlo:function(fe,z,y){"use strict";y.d(z,"a",function(){return D});var D="RC_SELECT_INTERNAL_PROPS_MARK"},wU8J:function(fe,z){function y(){this.buffer=new Array,this.length=0}y.prototype={get:function(N){var L=Math.floor(N/8);return(this.buffer[L]>>>7-N%8&1)==1},put:function(N,L){for(var E=0;E<L;E++)this.putBit((N>>>L-E-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(N){var L=Math.floor(this.length/8);this.buffer.length<=L&&this.buffer.push(0),N&&(this.buffer[L]|=128>>>this.length%8),this.length++}},fe.exports=y},wXyp:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("ygfH")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="CheckOutlined";var f=E.forwardRef(m);z.default=f},wYyv:function(fe,z,y){"use strict";var D=y("R5yR"),N=y("5wUe"),L=function(o,m,f){var s=m<0?o.length+m:m;if(s>=0&&s<o.length){var t=f<0?o.length+f:f,l=o.splice(m,1),a=N(l,1),r=a[0];o.splice(t,0,r)}},E=function(o,m,f){return o=D(o),L(o,m,f),o};fe.exports=E,fe.exports.mutate=L},wZgz:function(fe,z,y){(function(D,N,L){fe.exports=z=N(y("Ib8C"),y("ETIr"),y("cv67"),y("K3mO"),y("OLod"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.BlockCipher,I=N.algo,o=[],m=[],f=[],s=[],t=[],l=[],a=[],r=[],u=[],e=[];(function(){for(var c=[],d=0;d<256;d++)d<128?c[d]=d<<1:c[d]=d<<1^283;for(var h=0,p=0,d=0;d<256;d++){var g=p^p<<1^p<<2^p<<3^p<<4;g=g>>>8^g&255^99,o[h]=g,m[g]=h;var v=c[h],A=c[v],x=c[A],b=c[g]*257^g*16843008;f[h]=b<<24|b>>>8,s[h]=b<<16|b>>>16,t[h]=b<<8|b>>>24,l[h]=b;var b=x*16843009^A*65537^v*257^h*16843008;a[g]=b<<24|b>>>8,r[g]=b<<16|b>>>16,u[g]=b<<8|b>>>24,e[g]=b,h?(h=v^c[c[c[x^v]]],p^=c[c[p]]):h=p=1}})();var n=[0,1,2,4,8,16,32,64,128,27,54],i=I.AES=E.extend({_doReset:function(){var d;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var h=this._keyPriorReset=this._key,p=h.words,g=h.sigBytes/4,v=this._nRounds=g+6,A=(v+1)*4,x=this._keySchedule=[],b=0;b<A;b++)b<g?x[b]=p[b]:(d=x[b-1],b%g?g>6&&b%g==4&&(d=o[d>>>24]<<24|o[d>>>16&255]<<16|o[d>>>8&255]<<8|o[d&255]):(d=d<<8|d>>>24,d=o[d>>>24]<<24|o[d>>>16&255]<<16|o[d>>>8&255]<<8|o[d&255],d^=n[b/g|0]<<24),x[b]=x[b-g]^d);for(var w=this._invKeySchedule=[],S=0;S<A;S++){var b=A-S;if(S%4)var d=x[b];else var d=x[b-4];S<4||b<=4?w[S]=d:w[S]=a[o[d>>>24]]^r[o[d>>>16&255]]^u[o[d>>>8&255]]^e[o[d&255]]}},encryptBlock:function(d,h){this._doCryptBlock(d,h,this._keySchedule,f,s,t,l,o)},decryptBlock:function(d,h){var p=d[h+1];d[h+1]=d[h+3],d[h+3]=p,this._doCryptBlock(d,h,this._invKeySchedule,a,r,u,e,m);var p=d[h+1];d[h+1]=d[h+3],d[h+3]=p},_doCryptBlock:function(d,h,p,g,v,A,x,b){for(var w=this._nRounds,S=d[h]^p[0],T=d[h+1]^p[1],C=d[h+2]^p[2],O=d[h+3]^p[3],_=4,M=1;M<w;M++){var k=g[S>>>24]^v[T>>>16&255]^A[C>>>8&255]^x[O&255]^p[_++],R=g[T>>>24]^v[C>>>16&255]^A[O>>>8&255]^x[S&255]^p[_++],B=g[C>>>24]^v[O>>>16&255]^A[S>>>8&255]^x[T&255]^p[_++],P=g[O>>>24]^v[S>>>16&255]^A[T>>>8&255]^x[C&255]^p[_++];S=k,T=R,C=B,O=P}var k=(b[S>>>24]<<24|b[T>>>16&255]<<16|b[C>>>8&255]<<8|b[O&255])^p[_++],R=(b[T>>>24]<<24|b[C>>>16&255]<<16|b[O>>>8&255]<<8|b[S&255])^p[_++],B=(b[C>>>24]<<24|b[O>>>16&255]<<16|b[S>>>8&255]<<8|b[T&255])^p[_++],P=(b[O>>>24]<<24|b[S>>>16&255]<<16|b[T>>>8&255]<<8|b[C&255])^p[_++];d[h]=k,d[h+1]=R,d[h+2]=B,d[h+3]=P},keySize:256/32});N.AES=E._createHelper(i)}(),D.AES})},wbyO:function(fe,z,y){(function(D,N){fe.exports=z=N(y("Ib8C"))})(this,function(D){return function(){var N=D,L=N.lib,E=L.WordArray,I=N.enc,o=I.Base64url={stringify:function(s){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=s.words,a=s.sigBytes,r=t?this._safe_map:this._map;s.clamp();for(var u=[],e=0;e<a;e+=3)for(var n=l[e>>>2]>>>24-e%4*8&255,i=l[e+1>>>2]>>>24-(e+1)%4*8&255,c=l[e+2>>>2]>>>24-(e+2)%4*8&255,d=n<<16|i<<8|c,h=0;h<4&&e+h*.75<a;h++)u.push(r.charAt(d>>>6*(3-h)&63));var p=r.charAt(64);if(p)for(;u.length%4;)u.push(p);return u.join("")},parse:function(s){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=s.length,a=t?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var u=0;u<a.length;u++)r[a.charCodeAt(u)]=u}var e=a.charAt(64);if(e){var n=s.indexOf(e);n!==-1&&(l=n)}return m(s,l,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(f,s,t){for(var l=[],a=0,r=0;r<s;r++)if(r%4){var u=t[f.charCodeAt(r-1)]<<r%4*2,e=t[f.charCodeAt(r)]>>>6-r%4*2,n=u|e;l[a>>>2]|=n<<24-a%4*8,a++}return E.create(l,a)}}(),D.enc.Base64url})},wgjA:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},whVF:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=y("lNSK"),N=L(y("1q3G"));function L(f){return f&&f.__esModule?f:{default:f}}function E(f,s){if(!(f instanceof s))throw new TypeError("Cannot call a class as a function")}function I(f,s){for(var t=0;t<s.length;t++){var l=s[t];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(f,l.key,l)}}function o(f,s,t){return s&&I(f.prototype,s),t&&I(f,t),f}var m=function(){function f(){E(this,f),this.strm=new N.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,D.deflateInit)(this.strm,this.windowBits)}return o(f,[{key:"deflate",value:function(t){this.strm.input=t,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 l=(0,D.deflate)(this.strm,D.Z_FULL_FLUSH),a=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(l<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var r=[a],u=a.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,l=(0,D.deflate)(this.strm,D.Z_FULL_FLUSH),l<0)throw new Error("zlib deflate failed");var e=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);u+=e.length,r.push(e)}while(this.strm.avail_in>0);for(var n=new Uint8Array(u),i=0,c=0;c<r.length;c++)n.set(r[c],i),i+=r[c].length;a=n}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,a}}]),f}();z.default=m},wr5s:function(fe,z,y){var D=y("IwbS"),N=D.extendShape,L=N({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(E,I){var o=I.cx,m=I.cy,f=Math.max(I.r0||0,0),s=Math.max(I.r,0),t=(s-f)*.5,l=f+t,a=I.startAngle,r=I.endAngle,u=I.clockwise,e=Math.cos(a),n=Math.sin(a),i=Math.cos(r),c=Math.sin(r),d=u?r-a<Math.PI*2:a-r<Math.PI*2;d&&(E.moveTo(e*f+o,n*f+m),E.arc(e*l+o,n*l+m,t,-Math.PI+a,a,!u)),E.arc(o,m,s,a,r,!u),E.moveTo(i*s+o,c*s+m),E.arc(i*l+o,c*l+m,t,r-Math.PI*2,r-Math.PI,!u),f!==0&&(E.arc(o,m,f,r,a,u),E.moveTo(e*f+o,c*f+m)),E.closePath()}});fe.exports=L},wt3j:function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("/IIm"),E=y("EMyp"),I=E.layoutCovers,o=D.extendComponentView({type:"brush",init:function(f,s){this.ecModel=f,this.api=s,this.model,(this._brushController=new L(s.getZr())).on("brush",N.bind(this._onBrush,this)).mount()},render:function(f){return this.model=f,m.apply(this,arguments)},updateTransform:function(f,s){return I(s),m.apply(this,arguments)},updateView:m,dispose:function(){this._brushController.dispose()},_onBrush:function(f,s){var t=this.model.id;this.model.brushTargetManager.setOutputRanges(f,this.ecModel),(!s.isEnd||s.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:N.clone(f),$from:t}),s.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:N.clone(f),$from:t})}});function m(f,s,t,l){(!l||l.$from!==f.id)&&this._brushController.setPanels(f.brushTargetManager.makePanelOpts(t)).enableBrush(f.brushOption).updateCovers(f.areas.slice())}fe.exports=o},wy8a:function(fe,z,y){var D=y("KxBF");function N(L,E,I){var o=L.length;return I=I===void 0?o:I,!E&&I>=o?L:D(L,E,I)}fe.exports=N},x3X8:function(fe,z,y){var D=y("KxfA"),N=D.retrieveRawValue;function L(E,I){var o=E.mapDimension("defaultedLabel",!0),m=o.length;if(m===1)return N(E,I,o[0]);if(m){for(var f=[],s=0;s<o.length;s++){var t=N(E,I,o[s]);f.push(t)}return f.join(" ")}}z.getDefaultLabel=L},x54q:function(fe,z,y){},x6Kt:function(fe,z,y){var D=y("y+Vt"),N=y("VpOo"),L=y("nPnh"),E=L.subPixelOptimizeRect,I={},o=D.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(f,s){var t,l,a,r;this.subPixelOptimize?(E(I,s,this.style),t=I.x,l=I.y,a=I.width,r=I.height,I.r=s.r,s=I):(t=s.x,l=s.y,a=s.width,r=s.height),s.r?N.buildPath(f,s):f.rect(t,l,a,r),f.closePath();return}});fe.exports=o},xGfz:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="PlusSquareOutlined";var m=z.a=N.forwardRef(o)},xKMd:function(fe,z){function y(N,L){this.getAllNames=function(){var E=L();return E.mapArray(E.getName)},this.containName=function(E){var I=L();return I.indexOfName(E)>=0},this.indexOfName=function(E){var I=N();return I.indexOfName(E)},this.getItemVisual=function(E,I){var o=N();return o.getItemVisual(E,I)}}var D=y;fe.exports=D},xO64:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D=N(y("8K/p"));function N(e){return e&&e.__esModule?e:{default:e}}function L(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L=function(i){return typeof i}:L=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},L(e)}function E(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function I(e,n){for(var i=0;i<n.length;i++){var c=n[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function o(e,n,i){return n&&I(e.prototype,n),i&&I(e,i),e}function m(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&f(e,n)}function f(e,n){return f=Object.setPrototypeOf||function(c,d){return c.__proto__=d,c},f(e,n)}function s(e){var n=a();return function(){var c=r(e),d;if(n){var h=r(this).constructor;d=Reflect.construct(c,arguments,h)}else d=c.apply(this,arguments);return t(this,d)}}function t(e,n){return n&&(L(n)==="object"||typeof n=="function")?n:l(e)}function l(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},r(e)}var u=function(e){m(i,e);var n=s(i);function i(){return E(this,i),n.apply(this,arguments)}return o(i,[{key:"_pngRect",value:function(d,h,p,g,v,A,x){var b=this._readData(v);return b===null?!1:(A.imageRect(d,h,p,g,"image/png",b),!0)}},{key:"_basicRect",value:function(d,h,p,g,v,A,x,b){throw new Error("BasicCompression received in TightPNG rect")}}]),i}(D.default);z.default=u},xOOu:function(fe,z,y){(function(D,N){var L,L;/*!
|
|
|
|
|
|
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(E){fe.exports=E()}(function(){return function E(I,o,m){function f(l,a){if(!o[l]){if(!I[l]){var r=typeof L=="function"&&L;if(!a&&r)return L(l,!0);if(s)return s(l,!0);var u=new Error("Cannot find module '"+l+"'");throw u.code="MODULE_NOT_FOUND",u}var e=o[l]={exports:{}};I[l][0].call(e.exports,function(n){var i=I[l][1][n];return f(i||n)},e,e.exports,E,I,o,m)}return o[l].exports}for(var s=typeof L=="function"&&L,t=0;t<m.length;t++)f(m[t]);return f}({1:[function(E,I,o){"use strict";var m=E("./utils"),f=E("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(t){for(var l,a,r,u,e,n,i,c=[],d=0,h=t.length,p=h,g=m.getTypeOf(t)!=="string";d<t.length;)p=h-d,r=g?(l=t[d++],a=d<h?t[d++]:0,d<h?t[d++]:0):(l=t.charCodeAt(d++),a=d<h?t.charCodeAt(d++):0,d<h?t.charCodeAt(d++):0),u=l>>2,e=(3&l)<<4|a>>4,n=1<p?(15&a)<<2|r>>6:64,i=2<p?63&r:64,c.push(s.charAt(u)+s.charAt(e)+s.charAt(n)+s.charAt(i));return c.join("")},o.decode=function(t){var l,a,r,u,e,n,i=0,c=0,d="data:";if(t.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,p=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===s.charAt(64)&&p--,t.charAt(t.length-2)===s.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=f.uint8array?new Uint8Array(0|p):new Array(0|p);i<t.length;)l=s.indexOf(t.charAt(i++))<<2|(u=s.indexOf(t.charAt(i++)))>>4,a=(15&u)<<4|(e=s.indexOf(t.charAt(i++)))>>2,r=(3&e)<<6|(n=s.indexOf(t.charAt(i++))),h[c++]=l,e!==64&&(h[c++]=a),n!==64&&(h[c++]=r);return h}},{"./support":30,"./utils":32}],2:[function(E,I,o){"use strict";var m=E("./external"),f=E("./stream/DataWorker"),s=E("./stream/Crc32Probe"),t=E("./stream/DataLengthProbe");function l(a,r,u,e,n){this.compressedSize=a,this.uncompressedSize=r,this.crc32=u,this.compression=e,this.compressedContent=n}l.prototype={getContentWorker:function(){var r=new f(m.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new t("data_length")),u=this;return r.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),r},getCompressedWorker:function(){return new f(m.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(a,r,u){return a.pipe(new s).pipe(new t("uncompressedSize")).pipe(r.compressWorker(u)).pipe(new t("compressedSize")).withStreamInfo("compression",r)},I.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(E,I,o){"use strict";var m=E("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(s){return new m("STORE compression")},uncompressWorker:function(){return new m("STORE decompression")}},o.DEFLATE=E("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(E,I,o){"use strict";var m=E("./utils"),f=function(){for(var s,t=[],l=0;l<256;l++){s=l;for(var a=0;a<8;a++)s=1&s?3988292384^s>>>1:s>>>1;t[l]=s}return t}();I.exports=function(s,t){return s!==void 0&&s.length?m.getTypeOf(s)!=="string"?function(l,a,r,u){var e=f,n=u+r;l^=-1;for(var i=u;i<n;i++)l=l>>>8^e[255&(l^a[i])];return-1^l}(0|t,s,s.length,0):function(l,a,r,u){var e=f,n=u+r;l^=-1;for(var i=u;i<n;i++)l=l>>>8^e[255&(l^a.charCodeAt(i))];return-1^l}(0|t,s,s.length,0):0}},{"./utils":32}],5:[function(E,I,o){"use strict";o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(E,I,o){"use strict";var m=null;m=typeof Promise!="undefined"?Promise:E("lie"),I.exports={Promise:m}},{lie:37}],7:[function(E,I,o){"use strict";var m=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",f=E("pako"),s=E("./utils"),t=E("./stream/GenericWorker"),l=m?"uint8array":"array";function a(r,u){t.call(this,"FlateWorker/"+r),this._pako=null,this._pakoAction=r,this._pakoOptions=u,this.meta={}}o.magic="\b\0",s.inherits(a,t),a.prototype.processChunk=function(r){this.meta=r.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(l,r.data),!1)},a.prototype.flush=function(){t.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},a.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this._pako=null},a.prototype._createPako=function(){this._pako=new f[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var r=this;this._pako.onData=function(u){r.push({data:u,meta:r.meta})}},o.compressWorker=function(r){return new a("Deflate",r)},o.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(E,I,o){"use strict";function m(e,n){var i,c="";for(i=0;i<n;i++)c+=String.fromCharCode(255&e),e>>>=8;return c}function f(e,n,i,c,d,h){var p,g,v=e.file,A=e.compression,x=h!==l.utf8encode,b=s.transformTo("string",h(v.name)),w=s.transformTo("string",l.utf8encode(v.name)),S=v.comment,T=s.transformTo("string",h(S)),C=s.transformTo("string",l.utf8encode(S)),O=w.length!==v.name.length,_=C.length!==S.length,M="",k="",R="",B=v.dir,P=v.date,U={crc32:0,compressedSize:0,uncompressedSize:0};n&&!i||(U.crc32=e.crc32,U.compressedSize=e.compressedSize,U.uncompressedSize=e.uncompressedSize);var j=0;n&&(j|=8),x||!O&&!_||(j|=2048);var H=0,W=0;B&&(H|=16),d==="UNIX"?(W=798,H|=function(V,Z){var Y=V;return V||(Y=Z?16893:33204),(65535&Y)<<16}(v.unixPermissions,B)):(W=20,H|=function(V){return 63&(V||0)}(v.dosPermissions)),p=P.getUTCHours(),p<<=6,p|=P.getUTCMinutes(),p<<=5,p|=P.getUTCSeconds()/2,g=P.getUTCFullYear()-1980,g<<=4,g|=P.getUTCMonth()+1,g<<=5,g|=P.getUTCDate(),O&&(k=m(1,1)+m(a(b),4)+w,M+="up"+m(k.length,2)+k),_&&(R=m(1,1)+m(a(T),4)+C,M+="uc"+m(R.length,2)+R);var G="";return G+=`
|
|
|
\0`,G+=m(j,2),G+=A.magic,G+=m(p,2),G+=m(g,2),G+=m(U.crc32,4),G+=m(U.compressedSize,4),G+=m(U.uncompressedSize,4),G+=m(b.length,2),G+=m(M.length,2),{fileRecord:r.LOCAL_FILE_HEADER+G+b+M,dirRecord:r.CENTRAL_FILE_HEADER+m(W,2)+G+m(T.length,2)+"\0\0\0\0"+m(H,4)+m(c,4)+b+M+T}}var s=E("../utils"),t=E("../stream/GenericWorker"),l=E("../utf8"),a=E("../crc32"),r=E("../signature");function u(e,n,i,c){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=n,this.zipPlatform=i,this.encodeFileName=c,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(u,t),u.prototype.push=function(e){var n=e.meta.percent||0,i=this.entriesCount,c=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,t.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:i?(n+100*(i-c-1))/i:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var n=this.streamFiles&&!e.file.dir;if(n){var i=f(e,n,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var n=this.streamFiles&&!e.file.dir,i=f(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),n)this.push({data:function(c){return r.DATA_DESCRIPTOR+m(c.crc32,4)+m(c.compressedSize,4)+m(c.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,n=0;n<this.dirRecords.length;n++)this.push({data:this.dirRecords[n],meta:{percent:100}});var i=this.bytesWritten-e,c=function(d,h,p,g,v){var A=s.transformTo("string",v(g));return r.CENTRAL_DIRECTORY_END+"\0\0\0\0"+m(d,2)+m(d,2)+m(h,4)+m(p,4)+m(A.length,2)+A}(this.dirRecords.length,i,e,this.zipComment,this.encodeFileName);this.push({data:c,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var n=this;return e.on("data",function(i){n.processChunk(i)}),e.on("end",function(){n.closedSource(n.previous.streamInfo),n._sources.length?n.prepareNextSource():n.end()}),e.on("error",function(i){n.error(i)}),this},u.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var n=this._sources;if(!t.prototype.error.call(this,e))return!1;for(var i=0;i<n.length;i++)try{n[i].error(e)}catch(c){}return!0},u.prototype.lock=function(){t.prototype.lock.call(this);for(var e=this._sources,n=0;n<e.length;n++)e[n].lock()},I.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(E,I,o){"use strict";var m=E("../compressions"),f=E("./ZipFileWorker");o.generateWorker=function(s,t,l){var a=new f(t.streamFiles,l,t.platform,t.encodeFileName),r=0;try{s.forEach(function(u,e){r++;var n=function(h,p){var g=h||p,v=m[g];if(!v)throw new Error(g+" is not a valid compression method !");return v}(e.options.compression,t.compression),i=e.options.compressionOptions||t.compressionOptions||{},c=e.dir,d=e.date;e._compressWorker(n,i).withStreamInfo("file",{name:u,dir:c,date:d,comment:e.comment||"",unixPermissions:e.unixPermissions,dosPermissions:e.dosPermissions}).pipe(a)}),a.entriesCount=r}catch(u){a.error(u)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(E,I,o){"use strict";function m(){if(!(this instanceof m))return new m;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 f=new m;for(var s in this)typeof this[s]!="function"&&(f[s]=this[s]);return f}}(m.prototype=E("./object")).loadAsync=E("./load"),m.support=E("./support"),m.defaults=E("./defaults"),m.version="3.7.1",m.loadAsync=function(f,s){return new m().loadAsync(f,s)},m.external=E("./external"),I.exports=m},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(E,I,o){"use strict";var m=E("./utils"),f=E("./external"),s=E("./utf8"),t=E("./zipEntries"),l=E("./stream/Crc32Probe"),a=E("./nodejsUtils");function r(u){return new f.Promise(function(e,n){var i=u.decompressed.getContentWorker().pipe(new l);i.on("error",function(c){n(c)}).on("end",function(){i.streamInfo.crc32!==u.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}I.exports=function(u,e){var n=this;return e=m.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),a.isNode&&a.isStream(u)?f.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):m.prepareContent("the loaded zip file",u,!0,e.optimizedBinaryString,e.base64).then(function(i){var c=new t(e);return c.load(i),c}).then(function(i){var c=[f.Promise.resolve(i)],d=i.files;if(e.checkCRC32)for(var h=0;h<d.length;h++)c.push(r(d[h]));return f.Promise.all(c)}).then(function(i){for(var c=i.shift(),d=c.files,h=0;h<d.length;h++){var p=d[h];n.file(p.fileNameStr,p.decompressed,{binary:!0,optimizedBinaryString:!0,date:p.date,dir:p.dir,comment:p.fileCommentStr.length?p.fileCommentStr:null,unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions,createFolders:e.createFolders})}return c.zipComment.length&&(n.comment=c.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(E,I,o){"use strict";var m=E("../utils"),f=E("../stream/GenericWorker");function s(t,l){f.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(l)}m.inherits(s,f),s.prototype._bindStream=function(t){var l=this;(this._stream=t).pause(),t.on("data",function(a){l.push({data:a,meta:{percent:0}})}).on("error",function(a){l.isPaused?this.generatedError=a:l.error(a)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},s.prototype.pause=function(){return!!f.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},I.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(E,I,o){"use strict";var m=E("readable-stream").Readable;function f(s,t,l){m.call(this,t),this._helper=s;var a=this;s.on("data",function(r,u){a.push(r)||a._helper.pause(),l&&l(u)}).on("error",function(r){a.emit("error",r)}).on("end",function(){a.push(null)})}E("../utils").inherits(f,m),f.prototype._read=function(){this._helper.resume()},I.exports=f},{"../utils":32,"readable-stream":16}],14:[function(E,I,o){"use strict";I.exports={isNode:typeof D!="undefined",newBufferFrom:function(f,s){if(D.from&&D.from!==Uint8Array.from)return D.from(f,s);if(typeof f=="number")throw new Error('The "data" argument must not be a number');return new D(f,s)},allocBuffer:function(f){if(D.alloc)return D.alloc(f);var s=new D(f);return s.fill(0),s},isBuffer:function(f){return D.isBuffer(f)},isStream:function(f){return f&&typeof f.on=="function"&&typeof f.pause=="function"&&typeof f.resume=="function"}}},{}],15:[function(E,I,o){"use strict";function m(v,A,x){var b,w=s.getTypeOf(A),S=s.extend(x||{},a);S.date=S.date||new Date,S.compression!==null&&(S.compression=S.compression.toUpperCase()),typeof S.unixPermissions=="string"&&(S.unixPermissions=parseInt(S.unixPermissions,8)),S.unixPermissions&&16384&S.unixPermissions&&(S.dir=!0),S.dosPermissions&&16&S.dosPermissions&&(S.dir=!0),S.dir&&(v=d(v)),S.createFolders&&(b=c(v))&&h.call(this,b,!0);var T=w==="string"&&S.binary===!1&&S.base64===!1;x&&x.binary!==void 0||(S.binary=!T),(A instanceof r&&A.uncompressedSize===0||S.dir||!A||A.length===0)&&(S.base64=!1,S.binary=!0,A="",S.compression="STORE",w="string");var C=null;C=A instanceof r||A instanceof t?A:n.isNode&&n.isStream(A)?new i(v,A):s.prepareContent(v,A,S.binary,S.optimizedBinaryString,S.base64);var O=new u(v,C,S);this.files[v]=O}var f=E("./utf8"),s=E("./utils"),t=E("./stream/GenericWorker"),l=E("./stream/StreamHelper"),a=E("./defaults"),r=E("./compressedObject"),u=E("./zipObject"),e=E("./generate"),n=E("./nodejsUtils"),i=E("./nodejs/NodejsStreamInputAdapter"),c=function(A){A.slice(-1)==="/"&&(A=A.substring(0,A.length-1));var x=A.lastIndexOf("/");return 0<x?A.substring(0,x):""},d=function(A){return A.slice(-1)!=="/"&&(A+="/"),A},h=function(A,x){return x=x!==void 0?x:a.createFolders,A=d(A),this.files[A]||m.call(this,A,null,{dir:!0,createFolders:x}),this.files[A]};function p(v){return Object.prototype.toString.call(v)==="[object RegExp]"}var g={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(A){var x,b,w;for(x in this.files)w=this.files[x],(b=x.slice(this.root.length,x.length))&&x.slice(0,this.root.length)===this.root&&A(b,w)},filter:function(A){var x=[];return this.forEach(function(b,w){A(b,w)&&x.push(w)}),x},file:function(A,x,b){if(arguments.length!==1)return A=this.root+A,m.call(this,A,x,b),this;if(p(A)){var w=A;return this.filter(function(T,C){return!C.dir&&w.test(T)})}var S=this.files[this.root+A];return S&&!S.dir?S:null},folder:function(A){if(!A)return this;if(p(A))return this.filter(function(S,T){return T.dir&&A.test(S)});var x=this.root+A,b=h.call(this,x),w=this.clone();return w.root=b.name,w},remove:function(A){A=this.root+A;var x=this.files[A];if(x||(A.slice(-1)!=="/"&&(A+="/"),x=this.files[A]),x&&!x.dir)delete this.files[A];else for(var b=this.filter(function(S,T){return T.name.slice(0,A.length)===A}),w=0;w<b.length;w++)delete this.files[b[w].name];return this},generate:function(A){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(A){var x,b={};try{if((b=s.extend(A||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:f.utf8encode})).type=b.type.toLowerCase(),b.compression=b.compression.toUpperCase(),b.type==="binarystring"&&(b.type="string"),!b.type)throw new Error("No output type specified.");s.checkSupport(b.type),b.platform!=="darwin"&&b.platform!=="freebsd"&&b.platform!=="linux"&&b.platform!=="sunos"||(b.platform="UNIX"),b.platform==="win32"&&(b.platform="DOS");var w=b.comment||this.comment||"";x=e.generateWorker(this,b,w)}catch(S){(x=new t("error")).error(S)}return new l(x,b.type||"string",b.mimeType)},generateAsync:function(A,x){return this.generateInternalStream(A).accumulate(x)},generateNodeStream:function(A,x){return(A=A||{}).type||(A.type="nodebuffer"),this.generateInternalStream(A).toNodejsStream(x)}};I.exports=g},{"./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(E,I,o){I.exports=E("stream")},{stream:void 0}],17:[function(E,I,o){"use strict";var m=E("./DataReader");function f(s){m.call(this,s);for(var t=0;t<this.data.length;t++)s[t]=255&s[t]}E("../utils").inherits(f,m),f.prototype.byteAt=function(s){return this.data[this.zero+s]},f.prototype.lastIndexOfSignature=function(s){for(var t=s.charCodeAt(0),l=s.charCodeAt(1),a=s.charCodeAt(2),r=s.charCodeAt(3),u=this.length-4;0<=u;--u)if(this.data[u]===t&&this.data[u+1]===l&&this.data[u+2]===a&&this.data[u+3]===r)return u-this.zero;return-1},f.prototype.readAndCheckSignature=function(s){var t=s.charCodeAt(0),l=s.charCodeAt(1),a=s.charCodeAt(2),r=s.charCodeAt(3),u=this.readData(4);return t===u[0]&&l===u[1]&&a===u[2]&&r===u[3]},f.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,t},I.exports=f},{"../utils":32,"./DataReader":18}],18:[function(E,I,o){"use strict";var m=E("../utils");function f(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}f.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var l,a=0;for(this.checkOffset(t),l=this.index+t-1;l>=this.index;l--)a=(a<<8)+this.byteAt(l);return this.index+=t,a},readString:function(t){return m.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},I.exports=f},{"../utils":32}],19:[function(E,I,o){"use strict";var m=E("./Uint8ArrayReader");function f(s){m.call(this,s)}E("../utils").inherits(f,m),f.prototype.readData=function(s){this.checkOffset(s);var t=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,t},I.exports=f},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(E,I,o){"use strict";var m=E("./DataReader");function f(s){m.call(this,s)}E("../utils").inherits(f,m),f.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},f.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},f.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},f.prototype.readData=function(s){this.checkOffset(s);var t=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,t},I.exports=f},{"../utils":32,"./DataReader":18}],21:[function(E,I,o){"use strict";var m=E("./ArrayReader");function f(s){m.call(this,s)}E("../utils").inherits(f,m),f.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,t},I.exports=f},{"../utils":32,"./ArrayReader":17}],22:[function(E,I,o){"use strict";var m=E("../utils"),f=E("../support"),s=E("./ArrayReader"),t=E("./StringReader"),l=E("./NodeBufferReader"),a=E("./Uint8ArrayReader");I.exports=function(r){var u=m.getTypeOf(r);return m.checkSupport(u),u!=="string"||f.uint8array?u==="nodebuffer"?new l(r):f.uint8array?new a(m.transformTo("uint8array",r)):new s(m.transformTo("array",r)):new t(r)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(E,I,o){"use strict";o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(E,I,o){"use strict";var m=E("./GenericWorker"),f=E("../utils");function s(t){m.call(this,"ConvertWorker to "+t),this.destType=t}f.inherits(s,m),s.prototype.processChunk=function(t){this.push({data:f.transformTo(this.destType,t.data),meta:t.meta})},I.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(E,I,o){"use strict";var m=E("./GenericWorker"),f=E("../crc32");function s(){m.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}E("../utils").inherits(s,m),s.prototype.processChunk=function(t){this.streamInfo.crc32=f(t.data,this.streamInfo.crc32||0),this.push(t)},I.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(E,I,o){"use strict";var m=E("../utils"),f=E("./GenericWorker");function s(t){f.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}m.inherits(s,f),s.prototype.processChunk=function(t){if(t){var l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+t.data.length}f.prototype.processChunk.call(this,t)},I.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(E,I,o){"use strict";var m=E("../utils"),f=E("./GenericWorker");function s(t){f.call(this,"DataWorker");var l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(a){l.dataIsReady=!0,l.data=a,l.max=a&&a.length||0,l.type=m.getTypeOf(a),l.isPaused||l._tickAndRepeat()},function(a){l.error(a)})}m.inherits(s,f),s.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,m.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(m.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,l=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,l);break;case"uint8array":t=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":t=this.data.slice(this.index,l)}return this.index=l,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},I.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(E,I,o){"use strict";function m(f){this.name=f||"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}m.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,t){return this._listeners[s].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,t){if(this._listeners[s])for(var l=0;l<this._listeners[s].length;l++)this._listeners[s][l].call(this,t)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var t=this;return s.on("data",function(l){t.processChunk(l)}),s.on("end",function(){t.end()}),s.on("error",function(l){t.error(l)}),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 s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,t){return this.extraStreamInfo[s]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},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 s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},I.exports=m},{}],29:[function(E,I,o){"use strict";var m=E("../utils"),f=E("./ConvertWorker"),s=E("./GenericWorker"),t=E("../base64"),l=E("../support"),a=E("../external"),r=null;if(l.nodestream)try{r=E("../nodejs/NodejsStreamOutputAdapter")}catch(n){}function u(n,i){return new a.Promise(function(c,d){var h=[],p=n._internalType,g=n._outputType,v=n._mimeType;n.on("data",function(A,x){h.push(A),i&&i(x)}).on("error",function(A){h=[],d(A)}).on("end",function(){try{var A=function(x,b,w){switch(x){case"blob":return m.newBlob(m.transformTo("arraybuffer",b),w);case"base64":return t.encode(b);default:return m.transformTo(x,b)}}(g,function(x,b){var w,S=0,T=null,C=0;for(w=0;w<b.length;w++)C+=b[w].length;switch(x){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(T=new Uint8Array(C),w=0;w<b.length;w++)T.set(b[w],S),S+=b[w].length;return T;case"nodebuffer":return D.concat(b);default:throw new Error("concat : unsupported type '"+x+"'")}}(p,h),v);c(A)}catch(x){d(x)}h=[]}).resume()})}function e(n,i,c){var d=i;switch(i){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=i,this._mimeType=c,m.checkSupport(d),this._worker=n.pipe(new f(d)),n.lock()}catch(h){this._worker=new s("error"),this._worker.error(h)}}e.prototype={accumulate:function(i){return u(this,i)},on:function(i,c){var d=this;return i==="data"?this._worker.on(i,function(h){c.call(d,h.data,h.meta)}):this._worker.on(i,function(){m.delay(c,arguments,d)}),this},resume:function(){return m.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(i){if(m.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new r(this,{objectMode:this._outputType!=="nodebuffer"},i)}},I.exports=e},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(E,I,o){"use strict";if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",o.nodebuffer=typeof D!="undefined",o.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")o.blob=!1;else{var m=new ArrayBuffer(0);try{o.blob=new Blob([m],{type:"application/zip"}).size===0}catch(s){try{var f=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);f.append(m),o.blob=f.getBlob("application/zip").size===0}catch(t){o.blob=!1}}}try{o.nodestream=!!E("readable-stream").Readable}catch(s){o.nodestream=!1}},{"readable-stream":16}],31:[function(E,I,o){"use strict";for(var m=E("./utils"),f=E("./support"),s=E("./nodejsUtils"),t=E("./stream/GenericWorker"),l=new Array(256),a=0;a<256;a++)l[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;l[254]=l[254]=1;function r(){t.call(this,"utf-8 decode"),this.leftOver=null}function u(){t.call(this,"utf-8 encode")}o.utf8encode=function(e){return f.nodebuffer?s.newBufferFrom(e,"utf-8"):function(n){var i,c,d,h,p,g=n.length,v=0;for(h=0;h<g;h++)(64512&(c=n.charCodeAt(h)))==55296&&h+1<g&&(64512&(d=n.charCodeAt(h+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),h++),v+=c<128?1:c<2048?2:c<65536?3:4;for(i=f.uint8array?new Uint8Array(v):new Array(v),h=p=0;p<v;h++)(64512&(c=n.charCodeAt(h)))==55296&&h+1<g&&(64512&(d=n.charCodeAt(h+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),h++),c<128?i[p++]=c:(c<2048?i[p++]=192|c>>>6:(c<65536?i[p++]=224|c>>>12:(i[p++]=240|c>>>18,i[p++]=128|c>>>12&63),i[p++]=128|c>>>6&63),i[p++]=128|63&c);return i}(e)},o.utf8decode=function(e){return f.nodebuffer?m.transformTo("nodebuffer",e).toString("utf-8"):function(n){var i,c,d,h,p=n.length,g=new Array(2*p);for(i=c=0;i<p;)if((d=n[i++])<128)g[c++]=d;else if(4<(h=l[d]))g[c++]=65533,i+=h-1;else{for(d&=h===2?31:h===3?15:7;1<h&&i<p;)d=d<<6|63&n[i++],h--;1<h?g[c++]=65533:d<65536?g[c++]=d:(d-=65536,g[c++]=55296|d>>10&1023,g[c++]=56320|1023&d)}return g.length!==c&&(g.subarray?g=g.subarray(0,c):g.length=c),m.applyFromCharCode(g)}(e=m.transformTo(f.uint8array?"uint8array":"array",e))},m.inherits(r,t),r.prototype.processChunk=function(e){var n=m.transformTo(f.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(f.uint8array){var i=n;(n=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),n.set(i,this.leftOver.length)}else n=this.leftOver.concat(n);this.leftOver=null}var c=function(h,p){var g;for((p=p||h.length)>h.length&&(p=h.length),g=p-1;0<=g&&(192&h[g])==128;)g--;return g<0||g===0?p:g+l[h[g]]>p?g:p}(n),d=n;c!==n.length&&(f.uint8array?(d=n.subarray(0,c),this.leftOver=n.subarray(c,n.length)):(d=n.slice(0,c),this.leftOver=n.slice(c,n.length))),this.push({data:o.utf8decode(d),meta:e.meta})},r.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=r,m.inherits(u,t),u.prototype.processChunk=function(e){this.push({data:o.utf8encode(e.data),meta:e.meta})},o.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(E,I,o){"use strict";var m=E("./support"),f=E("./base64"),s=E("./nodejsUtils"),t=E("set-immediate-shim"),l=E("./external");function a(c){return c}function r(c,d){for(var h=0;h<c.length;++h)d[h]=255&c.charCodeAt(h);return d}o.newBlob=function(c,d){o.checkSupport("blob");try{return new Blob([c],{type:d})}catch(p){try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return h.append(c),h.getBlob(d)}catch(g){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(d,h,p){var g=[],v=0,A=d.length;if(A<=p)return String.fromCharCode.apply(null,d);for(;v<A;)h==="array"||h==="nodebuffer"?g.push(String.fromCharCode.apply(null,d.slice(v,Math.min(v+p,A)))):g.push(String.fromCharCode.apply(null,d.subarray(v,Math.min(v+p,A)))),v+=p;return g.join("")},stringifyByChar:function(d){for(var h="",p=0;p<d.length;p++)h+=String.fromCharCode(d[p]);return h},applyCanBeUsed:{uint8array:function(){try{return m.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(c){return!1}}(),nodebuffer:function(){try{return m.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch(c){return!1}}()}};function e(c){var d=65536,h=o.getTypeOf(c),p=!0;if(h==="uint8array"?p=u.applyCanBeUsed.uint8array:h==="nodebuffer"&&(p=u.applyCanBeUsed.nodebuffer),p)for(;1<d;)try{return u.stringifyByChunk(c,h,d)}catch(g){d=Math.floor(d/2)}return u.stringifyByChar(c)}function n(c,d){for(var h=0;h<c.length;h++)d[h]=c[h];return d}o.applyFromCharCode=e;var i={};i.string={string:a,array:function(d){return r(d,new Array(d.length))},arraybuffer:function(d){return i.string.uint8array(d).buffer},uint8array:function(d){return r(d,new Uint8Array(d.length))},nodebuffer:function(d){return r(d,s.allocBuffer(d.length))}},i.array={string:e,array:a,arraybuffer:function(d){return new Uint8Array(d).buffer},uint8array:function(d){return new Uint8Array(d)},nodebuffer:function(d){return s.newBufferFrom(d)}},i.arraybuffer={string:function(d){return e(new Uint8Array(d))},array:function(d){return n(new Uint8Array(d),new Array(d.byteLength))},arraybuffer:a,uint8array:function(d){return new Uint8Array(d)},nodebuffer:function(d){return s.newBufferFrom(new Uint8Array(d))}},i.uint8array={string:e,array:function(d){return n(d,new Array(d.length))},arraybuffer:function(d){return d.buffer},uint8array:a,nodebuffer:function(d){return s.newBufferFrom(d)}},i.nodebuffer={string:e,array:function(d){return n(d,new Array(d.length))},arraybuffer:function(d){return i.nodebuffer.uint8array(d).buffer},uint8array:function(d){return n(d,new Uint8Array(d.length))},nodebuffer:a},o.transformTo=function(c,d){if(d=d||"",!c)return d;o.checkSupport(c);var h=o.getTypeOf(d);return i[h][c](d)},o.getTypeOf=function(c){return typeof c=="string"?"string":Object.prototype.toString.call(c)==="[object Array]"?"array":m.nodebuffer&&s.isBuffer(c)?"nodebuffer":m.uint8array&&c instanceof Uint8Array?"uint8array":m.arraybuffer&&c instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(c){if(!m[c.toLowerCase()])throw new Error(c+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(c){var d,h,p="";for(h=0;h<(c||"").length;h++)p+="\\x"+((d=c.charCodeAt(h))<16?"0":"")+d.toString(16).toUpperCase();return p},o.delay=function(c,d,h){t(function(){c.apply(h||null,d||[])})},o.inherits=function(c,d){function h(){}h.prototype=d.prototype,c.prototype=new h},o.extend=function(){var c,d,h={};for(c=0;c<arguments.length;c++)for(d in arguments[c])arguments[c].hasOwnProperty(d)&&h[d]===void 0&&(h[d]=arguments[c][d]);return h},o.prepareContent=function(c,d,h,p,g){return l.Promise.resolve(d).then(function(v){return m.blob&&(v instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(v))!==-1)&&typeof FileReader!="undefined"?new l.Promise(function(A,x){var b=new FileReader;b.onload=function(w){A(w.target.result)},b.onerror=function(w){x(w.target.error)},b.readAsArrayBuffer(v)}):v}).then(function(v){var A=o.getTypeOf(v);return A?(A==="arraybuffer"?v=o.transformTo("uint8array",v):A==="string"&&(g?v=f.decode(v):h&&p!==!0&&(v=function(x){return r(x,m.uint8array?new Uint8Array(x.length):new Array(x.length))}(v))),v):l.Promise.reject(new Error("Can't read the data of '"+c+"'. 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(E,I,o){"use strict";var m=E("./reader/readerFor"),f=E("./utils"),s=E("./signature"),t=E("./zipEntry"),l=(E("./utf8"),E("./support"));function a(r){this.files=[],this.loadOptions=r}a.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+f.pretty(e)+", expected "+f.pretty(u)+")")}},isSignature:function(u,e){var n=this.reader.index;this.reader.setIndex(u);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},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 u=this.reader.readData(this.zipCommentLength),e=l.uint8array?"uint8array":"array",n=f.transformTo(e,u);this.zipComment=this.loadOptions.decodeFileName(n)},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 u,e,n,i=this.zip64EndOfCentralSize-44;0<i;)u=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[u]={id:u,length:e,value:n}},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 u,e;for(u=0;u<this.files.length;u++)e=this.files[u],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var u;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(u=new t({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(u);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 u=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(u<0)throw this.isSignature(0,s.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(u);var e=u;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===f.MAX_VALUE_16BITS||this.diskWithCentralDirStart===f.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===f.MAX_VALUE_16BITS||this.centralDirRecords===f.MAX_VALUE_16BITS||this.centralDirSize===f.MAX_VALUE_32BITS||this.centralDirOffset===f.MAX_VALUE_32BITS){if(this.zip64=!0,(u=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(u),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.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(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,s.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(u){this.reader=m(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},I.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(E,I,o){"use strict";var m=E("./reader/readerFor"),f=E("./utils"),s=E("./compressedObject"),t=E("./crc32"),l=E("./utf8"),a=E("./compressions"),r=E("./support");function u(e,n){this.options=e,this.loadOptions=n}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(n){var i,c;if(n.skip(22),this.fileNameLength=n.readInt(2),c=n.readInt(2),this.fileName=n.readData(this.fileNameLength),n.skip(c),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((i=function(d){for(var h in a)if(a.hasOwnProperty(h)&&a[h].magic===d)return a[h];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+f.pretty(this.compressionMethod)+" unknown (inner file : "+f.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,i,n.readData(this.compressedSize))},readCentralPart:function(n){this.versionMadeBy=n.readInt(2),n.skip(2),this.bitFlag=n.readInt(2),this.compressionMethod=n.readString(2),this.date=n.readDate(),this.crc32=n.readInt(4),this.compressedSize=n.readInt(4),this.uncompressedSize=n.readInt(4);var i=n.readInt(2);if(this.extraFieldsLength=n.readInt(2),this.fileCommentLength=n.readInt(2),this.diskNumberStart=n.readInt(2),this.internalFileAttributes=n.readInt(2),this.externalFileAttributes=n.readInt(4),this.localHeaderOffset=n.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");n.skip(i),this.readExtraFields(n),this.parseZIP64ExtraField(n),this.fileComment=n.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var n=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),n==0&&(this.dosPermissions=63&this.externalFileAttributes),n==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(n){if(this.extraFields[1]){var i=m(this.extraFields[1].value);this.uncompressedSize===f.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===f.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===f.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===f.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(n){var i,c,d,h=n.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});n.index+4<h;)i=n.readInt(2),c=n.readInt(2),d=n.readData(c),this.extraFields[i]={id:i,length:c,value:d};n.setIndex(h)},handleUTF8:function(){var n=r.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var i=this.findExtraFieldUnicodePath();if(i!==null)this.fileNameStr=i;else{var c=f.transformTo(n,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(c)}var d=this.findExtraFieldUnicodeComment();if(d!==null)this.fileCommentStr=d;else{var h=f.transformTo(n,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(h)}}},findExtraFieldUnicodePath:function(){var n=this.extraFields[28789];if(n){var i=m(n.value);return i.readInt(1)!==1||t(this.fileName)!==i.readInt(4)?null:l.utf8decode(i.readData(n.length-5))}return null},findExtraFieldUnicodeComment:function(){var n=this.extraFields[25461];if(n){var i=m(n.value);return i.readInt(1)!==1||t(this.fileComment)!==i.readInt(4)?null:l.utf8decode(i.readData(n.length-5))}return null}},I.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(E,I,o){"use strict";function m(n,i,c){this.name=n,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this.unixPermissions=c.unixPermissions,this.dosPermissions=c.dosPermissions,this._data=i,this._dataBinary=c.binary,this.options={compression:c.compression,compressionOptions:c.compressionOptions}}var f=E("./stream/StreamHelper"),s=E("./stream/DataWorker"),t=E("./utf8"),l=E("./compressedObject"),a=E("./stream/GenericWorker");m.prototype={internalStream:function(i){var c=null,d="string";try{if(!i)throw new Error("No output type specified.");var h=(d=i.toLowerCase())==="string"||d==="text";d!=="binarystring"&&d!=="text"||(d="string"),c=this._decompressWorker();var p=!this._dataBinary;p&&!h&&(c=c.pipe(new t.Utf8EncodeWorker)),!p&&h&&(c=c.pipe(new t.Utf8DecodeWorker))}catch(g){(c=new a("error")).error(g)}return new f(c,d,"")},async:function(i,c){return this.internalStream(i).accumulate(c)},nodeStream:function(i,c){return this.internalStream(i||"nodebuffer").toNodejsStream(c)},_compressWorker:function(i,c){if(this._data instanceof l&&this._data.compression.magic===i.magic)return this._data.getCompressedWorker();var d=this._decompressWorker();return this._dataBinary||(d=d.pipe(new t.Utf8EncodeWorker)),l.createWorkerFrom(d,i,c)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof a?this._data:new s(this._data)}};for(var r=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},e=0;e<r.length;e++)m.prototype[r[e]]=u;I.exports=m},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(E,I,o){(function(m){"use strict";var f,s,t=m.MutationObserver||m.WebKitMutationObserver;if(t){var l=0,a=new t(n),r=m.document.createTextNode("");a.observe(r,{characterData:!0}),f=function(){r.data=l=++l%2}}else if(m.setImmediate||m.MessageChannel===void 0)f="document"in m&&"onreadystatechange"in m.document.createElement("script")?function(){var i=m.document.createElement("script");i.onreadystatechange=function(){n(),i.onreadystatechange=null,i.parentNode.removeChild(i),i=null},m.document.documentElement.appendChild(i)}:function(){setTimeout(n,0)};else{var u=new m.MessageChannel;u.port1.onmessage=n,f=function(){u.port2.postMessage(0)}}var e=[];function n(){var i,c;s=!0;for(var d=e.length;d;){for(c=e,e=[],i=-1;++i<d;)c[i]();d=e.length}s=!1}I.exports=function(i){e.push(i)!==1||s||f()}}).call(this,typeof N!="undefined"?N:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(E,I,o){"use strict";var m=E("immediate");function f(){}var s={},t=["REJECTED"],l=["FULFILLED"],a=["PENDING"];function r(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,d!==f&&i(this,d)}function u(d,h,p){this.promise=d,typeof h=="function"&&(this.onFulfilled=h,this.callFulfilled=this.otherCallFulfilled),typeof p=="function"&&(this.onRejected=p,this.callRejected=this.otherCallRejected)}function e(d,h,p){m(function(){var g;try{g=h(p)}catch(v){return s.reject(d,v)}g===d?s.reject(d,new TypeError("Cannot resolve promise with itself")):s.resolve(d,g)})}function n(d){var h=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof h=="function")return function(){h.apply(d,arguments)}}function i(d,h){var p=!1;function g(x){p||(p=!0,s.reject(d,x))}function v(x){p||(p=!0,s.resolve(d,x))}var A=c(function(){h(v,g)});A.status==="error"&&g(A.value)}function c(d,h){var p={};try{p.value=d(h),p.status="success"}catch(g){p.status="error",p.value=g}return p}(I.exports=r).prototype.finally=function(d){if(typeof d!="function")return this;var h=this.constructor;return this.then(function(p){return h.resolve(d()).then(function(){return p})},function(p){return h.resolve(d()).then(function(){throw p})})},r.prototype.catch=function(d){return this.then(null,d)},r.prototype.then=function(d,h){if(typeof d!="function"&&this.state===l||typeof h!="function"&&this.state===t)return this;var p=new this.constructor(f);return this.state!==a?e(p,this.state===l?d:h,this.outcome):this.queue.push(new u(p,d,h)),p},u.prototype.callFulfilled=function(d){s.resolve(this.promise,d)},u.prototype.otherCallFulfilled=function(d){e(this.promise,this.onFulfilled,d)},u.prototype.callRejected=function(d){s.reject(this.promise,d)},u.prototype.otherCallRejected=function(d){e(this.promise,this.onRejected,d)},s.resolve=function(d,h){var p=c(n,h);if(p.status==="error")return s.reject(d,p.value);var g=p.value;if(g)i(d,g);else{d.state=l,d.outcome=h;for(var v=-1,A=d.queue.length;++v<A;)d.queue[v].callFulfilled(h)}return d},s.reject=function(d,h){d.state=t,d.outcome=h;for(var p=-1,g=d.queue.length;++p<g;)d.queue[p].callRejected(h);return d},r.resolve=function(d){return d instanceof this?d:s.resolve(new this(f),d)},r.reject=function(d){var h=new this(f);return s.reject(h,d)},r.all=function(d){var h=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var p=d.length,g=!1;if(!p)return this.resolve([]);for(var v=new Array(p),A=0,x=-1,b=new this(f);++x<p;)w(d[x],x);return b;function w(S,T){h.resolve(S).then(function(C){v[T]=C,++A!==p||g||(g=!0,s.resolve(b,v))},function(C){g||(g=!0,s.reject(b,C))})}},r.race=function(d){var h=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var p=d.length,g=!1;if(!p)return this.resolve([]);for(var v=-1,A=new this(f);++v<p;)x=d[v],h.resolve(x).then(function(b){g||(g=!0,s.resolve(A,b))},function(b){g||(g=!0,s.reject(A,b))});var x;return A}},{immediate:36}],38:[function(E,I,o){"use strict";var m={};(0,E("./lib/utils/common").assign)(m,E("./lib/deflate"),E("./lib/inflate"),E("./lib/zlib/constants")),I.exports=m},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(E,I,o){"use strict";var m=E("./zlib/deflate"),f=E("./utils/common"),s=E("./utils/strings"),t=E("./zlib/messages"),l=E("./zlib/zstream"),a=Object.prototype.toString,r=0,u=-1,e=0,n=8;function i(d){if(!(this instanceof i))return new i(d);this.options=f.assign({level:u,method:n,chunkSize:16384,windowBits:15,memLevel:8,strategy:e,to:""},d||{});var h=this.options;h.raw&&0<h.windowBits?h.windowBits=-h.windowBits:h.gzip&&0<h.windowBits&&h.windowBits<16&&(h.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var p=m.deflateInit2(this.strm,h.level,h.method,h.windowBits,h.memLevel,h.strategy);if(p!==r)throw new Error(t[p]);if(h.header&&m.deflateSetHeader(this.strm,h.header),h.dictionary){var g;if(g=typeof h.dictionary=="string"?s.string2buf(h.dictionary):a.call(h.dictionary)==="[object ArrayBuffer]"?new Uint8Array(h.dictionary):h.dictionary,(p=m.deflateSetDictionary(this.strm,g))!==r)throw new Error(t[p]);this._dict_set=!0}}function c(d,h){var p=new i(h);if(p.push(d,!0),p.err)throw p.msg||t[p.err];return p.result}i.prototype.push=function(d,h){var p,g,v=this.strm,A=this.options.chunkSize;if(this.ended)return!1;g=h===~~h?h:h===!0?4:0,typeof d=="string"?v.input=s.string2buf(d):a.call(d)==="[object ArrayBuffer]"?v.input=new Uint8Array(d):v.input=d,v.next_in=0,v.avail_in=v.input.length;do{if(v.avail_out===0&&(v.output=new f.Buf8(A),v.next_out=0,v.avail_out=A),(p=m.deflate(v,g))!==1&&p!==r)return this.onEnd(p),!(this.ended=!0);v.avail_out!==0&&(v.avail_in!==0||g!==4&&g!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(f.shrinkBuf(v.output,v.next_out))):this.onData(f.shrinkBuf(v.output,v.next_out)))}while((0<v.avail_in||v.avail_out===0)&&p!==1);return g===4?(p=m.deflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===r):g!==2||(this.onEnd(r),!(v.avail_out=0))},i.prototype.onData=function(d){this.chunks.push(d)},i.prototype.onEnd=function(d){d===r&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},o.Deflate=i,o.deflate=c,o.deflateRaw=function(d,h){return(h=h||{}).raw=!0,c(d,h)},o.gzip=function(d,h){return(h=h||{}).gzip=!0,c(d,h)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(E,I,o){"use strict";var m=E("./zlib/inflate"),f=E("./utils/common"),s=E("./utils/strings"),t=E("./zlib/constants"),l=E("./zlib/messages"),a=E("./zlib/zstream"),r=E("./zlib/gzheader"),u=Object.prototype.toString;function e(i){if(!(this instanceof e))return new e(i);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},i||{});var c=this.options;c.raw&&0<=c.windowBits&&c.windowBits<16&&(c.windowBits=-c.windowBits,c.windowBits===0&&(c.windowBits=-15)),!(0<=c.windowBits&&c.windowBits<16)||i&&i.windowBits||(c.windowBits+=32),15<c.windowBits&&c.windowBits<48&&(15&c.windowBits)==0&&(c.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var d=m.inflateInit2(this.strm,c.windowBits);if(d!==t.Z_OK)throw new Error(l[d]);this.header=new r,m.inflateGetHeader(this.strm,this.header)}function n(i,c){var d=new e(c);if(d.push(i,!0),d.err)throw d.msg||l[d.err];return d.result}e.prototype.push=function(i,c){var d,h,p,g,v,A,x=this.strm,b=this.options.chunkSize,w=this.options.dictionary,S=!1;if(this.ended)return!1;h=c===~~c?c:c===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof i=="string"?x.input=s.binstring2buf(i):u.call(i)==="[object ArrayBuffer]"?x.input=new Uint8Array(i):x.input=i,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new f.Buf8(b),x.next_out=0,x.avail_out=b),(d=m.inflate(x,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&w&&(A=typeof w=="string"?s.string2buf(w):u.call(w)==="[object ArrayBuffer]"?new Uint8Array(w):w,d=m.inflateSetDictionary(this.strm,A)),d===t.Z_BUF_ERROR&&S===!0&&(d=t.Z_OK,S=!1),d!==t.Z_STREAM_END&&d!==t.Z_OK)return this.onEnd(d),!(this.ended=!0);x.next_out&&(x.avail_out!==0&&d!==t.Z_STREAM_END&&(x.avail_in!==0||h!==t.Z_FINISH&&h!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(p=s.utf8border(x.output,x.next_out),g=x.next_out-p,v=s.buf2string(x.output,p),x.next_out=g,x.avail_out=b-g,g&&f.arraySet(x.output,x.output,p,g,0),this.onData(v)):this.onData(f.shrinkBuf(x.output,x.next_out)))),x.avail_in===0&&x.avail_out===0&&(S=!0)}while((0<x.avail_in||x.avail_out===0)&&d!==t.Z_STREAM_END);return d===t.Z_STREAM_END&&(h=t.Z_FINISH),h===t.Z_FINISH?(d=m.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===t.Z_OK):h!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(x.avail_out=0))},e.prototype.onData=function(i){this.chunks.push(i)},e.prototype.onEnd=function(i){i===t.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=i,this.msg=this.strm.msg},o.Inflate=e,o.inflate=n,o.inflateRaw=function(i,c){return(c=c||{}).raw=!0,n(i,c)},o.ungzip=n},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(E,I,o){"use strict";var m=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";o.assign=function(t){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var a=l.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(var r in a)a.hasOwnProperty(r)&&(t[r]=a[r])}}return t},o.shrinkBuf=function(t,l){return t.length===l?t:t.subarray?t.subarray(0,l):(t.length=l,t)};var f={arraySet:function(l,a,r,u,e){if(a.subarray&&l.subarray)l.set(a.subarray(r,r+u),e);else for(var n=0;n<u;n++)l[e+n]=a[r+n]},flattenChunks:function(l){var a,r,u,e,n,i;for(a=u=0,r=l.length;a<r;a++)u+=l[a].length;for(i=new Uint8Array(u),a=e=0,r=l.length;a<r;a++)n=l[a],i.set(n,e),e+=n.length;return i}},s={arraySet:function(l,a,r,u,e){for(var n=0;n<u;n++)l[e+n]=a[r+n]},flattenChunks:function(l){return[].concat.apply([],l)}};o.setTyped=function(t){t?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,f)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,s))},o.setTyped(m)},{}],42:[function(E,I,o){"use strict";var m=E("./common"),f=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(r){f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(r){s=!1}for(var t=new m.Buf8(256),l=0;l<256;l++)t[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function a(r,u){if(u<65537&&(r.subarray&&s||!r.subarray&&f))return String.fromCharCode.apply(null,m.shrinkBuf(r,u));for(var e="",n=0;n<u;n++)e+=String.fromCharCode(r[n]);return e}t[254]=t[254]=1,o.string2buf=function(r){var u,e,n,i,c,d=r.length,h=0;for(i=0;i<d;i++)(64512&(e=r.charCodeAt(i)))==55296&&i+1<d&&(64512&(n=r.charCodeAt(i+1)))==56320&&(e=65536+(e-55296<<10)+(n-56320),i++),h+=e<128?1:e<2048?2:e<65536?3:4;for(u=new m.Buf8(h),i=c=0;c<h;i++)(64512&(e=r.charCodeAt(i)))==55296&&i+1<d&&(64512&(n=r.charCodeAt(i+1)))==56320&&(e=65536+(e-55296<<10)+(n-56320),i++),e<128?u[c++]=e:(e<2048?u[c++]=192|e>>>6:(e<65536?u[c++]=224|e>>>12:(u[c++]=240|e>>>18,u[c++]=128|e>>>12&63),u[c++]=128|e>>>6&63),u[c++]=128|63&e);return u},o.buf2binstring=function(r){return a(r,r.length)},o.binstring2buf=function(r){for(var u=new m.Buf8(r.length),e=0,n=u.length;e<n;e++)u[e]=r.charCodeAt(e);return u},o.buf2string=function(r,u){var e,n,i,c,d=u||r.length,h=new Array(2*d);for(e=n=0;e<d;)if((i=r[e++])<128)h[n++]=i;else if(4<(c=t[i]))h[n++]=65533,e+=c-1;else{for(i&=c===2?31:c===3?15:7;1<c&&e<d;)i=i<<6|63&r[e++],c--;1<c?h[n++]=65533:i<65536?h[n++]=i:(i-=65536,h[n++]=55296|i>>10&1023,h[n++]=56320|1023&i)}return a(h,n)},o.utf8border=function(r,u){var e;for((u=u||r.length)>r.length&&(u=r.length),e=u-1;0<=e&&(192&r[e])==128;)e--;return e<0||e===0?u:e+t[r[e]]>u?e:u}},{"./common":41}],43:[function(E,I,o){"use strict";I.exports=function(m,f,s,t){for(var l=65535&m|0,a=m>>>16&65535|0,r=0;s!==0;){for(s-=r=2e3<s?2e3:s;a=a+(l=l+f[t++]|0)|0,--r;);l%=65521,a%=65521}return l|a<<16|0}},{}],44:[function(E,I,o){"use strict";I.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(E,I,o){"use strict";var m=function(){for(var f,s=[],t=0;t<256;t++){f=t;for(var l=0;l<8;l++)f=1&f?3988292384^f>>>1:f>>>1;s[t]=f}return s}();I.exports=function(f,s,t,l){var a=m,r=l+t;f^=-1;for(var u=l;u<r;u++)f=f>>>8^a[255&(f^s[u])];return-1^f}},{}],46:[function(E,I,o){"use strict";var m,f=E("../utils/common"),s=E("./trees"),t=E("./adler32"),l=E("./crc32"),a=E("./messages"),r=0,u=4,e=0,n=-2,i=-1,c=4,d=2,h=8,p=9,g=286,v=30,A=19,x=2*g+1,b=15,w=3,S=258,T=S+w+1,C=42,O=113,_=1,M=2,k=3,R=4;function B(X,q){return X.msg=a[q],q}function P(X){return(X<<1)-(4<X?9:0)}function U(X){for(var q=X.length;0<=--q;)X[q]=0}function j(X){var q=X.state,We=q.pending;We>X.avail_out&&(We=X.avail_out),We!==0&&(f.arraySet(X.output,q.pending_buf,q.pending_out,We,X.next_out),X.next_out+=We,q.pending_out+=We,X.total_out+=We,X.avail_out-=We,q.pending-=We,q.pending===0&&(q.pending_out=0))}function H(X,q){s._tr_flush_block(X,0<=X.block_start?X.block_start:-1,X.strstart-X.block_start,q),X.block_start=X.strstart,j(X.strm)}function W(X,q){X.pending_buf[X.pending++]=q}function G(X,q){X.pending_buf[X.pending++]=q>>>8&255,X.pending_buf[X.pending++]=255&q}function V(X,q){var We,$,J=X.max_chain_length,le=X.strstart,de=X.prev_length,Ne=X.nice_match,we=X.strstart>X.w_size-T?X.strstart-(X.w_size-T):0,De=X.window,Ee=X.w_mask,ce=X.prev,ne=X.strstart+S,ee=De[le+de-1],Ae=De[le+de];X.prev_length>=X.good_match&&(J>>=2),Ne>X.lookahead&&(Ne=X.lookahead);do if(De[(We=q)+de]===Ae&&De[We+de-1]===ee&&De[We]===De[le]&&De[++We]===De[le+1]){le+=2,We++;do;while(De[++le]===De[++We]&&De[++le]===De[++We]&&De[++le]===De[++We]&&De[++le]===De[++We]&&De[++le]===De[++We]&&De[++le]===De[++We]&&De[++le]===De[++We]&&De[++le]===De[++We]&&le<ne);if($=S-(ne-le),le=ne-S,de<$){if(X.match_start=q,Ne<=(de=$))break;ee=De[le+de-1],Ae=De[le+de]}}while((q=ce[q&Ee])>we&&--J!=0);return de<=X.lookahead?de:X.lookahead}function Z(X){var q,We,$,J,le,de,Ne,we,De,Ee,ce=X.w_size;do{if(J=X.window_size-X.lookahead-X.strstart,X.strstart>=ce+(ce-T)){for(f.arraySet(X.window,X.window,ce,ce,0),X.match_start-=ce,X.strstart-=ce,X.block_start-=ce,q=We=X.hash_size;$=X.head[--q],X.head[q]=ce<=$?$-ce:0,--We;);for(q=We=ce;$=X.prev[--q],X.prev[q]=ce<=$?$-ce:0,--We;);J+=ce}if(X.strm.avail_in===0)break;if(de=X.strm,Ne=X.window,we=X.strstart+X.lookahead,De=J,Ee=void 0,Ee=de.avail_in,De<Ee&&(Ee=De),We=Ee===0?0:(de.avail_in-=Ee,f.arraySet(Ne,de.input,de.next_in,Ee,we),de.state.wrap===1?de.adler=t(de.adler,Ne,Ee,we):de.state.wrap===2&&(de.adler=l(de.adler,Ne,Ee,we)),de.next_in+=Ee,de.total_in+=Ee,Ee),X.lookahead+=We,X.lookahead+X.insert>=w)for(le=X.strstart-X.insert,X.ins_h=X.window[le],X.ins_h=(X.ins_h<<X.hash_shift^X.window[le+1])&X.hash_mask;X.insert&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[le+w-1])&X.hash_mask,X.prev[le&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=le,le++,X.insert--,!(X.lookahead+X.insert<w)););}while(X.lookahead<T&&X.strm.avail_in!==0)}function Y(X,q){for(var We,$;;){if(X.lookahead<T){if(Z(X),X.lookahead<T&&q===r)return _;if(X.lookahead===0)break}if(We=0,X.lookahead>=w&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+w-1])&X.hash_mask,We=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),We!==0&&X.strstart-We<=X.w_size-T&&(X.match_length=V(X,We)),X.match_length>=w)if($=s._tr_tally(X,X.strstart-X.match_start,X.match_length-w),X.lookahead-=X.match_length,X.match_length<=X.max_lazy_match&&X.lookahead>=w){for(X.match_length--;X.strstart++,X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+w-1])&X.hash_mask,We=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart,--X.match_length!=0;);X.strstart++}else X.strstart+=X.match_length,X.match_length=0,X.ins_h=X.window[X.strstart],X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+1])&X.hash_mask;else $=s._tr_tally(X,0,X.window[X.strstart]),X.lookahead--,X.strstart++;if($&&(H(X,!1),X.strm.avail_out===0))return _}return X.insert=X.strstart<w-1?X.strstart:w-1,q===u?(H(X,!0),X.strm.avail_out===0?k:R):X.last_lit&&(H(X,!1),X.strm.avail_out===0)?_:M}function Q(X,q){for(var We,$,J;;){if(X.lookahead<T){if(Z(X),X.lookahead<T&&q===r)return _;if(X.lookahead===0)break}if(We=0,X.lookahead>=w&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+w-1])&X.hash_mask,We=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),X.prev_length=X.match_length,X.prev_match=X.match_start,X.match_length=w-1,We!==0&&X.prev_length<X.max_lazy_match&&X.strstart-We<=X.w_size-T&&(X.match_length=V(X,We),X.match_length<=5&&(X.strategy===1||X.match_length===w&&4096<X.strstart-X.match_start)&&(X.match_length=w-1)),X.prev_length>=w&&X.match_length<=X.prev_length){for(J=X.strstart+X.lookahead-w,$=s._tr_tally(X,X.strstart-1-X.prev_match,X.prev_length-w),X.lookahead-=X.prev_length-1,X.prev_length-=2;++X.strstart<=J&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+w-1])&X.hash_mask,We=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),--X.prev_length!=0;);if(X.match_available=0,X.match_length=w-1,X.strstart++,$&&(H(X,!1),X.strm.avail_out===0))return _}else if(X.match_available){if(($=s._tr_tally(X,0,X.window[X.strstart-1]))&&H(X,!1),X.strstart++,X.lookahead--,X.strm.avail_out===0)return _}else X.match_available=1,X.strstart++,X.lookahead--}return X.match_available&&($=s._tr_tally(X,0,X.window[X.strstart-1]),X.match_available=0),X.insert=X.strstart<w-1?X.strstart:w-1,q===u?(H(X,!0),X.strm.avail_out===0?k:R):X.last_lit&&(H(X,!1),X.strm.avail_out===0)?_:M}function oe(X,q,We,$,J){this.good_length=X,this.max_lazy=q,this.nice_length=We,this.max_chain=$,this.func=J}function ue(){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=h,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 f.Buf16(2*x),this.dyn_dtree=new f.Buf16(2*(2*v+1)),this.bl_tree=new f.Buf16(2*(2*A+1)),U(this.dyn_ltree),U(this.dyn_dtree),U(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(b+1),this.heap=new f.Buf16(2*g+1),U(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*g+1),U(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 Le(X){var q;return X&&X.state?(X.total_in=X.total_out=0,X.data_type=d,(q=X.state).pending=0,q.pending_out=0,q.wrap<0&&(q.wrap=-q.wrap),q.status=q.wrap?C:O,X.adler=q.wrap===2?0:1,q.last_flush=r,s._tr_init(q),e):B(X,n)}function me(X){var q=Le(X);return q===e&&function(We){We.window_size=2*We.w_size,U(We.head),We.max_lazy_match=m[We.level].max_lazy,We.good_match=m[We.level].good_length,We.nice_match=m[We.level].nice_length,We.max_chain_length=m[We.level].max_chain,We.strstart=0,We.block_start=0,We.lookahead=0,We.insert=0,We.match_length=We.prev_length=w-1,We.match_available=0,We.ins_h=0}(X.state),q}function Ie(X,q,We,$,J,le){if(!X)return n;var de=1;if(q===i&&(q=6),$<0?(de=0,$=-$):15<$&&(de=2,$-=16),J<1||p<J||We!==h||$<8||15<$||q<0||9<q||le<0||c<le)return B(X,n);$===8&&($=9);var Ne=new ue;return(X.state=Ne).strm=X,Ne.wrap=de,Ne.gzhead=null,Ne.w_bits=$,Ne.w_size=1<<Ne.w_bits,Ne.w_mask=Ne.w_size-1,Ne.hash_bits=J+7,Ne.hash_size=1<<Ne.hash_bits,Ne.hash_mask=Ne.hash_size-1,Ne.hash_shift=~~((Ne.hash_bits+w-1)/w),Ne.window=new f.Buf8(2*Ne.w_size),Ne.head=new f.Buf16(Ne.hash_size),Ne.prev=new f.Buf16(Ne.w_size),Ne.lit_bufsize=1<<J+6,Ne.pending_buf_size=4*Ne.lit_bufsize,Ne.pending_buf=new f.Buf8(Ne.pending_buf_size),Ne.d_buf=1*Ne.lit_bufsize,Ne.l_buf=3*Ne.lit_bufsize,Ne.level=q,Ne.strategy=le,Ne.method=We,me(X)}m=[new oe(0,0,0,0,function(X,q){var We=65535;for(We>X.pending_buf_size-5&&(We=X.pending_buf_size-5);;){if(X.lookahead<=1){if(Z(X),X.lookahead===0&&q===r)return _;if(X.lookahead===0)break}X.strstart+=X.lookahead,X.lookahead=0;var $=X.block_start+We;if((X.strstart===0||X.strstart>=$)&&(X.lookahead=X.strstart-$,X.strstart=$,H(X,!1),X.strm.avail_out===0))return _;if(X.strstart-X.block_start>=X.w_size-T&&(H(X,!1),X.strm.avail_out===0))return _}return X.insert=0,q===u?(H(X,!0),X.strm.avail_out===0?k:R):(X.strstart>X.block_start&&(H(X,!1),X.strm.avail_out),_)}),new oe(4,4,8,4,Y),new oe(4,5,16,8,Y),new oe(4,6,32,32,Y),new oe(4,4,16,16,Q),new oe(8,16,32,32,Q),new oe(8,16,128,128,Q),new oe(8,32,128,256,Q),new oe(32,128,258,1024,Q),new oe(32,258,258,4096,Q)],o.deflateInit=function(X,q){return Ie(X,q,h,15,8,0)},o.deflateInit2=Ie,o.deflateReset=me,o.deflateResetKeep=Le,o.deflateSetHeader=function(X,q){return X&&X.state?X.state.wrap!==2?n:(X.state.gzhead=q,e):n},o.deflate=function(X,q){var We,$,J,le;if(!X||!X.state||5<q||q<0)return X?B(X,n):n;if($=X.state,!X.output||!X.input&&X.avail_in!==0||$.status===666&&q!==u)return B(X,X.avail_out===0?-5:n);if($.strm=X,We=$.last_flush,$.last_flush=q,$.status===C)if($.wrap===2)X.adler=0,W($,31),W($,139),W($,8),$.gzhead?(W($,($.gzhead.text?1:0)+($.gzhead.hcrc?2:0)+($.gzhead.extra?4:0)+($.gzhead.name?8:0)+($.gzhead.comment?16:0)),W($,255&$.gzhead.time),W($,$.gzhead.time>>8&255),W($,$.gzhead.time>>16&255),W($,$.gzhead.time>>24&255),W($,$.level===9?2:2<=$.strategy||$.level<2?4:0),W($,255&$.gzhead.os),$.gzhead.extra&&$.gzhead.extra.length&&(W($,255&$.gzhead.extra.length),W($,$.gzhead.extra.length>>8&255)),$.gzhead.hcrc&&(X.adler=l(X.adler,$.pending_buf,$.pending,0)),$.gzindex=0,$.status=69):(W($,0),W($,0),W($,0),W($,0),W($,0),W($,$.level===9?2:2<=$.strategy||$.level<2?4:0),W($,3),$.status=O);else{var de=h+($.w_bits-8<<4)<<8;de|=(2<=$.strategy||$.level<2?0:$.level<6?1:$.level===6?2:3)<<6,$.strstart!==0&&(de|=32),de+=31-de%31,$.status=O,G($,de),$.strstart!==0&&(G($,X.adler>>>16),G($,65535&X.adler)),X.adler=1}if($.status===69)if($.gzhead.extra){for(J=$.pending;$.gzindex<(65535&$.gzhead.extra.length)&&($.pending!==$.pending_buf_size||($.gzhead.hcrc&&$.pending>J&&(X.adler=l(X.adler,$.pending_buf,$.pending-J,J)),j(X),J=$.pending,$.pending!==$.pending_buf_size));)W($,255&$.gzhead.extra[$.gzindex]),$.gzindex++;$.gzhead.hcrc&&$.pending>J&&(X.adler=l(X.adler,$.pending_buf,$.pending-J,J)),$.gzindex===$.gzhead.extra.length&&($.gzindex=0,$.status=73)}else $.status=73;if($.status===73)if($.gzhead.name){J=$.pending;do{if($.pending===$.pending_buf_size&&($.gzhead.hcrc&&$.pending>J&&(X.adler=l(X.adler,$.pending_buf,$.pending-J,J)),j(X),J=$.pending,$.pending===$.pending_buf_size)){le=1;break}le=$.gzindex<$.gzhead.name.length?255&$.gzhead.name.charCodeAt($.gzindex++):0,W($,le)}while(le!==0);$.gzhead.hcrc&&$.pending>J&&(X.adler=l(X.adler,$.pending_buf,$.pending-J,J)),le===0&&($.gzindex=0,$.status=91)}else $.status=91;if($.status===91)if($.gzhead.comment){J=$.pending;do{if($.pending===$.pending_buf_size&&($.gzhead.hcrc&&$.pending>J&&(X.adler=l(X.adler,$.pending_buf,$.pending-J,J)),j(X),J=$.pending,$.pending===$.pending_buf_size)){le=1;break}le=$.gzindex<$.gzhead.comment.length?255&$.gzhead.comment.charCodeAt($.gzindex++):0,W($,le)}while(le!==0);$.gzhead.hcrc&&$.pending>J&&(X.adler=l(X.adler,$.pending_buf,$.pending-J,J)),le===0&&($.status=103)}else $.status=103;if($.status===103&&($.gzhead.hcrc?($.pending+2>$.pending_buf_size&&j(X),$.pending+2<=$.pending_buf_size&&(W($,255&X.adler),W($,X.adler>>8&255),X.adler=0,$.status=O)):$.status=O),$.pending!==0){if(j(X),X.avail_out===0)return $.last_flush=-1,e}else if(X.avail_in===0&&P(q)<=P(We)&&q!==u)return B(X,-5);if($.status===666&&X.avail_in!==0)return B(X,-5);if(X.avail_in!==0||$.lookahead!==0||q!==r&&$.status!==666){var Ne=$.strategy===2?function(we,De){for(var Ee;;){if(we.lookahead===0&&(Z(we),we.lookahead===0)){if(De===r)return _;break}if(we.match_length=0,Ee=s._tr_tally(we,0,we.window[we.strstart]),we.lookahead--,we.strstart++,Ee&&(H(we,!1),we.strm.avail_out===0))return _}return we.insert=0,De===u?(H(we,!0),we.strm.avail_out===0?k:R):we.last_lit&&(H(we,!1),we.strm.avail_out===0)?_:M}($,q):$.strategy===3?function(we,De){for(var Ee,ce,ne,ee,Ae=we.window;;){if(we.lookahead<=S){if(Z(we),we.lookahead<=S&&De===r)return _;if(we.lookahead===0)break}if(we.match_length=0,we.lookahead>=w&&0<we.strstart&&(ce=Ae[ne=we.strstart-1])===Ae[++ne]&&ce===Ae[++ne]&&ce===Ae[++ne]){ee=we.strstart+S;do;while(ce===Ae[++ne]&&ce===Ae[++ne]&&ce===Ae[++ne]&&ce===Ae[++ne]&&ce===Ae[++ne]&&ce===Ae[++ne]&&ce===Ae[++ne]&&ce===Ae[++ne]&&ne<ee);we.match_length=S-(ee-ne),we.match_length>we.lookahead&&(we.match_length=we.lookahead)}if(we.match_length>=w?(Ee=s._tr_tally(we,1,we.match_length-w),we.lookahead-=we.match_length,we.strstart+=we.match_length,we.match_length=0):(Ee=s._tr_tally(we,0,we.window[we.strstart]),we.lookahead--,we.strstart++),Ee&&(H(we,!1),we.strm.avail_out===0))return _}return we.insert=0,De===u?(H(we,!0),we.strm.avail_out===0?k:R):we.last_lit&&(H(we,!1),we.strm.avail_out===0)?_:M}($,q):m[$.level].func($,q);if(Ne!==k&&Ne!==R||($.status=666),Ne===_||Ne===k)return X.avail_out===0&&($.last_flush=-1),e;if(Ne===M&&(q===1?s._tr_align($):q!==5&&(s._tr_stored_block($,0,0,!1),q===3&&(U($.head),$.lookahead===0&&($.strstart=0,$.block_start=0,$.insert=0))),j(X),X.avail_out===0))return $.last_flush=-1,e}return q!==u?e:$.wrap<=0?1:($.wrap===2?(W($,255&X.adler),W($,X.adler>>8&255),W($,X.adler>>16&255),W($,X.adler>>24&255),W($,255&X.total_in),W($,X.total_in>>8&255),W($,X.total_in>>16&255),W($,X.total_in>>24&255)):(G($,X.adler>>>16),G($,65535&X.adler)),j(X),0<$.wrap&&($.wrap=-$.wrap),$.pending!==0?e:1)},o.deflateEnd=function(X){var q;return X&&X.state?(q=X.state.status)!==C&&q!==69&&q!==73&&q!==91&&q!==103&&q!==O&&q!==666?B(X,n):(X.state=null,q===O?B(X,-3):e):n},o.deflateSetDictionary=function(X,q){var We,$,J,le,de,Ne,we,De,Ee=q.length;if(!X||!X.state)return n;if((le=(We=X.state).wrap)===2||le===1&&We.status!==C||We.lookahead)return n;for(le===1&&(X.adler=t(X.adler,q,Ee,0)),We.wrap=0,Ee>=We.w_size&&(le===0&&(U(We.head),We.strstart=0,We.block_start=0,We.insert=0),De=new f.Buf8(We.w_size),f.arraySet(De,q,Ee-We.w_size,We.w_size,0),q=De,Ee=We.w_size),de=X.avail_in,Ne=X.next_in,we=X.input,X.avail_in=Ee,X.next_in=0,X.input=q,Z(We);We.lookahead>=w;){for($=We.strstart,J=We.lookahead-(w-1);We.ins_h=(We.ins_h<<We.hash_shift^We.window[$+w-1])&We.hash_mask,We.prev[$&We.w_mask]=We.head[We.ins_h],We.head[We.ins_h]=$,$++,--J;);We.strstart=$,We.lookahead=w-1,Z(We)}return We.strstart+=We.lookahead,We.block_start=We.strstart,We.insert=We.lookahead,We.lookahead=0,We.match_length=We.prev_length=w-1,We.match_available=0,X.next_in=Ne,X.input=we,X.avail_in=de,We.wrap=le,e},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(E,I,o){"use strict";I.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(E,I,o){"use strict";I.exports=function(m,f){var s,t,l,a,r,u,e,n,i,c,d,h,p,g,v,A,x,b,w,S,T,C,O,_,M;s=m.state,t=m.next_in,_=m.input,l=t+(m.avail_in-5),a=m.next_out,M=m.output,r=a-(f-m.avail_out),u=a+(m.avail_out-257),e=s.dmax,n=s.wsize,i=s.whave,c=s.wnext,d=s.window,h=s.hold,p=s.bits,g=s.lencode,v=s.distcode,A=(1<<s.lenbits)-1,x=(1<<s.distbits)-1;e:do{p<15&&(h+=_[t++]<<p,p+=8,h+=_[t++]<<p,p+=8),b=g[h&A];t:for(;;){if(h>>>=w=b>>>24,p-=w,(w=b>>>16&255)===0)M[a++]=65535&b;else{if(!(16&w)){if((64&w)==0){b=g[(65535&b)+(h&(1<<w)-1)];continue t}if(32&w){s.mode=12;break e}m.msg="invalid literal/length code",s.mode=30;break e}S=65535&b,(w&=15)&&(p<w&&(h+=_[t++]<<p,p+=8),S+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=_[t++]<<p,p+=8,h+=_[t++]<<p,p+=8),b=v[h&x];r:for(;;){if(h>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if((64&w)==0){b=v[(65535&b)+(h&(1<<w)-1)];continue r}m.msg="invalid distance code",s.mode=30;break e}if(T=65535&b,p<(w&=15)&&(h+=_[t++]<<p,(p+=8)<w&&(h+=_[t++]<<p,p+=8)),e<(T+=h&(1<<w)-1)){m.msg="invalid distance too far back",s.mode=30;break e}if(h>>>=w,p-=w,(w=a-r)<T){if(i<(w=T-w)&&s.sane){m.msg="invalid distance too far back",s.mode=30;break e}if(O=d,(C=0)===c){if(C+=n-w,w<S){for(S-=w;M[a++]=d[C++],--w;);C=a-T,O=M}}else if(c<w){if(C+=n+c-w,(w-=c)<S){for(S-=w;M[a++]=d[C++],--w;);if(C=0,c<S){for(S-=w=c;M[a++]=d[C++],--w;);C=a-T,O=M}}}else if(C+=c-w,w<S){for(S-=w;M[a++]=d[C++],--w;);C=a-T,O=M}for(;2<S;)M[a++]=O[C++],M[a++]=O[C++],M[a++]=O[C++],S-=3;S&&(M[a++]=O[C++],1<S&&(M[a++]=O[C++]))}else{for(C=a-T;M[a++]=M[C++],M[a++]=M[C++],M[a++]=M[C++],2<(S-=3););S&&(M[a++]=M[C++],1<S&&(M[a++]=M[C++]))}break}}break}}while(t<l&&a<u);t-=S=p>>3,h&=(1<<(p-=S<<3))-1,m.next_in=t,m.next_out=a,m.avail_in=t<l?l-t+5:5-(t-l),m.avail_out=a<u?u-a+257:257-(a-u),s.hold=h,s.bits=p}},{}],49:[function(E,I,o){"use strict";var m=E("../utils/common"),f=E("./adler32"),s=E("./crc32"),t=E("./inffast"),l=E("./inftrees"),a=1,r=2,u=0,e=-2,n=1,i=852,c=592;function d(C){return(C>>>24&255)+(C>>>8&65280)+((65280&C)<<8)+((255&C)<<24)}function h(){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 m.Buf16(320),this.work=new m.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(C){var O;return C&&C.state?(O=C.state,C.total_in=C.total_out=O.total=0,C.msg="",O.wrap&&(C.adler=1&O.wrap),O.mode=n,O.last=0,O.havedict=0,O.dmax=32768,O.head=null,O.hold=0,O.bits=0,O.lencode=O.lendyn=new m.Buf32(i),O.distcode=O.distdyn=new m.Buf32(c),O.sane=1,O.back=-1,u):e}function g(C){var O;return C&&C.state?((O=C.state).wsize=0,O.whave=0,O.wnext=0,p(C)):e}function v(C,O){var _,M;return C&&C.state?(M=C.state,O<0?(_=0,O=-O):(_=1+(O>>4),O<48&&(O&=15)),O&&(O<8||15<O)?e:(M.window!==null&&M.wbits!==O&&(M.window=null),M.wrap=_,M.wbits=O,g(C))):e}function A(C,O){var _,M;return C?(M=new h,(C.state=M).window=null,(_=v(C,O))!==u&&(C.state=null),_):e}var x,b,w=!0;function S(C){if(w){var O;for(x=new m.Buf32(512),b=new m.Buf32(32),O=0;O<144;)C.lens[O++]=8;for(;O<256;)C.lens[O++]=9;for(;O<280;)C.lens[O++]=7;for(;O<288;)C.lens[O++]=8;for(l(a,C.lens,0,288,x,0,C.work,{bits:9}),O=0;O<32;)C.lens[O++]=5;l(r,C.lens,0,32,b,0,C.work,{bits:5}),w=!1}C.lencode=x,C.lenbits=9,C.distcode=b,C.distbits=5}function T(C,O,_,M){var k,R=C.state;return R.window===null&&(R.wsize=1<<R.wbits,R.wnext=0,R.whave=0,R.window=new m.Buf8(R.wsize)),M>=R.wsize?(m.arraySet(R.window,O,_-R.wsize,R.wsize,0),R.wnext=0,R.whave=R.wsize):(M<(k=R.wsize-R.wnext)&&(k=M),m.arraySet(R.window,O,_-M,k,R.wnext),(M-=k)?(m.arraySet(R.window,O,_-M,M,0),R.wnext=M,R.whave=R.wsize):(R.wnext+=k,R.wnext===R.wsize&&(R.wnext=0),R.whave<R.wsize&&(R.whave+=k))),0}o.inflateReset=g,o.inflateReset2=v,o.inflateResetKeep=p,o.inflateInit=function(C){return A(C,15)},o.inflateInit2=A,o.inflate=function(C,O){var _,M,k,R,B,P,U,j,H,W,G,V,Z,Y,Q,oe,ue,Le,me,Ie,X,q,We,$,J=0,le=new m.Buf8(4),de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!C||!C.state||!C.output||!C.input&&C.avail_in!==0)return e;(_=C.state).mode===12&&(_.mode=13),B=C.next_out,k=C.output,U=C.avail_out,R=C.next_in,M=C.input,P=C.avail_in,j=_.hold,H=_.bits,W=P,G=U,q=u;e:for(;;)switch(_.mode){case n:if(_.wrap===0){_.mode=13;break}for(;H<16;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if(2&_.wrap&&j===35615){le[_.check=0]=255&j,le[1]=j>>>8&255,_.check=s(_.check,le,2,0),H=j=0,_.mode=2;break}if(_.flags=0,_.head&&(_.head.done=!1),!(1&_.wrap)||(((255&j)<<8)+(j>>8))%31){C.msg="incorrect header check",_.mode=30;break}if((15&j)!=8){C.msg="unknown compression method",_.mode=30;break}if(H-=4,X=8+(15&(j>>>=4)),_.wbits===0)_.wbits=X;else if(X>_.wbits){C.msg="invalid window size",_.mode=30;break}_.dmax=1<<X,C.adler=_.check=1,_.mode=512&j?10:12,H=j=0;break;case 2:for(;H<16;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if(_.flags=j,(255&_.flags)!=8){C.msg="unknown compression method",_.mode=30;break}if(57344&_.flags){C.msg="unknown header flags set",_.mode=30;break}_.head&&(_.head.text=j>>8&1),512&_.flags&&(le[0]=255&j,le[1]=j>>>8&255,_.check=s(_.check,le,2,0)),H=j=0,_.mode=3;case 3:for(;H<32;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}_.head&&(_.head.time=j),512&_.flags&&(le[0]=255&j,le[1]=j>>>8&255,le[2]=j>>>16&255,le[3]=j>>>24&255,_.check=s(_.check,le,4,0)),H=j=0,_.mode=4;case 4:for(;H<16;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}_.head&&(_.head.xflags=255&j,_.head.os=j>>8),512&_.flags&&(le[0]=255&j,le[1]=j>>>8&255,_.check=s(_.check,le,2,0)),H=j=0,_.mode=5;case 5:if(1024&_.flags){for(;H<16;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}_.length=j,_.head&&(_.head.extra_len=j),512&_.flags&&(le[0]=255&j,le[1]=j>>>8&255,_.check=s(_.check,le,2,0)),H=j=0}else _.head&&(_.head.extra=null);_.mode=6;case 6:if(1024&_.flags&&(P<(V=_.length)&&(V=P),V&&(_.head&&(X=_.head.extra_len-_.length,_.head.extra||(_.head.extra=new Array(_.head.extra_len)),m.arraySet(_.head.extra,M,R,V,X)),512&_.flags&&(_.check=s(_.check,M,V,R)),P-=V,R+=V,_.length-=V),_.length))break e;_.length=0,_.mode=7;case 7:if(2048&_.flags){if(P===0)break e;for(V=0;X=M[R+V++],_.head&&X&&_.length<65536&&(_.head.name+=String.fromCharCode(X)),X&&V<P;);if(512&_.flags&&(_.check=s(_.check,M,V,R)),P-=V,R+=V,X)break e}else _.head&&(_.head.name=null);_.length=0,_.mode=8;case 8:if(4096&_.flags){if(P===0)break e;for(V=0;X=M[R+V++],_.head&&X&&_.length<65536&&(_.head.comment+=String.fromCharCode(X)),X&&V<P;);if(512&_.flags&&(_.check=s(_.check,M,V,R)),P-=V,R+=V,X)break e}else _.head&&(_.head.comment=null);_.mode=9;case 9:if(512&_.flags){for(;H<16;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if(j!==(65535&_.check)){C.msg="header crc mismatch",_.mode=30;break}H=j=0}_.head&&(_.head.hcrc=_.flags>>9&1,_.head.done=!0),C.adler=_.check=0,_.mode=12;break;case 10:for(;H<32;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}C.adler=_.check=d(j),H=j=0,_.mode=11;case 11:if(_.havedict===0)return C.next_out=B,C.avail_out=U,C.next_in=R,C.avail_in=P,_.hold=j,_.bits=H,2;C.adler=_.check=1,_.mode=12;case 12:if(O===5||O===6)break e;case 13:if(_.last){j>>>=7&H,H-=7&H,_.mode=27;break}for(;H<3;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}switch(_.last=1&j,H-=1,3&(j>>>=1)){case 0:_.mode=14;break;case 1:if(S(_),_.mode=20,O!==6)break;j>>>=2,H-=2;break e;case 2:_.mode=17;break;case 3:C.msg="invalid block type",_.mode=30}j>>>=2,H-=2;break;case 14:for(j>>>=7&H,H-=7&H;H<32;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if((65535&j)!=(j>>>16^65535)){C.msg="invalid stored block lengths",_.mode=30;break}if(_.length=65535&j,H=j=0,_.mode=15,O===6)break e;case 15:_.mode=16;case 16:if(V=_.length){if(P<V&&(V=P),U<V&&(V=U),V===0)break e;m.arraySet(k,M,R,V,B),P-=V,R+=V,U-=V,B+=V,_.length-=V;break}_.mode=12;break;case 17:for(;H<14;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if(_.nlen=257+(31&j),j>>>=5,H-=5,_.ndist=1+(31&j),j>>>=5,H-=5,_.ncode=4+(15&j),j>>>=4,H-=4,286<_.nlen||30<_.ndist){C.msg="too many length or distance symbols",_.mode=30;break}_.have=0,_.mode=18;case 18:for(;_.have<_.ncode;){for(;H<3;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}_.lens[de[_.have++]]=7&j,j>>>=3,H-=3}for(;_.have<19;)_.lens[de[_.have++]]=0;if(_.lencode=_.lendyn,_.lenbits=7,We={bits:_.lenbits},q=l(0,_.lens,0,19,_.lencode,0,_.work,We),_.lenbits=We.bits,q){C.msg="invalid code lengths set",_.mode=30;break}_.have=0,_.mode=19;case 19:for(;_.have<_.nlen+_.ndist;){for(;oe=(J=_.lencode[j&(1<<_.lenbits)-1])>>>16&255,ue=65535&J,!((Q=J>>>24)<=H);){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if(ue<16)j>>>=Q,H-=Q,_.lens[_.have++]=ue;else{if(ue===16){for($=Q+2;H<$;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if(j>>>=Q,H-=Q,_.have===0){C.msg="invalid bit length repeat",_.mode=30;break}X=_.lens[_.have-1],V=3+(3&j),j>>>=2,H-=2}else if(ue===17){for($=Q+3;H<$;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}H-=Q,X=0,V=3+(7&(j>>>=Q)),j>>>=3,H-=3}else{for($=Q+7;H<$;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}H-=Q,X=0,V=11+(127&(j>>>=Q)),j>>>=7,H-=7}if(_.have+V>_.nlen+_.ndist){C.msg="invalid bit length repeat",_.mode=30;break}for(;V--;)_.lens[_.have++]=X}}if(_.mode===30)break;if(_.lens[256]===0){C.msg="invalid code -- missing end-of-block",_.mode=30;break}if(_.lenbits=9,We={bits:_.lenbits},q=l(a,_.lens,0,_.nlen,_.lencode,0,_.work,We),_.lenbits=We.bits,q){C.msg="invalid literal/lengths set",_.mode=30;break}if(_.distbits=6,_.distcode=_.distdyn,We={bits:_.distbits},q=l(r,_.lens,_.nlen,_.ndist,_.distcode,0,_.work,We),_.distbits=We.bits,q){C.msg="invalid distances set",_.mode=30;break}if(_.mode=20,O===6)break e;case 20:_.mode=21;case 21:if(6<=P&&258<=U){C.next_out=B,C.avail_out=U,C.next_in=R,C.avail_in=P,_.hold=j,_.bits=H,t(C,G),B=C.next_out,k=C.output,U=C.avail_out,R=C.next_in,M=C.input,P=C.avail_in,j=_.hold,H=_.bits,_.mode===12&&(_.back=-1);break}for(_.back=0;oe=(J=_.lencode[j&(1<<_.lenbits)-1])>>>16&255,ue=65535&J,!((Q=J>>>24)<=H);){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if(oe&&(240&oe)==0){for(Le=Q,me=oe,Ie=ue;oe=(J=_.lencode[Ie+((j&(1<<Le+me)-1)>>Le)])>>>16&255,ue=65535&J,!(Le+(Q=J>>>24)<=H);){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}j>>>=Le,H-=Le,_.back+=Le}if(j>>>=Q,H-=Q,_.back+=Q,_.length=ue,oe===0){_.mode=26;break}if(32&oe){_.back=-1,_.mode=12;break}if(64&oe){C.msg="invalid literal/length code",_.mode=30;break}_.extra=15&oe,_.mode=22;case 22:if(_.extra){for($=_.extra;H<$;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}_.length+=j&(1<<_.extra)-1,j>>>=_.extra,H-=_.extra,_.back+=_.extra}_.was=_.length,_.mode=23;case 23:for(;oe=(J=_.distcode[j&(1<<_.distbits)-1])>>>16&255,ue=65535&J,!((Q=J>>>24)<=H);){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if((240&oe)==0){for(Le=Q,me=oe,Ie=ue;oe=(J=_.distcode[Ie+((j&(1<<Le+me)-1)>>Le)])>>>16&255,ue=65535&J,!(Le+(Q=J>>>24)<=H);){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}j>>>=Le,H-=Le,_.back+=Le}if(j>>>=Q,H-=Q,_.back+=Q,64&oe){C.msg="invalid distance code",_.mode=30;break}_.offset=ue,_.extra=15&oe,_.mode=24;case 24:if(_.extra){for($=_.extra;H<$;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}_.offset+=j&(1<<_.extra)-1,j>>>=_.extra,H-=_.extra,_.back+=_.extra}if(_.offset>_.dmax){C.msg="invalid distance too far back",_.mode=30;break}_.mode=25;case 25:if(U===0)break e;if(V=G-U,_.offset>V){if((V=_.offset-V)>_.whave&&_.sane){C.msg="invalid distance too far back",_.mode=30;break}Z=V>_.wnext?(V-=_.wnext,_.wsize-V):_.wnext-V,V>_.length&&(V=_.length),Y=_.window}else Y=k,Z=B-_.offset,V=_.length;for(U<V&&(V=U),U-=V,_.length-=V;k[B++]=Y[Z++],--V;);_.length===0&&(_.mode=21);break;case 26:if(U===0)break e;k[B++]=_.length,U--,_.mode=21;break;case 27:if(_.wrap){for(;H<32;){if(P===0)break e;P--,j|=M[R++]<<H,H+=8}if(G-=U,C.total_out+=G,_.total+=G,G&&(C.adler=_.check=_.flags?s(_.check,k,G,B-G):f(_.check,k,G,B-G)),G=U,(_.flags?j:d(j))!==_.check){C.msg="incorrect data check",_.mode=30;break}H=j=0}_.mode=28;case 28:if(_.wrap&&_.flags){for(;H<32;){if(P===0)break e;P--,j+=M[R++]<<H,H+=8}if(j!==(4294967295&_.total)){C.msg="incorrect length check",_.mode=30;break}H=j=0}_.mode=29;case 29:q=1;break e;case 30:q=-3;break e;case 31:return-4;case 32:default:return e}return C.next_out=B,C.avail_out=U,C.next_in=R,C.avail_in=P,_.hold=j,_.bits=H,(_.wsize||G!==C.avail_out&&_.mode<30&&(_.mode<27||O!==4))&&T(C,C.output,C.next_out,G-C.avail_out)?(_.mode=31,-4):(W-=C.avail_in,G-=C.avail_out,C.total_in+=W,C.total_out+=G,_.total+=G,_.wrap&&G&&(C.adler=_.check=_.flags?s(_.check,k,G,C.next_out-G):f(_.check,k,G,C.next_out-G)),C.data_type=_.bits+(_.last?64:0)+(_.mode===12?128:0)+(_.mode===20||_.mode===15?256:0),(W==0&&G===0||O===4)&&q===u&&(q=-5),q)},o.inflateEnd=function(C){if(!C||!C.state)return e;var O=C.state;return O.window&&(O.window=null),C.state=null,u},o.inflateGetHeader=function(C,O){var _;return C&&C.state?(2&(_=C.state).wrap)==0?e:((_.head=O).done=!1,u):e},o.inflateSetDictionary=function(C,O){var _,M=O.length;return C&&C.state?(_=C.state).wrap!==0&&_.mode!==11?e:_.mode===11&&f(1,O,M,0)!==_.check?-3:T(C,O,M,M)?(_.mode=31,-4):(_.havedict=1,u):e},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(E,I,o){"use strict";var m=E("../utils/common"),f=[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],s=[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],t=[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],l=[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];I.exports=function(a,r,u,e,n,i,c,d){var h,p,g,v,A,x,b,w,S,T=d.bits,C=0,O=0,_=0,M=0,k=0,R=0,B=0,P=0,U=0,j=0,H=null,W=0,G=new m.Buf16(16),V=new m.Buf16(16),Z=null,Y=0;for(C=0;C<=15;C++)G[C]=0;for(O=0;O<e;O++)G[r[u+O]]++;for(k=T,M=15;1<=M&&G[M]===0;M--);if(M<k&&(k=M),M===0)return n[i++]=20971520,n[i++]=20971520,d.bits=1,0;for(_=1;_<M&&G[_]===0;_++);for(k<_&&(k=_),C=P=1;C<=15;C++)if(P<<=1,(P-=G[C])<0)return-1;if(0<P&&(a===0||M!==1))return-1;for(V[1]=0,C=1;C<15;C++)V[C+1]=V[C]+G[C];for(O=0;O<e;O++)r[u+O]!==0&&(c[V[r[u+O]]++]=O);if(x=a===0?(H=Z=c,19):a===1?(H=f,W-=257,Z=s,Y-=257,256):(H=t,Z=l,-1),C=_,A=i,B=O=j=0,g=-1,v=(U=1<<(R=k))-1,a===1&&852<U||a===2&&592<U)return 1;for(;;){for(b=C-B,S=c[O]<x?(w=0,c[O]):c[O]>x?(w=Z[Y+c[O]],H[W+c[O]]):(w=96,0),h=1<<C-B,_=p=1<<R;n[A+(j>>B)+(p-=h)]=b<<24|w<<16|S|0,p!==0;);for(h=1<<C-1;j&h;)h>>=1;if(h!==0?(j&=h-1,j+=h):j=0,O++,--G[C]==0){if(C===M)break;C=r[u+c[O]]}if(k<C&&(j&v)!==g){for(B===0&&(B=k),A+=_,P=1<<(R=C-B);R+B<M&&!((P-=G[R+B])<=0);)R++,P<<=1;if(U+=1<<R,a===1&&852<U||a===2&&592<U)return 1;n[g=j&v]=k<<24|R<<16|A-i|0}}return j!==0&&(n[A+j]=C-B<<24|64<<16|0),d.bits=k,0}},{"../utils/common":41}],51:[function(E,I,o){"use strict";I.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(E,I,o){"use strict";var m=E("../utils/common"),f=0,s=1;function t(J){for(var le=J.length;0<=--le;)J[le]=0}var l=0,a=29,r=256,u=r+1+a,e=30,n=19,i=2*u+1,c=15,d=16,h=7,p=256,g=16,v=17,A=18,x=[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],b=[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],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(u+2));t(T);var C=new Array(2*e);t(C);var O=new Array(512);t(O);var _=new Array(256);t(_);var M=new Array(a);t(M);var k,R,B,P=new Array(e);function U(J,le,de,Ne,we){this.static_tree=J,this.extra_bits=le,this.extra_base=de,this.elems=Ne,this.max_length=we,this.has_stree=J&&J.length}function j(J,le){this.dyn_tree=J,this.max_code=0,this.stat_desc=le}function H(J){return J<256?O[J]:O[256+(J>>>7)]}function W(J,le){J.pending_buf[J.pending++]=255&le,J.pending_buf[J.pending++]=le>>>8&255}function G(J,le,de){J.bi_valid>d-de?(J.bi_buf|=le<<J.bi_valid&65535,W(J,J.bi_buf),J.bi_buf=le>>d-J.bi_valid,J.bi_valid+=de-d):(J.bi_buf|=le<<J.bi_valid&65535,J.bi_valid+=de)}function V(J,le,de){G(J,de[2*le],de[2*le+1])}function Z(J,le){for(var de=0;de|=1&J,J>>>=1,de<<=1,0<--le;);return de>>>1}function Y(J,le,de){var Ne,we,De=new Array(c+1),Ee=0;for(Ne=1;Ne<=c;Ne++)De[Ne]=Ee=Ee+de[Ne-1]<<1;for(we=0;we<=le;we++){var ce=J[2*we+1];ce!==0&&(J[2*we]=Z(De[ce]++,ce))}}function Q(J){var le;for(le=0;le<u;le++)J.dyn_ltree[2*le]=0;for(le=0;le<e;le++)J.dyn_dtree[2*le]=0;for(le=0;le<n;le++)J.bl_tree[2*le]=0;J.dyn_ltree[2*p]=1,J.opt_len=J.static_len=0,J.last_lit=J.matches=0}function oe(J){8<J.bi_valid?W(J,J.bi_buf):0<J.bi_valid&&(J.pending_buf[J.pending++]=J.bi_buf),J.bi_buf=0,J.bi_valid=0}function ue(J,le,de,Ne){var we=2*le,De=2*de;return J[we]<J[De]||J[we]===J[De]&&Ne[le]<=Ne[de]}function Le(J,le,de){for(var Ne=J.heap[de],we=de<<1;we<=J.heap_len&&(we<J.heap_len&&ue(le,J.heap[we+1],J.heap[we],J.depth)&&we++,!ue(le,Ne,J.heap[we],J.depth));)J.heap[de]=J.heap[we],de=we,we<<=1;J.heap[de]=Ne}function me(J,le,de){var Ne,we,De,Ee,ce=0;if(J.last_lit!==0)for(;Ne=J.pending_buf[J.d_buf+2*ce]<<8|J.pending_buf[J.d_buf+2*ce+1],we=J.pending_buf[J.l_buf+ce],ce++,Ne===0?V(J,we,le):(V(J,(De=_[we])+r+1,le),(Ee=x[De])!==0&&G(J,we-=M[De],Ee),V(J,De=H(--Ne),de),(Ee=b[De])!==0&&G(J,Ne-=P[De],Ee)),ce<J.last_lit;);V(J,p,le)}function Ie(J,le){var de,Ne,we,De=le.dyn_tree,Ee=le.stat_desc.static_tree,ce=le.stat_desc.has_stree,ne=le.stat_desc.elems,ee=-1;for(J.heap_len=0,J.heap_max=i,de=0;de<ne;de++)De[2*de]!==0?(J.heap[++J.heap_len]=ee=de,J.depth[de]=0):De[2*de+1]=0;for(;J.heap_len<2;)De[2*(we=J.heap[++J.heap_len]=ee<2?++ee:0)]=1,J.depth[we]=0,J.opt_len--,ce&&(J.static_len-=Ee[2*we+1]);for(le.max_code=ee,de=J.heap_len>>1;1<=de;de--)Le(J,De,de);for(we=ne;de=J.heap[1],J.heap[1]=J.heap[J.heap_len--],Le(J,De,1),Ne=J.heap[1],J.heap[--J.heap_max]=de,J.heap[--J.heap_max]=Ne,De[2*we]=De[2*de]+De[2*Ne],J.depth[we]=(J.depth[de]>=J.depth[Ne]?J.depth[de]:J.depth[Ne])+1,De[2*de+1]=De[2*Ne+1]=we,J.heap[1]=we++,Le(J,De,1),2<=J.heap_len;);J.heap[--J.heap_max]=J.heap[1],function(Ae,Ve){var Ke,Oe,it,Fe,ft,At,bt=Ve.dyn_tree,St=Ve.max_code,Et=Ve.stat_desc.static_tree,je=Ve.stat_desc.has_stree,pe=Ve.stat_desc.extra_bits,ie=Ve.stat_desc.extra_base,st=Ve.stat_desc.max_length,Qe=0;for(Fe=0;Fe<=c;Fe++)Ae.bl_count[Fe]=0;for(bt[2*Ae.heap[Ae.heap_max]+1]=0,Ke=Ae.heap_max+1;Ke<i;Ke++)st<(Fe=bt[2*bt[2*(Oe=Ae.heap[Ke])+1]+1]+1)&&(Fe=st,Qe++),bt[2*Oe+1]=Fe,St<Oe||(Ae.bl_count[Fe]++,ft=0,ie<=Oe&&(ft=pe[Oe-ie]),At=bt[2*Oe],Ae.opt_len+=At*(Fe+ft),je&&(Ae.static_len+=At*(Et[2*Oe+1]+ft)));if(Qe!==0){do{for(Fe=st-1;Ae.bl_count[Fe]===0;)Fe--;Ae.bl_count[Fe]--,Ae.bl_count[Fe+1]+=2,Ae.bl_count[st]--,Qe-=2}while(0<Qe);for(Fe=st;Fe!==0;Fe--)for(Oe=Ae.bl_count[Fe];Oe!==0;)St<(it=Ae.heap[--Ke])||(bt[2*it+1]!==Fe&&(Ae.opt_len+=(Fe-bt[2*it+1])*bt[2*it],bt[2*it+1]=Fe),Oe--)}}(J,le),Y(De,ee,J.bl_count)}function X(J,le,de){var Ne,we,De=-1,Ee=le[1],ce=0,ne=7,ee=4;for(Ee===0&&(ne=138,ee=3),le[2*(de+1)+1]=65535,Ne=0;Ne<=de;Ne++)we=Ee,Ee=le[2*(Ne+1)+1],++ce<ne&&we===Ee||(ce<ee?J.bl_tree[2*we]+=ce:we!==0?(we!==De&&J.bl_tree[2*we]++,J.bl_tree[2*g]++):ce<=10?J.bl_tree[2*v]++:J.bl_tree[2*A]++,De=we,ee=(ce=0)===Ee?(ne=138,3):we===Ee?(ne=6,3):(ne=7,4))}function q(J,le,de){var Ne,we,De=-1,Ee=le[1],ce=0,ne=7,ee=4;for(Ee===0&&(ne=138,ee=3),Ne=0;Ne<=de;Ne++)if(we=Ee,Ee=le[2*(Ne+1)+1],!(++ce<ne&&we===Ee)){if(ce<ee)for(;V(J,we,J.bl_tree),--ce!=0;);else we!==0?(we!==De&&(V(J,we,J.bl_tree),ce--),V(J,g,J.bl_tree),G(J,ce-3,2)):ce<=10?(V(J,v,J.bl_tree),G(J,ce-3,3)):(V(J,A,J.bl_tree),G(J,ce-11,7));De=we,ee=(ce=0)===Ee?(ne=138,3):we===Ee?(ne=6,3):(ne=7,4)}}t(P);var We=!1;function $(J,le,de,Ne){G(J,(l<<1)+(Ne?1:0),3),function(we,De,Ee,ce){oe(we),ce&&(W(we,Ee),W(we,~Ee)),m.arraySet(we.pending_buf,we.window,De,Ee,we.pending),we.pending+=Ee}(J,le,de,!0)}o._tr_init=function(J){We||(function(){var le,de,Ne,we,De,Ee=new Array(c+1);for(we=Ne=0;we<a-1;we++)for(M[we]=Ne,le=0;le<1<<x[we];le++)_[Ne++]=we;for(_[Ne-1]=we,we=De=0;we<16;we++)for(P[we]=De,le=0;le<1<<b[we];le++)O[De++]=we;for(De>>=7;we<e;we++)for(P[we]=De<<7,le=0;le<1<<b[we]-7;le++)O[256+De++]=we;for(de=0;de<=c;de++)Ee[de]=0;for(le=0;le<=143;)T[2*le+1]=8,le++,Ee[8]++;for(;le<=255;)T[2*le+1]=9,le++,Ee[9]++;for(;le<=279;)T[2*le+1]=7,le++,Ee[7]++;for(;le<=287;)T[2*le+1]=8,le++,Ee[8]++;for(Y(T,u+1,Ee),le=0;le<e;le++)C[2*le+1]=5,C[2*le]=Z(le,5);k=new U(T,x,r+1,u,c),R=new U(C,b,0,e,c),B=new U(new Array(0),w,0,n,h)}(),We=!0),J.l_desc=new j(J.dyn_ltree,k),J.d_desc=new j(J.dyn_dtree,R),J.bl_desc=new j(J.bl_tree,B),J.bi_buf=0,J.bi_valid=0,Q(J)},o._tr_stored_block=$,o._tr_flush_block=function(J,le,de,Ne){var we,De,Ee=0;0<J.level?(J.strm.data_type===2&&(J.strm.data_type=function(ce){var ne,ee=4093624447;for(ne=0;ne<=31;ne++,ee>>>=1)if(1&ee&&ce.dyn_ltree[2*ne]!==0)return f;if(ce.dyn_ltree[18]!==0||ce.dyn_ltree[20]!==0||ce.dyn_ltree[26]!==0)return s;for(ne=32;ne<r;ne++)if(ce.dyn_ltree[2*ne]!==0)return s;return f}(J)),Ie(J,J.l_desc),Ie(J,J.d_desc),Ee=function(ce){var ne;for(X(ce,ce.dyn_ltree,ce.l_desc.max_code),X(ce,ce.dyn_dtree,ce.d_desc.max_code),Ie(ce,ce.bl_desc),ne=n-1;3<=ne&&ce.bl_tree[2*S[ne]+1]===0;ne--);return ce.opt_len+=3*(ne+1)+5+5+4,ne}(J),we=J.opt_len+3+7>>>3,(De=J.static_len+3+7>>>3)<=we&&(we=De)):we=De=de+5,de+4<=we&&le!==-1?$(J,le,de,Ne):J.strategy===4||De===we?(G(J,2+(Ne?1:0),3),me(J,T,C)):(G(J,4+(Ne?1:0),3),function(ce,ne,ee,Ae){var Ve;for(G(ce,ne-257,5),G(ce,ee-1,5),G(ce,Ae-4,4),Ve=0;Ve<Ae;Ve++)G(ce,ce.bl_tree[2*S[Ve]+1],3);q(ce,ce.dyn_ltree,ne-1),q(ce,ce.dyn_dtree,ee-1)}(J,J.l_desc.max_code+1,J.d_desc.max_code+1,Ee+1),me(J,J.dyn_ltree,J.dyn_dtree)),Q(J),Ne&&oe(J)},o._tr_tally=function(J,le,de){return J.pending_buf[J.d_buf+2*J.last_lit]=le>>>8&255,J.pending_buf[J.d_buf+2*J.last_lit+1]=255&le,J.pending_buf[J.l_buf+J.last_lit]=255&de,J.last_lit++,le===0?J.dyn_ltree[2*de]++:(J.matches++,le--,J.dyn_ltree[2*(_[de]+r+1)]++,J.dyn_dtree[2*H(le)]++),J.last_lit===J.lit_bufsize-1},o._tr_align=function(J){G(J,2,3),V(J,p,T),function(le){le.bi_valid===16?(W(le,le.bi_buf),le.bi_buf=0,le.bi_valid=0):8<=le.bi_valid&&(le.pending_buf[le.pending++]=255&le.bi_buf,le.bi_buf>>=8,le.bi_valid-=8)}(J)}},{"../utils/common":41}],53:[function(E,I,o){"use strict";I.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(E,I,o){"use strict";I.exports=typeof setImmediate=="function"?setImmediate:function(){var m=[].slice.apply(arguments);m.splice(1,0,0),setTimeout.apply(null,m)}},{}]},{},[10])(10)})}).call(this,y("HDXh").Buffer,y("yLpj"))},xRUu:function(fe,z,y){y("hJvP"),y("hFmY"),y("sAZ8")},xSIq:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var D={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"};z.default=D},xSat:function(fe,z){var y={axisPointer:1,tooltip:1,brush:1};function D(N,L,E){var I=L.getComponentByElement(N.topTarget),o=I&&I.coordinateSystem;return I&&I!==E&&!y[I.mainType]&&o&&o.model!==E}z.onIrrelevantElement=D},xTNl:function(fe,z){var y=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],D={color:y,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],y]};fe.exports=D},xb2K:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("5yev")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="RedoOutlined";var f=E.forwardRef(m);z.default=f},xiyX:function(fe,z,y){var D=y("bYtY"),N=y("bLfw"),L=y("nkfE"),E=y("ICMv"),I=N.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),o={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 m(s,t){return t.type||(t.data?"category":"value")}D.merge(I.prototype,E),L("single",I,m,o);var f=I;fe.exports=f},xlC8:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=D;function D(N,L,E,I){for(var o=N&65535|0,m=N>>>16&65535|0,f=0;E!==0;){f=E>2e3?2e3:E,E-=f;do o=o+L[I++]|0,m=m+o|0;while(--f);o%=65521,m%=65521}return o|m<<16|0}},xvlK:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="PlusOutlined";var m=z.a=N.forwardRef(o)},xzDV:function(fe,z,y){},"y+Vt":function(fe,z,y){var D=y("Gev7"),N=y("bYtY"),L=y("IMiH"),E=y("2DNl"),I=y("3C/r"),o=I.prototype.getCanvasPattern,m=Math.abs,f=new L(!0);function s(l){D.call(this,l),this.path=null}s.prototype={constructor:s,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(a,r){var u=this.style,e=this.path||f,n=u.hasStroke(),i=u.hasFill(),c=u.fill,d=u.stroke,h=i&&!!c.colorStops,p=n&&!!d.colorStops,g=i&&!!c.image,v=n&&!!d.image;if(u.bind(a,this,r),this.setTransform(a),this.__dirty){var A;h&&(A=A||this.getBoundingRect(),this._fillGradient=u.getGradient(a,c,A)),p&&(A=A||this.getBoundingRect(),this._strokeGradient=u.getGradient(a,d,A))}h?a.fillStyle=this._fillGradient:g&&(a.fillStyle=o.call(c,a)),p?a.strokeStyle=this._strokeGradient:v&&(a.strokeStyle=o.call(d,a));var x=u.lineDash,b=u.lineDashOffset,w=!!a.setLineDash,S=this.getGlobalScale();if(e.setScale(S[0],S[1],this.segmentIgnoreThreshold),this.__dirtyPath||x&&!w&&n?(e.beginPath(a),x&&!w&&(e.setLineDash(x),e.setLineDashOffset(b)),this.buildPath(e,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),i)if(u.fillOpacity!=null){var T=a.globalAlpha;a.globalAlpha=u.fillOpacity*u.opacity,e.fill(a),a.globalAlpha=T}else e.fill(a);if(x&&w&&(a.setLineDash(x),a.lineDashOffset=b),n)if(u.strokeOpacity!=null){var T=a.globalAlpha;a.globalAlpha=u.strokeOpacity*u.opacity,e.stroke(a),a.globalAlpha=T}else e.stroke(a);x&&w&&a.setLineDash([]),u.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,r,u){},createPathProxy:function(){this.path=new L},getBoundingRect:function(){var a=this._rect,r=this.style,u=!a;if(u){var e=this.path;e||(e=this.path=new L),this.__dirtyPath&&(e.beginPath(),this.buildPath(e,this.shape,!1)),a=e.getBoundingRect()}if(this._rect=a,r.hasStroke()){var n=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||u){n.copy(a);var i=r.lineWidth,c=r.strokeNoScale?this.getLineScale():1;r.hasFill()||(i=Math.max(i,this.strokeContainThreshold||4)),c>1e-10&&(n.width+=i/c,n.height+=i/c,n.x-=i/c/2,n.y-=i/c/2)}return n}return a},contain:function(a,r){var u=this.transformCoordToLocal(a,r),e=this.getBoundingRect(),n=this.style;if(a=u[0],r=u[1],e.contain(a,r)){var i=this.path.data;if(n.hasStroke()){var c=n.lineWidth,d=n.strokeNoScale?this.getLineScale():1;if(d>1e-10&&(n.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),E.containStroke(i,c/d,a,r)))return!0}if(n.hasFill())return E.contain(i,a,r)}return!1},dirty:function(a){a==null&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,r){a==="shape"?(this.setShape(r),this.__dirtyPath=!0,this._rect=null):D.prototype.attrKV.call(this,a,r)},setShape:function(a,r){var u=this.shape;if(u){if(N.isObject(a))for(var e in a)a.hasOwnProperty(e)&&(u[e]=a[e]);else u[a]=r;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&m(a[0]-1)>1e-10&&m(a[3]-1)>1e-10?Math.sqrt(m(a[0]*a[3]-a[2]*a[1])):1}},s.extend=function(l){var a=function(e){s.call(this,e),l.style&&this.style.extendFrom(l.style,!1);var n=l.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var c in n)!i.hasOwnProperty(c)&&n.hasOwnProperty(c)&&(i[c]=n[c])}l.init&&l.init.call(this,e)};N.inherits(a,s);for(var r in l)r!=="style"&&r!=="shape"&&(a.prototype[r]=l[r]);return a},N.inherits(s,D);var t=s;fe.exports=t},"y+lR":function(fe,z,y){var D=y("bYtY"),N=y("mFDi"),L=y("z35g");function E(o){L.call(this,o)}E.prototype={constructor:E,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(o){var m=this.getAxis("x"),f=this.getAxis("y");return m.contain(m.toLocalCoord(o[0]))&&f.contain(f.toLocalCoord(o[1]))},containData:function(o){return this.getAxis("x").containData(o[0])&&this.getAxis("y").containData(o[1])},dataToPoint:function(o,m,f){var s=this.getAxis("x"),t=this.getAxis("y");return f=f||[],f[0]=s.toGlobalCoord(s.dataToCoord(o[0])),f[1]=t.toGlobalCoord(t.dataToCoord(o[1])),f},clampData:function(o,m){var f=this.getAxis("x").scale,s=this.getAxis("y").scale,t=f.getExtent(),l=s.getExtent(),a=f.parse(o[0]),r=s.parse(o[1]);return m=m||[],m[0]=Math.min(Math.max(Math.min(t[0],t[1]),a),Math.max(t[0],t[1])),m[1]=Math.min(Math.max(Math.min(l[0],l[1]),r),Math.max(l[0],l[1])),m},pointToData:function(o,m){var f=this.getAxis("x"),s=this.getAxis("y");return m=m||[],m[0]=f.coordToData(f.toLocalCoord(o[0])),m[1]=s.coordToData(s.toLocalCoord(o[1])),m},getOtherAxis:function(o){return this.getAxis(o.dim==="x"?"y":"x")},getArea:function(){var o=this.getAxis("x").getGlobalExtent(),m=this.getAxis("y").getGlobalExtent(),f=Math.min(o[0],o[1]),s=Math.min(m[0],m[1]),t=Math.max(o[0],o[1])-f,l=Math.max(m[0],m[1])-s,a=new N(f,s,t,l);return a}},D.inherits(E,L);var I=E;fe.exports=I},"y0+3":function(fe,z,y){"use strict";y.d(z,"a",function(){return l}),y.d(z,"b",function(){return r});var D=/margin|padding|width|height|max|min|offset/,N={left:!0,top:!0},L={cssFloat:1,styleFloat:1,float:1};function E(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function I(u,e,n){if(e=e.toLowerCase(),n==="auto"){if(e==="height")return u.offsetHeight;if(e==="width")return u.offsetWidth}return e in N||(N[e]=D.test(e)),N[e]?parseFloat(n)||0:n}function o(u,e){var n=arguments.length,i=E(u);return e=L[e]?"cssFloat"in u.style?"cssFloat":"styleFloat":e,n===1?i:I(u,e,i[e]||u.style[e])}function m(u,e,n){var i=arguments.length;if(e=L[e]?"cssFloat"in u.style?"cssFloat":"styleFloat":e,i===3)return typeof n=="number"&&D.test(e)&&(n="".concat(n,"px")),u.style[e]=n,n;for(var c in e)e.hasOwnProperty(c)&&m(u,c,e[c]);return E(u)}function f(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function s(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function t(){var u=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:u,height:e}}function l(){var u=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:u,height:e}}function a(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function r(u){var e=u.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}},y23F:function(fe,z){function y(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}y.prototype={constructor:y,_dragStart:function(E){for(var I=E.target;I&&!I.draggable;)I=I.parent;I&&(this._draggingTarget=I,I.dragging=!0,this._x=E.offsetX,this._y=E.offsetY,this.dispatchToElement(D(I,E),"dragstart",E.event))},_drag:function(E){var I=this._draggingTarget;if(I){var o=E.offsetX,m=E.offsetY,f=o-this._x,s=m-this._y;this._x=o,this._y=m,I.drift(f,s,E),this.dispatchToElement(D(I,E),"drag",E.event);var t=this.findHover(o,m,I).target,l=this._dropTarget;this._dropTarget=t,I!==t&&(l&&t!==l&&this.dispatchToElement(D(l,E),"dragleave",E.event),t&&t!==l&&this.dispatchToElement(D(t,E),"dragenter",E.event))}},_dragEnd:function(E){var I=this._draggingTarget;I&&(I.dragging=!1),this.dispatchToElement(D(I,E),"dragend",E.event),this._dropTarget&&this.dispatchToElement(D(this._dropTarget,E),"drop",E.event),this._draggingTarget=null,this._dropTarget=null}};function D(L,E){return{target:L,topTarget:E&&E.topTarget}}var N=y;fe.exports=N},y2l5:function(fe,z,y){var D=y("MwEJ"),N=y("T4UG"),L=N.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(E,I){return D(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var E=this.option.progressive;return E==null?this.option.large?5e3:this.get("progressive"):E},getProgressiveThreshold:function(){var E=this.option.progressiveThreshold;return E==null?this.option.large?1e4:this.get("progressiveThreshold"):E},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});fe.exports=L},y3Kf:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="UpOutlined";var m=z.a=N.forwardRef(o)},y3NT:function(fe,z,y){var D=y("OELB"),N=D.parsePercent,L=y("bYtY"),E=Math.PI/180;function I(f,s,t,l){s.eachSeriesByType(f,function(a){var r=a.get("center"),u=a.get("radius");L.isArray(u)||(u=[0,u]),L.isArray(r)||(r=[r,r]);var e=t.getWidth(),n=t.getHeight(),i=Math.min(e,n),c=N(r[0],e),d=N(r[1],n),h=N(u[0],i/2),p=N(u[1],i/2),g=-a.get("startAngle")*E,v=a.get("minAngle")*E,A=a.getData().tree.root,x=a.getViewRoot(),b=x.depth,w=a.get("sort");w!=null&&o(x,w);var S=0;L.each(x.children,function(W){!isNaN(W.getValue())&&S++});var T=x.getValue(),C=Math.PI/(T||S)*2,O=x.depth>0,_=x.height-(O?-1:1),M=(p-h)/(_||1),k=a.get("clockwise"),R=a.get("stillShowZeroSum"),B=k?1:-1,P=function(W,G){if(!W)return;var V=G;if(W!==A){var Z=W.getValue(),Y=T===0&&R?C:Z*C;Y<v&&(Y=v),V=G+B*Y;var Q=W.depth-b-(O?-1:1),oe=h+M*Q,ue=h+M*(Q+1),Le=W.getModel();Le.get("r0")!=null&&(oe=N(Le.get("r0"),i/2)),Le.get("r")!=null&&(ue=N(Le.get("r"),i/2)),W.setLayout({angle:Y,startAngle:G,endAngle:V,clockwise:k,cx:c,cy:d,r0:oe,r:ue})}if(W.children&&W.children.length){var me=0;L.each(W.children,function(Ie){me+=P(Ie,G+me)})}return V-G};if(O){var U=h,j=h+M,H=Math.PI*2;A.setLayout({angle:H,startAngle:g,endAngle:g+H,clockwise:k,cx:c,cy:d,r0:U,r:j})}P(x,g)})}function o(f,s){var t=f.children||[];f.children=m(t,s),t.length&&L.each(f.children,function(l){o(l,s)})}function m(f,s){if(typeof s=="function")return f.sort(s);var t=s==="asc";return f.sort(function(l,a){var r=(l.getValue()-a.getValue())*(t?1:-1);return r===0?(l.dataIndex-a.dataIndex)*(t?-1:1):r})}fe.exports=I},y3Yb:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("HBhm")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="PaperClipOutlined";var f=E.forwardRef(m);z.default=f},"y4/Y":function(fe,z,y){var D=y("ProS"),N=y("bYtY"),L=y("zTMp"),E=y("62sa");y("SKx+"),y("1LEl"),y("Sp2Z"),D.registerPreprocessor(function(I){if(I){(!I.axisPointer||I.axisPointer.length===0)&&(I.axisPointer={});var o=I.axisPointer.link;o&&!N.isArray(o)&&(I.axisPointer.link=[o])}}),D.registerProcessor(D.PRIORITY.PROCESSOR.STATISTIC,function(I,o){I.getComponent("axisPointer").coordSysAxesInfo=L.collect(I,o)}),D.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},E)},y7Aq:function(fe,z,y){var D=y("bYtY"),N=y("+TT/"),L=N.getLayoutRect;function E(o,m,f){var s=o.option,t=s.align;if(t!=null&&t!=="auto")return t;for(var l={width:m.getWidth(),height:m.getHeight()},a=s.orient==="horizontal"?1:0,r=[["left","right","width"],["top","bottom","height"]],u=r[a],e=[0,null,10],n={},i=0;i<3;i++)n[r[1-a][i]]=e[i],n[u[i]]=i===2?f[0]:s[u[i]];var c=[["x","width",3],["y","height",0]][a],d=L(n,l,s.padding);return u[(d.margin[c[2]]||0)+d[c[0]]+d[c[1]]*.5<l[c[1]]*.5?0:1]}function I(o,m){return D.each(o||[],function(f){f.dataIndex!=null&&(f.dataIndexInside=f.dataIndex,f.dataIndex=null),f.highlightKey="visualMap"+(m?m.componentIndex:"")}),o}z.getItemAlign=E,z.makeHighDownBatch=I},y8nQ:function(fe,z,y){"use strict";var D=y("cIOH"),N=y.n(D),L=y("gwTy"),E=y.n(L),I=y("1GLa")},yEEn:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="ArrowDownOutlined";var m=z.a=N.forwardRef(o)},yO87:function(fe,z,y){var D=y("bYtY"),N=y("oVpE"),L=N.createSymbol,E=y("IwbS"),I=E.Group,o=y("OELB"),m=o.parsePercent,f=y("FBjb"),s=3;function t(e){return D.isArray(e)||(e=[+e,+e]),e}function l(e,n){var i=n.rippleEffectColor||n.color;e.eachChild(function(c){c.attr({z:n.z,zlevel:n.zlevel,style:{stroke:n.brushType==="stroke"?i:null,fill:n.brushType==="fill"?i:null}})})}function a(e,n){I.call(this);var i=new f(e,n),c=new I;this.add(i),this.add(c),c.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(e,n)}var r=a.prototype;r.stopEffectAnimation=function(){this.childAt(1).removeAll()},r.startEffectAnimation=function(e){for(var n=e.symbolType,i=e.color,c=this.childAt(1),d=0;d<s;d++){var h=L(n,-1,-1,2,2,i);h.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var p=-d/s*e.period+e.effectOffset;h.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(p).start(),h.animateStyle(!0).when(e.period,{opacity:0}).delay(p).start(),c.add(h)}l(c,e)},r.updateEffectAnimation=function(e){for(var n=this._effectCfg,i=this.childAt(1),c=["symbolType","period","rippleScale"],d=0;d<c.length;d++){var h=c[d];if(n[h]!==e[h]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}l(i,e)},r.highlight=function(){this.trigger("emphasis")},r.downplay=function(){this.trigger("normal")},r.updateData=function(e,n){var i=e.hostModel;this.childAt(0).updateData(e,n);var c=this.childAt(1),d=e.getItemModel(n),h=e.getItemVisual(n,"symbol"),p=t(e.getItemVisual(n,"symbolSize")),g=e.getItemVisual(n,"color");c.attr("scale",p),c.traverse(function(C){C.attr({fill:g})});var v=d.getShallow("symbolOffset");if(v){var A=c.position;A[0]=m(v[0],p[0]),A[1]=m(v[1],p[1])}var x=e.getItemVisual(n,"symbolRotate");c.rotation=(x||0)*Math.PI/180||0;var b={};if(b.showEffectOn=i.get("showEffectOn"),b.rippleScale=d.get("rippleEffect.scale"),b.brushType=d.get("rippleEffect.brushType"),b.period=d.get("rippleEffect.period")*1e3,b.effectOffset=n/e.count(),b.z=d.getShallow("z")||0,b.zlevel=d.getShallow("zlevel")||0,b.symbolType=h,b.color=g,b.rippleEffectColor=d.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),b.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(b):this.startEffectAnimation(b),this._effectCfg=b;else{this._effectCfg=null,this.stopEffectAnimation();var w=this.childAt(0),S=function(){w.highlight(),b.showEffectOn!=="render"&&this.startEffectAnimation(b)},T=function(){w.downplay(),b.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",S,this).on("mouseout",T,this).on("emphasis",S,this).on("normal",T,this)}this._effectCfg=b},r.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},D.inherits(a,I);var u=a;fe.exports=u},yS9w:function(fe,z,y){var D=y("MEGo"),N=D.parseSVG,L=D.makeViewBoxTransform,E=y("4fz+"),I=y("x6Kt"),o=y("bYtY"),m=o.assert,f=o.createHashMap,s=y("mFDi"),t=y("4NO4"),l=t.makeInner,a=l(),r={load:function(e,n){var i=a(n).originRoot;if(i)return{root:i,boundingRect:a(n).boundingRect};var c=u(n);return a(n).originRoot=c.root,a(n).boundingRect=c.boundingRect,c},makeGraphic:function(e,n,i){var c=a(n),d=c.rootMap||(c.rootMap=f()),h=d.get(i);if(h)return h;var p=c.originRoot,g=c.boundingRect;return c.originRootHostKey?h=u(n,g).root:(c.originRootHostKey=i,h=p),d.set(i,h)},removeGraphic:function(e,n,i){var c=a(n),d=c.rootMap;d&&d.removeKey(i),i===c.originRootHostKey&&(c.originRootHostKey=null)}};function u(e,n){var i=e.svgXML,c,d;try{c=i&&N(i,{ignoreViewBox:!0,ignoreRootClip:!0})||{},d=c.root,m(d!=null)}catch(x){throw new Error(`Invalid svg format
|
|
|
`+x.message)}var h=c.width,p=c.height,g=c.viewBoxRect;if(n||(n=h==null||p==null?d.getBoundingRect():new s(0,0,0,0),h!=null&&(n.width=h),p!=null&&(n.height=p)),g){var v=L(g,n.width,n.height),A=d;d=new E,d.add(A),A.scale=v.scale,A.position=v.position}return d.setClipPath(new I({shape:n.plain()})),{root:d,boundingRect:n}}fe.exports=r},yWXo:function(fe,z,y){var D=y("IwbS"),N=y("oVpE"),L=N.createSymbol,E=y("OS9S"),I=4,o=D.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(t,l){var a=l.points,r=l.size,u=this.symbolProxy,e=u.shape,n=t.getContext?t.getContext():t,i=n&&r[0]<I;if(i)return;for(var c=0;c<a.length;){var d=a[c++],h=a[c++];if(isNaN(d)||isNaN(h))continue;if(this.softClipShape&&!this.softClipShape.contain(d,h))continue;e.x=d-r[0]/2,e.y=h-r[1]/2,e.width=r[0],e.height=r[1],u.buildPath(t,e,!0)}},afterBrush:function(t){var l=this.shape,a=l.points,r=l.size,u=r[0]<I;if(!u)return;this.setTransform(t);for(var e=0;e<a.length;){var n=a[e++],i=a[e++];if(isNaN(n)||isNaN(i))continue;if(this.softClipShape&&!this.softClipShape.contain(n,i))continue;t.fillRect(n-r[0]/2,i-r[1]/2,r[0],r[1])}this.restoreTransform(t)},findDataIndex:function(t,l){for(var a=this.shape,r=a.points,u=a.size,e=Math.max(u[0],4),n=Math.max(u[1],4),i=r.length/2-1;i>=0;i--){var c=i*2,d=r[c]-e/2,h=r[c+1]-n/2;if(t>=d&&l>=h&&t<=d+e&&l<=h+n)return i}return-1}});function m(){this.group=new D.Group}var f=m.prototype;f.isPersistent=function(){return!this._incremental},f.updateData=function(t,l){this.group.removeAll();var a=new o({rectHover:!0,cursor:"default"});a.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(a,t,!1,l),this.group.add(a),this._incremental=null},f.updateLayout=function(t){if(this._incremental)return;var l=t.getLayout("symbolPoints");this.group.eachChild(function(a){if(a.startIndex!=null){var r=(a.endIndex-a.startIndex)*2,u=a.startIndex*4*2;l=new Float32Array(l.buffer,u,r)}a.setShape("points",l)})},f.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new E({silent:!0})),this.group.add(this._incremental)):this._incremental=null},f.incrementalUpdate=function(t,l,a){var r;this._incremental?(r=new o,this._incremental.addDisplayable(r,!0)):(r=new o({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end}),r.incremental=!0,this.group.add(r)),r.setShape({points:l.getLayout("symbolPoints")}),this._setCommon(r,l,!!this._incremental,a)},f._setCommon=function(t,l,a,r){var u=l.hostModel;r=r||{};var e=l.getVisual("symbolSize");t.setShape("size",e instanceof Array?e:[e,e]),t.softClipShape=r.clipShape||null,t.symbolProxy=L(l.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var n=t.shape.size[0]<I;t.useStyle(u.getModel("itemStyle").getItemStyle(n?["color","shadowBlur","shadowColor"]:["color"]));var i=l.getVisual("color");i&&t.setColor(i),a||(t.seriesIndex=u.seriesIndex,t.on("mousemove",function(c){t.dataIndex=null;var d=t.findDataIndex(c.offsetX,c.offsetY);d>=0&&(t.dataIndex=d+(t.startIndex||0))}))},f.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},f._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var s=m;fe.exports=s},ycre:function(fe,z,y){var D=y("711d"),N=D("length");fe.exports=N},ye1Q:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="LoadingOutlined";var m=z.a=N.forwardRef(o)},ygfH:function(fe,z,y){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var D={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"};z.default=D},yik8:function(fe,z,y){var D=y("bZqE"),N=D.eachAfter,L=D.eachBefore,E=y("Itpr"),I=E.init,o=E.firstWalk,m=E.secondWalk,f=E.separation,s=E.radialCoordinate,t=E.getViewRect;function l(r,u){r.eachSeriesByType("tree",function(e){a(e,u)})}function a(r,u){var e=t(r,u);r.layoutInfo=e;var n=r.get("layout"),i=0,c=0,d=null;n==="radial"?(i=2*Math.PI,c=Math.min(e.height,e.width)/2,d=f(function(_,M){return(_.parentNode===M.parentNode?1:2)/_.depth})):(i=e.width,c=e.height,d=f());var h=r.getData().tree.root,p=h.children[0];if(p){I(h),N(p,o,d),h.hierNode.modifier=-p.hierNode.prelim,L(p,m);var g=p,v=p,A=p;L(p,function(_){var M=_.getLayout().x;M<g.getLayout().x&&(g=_),M>v.getLayout().x&&(v=_),_.depth>A.depth&&(A=_)});var x=g===v?1:d(g,v)/2,b=x-g.getLayout().x,w=0,S=0,T=0,C=0;if(n==="radial")w=i/(v.getLayout().x+x+b),S=c/(A.depth-1||1),L(p,function(_){T=(_.getLayout().x+b)*w,C=(_.depth-1)*S;var M=s(T,C);_.setLayout({x:M.x,y:M.y,rawX:T,rawY:C},!0)});else{var O=r.getOrient();O==="RL"||O==="LR"?(S=c/(v.getLayout().x+x+b),w=i/(A.depth-1||1),L(p,function(_){C=(_.getLayout().x+b)*S,T=O==="LR"?(_.depth-1)*w:i-(_.depth-1)*w,_.setLayout({x:T,y:C},!0)})):(O==="TB"||O==="BT")&&(w=i/(v.getLayout().x+x+b),S=c/(A.depth-1||1),L(p,function(_){T=(_.getLayout().x+b)*w,C=O==="TB"?(_.depth-1)*S:c-(_.depth-1)*S,_.setLayout({x:T,y:C},!0)}))}}}fe.exports=l},ynwM:function(fe,z,y){var D=y("MFOe"),N=D.Global;fe.exports={name:"oldFF-globalStorage",read:E,write:I,each:o,remove:m,clearAll:f};var L=N.globalStorage;function E(s){return L[s]}function I(s,t){L[s]=t}function o(s){for(var t=L.length-1;t>=0;t--){var l=L.key(t);s(L[l],l)}}function m(s){return L.removeItem(s)}function f(){o(function(s,t){delete L[s]})}},ypgQ:function(fe,z,y){var D=y("bYtY"),N=y("4NO4"),L=y("bLfw"),E=D.each,I=D.clone,o=D.map,m=D.merge,f=/^(min|max)?(.+)$/;function s(n){this._api=n,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}s.prototype={constructor:s,setOption:function(n,i){n&&D.each(N.normalizeToArray(n.series),function(h){h&&h.data&&D.isTypedArray(h.data)&&D.setAsPrimitive(h.data)}),n=I(n);var c=this._optionBackup,d=t.call(this,n,i,!c);this._newBaseOption=d.baseOption,c?(u(c.baseOption,d.baseOption),d.timelineOptions.length&&(c.timelineOptions=d.timelineOptions),d.mediaList.length&&(c.mediaList=d.mediaList),d.mediaDefault&&(c.mediaDefault=d.mediaDefault)):this._optionBackup=d},mountOption:function(n){var i=this._optionBackup;return this._timelineOptions=o(i.timelineOptions,I),this._mediaList=o(i.mediaList,I),this._mediaDefault=I(i.mediaDefault),this._currentMediaIndices=[],I(n?i.baseOption:this._newBaseOption)},getTimelineOption:function(n){var i,c=this._timelineOptions;if(c.length){var d=n.getComponent("timeline");d&&(i=I(c[d.getCurrentIndex()],!0))}return i},getMediaOption:function(n){var i=this._api.getWidth(),c=this._api.getHeight(),d=this._mediaList,h=this._mediaDefault,p=[],g=[];if(!d.length&&!h)return g;for(var v=0,A=d.length;v<A;v++)l(d[v].query,i,c)&&p.push(v);return!p.length&&h&&(p=[-1]),p.length&&!r(p,this._currentMediaIndices)&&(g=o(p,function(x){return I(x===-1?h.option:d[x].option)})),this._currentMediaIndices=p,g}};function t(n,i,c){var d=[],h=[],p,g,v=n.timeline;if(n.baseOption&&(g=n.baseOption),(v||n.options)&&(g=g||{},d=(n.options||[]).slice()),n.media){g=g||{};var A=n.media;E(A,function(x){x&&x.option&&(x.query?h.push(x):p||(p=x))})}return g||(g=n),g.timeline||(g.timeline=v),E([g].concat(d).concat(D.map(h,function(x){return x.option})),function(x){E(i,function(b){b(x,c)})}),{baseOption:g,timelineOptions:d,mediaDefault:p,mediaList:h}}function l(n,i,c){var d={width:i,height:c,aspectratio:i/c},h=!0;return D.each(n,function(p,g){var v=g.match(f);if(!v||!v[1]||!v[2])return;var A=v[1],x=v[2].toLowerCase();a(d[x],p,A)||(h=!1)}),h}function a(n,i,c){return c==="min"?n>=i:c==="max"?n<=i:n===i}function r(n,i){return n.join(",")===i.join(",")}function u(n,i){i=i||{},E(i,function(c,d){if(c==null)return;var h=n[d];if(!L.hasClass(d))n[d]=m(h,c,!0);else{c=N.normalizeToArray(c),h=N.normalizeToArray(h);var p=N.mappingToExists(h,c);n[d]=o(p,function(g){return g.option&&g.exist?m(g.exist,g.option,!0):g.exist||g.option})}})}var e=s;fe.exports=e},yxFR:function(fe,z,y){var D=y("y+Vt"),N=y("nPnh"),L=N.subPixelOptimizeLine,E={},I=D.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(m,f){var s,t,l,a;this.subPixelOptimize?(L(E,f,this.style),s=E.x1,t=E.y1,l=E.x2,a=E.y2):(s=f.x1,t=f.y1,l=f.x2,a=f.y2);var r=f.percent;if(r===0)return;m.moveTo(s,t),r<1&&(l=s*(1-r)+l*r,a=t*(1-r)+a*r),m.lineTo(l,a)},pointAt:function(m){var f=this.shape;return[f.x1*(1-m)+f.x2*m,f.y1*(1-m)+f.y2*m]}});fe.exports=I},z35g:function(fe,z,y){var D=y("bYtY");function N(I){return this._axes[I]}var L=function(I){this._axes={},this._dimList=[],this.name=I||""};L.prototype={constructor:L,type:"cartesian",getAxis:function(I){return this._axes[I]},getAxes:function(){return D.map(this._dimList,N,this)},getAxesByScale:function(I){return I=I.toLowerCase(),D.filter(this.getAxes(),function(o){return o.scale.type===I})},addAxis:function(I){var o=I.dim;this._axes[o]=I,this._dimList.push(o)},dataToCoord:function(I){return this._dataCoordConvert(I,"dataToCoord")},coordToData:function(I){return this._dataCoordConvert(I,"coordToData")},_dataCoordConvert:function(I,o){for(var m=this._dimList,f=I instanceof Array?[]:{},s=0;s<m.length;s++){var t=m[s],l=this._axes[t];f[t]=l[o](I[t])}return f}};var E=L;fe.exports=E},z7Xi:function(fe,z,y){"use strict";var D=y("VTBJ"),N=y("q1tI"),L={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"},E=L,I=y("6VBw"),o=function(s,t){return N.createElement(I.a,Object(D.a)(Object(D.a)({},s),{},{ref:t,icon:E}))};o.displayName="UploadOutlined";var m=z.a=N.forwardRef(o)},zAh6:function(fe,z,y){"use strict";y.d(z,"a",function(){return I});var D=y("xEkU"),N=y.n(D),L=y("i6bk");function E(o,m,f,s){var t=f-m;return o/=s/2,o<1?t/2*o*o*o+m:t/2*((o-=2)*o*o+2)+m}function I(o){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=m.getContainer,s=f===void 0?function(){return window}:f,t=m.callback,l=m.duration,a=l===void 0?450:l,r=s(),u=Object(L.a)(r,!0),e=Date.now(),n=function i(){var c=Date.now(),d=c-e,h=E(d>a?a:d,u,o,a);Object(L.b)(r)?r.scrollTo(window.pageXOffset,h):r instanceof HTMLDocument||r.constructor.name==="HTMLDocument"?r.documentElement.scrollTop=h:r.scrollTop=h,d<a?N()(i):typeof t=="function"&&t()};N()(n)}},zDms:function(fe,z,y){var D=y("bYtY"),N=y("OELB"),L=y("UOVi"),E=y("72pK"),I=D.each,o=N.asc,m=function(r,u,e,n){this._dimName=r,this._axisIndex=u,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=e};m.prototype={constructor:m,hostedBy:function(r){return this._dataZoomModel===r},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var r=[],u=this.ecModel;return u.eachSeries(function(e){if(L.isCoordSupported(e.get("coordinateSystem"))){var n=this._dimName,i=u.queryComponents({mainType:n+"Axis",index:e.get(n+"AxisIndex"),id:e.get(n+"AxisId")})[0];this._axisIndex===(i&&i.componentIndex)&&r.push(e)}},this),r},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var r=this._dimName,u=this.ecModel,e=this.getAxisModel(),n=r==="x"||r==="y",i,c;n?(c="gridIndex",i=r==="x"?"y":"x"):(c="polarIndex",i=r==="angle"?"radius":"angle");var d;return u.eachComponent(i+"Axis",function(h){(h.get(c)||0)===(e.get(c)||0)&&(d=h)}),d},getMinMaxSpan:function(){return D.clone(this._minMaxSpan)},calculateDataWindow:function(r){var u=this._dataExtent,e=this.getAxisModel(),n=e.axis.scale,i=this._dataZoomModel.getRangePropMode(),c=[0,100],d=[],h=[],p;I(["start","end"],function(A,x){var b=r[A],w=r[A+"Value"];i[x]==="percent"?(b==null&&(b=c[x]),w=n.parse(N.linearMap(b,c,u))):(p=!0,w=w==null?u[x]:n.parse(w),b=N.linearMap(w,u,c)),h[x]=w,d[x]=b}),o(h),o(d);var g=this._minMaxSpan;p?v(h,d,u,c,!1):v(d,h,c,u,!0);function v(A,x,b,w,S){var T=S?"Span":"ValueSpan";E(0,A,b,"all",g["min"+T],g["max"+T]);for(var C=0;C<2;C++)x[C]=N.linearMap(A[C],b,w,!0),S&&(x[C]=n.parse(x[C]))}return{valueWindow:h,percentWindow:d}},reset:function(r){if(r!==this._dataZoomModel)return;var u=this.getTargetSeriesModels();this._dataExtent=f(this,this._dimName,u),l(this);var e=this.calculateDataWindow(r.settledOption);this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,t(this)},restore:function(r){if(r!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,t(this,!0)},filterData:function(r,u){if(r!==this._dataZoomModel)return;var e=this._dimName,n=this.getTargetSeriesModels(),i=r.get("filterMode"),c=this._valueWindow;if(i==="none")return;I(n,function(h){var p=h.getData(),g=p.mapDimension(e,!0);if(!g.length)return;i==="weakFilter"?p.filterSelf(function(v){for(var A,x,b,w=0;w<g.length;w++){var S=p.get(g[w],v),T=!isNaN(S),C=S<c[0],O=S>c[1];if(T&&!C&&!O)return!0;T&&(b=!0),C&&(A=!0),O&&(x=!0)}return b&&A&&x}):I(g,function(v){if(i==="empty")h.setData(p=p.map(v,function(x){return d(x)?x:NaN}));else{var A={};A[v]=c,p.selectRange(A)}}),I(g,function(v){p.setApproximateExtent(c,v)})});function d(h){return h>=c[0]&&h<=c[1]}}};function f(r,u,e){var n=[Infinity,-Infinity];return I(e,function(i){var c=i.getData();c&&I(c.mapDimension(u,!0),function(d){var h=c.getApproximateExtent(d);h[0]<n[0]&&(n[0]=h[0]),h[1]>n[1]&&(n[1]=h[1])})}),n[1]<n[0]&&(n=[NaN,NaN]),s(r,n),n}function s(r,u){var e=r.getAxisModel(),n=e.getMin(!0),i=e.get("type")==="category",c=i&&e.getCategories().length;n!=null&&n!=="dataMin"&&typeof n!="function"?u[0]=n:i&&(u[0]=c>0?0:NaN);var d=e.getMax(!0);return d!=null&&d!=="dataMax"&&typeof d!="function"?u[1]=d:i&&(u[1]=c>0?c-1:NaN),e.get("scale",!0)||(u[0]>0&&(u[0]=0),u[1]<0&&(u[1]=0)),u}function t(r,u){var e=r.getAxisModel(),n=r._percentWindow,i=r._valueWindow;if(!n)return;var c=N.getPixelPrecision(i,[0,500]);c=Math.min(c,20);var d=u||n[0]===0&&n[1]===100;e.setRange(d?null:+i[0].toFixed(c),d?null:+i[1].toFixed(c))}function l(r){var u=r._minMaxSpan={},e=r._dataZoomModel,n=r._dataExtent;I(["min","max"],function(i){var c=e.get(i+"Span"),d=e.get(i+"ValueSpan");d!=null&&(d=r.getAxisModel().axis.scale.parse(d)),d!=null?c=N.linearMap(n[0]+d,n,[0,100],!0):c!=null&&(d=N.linearMap(c,[0,100],n,!0)-n[0]),u[i+"Span"]=c,u[i+"ValueSpan"]=d})}var a=m;fe.exports=a},zM3Q:function(fe,z,y){var D=y("4NO4"),N=D.makeInner;function L(){var E=N();return function(I){var o=E(I),m=I.pipelineContext,f=o.large,s=o.progressiveRender,t=o.large=m&&m.large,l=o.progressiveRender=m&&m.progressiveRender;return!!(f^t||s^l)&&"reset"}}fe.exports=L},zRKj:function(fe,z,y){y("Ae16"),y("Sp2Z"),y("y4/Y")},zTMp:function(fe,z,y){var D=y("bYtY"),N=y("Qxkt"),L=D.each,E=D.curry;function I(n,i){var c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return o(c,n,i),c.seriesInvolved&&f(c,n),c}function o(n,i,c){var d=i.getComponent("tooltip"),h=i.getComponent("axisPointer"),p=h.get("link",!0)||[],g=[];L(c.getCoordinateSystems(),function(v){if(!v.axisPointerEnabled)return;var A=e(v.model),x=n.coordSysAxesInfo[A]={};n.coordSysMap[A]=v;var b=v.model,w=b.getModel("tooltip",d);if(L(v.getAxes(),E(O,!1,null)),v.getTooltipAxes&&d&&w.get("show")){var S=w.get("trigger")==="axis",T=w.get("axisPointer.type")==="cross",C=v.getTooltipAxes(w.get("axisPointer.axis"));(S||T)&&L(C.baseAxes,E(O,T?"cross":!0,S)),T&&L(C.otherAxes,E(O,"cross",!1))}function O(_,M,k){var R=k.model.getModel("axisPointer",h),B=R.get("show");if(!B||B==="auto"&&!_&&!u(R))return;M==null&&(M=R.get("triggerTooltip")),R=_?m(k,w,h,i,_,M):R;var P=R.get("snap"),U=e(k.model),j=M||P||k.type==="category",H=n.axesInfo[U]={key:U,axis:k,coordSys:v,axisPointerModel:R,triggerTooltip:M,involveSeries:j,snap:P,useHandle:u(R),seriesModels:[]};x[U]=H,n.seriesInvolved|=j;var W=s(p,k);if(W!=null){var G=g[W]||(g[W]={axesInfo:{}});G.axesInfo[U]=H,G.mapper=p[W].mapper,H.linkGroup=G}}})}function m(n,i,c,d,h,p){var g=i.getModel("axisPointer"),v={};L(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(w){v[w]=D.clone(g.get(w))}),v.snap=n.type!=="category"&&!!p,g.get("type")==="cross"&&(v.type="line");var A=v.label||(v.label={});if(A.show==null&&(A.show=!1),h==="cross"){var x=g.get("label.show");if(A.show=x!=null?x:!0,!p){var b=v.lineStyle=g.get("crossStyle");b&&D.defaults(A,b.textStyle)}}return n.model.getModel("axisPointer",new N(v,c,d))}function f(n,i){i.eachSeries(function(c){var d=c.coordinateSystem,h=c.get("tooltip.trigger",!0),p=c.get("tooltip.show",!0);if(!d||h==="none"||h===!1||h==="item"||p===!1||c.get("axisPointer.show",!0)===!1)return;L(n.coordSysAxesInfo[e(d.model)],function(g){var v=g.axis;d.getAxis(v.dim)===v&&(g.seriesModels.push(c),g.seriesDataCount==null&&(g.seriesDataCount=0),g.seriesDataCount+=c.getData().count())})},this)}function s(n,i){for(var c=i.model,d=i.dim,h=0;h<n.length;h++){var p=n[h]||{};if(t(p[d+"AxisId"],c.id)||t(p[d+"AxisIndex"],c.componentIndex)||t(p[d+"AxisName"],c.name))return h}}function t(n,i){return n==="all"||D.isArray(n)&&D.indexOf(n,i)>=0||n===i}function l(n){var i=a(n);if(!i)return;var c=i.axisPointerModel,d=i.axis.scale,h=c.option,p=c.get("status"),g=c.get("value");g!=null&&(g=d.parse(g));var v=u(c);p==null&&(h.status=v?"show":"hide");var A=d.getExtent().slice();A[0]>A[1]&&A.reverse(),(g==null||g>A[1])&&(g=A[1]),g<A[0]&&(g=A[0]),h.value=g,v&&(h.status=i.axis.scale.isBlank()?"hide":"show")}function a(n){var i=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return i&&i.axesInfo[e(n)]}function r(n){var i=a(n);return i&&i.axisPointerModel}function u(n){return!!n.get("handle.show")}function e(n){return n.type+"||"+n.id}z.collect=I,z.fixValue=l,z.getAxisInfo=a,z.getAxisPointerModel=r,z.makeKey=e},zYTA:function(fe,z,y){var D=y("bYtY"),N=256;function L(){var I=D.createCanvas();this.canvas=I,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}L.prototype={update:function(I,o,m,f,s,t){var l=this._getBrush(),a=this._getGradient(I,s,"inRange"),r=this._getGradient(I,s,"outOfRange"),u=this.pointSize+this.blurSize,e=this.canvas,n=e.getContext("2d"),i=I.length;e.width=o,e.height=m;for(var c=0;c<i;++c){var d=I[c],h=d[0],p=d[1],g=d[2],v=f(g);n.globalAlpha=v,n.drawImage(l,h-u,p-u)}if(!e.width||!e.height)return e;for(var A=n.getImageData(0,0,e.width,e.height),x=A.data,b=0,w=x.length,S=this.minOpacity,T=this.maxOpacity,C=T-S;b<w;){var v=x[b+3]/256,O=Math.floor(v*(N-1))*4;if(v>0){var _=t(v)?a:r;v>0&&(v=v*C+S),x[b++]=_[O],x[b++]=_[O+1],x[b++]=_[O+2],x[b++]=_[O+3]*v*256}else b+=4}return n.putImageData(A,0,0),e},_getBrush:function(){var I=this._brushCanvas||(this._brushCanvas=D.createCanvas()),o=this.pointSize+this.blurSize,m=o*2;I.width=m,I.height=m;var f=I.getContext("2d");return f.clearRect(0,0,m,m),f.shadowOffsetX=m,f.shadowBlur=this.blurSize,f.shadowColor="#000",f.beginPath(),f.arc(-o,o,this.pointSize,0,Math.PI*2,!0),f.closePath(),f.fill(),I},_getGradient:function(I,o,m){for(var f=this._gradientPixels,s=f[m]||(f[m]=new Uint8ClampedArray(256*4)),t=[0,0,0,0],l=0,a=0;a<256;a++)o[m](a/255,!0,t),s[l++]=t[0],s[l++]=t[1],s[l++]=t[2],s[l++]=t[3];return s}};var E=L;fe.exports=E},zarK:function(fe,z,y){var D=y("YH21"),N=D.addEventListener,L=D.removeEventListener,E=D.normalizeEvent,I=D.getNativeEvent,o=y("bYtY"),m=y("H6uX"),f=y("ItGF"),s=300,t=f.domSupported,l=function(){var _=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],M=["touchstart","touchend","touchmove"],k={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},R=o.map(_,function(B){var P=B.replace("mouse","pointer");return k.hasOwnProperty(P)?P:B});return{mouse:_,touch:M,pointer:R}}(),a={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function r(_){return _==="mousewheel"&&f.browser.firefox?"DOMMouseScroll":_}function u(_){var M=_.pointerType;return M==="pen"||M==="touch"}function e(_){_.touching=!0,_.touchTimer!=null&&(clearTimeout(_.touchTimer),_.touchTimer=null),_.touchTimer=setTimeout(function(){_.touching=!1,_.touchTimer=null},700)}function n(_){_&&(_.zrByTouch=!0)}function i(_,M){return E(_.dom,new d(_,M),!0)}function c(_,M){for(var k=M,R=!1;k&&k.nodeType!==9&&!(R=k.domBelongToZr||k!==M&&k===_.painterRoot);)k=k.parentNode;return R}function d(_,M){this.type=M.type,this.target=this.currentTarget=_.dom,this.pointerType=M.pointerType,this.clientX=M.clientX,this.clientY=M.clientY}var h=d.prototype;h.stopPropagation=h.stopImmediatePropagation=h.preventDefault=o.noop;var p={mousedown:function(M){M=E(this.dom,M),this._mayPointerCapture=[M.zrX,M.zrY],this.trigger("mousedown",M)},mousemove:function(M){M=E(this.dom,M);var k=this._mayPointerCapture;k&&(M.zrX!==k[0]||M.zrY!==k[1])&&w(this,!0),this.trigger("mousemove",M)},mouseup:function(M){M=E(this.dom,M),w(this,!1),this.trigger("mouseup",M)},mouseout:function(M){M=E(this.dom,M),this._pointerCapturing&&(M.zrEventControl="no_globalout");var k=M.toElement||M.relatedTarget;M.zrIsToLocalDOM=c(this,k),this.trigger("mouseout",M)},touchstart:function(M){M=E(this.dom,M),n(M),this._lastTouchMoment=new Date,this.handler.processGesture(M,"start"),p.mousemove.call(this,M),p.mousedown.call(this,M)},touchmove:function(M){M=E(this.dom,M),n(M),this.handler.processGesture(M,"change"),p.mousemove.call(this,M)},touchend:function(M){M=E(this.dom,M),n(M),this.handler.processGesture(M,"end"),p.mouseup.call(this,M),+new Date-this._lastTouchMoment<s&&p.click.call(this,M)},pointerdown:function(M){p.mousedown.call(this,M)},pointermove:function(M){u(M)||p.mousemove.call(this,M)},pointerup:function(M){p.mouseup.call(this,M)},pointerout:function(M){u(M)||p.mouseout.call(this,M)}};o.each(["click","mousewheel","dblclick","contextmenu"],function(_){p[_]=function(M){M=E(this.dom,M),this.trigger(_,M)}});var g={pointermove:function(M){u(M)||g.mousemove.call(this,M)},pointerup:function(M){g.mouseup.call(this,M)},mousemove:function(M){this.trigger("mousemove",M)},mouseup:function(M){var k=this._pointerCapturing;w(this,!1),this.trigger("mouseup",M),k&&(M.zrEventControl="only_globalout",this.trigger("mouseout",M))}};function v(_,M){var k=M.domHandlers;f.pointerEventsSupported?o.each(l.pointer,function(R){x(M,R,function(B){k[R].call(_,B)})}):(f.touchEventsSupported&&o.each(l.touch,function(R){x(M,R,function(B){k[R].call(_,B),e(M)})}),o.each(l.mouse,function(R){x(M,R,function(B){B=I(B),M.touching||k[R].call(_,B)})}))}function A(_,M){f.pointerEventsSupported?o.each(a.pointer,k):f.touchEventsSupported||o.each(a.mouse,k);function k(R){function B(P){P=I(P),c(_,P.target)||(P=i(_,P),M.domHandlers[R].call(_,P))}x(M,R,B,{capture:!0})}}function x(_,M,k,R){_.mounted[M]=k,_.listenerOpts[M]=R,N(_.domTarget,r(M),k,R)}function b(_){var M=_.mounted;for(var k in M)M.hasOwnProperty(k)&&L(_.domTarget,r(k),M[k],_.listenerOpts[k]);_.mounted={}}function w(_,M){if(_._mayPointerCapture=null,t&&_._pointerCapturing^M){_._pointerCapturing=M;var k=_._globalHandlerScope;M?A(_,k):b(k)}}function S(_,M){this.domTarget=_,this.domHandlers=M,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function T(_,M){m.call(this),this.dom=_,this.painterRoot=M,this._localHandlerScope=new S(_,p),t&&(this._globalHandlerScope=new S(document,g)),this._pointerCapturing=!1,this._mayPointerCapture=null,v(this,this._localHandlerScope)}var C=T.prototype;C.dispose=function(){b(this._localHandlerScope),t&&b(this._globalHandlerScope)},C.setCursor=function(_){this.dom.style&&(this.dom.style.cursor=_||"default")},o.mixin(T,m);var O=T;fe.exports=O},zdCA:function(fe,z,y){"use strict";var D=y("284h"),N=y("TqRt");Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var L=N(y("3tO9")),E=D(y("q1tI")),I=N(y("PSzr")),o=N(y("KQxl")),m=function(t,l){return E.createElement(o.default,(0,L.default)((0,L.default)({},t),{},{ref:l,icon:I.default}))};m.displayName="BarsOutlined";var f=E.forwardRef(m);z.default=f},zeV3:function(fe,z,y){"use strict";var D=y("pVnL"),N=y.n(D),L=y("lSNA"),E=y.n(L),I=y("q1tI"),o=y.n(I),m=y("TSYQ"),f=y.n(m),s=y("H84U"),t=function(r,u){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&u.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)u.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]]);return e},l={small:8,middle:16,large:24},a=function(u){var e,n=I.useContext(s.b),i=n.getPrefixCls,c=n.space,d=n.direction,h=u.size,p=h===void 0?(c==null?void 0:c.size)||"small":h,g=u.align,v=u.className,A=u.children,x=u.direction,b=x===void 0?"horizontal":x,w=u.prefixCls,S=t(u,["size","align","className","children","direction","prefixCls"]),T=I.Children.count(A);if(T===0)return null;var C=g===void 0&&b==="horizontal"?"center":g,O=i("space",w),_=f()(O,"".concat(O,"-").concat(b),(e={},E()(e,"".concat(O,"-rtl"),d==="rtl"),E()(e,"".concat(O,"-align-").concat(C),C),e),v),M="".concat(O,"-item"),k=d==="rtl"?"marginLeft":"marginRight";return I.createElement("div",N()({className:_},S),I.Children.map(A,function(R,B){return I.createElement("div",{className:M,key:"".concat(M,"-").concat(B),style:B===T-1||R===null||R===void 0?{}:E()({},b==="vertical"?"marginBottom":k,typeof p=="string"?l[p]:p)},R)}))};z.a=a},zoYe:function(fe,z,y){var D=y("nmnc"),N=y("eUgh"),L=y("Z0cm"),E=y("/9aa"),I=1/0,o=D?D.prototype:void 0,m=o?o.toString:void 0;function f(s){if(typeof s=="string")return s;if(L(s))return N(s,f)+"";if(E(s))return m?m.call(s):"";var t=s+"";return t=="0"&&1/s==-I?"-0":t}fe.exports=f},zuHt:function(fe,z,y){var D=y("bYtY");function N(L){var E={};L.eachSeriesByType("map",function(I){var o=I.getMapType();if(I.getHostGeoModel()||E[o])return;var m={};D.each(I.seriesGroup,function(s){var t=s.coordinateSystem,l=s.originalData;s.get("showLegendSymbol")&&L.getComponent("legend")&&l.each(l.mapDimension("value"),function(a,r){var u=l.getName(r),e=t.getRegion(u);if(!e||isNaN(a))return;var n=m[u]||0,i=t.dataToPoint(e.center);m[u]=n+1,l.setItemLayout(r,{point:i,offset:n})})});var f=I.getData();f.each(function(s){var t=f.getName(s),l=f.getItemLayout(s)||{};l.showLabel=!m[t],f.setItemLayout(s,l)}),E[o]=!0})}fe.exports=N}}]);
|